wlan_mlme_ucfg_api.h 60 KB

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