wlan_mlme_ucfg_api.h 89 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463
  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_fine_time_meas_cap() - Get fine timing measurement capability
  737. * @psoc: pointer to psoc object
  738. * @fine_time_meas_cap: Pointer to the value which will be filled for the caller
  739. *
  740. * Return: QDF Status
  741. */
  742. QDF_STATUS
  743. ucfg_mlme_get_fine_time_meas_cap(struct wlan_objmgr_psoc *psoc,
  744. uint32_t *fine_time_meas_cap);
  745. /**
  746. * ucfg_mlme_set_fine_time_meas_cap() - Set fine timing measurement capability
  747. * @psoc: pointer to psoc object
  748. * @fine_time_meas_cap: Value to be set
  749. *
  750. * Return: QDF Status
  751. */
  752. QDF_STATUS
  753. ucfg_mlme_set_fine_time_meas_cap(struct wlan_objmgr_psoc *psoc,
  754. uint32_t fine_time_meas_cap);
  755. /**
  756. * ucfg_mlme_get_pmkid_modes() - Get PMKID modes
  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_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  764. uint32_t *val);
  765. /**
  766. * ucfg_mlme_set_pmkid_modes() - Set PMKID modes
  767. * @psoc: pointer to psoc object
  768. * @val: Pointer to the value which will be filled for the caller
  769. *
  770. * Return: QDF Status
  771. */
  772. QDF_STATUS
  773. ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  774. uint32_t val);
  775. /**
  776. * ucfg_mlme_get_twt_requestor() - Get twt requestor
  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_requestor(struct wlan_objmgr_psoc *psoc,
  784. bool *val);
  785. /**
  786. * ucfg_mlme_set_twt_requestor() - Set twt requestor
  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_requestor(struct wlan_objmgr_psoc *psoc,
  794. bool val);
  795. /**
  796. * ucfg_mlme_get_twt_responder() - Get twt responder
  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_twt_responder(struct wlan_objmgr_psoc *psoc,
  804. bool *val);
  805. /**
  806. * ucfg_mlme_set_twt_responder() - Set twt responder
  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_twt_responder(struct wlan_objmgr_psoc *psoc,
  814. bool val);
  815. /**
  816. * ucfg_mlme_get_bcast_twt() - Get bcast twt
  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_bcast_twt(struct wlan_objmgr_psoc *psoc,
  824. bool *val);
  825. /**
  826. * ucfg_mlme_set_bcast_twt() - Set bcast twt
  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_bcast_twt(struct wlan_objmgr_psoc *psoc,
  834. bool val);
  835. /**
  836. * ucfg_mlme_get_twt_congestion_timeout() - Get twt congestion timeout
  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_twt_congestion_timeout(struct wlan_objmgr_psoc *psoc,
  844. uint32_t *val);
  845. /**
  846. * ucfg_mlme_set_twt_congestion_timeout() - Set twt congestion timeout
  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_twt_congestion_timeout(struct wlan_objmgr_psoc *psoc,
  854. uint32_t val);
  855. /**
  856. * ucfg_mlme_get_enable_twt() - Get global twt config support
  857. * @psoc: pointer to psoc object
  858. * @val: Pointer to the value which will be filled for the caller
  859. *
  860. * Return: QDF Status
  861. */
  862. QDF_STATUS
  863. ucfg_mlme_get_enable_twt(struct wlan_objmgr_psoc *psoc,
  864. bool *val);
  865. /**
  866. * ucfg_mlme_set_enable_twt() - Set global twt config support
  867. * @psoc: pointer to psoc object
  868. * @val: value that needs to set to this config
  869. *
  870. * Return: QDF Status
  871. */
  872. QDF_STATUS
  873. ucfg_mlme_set_enable_twt(struct wlan_objmgr_psoc *psoc,
  874. bool val);
  875. /**
  876. * ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode
  877. * @psoc: pointer to psoc object
  878. * @out_mode: Pointer to the mode which will be filled for the caller
  879. *
  880. * Return: QDF Status
  881. */
  882. QDF_STATUS
  883. ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc,
  884. enum dot11p_mode *out_mode);
  885. /**
  886. * ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self
  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_go_cts2self_for_sta(struct wlan_objmgr_psoc *psoc,
  894. bool *val);
  895. /**
  896. * ucfg_mlme_get_force_rsne_override() - Force rsnie override from user
  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_force_rsne_override(struct wlan_objmgr_psoc *psoc,
  904. bool *val);
  905. /**
  906. * ucfg_mlme_get_qcn_ie_support() - QCN IE support 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_get_qcn_ie_support(struct wlan_objmgr_psoc *psoc,
  914. bool *val);
  915. /**
  916. * ucfg_mlme_get_tgt_gtx_usr_cfg() - Get the target gtx user config
  917. * @psoc: pointer to psoc object
  918. * @val: Pointer to the value which will be filled for the caller
  919. *
  920. * Return: QDF Status
  921. */
  922. QDF_STATUS
  923. ucfg_mlme_get_tgt_gtx_usr_cfg(struct wlan_objmgr_psoc *psoc,
  924. uint32_t *val);
  925. /**
  926. * ucfg_mlme_is_override_ht20_40_24g() - use channel bonding in 2.4 GHz or not
  927. * @psoc: pointer to psoc object
  928. * @val: Pointer to the value which will be filled for the caller
  929. *
  930. * Return: QDF Status
  931. */
  932. QDF_STATUS
  933. ucfg_mlme_is_override_ht20_40_24g(struct wlan_objmgr_psoc *psoc, bool *val);
  934. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  935. /**
  936. * ucfg_mlme_get_roaming_offload() - Get roaming offload setting
  937. * @psoc: pointer to psoc object
  938. * @val: Pointer to enable/disable roaming offload
  939. *
  940. * Return: QDF Status
  941. */
  942. QDF_STATUS
  943. ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  944. bool *val);
  945. /**
  946. * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload
  947. * @psoc: pointer to psoc object
  948. * @val: enable/disable roaming offload
  949. *
  950. * Return: QDF Status
  951. */
  952. QDF_STATUS
  953. ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
  954. bool val);
  955. #endif
  956. /**
  957. * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
  958. * @psoc: pointer to psoc object
  959. * @val: first scan bucket threshold
  960. *
  961. * Return: QDF Status
  962. */
  963. QDF_STATUS
  964. ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
  965. uint8_t *val);
  966. /**
  967. * ucfg_mlme_is_mawc_enabled() - MAWC enabled or not
  968. * @psoc: pointer to psoc object
  969. * @val: Pointer to the value which will be filled for the caller
  970. *
  971. * Return: QDF Status
  972. */
  973. QDF_STATUS
  974. ucfg_mlme_is_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  975. /**
  976. * ucfg_mlme_set_mawc_enabled() - Set MAWC enable or disable
  977. * @psoc: pointer to psoc object
  978. * @val: enable or disable MAWC
  979. *
  980. * Return: QDF Status
  981. */
  982. QDF_STATUS
  983. ucfg_mlme_set_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool val);
  984. /**
  985. * ucfg_mlme_is_fast_transition_enabled() - Fast transition 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_fast_transition_enabled(struct wlan_objmgr_psoc *psoc,
  993. bool *val);
  994. /**
  995. * ucfg_mlme_set_fast_transition_enabled() - Set fast transition enable
  996. * @psoc: pointer to psoc object
  997. * @val: Fast transition enable or disable
  998. *
  999. * Return: QDF Status
  1000. */
  1001. QDF_STATUS
  1002. ucfg_mlme_set_fast_transition_enabled(struct wlan_objmgr_psoc *psoc,
  1003. bool val);
  1004. /**
  1005. * ucfg_mlme_is_roam_scan_offload_enabled() - Roam scan offload enable or not
  1006. * @psoc: pointer to psoc object
  1007. * @val: Pointer to the value which will be filled for the caller
  1008. *
  1009. * Return: QDF Status
  1010. */
  1011. QDF_STATUS
  1012. ucfg_mlme_is_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc,
  1013. bool *val);
  1014. /**
  1015. * ucfg_mlme_set_roam_scan_offload_enabled() - Set roam scan offload enable
  1016. * @psoc: pointer to psoc object
  1017. * @val: Roam scan offload enable or disable
  1018. *
  1019. * Return: QDF Status
  1020. */
  1021. QDF_STATUS
  1022. ucfg_mlme_set_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc,
  1023. bool val);
  1024. /**
  1025. * ucfg_mlme_get_neighbor_scan_max_chan_time() - Get neighbor scan max
  1026. * channel time
  1027. * @psoc: pointer to psoc object
  1028. * @val: Pointer to the value which will be filled for the caller
  1029. *
  1030. * Return: QDF Status
  1031. */
  1032. QDF_STATUS
  1033. ucfg_mlme_get_neighbor_scan_max_chan_time(struct wlan_objmgr_psoc *psoc,
  1034. uint16_t *val);
  1035. /**
  1036. * ucfg_mlme_get_neighbor_scan_min_chan_time() - Get neighbor scan min
  1037. * channel time
  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_neighbor_scan_min_chan_time(struct wlan_objmgr_psoc *psoc,
  1045. uint16_t *val);
  1046. /**
  1047. * ucfg_mlme_get_delay_before_vdev_stop() - Get the delay before vdev stop
  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_delay_before_vdev_stop(struct wlan_objmgr_psoc *psoc,
  1055. uint8_t *val);
  1056. /**
  1057. * ucfg_mlme_get_roam_bmiss_final_bcnt() - Get roam bmiss first count
  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_get_roam_bmiss_final_bcnt(struct wlan_objmgr_psoc *psoc,
  1065. uint8_t *val);
  1066. /**
  1067. * ucfg_mlme_get_roam_bmiss_first_bcnt() - Get roam bmiss final count
  1068. * @psoc: pointer to psoc object
  1069. * @val: Pointer to the value which will be filled for the caller
  1070. *
  1071. * Return: QDF Status
  1072. */
  1073. QDF_STATUS
  1074. ucfg_mlme_get_roam_bmiss_first_bcnt(struct wlan_objmgr_psoc *psoc,
  1075. uint8_t *val);
  1076. /**
  1077. * ucfg_mlme_is_lfr_enabled() - LFR enable or not
  1078. * @psoc: pointer to psoc object
  1079. * @val: Pointer to the value which will be filled for the caller
  1080. *
  1081. * Return: QDF Status
  1082. */
  1083. QDF_STATUS
  1084. ucfg_mlme_is_lfr_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  1085. /**
  1086. * ucfg_mlme_set_lfr_enabled() - Enable or disable LFR
  1087. * @psoc: pointer to psoc object
  1088. * @val: Enable or disable LFR
  1089. *
  1090. * Return: QDF Status
  1091. */
  1092. QDF_STATUS
  1093. ucfg_mlme_set_lfr_enabled(struct wlan_objmgr_psoc *psoc, bool val);
  1094. /**
  1095. * ucfg_mlme_is_roam_prefer_5ghz() - prefer 5ghz or not
  1096. * @psoc: pointer to psoc object
  1097. * @val: Pointer to the value which will be filled for the caller
  1098. *
  1099. * Return: QDF Status
  1100. */
  1101. QDF_STATUS
  1102. ucfg_mlme_is_roam_prefer_5ghz(struct wlan_objmgr_psoc *psoc, bool *val);
  1103. /**
  1104. * ucfg_mlme_set_roam_intra_band() - Set roam intra modes
  1105. * @psoc: pointer to psoc object
  1106. * @val: roam intra modes or not
  1107. *
  1108. * Return: QDF Status
  1109. */
  1110. QDF_STATUS
  1111. ucfg_mlme_set_roam_intra_band(struct wlan_objmgr_psoc *psoc, bool val);
  1112. /**
  1113. * ucfg_mlme_get_home_away_time() - Get home away time
  1114. * @psoc: pointer to psoc object
  1115. * @val: Pointer to the value which will be filled for the caller
  1116. *
  1117. * Return: QDF Status
  1118. */
  1119. QDF_STATUS
  1120. ucfg_mlme_get_home_away_time(struct wlan_objmgr_psoc *psoc, uint16_t *val);
  1121. /**
  1122. * ucfg_mlme_set_fast_roam_in_concurrency_enabled() - Enable fast roam in
  1123. * concurrency
  1124. * @psoc: pointer to psoc object
  1125. * @val: Enable or disable fast roam in concurrency
  1126. *
  1127. * Return: QDF Status
  1128. */
  1129. QDF_STATUS
  1130. ucfg_mlme_set_fast_roam_in_concurrency_enabled(struct wlan_objmgr_psoc *psoc,
  1131. bool val);
  1132. /**
  1133. * ucfg_mlme_get_wmi_wq_watchdog_timeout() - Get timeout for wmi watchdog bite
  1134. * @psoc: pointer to psoc object
  1135. * @wmi_wq_watchdog_timeout: buffer to hold value
  1136. *
  1137. * Return: QDF Status
  1138. */
  1139. QDF_STATUS
  1140. ucfg_mlme_get_wmi_wq_watchdog_timeout(struct wlan_objmgr_psoc *psoc,
  1141. uint32_t *wmi_wq_watchdog_timeout);
  1142. /**
  1143. * ucfg_mlme_set_wmi_wq_watchdog_timeout() - Set timeout for wmi watchdog bite
  1144. * @psoc: pointer to psoc object
  1145. * @wmi_wq_watchdog_timeout: value to be set
  1146. *
  1147. * Return: QDF Status
  1148. */
  1149. QDF_STATUS
  1150. ucfg_mlme_set_wmi_wq_watchdog_timeout(struct wlan_objmgr_psoc *psoc,
  1151. uint32_t wmi_wq_watchdog_timeout);
  1152. /**
  1153. * ucfg_mlme_get_ps_data_inactivity_timeout() - Get data inactivity timeout
  1154. * @psoc: pointer to psoc object
  1155. * @inactivity_timeout: buffer to hold value
  1156. *
  1157. * Return: QDF Status
  1158. */
  1159. QDF_STATUS
  1160. ucfg_mlme_get_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
  1161. uint32_t *inactivity_timeout);
  1162. /**
  1163. * ucfg_mlme_set_ps_data_inactivity_timeout() - Set data inactivity timeout
  1164. * @psoc: pointer to psoc object
  1165. * @inactivity_timeout: value to be set
  1166. *
  1167. * Return: QDF Status
  1168. */
  1169. QDF_STATUS
  1170. ucfg_mlme_set_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
  1171. uint32_t inactivity_timeout);
  1172. /**
  1173. * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval
  1174. * @psoc: pointer to psoc object
  1175. * @value: Value that needs to be set from the caller
  1176. *
  1177. * Inline UCFG API to be used by HDD/OSIF callers
  1178. *
  1179. * Return: QDF Status
  1180. */
  1181. static inline
  1182. QDF_STATUS ucfg_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  1183. int value)
  1184. {
  1185. return wlan_mlme_set_sap_listen_interval(psoc, value);
  1186. }
  1187. /**
  1188. * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  1189. * @psoc: pointer to psoc object
  1190. * @value: Value that needs to be set from the caller
  1191. *
  1192. * Inline UCFG API to be used by HDD/OSIF callers
  1193. *
  1194. * Return: QDF Status
  1195. */
  1196. static inline
  1197. QDF_STATUS ucfg_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  1198. int value)
  1199. {
  1200. return wlan_mlme_set_assoc_sta_limit(psoc, value);
  1201. }
  1202. /**
  1203. * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  1204. * @psoc: pointer to psoc object
  1205. * @value: Value that needs to be set from the caller
  1206. *
  1207. * Inline UCFG API to be used by HDD/OSIF callers
  1208. *
  1209. * Return: QDF Status
  1210. */
  1211. static inline
  1212. QDF_STATUS ucfg_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  1213. int value)
  1214. {
  1215. return wlan_mlme_set_rmc_action_period_freq(psoc, value);
  1216. }
  1217. /**
  1218. * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
  1219. * @psoc: pointer to psoc object
  1220. * @value: Value that needs to be set from the caller
  1221. *
  1222. * Inline UCFG API to be used by HDD/OSIF callers
  1223. *
  1224. * Return: QDF Status
  1225. */
  1226. static inline
  1227. QDF_STATUS ucfg_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  1228. bool *value)
  1229. {
  1230. return wlan_mlme_get_sap_get_peer_info(psoc, value);
  1231. }
  1232. /**
  1233. * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels
  1234. * @psoc: pointer to psoc object
  1235. * @value: Value that needs to be set from the caller
  1236. *
  1237. * Inline UCFG API to be used by HDD/OSIF callers
  1238. *
  1239. * Return: QDF Status
  1240. */
  1241. static inline
  1242. QDF_STATUS ucfg_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  1243. bool *value)
  1244. {
  1245. return wlan_mlme_get_sap_allow_all_channels(psoc, value);
  1246. }
  1247. /**
  1248. * ucfg_mlme_get_sap_max_peers() - get the sap max peers
  1249. * @psoc: pointer to psoc object
  1250. * @value: Value that needs to be set from the caller
  1251. *
  1252. * Inline UCFG API to be used by HDD/OSIF callers
  1253. *
  1254. * Return: QDF Status
  1255. */
  1256. static inline
  1257. QDF_STATUS ucfg_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  1258. int *value)
  1259. {
  1260. return wlan_mlme_get_sap_max_peers(psoc, value);
  1261. }
  1262. /**
  1263. * ucfg_mlme_set_sap_max_peers() - Set the sap max peers
  1264. * @psoc: pointer to psoc object
  1265. * @value: Value that needs to be set from the caller
  1266. *
  1267. * Inline UCFG API to be used by HDD/OSIF callers
  1268. *
  1269. * Return: QDF Status
  1270. */
  1271. static inline
  1272. QDF_STATUS ucfg_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value)
  1273. {
  1274. return wlan_mlme_set_sap_max_peers(psoc, value);
  1275. }
  1276. /**
  1277. * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers
  1278. * @psoc: pointer to psoc object
  1279. * @value: Value that needs to be set from the caller
  1280. *
  1281. * Inline UCFG API to be used by HDD/OSIF callers
  1282. *
  1283. * Return: QDF Status
  1284. */
  1285. static inline
  1286. QDF_STATUS ucfg_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  1287. int *value)
  1288. {
  1289. return wlan_mlme_get_sap_max_offload_peers(psoc, value);
  1290. }
  1291. /**
  1292. * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload
  1293. * reorder buffs
  1294. * @psoc: pointer to psoc object
  1295. * @value: Value that needs to be set from the caller
  1296. *
  1297. * Inline UCFG API to be used by HDD/OSIF callers
  1298. *
  1299. * Return: QDF Status
  1300. */
  1301. static inline
  1302. QDF_STATUS ucfg_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  1303. *psoc, int *value)
  1304. {
  1305. return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value);
  1306. }
  1307. /**
  1308. * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel
  1309. * switch beacon count
  1310. * @psoc: pointer to psoc object
  1311. * @value: Value that needs to be set from the caller
  1312. *
  1313. * Inline UCFG API to be used by HDD/OSIF callers
  1314. *
  1315. * Return: QDF Status
  1316. */
  1317. static inline
  1318. QDF_STATUS ucfg_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  1319. int *value)
  1320. {
  1321. return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value);
  1322. }
  1323. /**
  1324. * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode
  1325. * @psoc: pointer to psoc object
  1326. * @value: Value that needs to be set from the caller
  1327. *
  1328. * Inline UCFG API to be used by HDD/OSIF callers
  1329. *
  1330. * Return: QDF Status
  1331. */
  1332. static inline
  1333. QDF_STATUS ucfg_mlme_get_sap_channel_switch_mode(struct wlan_objmgr_psoc *psoc,
  1334. bool *value)
  1335. {
  1336. return wlan_mlme_get_sap_chn_switch_mode(psoc, value);
  1337. }
  1338. /**
  1339. * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value
  1340. * @psoc: pointer to psoc object
  1341. * @value: Value that needs to be set from the caller
  1342. *
  1343. * Inline UCFG API to be used by HDD/OSIF callers
  1344. *
  1345. * Return: QDF Status
  1346. */
  1347. static inline
  1348. QDF_STATUS ucfg_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  1349. bool *value)
  1350. {
  1351. return wlan_mlme_get_sap_internal_restart(psoc, value);
  1352. }
  1353. /**
  1354. * ucfg_mlme_get_sap_max_modulated_dtim() - get sap max modulated dtim
  1355. * @psoc: pointer to psoc object
  1356. * @value: Value that needs to be set from the caller
  1357. *
  1358. * Inline UCFG API to be used by HDD/OSIF callers
  1359. *
  1360. * Return: QDF Status
  1361. */
  1362. static inline
  1363. QDF_STATUS ucfg_mlme_get_sap_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
  1364. uint8_t *value)
  1365. {
  1366. return wlan_mlme_get_sap_max_modulated_dtim(psoc, value);
  1367. }
  1368. /**
  1369. * ucfg_mlme_get_pref_chan_location() - get sap pref chan location
  1370. * @psoc: pointer to psoc object
  1371. * @value: Value that needs to be set from the caller
  1372. *
  1373. * Inline UCFG API to be used by HDD/OSIF callers
  1374. *
  1375. * Return: QDF Status
  1376. */
  1377. static inline
  1378. QDF_STATUS ucfg_mlme_get_pref_chan_location(struct wlan_objmgr_psoc *psoc,
  1379. uint8_t *value)
  1380. {
  1381. return wlan_mlme_get_sap_chan_pref_location(psoc, value);
  1382. }
  1383. /**
  1384. * ucfg_mlme_get_sap_country_priority() - get sap country code priority
  1385. * @psoc: pointer to psoc object
  1386. * @value: Value that needs to be set from the caller
  1387. *
  1388. * Inline UCFG API to be used by HDD/OSIF callers
  1389. *
  1390. * Return: QDF Status
  1391. */
  1392. static inline
  1393. QDF_STATUS ucfg_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc,
  1394. bool *value)
  1395. {
  1396. return wlan_mlme_get_sap_country_priority(psoc, value);
  1397. }
  1398. /**
  1399. * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon
  1400. * interval
  1401. * @psoc: pointer to psoc object
  1402. * @value: Value that needs to be set from the caller
  1403. *
  1404. * Inline UCFG API to be used by HDD/OSIF callers
  1405. *
  1406. * Return: QDF Status
  1407. */
  1408. static inline
  1409. QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc
  1410. *psoc, int *value)
  1411. {
  1412. return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value);
  1413. }
  1414. /**
  1415. * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel
  1416. * switch rate enabled.
  1417. * @psoc: pointer to psoc object
  1418. * @value: Value that needs to be set from the caller
  1419. *
  1420. * Inline UCFG API to be used by HDD/OSIF callers
  1421. *
  1422. * Return: QDF Status
  1423. */
  1424. static inline
  1425. QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  1426. *psoc, bool *value)
  1427. {
  1428. return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value);
  1429. }
  1430. /**
  1431. * ucfg_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac
  1432. *
  1433. * @psoc: pointer to psoc object
  1434. * @value: Value that needs to be set from the caller
  1435. *
  1436. * Inline UCFG API to be used by HDD/OSIF callers
  1437. *
  1438. * Return: QDF Status
  1439. */
  1440. static inline
  1441. QDF_STATUS ucfg_mlme_get_sap_force_11n_for_11ac(struct wlan_objmgr_psoc
  1442. *psoc, bool *value)
  1443. {
  1444. return wlan_mlme_get_sap_force_11n_for_11ac(psoc, value);
  1445. }
  1446. /**
  1447. * ucfg_mlme_get_go_force_11n_for_11ac() - get the GO 11n for 11ac
  1448. *
  1449. * @psoc: pointer to psoc object
  1450. * @value: Value that needs to be set from the caller
  1451. *
  1452. * Inline UCFG API to be used by HDD/OSIF callers
  1453. *
  1454. * Return: QDF Status
  1455. */
  1456. static inline
  1457. QDF_STATUS ucfg_mlme_get_go_force_11n_for_11ac(struct wlan_objmgr_psoc
  1458. *psoc, bool *value)
  1459. {
  1460. return wlan_mlme_get_go_force_11n_for_11ac(psoc, value);
  1461. }
  1462. /**
  1463. * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable
  1464. * info for STA
  1465. *
  1466. * @psoc: pointer to psoc object
  1467. * @value: pointer to the value which will be filled for the caller
  1468. *
  1469. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1470. * OCE STA feature enable value
  1471. *
  1472. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1473. */
  1474. static inline
  1475. QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  1476. bool *value)
  1477. {
  1478. return wlan_mlme_get_oce_sta_enabled_info(psoc, value);
  1479. }
  1480. /**
  1481. * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable
  1482. * info for SAP
  1483. *
  1484. * @psoc: pointer to psoc object
  1485. * @value: pointer to the value which will be filled for the caller
  1486. *
  1487. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1488. * OCE SAP feature enable value
  1489. *
  1490. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1491. */
  1492. static inline
  1493. QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  1494. bool *value)
  1495. {
  1496. return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
  1497. }
  1498. /**
  1499. * ucfg_mlme_get_ap_protection_mode() - Get ap protection mode info
  1500. * @psoc: pointer to psoc object
  1501. * @value: pointer to the value which will be filled for the caller
  1502. *
  1503. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1504. * ap protection mode value
  1505. *
  1506. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1507. */
  1508. static inline
  1509. QDF_STATUS ucfg_mlme_get_ap_protection_mode(struct wlan_objmgr_psoc *psoc,
  1510. uint16_t *value)
  1511. {
  1512. return wlan_mlme_get_ap_protection_mode(psoc, value);
  1513. }
  1514. /**
  1515. * ucfg_mlme_is_ap_obss_prot_enabled() - Get ap obss protection enable/disable
  1516. * @psoc: pointer to psoc object
  1517. * @value: pointer to the value which will be filled for the caller
  1518. *
  1519. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1520. * obss protection enable value
  1521. *
  1522. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1523. */
  1524. static inline
  1525. QDF_STATUS ucfg_mlme_is_ap_obss_prot_enabled(struct wlan_objmgr_psoc *psoc,
  1526. bool *value)
  1527. {
  1528. return wlan_mlme_is_ap_obss_prot_enabled(psoc, value);
  1529. }
  1530. /**
  1531. * ucfg_mlme_get_rts_threshold() - Get the rts threshold config
  1532. * @psoc: pointer to psoc object
  1533. * @value: pointer to the value which will be filled for the caller
  1534. *
  1535. * Inline UCFG API to be used by HDD/OSIF callers
  1536. *
  1537. * Return: QDF Status
  1538. */
  1539. static inline
  1540. QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1541. uint32_t *value)
  1542. {
  1543. return wlan_mlme_get_rts_threshold(psoc, value);
  1544. }
  1545. /**
  1546. * ucfg_mlme_set_rts_threshold() - Set the rts threshold config
  1547. * @psoc: pointer to psoc object
  1548. * @value: pointer to the value which will be filled for the caller
  1549. *
  1550. * Inline UCFG API to be used by HDD/OSIF callers
  1551. *
  1552. * Return: QDF Status
  1553. */
  1554. static inline
  1555. QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1556. uint32_t value)
  1557. {
  1558. return wlan_mlme_set_rts_threshold(psoc, value);
  1559. }
  1560. /**
  1561. * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
  1562. * config
  1563. * @psoc: pointer to psoc object
  1564. * @value: Value that needs to be set from the caller
  1565. *
  1566. * Inline UCFG API to be used by HDD/OSIF callers
  1567. *
  1568. * Return: QDF Status
  1569. */
  1570. static inline
  1571. QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1572. uint32_t *value)
  1573. {
  1574. return wlan_mlme_get_frag_threshold(psoc, value);
  1575. }
  1576. /**
  1577. * ucfg_mlme_set_frag_threshold() - set the frag threshold config
  1578. * @psoc: pointer to psoc object
  1579. * @value: pointer to the value which will be filled for the caller
  1580. *
  1581. * Inline UCFG API to be used by HDD/OSIF callers
  1582. *
  1583. * Return: QDF Status
  1584. */
  1585. static inline
  1586. QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1587. uint32_t value)
  1588. {
  1589. return wlan_mlme_set_frag_threshold(psoc, value);
  1590. }
  1591. /**
  1592. * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
  1593. *
  1594. * @psoc: pointer to psoc object
  1595. * @value: pointer to the value which will be filled for the caller
  1596. *
  1597. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1598. * fils enable value
  1599. *
  1600. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1601. */
  1602. static inline
  1603. QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1604. bool *value)
  1605. {
  1606. return wlan_mlme_get_fils_enabled_info(psoc, value);
  1607. }
  1608. /**
  1609. * ucfg_mlme_set_fils_enabled_info() - Set fils enable info
  1610. *
  1611. * @psoc: pointer to psoc object
  1612. * @value: value that needs to be set from the caller
  1613. *
  1614. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1615. * fils enable value
  1616. *
  1617. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1618. */
  1619. static inline
  1620. QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1621. bool value)
  1622. {
  1623. return wlan_mlme_set_fils_enabled_info(psoc, value);
  1624. }
  1625. /**
  1626. * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  1627. * @psoc: pointer to psoc object
  1628. * @value: value that needs to be set from the caller
  1629. *
  1630. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1631. * enable bcast probe resp info
  1632. *
  1633. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1634. */
  1635. static inline
  1636. QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1637. bool value)
  1638. {
  1639. return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value);
  1640. }
  1641. /**
  1642. * ucfg_mlme_set_vht_ch_width() - set the vht supported channel width cfg
  1643. * @psoc: psoc context
  1644. * @value: data to be set
  1645. *
  1646. * Inline UCFG API to be used by HDD/OSIF callers
  1647. *
  1648. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1649. */
  1650. static inline
  1651. QDF_STATUS ucfg_mlme_set_vht_ch_width(struct wlan_objmgr_psoc *psoc,
  1652. uint8_t value)
  1653. {
  1654. return wlan_mlme_cfg_set_vht_chan_width(psoc, value);
  1655. }
  1656. /**
  1657. * ucfg_mlme_cfg_get_vht_chan_width() - gets vht supported channel width into
  1658. * cfg item
  1659. * @psoc: psoc context
  1660. * @value: data to be set
  1661. *
  1662. * Inline UCFG API to be used by HDD/OSIF callers
  1663. *
  1664. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1665. */
  1666. static inline
  1667. QDF_STATUS ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1668. uint8_t *value)
  1669. {
  1670. return wlan_mlme_cfg_get_vht_chan_width(psoc, value);
  1671. }
  1672. /**
  1673. * ucfg_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1674. * cfg item
  1675. * @psoc: psoc context
  1676. * @value: data to be set
  1677. *
  1678. * Inline UCFG API to be used by HDD/OSIF callers
  1679. *
  1680. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1681. */
  1682. static inline QDF_STATUS
  1683. ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1684. bool value)
  1685. {
  1686. return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value);
  1687. }
  1688. /**
  1689. * ucfg_mlme_cfg_get_short_gi_160_mhz() - Get SHORT GI 160MHZ from cfg item
  1690. * @psoc: psoc context
  1691. * @value: data to be set
  1692. *
  1693. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1694. * ignore_peer_ht_opmode flag value
  1695. *
  1696. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1697. */
  1698. static inline QDF_STATUS
  1699. ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1700. bool *value)
  1701. {
  1702. return wlan_mlme_cfg_get_short_gi_160_mhz(psoc, value);
  1703. }
  1704. /**
  1705. * ucfg_mlme_cfg_set_short_gi_160_mhz() - sets basic set SHORT GI 160MHZ into
  1706. * cfg item
  1707. * @psoc: psoc context
  1708. * @value: data to be set
  1709. *
  1710. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1711. * ignore_peer_ht_opmode flag value
  1712. *
  1713. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1714. */
  1715. static inline QDF_STATUS
  1716. ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1717. bool value)
  1718. {
  1719. return wlan_mlme_cfg_set_short_gi_160_mhz(psoc, value);
  1720. }
  1721. /**
  1722. * ucfg_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1723. * cfg item
  1724. * @psoc: psoc context
  1725. * @value: pointer to get required data
  1726. *
  1727. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1728. * ignore_peer_ht_opmode flag value
  1729. *
  1730. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1731. */
  1732. static inline QDF_STATUS
  1733. ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1734. bool *value)
  1735. {
  1736. return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value);
  1737. }
  1738. /**
  1739. * ucfg_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1740. * cfg item
  1741. * @psoc: psoc context
  1742. * @value: pointer to get required data
  1743. *
  1744. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1745. * ignore_peer_ht_opmode flag value
  1746. *
  1747. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1748. */
  1749. static inline QDF_STATUS
  1750. ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1751. bool *value)
  1752. {
  1753. return wlan_mlme_cfg_get_vht_rx_stbc(psoc, value);
  1754. }
  1755. /**
  1756. * ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1757. * support cap into cfg item
  1758. * @psoc: psoc context
  1759. * @value: data to be set
  1760. *
  1761. * Inline UCFG API to be used by HDD/OSIF callers
  1762. *
  1763. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1764. */
  1765. static inline QDF_STATUS
  1766. ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1767. uint8_t value)
  1768. {
  1769. return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value);
  1770. }
  1771. /**
  1772. * ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp() - gets vht Beamformee antenna
  1773. * support cap into cfg item
  1774. * @psoc: psoc context
  1775. * @value: data to be set
  1776. *
  1777. * Inline UCFG API to be used by HDD/OSIF callers
  1778. *
  1779. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1780. */
  1781. static inline QDF_STATUS
  1782. ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1783. uint8_t *value)
  1784. {
  1785. return wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(psoc, value);
  1786. }
  1787. /**
  1788. * ucfg_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1789. * cfg item
  1790. * @psoc: psoc context
  1791. * @value: pointer to get required data
  1792. *
  1793. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1794. * ignore_peer_ht_opmode flag value
  1795. *
  1796. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1797. */
  1798. static inline QDF_STATUS
  1799. ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1800. uint32_t *value)
  1801. {
  1802. return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value);
  1803. }
  1804. /**
  1805. * ucfg_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1806. * cfg item
  1807. * @psoc: psoc context
  1808. * @value: data to be set
  1809. *
  1810. * Inline UCFG API to be used by HDD/OSIF callers
  1811. *
  1812. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1813. */
  1814. static inline QDF_STATUS
  1815. ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1816. uint32_t value)
  1817. {
  1818. return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value);
  1819. }
  1820. /**
  1821. * ucfg_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1822. * cfg item
  1823. * @psoc: psoc context
  1824. * @value: pointer to get required data
  1825. *
  1826. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1827. * ignore_peer_ht_opmode flag value
  1828. *
  1829. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1830. */
  1831. static inline QDF_STATUS
  1832. ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1833. uint32_t *value)
  1834. {
  1835. return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value);
  1836. }
  1837. /**
  1838. * ucfg_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1839. * cfg item
  1840. * @psoc: psoc context
  1841. * @value: data to be set
  1842. *
  1843. * Inline UCFG API to be used by HDD/OSIF callers
  1844. *
  1845. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1846. */
  1847. static inline QDF_STATUS
  1848. ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1849. uint32_t value)
  1850. {
  1851. return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value);
  1852. }
  1853. /**
  1854. * ucfg_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data
  1855. * rate into cfg item
  1856. * @psoc: psoc context
  1857. * @value: data to be set
  1858. *
  1859. * Inline UCFG API to be used by HDD/OSIF callers
  1860. *
  1861. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1862. */
  1863. static inline QDF_STATUS
  1864. ucfg_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1865. uint32_t value)
  1866. {
  1867. return wlan_mlme_cfg_set_vht_rx_supp_data_rate(psoc, value);
  1868. }
  1869. /**
  1870. * ucfg_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1871. * cfg item
  1872. * @psoc: psoc context
  1873. * @value: data to be set
  1874. *
  1875. * Inline UCFG API to be used by HDD/OSIF callers
  1876. *
  1877. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1878. */
  1879. static inline QDF_STATUS
  1880. ucfg_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1881. uint32_t value)
  1882. {
  1883. return wlan_mlme_cfg_set_vht_tx_supp_data_rate(psoc, value);
  1884. }
  1885. /**
  1886. * ucfg_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1887. * cfg item
  1888. * @psoc: psoc context
  1889. * @value: data to be set
  1890. *
  1891. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1892. * ignore_peer_ht_opmode flag value
  1893. *
  1894. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1895. */
  1896. static inline QDF_STATUS
  1897. ucfg_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1898. uint32_t *value)
  1899. {
  1900. return wlan_mlme_cfg_get_vht_basic_mcs_set(psoc, value);
  1901. }
  1902. /**
  1903. * ucfg_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1904. * cfg item
  1905. * @psoc: psoc context
  1906. * @value: data to be set
  1907. *
  1908. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1909. * ignore_peer_ht_opmode flag value
  1910. *
  1911. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1912. */
  1913. static inline QDF_STATUS
  1914. ucfg_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1915. uint32_t value)
  1916. {
  1917. return wlan_mlme_cfg_set_vht_basic_mcs_set(psoc, value);
  1918. }
  1919. /**
  1920. * ucfg_mlme_get_vht_enable_tx_bf() - gets enable TXBF for 20MHZ
  1921. * for 11ac
  1922. * @psoc: psoc context
  1923. * @value: data to be set
  1924. *
  1925. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1926. * ignore_peer_ht_opmode flag value
  1927. *
  1928. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1929. */
  1930. static inline QDF_STATUS
  1931. ucfg_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value)
  1932. {
  1933. return wlan_mlme_get_vht_enable_tx_bf(psoc, value);
  1934. }
  1935. /**
  1936. * ucfg_mlme_get_vht_tx_su_beamformer() - gets enable tx_su_beamformer
  1937. * for 11ac
  1938. * @psoc: psoc context
  1939. * @value: data to be set
  1940. *
  1941. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1942. * ignore_peer_ht_opmode flag value
  1943. *
  1944. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1945. */
  1946. static inline QDF_STATUS
  1947. ucfg_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value)
  1948. {
  1949. return wlan_mlme_get_vht_tx_su_beamformer(psoc, value);
  1950. }
  1951. /**
  1952. * ucfg_mlme_get_vht_channel_width() - gets Channel width capability
  1953. * for 11ac
  1954. * @psoc: psoc context
  1955. * @value: data to be set
  1956. *
  1957. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1958. * ignore_peer_ht_opmode flag value
  1959. *
  1960. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1961. */
  1962. static inline QDF_STATUS
  1963. ucfg_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1964. {
  1965. return wlan_mlme_get_vht_channel_width(psoc, value);
  1966. }
  1967. /**
  1968. * ucfg_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1969. * for 11ac
  1970. * @psoc: psoc context
  1971. * @value: data to be set
  1972. *
  1973. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1974. * ignore_peer_ht_opmode flag value
  1975. *
  1976. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1977. */
  1978. static inline QDF_STATUS
  1979. ucfg_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1980. {
  1981. return wlan_mlme_get_vht_rx_mcs_8_9(psoc, value);
  1982. }
  1983. /**
  1984. * ucfg_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1985. * for 11ac
  1986. * @psoc: psoc context
  1987. * @value: data to be set
  1988. *
  1989. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1990. * ignore_peer_ht_opmode flag value
  1991. *
  1992. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1993. */
  1994. static inline QDF_STATUS
  1995. ucfg_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1996. {
  1997. return wlan_mlme_get_vht_tx_mcs_8_9(psoc, value);
  1998. }
  1999. /**
  2000. * ucfg_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  2001. * for 11ac
  2002. * @psoc: psoc context
  2003. * @value: data to be set
  2004. *
  2005. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2006. * ignore_peer_ht_opmode flag value
  2007. *
  2008. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2009. */
  2010. static inline QDF_STATUS
  2011. ucfg_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2012. {
  2013. return wlan_mlme_get_vht_rx_mcs_2x2(psoc, value);
  2014. }
  2015. /**
  2016. * ucfg_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  2017. * for 11ac
  2018. * @psoc: psoc context
  2019. * @value: data to be set
  2020. *
  2021. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2022. * ignore_peer_ht_opmode flag value
  2023. *
  2024. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2025. */
  2026. static inline QDF_STATUS
  2027. ucfg_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2028. {
  2029. return wlan_mlme_get_vht_tx_mcs_2x2(psoc, value);
  2030. }
  2031. /**
  2032. * ucfg_mlme_get_ini_vdev_config() - get the ini capability of vdev
  2033. * @vdev: pointer to the vdev obj
  2034. *
  2035. * This API will get the ini config of the vdev related to
  2036. * the nss, chains params
  2037. *
  2038. * Return: pointer to the nss, chain param ini cfg structure
  2039. */
  2040. static inline struct wlan_mlme_nss_chains *
  2041. ucfg_mlme_get_ini_vdev_config(struct wlan_objmgr_vdev *vdev)
  2042. {
  2043. return mlme_get_ini_vdev_config(vdev);
  2044. }
  2045. /**
  2046. * ucfg_mlme_get_dynamic_vdev_config() - get the dynamic capability of vdev
  2047. * @vdev: pointer to the vdev obj
  2048. *
  2049. * This API will get the dynamic config of the vdev related to nss,
  2050. * chains params
  2051. *
  2052. * Return: pointer to the nss, chain param dynamic cfg structure
  2053. */
  2054. static inline struct wlan_mlme_nss_chains *
  2055. ucfg_mlme_get_dynamic_vdev_config(struct wlan_objmgr_vdev *vdev)
  2056. {
  2057. return mlme_get_dynamic_vdev_config(vdev);
  2058. }
  2059. /**
  2060. * ucfg_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  2061. * @psoc: psoc context
  2062. * @value: data to be set
  2063. *
  2064. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2065. * ignore_peer_ht_opmode flag value
  2066. *
  2067. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2068. */
  2069. static inline QDF_STATUS
  2070. ucfg_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value)
  2071. {
  2072. return wlan_mlme_get_vht20_mcs9(psoc, value);
  2073. }
  2074. /**
  2075. * ucfg_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  2076. * @psoc: psoc context
  2077. * @value: data to be set
  2078. *
  2079. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2080. * ignore_peer_ht_opmode flag value
  2081. *
  2082. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2083. */
  2084. static inline QDF_STATUS
  2085. ucfg_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value)
  2086. {
  2087. return wlan_mlme_get_vht_enable2x2(psoc, value);
  2088. }
  2089. /**
  2090. * ucfg_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  2091. * @psoc: psoc context
  2092. * @value: data to be set
  2093. *
  2094. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2095. * ignore_peer_ht_opmode flag value
  2096. *
  2097. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2098. */
  2099. static inline QDF_STATUS
  2100. ucfg_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value)
  2101. {
  2102. return wlan_mlme_set_vht_enable2x2(psoc, value);
  2103. }
  2104. /**
  2105. * ucfg_mlme_get_vht_enable_paid() - Enables/disables paid feature
  2106. * @psoc: psoc context
  2107. * @value: data to be set
  2108. *
  2109. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2110. * ignore_peer_ht_opmode flag value
  2111. *
  2112. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2113. */
  2114. static inline QDF_STATUS
  2115. ucfg_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value)
  2116. {
  2117. return wlan_mlme_get_vht_enable_paid(psoc, value);
  2118. }
  2119. /**
  2120. * ucfg_mlme_get_vht_enable_gid() - Enables/disables gid feature
  2121. * @psoc: psoc context
  2122. * @value: data to be set
  2123. *
  2124. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2125. * ignore_peer_ht_opmode flag value
  2126. *
  2127. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2128. */
  2129. static inline QDF_STATUS
  2130. ucfg_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value)
  2131. {
  2132. return wlan_mlme_get_vht_enable_gid(psoc, value);
  2133. }
  2134. /**
  2135. * ucfg_mlme_get_vht_for_24ghz() - Enables/disables vht for 24ghz
  2136. * @psoc: psoc context
  2137. * @value: data to be set
  2138. *
  2139. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2140. * ignore_peer_ht_opmode flag value
  2141. *
  2142. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2143. */
  2144. static inline QDF_STATUS
  2145. ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  2146. {
  2147. return wlan_mlme_get_vht_for_24ghz(psoc, value);
  2148. }
  2149. /**
  2150. * ucfg_mlme_get_vendor_vht_for_24ghz() - Enables/disables vendor vht for 24ghz
  2151. * @psoc: psoc context
  2152. * @value: data to be set
  2153. *
  2154. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2155. * ignore_peer_ht_opmode flag value
  2156. *
  2157. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2158. */
  2159. static inline QDF_STATUS
  2160. ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  2161. {
  2162. return wlan_mlme_get_vendor_vht_for_24ghz(psoc, value);
  2163. }
  2164. /**
  2165. * ucfg_mlme_update_vht_cap() - Update vht capabilities
  2166. * @psoc: psoc context
  2167. * @value: data to be set
  2168. *
  2169. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2170. * ignore_peer_ht_opmode flag value
  2171. *
  2172. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2173. */
  2174. static inline QDF_STATUS
  2175. ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  2176. struct wma_tgt_vht_cap *cfg)
  2177. {
  2178. return mlme_update_vht_cap(psoc, cfg);
  2179. }
  2180. /**
  2181. * ucfg_mlme_update_nss_vht_cap() -Update the number of spatial
  2182. * streams supported for vht
  2183. * @psoc: psoc context
  2184. * @value: data to be set
  2185. *
  2186. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2187. * ignore_peer_ht_opmode flag value
  2188. *
  2189. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2190. */
  2191. static inline QDF_STATUS
  2192. ucfg_mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc)
  2193. {
  2194. return mlme_update_nss_vht_cap(psoc);
  2195. }
  2196. /**
  2197. * ucfg_mlme_is_11h_enabled() - Get 11h flag
  2198. * @psoc: pointer to psoc object
  2199. * @value: Value that needs to be set from the caller
  2200. *
  2201. * Inline UCFG API to be used by HDD/OSIF callers
  2202. *
  2203. * Return: QDF Status
  2204. */
  2205. static inline QDF_STATUS
  2206. ucfg_mlme_is_11h_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2207. {
  2208. return wlan_mlme_is_11h_enabled(psoc, value);
  2209. }
  2210. /**
  2211. * ucfg_mlme_set_11h_enabled() - Set 11h flag
  2212. * @psoc: pointer to psoc object
  2213. * @value: Value that needs to be set from the caller
  2214. *
  2215. * Inline UCFG API to be used by HDD/OSIF callers
  2216. *
  2217. * Return: QDF Status
  2218. */
  2219. static inline QDF_STATUS
  2220. ucfg_mlme_set_11h_enabled(struct wlan_objmgr_psoc *psoc, bool value)
  2221. {
  2222. return wlan_mlme_set_11h_enabled(psoc, value);
  2223. }
  2224. /**
  2225. * ucfg_mlme_is_11d_enabled() - Get 11d flag
  2226. * @psoc: pointer to psoc object
  2227. * @value: Value that needs to be set from the caller
  2228. *
  2229. * Inline UCFG API to be used by HDD/OSIF callers
  2230. *
  2231. * Return: QDF Status
  2232. */
  2233. static inline QDF_STATUS
  2234. ucfg_mlme_is_11d_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2235. {
  2236. return wlan_mlme_is_11d_enabled(psoc, value);
  2237. }
  2238. /**
  2239. * ucfg_mlme_set_11d_enabled() - Set 11d flag
  2240. * @psoc: pointer to psoc object
  2241. * @value: Value that needs to be set from the caller
  2242. *
  2243. * Inline UCFG API to be used by HDD/OSIF callers
  2244. *
  2245. * Return: QDF Status
  2246. */
  2247. static inline QDF_STATUS
  2248. ucfg_mlme_set_11d_enabled(struct wlan_objmgr_psoc *psoc, bool value)
  2249. {
  2250. return wlan_mlme_set_11d_enabled(psoc, value);
  2251. }
  2252. /**
  2253. * ucfg_mlme_get_opr_rate_set() - Get operational rate set
  2254. * @psoc: pointer to psoc object
  2255. * @buf: buffer to get rates set
  2256. * @len: length of the buffer
  2257. * Return: QDF Status
  2258. */
  2259. QDF_STATUS
  2260. ucfg_mlme_get_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2261. qdf_size_t *len);
  2262. /**
  2263. * ucfg_mlme_get_ext_opr_rate_set() - Get operational rate set
  2264. * @psoc: pointer to psoc object
  2265. * @buf: buffer to get rates set
  2266. * @len: length of the buffer
  2267. * Return: QDF Status
  2268. */
  2269. QDF_STATUS
  2270. ucfg_mlme_get_ext_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2271. qdf_size_t *len);
  2272. /**
  2273. * ucfg_mlme_get_supported_mcs_set() - Get Supported MCS set
  2274. * @psoc: pointer to psoc object
  2275. * @buf: caller buffer to copy mcs set info
  2276. * @len: length of the buffer
  2277. * Return: QDF Status
  2278. */
  2279. QDF_STATUS
  2280. ucfg_mlme_get_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2281. qdf_size_t *len);
  2282. /**
  2283. * ucfg_mlme_set_supported_mcs_set() - Get Supported MCS set
  2284. * @psoc: pointer to psoc object
  2285. * @buf: caller buffer having mcs set info
  2286. * @len: length of the buffer
  2287. * Return: QDF Status
  2288. */
  2289. QDF_STATUS
  2290. ucfg_mlme_set_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2291. qdf_size_t len);
  2292. /**
  2293. * ucfg_mlme_get_current_mcs_set() - Get current MCS set
  2294. * @psoc: pointer to psoc object
  2295. * @buf: caller buffer to copy mcs set info
  2296. * @len: length of the buffer
  2297. * Return: QDF Status
  2298. */
  2299. QDF_STATUS
  2300. ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2301. qdf_size_t *len);
  2302. /**
  2303. * ucfg_mlme_get_sta_keepalive_method() - Get sta_keepalive_method
  2304. * @psoc: pointer to psoc object
  2305. * @val: Value to pass to the caller
  2306. *
  2307. * Return: QDF Status
  2308. */
  2309. QDF_STATUS
  2310. ucfg_mlme_get_sta_keepalive_method(struct wlan_objmgr_psoc *psoc,
  2311. enum station_keepalive_method *val);
  2312. /**
  2313. * ucfg_mlme_stats_get_periodic_display_time() - get display time
  2314. * @psoc: pointer to psoc object
  2315. * @periodic_display_time: buffer to hold value
  2316. *
  2317. * Return: QDF Status
  2318. */
  2319. QDF_STATUS
  2320. ucfg_mlme_stats_get_periodic_display_time(struct wlan_objmgr_psoc *psoc,
  2321. uint32_t *periodic_display_time);
  2322. /**
  2323. * ucfg_mlme_stats_get_cfg_values() - get stats cfg values
  2324. * @psoc: pointer to psoc object
  2325. * @link_speed_rssi_high: link speed high limit
  2326. * @link_speed_rssi_mid: link speed high mid
  2327. * @link_speed_rssi_low: link speed high low
  2328. * @link_speed_rssi_report: link speed report limit
  2329. *
  2330. * Return: QDF Status
  2331. */
  2332. QDF_STATUS
  2333. ucfg_mlme_stats_get_cfg_values(struct wlan_objmgr_psoc *psoc,
  2334. int *link_speed_rssi_high,
  2335. int *link_speed_rssi_mid,
  2336. int *link_speed_rssi_low,
  2337. uint32_t *link_speed_rssi_report);
  2338. /**
  2339. * ucfg_mlme_stats_is_link_speed_report_actual() - is link speed report set
  2340. * actual
  2341. * @psoc: pointer to psoc object
  2342. *
  2343. * Return: True is report set to actual
  2344. */
  2345. bool
  2346. ucfg_mlme_stats_is_link_speed_report_actual(struct wlan_objmgr_psoc *psoc);
  2347. /**
  2348. * ucfg_mlme_stats_is_link_speed_report_max() - is link speed report set
  2349. * max
  2350. * @psoc: pointer to psoc object
  2351. *
  2352. * Return: True is report set to max
  2353. */
  2354. bool
  2355. ucfg_mlme_stats_is_link_speed_report_max(struct wlan_objmgr_psoc *psoc);
  2356. /**
  2357. * ucfg_mlme_stats_is_link_speed_report_max_scaled() - is link speed report set
  2358. * max scaled
  2359. * @psoc: pointer to psoc object
  2360. *
  2361. * Return: True is report set to max scaled
  2362. */
  2363. bool
  2364. ucfg_mlme_stats_is_link_speed_report_max_scaled(struct wlan_objmgr_psoc *psoc);
  2365. /**
  2366. * ucfg_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  2367. * for VI
  2368. * @psoc: pointer to psoc object
  2369. * @value: Value that needs to be set from the caller
  2370. *
  2371. * Inline UCFG API to be used by HDD/OSIF callers
  2372. *
  2373. * Return: QDF Status
  2374. */
  2375. static inline QDF_STATUS
  2376. ucfg_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc,
  2377. uint8_t *value)
  2378. {
  2379. return wlan_mlme_get_wmm_dir_ac_vi(psoc, value);
  2380. }
  2381. /**
  2382. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  2383. * MSDU size for VI
  2384. * @psoc: pointer to psoc object
  2385. * @value: Value that needs to be set from the caller
  2386. *
  2387. * Inline UCFG API to be used by HDD/OSIF callers
  2388. *
  2389. * Return: QDF Status
  2390. */
  2391. static inline QDF_STATUS
  2392. ucfg_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  2393. uint16_t *value)
  2394. {
  2395. return wlan_mlme_get_wmm_nom_msdu_size_ac_vi(psoc, value);
  2396. }
  2397. /**
  2398. * ucfg_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  2399. * rate for VI
  2400. * @psoc: pointer to psoc object
  2401. * @value: Value that needs to be set from the caller
  2402. *
  2403. * Inline UCFG API to be used by HDD/OSIF callers
  2404. *
  2405. * Return: QDF Status
  2406. */
  2407. static inline QDF_STATUS
  2408. ucfg_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  2409. uint32_t *value)
  2410. {
  2411. return wlan_mlme_get_wmm_mean_data_rate_ac_vi(psoc, value);
  2412. }
  2413. /**
  2414. * ucfg_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  2415. * rate for VI
  2416. * @psoc: pointer to psoc object
  2417. * @value: Value that needs to be set from the caller
  2418. *
  2419. * Inline UCFG API to be used by HDD/OSIF callers
  2420. *
  2421. * Return: QDF Status
  2422. */
  2423. static inline QDF_STATUS
  2424. ucfg_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  2425. uint32_t *value)
  2426. {
  2427. return wlan_mlme_get_wmm_min_phy_rate_ac_vi(psoc, value);
  2428. }
  2429. /**
  2430. * ucfg_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  2431. * allowance for VI
  2432. * @psoc: pointer to psoc object
  2433. * @value: Value that needs to be set from the caller
  2434. *
  2435. * Inline UCFG API to be used by HDD/OSIF callers
  2436. *
  2437. * Return: QDF Status
  2438. */
  2439. static inline QDF_STATUS
  2440. ucfg_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2441. {
  2442. return wlan_mlme_get_wmm_sba_ac_vi(psoc, value);
  2443. }
  2444. /**
  2445. * ucfg_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  2446. * interval for video
  2447. * @psoc: pointer to psoc object
  2448. * @value: pointer to the value which will be filled for the caller
  2449. *
  2450. * Inline UCFG API to be used by HDD/OSIF callers
  2451. *
  2452. * Return: QDF Status
  2453. */
  2454. static inline QDF_STATUS
  2455. ucfg_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  2456. uint32_t *value)
  2457. {
  2458. return wlan_mlme_get_wmm_uapsd_vi_srv_intv(psoc, value);
  2459. }
  2460. /**
  2461. * ucfg_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  2462. * interval for video
  2463. * @psoc: pointer to psoc object
  2464. * @value: Value that needs to be set from the caller
  2465. *
  2466. * Inline UCFG API to be used by HDD/OSIF callers
  2467. *
  2468. * Return: QDF Status
  2469. */
  2470. static inline QDF_STATUS
  2471. ucfg_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  2472. uint32_t *value)
  2473. {
  2474. return wlan_mlme_get_wmm_uapsd_vi_sus_intv(psoc, value);
  2475. }
  2476. /**
  2477. * ucfg_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  2478. * for BE
  2479. * @psoc: pointer to psoc object
  2480. * @value: Value that needs to be set from the caller
  2481. *
  2482. * Inline UCFG API to be used by HDD/OSIF callers
  2483. *
  2484. * Return: QDF Status
  2485. */
  2486. static inline QDF_STATUS
  2487. ucfg_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2488. {
  2489. return wlan_mlme_get_wmm_dir_ac_be(psoc, value);
  2490. }
  2491. /**
  2492. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  2493. * MSDU size for BE
  2494. * @psoc: pointer to psoc object
  2495. * @value: Value that needs to be set from the caller
  2496. *
  2497. * Inline UCFG API to be used by HDD/OSIF callers
  2498. *
  2499. * Return: QDF Status
  2500. */
  2501. static inline QDF_STATUS
  2502. ucfg_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  2503. uint16_t *value)
  2504. {
  2505. return wlan_mlme_get_wmm_nom_msdu_size_ac_be(psoc, value);
  2506. }
  2507. /**
  2508. * ucfg_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  2509. * rate for BE
  2510. * @psoc: pointer to psoc object
  2511. * @value: Value that needs to be set from the caller
  2512. *
  2513. * Inline UCFG API to be used by HDD/OSIF callers
  2514. *
  2515. * Return: QDF Status
  2516. */
  2517. static inline QDF_STATUS
  2518. ucfg_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  2519. uint32_t *value)
  2520. {
  2521. return wlan_mlme_get_wmm_mean_data_rate_ac_be(psoc, value);
  2522. }
  2523. /**
  2524. * ucfg_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  2525. * rate for BE
  2526. * @psoc: pointer to psoc object
  2527. * @value: Value that needs to be set from the caller
  2528. *
  2529. * Inline UCFG API to be used by HDD/OSIF callers
  2530. *
  2531. * Return: QDF Status
  2532. */
  2533. static inline QDF_STATUS
  2534. ucfg_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  2535. uint32_t *value)
  2536. {
  2537. return wlan_mlme_get_wmm_min_phy_rate_ac_be(psoc, value);
  2538. }
  2539. /**
  2540. * ucfg_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  2541. * allowance for BE
  2542. * @psoc: pointer to psoc object
  2543. * @value: Value that needs to be set from the caller
  2544. *
  2545. * Inline UCFG API to be used by HDD/OSIF callers
  2546. *
  2547. * Return: QDF Status
  2548. */
  2549. static inline QDF_STATUS
  2550. ucfg_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2551. {
  2552. return wlan_mlme_get_wmm_sba_ac_be(psoc, value);
  2553. }
  2554. /**
  2555. * ucfg_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  2556. * interval for BE
  2557. * @psoc: pointer to psoc object
  2558. * @value: pointer to the value which will be filled for the caller
  2559. *
  2560. * Inline UCFG API to be used by HDD/OSIF callers
  2561. *
  2562. * Return: QDF Status
  2563. */
  2564. static inline QDF_STATUS
  2565. ucfg_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  2566. uint32_t *value)
  2567. {
  2568. return wlan_mlme_get_wmm_uapsd_be_srv_intv(psoc, value);
  2569. }
  2570. /**
  2571. * ucfg_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  2572. * interval for BE
  2573. * @psoc: pointer to psoc object
  2574. * @value: Value that needs to be set from the caller
  2575. *
  2576. * Inline UCFG API to be used by HDD/OSIF callers
  2577. *
  2578. * Return: QDF Status
  2579. */
  2580. static inline QDF_STATUS
  2581. ucfg_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  2582. uint32_t *value)
  2583. {
  2584. return wlan_mlme_get_wmm_uapsd_be_sus_intv(psoc, value);
  2585. }
  2586. /**
  2587. * ucfg_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  2588. * for BK
  2589. * @psoc: pointer to psoc object
  2590. * @value: Value that needs to be set from the caller
  2591. *
  2592. * Inline UCFG API to be used by HDD/OSIF callers
  2593. *
  2594. * Return: QDF Status
  2595. */
  2596. static inline QDF_STATUS
  2597. ucfg_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2598. {
  2599. return wlan_mlme_get_wmm_dir_ac_bk(psoc, value);
  2600. }
  2601. /**
  2602. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  2603. * MSDU size for BE
  2604. * @psoc: pointer to psoc object
  2605. * @value: Value that needs to be set from the caller
  2606. *
  2607. * Inline UCFG API to be used by HDD/OSIF callers
  2608. *
  2609. * Return: QDF Status
  2610. */
  2611. static inline QDF_STATUS
  2612. ucfg_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  2613. uint16_t *value)
  2614. {
  2615. return wlan_mlme_get_wmm_nom_msdu_size_ac_bk(psoc, value);
  2616. }
  2617. /**
  2618. * ucfg_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  2619. * rate for BK
  2620. * @psoc: pointer to psoc object
  2621. * @value: Value that needs to be set from the caller
  2622. *
  2623. * Inline UCFG API to be used by HDD/OSIF callers
  2624. *
  2625. * Return: QDF Status
  2626. */
  2627. static inline QDF_STATUS
  2628. ucfg_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  2629. uint32_t *value)
  2630. {
  2631. return wlan_mlme_get_wmm_mean_data_rate_ac_bk(psoc, value);
  2632. }
  2633. /**
  2634. * ucfg_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  2635. * rate for BE
  2636. * @psoc: pointer to psoc object
  2637. * @value: Value that needs to be set from the caller
  2638. *
  2639. * Inline UCFG API to be used by HDD/OSIF callers
  2640. *
  2641. * Return: QDF Status
  2642. */
  2643. static inline QDF_STATUS
  2644. ucfg_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  2645. uint32_t *value)
  2646. {
  2647. return wlan_mlme_get_wmm_min_phy_rate_ac_bk(psoc, value);
  2648. }
  2649. /**
  2650. * ucfg_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  2651. * allowance for BE
  2652. * @psoc: pointer to psoc object
  2653. * @value: Value that needs to be set from the caller
  2654. *
  2655. * Inline UCFG API to be used by HDD/OSIF callers
  2656. *
  2657. * Return: QDF Status
  2658. */
  2659. static inline QDF_STATUS
  2660. ucfg_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2661. {
  2662. return wlan_mlme_get_wmm_sba_ac_bk(psoc, value);
  2663. }
  2664. /**
  2665. * ucfg_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  2666. * interval for BK
  2667. * @psoc: pointer to psoc object
  2668. * @value: pointer to the value which will be filled for the caller
  2669. *
  2670. * Inline UCFG API to be used by HDD/OSIF callers
  2671. *
  2672. * Return: QDF Status
  2673. */
  2674. static inline QDF_STATUS
  2675. ucfg_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  2676. uint32_t *value)
  2677. {
  2678. return wlan_mlme_get_wmm_uapsd_bk_srv_intv(psoc, value);
  2679. }
  2680. /**
  2681. * ucfg_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  2682. * interval for BK
  2683. * @psoc: pointer to psoc object
  2684. * @value: Value that needs to be set from the caller
  2685. *
  2686. * Inline UCFG API to be used by HDD/OSIF callers
  2687. *
  2688. * Return: QDF Status
  2689. */
  2690. static inline QDF_STATUS
  2691. ucfg_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  2692. uint32_t *value)
  2693. {
  2694. return wlan_mlme_get_wmm_uapsd_bk_sus_intv(psoc, value);
  2695. }
  2696. /**
  2697. * ucfg_mlme_get_wmm_mode() - Enable WMM feature
  2698. * @psoc: pointer to psoc object
  2699. * @value: Value that needs to be set from the caller
  2700. *
  2701. * Inline UCFG API to be used by HDD/OSIF callers
  2702. *
  2703. * Return: QDF Status
  2704. */
  2705. static inline QDF_STATUS
  2706. ucfg_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2707. {
  2708. return wlan_mlme_get_wmm_mode(psoc, value);
  2709. }
  2710. #ifdef WLAN_FEATURE_11AX
  2711. /**
  2712. * ucfg_mlme_update_tgt_he_cap() - Update tgt he cap in mlme component
  2713. *
  2714. * @psoc: pointer to psoc object
  2715. * @cfg: pointer to config params from target
  2716. *
  2717. * Inline UCFG API to be used by HDD/OSIF callers to update
  2718. * he caps in mlme.
  2719. *
  2720. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2721. */
  2722. static inline
  2723. QDF_STATUS ucfg_mlme_update_tgt_he_cap(struct wlan_objmgr_psoc *psoc,
  2724. struct wma_tgt_cfg *cfg)
  2725. {
  2726. return mlme_update_tgt_he_caps_in_cfg(psoc, cfg);
  2727. }
  2728. /**
  2729. * ucfg_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio
  2730. * @psoc: pointer to psoc object
  2731. * @value: Value that needs to be set from the caller
  2732. *
  2733. * Return: QDF Status
  2734. */
  2735. static inline
  2736. QDF_STATUS ucfg_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  2737. uint32_t *value)
  2738. {
  2739. return wlan_mlme_cfg_get_he_ul_mumimo(psoc, value);
  2740. }
  2741. /**
  2742. * ucfg_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio
  2743. * @psoc: pointer to psoc object
  2744. * @value: Value that needs to be set from the caller
  2745. *
  2746. * Return: QDF Status
  2747. */
  2748. static inline
  2749. QDF_STATUS ucfg_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  2750. uint32_t value)
  2751. {
  2752. return wlan_mlme_cfg_set_he_ul_mumimo(psoc, value);
  2753. }
  2754. /**
  2755. * ucfg_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo
  2756. * @psoc: pointer to psoc object
  2757. * @value: Value that needs to be set from the caller
  2758. *
  2759. * Return: QDF Status
  2760. */
  2761. static inline
  2762. QDF_STATUS ucfg_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc,
  2763. uint8_t *value)
  2764. {
  2765. return wlan_mlme_cfg_get_enable_ul_mimo(psoc, value);
  2766. }
  2767. /**
  2768. * ucfg_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm
  2769. * @psoc: pointer to psoc object
  2770. * @value: Value that needs to be set from the caller
  2771. *
  2772. * Return: QDF Status
  2773. */
  2774. static inline
  2775. QDF_STATUS ucfg_mlme_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc,
  2776. uint8_t *value)
  2777. {
  2778. return wlan_mlme_cfg_get_enable_ul_ofdm(psoc, value);
  2779. }
  2780. #endif
  2781. /**
  2782. * ucfg_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  2783. * @psoc: pointer to psoc object
  2784. * @value: Value that needs to be set from the caller
  2785. *
  2786. * Inline UCFG API to be used by HDD/OSIF callers
  2787. *
  2788. * Return: QDF Status
  2789. */
  2790. static inline QDF_STATUS
  2791. ucfg_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2792. {
  2793. return wlan_mlme_get_80211e_is_enabled(psoc, value);
  2794. }
  2795. /**
  2796. * ucfg_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  2797. * @psoc: pointer to psoc object
  2798. * @value: Value that needs to be set from the caller
  2799. *
  2800. * Inline UCFG API to be used by HDD/OSIF callers
  2801. *
  2802. * Return: QDF Status
  2803. */
  2804. static inline QDF_STATUS
  2805. ucfg_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2806. {
  2807. return wlan_mlme_get_wmm_uapsd_mask(psoc, value);
  2808. }
  2809. /**
  2810. * ucfg_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  2811. * @psoc: pointer to psoc object
  2812. * @value: Value that needs to be set from the caller
  2813. *
  2814. * Inline UCFG API to be used by HDD/OSIF callers
  2815. *
  2816. * Return: QDF Status
  2817. */
  2818. static inline QDF_STATUS
  2819. ucfg_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  2820. bool *value)
  2821. {
  2822. return wlan_mlme_get_implicit_qos_is_enabled(psoc, value);
  2823. }
  2824. #ifdef FEATURE_WLAN_ESE
  2825. /**
  2826. * ucfg_mlme_get_inactivity_interval() - Infra Inactivity Interval
  2827. * @psoc: pointer to psoc object
  2828. * @value: Value that needs to be get from the caller
  2829. *
  2830. * Inline UCFG API to be used by HDD/OSIF callers
  2831. *
  2832. * Return: None
  2833. */
  2834. static inline void
  2835. ucfg_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
  2836. uint32_t *value)
  2837. {
  2838. wlan_mlme_get_inactivity_interval(psoc, value);
  2839. }
  2840. /**
  2841. * ucfg_mlme_is_ese_enabled() - ese feature enable or not
  2842. * @psoc: pointer to psoc object
  2843. * @val: Pointer to the value which will be filled for the caller
  2844. *
  2845. * Return: QDF Status
  2846. */
  2847. QDF_STATUS
  2848. ucfg_mlme_is_ese_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  2849. #endif /* FEATURE_WLAN_ESE */
  2850. /**
  2851. * ucfg_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
  2852. * @psoc: pointer to psoc object
  2853. * @value: Value that needs to be get from the caller
  2854. *
  2855. * Inline UCFG API to be used by HDD/OSIF callers
  2856. *
  2857. * Return: None
  2858. */
  2859. static inline void
  2860. ucfg_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
  2861. bool *value)
  2862. {
  2863. wlan_mlme_get_is_ts_burst_size_enable(psoc, value);
  2864. }
  2865. /**
  2866. * ucfg_mlme_get_ts_info_ack_policy() - Get TS ack policy
  2867. * @psoc: pointer to psoc object
  2868. * @value: Value that needs to be get from the caller
  2869. *
  2870. * Inline UCFG API to be used by HDD/OSIF callers
  2871. *
  2872. * Return: None
  2873. */
  2874. static inline void
  2875. ucfg_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
  2876. enum mlme_ts_info_ack_policy *value)
  2877. {
  2878. wlan_mlme_get_ts_info_ack_policy(psoc, value);
  2879. }
  2880. /**
  2881. * ucfg_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
  2882. * @psoc: pointer to psoc object
  2883. * @value: Value that needs to be get from the caller
  2884. *
  2885. *
  2886. * Inline UCFG API to be used by HDD/OSIF callers
  2887. *
  2888. * Return: QDF Status
  2889. */
  2890. static inline QDF_STATUS
  2891. ucfg_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value)
  2892. {
  2893. return wlan_mlme_get_ts_acm_value_for_ac(psoc, value);
  2894. }
  2895. /*
  2896. * ucfg_mlme_is_sap_uapsd_enabled() - SAP UAPSD enabled status.
  2897. * @psoc: pointer to psoc object
  2898. * @value: sap uapsd enabled flag value requested from the caller
  2899. *
  2900. * Inline UCFG API to be used by HDD/OSIF callers
  2901. *
  2902. * Return: QDF Status
  2903. */
  2904. static inline QDF_STATUS
  2905. ucfg_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2906. {
  2907. return wlan_mlme_is_sap_uapsd_enabled(psoc, value);
  2908. }
  2909. /*
  2910. * ucfg_mlme_set_sap_uapsd_flag() - SAP UAPSD enabled status.
  2911. * @psoc: pointer to psoc object
  2912. * @value: Value that needs to be set from the caller
  2913. *
  2914. * Inline UCFG API to be used by HDD/OSIF callers
  2915. *
  2916. * Return: QDF Status
  2917. */
  2918. static inline QDF_STATUS
  2919. ucfg_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc, bool value)
  2920. {
  2921. return wlan_mlme_set_sap_uapsd_flag(psoc, value);
  2922. }
  2923. /**
  2924. * ucfg_mlme_get_enable_deauth_to_disassoc_map() - Enable deauth_to_disassoc_map
  2925. * @psoc: pointer to psoc object
  2926. * @value: Value that needs to be set from the caller
  2927. *
  2928. * UCFG API to be used by HDD/OSIF callers
  2929. *
  2930. * Return: QDF Status
  2931. */
  2932. QDF_STATUS
  2933. ucfg_mlme_get_enable_deauth_to_disassoc_map(struct wlan_objmgr_psoc *psoc,
  2934. bool *value);
  2935. /**
  2936. * ucfg_mlme_get_ap_random_bssid_enable() - Enable random bssid
  2937. * @psoc: pointer to psoc object
  2938. * @value: Value that needs to be set from the caller
  2939. *
  2940. * UCFG API to be used by HDD/OSIF callers
  2941. *
  2942. * Return: QDF Status
  2943. */
  2944. QDF_STATUS
  2945. ucfg_mlme_get_ap_random_bssid_enable(struct wlan_objmgr_psoc *psoc,
  2946. bool *value);
  2947. /**
  2948. * ucfg_mlme_get_sta_miracast_mcc_rest_time() - Get STA/MIRACAST MCC rest time
  2949. *
  2950. * @psoc: pointer to psoc object
  2951. * @value: value which needs to filled by API
  2952. *
  2953. * This API gives rest time to be used when STA and MIRACAST MCC conc happens
  2954. *
  2955. * Return: QDF_STATUS
  2956. */
  2957. static inline QDF_STATUS
  2958. ucfg_mlme_get_sta_miracast_mcc_rest_time(struct wlan_objmgr_psoc *psoc,
  2959. uint32_t *value)
  2960. {
  2961. return wlan_mlme_get_sta_miracast_mcc_rest_time(psoc, value);
  2962. }
  2963. /**
  2964. * ucfg_mlme_get_sap_mcc_chnl_avoid() - Check if SAP MCC needs to be avoided
  2965. *
  2966. * @psoc: pointer to psoc object
  2967. * @value: value which needs to filled by API
  2968. *
  2969. * This API fetches the user setting to determine if SAP MCC with other persona
  2970. * to be avoided.
  2971. *
  2972. * Return: QDF_STATUS
  2973. */
  2974. static inline QDF_STATUS
  2975. ucfg_mlme_get_sap_mcc_chnl_avoid(struct wlan_objmgr_psoc *psoc,
  2976. uint8_t *value)
  2977. {
  2978. return wlan_mlme_get_sap_mcc_chnl_avoid(psoc, value);
  2979. }
  2980. /**
  2981. * ucfg_mlme_get_mcc_bcast_prob_resp() - Get broadcast probe rsp in MCC
  2982. *
  2983. * @psoc: pointer to psoc object
  2984. * @value: value which needs to filled by API
  2985. *
  2986. * To get INI value which helps to determe whether to enable/disable use of
  2987. * broadcast probe response to increase the detectability of SAP in MCC mode.
  2988. *
  2989. *
  2990. * Return: QDF_STATUS
  2991. */
  2992. static inline QDF_STATUS
  2993. ucfg_mlme_get_mcc_bcast_prob_resp(struct wlan_objmgr_psoc *psoc,
  2994. uint8_t *value)
  2995. {
  2996. return wlan_mlme_get_mcc_bcast_prob_resp(psoc, value);
  2997. }
  2998. /**
  2999. * ucfg_mlme_get_mcc_rts_cts_prot() - To get RTS-CTS protection in MCC.
  3000. *
  3001. * @psoc: pointer to psoc object
  3002. * @value: value which needs to filled by API
  3003. *
  3004. * To get INI value which helps to determine whether to enable/disable
  3005. * use of long duration RTS-CTS protection when SAP goes off
  3006. * channel in MCC mode.
  3007. *
  3008. * Return: QDF_STATUS
  3009. */
  3010. static inline QDF_STATUS
  3011. ucfg_mlme_get_mcc_rts_cts_prot(struct wlan_objmgr_psoc *psoc,
  3012. uint8_t *value)
  3013. {
  3014. return wlan_mlme_get_mcc_rts_cts_prot(psoc, value);
  3015. }
  3016. /**
  3017. * ucfg_mlme_get_mcc_feature() - To find out to enable/disable MCC feature
  3018. *
  3019. * @psoc: pointer to psoc object
  3020. * @value: value which needs to filled by API
  3021. *
  3022. * To get INI value which helps to determine whether to enable MCC feature
  3023. *
  3024. * Return: QDF_STATUS
  3025. */
  3026. static inline QDF_STATUS
  3027. ucfg_mlme_get_mcc_feature(struct wlan_objmgr_psoc *psoc,
  3028. uint8_t *value)
  3029. {
  3030. return wlan_mlme_get_mcc_feature(psoc, value);
  3031. }
  3032. /**
  3033. * ucfg_wlan_mlme_get_rrm_enabled() - Get the rrm enabled
  3034. * @psoc: pointer to psoc object
  3035. * @value: Value that needs to be get from the caller
  3036. *
  3037. * Return: QDF Status
  3038. */
  3039. static inline
  3040. QDF_STATUS ucfg_wlan_mlme_get_rrm_enabled(struct wlan_objmgr_psoc *psoc,
  3041. bool *value)
  3042. {
  3043. return wlan_mlme_get_rrm_enabled(psoc, value);
  3044. }
  3045. /**
  3046. * ucfg_mlme_get_latency_enable() - Get the latency_enable
  3047. * @psoc: pointer to psoc object
  3048. * @value: Value that needs to be get from the caller
  3049. *
  3050. * Return: QDF Status
  3051. */
  3052. QDF_STATUS
  3053. ucfg_mlme_get_latency_enable(struct wlan_objmgr_psoc *psoc, bool *value);
  3054. /**
  3055. * ucfg_mlme_get_dtim_selection_diversity() - get dtim selection diversity
  3056. * bitmap
  3057. * @psoc: pointer to psoc object
  3058. * @dtim_selection_div: value that is requested by the caller
  3059. *
  3060. * Inline UCFG API to be used by HDD/OSIF callers
  3061. *
  3062. * Return: QDF_STATUS_SUCCESS - in case of success
  3063. */
  3064. static inline QDF_STATUS
  3065. ucfg_mlme_get_dtim_selection_diversity(struct wlan_objmgr_psoc *psoc,
  3066. uint32_t *dtim_selection_div)
  3067. {
  3068. return wlan_mlme_get_dtim_selection_diversity(psoc, dtim_selection_div);
  3069. }
  3070. /**
  3071. * ucfg_mlme_get_bmps_min_listen_interval() - get beacon mode powersave
  3072. * minimum listen interval value
  3073. * @psoc: pointer to psoc object
  3074. * @value: value that is requested by the caller
  3075. *
  3076. * Inline UCFG API to be used by HDD/OSIF callers
  3077. *
  3078. * Return: QDF_STATUS_SUCCESS - in case of success
  3079. */
  3080. static inline QDF_STATUS
  3081. ucfg_mlme_get_bmps_min_listen_interval(struct wlan_objmgr_psoc *psoc,
  3082. uint32_t *value)
  3083. {
  3084. return wlan_mlme_get_bmps_min_listen_interval(psoc, value);
  3085. }
  3086. /**
  3087. * ucfg_mlme_get_bmps_max_listen_interval() - get beacon mode powersave
  3088. * maximum listen interval value
  3089. * @psoc: pointer to psoc object
  3090. * @value: value that is requested by the caller
  3091. *
  3092. * Inline UCFG API to be used by HDD/OSIF callers
  3093. *
  3094. * Return: QDF_STATUS_SUCCESS - in case of success
  3095. */
  3096. static inline QDF_STATUS
  3097. ucfg_mlme_get_bmps_max_listen_interval(struct wlan_objmgr_psoc *psoc,
  3098. uint32_t *value)
  3099. {
  3100. return wlan_mlme_get_bmps_max_listen_interval(psoc, value);
  3101. }
  3102. /**
  3103. * ucfg_mlme_get_auto_bmps_timer_value() - get bmps timer value
  3104. * minimum listen interval value
  3105. * @psoc: pointer to psoc object
  3106. * @value: value that is requested by the caller
  3107. *
  3108. * Inline UCFG API to be used by HDD/OSIF callers
  3109. *
  3110. * Return: QDF_STATUS_SUCCESS - in case of success
  3111. */
  3112. static inline QDF_STATUS
  3113. ucfg_mlme_get_auto_bmps_timer_value(struct wlan_objmgr_psoc *psoc,
  3114. uint32_t *value)
  3115. {
  3116. return wlan_mlme_get_auto_bmps_timer_value(psoc, value);
  3117. }
  3118. /**
  3119. * ucfg_mlme_is_bmps_enabled() - check if beacon mode powersave is
  3120. * enabled/disabled
  3121. * @psoc: pointer to psoc object
  3122. * @value: value that is requested by the caller
  3123. *
  3124. * Inline UCFG API to be used by HDD/OSIF callers
  3125. *
  3126. * Return: QDF_STATUS_SUCCESS - in case of success
  3127. */
  3128. static inline QDF_STATUS
  3129. ucfg_mlme_is_bmps_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  3130. {
  3131. return wlan_mlme_is_bmps_enabled(psoc, value);
  3132. }
  3133. /**
  3134. * ucfg_mlme_is_imps_enabled() - check if idle mode powersave is
  3135. * enabled/disabled
  3136. * @psoc: pointer to psoc object
  3137. * @value: value that is requested by the caller
  3138. *
  3139. * Inline UCFG API to be used by HDD/OSIF callers
  3140. *
  3141. * Return: QDF_STATUS_SUCCESS - in case of success
  3142. */
  3143. static inline QDF_STATUS
  3144. ucfg_mlme_is_imps_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  3145. {
  3146. return wlan_mlme_is_imps_enabled(psoc, value);
  3147. }
  3148. /**
  3149. * ucfg_mlme_override_bmps_imps() - disable imps/bmps as part of
  3150. * override to disable all ps features
  3151. * @psoc: pointer to psoc object
  3152. * Inline UCFG API to be used by HDD/OSIF callers
  3153. *
  3154. * Return: QDF_STATUS_SUCCESS - in case of success
  3155. */
  3156. static inline QDF_STATUS
  3157. ucfg_mlme_override_bmps_imps(struct wlan_objmgr_psoc *psoc)
  3158. {
  3159. return wlan_mlme_override_bmps_imps(psoc);
  3160. }
  3161. #ifdef MWS_COEX
  3162. /**
  3163. * ucfg_mlme_get_mws_coex_4g_quick_tdm() - Get mws coex 4g quick tdm
  3164. * @psoc: pointer to psoc object
  3165. * @val: Pointer to the value which will be filled for the caller
  3166. *
  3167. * Return: QDF Status
  3168. */
  3169. QDF_STATUS
  3170. ucfg_mlme_get_mws_coex_4g_quick_tdm(struct wlan_objmgr_psoc *psoc,
  3171. uint32_t *val);
  3172. /**
  3173. * ucfg_mlme_get_mws_coex_5g_nr_pwr_limit() - Get mws coex 5g nr pwr limit
  3174. * @psoc: pointer to psoc object
  3175. * @val: Pointer to the value which will be filled for the caller
  3176. *
  3177. * Return: QDF Status
  3178. */
  3179. QDF_STATUS
  3180. ucfg_mlme_get_mws_coex_5g_nr_pwr_limit(struct wlan_objmgr_psoc *psoc,
  3181. uint32_t *val);
  3182. #endif
  3183. /**
  3184. * ucfg_mlme_get_etsi13_srd_chan_in_master_mode - get etsi13 srd chan
  3185. * in master mode
  3186. * @psoc: pointer to psoc object
  3187. * @val: Pointer to the value which will be filled for the caller
  3188. *
  3189. * Return: QDF Status
  3190. */
  3191. QDF_STATUS
  3192. ucfg_mlme_get_etsi13_srd_chan_in_master_mode(struct wlan_objmgr_psoc *psoc,
  3193. bool *value);
  3194. /**
  3195. * ucfg_mlme_restart_beaconing_on_ch_avoid() - get restart beaconing on ch avoid
  3196. * @psoc: pointer to psoc object
  3197. * @val: Pointer to the value which will be filled for the caller
  3198. *
  3199. * Return: QDF Status
  3200. */
  3201. QDF_STATUS
  3202. ucfg_mlme_get_restart_beaconing_on_ch_avoid(struct wlan_objmgr_psoc *psoc,
  3203. uint32_t *value);
  3204. /**
  3205. * ucfg_mlme_get_indoor_channel_support() - get indoor channel support
  3206. * @psoc: pointer to psoc object
  3207. * @val: Pointer to the value which will be filled for the caller
  3208. *
  3209. * Return: QDF Status
  3210. */
  3211. QDF_STATUS
  3212. ucfg_mlme_get_indoor_channel_support(struct wlan_objmgr_psoc *psoc,
  3213. bool *value);
  3214. /**
  3215. * ucfg_mlme_get_scan_11d_interval() - get scan 11d interval
  3216. * @psoc: pointer to psoc object
  3217. * @val: Pointer to the value which will be filled for the caller
  3218. *
  3219. * Return: QDF Status
  3220. */
  3221. QDF_STATUS
  3222. ucfg_mlme_get_scan_11d_interval(struct wlan_objmgr_psoc *psoc,
  3223. uint32_t *value);
  3224. #endif /* _WLAN_MLME_UCFG_API_H_ */