wlan_mlme_ucfg_api.h 77 KB

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