wlan_mlme_ucfg_api.h 62 KB

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