wlan_mlme_ucfg_api.h 54 KB

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