wlan_mlme_ucfg_api.h 70 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745
  1. /*
  2. * Copyright (c) 2018 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /**
  19. * DOC: declare UCFG APIs exposed by the mlme component
  20. */
  21. #ifndef _WLAN_MLME_UCFG_API_H_
  22. #define _WLAN_MLME_UCFG_API_H_
  23. #include <wlan_mlme_public_struct.h>
  24. #include <wlan_objmgr_psoc_obj.h>
  25. #include <wlan_objmgr_global_obj.h>
  26. #include <wlan_cmn.h>
  27. #include <wlan_mlme_api.h>
  28. #include <wlan_mlme_main.h>
  29. #include "wma_tgt_cfg.h"
  30. /**
  31. * ucfg_mlme_init() - initialize mlme_ctx context.
  32. *
  33. * This function initializes the mlme context.
  34. *
  35. * Return: QDF_STATUS_SUCCESS - in case of success else return error
  36. */
  37. QDF_STATUS ucfg_mlme_init(void);
  38. /**
  39. * ucfg_mlme_deinit() - De initialize mlme_ctx context.
  40. *
  41. * This function De initializes mlme contex.
  42. *
  43. * Return: QDF_STATUS_SUCCESS - in case of success else return error
  44. */
  45. QDF_STATUS ucfg_mlme_deinit(void);
  46. /**
  47. * ucfg_mlme_psoc_open() - MLME component Open
  48. * @psoc: pointer to psoc object
  49. *
  50. * Open the MLME component and initialize the MLME strucutre
  51. *
  52. * Return: QDF Status
  53. */
  54. QDF_STATUS ucfg_mlme_psoc_open(struct wlan_objmgr_psoc *psoc);
  55. /**
  56. * ucfg_mlme_psoc_close() - MLME component close
  57. * @psoc: pointer to psoc object
  58. *
  59. * Close the MLME component and clear the MLME structures
  60. *
  61. * Return: None
  62. */
  63. void ucfg_mlme_psoc_close(struct wlan_objmgr_psoc *psoc);
  64. #ifdef CONFIG_VDEV_SM
  65. /**
  66. * ucfg_mlme_pdev_open() - MLME component pdev Open
  67. * @pdev: pointer to pdev object
  68. *
  69. * Open the MLME component and initialize the MLME pdev strucutre
  70. *
  71. * Return: QDF Status
  72. */
  73. QDF_STATUS ucfg_mlme_pdev_open(struct wlan_objmgr_pdev *pdev);
  74. /**
  75. * ucfg_mlme_pdev_close() - MLME component pdev close
  76. * @pdev: pointer to pdev object
  77. *
  78. * close the MLME pdev information
  79. *
  80. * Return: QDF Status
  81. */
  82. QDF_STATUS ucfg_mlme_pdev_close(struct wlan_objmgr_pdev *pdev);
  83. #else
  84. /**
  85. * ucfg_mlme_pdev_open() - MLME component pdev Open
  86. * @pdev: pointer to pdev object
  87. *
  88. * Open the MLME component and initialize the MLME pdev strucutre
  89. *
  90. * Return: QDF Status
  91. */
  92. static inline QDF_STATUS ucfg_mlme_pdev_open(struct wlan_objmgr_pdev *pdev)
  93. {
  94. return QDF_STATUS_SUCCESS;
  95. }
  96. /**
  97. * ucfg_mlme_pdev_close() - MLME component pdev close
  98. * @pdev: pointer to pdev object
  99. *
  100. * close the MLME pdev information
  101. *
  102. * Return: QDF Status
  103. */
  104. static inline QDF_STATUS ucfg_mlme_pdev_close(struct wlan_objmgr_pdev *pdev)
  105. {
  106. return QDF_STATUS_SUCCESS;
  107. }
  108. #endif
  109. /**
  110. * ucfg_mlme_get_ht_cap_info() - Get the HT cap info config
  111. * @psoc: pointer to psoc object
  112. * @value: pointer to the value which will be filled for the caller
  113. *
  114. * Inline UCFG API to be used by HDD/OSIF callers
  115. *
  116. * Return: QDF Status
  117. */
  118. static inline
  119. QDF_STATUS ucfg_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  120. struct mlme_ht_capabilities_info
  121. *ht_cap_info)
  122. {
  123. return wlan_mlme_get_ht_cap_info(psoc, ht_cap_info);
  124. }
  125. /**
  126. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  127. * @psoc: pointer to psoc object
  128. * @value: Value that needs to be set from the caller
  129. *
  130. * Inline UCFG API to be used by HDD/OSIF callers
  131. *
  132. * Return: QDF Status
  133. */
  134. static inline
  135. QDF_STATUS ucfg_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  136. struct mlme_ht_capabilities_info
  137. ht_cap_info)
  138. {
  139. return wlan_mlme_set_ht_cap_info(psoc, ht_cap_info);
  140. }
  141. /**
  142. * ucfg_mlme_get_max_amsdu_num() - get the max amsdu num
  143. * @psoc: pointer to psoc object
  144. * @value: pointer to the value where the max_amsdu num is to be filled
  145. *
  146. * Return: QDF_STATUS
  147. */
  148. static inline
  149. QDF_STATUS ucfg_mlme_get_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  150. uint8_t *value)
  151. {
  152. return wlan_mlme_get_max_amsdu_num(psoc, value);
  153. }
  154. /**
  155. * ucfg_mlme_set_max_amsdu_num() - set the max amsdu num
  156. * @psoc: pointer to psoc object
  157. * @value: value to be set for max_amsdu_num
  158. *
  159. * Return: QDF_STATUS
  160. */
  161. static inline
  162. QDF_STATUS ucfg_mlme_set_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  163. uint8_t value)
  164. {
  165. return wlan_mlme_set_max_amsdu_num(psoc, value);
  166. }
  167. /**
  168. * ucfg_mlme_get_ht_mpdu_density() - get the ht mpdu density
  169. * @psoc: pointer to psoc object
  170. * @value: pointer to the value where the ht mpdu density is to be filled
  171. *
  172. * Return: QDF_STATUS
  173. */
  174. static inline
  175. QDF_STATUS ucfg_mlme_get_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  176. uint8_t *value)
  177. {
  178. return wlan_mlme_get_ht_mpdu_density(psoc, value);
  179. }
  180. /**
  181. * ucfg_mlme_set_ht_mpdu_density() - set the ht mpdu density
  182. * @psoc: pointer to psoc object
  183. * @value: value to be set for ht mpdu density
  184. *
  185. * Return: QDF_STATUS
  186. */
  187. static inline
  188. QDF_STATUS ucfg_mlme_set_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  189. uint8_t value)
  190. {
  191. return wlan_mlme_set_ht_mpdu_density(psoc, value);
  192. }
  193. /**
  194. * ucfg_mlme_get_band_capability() - Get the Band capability config
  195. * @psoc: pointer to psoc object
  196. * @band_capability: Pointer to the variable from caller
  197. *
  198. * Return: QDF Status
  199. */
  200. static inline
  201. QDF_STATUS ucfg_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  202. uint8_t *band_capability)
  203. {
  204. return wlan_mlme_get_band_capability(psoc, band_capability);
  205. }
  206. /**
  207. * ucfg_mlme_set_band_capability() - Set the Band capability config
  208. * @psoc: pointer to psoc object
  209. * @band_capability: Value to be set from the caller
  210. *
  211. * Return: QDF Status
  212. */
  213. static inline
  214. QDF_STATUS ucfg_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  215. uint8_t band_capability)
  216. {
  217. return wlan_mlme_set_band_capability(psoc, band_capability);
  218. }
  219. /**
  220. * ucfg_mlme_get_prevent_link_down() - Get the prevent link down config
  221. * @psoc: pointer to psoc object
  222. * @prevent_link_down: Pointer to the variable from caller
  223. *
  224. * Return: QDF Status
  225. */
  226. static inline
  227. QDF_STATUS ucfg_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
  228. bool *prevent_link_down)
  229. {
  230. return wlan_mlme_get_prevent_link_down(psoc, prevent_link_down);
  231. }
  232. /**
  233. * ucfg_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
  234. * @psoc: pointer to psoc object
  235. * @select_5ghz_margin: Pointer to the variable from caller
  236. *
  237. * Return: QDF Status
  238. */
  239. static inline
  240. QDF_STATUS ucfg_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
  241. uint8_t *select_5ghz_margin)
  242. {
  243. return wlan_mlme_get_select_5ghz_margin(psoc, select_5ghz_margin);
  244. }
  245. /**
  246. * ucfg_mlme_get_rtt_mac_randomization() - Get the RTT MAC randomization config
  247. * @psoc: pointer to psoc object
  248. * @rtt_mac_randomization: Pointer to the variable from caller
  249. *
  250. * Return: QDF Status
  251. */
  252. static inline
  253. QDF_STATUS ucfg_mlme_get_rtt_mac_randomization(struct wlan_objmgr_psoc *psoc,
  254. bool *rtt_mac_randomization)
  255. {
  256. return wlan_mlme_get_rtt_mac_randomization(psoc, rtt_mac_randomization);
  257. }
  258. /**
  259. * ucfg_mlme_get_crash_inject() - Get the crash inject config
  260. * @psoc: pointer to psoc object
  261. * @crash_inject: Pointer to the variable from caller
  262. *
  263. * Return: QDF Status
  264. */
  265. static inline
  266. QDF_STATUS ucfg_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
  267. bool *crash_inject)
  268. {
  269. return wlan_mlme_get_crash_inject(psoc, crash_inject);
  270. }
  271. /**
  272. * ucfg_mlme_get_lpass_support() - Get the LPASS Support config
  273. * @psoc: pointer to psoc object
  274. * @lpass_support: Pointer to the variable from caller
  275. *
  276. * Return: QDF Status
  277. */
  278. static inline
  279. QDF_STATUS ucfg_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
  280. bool *lpass_support)
  281. {
  282. return wlan_mlme_get_lpass_support(psoc, lpass_support);
  283. }
  284. /**
  285. * ucfg_mlme_get_self_recovery() - Get the self recovery config
  286. * @psoc: pointer to psoc object
  287. * @self_recovery: Pointer to the variable from caller
  288. *
  289. * Return: QDF Status
  290. */
  291. static inline
  292. QDF_STATUS ucfg_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  293. bool *self_recovery)
  294. {
  295. return wlan_mlme_get_self_recovery(psoc, self_recovery);
  296. }
  297. /**
  298. * ucfg_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  299. * @psoc: pointer to psoc object
  300. * @sub_20_chan_width: Pointer to the variable from caller
  301. *
  302. * Return: QDF Status
  303. */
  304. static inline
  305. QDF_STATUS ucfg_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  306. uint8_t *sub_20_chan_width)
  307. {
  308. return wlan_mlme_get_sub_20_chan_width(psoc, sub_20_chan_width);
  309. }
  310. /**
  311. * ucfg_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  312. * @psoc: pointer to psoc object
  313. * @fw_timeout_crash: Pointer to the variable from caller
  314. *
  315. * Return: QDF Status
  316. */
  317. static inline
  318. QDF_STATUS ucfg_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  319. bool *fw_timeout_crash)
  320. {
  321. return wlan_mlme_get_fw_timeout_crash(psoc, fw_timeout_crash);
  322. }
  323. /**
  324. * ucfg_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  325. * @psoc: pointer to psoc object
  326. * @ito_repeat_count: Pointer to the variable from caller
  327. *
  328. * Return: QDF Status
  329. */
  330. static inline
  331. QDF_STATUS ucfg_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  332. uint8_t *ito_repeat_count)
  333. {
  334. return wlan_mlme_get_ito_repeat_count(psoc, ito_repeat_count);
  335. }
  336. /**
  337. * ucfg_mlme_get_acs_with_more_param() - Get the flag for acs with
  338. * more param
  339. * @psoc: pointer to psoc object
  340. * @value: Value that needs to be set from the caller
  341. *
  342. * Inline UCFG API to be used by HDD/OSIF callers
  343. *
  344. * Return: QDF Status
  345. */
  346. static inline
  347. QDF_STATUS ucfg_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  348. bool *value)
  349. {
  350. return wlan_mlme_get_acs_with_more_param(psoc, value);
  351. }
  352. /**
  353. * ucfg_mlme_get_auto_channel_weight() - Get the auto channel select weight
  354. * @psoc: pointer to psoc object
  355. * @value: Value that needs to be set from the caller
  356. *
  357. * Inline UCFG API to be used by HDD/OSIF callers
  358. *
  359. * Return: QDF Status
  360. */
  361. static inline
  362. QDF_STATUS ucfg_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  363. uint32_t *value)
  364. {
  365. return wlan_mlme_get_auto_channel_weight(psoc, value);
  366. }
  367. /**
  368. * ucfg_mlme_get_vendor_acs_support() - Get the flag for
  369. * vendor acs support
  370. * @psoc: pointer to psoc object
  371. * @value: Value that needs to be set from the caller
  372. *
  373. * Inline UCFG API to be used by HDD/OSIF callers
  374. *
  375. * Return: QDF Status
  376. */
  377. static inline
  378. QDF_STATUS ucfg_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  379. bool *value)
  380. {
  381. return wlan_mlme_get_vendor_acs_support(psoc, value);
  382. }
  383. /**
  384. * ucfg_mlme_get_external_acs_policy() - Get flag for external control
  385. * acs policy
  386. * @psoc: pointer to psoc object
  387. * @value: Value that needs to be set from the caller
  388. *
  389. * Inline UCFG API to be used by HDD/OSIF callers
  390. *
  391. * Return: QDF Status
  392. */
  393. static inline QDF_STATUS
  394. ucfg_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  395. bool *value)
  396. {
  397. return wlan_mlme_get_external_acs_policy(psoc, value);
  398. }
  399. /**
  400. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  401. * @psoc: pointer to psoc object
  402. * @value: Value that needs to be set from the caller
  403. *
  404. * Inline UCFG API to be used by HDD/OSIF callers
  405. *
  406. * Return: QDF Status
  407. */
  408. static inline
  409. QDF_STATUS
  410. ucfg_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  411. bool *value)
  412. {
  413. return wlan_mlme_get_acs_support_for_dfs_ltecoex(psoc, value);
  414. }
  415. /**
  416. * ucfg_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction for VO
  417. * @psoc: pointer to psoc object
  418. * @value: Value that needs to be set from the caller
  419. *
  420. * Inline UCFG API to be used by HDD/OSIF callers
  421. *
  422. * Return: QDF Status
  423. */
  424. static inline QDF_STATUS
  425. ucfg_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
  426. uint8_t *value)
  427. {
  428. return wlan_mlme_get_wmm_dir_ac_vo(psoc, value);
  429. }
  430. /**
  431. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  432. * MSDU size for VO
  433. * @psoc: pointer to psoc object
  434. * @value: Value that needs to be set from the caller
  435. *
  436. * Inline UCFG API to be used by HDD/OSIF callers
  437. *
  438. * Return: QDF Status
  439. */
  440. static inline QDF_STATUS
  441. ucfg_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  442. uint16_t *value)
  443. {
  444. return wlan_mlme_get_wmm_nom_msdu_size_ac_vo(psoc, value);
  445. }
  446. /**
  447. * ucfg_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  448. * @psoc: pointer to psoc object
  449. * @value: Value that needs to be set from the caller
  450. *
  451. * Inline UCFG API to be used by HDD/OSIF callers
  452. *
  453. * Return: QDF Status
  454. */
  455. static inline QDF_STATUS
  456. ucfg_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  457. uint32_t *value)
  458. {
  459. return wlan_mlme_get_wmm_mean_data_rate_ac_vo(psoc, value);
  460. }
  461. /**
  462. * ucfg_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  463. * rate for VO
  464. * @psoc: pointer to psoc object
  465. * @value: Value that needs to be set from the caller
  466. *
  467. * Inline UCFG API to be used by HDD/OSIF callers
  468. *
  469. * Return: QDF Status
  470. */
  471. static inline QDF_STATUS
  472. ucfg_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  473. uint32_t *value)
  474. {
  475. return wlan_mlme_get_wmm_min_phy_rate_ac_vo(psoc, value);
  476. }
  477. /**
  478. * ucfg_mlme_get_wmm_sba_ac_vo() - surplus bandwidth
  479. * allowance for VO
  480. * @psoc: pointer to psoc object
  481. * @value: Value that needs to be set from the caller
  482. *
  483. * Inline UCFG API to be used by HDD/OSIF callers
  484. *
  485. * Return: QDF Status
  486. */
  487. static inline QDF_STATUS
  488. ucfg_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc,
  489. uint16_t *value)
  490. {
  491. return wlan_mlme_get_wmm_sba_ac_vo(psoc, value);
  492. }
  493. /**
  494. * ucfg_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  495. * interval for voice
  496. * @psoc: pointer to psoc object
  497. * @value: pointer to the value which will be filled for the caller
  498. *
  499. * Inline UCFG API to be used by HDD/OSIF callers
  500. *
  501. * Return: QDF Status
  502. */
  503. static inline QDF_STATUS
  504. ucfg_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  505. uint32_t *value)
  506. {
  507. return wlan_mlme_get_wmm_uapsd_vo_srv_intv(psoc, value);
  508. }
  509. /**
  510. * ucfg_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  511. * interval for voice
  512. * @psoc: pointer to psoc object
  513. * @value: Value that needs to be set from the caller
  514. *
  515. * Inline UCFG API to be used by HDD/OSIF callers
  516. *
  517. * Return: QDF Status
  518. */
  519. static inline QDF_STATUS
  520. ucfg_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  521. uint32_t *value)
  522. {
  523. return wlan_mlme_get_wmm_uapsd_vo_sus_intv(psoc, value);
  524. }
  525. /**
  526. *
  527. * ucfg_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  528. * override flag is set.
  529. * @psoc: pointer to psoc object
  530. * @sme_config - Sme config struct
  531. *
  532. * Inline UCFG API to be used by HDD/OSIF callers to call
  533. * the mlme function wlan_mlme_get_sap_inactivity_override
  534. *
  535. * Return: QDF Status
  536. */
  537. static inline
  538. void ucfg_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  539. bool *value)
  540. {
  541. wlan_mlme_get_sap_inactivity_override(psoc, value);
  542. }
  543. /**
  544. * ucfg_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  545. *
  546. * @psoc: pointer to psoc object
  547. * @value: Value that needs to be set from the caller
  548. *
  549. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  550. */
  551. static inline
  552. QDF_STATUS ucfg_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  553. uint8_t *value)
  554. {
  555. return wlan_mlme_get_tx_chainmask_1ss(psoc, value);
  556. }
  557. /**
  558. * ucfg_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  559. *
  560. * @psoc: pointer to psoc object
  561. * @value: Value that needs to be set from the caller
  562. *
  563. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  564. */
  565. static inline
  566. QDF_STATUS ucfg_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  567. uint16_t *value)
  568. {
  569. return wlan_mlme_get_num_11b_tx_chains(psoc, value);
  570. }
  571. /**
  572. * ucfg_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  573. *
  574. * @psoc: pointer to psoc object
  575. * @value: Value that needs to be set from the caller
  576. *
  577. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  578. */
  579. static inline
  580. QDF_STATUS ucfg_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  581. uint16_t *value)
  582. {
  583. return wlan_mlme_get_num_11ag_tx_chains(psoc, value);
  584. }
  585. /**
  586. * ucfg_mlme_get_bt_chain_separation_flag() - bt chain separation enable/disable
  587. * @psoc: pointer to psoc object
  588. * @value: Value that needs to be got for the caller
  589. *
  590. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  591. */
  592. static inline
  593. QDF_STATUS ucfg_mlme_get_bt_chain_separation_flag(struct wlan_objmgr_psoc *psoc,
  594. bool *value)
  595. {
  596. return wlan_mlme_get_bt_chain_separation_flag(psoc, value);
  597. }
  598. /**
  599. * ucfg_mlme_configure_chain_mask() - configure chainmask parameters
  600. *
  601. * @psoc: pointer to psoc object
  602. * @session_id: vdev_id
  603. *
  604. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  605. */
  606. static inline
  607. QDF_STATUS ucfg_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  608. uint8_t session_id)
  609. {
  610. return wlan_mlme_configure_chain_mask(psoc, session_id);
  611. }
  612. /*
  613. * ucfg_mlme_get_sta_keep_alive_period() - Get the sta keep alive period
  614. * @psoc: pointer to psoc object
  615. * @val: Pointer to the value which will be filled for the caller
  616. *
  617. * Return: QDF Status
  618. */
  619. QDF_STATUS
  620. ucfg_mlme_get_sta_keep_alive_period(struct wlan_objmgr_psoc *psoc,
  621. uint32_t *val);
  622. /*
  623. * ucfg_mlme_get_dfs_master_capability() - Get the dfs master capability
  624. * @psoc: pointer to psoc object
  625. * @val: Pointer to the value which will be filled for the caller
  626. *
  627. * Return: QDF Status
  628. */
  629. QDF_STATUS
  630. ucfg_mlme_get_dfs_master_capability(struct wlan_objmgr_psoc *psoc,
  631. bool *val);
  632. /**
  633. * ucfg_mlme_get_pmkid_modes() - Get PMKID modes
  634. * @psoc: pointer to psoc object
  635. * @val: Pointer to the value which will be filled for the caller
  636. *
  637. * Return: QDF Status
  638. */
  639. QDF_STATUS
  640. ucfg_mlme_get_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  641. uint32_t *val);
  642. /**
  643. * ucfg_mlme_set_pmkid_modes() - Set PMKID modes
  644. * @psoc: pointer to psoc object
  645. * @val: Pointer to the value which will be filled for the caller
  646. *
  647. * Return: QDF Status
  648. */
  649. QDF_STATUS
  650. ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  651. uint32_t val);
  652. /**
  653. * ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode
  654. * @psoc: pointer to psoc object
  655. * @out_mode: Pointer to the mode which will be filled for the caller
  656. *
  657. * Return: QDF Status
  658. */
  659. QDF_STATUS
  660. ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc,
  661. enum dot11p_mode *out_mode);
  662. /**
  663. * ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self
  664. * @psoc: pointer to psoc object
  665. * @val: Pointer to the value which will be filled for the caller
  666. *
  667. * Return: QDF Status
  668. */
  669. QDF_STATUS
  670. ucfg_mlme_get_go_cts2self_for_sta(struct wlan_objmgr_psoc *psoc,
  671. bool *val);
  672. /**
  673. * ucfg_mlme_get_force_rsne_override() - Force rsnie override from user
  674. * @psoc: pointer to psoc object
  675. * @val: Pointer to the value which will be filled for the caller
  676. *
  677. * Return: QDF Status
  678. */
  679. QDF_STATUS
  680. ucfg_mlme_get_force_rsne_override(struct wlan_objmgr_psoc *psoc,
  681. bool *val);
  682. /**
  683. * ucfg_mlme_get_qcn_ie_support() - QCN IE support or not
  684. * @psoc: pointer to psoc object
  685. * @val: Pointer to the value which will be filled for the caller
  686. *
  687. * Return: QDF Status
  688. */
  689. QDF_STATUS
  690. ucfg_mlme_get_qcn_ie_support(struct wlan_objmgr_psoc *psoc,
  691. bool *val);
  692. /**
  693. * ucfg_mlme_get_tgt_gtx_usr_cfg() - Get the target gtx user config
  694. * @psoc: pointer to psoc object
  695. * @val: Pointer to the value which will be filled for the caller
  696. *
  697. * Return: QDF Status
  698. */
  699. QDF_STATUS
  700. ucfg_mlme_get_tgt_gtx_usr_cfg(struct wlan_objmgr_psoc *psoc,
  701. uint32_t *val);
  702. /**
  703. * ucfg_mlme_is_override_ht20_40_24g() - use channel bonding in 2.4 GHz or not
  704. * @psoc: pointer to psoc object
  705. * @val: Pointer to the value which will be filled for the caller
  706. *
  707. * Return: QDF Status
  708. */
  709. QDF_STATUS
  710. ucfg_mlme_is_override_ht20_40_24g(struct wlan_objmgr_psoc *psoc, bool *val);
  711. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  712. /**
  713. * ucfg_mlme_get_roaming_offload() - Get roaming offload setting
  714. * @psoc: pointer to psoc object
  715. * @val: Pointer to enable/disable roaming offload
  716. *
  717. * Return: QDF Status
  718. */
  719. QDF_STATUS
  720. ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  721. bool *val);
  722. /**
  723. * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload
  724. * @psoc: pointer to psoc object
  725. * @val: enable/disable roaming offload
  726. *
  727. * Return: QDF Status
  728. */
  729. QDF_STATUS
  730. ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
  731. bool val);
  732. #endif
  733. /**
  734. * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
  735. * @psoc: pointer to psoc object
  736. * @val: first scan bucket threshold
  737. *
  738. * Return: QDF Status
  739. */
  740. QDF_STATUS
  741. ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
  742. uint8_t *val);
  743. /**
  744. * ucfg_mlme_is_mawc_enabled() - MAWC enabled or not
  745. * @psoc: pointer to psoc object
  746. * @val: Pointer to the value which will be filled for the caller
  747. *
  748. * Return: QDF Status
  749. */
  750. QDF_STATUS
  751. ucfg_mlme_is_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  752. /**
  753. * ucfg_mlme_set_mawc_enabled() - Set MAWC enable or disable
  754. * @psoc: pointer to psoc object
  755. * @val: enable or disable MAWC
  756. *
  757. * Return: QDF Status
  758. */
  759. QDF_STATUS
  760. ucfg_mlme_set_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool val);
  761. /**
  762. * ucfg_mlme_is_fast_transition_enabled() - Fast transition enable or not
  763. * @psoc: pointer to psoc object
  764. * @val: Pointer to the value which will be filled for the caller
  765. *
  766. * Return: QDF Status
  767. */
  768. QDF_STATUS
  769. ucfg_mlme_is_fast_transition_enabled(struct wlan_objmgr_psoc *psoc,
  770. bool *val);
  771. /**
  772. * ucfg_mlme_set_fast_transition_enabled() - Set fast transition enable
  773. * @psoc: pointer to psoc object
  774. * @val: Fast transition enable or disable
  775. *
  776. * Return: QDF Status
  777. */
  778. QDF_STATUS
  779. ucfg_mlme_set_fast_transition_enabled(struct wlan_objmgr_psoc *psoc,
  780. bool val);
  781. /**
  782. * ucfg_mlme_is_roam_scan_offload_enabled() - Roam scan offload enable or not
  783. * @psoc: pointer to psoc object
  784. * @val: Pointer to the value which will be filled for the caller
  785. *
  786. * Return: QDF Status
  787. */
  788. QDF_STATUS
  789. ucfg_mlme_is_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc,
  790. bool *val);
  791. /**
  792. * ucfg_mlme_set_roam_scan_offload_enabled() - Set roam scan offload enable
  793. * @psoc: pointer to psoc object
  794. * @val: Roam scan offload enable or disable
  795. *
  796. * Return: QDF Status
  797. */
  798. QDF_STATUS
  799. ucfg_mlme_set_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc,
  800. bool val);
  801. /**
  802. * ucfg_mlme_get_neighbor_scan_max_chan_time() - Get neighbor scan max
  803. * channel time
  804. * @psoc: pointer to psoc object
  805. * @val: Pointer to the value which will be filled for the caller
  806. *
  807. * Return: QDF Status
  808. */
  809. QDF_STATUS
  810. ucfg_mlme_get_neighbor_scan_max_chan_time(struct wlan_objmgr_psoc *psoc,
  811. uint16_t *val);
  812. /**
  813. * ucfg_mlme_get_neighbor_scan_min_chan_time() - Get neighbor scan min
  814. * channel time
  815. * @psoc: pointer to psoc object
  816. * @val: Pointer to the value which will be filled for the caller
  817. *
  818. * Return: QDF Status
  819. */
  820. QDF_STATUS
  821. ucfg_mlme_get_neighbor_scan_min_chan_time(struct wlan_objmgr_psoc *psoc,
  822. uint16_t *val);
  823. /**
  824. * ucfg_mlme_get_delay_before_vdev_stop() - Get the delay before vdev stop
  825. * @psoc: pointer to psoc object
  826. * @val: Pointer to the value which will be filled for the caller
  827. *
  828. * Return: QDF Status
  829. */
  830. QDF_STATUS
  831. ucfg_mlme_get_delay_before_vdev_stop(struct wlan_objmgr_psoc *psoc,
  832. uint8_t *val);
  833. /**
  834. * ucfg_mlme_get_roam_bmiss_final_bcnt() - Get roam bmiss first count
  835. * @psoc: pointer to psoc object
  836. * @val: Pointer to the value which will be filled for the caller
  837. *
  838. * Return: QDF Status
  839. */
  840. QDF_STATUS
  841. ucfg_mlme_get_roam_bmiss_final_bcnt(struct wlan_objmgr_psoc *psoc,
  842. uint8_t *val);
  843. /**
  844. * ucfg_mlme_get_roam_bmiss_first_bcnt() - Get roam bmiss final count
  845. * @psoc: pointer to psoc object
  846. * @val: Pointer to the value which will be filled for the caller
  847. *
  848. * Return: QDF Status
  849. */
  850. QDF_STATUS
  851. ucfg_mlme_get_roam_bmiss_first_bcnt(struct wlan_objmgr_psoc *psoc,
  852. uint8_t *val);
  853. /**
  854. * ucfg_mlme_is_lfr_enabled() - LFR enable or not
  855. * @psoc: pointer to psoc object
  856. * @val: Pointer to the value which will be filled for the caller
  857. *
  858. * Return: QDF Status
  859. */
  860. QDF_STATUS
  861. ucfg_mlme_is_lfr_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  862. /**
  863. * ucfg_mlme_set_lfr_enabled() - Enable or disable LFR
  864. * @psoc: pointer to psoc object
  865. * @val: Enable or disable LFR
  866. *
  867. * Return: QDF Status
  868. */
  869. QDF_STATUS
  870. ucfg_mlme_set_lfr_enabled(struct wlan_objmgr_psoc *psoc, bool val);
  871. /**
  872. * ucfg_mlme_is_roam_prefer_5ghz() - prefer 5ghz or not
  873. * @psoc: pointer to psoc object
  874. * @val: Pointer to the value which will be filled for the caller
  875. *
  876. * Return: QDF Status
  877. */
  878. QDF_STATUS
  879. ucfg_mlme_is_roam_prefer_5ghz(struct wlan_objmgr_psoc *psoc, bool *val);
  880. /**
  881. * ucfg_mlme_set_roam_intra_band() - Set roam intra modes
  882. * @psoc: pointer to psoc object
  883. * @val: roam intra modes or not
  884. *
  885. * Return: QDF Status
  886. */
  887. QDF_STATUS
  888. ucfg_mlme_set_roam_intra_band(struct wlan_objmgr_psoc *psoc, bool val);
  889. /**
  890. * ucfg_mlme_get_home_away_time() - Get home away time
  891. * @psoc: pointer to psoc object
  892. * @val: Pointer to the value which will be filled for the caller
  893. *
  894. * Return: QDF Status
  895. */
  896. QDF_STATUS
  897. ucfg_mlme_get_home_away_time(struct wlan_objmgr_psoc *psoc, uint16_t *val);
  898. /**
  899. * ucfg_mlme_set_fast_roam_in_concurrency_enabled() - Enable fast roam in
  900. * concurrency
  901. * @psoc: pointer to psoc object
  902. * @val: Enable or disable fast roam in concurrency
  903. *
  904. * Return: QDF Status
  905. */
  906. QDF_STATUS
  907. ucfg_mlme_set_fast_roam_in_concurrency_enabled(struct wlan_objmgr_psoc *psoc,
  908. bool val);
  909. /**
  910. * ucfg_mlme_get_ps_data_inactivity_timeout() - Get data inactivity timeout
  911. * @psoc: pointer to psoc object
  912. * @inactivity_timeout: buffer to hold value
  913. *
  914. * Return: QDF Status
  915. */
  916. QDF_STATUS
  917. ucfg_mlme_get_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
  918. uint32_t *inactivity_timeout);
  919. /**
  920. * ucfg_mlme_set_ps_data_inactivity_timeout() - Set data inactivity timeout
  921. * @psoc: pointer to psoc object
  922. * @inactivity_timeout: value to be set
  923. *
  924. * Return: QDF Status
  925. */
  926. QDF_STATUS
  927. ucfg_mlme_set_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
  928. uint32_t inactivity_timeout);
  929. /**
  930. * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval
  931. * @psoc: pointer to psoc object
  932. * @value: Value that needs to be set from the caller
  933. *
  934. * Inline UCFG API to be used by HDD/OSIF callers
  935. *
  936. * Return: QDF Status
  937. */
  938. static inline
  939. QDF_STATUS ucfg_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  940. int value)
  941. {
  942. return wlan_mlme_set_sap_listen_interval(psoc, value);
  943. }
  944. /**
  945. * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  946. * @psoc: pointer to psoc object
  947. * @value: Value that needs to be set from the caller
  948. *
  949. * Inline UCFG API to be used by HDD/OSIF callers
  950. *
  951. * Return: QDF Status
  952. */
  953. static inline
  954. QDF_STATUS ucfg_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  955. int value)
  956. {
  957. return wlan_mlme_set_assoc_sta_limit(psoc, value);
  958. }
  959. /**
  960. * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  961. * @psoc: pointer to psoc object
  962. * @value: Value that needs to be set from the caller
  963. *
  964. * Inline UCFG API to be used by HDD/OSIF callers
  965. *
  966. * Return: QDF Status
  967. */
  968. static inline
  969. QDF_STATUS ucfg_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  970. int value)
  971. {
  972. return wlan_mlme_set_rmc_action_period_freq(psoc, value);
  973. }
  974. /**
  975. * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
  976. * @psoc: pointer to psoc object
  977. * @value: Value that needs to be set from the caller
  978. *
  979. * Inline UCFG API to be used by HDD/OSIF callers
  980. *
  981. * Return: QDF Status
  982. */
  983. static inline
  984. QDF_STATUS ucfg_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  985. bool *value)
  986. {
  987. return wlan_mlme_get_sap_get_peer_info(psoc, value);
  988. }
  989. /**
  990. * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels
  991. * @psoc: pointer to psoc object
  992. * @value: Value that needs to be set from the caller
  993. *
  994. * Inline UCFG API to be used by HDD/OSIF callers
  995. *
  996. * Return: QDF Status
  997. */
  998. static inline
  999. QDF_STATUS ucfg_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  1000. bool *value)
  1001. {
  1002. return wlan_mlme_get_sap_allow_all_channels(psoc, value);
  1003. }
  1004. /**
  1005. * ucfg_mlme_get_sap_max_peers() - get the sap max peers
  1006. * @psoc: pointer to psoc object
  1007. * @value: Value that needs to be set from the caller
  1008. *
  1009. * Inline UCFG API to be used by HDD/OSIF callers
  1010. *
  1011. * Return: QDF Status
  1012. */
  1013. static inline
  1014. QDF_STATUS ucfg_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  1015. int *value)
  1016. {
  1017. return wlan_mlme_get_sap_max_peers(psoc, value);
  1018. }
  1019. /**
  1020. * ucfg_mlme_set_sap_max_peers() - Set the sap max peers
  1021. * @psoc: pointer to psoc object
  1022. * @value: Value that needs to be set from the caller
  1023. *
  1024. * Inline UCFG API to be used by HDD/OSIF callers
  1025. *
  1026. * Return: QDF Status
  1027. */
  1028. static inline
  1029. QDF_STATUS ucfg_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value)
  1030. {
  1031. return wlan_mlme_set_sap_max_peers(psoc, value);
  1032. }
  1033. /**
  1034. * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers
  1035. * @psoc: pointer to psoc object
  1036. * @value: Value that needs to be set from the caller
  1037. *
  1038. * Inline UCFG API to be used by HDD/OSIF callers
  1039. *
  1040. * Return: QDF Status
  1041. */
  1042. static inline
  1043. QDF_STATUS ucfg_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  1044. int *value)
  1045. {
  1046. return wlan_mlme_get_sap_max_offload_peers(psoc, value);
  1047. }
  1048. /**
  1049. * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload
  1050. * reorder buffs
  1051. * @psoc: pointer to psoc object
  1052. * @value: Value that needs to be set from the caller
  1053. *
  1054. * Inline UCFG API to be used by HDD/OSIF callers
  1055. *
  1056. * Return: QDF Status
  1057. */
  1058. static inline
  1059. QDF_STATUS ucfg_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  1060. *psoc, int *value)
  1061. {
  1062. return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value);
  1063. }
  1064. /**
  1065. * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel
  1066. * switch beacon count
  1067. * @psoc: pointer to psoc object
  1068. * @value: Value that needs to be set from the caller
  1069. *
  1070. * Inline UCFG API to be used by HDD/OSIF callers
  1071. *
  1072. * Return: QDF Status
  1073. */
  1074. static inline
  1075. QDF_STATUS ucfg_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  1076. int *value)
  1077. {
  1078. return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value);
  1079. }
  1080. /**
  1081. * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode
  1082. * @psoc: pointer to psoc object
  1083. * @value: Value that needs to be set from the caller
  1084. *
  1085. * Inline UCFG API to be used by HDD/OSIF callers
  1086. *
  1087. * Return: QDF Status
  1088. */
  1089. static inline
  1090. QDF_STATUS ucfg_mlme_get_sap_channel_switch_mode(struct wlan_objmgr_psoc *psoc,
  1091. bool *value)
  1092. {
  1093. return wlan_mlme_get_sap_chn_switch_mode(psoc, value);
  1094. }
  1095. /**
  1096. * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value
  1097. * @psoc: pointer to psoc object
  1098. * @value: Value that needs to be set from the caller
  1099. *
  1100. * Inline UCFG API to be used by HDD/OSIF callers
  1101. *
  1102. * Return: QDF Status
  1103. */
  1104. static inline
  1105. QDF_STATUS ucfg_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  1106. bool *value)
  1107. {
  1108. return wlan_mlme_get_sap_internal_restart(psoc, value);
  1109. }
  1110. /**
  1111. * ucfg_mlme_get_sap_max_modulated_dtim() - get sap max modulated dtim
  1112. * @psoc: pointer to psoc object
  1113. * @value: Value that needs to be set from the caller
  1114. *
  1115. * Inline UCFG API to be used by HDD/OSIF callers
  1116. *
  1117. * Return: QDF Status
  1118. */
  1119. static inline
  1120. QDF_STATUS ucfg_mlme_get_sap_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
  1121. uint8_t *value)
  1122. {
  1123. return wlan_mlme_get_sap_max_modulated_dtim(psoc, value);
  1124. }
  1125. /**
  1126. * ucfg_mlme_get_pref_chan_location() - get sap pref chan location
  1127. * @psoc: pointer to psoc object
  1128. * @value: Value that needs to be set from the caller
  1129. *
  1130. * Inline UCFG API to be used by HDD/OSIF callers
  1131. *
  1132. * Return: QDF Status
  1133. */
  1134. static inline
  1135. QDF_STATUS ucfg_mlme_get_pref_chan_location(struct wlan_objmgr_psoc *psoc,
  1136. uint8_t *value)
  1137. {
  1138. return wlan_mlme_get_sap_chan_pref_location(psoc, value);
  1139. }
  1140. /**
  1141. * ucfg_mlme_get_sap_country_priority() - get sap country code priority
  1142. * @psoc: pointer to psoc object
  1143. * @value: Value that needs to be set from the caller
  1144. *
  1145. * Inline UCFG API to be used by HDD/OSIF callers
  1146. *
  1147. * Return: QDF Status
  1148. */
  1149. static inline
  1150. QDF_STATUS ucfg_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc,
  1151. bool *value)
  1152. {
  1153. return wlan_mlme_get_sap_country_priority(psoc, value);
  1154. }
  1155. /**
  1156. * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon
  1157. * interval
  1158. * @psoc: pointer to psoc object
  1159. * @value: Value that needs to be set from the caller
  1160. *
  1161. * Inline UCFG API to be used by HDD/OSIF callers
  1162. *
  1163. * Return: QDF Status
  1164. */
  1165. static inline
  1166. QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc
  1167. *psoc, int *value)
  1168. {
  1169. return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value);
  1170. }
  1171. /**
  1172. * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel
  1173. * switch rate enabled.
  1174. * @psoc: pointer to psoc object
  1175. * @value: Value that needs to be set from the caller
  1176. *
  1177. * Inline UCFG API to be used by HDD/OSIF callers
  1178. *
  1179. * Return: QDF Status
  1180. */
  1181. static inline
  1182. QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  1183. *psoc, bool *value)
  1184. {
  1185. return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value);
  1186. }
  1187. /**
  1188. * ucfg_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac
  1189. *
  1190. * @psoc: pointer to psoc object
  1191. * @value: Value that needs to be set from the caller
  1192. *
  1193. * Inline UCFG API to be used by HDD/OSIF callers
  1194. *
  1195. * Return: QDF Status
  1196. */
  1197. static inline
  1198. QDF_STATUS ucfg_mlme_get_sap_force_11n_for_11ac(struct wlan_objmgr_psoc
  1199. *psoc, bool *value)
  1200. {
  1201. return wlan_mlme_get_sap_force_11n_for_11ac(psoc, value);
  1202. }
  1203. /**
  1204. * ucfg_mlme_get_go_force_11n_for_11ac() - get the GO 11n for 11ac
  1205. *
  1206. * @psoc: pointer to psoc object
  1207. * @value: Value that needs to be set from the caller
  1208. *
  1209. * Inline UCFG API to be used by HDD/OSIF callers
  1210. *
  1211. * Return: QDF Status
  1212. */
  1213. static inline
  1214. QDF_STATUS ucfg_mlme_get_go_force_11n_for_11ac(struct wlan_objmgr_psoc
  1215. *psoc, bool *value)
  1216. {
  1217. return wlan_mlme_get_go_force_11n_for_11ac(psoc, value);
  1218. }
  1219. /**
  1220. * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable
  1221. * info for STA
  1222. *
  1223. * @psoc: pointer to psoc object
  1224. * @value: pointer to the value which will be filled for the caller
  1225. *
  1226. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1227. * OCE STA feature enable value
  1228. *
  1229. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1230. */
  1231. static inline
  1232. QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  1233. bool *value)
  1234. {
  1235. return wlan_mlme_get_oce_sta_enabled_info(psoc, value);
  1236. }
  1237. /**
  1238. * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable
  1239. * info for SAP
  1240. *
  1241. * @psoc: pointer to psoc object
  1242. * @value: pointer to the value which will be filled for the caller
  1243. *
  1244. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1245. * OCE SAP feature enable value
  1246. *
  1247. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1248. */
  1249. static inline
  1250. QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  1251. bool *value)
  1252. {
  1253. return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
  1254. }
  1255. /**
  1256. * ucfg_mlme_get_ap_protection_mode() - Get ap protection mode info
  1257. * @psoc: pointer to psoc object
  1258. * @value: pointer to the value which will be filled for the caller
  1259. *
  1260. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1261. * ap protection mode value
  1262. *
  1263. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1264. */
  1265. static inline
  1266. QDF_STATUS ucfg_mlme_get_ap_protection_mode(struct wlan_objmgr_psoc *psoc,
  1267. uint16_t *value)
  1268. {
  1269. return wlan_mlme_get_ap_protection_mode(psoc, value);
  1270. }
  1271. /**
  1272. * ucfg_mlme_is_ap_obss_prot_enabled() - Get ap obss protection enable/disable
  1273. * @psoc: pointer to psoc object
  1274. * @value: pointer to the value which will be filled for the caller
  1275. *
  1276. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1277. * obss protection enable value
  1278. *
  1279. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1280. */
  1281. static inline
  1282. QDF_STATUS ucfg_mlme_is_ap_obss_prot_enabled(struct wlan_objmgr_psoc *psoc,
  1283. bool *value)
  1284. {
  1285. return wlan_mlme_is_ap_obss_prot_enabled(psoc, value);
  1286. }
  1287. /**
  1288. * ucfg_mlme_get_rts_threshold() - Get the rts threshold config
  1289. * @psoc: pointer to psoc object
  1290. * @value: pointer to the value which will be filled for the caller
  1291. *
  1292. * Inline UCFG API to be used by HDD/OSIF callers
  1293. *
  1294. * Return: QDF Status
  1295. */
  1296. static inline
  1297. QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1298. uint32_t *value)
  1299. {
  1300. return wlan_mlme_get_rts_threshold(psoc, value);
  1301. }
  1302. /**
  1303. * ucfg_mlme_set_rts_threshold() - Set the rts threshold config
  1304. * @psoc: pointer to psoc object
  1305. * @value: pointer to the value which will be filled for the caller
  1306. *
  1307. * Inline UCFG API to be used by HDD/OSIF callers
  1308. *
  1309. * Return: QDF Status
  1310. */
  1311. static inline
  1312. QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1313. uint32_t value)
  1314. {
  1315. return wlan_mlme_set_rts_threshold(psoc, value);
  1316. }
  1317. /**
  1318. * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
  1319. * config
  1320. * @psoc: pointer to psoc object
  1321. * @value: Value that needs to be set from the caller
  1322. *
  1323. * Inline UCFG API to be used by HDD/OSIF callers
  1324. *
  1325. * Return: QDF Status
  1326. */
  1327. static inline
  1328. QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1329. uint32_t *value)
  1330. {
  1331. return wlan_mlme_get_frag_threshold(psoc, value);
  1332. }
  1333. /**
  1334. * ucfg_mlme_set_frag_threshold() - set the frag threshold config
  1335. * @psoc: pointer to psoc object
  1336. * @value: pointer to the value which will be filled for the caller
  1337. *
  1338. * Inline UCFG API to be used by HDD/OSIF callers
  1339. *
  1340. * Return: QDF Status
  1341. */
  1342. static inline
  1343. QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1344. uint32_t value)
  1345. {
  1346. return wlan_mlme_set_frag_threshold(psoc, value);
  1347. }
  1348. /**
  1349. * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
  1350. *
  1351. * @psoc: pointer to psoc object
  1352. * @value: pointer to the value which will be filled for the caller
  1353. *
  1354. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1355. * fils enable value
  1356. *
  1357. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1358. */
  1359. static inline
  1360. QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1361. bool *value)
  1362. {
  1363. return wlan_mlme_get_fils_enabled_info(psoc, value);
  1364. }
  1365. /**
  1366. * ucfg_mlme_set_fils_enabled_info() - Set fils enable info
  1367. *
  1368. * @psoc: pointer to psoc object
  1369. * @value: value that needs to be set from the caller
  1370. *
  1371. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1372. * fils enable value
  1373. *
  1374. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1375. */
  1376. static inline
  1377. QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1378. bool value)
  1379. {
  1380. return wlan_mlme_set_fils_enabled_info(psoc, value);
  1381. }
  1382. /**
  1383. * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  1384. * @psoc: pointer to psoc object
  1385. * @value: value that needs to be set from the caller
  1386. *
  1387. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1388. * enable bcast probe resp info
  1389. *
  1390. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1391. */
  1392. static inline
  1393. QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1394. bool value)
  1395. {
  1396. return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value);
  1397. }
  1398. /**
  1399. * ucfg_mlme_set_vht_ch_width() - set the vht supported channel width cfg
  1400. * @psoc: psoc context
  1401. * @value: data to be set
  1402. *
  1403. * Inline UCFG API to be used by HDD/OSIF callers
  1404. *
  1405. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1406. */
  1407. static inline
  1408. QDF_STATUS ucfg_mlme_set_vht_ch_width(struct wlan_objmgr_psoc *psoc,
  1409. uint8_t value)
  1410. {
  1411. return wlan_mlme_cfg_set_vht_chan_width(psoc, value);
  1412. }
  1413. /**
  1414. * ucfg_mlme_cfg_get_vht_chan_width() - gets vht supported channel width into
  1415. * cfg item
  1416. * @psoc: psoc context
  1417. * @value: data to be set
  1418. *
  1419. * Inline UCFG API to be used by HDD/OSIF callers
  1420. *
  1421. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1422. */
  1423. static inline
  1424. QDF_STATUS ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1425. uint8_t *value)
  1426. {
  1427. return wlan_mlme_cfg_get_vht_chan_width(psoc, value);
  1428. }
  1429. /**
  1430. * ucfg_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1431. * cfg item
  1432. * @psoc: psoc context
  1433. * @value: data to be set
  1434. *
  1435. * Inline UCFG API to be used by HDD/OSIF callers
  1436. *
  1437. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1438. */
  1439. static inline QDF_STATUS
  1440. ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1441. bool value)
  1442. {
  1443. return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value);
  1444. }
  1445. /**
  1446. * ucfg_mlme_cfg_get_short_gi_160_mhz() - Get SHORT GI 160MHZ from cfg item
  1447. * @psoc: psoc context
  1448. * @value: data to be set
  1449. *
  1450. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1451. * ignore_peer_ht_opmode flag value
  1452. *
  1453. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1454. */
  1455. static inline QDF_STATUS
  1456. ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1457. bool *value)
  1458. {
  1459. return wlan_mlme_cfg_get_short_gi_160_mhz(psoc, value);
  1460. }
  1461. /**
  1462. * ucfg_mlme_cfg_set_short_gi_160_mhz() - sets basic set SHORT GI 160MHZ into
  1463. * cfg item
  1464. * @psoc: psoc context
  1465. * @value: data to be set
  1466. *
  1467. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1468. * ignore_peer_ht_opmode flag value
  1469. *
  1470. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1471. */
  1472. static inline QDF_STATUS
  1473. ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1474. bool value)
  1475. {
  1476. return wlan_mlme_cfg_set_short_gi_160_mhz(psoc, value);
  1477. }
  1478. /**
  1479. * ucfg_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1480. * cfg item
  1481. * @psoc: psoc context
  1482. * @value: pointer to get required data
  1483. *
  1484. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1485. * ignore_peer_ht_opmode flag value
  1486. *
  1487. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1488. */
  1489. static inline QDF_STATUS
  1490. ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1491. bool *value)
  1492. {
  1493. return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value);
  1494. }
  1495. /**
  1496. * ucfg_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1497. * cfg item
  1498. * @psoc: psoc context
  1499. * @value: pointer to get required data
  1500. *
  1501. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1502. * ignore_peer_ht_opmode flag value
  1503. *
  1504. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1505. */
  1506. static inline QDF_STATUS
  1507. ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1508. bool *value)
  1509. {
  1510. return wlan_mlme_cfg_get_vht_rx_stbc(psoc, value);
  1511. }
  1512. /**
  1513. * ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1514. * support cap into cfg item
  1515. * @psoc: psoc context
  1516. * @value: data to be set
  1517. *
  1518. * Inline UCFG API to be used by HDD/OSIF callers
  1519. *
  1520. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1521. */
  1522. static inline QDF_STATUS
  1523. ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1524. uint8_t value)
  1525. {
  1526. return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value);
  1527. }
  1528. /**
  1529. * ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp() - gets vht Beamformee antenna
  1530. * support cap into cfg item
  1531. * @psoc: psoc context
  1532. * @value: data to be set
  1533. *
  1534. * Inline UCFG API to be used by HDD/OSIF callers
  1535. *
  1536. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1537. */
  1538. static inline QDF_STATUS
  1539. ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1540. uint8_t *value)
  1541. {
  1542. return wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(psoc, value);
  1543. }
  1544. /**
  1545. * ucfg_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1546. * cfg item
  1547. * @psoc: psoc context
  1548. * @value: pointer to get required data
  1549. *
  1550. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1551. * ignore_peer_ht_opmode flag value
  1552. *
  1553. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1554. */
  1555. static inline QDF_STATUS
  1556. ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1557. uint32_t *value)
  1558. {
  1559. return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value);
  1560. }
  1561. /**
  1562. * ucfg_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1563. * cfg item
  1564. * @psoc: psoc context
  1565. * @value: data to be set
  1566. *
  1567. * Inline UCFG API to be used by HDD/OSIF callers
  1568. *
  1569. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1570. */
  1571. static inline QDF_STATUS
  1572. ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1573. uint32_t value)
  1574. {
  1575. return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value);
  1576. }
  1577. /**
  1578. * ucfg_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1579. * cfg item
  1580. * @psoc: psoc context
  1581. * @value: pointer to get required data
  1582. *
  1583. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1584. * ignore_peer_ht_opmode flag value
  1585. *
  1586. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1587. */
  1588. static inline QDF_STATUS
  1589. ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1590. uint32_t *value)
  1591. {
  1592. return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value);
  1593. }
  1594. /**
  1595. * ucfg_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1596. * cfg item
  1597. * @psoc: psoc context
  1598. * @value: data to be set
  1599. *
  1600. * Inline UCFG API to be used by HDD/OSIF callers
  1601. *
  1602. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1603. */
  1604. static inline QDF_STATUS
  1605. ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1606. uint32_t value)
  1607. {
  1608. return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value);
  1609. }
  1610. /**
  1611. * ucfg_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data
  1612. * rate into cfg item
  1613. * @psoc: psoc context
  1614. * @value: data to be set
  1615. *
  1616. * Inline UCFG API to be used by HDD/OSIF callers
  1617. *
  1618. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1619. */
  1620. static inline QDF_STATUS
  1621. ucfg_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1622. uint32_t value)
  1623. {
  1624. return wlan_mlme_cfg_set_vht_rx_supp_data_rate(psoc, value);
  1625. }
  1626. /**
  1627. * ucfg_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1628. * cfg item
  1629. * @psoc: psoc context
  1630. * @value: data to be set
  1631. *
  1632. * Inline UCFG API to be used by HDD/OSIF callers
  1633. *
  1634. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1635. */
  1636. static inline QDF_STATUS
  1637. ucfg_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1638. uint32_t value)
  1639. {
  1640. return wlan_mlme_cfg_set_vht_tx_supp_data_rate(psoc, value);
  1641. }
  1642. /**
  1643. * ucfg_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1644. * cfg item
  1645. * @psoc: psoc context
  1646. * @value: data to be set
  1647. *
  1648. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1649. * ignore_peer_ht_opmode flag value
  1650. *
  1651. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1652. */
  1653. static inline QDF_STATUS
  1654. ucfg_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1655. uint32_t *value)
  1656. {
  1657. return wlan_mlme_cfg_get_vht_basic_mcs_set(psoc, value);
  1658. }
  1659. /**
  1660. * ucfg_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1661. * cfg item
  1662. * @psoc: psoc context
  1663. * @value: data to be set
  1664. *
  1665. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1666. * ignore_peer_ht_opmode flag value
  1667. *
  1668. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1669. */
  1670. static inline QDF_STATUS
  1671. ucfg_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1672. uint32_t value)
  1673. {
  1674. return wlan_mlme_cfg_set_vht_basic_mcs_set(psoc, value);
  1675. }
  1676. /**
  1677. * ucfg_mlme_get_vht_enable_tx_bf() - gets enable TXBF for 20MHZ
  1678. * for 11ac
  1679. * @psoc: psoc context
  1680. * @value: data to be set
  1681. *
  1682. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1683. * ignore_peer_ht_opmode flag value
  1684. *
  1685. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1686. */
  1687. static inline QDF_STATUS
  1688. ucfg_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value)
  1689. {
  1690. return wlan_mlme_get_vht_enable_tx_bf(psoc, value);
  1691. }
  1692. /**
  1693. * ucfg_mlme_get_vht_tx_su_beamformer() - gets enable tx_su_beamformer
  1694. * for 11ac
  1695. * @psoc: psoc context
  1696. * @value: data to be set
  1697. *
  1698. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1699. * ignore_peer_ht_opmode flag value
  1700. *
  1701. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1702. */
  1703. static inline QDF_STATUS
  1704. ucfg_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value)
  1705. {
  1706. return wlan_mlme_get_vht_tx_su_beamformer(psoc, value);
  1707. }
  1708. /**
  1709. * ucfg_mlme_get_vht_channel_width() - gets Channel width capability
  1710. * for 11ac
  1711. * @psoc: psoc context
  1712. * @value: data to be set
  1713. *
  1714. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1715. * ignore_peer_ht_opmode flag value
  1716. *
  1717. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1718. */
  1719. static inline QDF_STATUS
  1720. ucfg_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1721. {
  1722. return wlan_mlme_get_vht_channel_width(psoc, value);
  1723. }
  1724. /**
  1725. * ucfg_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1726. * for 11ac
  1727. * @psoc: psoc context
  1728. * @value: data to be set
  1729. *
  1730. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1731. * ignore_peer_ht_opmode flag value
  1732. *
  1733. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1734. */
  1735. static inline QDF_STATUS
  1736. ucfg_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1737. {
  1738. return wlan_mlme_get_vht_rx_mcs_8_9(psoc, value);
  1739. }
  1740. /**
  1741. * ucfg_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1742. * for 11ac
  1743. * @psoc: psoc context
  1744. * @value: data to be set
  1745. *
  1746. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1747. * ignore_peer_ht_opmode flag value
  1748. *
  1749. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1750. */
  1751. static inline QDF_STATUS
  1752. ucfg_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1753. {
  1754. return wlan_mlme_get_vht_tx_mcs_8_9(psoc, value);
  1755. }
  1756. /**
  1757. * ucfg_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1758. * for 11ac
  1759. * @psoc: psoc context
  1760. * @value: data to be set
  1761. *
  1762. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1763. * ignore_peer_ht_opmode flag value
  1764. *
  1765. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1766. */
  1767. static inline QDF_STATUS
  1768. ucfg_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1769. {
  1770. return wlan_mlme_get_vht_rx_mcs_2x2(psoc, value);
  1771. }
  1772. /**
  1773. * ucfg_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1774. * for 11ac
  1775. * @psoc: psoc context
  1776. * @value: data to be set
  1777. *
  1778. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1779. * ignore_peer_ht_opmode flag value
  1780. *
  1781. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1782. */
  1783. static inline QDF_STATUS
  1784. ucfg_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1785. {
  1786. return wlan_mlme_get_vht_tx_mcs_2x2(psoc, value);
  1787. }
  1788. /**
  1789. * ucfg_mlme_get_ini_vdev_config() - get the ini capability of vdev
  1790. * @vdev: pointer to the vdev obj
  1791. *
  1792. * This API will get the ini config of the vdev related to
  1793. * the nss, chains params
  1794. *
  1795. * Return: pointer to the nss, chain param ini cfg structure
  1796. */
  1797. static inline struct wlan_mlme_nss_chains *
  1798. ucfg_mlme_get_ini_vdev_config(struct wlan_objmgr_vdev *vdev)
  1799. {
  1800. return mlme_get_ini_vdev_config(vdev);
  1801. }
  1802. /**
  1803. * ucfg_mlme_get_dynamic_vdev_config() - get the dynamic capability of vdev
  1804. * @vdev: pointer to the vdev obj
  1805. *
  1806. * This API will get the dynamic config of the vdev related to nss,
  1807. * chains params
  1808. *
  1809. * Return: pointer to the nss, chain param dynamic cfg structure
  1810. */
  1811. static inline struct wlan_mlme_nss_chains *
  1812. ucfg_mlme_get_dynamic_vdev_config(struct wlan_objmgr_vdev *vdev)
  1813. {
  1814. return mlme_get_dynamic_vdev_config(vdev);
  1815. }
  1816. /**
  1817. * ucfg_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1818. * @psoc: psoc context
  1819. * @value: data to be set
  1820. *
  1821. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1822. * ignore_peer_ht_opmode flag value
  1823. *
  1824. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1825. */
  1826. static inline QDF_STATUS
  1827. ucfg_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value)
  1828. {
  1829. return wlan_mlme_get_vht20_mcs9(psoc, value);
  1830. }
  1831. /**
  1832. * ucfg_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1833. * @psoc: psoc context
  1834. * @value: data to be set
  1835. *
  1836. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1837. * ignore_peer_ht_opmode flag value
  1838. *
  1839. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1840. */
  1841. static inline QDF_STATUS
  1842. ucfg_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value)
  1843. {
  1844. return wlan_mlme_get_vht_enable2x2(psoc, value);
  1845. }
  1846. /**
  1847. * ucfg_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1848. * @psoc: psoc context
  1849. * @value: data to be set
  1850. *
  1851. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1852. * ignore_peer_ht_opmode flag value
  1853. *
  1854. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1855. */
  1856. static inline QDF_STATUS
  1857. ucfg_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value)
  1858. {
  1859. return wlan_mlme_set_vht_enable2x2(psoc, value);
  1860. }
  1861. /**
  1862. * ucfg_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1863. * @psoc: psoc context
  1864. * @value: data to be set
  1865. *
  1866. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1867. * ignore_peer_ht_opmode flag value
  1868. *
  1869. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1870. */
  1871. static inline QDF_STATUS
  1872. ucfg_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value)
  1873. {
  1874. return wlan_mlme_get_vht_enable_paid(psoc, value);
  1875. }
  1876. /**
  1877. * ucfg_mlme_get_vht_enable_gid() - Enables/disables gid feature
  1878. * @psoc: psoc context
  1879. * @value: data to be set
  1880. *
  1881. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1882. * ignore_peer_ht_opmode flag value
  1883. *
  1884. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1885. */
  1886. static inline QDF_STATUS
  1887. ucfg_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value)
  1888. {
  1889. return wlan_mlme_get_vht_enable_gid(psoc, value);
  1890. }
  1891. /**
  1892. * ucfg_mlme_get_vht_for_24ghz() - Enables/disables vht for 24ghz
  1893. * @psoc: psoc context
  1894. * @value: data to be set
  1895. *
  1896. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1897. * ignore_peer_ht_opmode flag value
  1898. *
  1899. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1900. */
  1901. static inline QDF_STATUS
  1902. ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1903. {
  1904. return wlan_mlme_get_vht_for_24ghz(psoc, value);
  1905. }
  1906. /**
  1907. * ucfg_mlme_get_vendor_vht_for_24ghz() - Enables/disables vendor vht for 24ghz
  1908. * @psoc: psoc context
  1909. * @value: data to be set
  1910. *
  1911. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1912. * ignore_peer_ht_opmode flag value
  1913. *
  1914. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1915. */
  1916. static inline QDF_STATUS
  1917. ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1918. {
  1919. return wlan_mlme_get_vendor_vht_for_24ghz(psoc, value);
  1920. }
  1921. /**
  1922. * ucfg_mlme_update_vht_cap() - Update vht capabilities
  1923. * @psoc: psoc context
  1924. * @value: data to be set
  1925. *
  1926. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1927. * ignore_peer_ht_opmode flag value
  1928. *
  1929. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1930. */
  1931. static inline QDF_STATUS
  1932. ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  1933. struct wma_tgt_vht_cap *cfg)
  1934. {
  1935. return mlme_update_vht_cap(psoc, cfg);
  1936. }
  1937. /**
  1938. * ucfg_mlme_update_nss_vht_cap() -Update the number of spatial
  1939. * streams supported for vht
  1940. * @psoc: psoc context
  1941. * @value: data to be set
  1942. *
  1943. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1944. * ignore_peer_ht_opmode flag value
  1945. *
  1946. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1947. */
  1948. static inline QDF_STATUS
  1949. ucfg_mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc)
  1950. {
  1951. return mlme_update_nss_vht_cap(psoc);
  1952. }
  1953. /**
  1954. * ucfg_mlme_get_opr_rate_set() - Get operational rate set
  1955. * @psoc: pointer to psoc object
  1956. * @buf: buffer to get rates set
  1957. * @len: length of the buffer
  1958. * Return: QDF Status
  1959. */
  1960. QDF_STATUS
  1961. ucfg_mlme_get_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1962. qdf_size_t *len);
  1963. /**
  1964. * ucfg_mlme_get_ext_opr_rate_set() - Get operational rate set
  1965. * @psoc: pointer to psoc object
  1966. * @buf: buffer to get rates set
  1967. * @len: length of the buffer
  1968. * Return: QDF Status
  1969. */
  1970. QDF_STATUS
  1971. ucfg_mlme_get_ext_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1972. qdf_size_t *len);
  1973. /**
  1974. * ucfg_mlme_get_supported_mcs_set() - Get Supported MCS set
  1975. * @psoc: pointer to psoc object
  1976. * @buf: caller buffer to copy mcs set info
  1977. * @len: length of the buffer
  1978. * Return: QDF Status
  1979. */
  1980. QDF_STATUS
  1981. ucfg_mlme_get_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1982. qdf_size_t *len);
  1983. /**
  1984. * ucfg_mlme_set_supported_mcs_set() - Get Supported MCS set
  1985. * @psoc: pointer to psoc object
  1986. * @buf: caller buffer having mcs set info
  1987. * @len: length of the buffer
  1988. * Return: QDF Status
  1989. */
  1990. QDF_STATUS
  1991. ucfg_mlme_set_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1992. qdf_size_t len);
  1993. /**
  1994. * ucfg_mlme_get_current_mcs_set() - Get current MCS set
  1995. * @psoc: pointer to psoc object
  1996. * @buf: caller buffer to copy mcs set info
  1997. * @len: length of the buffer
  1998. * Return: QDF Status
  1999. */
  2000. QDF_STATUS
  2001. ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2002. qdf_size_t *len);
  2003. /**
  2004. * ucfg_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  2005. * for VI
  2006. * @psoc: pointer to psoc object
  2007. * @value: Value that needs to be set from the caller
  2008. *
  2009. * Inline UCFG API to be used by HDD/OSIF callers
  2010. *
  2011. * Return: QDF Status
  2012. */
  2013. static inline QDF_STATUS
  2014. ucfg_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc,
  2015. uint8_t *value)
  2016. {
  2017. return wlan_mlme_get_wmm_dir_ac_vi(psoc, value);
  2018. }
  2019. /**
  2020. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  2021. * MSDU size for VI
  2022. * @psoc: pointer to psoc object
  2023. * @value: Value that needs to be set from the caller
  2024. *
  2025. * Inline UCFG API to be used by HDD/OSIF callers
  2026. *
  2027. * Return: QDF Status
  2028. */
  2029. static inline QDF_STATUS
  2030. ucfg_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  2031. uint16_t *value)
  2032. {
  2033. return wlan_mlme_get_wmm_nom_msdu_size_ac_vi(psoc, value);
  2034. }
  2035. /**
  2036. * ucfg_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  2037. * rate for VI
  2038. * @psoc: pointer to psoc object
  2039. * @value: Value that needs to be set from the caller
  2040. *
  2041. * Inline UCFG API to be used by HDD/OSIF callers
  2042. *
  2043. * Return: QDF Status
  2044. */
  2045. static inline QDF_STATUS
  2046. ucfg_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  2047. uint32_t *value)
  2048. {
  2049. return wlan_mlme_get_wmm_mean_data_rate_ac_vi(psoc, value);
  2050. }
  2051. /**
  2052. * ucfg_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  2053. * rate for VI
  2054. * @psoc: pointer to psoc object
  2055. * @value: Value that needs to be set from the caller
  2056. *
  2057. * Inline UCFG API to be used by HDD/OSIF callers
  2058. *
  2059. * Return: QDF Status
  2060. */
  2061. static inline QDF_STATUS
  2062. ucfg_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  2063. uint32_t *value)
  2064. {
  2065. return wlan_mlme_get_wmm_min_phy_rate_ac_vi(psoc, value);
  2066. }
  2067. /**
  2068. * ucfg_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  2069. * allowance for VI
  2070. * @psoc: pointer to psoc object
  2071. * @value: Value that needs to be set from the caller
  2072. *
  2073. * Inline UCFG API to be used by HDD/OSIF callers
  2074. *
  2075. * Return: QDF Status
  2076. */
  2077. static inline QDF_STATUS
  2078. ucfg_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2079. {
  2080. return wlan_mlme_get_wmm_sba_ac_vi(psoc, value);
  2081. }
  2082. /**
  2083. * ucfg_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  2084. * interval for video
  2085. * @psoc: pointer to psoc object
  2086. * @value: pointer to the value which will be filled for the caller
  2087. *
  2088. * Inline UCFG API to be used by HDD/OSIF callers
  2089. *
  2090. * Return: QDF Status
  2091. */
  2092. static inline QDF_STATUS
  2093. ucfg_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  2094. uint32_t *value)
  2095. {
  2096. return wlan_mlme_get_wmm_uapsd_vi_srv_intv(psoc, value);
  2097. }
  2098. /**
  2099. * ucfg_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  2100. * interval for video
  2101. * @psoc: pointer to psoc object
  2102. * @value: Value that needs to be set from the caller
  2103. *
  2104. * Inline UCFG API to be used by HDD/OSIF callers
  2105. *
  2106. * Return: QDF Status
  2107. */
  2108. static inline QDF_STATUS
  2109. ucfg_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  2110. uint32_t *value)
  2111. {
  2112. return wlan_mlme_get_wmm_uapsd_vi_sus_intv(psoc, value);
  2113. }
  2114. /**
  2115. * ucfg_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  2116. * for BE
  2117. * @psoc: pointer to psoc object
  2118. * @value: Value that needs to be set from the caller
  2119. *
  2120. * Inline UCFG API to be used by HDD/OSIF callers
  2121. *
  2122. * Return: QDF Status
  2123. */
  2124. static inline QDF_STATUS
  2125. ucfg_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2126. {
  2127. return wlan_mlme_get_wmm_dir_ac_be(psoc, value);
  2128. }
  2129. /**
  2130. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  2131. * MSDU size for BE
  2132. * @psoc: pointer to psoc object
  2133. * @value: Value that needs to be set from the caller
  2134. *
  2135. * Inline UCFG API to be used by HDD/OSIF callers
  2136. *
  2137. * Return: QDF Status
  2138. */
  2139. static inline QDF_STATUS
  2140. ucfg_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  2141. uint16_t *value)
  2142. {
  2143. return wlan_mlme_get_wmm_nom_msdu_size_ac_be(psoc, value);
  2144. }
  2145. /**
  2146. * ucfg_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  2147. * rate for BE
  2148. * @psoc: pointer to psoc object
  2149. * @value: Value that needs to be set from the caller
  2150. *
  2151. * Inline UCFG API to be used by HDD/OSIF callers
  2152. *
  2153. * Return: QDF Status
  2154. */
  2155. static inline QDF_STATUS
  2156. ucfg_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  2157. uint32_t *value)
  2158. {
  2159. return wlan_mlme_get_wmm_mean_data_rate_ac_be(psoc, value);
  2160. }
  2161. /**
  2162. * ucfg_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  2163. * rate for BE
  2164. * @psoc: pointer to psoc object
  2165. * @value: Value that needs to be set from the caller
  2166. *
  2167. * Inline UCFG API to be used by HDD/OSIF callers
  2168. *
  2169. * Return: QDF Status
  2170. */
  2171. static inline QDF_STATUS
  2172. ucfg_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  2173. uint32_t *value)
  2174. {
  2175. return wlan_mlme_get_wmm_min_phy_rate_ac_be(psoc, value);
  2176. }
  2177. /**
  2178. * ucfg_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  2179. * allowance for BE
  2180. * @psoc: pointer to psoc object
  2181. * @value: Value that needs to be set from the caller
  2182. *
  2183. * Inline UCFG API to be used by HDD/OSIF callers
  2184. *
  2185. * Return: QDF Status
  2186. */
  2187. static inline QDF_STATUS
  2188. ucfg_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2189. {
  2190. return wlan_mlme_get_wmm_sba_ac_be(psoc, value);
  2191. }
  2192. /**
  2193. * ucfg_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  2194. * interval for BE
  2195. * @psoc: pointer to psoc object
  2196. * @value: pointer to the value which will be filled for the caller
  2197. *
  2198. * Inline UCFG API to be used by HDD/OSIF callers
  2199. *
  2200. * Return: QDF Status
  2201. */
  2202. static inline QDF_STATUS
  2203. ucfg_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  2204. uint32_t *value)
  2205. {
  2206. return wlan_mlme_get_wmm_uapsd_be_srv_intv(psoc, value);
  2207. }
  2208. /**
  2209. * ucfg_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  2210. * interval for BE
  2211. * @psoc: pointer to psoc object
  2212. * @value: Value that needs to be set from the caller
  2213. *
  2214. * Inline UCFG API to be used by HDD/OSIF callers
  2215. *
  2216. * Return: QDF Status
  2217. */
  2218. static inline QDF_STATUS
  2219. ucfg_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  2220. uint32_t *value)
  2221. {
  2222. return wlan_mlme_get_wmm_uapsd_be_sus_intv(psoc, value);
  2223. }
  2224. /**
  2225. * ucfg_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  2226. * for BK
  2227. * @psoc: pointer to psoc object
  2228. * @value: Value that needs to be set from the caller
  2229. *
  2230. * Inline UCFG API to be used by HDD/OSIF callers
  2231. *
  2232. * Return: QDF Status
  2233. */
  2234. static inline QDF_STATUS
  2235. ucfg_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2236. {
  2237. return wlan_mlme_get_wmm_dir_ac_bk(psoc, value);
  2238. }
  2239. /**
  2240. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  2241. * MSDU size for BE
  2242. * @psoc: pointer to psoc object
  2243. * @value: Value that needs to be set from the caller
  2244. *
  2245. * Inline UCFG API to be used by HDD/OSIF callers
  2246. *
  2247. * Return: QDF Status
  2248. */
  2249. static inline QDF_STATUS
  2250. ucfg_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  2251. uint16_t *value)
  2252. {
  2253. return wlan_mlme_get_wmm_nom_msdu_size_ac_bk(psoc, value);
  2254. }
  2255. /**
  2256. * ucfg_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  2257. * rate for BK
  2258. * @psoc: pointer to psoc object
  2259. * @value: Value that needs to be set from the caller
  2260. *
  2261. * Inline UCFG API to be used by HDD/OSIF callers
  2262. *
  2263. * Return: QDF Status
  2264. */
  2265. static inline QDF_STATUS
  2266. ucfg_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  2267. uint32_t *value)
  2268. {
  2269. return wlan_mlme_get_wmm_mean_data_rate_ac_bk(psoc, value);
  2270. }
  2271. /**
  2272. * ucfg_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  2273. * rate for BE
  2274. * @psoc: pointer to psoc object
  2275. * @value: Value that needs to be set from the caller
  2276. *
  2277. * Inline UCFG API to be used by HDD/OSIF callers
  2278. *
  2279. * Return: QDF Status
  2280. */
  2281. static inline QDF_STATUS
  2282. ucfg_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  2283. uint32_t *value)
  2284. {
  2285. return wlan_mlme_get_wmm_min_phy_rate_ac_bk(psoc, value);
  2286. }
  2287. /**
  2288. * ucfg_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  2289. * allowance for BE
  2290. * @psoc: pointer to psoc object
  2291. * @value: Value that needs to be set from the caller
  2292. *
  2293. * Inline UCFG API to be used by HDD/OSIF callers
  2294. *
  2295. * Return: QDF Status
  2296. */
  2297. static inline QDF_STATUS
  2298. ucfg_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2299. {
  2300. return wlan_mlme_get_wmm_sba_ac_bk(psoc, value);
  2301. }
  2302. /**
  2303. * ucfg_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  2304. * interval for BK
  2305. * @psoc: pointer to psoc object
  2306. * @value: pointer to the value which will be filled for the caller
  2307. *
  2308. * Inline UCFG API to be used by HDD/OSIF callers
  2309. *
  2310. * Return: QDF Status
  2311. */
  2312. static inline QDF_STATUS
  2313. ucfg_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  2314. uint32_t *value)
  2315. {
  2316. return wlan_mlme_get_wmm_uapsd_bk_srv_intv(psoc, value);
  2317. }
  2318. /**
  2319. * ucfg_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  2320. * interval for BK
  2321. * @psoc: pointer to psoc object
  2322. * @value: Value that needs to be set from the caller
  2323. *
  2324. * Inline UCFG API to be used by HDD/OSIF callers
  2325. *
  2326. * Return: QDF Status
  2327. */
  2328. static inline QDF_STATUS
  2329. ucfg_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  2330. uint32_t *value)
  2331. {
  2332. return wlan_mlme_get_wmm_uapsd_bk_sus_intv(psoc, value);
  2333. }
  2334. /**
  2335. * ucfg_mlme_get_wmm_mode() - Enable WMM feature
  2336. * @psoc: pointer to psoc object
  2337. * @value: Value that needs to be set from the caller
  2338. *
  2339. * Inline UCFG API to be used by HDD/OSIF callers
  2340. *
  2341. * Return: QDF Status
  2342. */
  2343. static inline QDF_STATUS
  2344. ucfg_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2345. {
  2346. return wlan_mlme_get_wmm_mode(psoc, value);
  2347. }
  2348. #ifdef WLAN_FEATURE_11AX
  2349. /**
  2350. * ucfg_mlme_update_tgt_he_cap() - Update tgt he cap in mlme component
  2351. *
  2352. * @psoc: pointer to psoc object
  2353. * @cfg: pointer to config params from target
  2354. *
  2355. * Inline UCFG API to be used by HDD/OSIF callers to update
  2356. * he caps in mlme.
  2357. *
  2358. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2359. */
  2360. static inline
  2361. QDF_STATUS ucfg_mlme_update_tgt_he_cap(struct wlan_objmgr_psoc *psoc,
  2362. struct wma_tgt_cfg *cfg)
  2363. {
  2364. return mlme_update_tgt_he_caps_in_cfg(psoc, cfg);
  2365. }
  2366. /**
  2367. * ucfg_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio
  2368. * @psoc: pointer to psoc object
  2369. * @value: Value that needs to be set from the caller
  2370. *
  2371. * Return: QDF Status
  2372. */
  2373. static inline
  2374. QDF_STATUS ucfg_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  2375. uint32_t *value)
  2376. {
  2377. return wlan_mlme_cfg_get_he_ul_mumimo(psoc, value);
  2378. }
  2379. /**
  2380. * ucfg_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio
  2381. * @psoc: pointer to psoc object
  2382. * @value: Value that needs to be set from the caller
  2383. *
  2384. * Return: QDF Status
  2385. */
  2386. static inline
  2387. QDF_STATUS ucfg_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  2388. uint32_t value)
  2389. {
  2390. return wlan_mlme_cfg_set_he_ul_mumimo(psoc, value);
  2391. }
  2392. /**
  2393. * ucfg_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo
  2394. * @psoc: pointer to psoc object
  2395. * @value: Value that needs to be set from the caller
  2396. *
  2397. * Return: QDF Status
  2398. */
  2399. static inline
  2400. QDF_STATUS ucfg_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc,
  2401. uint8_t *value)
  2402. {
  2403. return wlan_mlme_cfg_get_enable_ul_mimo(psoc, value);
  2404. }
  2405. /**
  2406. * ucfg_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm
  2407. * @psoc: pointer to psoc object
  2408. * @value: Value that needs to be set from the caller
  2409. *
  2410. * Return: QDF Status
  2411. */
  2412. static inline
  2413. QDF_STATUS ucfg_mlme_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc,
  2414. uint8_t *value)
  2415. {
  2416. return wlan_mlme_cfg_get_enable_ul_ofdm(psoc, value);
  2417. }
  2418. #endif
  2419. /**
  2420. * ucfg_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  2421. * @psoc: pointer to psoc object
  2422. * @value: Value that needs to be set from the caller
  2423. *
  2424. * Inline UCFG API to be used by HDD/OSIF callers
  2425. *
  2426. * Return: QDF Status
  2427. */
  2428. static inline QDF_STATUS
  2429. ucfg_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2430. {
  2431. return wlan_mlme_get_80211e_is_enabled(psoc, value);
  2432. }
  2433. /**
  2434. * ucfg_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  2435. * @psoc: pointer to psoc object
  2436. * @value: Value that needs to be set from the caller
  2437. *
  2438. * Inline UCFG API to be used by HDD/OSIF callers
  2439. *
  2440. * Return: QDF Status
  2441. */
  2442. static inline QDF_STATUS
  2443. ucfg_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2444. {
  2445. return wlan_mlme_get_wmm_uapsd_mask(psoc, value);
  2446. }
  2447. /**
  2448. * ucfg_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  2449. * @psoc: pointer to psoc object
  2450. * @value: Value that needs to be set from the caller
  2451. *
  2452. * Inline UCFG API to be used by HDD/OSIF callers
  2453. *
  2454. * Return: QDF Status
  2455. */
  2456. static inline QDF_STATUS
  2457. ucfg_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  2458. bool *value)
  2459. {
  2460. return wlan_mlme_get_implicit_qos_is_enabled(psoc, value);
  2461. }
  2462. #ifdef FEATURE_WLAN_ESE
  2463. /**
  2464. * ucfg_mlme_get_inactivity_interval() - Infra Inactivity Interval
  2465. * @psoc: pointer to psoc object
  2466. * @value: Value that needs to be get from the caller
  2467. *
  2468. * Inline UCFG API to be used by HDD/OSIF callers
  2469. *
  2470. * Return: None
  2471. */
  2472. static inline void
  2473. ucfg_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
  2474. uint32_t *value)
  2475. {
  2476. wlan_mlme_get_inactivity_interval(psoc, value);
  2477. }
  2478. /**
  2479. * ucfg_mlme_is_ese_enabled() - ese feature enable or not
  2480. * @psoc: pointer to psoc object
  2481. * @val: Pointer to the value which will be filled for the caller
  2482. *
  2483. * Return: QDF Status
  2484. */
  2485. QDF_STATUS
  2486. ucfg_mlme_is_ese_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  2487. #endif /* FEATURE_WLAN_ESE */
  2488. /**
  2489. * ucfg_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
  2490. * @psoc: pointer to psoc object
  2491. * @value: Value that needs to be get from the caller
  2492. *
  2493. * Inline UCFG API to be used by HDD/OSIF callers
  2494. *
  2495. * Return: None
  2496. */
  2497. static inline void
  2498. ucfg_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
  2499. bool *value)
  2500. {
  2501. wlan_mlme_get_is_ts_burst_size_enable(psoc, value);
  2502. }
  2503. /**
  2504. * ucfg_mlme_get_ts_info_ack_policy() - Get TS ack policy
  2505. * @psoc: pointer to psoc object
  2506. * @value: Value that needs to be get from the caller
  2507. *
  2508. * Inline UCFG API to be used by HDD/OSIF callers
  2509. *
  2510. * Return: None
  2511. */
  2512. static inline void
  2513. ucfg_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
  2514. enum mlme_ts_info_ack_policy *value)
  2515. {
  2516. wlan_mlme_get_ts_info_ack_policy(psoc, value);
  2517. }
  2518. /**
  2519. * ucfg_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
  2520. * @psoc: pointer to psoc object
  2521. * @value: Value that needs to be get from the caller
  2522. *
  2523. *
  2524. * Inline UCFG API to be used by HDD/OSIF callers
  2525. *
  2526. * Return: QDF Status
  2527. */
  2528. static inline QDF_STATUS
  2529. ucfg_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value)
  2530. {
  2531. return wlan_mlme_get_ts_acm_value_for_ac(psoc, value);
  2532. }
  2533. /*
  2534. * ucfg_mlme_is_sap_uapsd_enabled() - SAP UAPSD enabled status.
  2535. * @psoc: pointer to psoc object
  2536. * @value: sap uapsd enabled flag value requested from the caller
  2537. *
  2538. * Inline UCFG API to be used by HDD/OSIF callers
  2539. *
  2540. * Return: QDF Status
  2541. */
  2542. static inline QDF_STATUS
  2543. ucfg_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2544. {
  2545. return wlan_mlme_is_sap_uapsd_enabled(psoc, value);
  2546. }
  2547. /*
  2548. * ucfg_mlme_set_sap_uapsd_flag() - SAP UAPSD enabled status.
  2549. * @psoc: pointer to psoc object
  2550. * @value: Value that needs to be set from the caller
  2551. *
  2552. * Inline UCFG API to be used by HDD/OSIF callers
  2553. *
  2554. * Return: QDF Status
  2555. */
  2556. static inline QDF_STATUS
  2557. ucfg_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc, bool value)
  2558. {
  2559. return wlan_mlme_set_sap_uapsd_flag(psoc, value);
  2560. }
  2561. #endif /* _WLAN_MLME_UCFG_API_H_ */