wlan_mlme_ucfg_api.h 57 KB

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