wlan_mlme_ucfg_api.h 65 KB

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