wlan_mlme_ucfg_api.h 74 KB

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