wlan_mlme_ucfg_api.h 97 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751
  1. /*
  2. * Copyright (c) 2018-2019 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. /**
  84. * ucfg_mlme_global_init() - initialize global mlme ops and structure
  85. *
  86. * Return: QDF Status
  87. */
  88. QDF_STATUS ucfg_mlme_global_init(void);
  89. /**
  90. * ucfg_mlme_global_deinit() - deinitialize global mlme ops and structure
  91. *
  92. * Return: QDF Status
  93. */
  94. QDF_STATUS ucfg_mlme_global_deinit(void);
  95. #else
  96. /**
  97. * ucfg_mlme_pdev_open() - MLME component pdev Open
  98. * @pdev: pointer to pdev object
  99. *
  100. * Open the MLME component and initialize the MLME pdev strucutre
  101. *
  102. * Return: QDF Status
  103. */
  104. static inline QDF_STATUS ucfg_mlme_pdev_open(struct wlan_objmgr_pdev *pdev)
  105. {
  106. return QDF_STATUS_SUCCESS;
  107. }
  108. /**
  109. * ucfg_mlme_pdev_close() - MLME component pdev close
  110. * @pdev: pointer to pdev object
  111. *
  112. * close the MLME pdev information
  113. *
  114. * Return: QDF Status
  115. */
  116. static inline QDF_STATUS ucfg_mlme_pdev_close(struct wlan_objmgr_pdev *pdev)
  117. {
  118. return QDF_STATUS_SUCCESS;
  119. }
  120. /**
  121. * ucfg_mlme_global_init() - initialize global mlme ops and structure
  122. *
  123. * Return: QDF Status
  124. */
  125. static inline QDF_STATUS ucfg_mlme_global_init(void)
  126. {
  127. return QDF_STATUS_SUCCESS;
  128. }
  129. /**
  130. * ucfg_mlme_global_deinit() - deinitialize global mlme ops and structure
  131. *
  132. * Return: QDF Status
  133. */
  134. static inline QDF_STATUS ucfg_mlme_global_deinit(void)
  135. {
  136. return QDF_STATUS_SUCCESS;
  137. }
  138. #endif
  139. /**
  140. * wlan_mlme_get_power_usage() - Get the power usage info
  141. * @psoc: pointer to psoc object
  142. *
  143. * Return: pointer to character array of power usage
  144. */
  145. static inline
  146. char *ucfg_mlme_get_power_usage(struct wlan_objmgr_psoc *psoc)
  147. {
  148. return wlan_mlme_get_power_usage(psoc);
  149. }
  150. /**
  151. * ucfg_get_tx_power() - Get the max tx power in particular band
  152. * @psoc: pointer to psoc object
  153. * @band: 2ghz/5ghz band
  154. *
  155. * Return: value of tx power in the respective band
  156. */
  157. static inline
  158. uint8_t ucfg_get_tx_power(struct wlan_objmgr_psoc *psoc, uint8_t band)
  159. {
  160. return wlan_mlme_get_tx_power(psoc, band);
  161. }
  162. /**
  163. * ucfg_mlme_get_ht_cap_info() - Get the HT cap info config
  164. * @psoc: pointer to psoc object
  165. * @value: pointer to the value which will be filled for the caller
  166. *
  167. * Inline UCFG API to be used by HDD/OSIF callers
  168. *
  169. * Return: QDF Status
  170. */
  171. static inline
  172. QDF_STATUS ucfg_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  173. struct mlme_ht_capabilities_info
  174. *ht_cap_info)
  175. {
  176. return wlan_mlme_get_ht_cap_info(psoc, ht_cap_info);
  177. }
  178. /**
  179. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  180. * @psoc: pointer to psoc object
  181. * @value: Value that needs to be set from the caller
  182. *
  183. * Inline UCFG API to be used by HDD/OSIF callers
  184. *
  185. * Return: QDF Status
  186. */
  187. static inline
  188. QDF_STATUS ucfg_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  189. struct mlme_ht_capabilities_info
  190. ht_cap_info)
  191. {
  192. return wlan_mlme_set_ht_cap_info(psoc, ht_cap_info);
  193. }
  194. /**
  195. * ucfg_mlme_get_max_amsdu_num() - get the max amsdu num
  196. * @psoc: pointer to psoc object
  197. * @value: pointer to the value where the max_amsdu num is to be filled
  198. *
  199. * Return: QDF_STATUS
  200. */
  201. static inline
  202. QDF_STATUS ucfg_mlme_get_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  203. uint8_t *value)
  204. {
  205. return wlan_mlme_get_max_amsdu_num(psoc, value);
  206. }
  207. /**
  208. * ucfg_mlme_set_max_amsdu_num() - set the max amsdu num
  209. * @psoc: pointer to psoc object
  210. * @value: value to be set for max_amsdu_num
  211. *
  212. * Return: QDF_STATUS
  213. */
  214. static inline
  215. QDF_STATUS ucfg_mlme_set_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  216. uint8_t value)
  217. {
  218. return wlan_mlme_set_max_amsdu_num(psoc, value);
  219. }
  220. /**
  221. * ucfg_mlme_get_ht_mpdu_density() - get the ht mpdu density
  222. * @psoc: pointer to psoc object
  223. * @value: pointer to the value where the ht mpdu density is to be filled
  224. *
  225. * Return: QDF_STATUS
  226. */
  227. static inline
  228. QDF_STATUS ucfg_mlme_get_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  229. uint8_t *value)
  230. {
  231. return wlan_mlme_get_ht_mpdu_density(psoc, value);
  232. }
  233. /**
  234. * ucfg_mlme_set_ht_mpdu_density() - set the ht mpdu density
  235. * @psoc: pointer to psoc object
  236. * @value: value to be set for ht mpdu density
  237. *
  238. * Return: QDF_STATUS
  239. */
  240. static inline
  241. QDF_STATUS ucfg_mlme_set_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  242. uint8_t value)
  243. {
  244. return wlan_mlme_set_ht_mpdu_density(psoc, value);
  245. }
  246. /**
  247. * ucfg_mlme_get_band_capability() - Get the Band capability config
  248. * @psoc: pointer to psoc object
  249. * @band_capability: Pointer to the variable from caller
  250. *
  251. * Return: QDF Status
  252. */
  253. static inline
  254. QDF_STATUS ucfg_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  255. uint8_t *band_capability)
  256. {
  257. return wlan_mlme_get_band_capability(psoc, band_capability);
  258. }
  259. /**
  260. * ucfg_mlme_set_band_capability() - Set the Band capability config
  261. * @psoc: pointer to psoc object
  262. * @band_capability: Value to be set from the caller
  263. *
  264. * Return: QDF Status
  265. */
  266. static inline
  267. QDF_STATUS ucfg_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  268. uint8_t band_capability)
  269. {
  270. return wlan_mlme_set_band_capability(psoc, band_capability);
  271. }
  272. /**
  273. * ucfg_mlme_get_prevent_link_down() - Get the prevent link down config
  274. * @psoc: pointer to psoc object
  275. * @prevent_link_down: Pointer to the variable from caller
  276. *
  277. * Return: QDF Status
  278. */
  279. static inline
  280. QDF_STATUS ucfg_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
  281. bool *prevent_link_down)
  282. {
  283. return wlan_mlme_get_prevent_link_down(psoc, prevent_link_down);
  284. }
  285. /**
  286. * ucfg_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
  287. * @psoc: pointer to psoc object
  288. * @select_5ghz_margin: Pointer to the variable from caller
  289. *
  290. * Return: QDF Status
  291. */
  292. static inline
  293. QDF_STATUS ucfg_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
  294. uint8_t *select_5ghz_margin)
  295. {
  296. return wlan_mlme_get_select_5ghz_margin(psoc, select_5ghz_margin);
  297. }
  298. /**
  299. * ucfg_mlme_get_rtt_mac_randomization() - Get the RTT MAC randomization config
  300. * @psoc: pointer to psoc object
  301. * @rtt_mac_randomization: Pointer to the variable from caller
  302. *
  303. * Return: QDF Status
  304. */
  305. static inline
  306. QDF_STATUS ucfg_mlme_get_rtt_mac_randomization(struct wlan_objmgr_psoc *psoc,
  307. bool *rtt_mac_randomization)
  308. {
  309. return wlan_mlme_get_rtt_mac_randomization(psoc, rtt_mac_randomization);
  310. }
  311. /**
  312. * ucfg_mlme_get_crash_inject() - Get the crash inject config
  313. * @psoc: pointer to psoc object
  314. * @crash_inject: Pointer to the variable from caller
  315. *
  316. * Return: QDF Status
  317. */
  318. static inline
  319. QDF_STATUS ucfg_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
  320. bool *crash_inject)
  321. {
  322. return wlan_mlme_get_crash_inject(psoc, crash_inject);
  323. }
  324. /**
  325. * ucfg_mlme_get_lpass_support() - Get the LPASS Support config
  326. * @psoc: pointer to psoc object
  327. * @lpass_support: Pointer to the variable from caller
  328. *
  329. * Return: QDF Status
  330. */
  331. static inline
  332. QDF_STATUS ucfg_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
  333. bool *lpass_support)
  334. {
  335. return wlan_mlme_get_lpass_support(psoc, lpass_support);
  336. }
  337. /**
  338. * ucfg_mlme_get_self_recovery() - Get the self recovery config
  339. * @psoc: pointer to psoc object
  340. * @self_recovery: Pointer to the variable from caller
  341. *
  342. * Return: QDF Status
  343. */
  344. static inline
  345. QDF_STATUS ucfg_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  346. bool *self_recovery)
  347. {
  348. return wlan_mlme_get_self_recovery(psoc, self_recovery);
  349. }
  350. /**
  351. * ucfg_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  352. * @psoc: pointer to psoc object
  353. * @sub_20_chan_width: Pointer to the variable from caller
  354. *
  355. * Return: QDF Status
  356. */
  357. static inline
  358. QDF_STATUS ucfg_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  359. uint8_t *sub_20_chan_width)
  360. {
  361. return wlan_mlme_get_sub_20_chan_width(psoc, sub_20_chan_width);
  362. }
  363. /**
  364. * ucfg_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  365. * @psoc: pointer to psoc object
  366. * @fw_timeout_crash: Pointer to the variable from caller
  367. *
  368. * Return: QDF Status
  369. */
  370. static inline
  371. QDF_STATUS ucfg_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  372. bool *fw_timeout_crash)
  373. {
  374. return wlan_mlme_get_fw_timeout_crash(psoc, fw_timeout_crash);
  375. }
  376. /**
  377. * ucfg_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  378. * @psoc: pointer to psoc object
  379. * @ito_repeat_count: Pointer to the variable from caller
  380. *
  381. * Return: QDF Status
  382. */
  383. static inline
  384. QDF_STATUS ucfg_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  385. uint8_t *ito_repeat_count)
  386. {
  387. return wlan_mlme_get_ito_repeat_count(psoc, ito_repeat_count);
  388. }
  389. /**
  390. * ucfg_mlme_get_acs_with_more_param() - Get the flag for acs with
  391. * more param
  392. * @psoc: pointer to psoc object
  393. * @value: Value that needs to be set from the caller
  394. *
  395. * Inline UCFG API to be used by HDD/OSIF callers
  396. *
  397. * Return: QDF Status
  398. */
  399. static inline
  400. QDF_STATUS ucfg_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  401. bool *value)
  402. {
  403. return wlan_mlme_get_acs_with_more_param(psoc, value);
  404. }
  405. /**
  406. * ucfg_mlme_get_auto_channel_weight() - Get the auto channel select weight
  407. * @psoc: pointer to psoc object
  408. * @value: Value that needs to be set from the caller
  409. *
  410. * Inline UCFG API to be used by HDD/OSIF callers
  411. *
  412. * Return: QDF Status
  413. */
  414. static inline
  415. QDF_STATUS ucfg_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  416. uint32_t *value)
  417. {
  418. return wlan_mlme_get_auto_channel_weight(psoc, value);
  419. }
  420. /**
  421. * ucfg_mlme_get_vendor_acs_support() - Get the flag for
  422. * vendor acs support
  423. * @psoc: pointer to psoc object
  424. * @value: Value that needs to be set from the caller
  425. *
  426. * Inline UCFG API to be used by HDD/OSIF callers
  427. *
  428. * Return: QDF Status
  429. */
  430. static inline
  431. QDF_STATUS ucfg_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  432. bool *value)
  433. {
  434. return wlan_mlme_get_vendor_acs_support(psoc, value);
  435. }
  436. /**
  437. * ucfg_mlme_get_external_acs_policy() - Get flag for external control
  438. * acs policy
  439. * @psoc: pointer to psoc object
  440. * @value: Value that needs to be set from the caller
  441. *
  442. * Inline UCFG API to be used by HDD/OSIF callers
  443. *
  444. * Return: QDF Status
  445. */
  446. static inline QDF_STATUS
  447. ucfg_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  448. bool *value)
  449. {
  450. return wlan_mlme_get_external_acs_policy(psoc, value);
  451. }
  452. /**
  453. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  454. * @psoc: pointer to psoc object
  455. * @value: Value that needs to be set from the caller
  456. *
  457. * Inline UCFG API to be used by HDD/OSIF callers
  458. *
  459. * Return: QDF Status
  460. */
  461. static inline
  462. QDF_STATUS
  463. ucfg_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  464. bool *value)
  465. {
  466. return wlan_mlme_get_acs_support_for_dfs_ltecoex(psoc, value);
  467. }
  468. /**
  469. * ucfg_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction for VO
  470. * @psoc: pointer to psoc object
  471. * @value: Value that needs to be set from the caller
  472. *
  473. * Inline UCFG API to be used by HDD/OSIF callers
  474. *
  475. * Return: QDF Status
  476. */
  477. static inline QDF_STATUS
  478. ucfg_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
  479. uint8_t *value)
  480. {
  481. return wlan_mlme_get_wmm_dir_ac_vo(psoc, value);
  482. }
  483. /**
  484. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  485. * MSDU size for VO
  486. * @psoc: pointer to psoc object
  487. * @value: Value that needs to be set from the caller
  488. *
  489. * Inline UCFG API to be used by HDD/OSIF callers
  490. *
  491. * Return: QDF Status
  492. */
  493. static inline QDF_STATUS
  494. ucfg_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  495. uint16_t *value)
  496. {
  497. return wlan_mlme_get_wmm_nom_msdu_size_ac_vo(psoc, value);
  498. }
  499. /**
  500. * ucfg_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  501. * @psoc: pointer to psoc object
  502. * @value: Value that needs to be set from the caller
  503. *
  504. * Inline UCFG API to be used by HDD/OSIF callers
  505. *
  506. * Return: QDF Status
  507. */
  508. static inline QDF_STATUS
  509. ucfg_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  510. uint32_t *value)
  511. {
  512. return wlan_mlme_get_wmm_mean_data_rate_ac_vo(psoc, value);
  513. }
  514. /**
  515. * ucfg_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  516. * rate for VO
  517. * @psoc: pointer to psoc object
  518. * @value: Value that needs to be set from the caller
  519. *
  520. * Inline UCFG API to be used by HDD/OSIF callers
  521. *
  522. * Return: QDF Status
  523. */
  524. static inline QDF_STATUS
  525. ucfg_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  526. uint32_t *value)
  527. {
  528. return wlan_mlme_get_wmm_min_phy_rate_ac_vo(psoc, value);
  529. }
  530. /**
  531. * ucfg_mlme_get_wmm_sba_ac_vo() - surplus bandwidth
  532. * allowance for VO
  533. * @psoc: pointer to psoc object
  534. * @value: Value that needs to be set from the caller
  535. *
  536. * Inline UCFG API to be used by HDD/OSIF callers
  537. *
  538. * Return: QDF Status
  539. */
  540. static inline QDF_STATUS
  541. ucfg_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc,
  542. uint16_t *value)
  543. {
  544. return wlan_mlme_get_wmm_sba_ac_vo(psoc, value);
  545. }
  546. /**
  547. * ucfg_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  548. * interval for voice
  549. * @psoc: pointer to psoc object
  550. * @value: pointer to the value which will be filled for the caller
  551. *
  552. * Inline UCFG API to be used by HDD/OSIF callers
  553. *
  554. * Return: QDF Status
  555. */
  556. static inline QDF_STATUS
  557. ucfg_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  558. uint32_t *value)
  559. {
  560. return wlan_mlme_get_wmm_uapsd_vo_srv_intv(psoc, value);
  561. }
  562. /**
  563. * ucfg_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  564. * interval for voice
  565. * @psoc: pointer to psoc object
  566. * @value: Value that needs to be set from the caller
  567. *
  568. * Inline UCFG API to be used by HDD/OSIF callers
  569. *
  570. * Return: QDF Status
  571. */
  572. static inline QDF_STATUS
  573. ucfg_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  574. uint32_t *value)
  575. {
  576. return wlan_mlme_get_wmm_uapsd_vo_sus_intv(psoc, value);
  577. }
  578. /**
  579. *
  580. * ucfg_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  581. * override flag is set.
  582. * @psoc: pointer to psoc object
  583. * @sme_config - Sme config struct
  584. *
  585. * Inline UCFG API to be used by HDD/OSIF callers to call
  586. * the mlme function wlan_mlme_get_sap_inactivity_override
  587. *
  588. * Return: QDF Status
  589. */
  590. static inline
  591. void ucfg_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  592. bool *value)
  593. {
  594. wlan_mlme_get_sap_inactivity_override(psoc, value);
  595. }
  596. /**
  597. * ucfg_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  598. *
  599. * @psoc: pointer to psoc object
  600. * @value: Value that needs to be set from the caller
  601. *
  602. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  603. */
  604. static inline
  605. QDF_STATUS ucfg_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  606. uint8_t *value)
  607. {
  608. return wlan_mlme_get_tx_chainmask_1ss(psoc, value);
  609. }
  610. /**
  611. * ucfg_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  612. *
  613. * @psoc: pointer to psoc object
  614. * @value: Value that needs to be set from the caller
  615. *
  616. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  617. */
  618. static inline
  619. QDF_STATUS ucfg_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  620. uint16_t *value)
  621. {
  622. return wlan_mlme_get_num_11b_tx_chains(psoc, value);
  623. }
  624. /**
  625. * ucfg_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  626. *
  627. * @psoc: pointer to psoc object
  628. * @value: Value that needs to be set from the caller
  629. *
  630. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  631. */
  632. static inline
  633. QDF_STATUS ucfg_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  634. uint16_t *value)
  635. {
  636. return wlan_mlme_get_num_11ag_tx_chains(psoc, value);
  637. }
  638. /**
  639. * ucfg_mlme_get_bt_chain_separation_flag() - bt chain separation enable/disable
  640. * @psoc: pointer to psoc object
  641. * @value: Value that needs to be got for the caller
  642. *
  643. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  644. */
  645. static inline
  646. QDF_STATUS ucfg_mlme_get_bt_chain_separation_flag(struct wlan_objmgr_psoc *psoc,
  647. bool *value)
  648. {
  649. return wlan_mlme_get_bt_chain_separation_flag(psoc, value);
  650. }
  651. /**
  652. * ucfg_mlme_configure_chain_mask() - configure chainmask parameters
  653. *
  654. * @psoc: pointer to psoc object
  655. * @session_id: vdev_id
  656. *
  657. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  658. */
  659. static inline
  660. QDF_STATUS ucfg_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  661. uint8_t session_id)
  662. {
  663. return wlan_mlme_configure_chain_mask(psoc, session_id);
  664. }
  665. /*
  666. * ucfg_mlme_get_sta_keep_alive_period() - Get the sta keep alive period
  667. * @psoc: pointer to psoc object
  668. * @val: Pointer to the value which will be filled for the caller
  669. *
  670. * Return: QDF Status
  671. */
  672. QDF_STATUS
  673. ucfg_mlme_get_sta_keep_alive_period(struct wlan_objmgr_psoc *psoc,
  674. uint32_t *val);
  675. /*
  676. * ucfg_mlme_get_dfs_master_capability() - Get the dfs master capability
  677. * @psoc: pointer to psoc object
  678. * @val: 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_master_capability(struct wlan_objmgr_psoc *psoc,
  684. bool *val);
  685. /*
  686. * ucfg_mlme_get_dfs_disable_channel_switch() - Get the dfs channel switch
  687. * @psoc: pointer to psoc object
  688. * @dfs_disable_channel_switch: Pointer to the value which will be filled
  689. *
  690. * Return: QDF Status
  691. */
  692. QDF_STATUS
  693. ucfg_mlme_get_dfs_disable_channel_switch(struct wlan_objmgr_psoc *psoc,
  694. bool *dfs_disable_channel_switch);
  695. /*
  696. * ucfg_mlme_set_dfs_disable_channel_switch() - Set the dfs channel switch
  697. * @psoc: pointer to psoc object
  698. * @dfs_disable_channel_switch: Value that needs to be set.
  699. *
  700. * Return: QDF Status
  701. */
  702. QDF_STATUS
  703. ucfg_mlme_set_dfs_disable_channel_switch(struct wlan_objmgr_psoc *psoc,
  704. bool dfs_disable_channel_switch);
  705. /*
  706. * ucfg_mlme_get_dfs_ignore_cac() - GSet the dfs ignore cac
  707. * @psoc: pointer to psoc object
  708. * @dfs_ignore_cac: Pointer to the value which will be filled for the caller
  709. *
  710. * Return: QDF Status
  711. */
  712. QDF_STATUS
  713. ucfg_mlme_get_dfs_ignore_cac(struct wlan_objmgr_psoc *psoc,
  714. bool *dfs_ignore_cac);
  715. /*
  716. * ucfg_mlme_set_dfs_ignore_cac() - Set the dfs ignore cac
  717. * @psoc: pointer to psoc object
  718. * @dfs_ignore_cac: Value that needs to be set.
  719. *
  720. * Return: QDF Status
  721. */
  722. QDF_STATUS
  723. ucfg_mlme_set_dfs_ignore_cac(struct wlan_objmgr_psoc *psoc,
  724. bool dfs_ignore_cac);
  725. /*
  726. * ucfg_mlme_get_sap_tx_leakage_threshold() - Get sap tx leakage threshold
  727. * @psoc: pointer to psoc object
  728. * @sap_tx_leakage_threshold: Pointer to the value which will be filled
  729. *
  730. * Return: QDF Status
  731. */
  732. QDF_STATUS
  733. ucfg_mlme_get_sap_tx_leakage_threshold(struct wlan_objmgr_psoc *psoc,
  734. uint32_t *sap_tx_leakage_threshold);
  735. /*
  736. * ucfg_mlme_set_sap_tx_leakage_threshold() - Set sap tx leakage threshold
  737. * @psoc: pointer to psoc object
  738. * @sap_tx_leakage_threshold: Value that needs to be set.
  739. *
  740. * Return: QDF Status
  741. */
  742. QDF_STATUS
  743. ucfg_mlme_set_sap_tx_leakage_threshold(struct wlan_objmgr_psoc *psoc,
  744. uint32_t sap_tx_leakage_threshold);
  745. /*
  746. * ucfg_mlme_get_dfs_filter_offload() - Get the dfs filter offload
  747. * @psoc: pointer to psoc object
  748. * @dfs_filter_offload: Pointer to the value which will be filled
  749. *
  750. * Return: QDF Status
  751. */
  752. QDF_STATUS
  753. ucfg_mlme_get_dfs_filter_offload(struct wlan_objmgr_psoc *psoc,
  754. bool *dfs_filter_offload);
  755. /*
  756. * ucfg_mlme_set_dfs_filter_offload() - Set the dfs filter offload
  757. * @psoc: pointer to psoc object
  758. * @dfs_filter_offload: Value that needs to be set.
  759. *
  760. * Return: QDF Status
  761. */
  762. QDF_STATUS
  763. ucfg_mlme_set_dfs_filter_offload(struct wlan_objmgr_psoc *psoc,
  764. bool dfs_filter_offload);
  765. /**
  766. * ucfg_mlme_get_fine_time_meas_cap() - Get fine timing measurement capability
  767. * @psoc: pointer to psoc object
  768. * @fine_time_meas_cap: Pointer to the value which will be filled for the caller
  769. *
  770. * Return: QDF Status
  771. */
  772. QDF_STATUS
  773. ucfg_mlme_get_fine_time_meas_cap(struct wlan_objmgr_psoc *psoc,
  774. uint32_t *fine_time_meas_cap);
  775. /**
  776. * ucfg_mlme_set_fine_time_meas_cap() - Set fine timing measurement capability
  777. * @psoc: pointer to psoc object
  778. * @fine_time_meas_cap: Value to be set
  779. *
  780. * Return: QDF Status
  781. */
  782. QDF_STATUS
  783. ucfg_mlme_set_fine_time_meas_cap(struct wlan_objmgr_psoc *psoc,
  784. uint32_t fine_time_meas_cap);
  785. /**
  786. * ucfg_mlme_get_pmkid_modes() - Get PMKID modes
  787. * @psoc: pointer to psoc object
  788. * @val: Pointer to the value which will be filled for the caller
  789. *
  790. * Return: QDF Status
  791. */
  792. QDF_STATUS
  793. ucfg_mlme_get_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  794. uint32_t *val);
  795. /**
  796. * ucfg_mlme_set_pmkid_modes() - Set PMKID modes
  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_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  804. uint32_t val);
  805. /**
  806. * ucfg_mlme_get_twt_requestor() - Get twt requestor
  807. * @psoc: pointer to psoc object
  808. * @val: Pointer to the value which will be filled for the caller
  809. *
  810. * Return: QDF Status
  811. */
  812. QDF_STATUS
  813. ucfg_mlme_get_twt_requestor(struct wlan_objmgr_psoc *psoc,
  814. bool *val);
  815. /**
  816. * ucfg_mlme_set_twt_requestor() - Set twt requestor
  817. * @psoc: pointer to psoc object
  818. * @val: value that needs to set to this config
  819. *
  820. * Return: QDF Status
  821. */
  822. QDF_STATUS
  823. ucfg_mlme_set_twt_requestor(struct wlan_objmgr_psoc *psoc,
  824. bool val);
  825. /**
  826. * ucfg_mlme_get_twt_responder() - Get twt responder
  827. * @psoc: pointer to psoc object
  828. * @val: Pointer to the value which will be filled for the caller
  829. *
  830. * Return: QDF Status
  831. */
  832. QDF_STATUS
  833. ucfg_mlme_get_twt_responder(struct wlan_objmgr_psoc *psoc,
  834. bool *val);
  835. /**
  836. * ucfg_mlme_set_twt_responder() - Set twt responder
  837. * @psoc: pointer to psoc object
  838. * @val: value that needs to set to this config
  839. *
  840. * Return: QDF Status
  841. */
  842. QDF_STATUS
  843. ucfg_mlme_set_twt_responder(struct wlan_objmgr_psoc *psoc,
  844. bool val);
  845. /**
  846. * ucfg_mlme_get_bcast_twt() - Get bcast twt
  847. * @psoc: pointer to psoc object
  848. * @val: Pointer to the value which will be filled for the caller
  849. *
  850. * Return: QDF Status
  851. */
  852. QDF_STATUS
  853. ucfg_mlme_get_bcast_twt(struct wlan_objmgr_psoc *psoc,
  854. bool *val);
  855. /**
  856. * ucfg_mlme_set_bcast_twt() - Set bcast twt
  857. * @psoc: pointer to psoc object
  858. * @val: value that needs to set to this config
  859. *
  860. * Return: QDF Status
  861. */
  862. QDF_STATUS
  863. ucfg_mlme_set_bcast_twt(struct wlan_objmgr_psoc *psoc,
  864. bool val);
  865. /**
  866. * ucfg_mlme_get_twt_congestion_timeout() - Get twt congestion timeout
  867. * @psoc: pointer to psoc object
  868. * @val: Pointer to the value which will be filled for the caller
  869. *
  870. * Return: QDF Status
  871. */
  872. QDF_STATUS
  873. ucfg_mlme_get_twt_congestion_timeout(struct wlan_objmgr_psoc *psoc,
  874. uint32_t *val);
  875. /**
  876. * ucfg_mlme_set_twt_congestion_timeout() - Set twt congestion timeout
  877. * @psoc: pointer to psoc object
  878. * @val: value that needs to set to this config
  879. *
  880. * Return: QDF Status
  881. */
  882. QDF_STATUS
  883. ucfg_mlme_set_twt_congestion_timeout(struct wlan_objmgr_psoc *psoc,
  884. uint32_t val);
  885. /**
  886. * ucfg_mlme_get_enable_twt() - Get global twt config support
  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_enable_twt(struct wlan_objmgr_psoc *psoc,
  894. bool *val);
  895. /**
  896. * ucfg_mlme_set_enable_twt() - Set global twt config support
  897. * @psoc: pointer to psoc object
  898. * @val: value that needs to set to this config
  899. *
  900. * Return: QDF Status
  901. */
  902. QDF_STATUS
  903. ucfg_mlme_set_enable_twt(struct wlan_objmgr_psoc *psoc,
  904. bool val);
  905. /**
  906. * ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode
  907. * @psoc: pointer to psoc object
  908. * @out_mode: Pointer to the mode which will be filled for the caller
  909. *
  910. * Return: QDF Status
  911. */
  912. QDF_STATUS
  913. ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc,
  914. enum dot11p_mode *out_mode);
  915. /**
  916. * ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self
  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_go_cts2self_for_sta(struct wlan_objmgr_psoc *psoc,
  924. bool *val);
  925. /**
  926. * ucfg_mlme_get_force_rsne_override() - Force rsnie override from user
  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_get_force_rsne_override(struct wlan_objmgr_psoc *psoc,
  934. bool *val);
  935. /**
  936. * ucfg_mlme_get_qcn_ie_support() - QCN IE support or not
  937. * @psoc: pointer to psoc object
  938. * @val: Pointer to the value which will be filled for the caller
  939. *
  940. * Return: QDF Status
  941. */
  942. QDF_STATUS
  943. ucfg_mlme_get_qcn_ie_support(struct wlan_objmgr_psoc *psoc,
  944. bool *val);
  945. /**
  946. * ucfg_mlme_get_tgt_gtx_usr_cfg() - Get the target gtx user config
  947. * @psoc: pointer to psoc object
  948. * @val: Pointer to the value which will be filled for the caller
  949. *
  950. * Return: QDF Status
  951. */
  952. QDF_STATUS
  953. ucfg_mlme_get_tgt_gtx_usr_cfg(struct wlan_objmgr_psoc *psoc,
  954. uint32_t *val);
  955. /**
  956. * ucfg_mlme_is_override_ht20_40_24g() - use channel bonding in 2.4 GHz or not
  957. * @psoc: pointer to psoc object
  958. * @val: Pointer to the value which will be filled for the caller
  959. *
  960. * Return: QDF Status
  961. */
  962. QDF_STATUS
  963. ucfg_mlme_is_override_ht20_40_24g(struct wlan_objmgr_psoc *psoc, bool *val);
  964. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  965. /**
  966. * ucfg_mlme_get_roaming_offload() - Get roaming offload setting
  967. * @psoc: pointer to psoc object
  968. * @val: Pointer to enable/disable roaming offload
  969. *
  970. * Return: QDF Status
  971. */
  972. QDF_STATUS
  973. ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  974. bool *val);
  975. /**
  976. * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload
  977. * @psoc: pointer to psoc object
  978. * @val: enable/disable roaming offload
  979. *
  980. * Return: QDF Status
  981. */
  982. QDF_STATUS
  983. ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
  984. bool val);
  985. #endif
  986. /**
  987. * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
  988. * @psoc: pointer to psoc object
  989. * @val: first scan bucket threshold
  990. *
  991. * Return: QDF Status
  992. */
  993. QDF_STATUS
  994. ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
  995. uint8_t *val);
  996. /**
  997. * ucfg_mlme_is_mawc_enabled() - MAWC enabled or not
  998. * @psoc: pointer to psoc object
  999. * @val: Pointer to the value which will be filled for the caller
  1000. *
  1001. * Return: QDF Status
  1002. */
  1003. QDF_STATUS
  1004. ucfg_mlme_is_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  1005. /**
  1006. * ucfg_mlme_set_mawc_enabled() - Set MAWC enable or disable
  1007. * @psoc: pointer to psoc object
  1008. * @val: enable or disable MAWC
  1009. *
  1010. * Return: QDF Status
  1011. */
  1012. QDF_STATUS
  1013. ucfg_mlme_set_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool val);
  1014. /**
  1015. * ucfg_mlme_is_fast_transition_enabled() - Fast transition enable or not
  1016. * @psoc: pointer to psoc object
  1017. * @val: Pointer to the value which will be filled for the caller
  1018. *
  1019. * Return: QDF Status
  1020. */
  1021. QDF_STATUS
  1022. ucfg_mlme_is_fast_transition_enabled(struct wlan_objmgr_psoc *psoc,
  1023. bool *val);
  1024. /**
  1025. * ucfg_mlme_set_fast_transition_enabled() - Set fast transition enable
  1026. * @psoc: pointer to psoc object
  1027. * @val: Fast transition enable or disable
  1028. *
  1029. * Return: QDF Status
  1030. */
  1031. QDF_STATUS
  1032. ucfg_mlme_set_fast_transition_enabled(struct wlan_objmgr_psoc *psoc,
  1033. bool val);
  1034. /**
  1035. * ucfg_mlme_is_roam_scan_offload_enabled() - Roam scan offload enable or not
  1036. * @psoc: pointer to psoc object
  1037. * @val: Pointer to the value which will be filled for the caller
  1038. *
  1039. * Return: QDF Status
  1040. */
  1041. QDF_STATUS
  1042. ucfg_mlme_is_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc,
  1043. bool *val);
  1044. /**
  1045. * ucfg_mlme_set_roam_scan_offload_enabled() - Set roam scan offload enable
  1046. * @psoc: pointer to psoc object
  1047. * @val: Roam scan offload enable or disable
  1048. *
  1049. * Return: QDF Status
  1050. */
  1051. QDF_STATUS
  1052. ucfg_mlme_set_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc,
  1053. bool val);
  1054. /**
  1055. * ucfg_mlme_get_neighbor_scan_max_chan_time() - Get neighbor scan max
  1056. * channel time
  1057. * @psoc: pointer to psoc object
  1058. * @val: Pointer to the value which will be filled for the caller
  1059. *
  1060. * Return: QDF Status
  1061. */
  1062. QDF_STATUS
  1063. ucfg_mlme_get_neighbor_scan_max_chan_time(struct wlan_objmgr_psoc *psoc,
  1064. uint16_t *val);
  1065. /**
  1066. * ucfg_mlme_get_neighbor_scan_min_chan_time() - Get neighbor scan min
  1067. * channel time
  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_neighbor_scan_min_chan_time(struct wlan_objmgr_psoc *psoc,
  1075. uint16_t *val);
  1076. /**
  1077. * ucfg_mlme_get_delay_before_vdev_stop() - Get the delay before vdev stop
  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_get_delay_before_vdev_stop(struct wlan_objmgr_psoc *psoc,
  1085. uint8_t *val);
  1086. /**
  1087. * ucfg_mlme_get_roam_bmiss_final_bcnt() - Get roam bmiss first count
  1088. * @psoc: pointer to psoc object
  1089. * @val: Pointer to the value which will be filled for the caller
  1090. *
  1091. * Return: QDF Status
  1092. */
  1093. QDF_STATUS
  1094. ucfg_mlme_get_roam_bmiss_final_bcnt(struct wlan_objmgr_psoc *psoc,
  1095. uint8_t *val);
  1096. /**
  1097. * ucfg_mlme_get_roam_bmiss_first_bcnt() - Get roam bmiss final count
  1098. * @psoc: pointer to psoc object
  1099. * @val: Pointer to the value which will be filled for the caller
  1100. *
  1101. * Return: QDF Status
  1102. */
  1103. QDF_STATUS
  1104. ucfg_mlme_get_roam_bmiss_first_bcnt(struct wlan_objmgr_psoc *psoc,
  1105. uint8_t *val);
  1106. /**
  1107. * ucfg_mlme_is_lfr_enabled() - LFR enable or not
  1108. * @psoc: pointer to psoc object
  1109. * @val: Pointer to the value which will be filled for the caller
  1110. *
  1111. * Return: QDF Status
  1112. */
  1113. QDF_STATUS
  1114. ucfg_mlme_is_lfr_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  1115. /**
  1116. * ucfg_mlme_set_lfr_enabled() - Enable or disable LFR
  1117. * @psoc: pointer to psoc object
  1118. * @val: Enable or disable LFR
  1119. *
  1120. * Return: QDF Status
  1121. */
  1122. QDF_STATUS
  1123. ucfg_mlme_set_lfr_enabled(struct wlan_objmgr_psoc *psoc, bool val);
  1124. /**
  1125. * ucfg_mlme_is_roam_prefer_5ghz() - prefer 5ghz or not
  1126. * @psoc: pointer to psoc object
  1127. * @val: Pointer to the value which will be filled for the caller
  1128. *
  1129. * Return: QDF Status
  1130. */
  1131. QDF_STATUS
  1132. ucfg_mlme_is_roam_prefer_5ghz(struct wlan_objmgr_psoc *psoc, bool *val);
  1133. /**
  1134. * ucfg_mlme_set_roam_intra_band() - Set roam intra modes
  1135. * @psoc: pointer to psoc object
  1136. * @val: roam intra modes or not
  1137. *
  1138. * Return: QDF Status
  1139. */
  1140. QDF_STATUS
  1141. ucfg_mlme_set_roam_intra_band(struct wlan_objmgr_psoc *psoc, bool val);
  1142. /**
  1143. * ucfg_mlme_get_home_away_time() - Get home away time
  1144. * @psoc: pointer to psoc object
  1145. * @val: Pointer to the value which will be filled for the caller
  1146. *
  1147. * Return: QDF Status
  1148. */
  1149. QDF_STATUS
  1150. ucfg_mlme_get_home_away_time(struct wlan_objmgr_psoc *psoc, uint16_t *val);
  1151. /**
  1152. * ucfg_mlme_set_fast_roam_in_concurrency_enabled() - Enable fast roam in
  1153. * concurrency
  1154. * @psoc: pointer to psoc object
  1155. * @val: Enable or disable fast roam in concurrency
  1156. *
  1157. * Return: QDF Status
  1158. */
  1159. QDF_STATUS
  1160. ucfg_mlme_set_fast_roam_in_concurrency_enabled(struct wlan_objmgr_psoc *psoc,
  1161. bool val);
  1162. /**
  1163. * ucfg_mlme_get_wmi_wq_watchdog_timeout() - Get timeout for wmi watchdog bite
  1164. * @psoc: pointer to psoc object
  1165. * @wmi_wq_watchdog_timeout: buffer to hold value
  1166. *
  1167. * Return: QDF Status
  1168. */
  1169. QDF_STATUS
  1170. ucfg_mlme_get_wmi_wq_watchdog_timeout(struct wlan_objmgr_psoc *psoc,
  1171. uint32_t *wmi_wq_watchdog_timeout);
  1172. /**
  1173. * ucfg_mlme_set_wmi_wq_watchdog_timeout() - Set timeout for wmi watchdog bite
  1174. * @psoc: pointer to psoc object
  1175. * @wmi_wq_watchdog_timeout: value to be set
  1176. *
  1177. * Return: QDF Status
  1178. */
  1179. QDF_STATUS
  1180. ucfg_mlme_set_wmi_wq_watchdog_timeout(struct wlan_objmgr_psoc *psoc,
  1181. uint32_t wmi_wq_watchdog_timeout);
  1182. /**
  1183. * ucfg_mlme_get_ps_data_inactivity_timeout() - Get data inactivity timeout
  1184. * @psoc: pointer to psoc object
  1185. * @inactivity_timeout: buffer to hold value
  1186. *
  1187. * Return: QDF Status
  1188. */
  1189. QDF_STATUS
  1190. ucfg_mlme_get_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
  1191. uint32_t *inactivity_timeout);
  1192. /**
  1193. * ucfg_mlme_set_ps_data_inactivity_timeout() - Set data inactivity timeout
  1194. * @psoc: pointer to psoc object
  1195. * @inactivity_timeout: value to be set
  1196. *
  1197. * Return: QDF Status
  1198. */
  1199. QDF_STATUS
  1200. ucfg_mlme_set_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
  1201. uint32_t inactivity_timeout);
  1202. /**
  1203. * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval
  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_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  1213. int value)
  1214. {
  1215. return wlan_mlme_set_sap_listen_interval(psoc, value);
  1216. }
  1217. /**
  1218. * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  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_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  1228. int value)
  1229. {
  1230. return wlan_mlme_set_assoc_sta_limit(psoc, value);
  1231. }
  1232. /**
  1233. * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  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_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  1243. int value)
  1244. {
  1245. return wlan_mlme_set_rmc_action_period_freq(psoc, value);
  1246. }
  1247. /**
  1248. * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
  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_get_peer_info(struct wlan_objmgr_psoc *psoc,
  1258. bool *value)
  1259. {
  1260. return wlan_mlme_get_sap_get_peer_info(psoc, value);
  1261. }
  1262. /**
  1263. * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels
  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_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  1273. bool *value)
  1274. {
  1275. return wlan_mlme_get_sap_allow_all_channels(psoc, value);
  1276. }
  1277. /**
  1278. * ucfg_mlme_get_sap_max_peers() - get the sap max peers
  1279. * @psoc: pointer to psoc object
  1280. * @value: Value that needs to be set from the caller
  1281. *
  1282. * Inline UCFG API to be used by HDD/OSIF callers
  1283. *
  1284. * Return: QDF Status
  1285. */
  1286. static inline
  1287. QDF_STATUS ucfg_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  1288. int *value)
  1289. {
  1290. return wlan_mlme_get_sap_max_peers(psoc, value);
  1291. }
  1292. /**
  1293. * ucfg_mlme_set_sap_max_peers() - Set the sap max peers
  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_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value)
  1303. {
  1304. return wlan_mlme_set_sap_max_peers(psoc, value);
  1305. }
  1306. /**
  1307. * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers
  1308. * @psoc: pointer to psoc object
  1309. * @value: Value that needs to be set from the caller
  1310. *
  1311. * Inline UCFG API to be used by HDD/OSIF callers
  1312. *
  1313. * Return: QDF Status
  1314. */
  1315. static inline
  1316. QDF_STATUS ucfg_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  1317. int *value)
  1318. {
  1319. return wlan_mlme_get_sap_max_offload_peers(psoc, value);
  1320. }
  1321. /**
  1322. * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload
  1323. * reorder buffs
  1324. * @psoc: pointer to psoc object
  1325. * @value: Value that needs to be set from the caller
  1326. *
  1327. * Inline UCFG API to be used by HDD/OSIF callers
  1328. *
  1329. * Return: QDF Status
  1330. */
  1331. static inline
  1332. QDF_STATUS ucfg_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  1333. *psoc, int *value)
  1334. {
  1335. return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value);
  1336. }
  1337. /**
  1338. * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel
  1339. * switch beacon count
  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_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  1349. int *value)
  1350. {
  1351. return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value);
  1352. }
  1353. /**
  1354. * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode
  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_channel_switch_mode(struct wlan_objmgr_psoc *psoc,
  1364. bool *value)
  1365. {
  1366. return wlan_mlme_get_sap_chn_switch_mode(psoc, value);
  1367. }
  1368. /**
  1369. * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value
  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_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  1379. bool *value)
  1380. {
  1381. return wlan_mlme_get_sap_internal_restart(psoc, value);
  1382. }
  1383. /**
  1384. * ucfg_mlme_get_sap_max_modulated_dtim() - get sap max modulated dtim
  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_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
  1394. uint8_t *value)
  1395. {
  1396. return wlan_mlme_get_sap_max_modulated_dtim(psoc, value);
  1397. }
  1398. /**
  1399. * ucfg_mlme_get_pref_chan_location() - get sap pref chan location
  1400. * @psoc: pointer to psoc object
  1401. * @value: Value that needs to be set from the caller
  1402. *
  1403. * Inline UCFG API to be used by HDD/OSIF callers
  1404. *
  1405. * Return: QDF Status
  1406. */
  1407. static inline
  1408. QDF_STATUS ucfg_mlme_get_pref_chan_location(struct wlan_objmgr_psoc *psoc,
  1409. uint8_t *value)
  1410. {
  1411. return wlan_mlme_get_sap_chan_pref_location(psoc, value);
  1412. }
  1413. /**
  1414. * ucfg_mlme_get_sap_country_priority() - get sap country code priority
  1415. * @psoc: pointer to psoc object
  1416. * @value: Value that needs to be set from the caller
  1417. *
  1418. * Inline UCFG API to be used by HDD/OSIF callers
  1419. *
  1420. * Return: QDF Status
  1421. */
  1422. static inline
  1423. QDF_STATUS ucfg_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc,
  1424. bool *value)
  1425. {
  1426. return wlan_mlme_get_sap_country_priority(psoc, value);
  1427. }
  1428. /**
  1429. * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon
  1430. * interval
  1431. * @psoc: pointer to psoc object
  1432. * @value: Value that needs to be set from the caller
  1433. *
  1434. * Inline UCFG API to be used by HDD/OSIF callers
  1435. *
  1436. * Return: QDF Status
  1437. */
  1438. static inline
  1439. QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc
  1440. *psoc, int *value)
  1441. {
  1442. return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value);
  1443. }
  1444. /**
  1445. * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel
  1446. * switch rate enabled.
  1447. * @psoc: pointer to psoc object
  1448. * @value: Value that needs to be set from the caller
  1449. *
  1450. * Inline UCFG API to be used by HDD/OSIF callers
  1451. *
  1452. * Return: QDF Status
  1453. */
  1454. static inline
  1455. QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  1456. *psoc, bool *value)
  1457. {
  1458. return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value);
  1459. }
  1460. /**
  1461. * ucfg_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac
  1462. *
  1463. * @psoc: pointer to psoc object
  1464. * @value: Value that needs to be set from the caller
  1465. *
  1466. * Inline UCFG API to be used by HDD/OSIF callers
  1467. *
  1468. * Return: QDF Status
  1469. */
  1470. static inline
  1471. QDF_STATUS ucfg_mlme_get_sap_force_11n_for_11ac(struct wlan_objmgr_psoc
  1472. *psoc, bool *value)
  1473. {
  1474. return wlan_mlme_get_sap_force_11n_for_11ac(psoc, value);
  1475. }
  1476. /**
  1477. * ucfg_mlme_get_go_force_11n_for_11ac() - get the GO 11n for 11ac
  1478. *
  1479. * @psoc: pointer to psoc object
  1480. * @value: Value that needs to be set from the caller
  1481. *
  1482. * Inline UCFG API to be used by HDD/OSIF callers
  1483. *
  1484. * Return: QDF Status
  1485. */
  1486. static inline
  1487. QDF_STATUS ucfg_mlme_get_go_force_11n_for_11ac(struct wlan_objmgr_psoc
  1488. *psoc, bool *value)
  1489. {
  1490. return wlan_mlme_get_go_force_11n_for_11ac(psoc, value);
  1491. }
  1492. /**
  1493. * ucfg_mlme_is_sap_11ac_override() - Override 11ac bandwdith for SAP
  1494. *
  1495. * @psoc: pointer to psoc object
  1496. * @value: Value that needs to be set from the caller
  1497. *
  1498. * Return: QDF Status
  1499. */
  1500. static inline
  1501. QDF_STATUS ucfg_mlme_is_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  1502. bool *value)
  1503. {
  1504. return wlan_mlme_is_sap_11ac_override(psoc, value);
  1505. }
  1506. /**
  1507. * ucfg_mlme_is_go_11ac_override() - Override 11ac bandwdith for P2P GO
  1508. *
  1509. * @psoc: pointer to psoc object
  1510. * @value: pointer to the value which will be filled for the caller
  1511. *
  1512. * Return: QDF Status
  1513. */
  1514. static inline
  1515. QDF_STATUS ucfg_mlme_is_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  1516. bool *value)
  1517. {
  1518. return wlan_mlme_is_go_11ac_override(psoc, value);
  1519. }
  1520. /**
  1521. * ucfg_mlme_set_sap_11ac_override() - Set override 11ac bandwdith for SAP
  1522. *
  1523. * @psoc: pointer to psoc object
  1524. * @value: Value that needs to be set from the caller
  1525. *
  1526. * Return: QDF Status
  1527. */
  1528. static inline
  1529. QDF_STATUS ucfg_mlme_set_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  1530. bool value)
  1531. {
  1532. return wlan_mlme_set_sap_11ac_override(psoc, value);
  1533. }
  1534. /**
  1535. * ucfg_mlme_set_go_11ac_override() - Set override 11ac bandwdith for P2P GO
  1536. *
  1537. * @psoc: pointer to psoc object
  1538. * @value: pointer to the value which will be filled for the caller
  1539. *
  1540. * Return: QDF Status
  1541. */
  1542. static inline
  1543. QDF_STATUS ucfg_mlme_set_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  1544. bool value)
  1545. {
  1546. return wlan_mlme_set_go_11ac_override(psoc, value);
  1547. }
  1548. /**
  1549. * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable
  1550. * info for STA
  1551. *
  1552. * @psoc: pointer to psoc object
  1553. * @value: pointer to the value which will be filled for the caller
  1554. *
  1555. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1556. * OCE STA feature enable value
  1557. *
  1558. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1559. */
  1560. static inline
  1561. QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  1562. bool *value)
  1563. {
  1564. return wlan_mlme_get_oce_sta_enabled_info(psoc, value);
  1565. }
  1566. /**
  1567. * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable
  1568. * info for SAP
  1569. *
  1570. * @psoc: pointer to psoc object
  1571. * @value: pointer to the value which will be filled for the caller
  1572. *
  1573. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1574. * OCE SAP feature enable value
  1575. *
  1576. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1577. */
  1578. static inline
  1579. QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  1580. bool *value)
  1581. {
  1582. return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
  1583. }
  1584. /**
  1585. * ucfg_mlme_is_ap_prot_enabled() - Check if sap is enabled
  1586. * @psoc: pointer to psoc object
  1587. *
  1588. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1589. * sap protection enabled/disabled
  1590. *
  1591. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1592. */
  1593. static inline
  1594. bool ucfg_mlme_is_ap_prot_enabled(struct wlan_objmgr_psoc *psoc)
  1595. {
  1596. return wlan_mlme_is_ap_prot_enabled(psoc);
  1597. }
  1598. /**
  1599. * ucfg_mlme_get_ap_protection_mode() - Get ap protection mode info
  1600. * @psoc: pointer to psoc object
  1601. * @value: pointer to the value which will be filled for the caller
  1602. *
  1603. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1604. * ap protection mode value
  1605. *
  1606. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1607. */
  1608. static inline
  1609. QDF_STATUS ucfg_mlme_get_ap_protection_mode(struct wlan_objmgr_psoc *psoc,
  1610. uint16_t *value)
  1611. {
  1612. return wlan_mlme_get_ap_protection_mode(psoc, value);
  1613. }
  1614. /**
  1615. * ucfg_mlme_is_ap_obss_prot_enabled() - Get ap obss protection enable/disable
  1616. * @psoc: pointer to psoc object
  1617. * @value: pointer to the value which will be filled for the caller
  1618. *
  1619. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1620. * obss protection enable value
  1621. *
  1622. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1623. */
  1624. static inline
  1625. QDF_STATUS ucfg_mlme_is_ap_obss_prot_enabled(struct wlan_objmgr_psoc *psoc,
  1626. bool *value)
  1627. {
  1628. return wlan_mlme_is_ap_obss_prot_enabled(psoc, value);
  1629. }
  1630. /**
  1631. * ucfg_mlme_get_rts_threshold() - Get the rts threshold config
  1632. * @psoc: pointer to psoc object
  1633. * @value: pointer to the value which will be filled for the caller
  1634. *
  1635. * Inline UCFG API to be used by HDD/OSIF callers
  1636. *
  1637. * Return: QDF Status
  1638. */
  1639. static inline
  1640. QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1641. uint32_t *value)
  1642. {
  1643. return wlan_mlme_get_rts_threshold(psoc, value);
  1644. }
  1645. /**
  1646. * ucfg_mlme_set_rts_threshold() - Set the rts threshold config
  1647. * @psoc: pointer to psoc object
  1648. * @value: pointer to the value which will be filled for the caller
  1649. *
  1650. * Inline UCFG API to be used by HDD/OSIF callers
  1651. *
  1652. * Return: QDF Status
  1653. */
  1654. static inline
  1655. QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1656. uint32_t value)
  1657. {
  1658. return wlan_mlme_set_rts_threshold(psoc, value);
  1659. }
  1660. /**
  1661. * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
  1662. * config
  1663. * @psoc: pointer to psoc object
  1664. * @value: Value that needs to be set from the caller
  1665. *
  1666. * Inline UCFG API to be used by HDD/OSIF callers
  1667. *
  1668. * Return: QDF Status
  1669. */
  1670. static inline
  1671. QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1672. uint32_t *value)
  1673. {
  1674. return wlan_mlme_get_frag_threshold(psoc, value);
  1675. }
  1676. /**
  1677. * ucfg_mlme_set_frag_threshold() - set the frag threshold config
  1678. * @psoc: pointer to psoc object
  1679. * @value: pointer to the value which will be filled for the caller
  1680. *
  1681. * Inline UCFG API to be used by HDD/OSIF callers
  1682. *
  1683. * Return: QDF Status
  1684. */
  1685. static inline
  1686. QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1687. uint32_t value)
  1688. {
  1689. return wlan_mlme_set_frag_threshold(psoc, value);
  1690. }
  1691. /**
  1692. * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
  1693. *
  1694. * @psoc: pointer to psoc object
  1695. * @value: pointer to the value which will be filled for the caller
  1696. *
  1697. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1698. * fils enable value
  1699. *
  1700. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1701. */
  1702. static inline
  1703. QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1704. bool *value)
  1705. {
  1706. return wlan_mlme_get_fils_enabled_info(psoc, value);
  1707. }
  1708. /**
  1709. * ucfg_mlme_set_fils_enabled_info() - Set fils enable info
  1710. *
  1711. * @psoc: pointer to psoc object
  1712. * @value: value that needs to be set from the caller
  1713. *
  1714. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1715. * fils enable value
  1716. *
  1717. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1718. */
  1719. static inline
  1720. QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1721. bool value)
  1722. {
  1723. return wlan_mlme_set_fils_enabled_info(psoc, value);
  1724. }
  1725. /**
  1726. * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  1727. * @psoc: pointer to psoc object
  1728. * @value: value that needs to be set from the caller
  1729. *
  1730. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1731. * enable bcast probe resp info
  1732. *
  1733. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1734. */
  1735. static inline
  1736. QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1737. bool value)
  1738. {
  1739. return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value);
  1740. }
  1741. /**
  1742. * ucfg_mlme_set_vht_ch_width() - set the vht supported channel width cfg
  1743. * @psoc: psoc context
  1744. * @value: data to be set
  1745. *
  1746. * Inline UCFG API to be used by HDD/OSIF callers
  1747. *
  1748. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1749. */
  1750. static inline QDF_STATUS
  1751. ucfg_mlme_set_vht_ch_width(struct wlan_objmgr_psoc *psoc, uint8_t value)
  1752. {
  1753. return wlan_mlme_cfg_set_vht_chan_width(psoc, value);
  1754. }
  1755. /**
  1756. * ucfg_mlme_cfg_get_vht_chan_width() - gets vht supported channel width into
  1757. * 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_get_vht_chan_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1767. {
  1768. return wlan_mlme_cfg_get_vht_chan_width(psoc, value);
  1769. }
  1770. /**
  1771. * ucfg_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1772. * cfg item
  1773. * @psoc: psoc context
  1774. * @value: data to be set
  1775. *
  1776. * Inline UCFG API to be used by HDD/OSIF callers
  1777. *
  1778. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1779. */
  1780. static inline QDF_STATUS
  1781. ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc, bool value)
  1782. {
  1783. return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value);
  1784. }
  1785. /**
  1786. * ucfg_mlme_cfg_get_short_gi_160_mhz() - Get SHORT GI 160MHZ from cfg item
  1787. * @psoc: psoc context
  1788. * @value: data to be set
  1789. *
  1790. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1791. * ignore_peer_ht_opmode flag value
  1792. *
  1793. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1794. */
  1795. static inline QDF_STATUS
  1796. ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool *value)
  1797. {
  1798. return wlan_mlme_cfg_get_short_gi_160_mhz(psoc, value);
  1799. }
  1800. /**
  1801. * ucfg_mlme_cfg_set_short_gi_160_mhz() - sets basic set SHORT GI 160MHZ into
  1802. * cfg item
  1803. * @psoc: psoc context
  1804. * @value: data to be set
  1805. *
  1806. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1807. * ignore_peer_ht_opmode flag value
  1808. *
  1809. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1810. */
  1811. static inline QDF_STATUS
  1812. ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool value)
  1813. {
  1814. return wlan_mlme_cfg_set_short_gi_160_mhz(psoc, value);
  1815. }
  1816. /**
  1817. * ucfg_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1818. * cfg item
  1819. * @psoc: psoc context
  1820. * @value: pointer to get required data
  1821. *
  1822. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1823. * ignore_peer_ht_opmode flag value
  1824. *
  1825. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1826. */
  1827. static inline QDF_STATUS
  1828. ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool *value)
  1829. {
  1830. return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value);
  1831. }
  1832. /**
  1833. * ucfg_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1834. * cfg item
  1835. * @psoc: psoc context
  1836. * @value: pointer to get required data
  1837. *
  1838. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1839. * ignore_peer_ht_opmode flag value
  1840. *
  1841. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1842. */
  1843. static inline QDF_STATUS
  1844. ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value)
  1845. {
  1846. return wlan_mlme_cfg_get_vht_rx_stbc(psoc, value);
  1847. }
  1848. /**
  1849. * ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1850. * support cap into cfg item
  1851. * @psoc: psoc context
  1852. * @value: data to be set
  1853. *
  1854. * Inline UCFG API to be used by HDD/OSIF callers
  1855. *
  1856. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1857. */
  1858. static inline
  1859. QDF_STATUS ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1860. uint8_t value)
  1861. {
  1862. return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value);
  1863. }
  1864. /**
  1865. * ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp() - gets vht Beamformee antenna
  1866. * support cap into cfg item
  1867. * @psoc: psoc context
  1868. * @value: data to be set
  1869. *
  1870. * Inline UCFG API to be used by HDD/OSIF callers
  1871. *
  1872. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1873. */
  1874. static inline
  1875. QDF_STATUS ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1876. uint8_t *value)
  1877. {
  1878. return wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(psoc, value);
  1879. }
  1880. /**
  1881. * ucfg_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1882. * cfg item
  1883. * @psoc: psoc context
  1884. * @value: pointer to get required data
  1885. *
  1886. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1887. * ignore_peer_ht_opmode flag value
  1888. *
  1889. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1890. */
  1891. static inline QDF_STATUS
  1892. ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t *value)
  1893. {
  1894. return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value);
  1895. }
  1896. /**
  1897. * ucfg_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1898. * cfg item
  1899. * @psoc: psoc context
  1900. * @value: data to be set
  1901. *
  1902. * Inline UCFG API to be used by HDD/OSIF callers
  1903. *
  1904. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1905. */
  1906. static inline QDF_STATUS
  1907. ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value)
  1908. {
  1909. return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value);
  1910. }
  1911. /**
  1912. * ucfg_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1913. * cfg item
  1914. * @psoc: psoc context
  1915. * @value: pointer to get required data
  1916. *
  1917. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1918. * ignore_peer_ht_opmode flag value
  1919. *
  1920. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1921. */
  1922. static inline QDF_STATUS
  1923. ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t *value)
  1924. {
  1925. return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value);
  1926. }
  1927. /**
  1928. * ucfg_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1929. * cfg item
  1930. * @psoc: psoc context
  1931. * @value: data to be set
  1932. *
  1933. * Inline UCFG API to be used by HDD/OSIF callers
  1934. *
  1935. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1936. */
  1937. static inline QDF_STATUS
  1938. ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value)
  1939. {
  1940. return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value);
  1941. }
  1942. /**
  1943. * ucfg_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data
  1944. * rate into cfg item
  1945. * @psoc: psoc context
  1946. * @value: data to be set
  1947. *
  1948. * Inline UCFG API to be used by HDD/OSIF callers
  1949. *
  1950. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1951. */
  1952. static inline QDF_STATUS
  1953. ucfg_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1954. uint32_t value)
  1955. {
  1956. return wlan_mlme_cfg_set_vht_rx_supp_data_rate(psoc, value);
  1957. }
  1958. /**
  1959. * ucfg_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1960. * cfg item
  1961. * @psoc: psoc context
  1962. * @value: data to be set
  1963. *
  1964. * Inline UCFG API to be used by HDD/OSIF callers
  1965. *
  1966. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1967. */
  1968. static inline QDF_STATUS
  1969. ucfg_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1970. uint32_t value)
  1971. {
  1972. return wlan_mlme_cfg_set_vht_tx_supp_data_rate(psoc, value);
  1973. }
  1974. /**
  1975. * ucfg_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1976. * cfg item
  1977. * @psoc: psoc context
  1978. * @value: data to be set
  1979. *
  1980. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1981. * ignore_peer_ht_opmode flag value
  1982. *
  1983. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1984. */
  1985. static inline QDF_STATUS
  1986. ucfg_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1987. uint32_t *value)
  1988. {
  1989. return wlan_mlme_cfg_get_vht_basic_mcs_set(psoc, value);
  1990. }
  1991. /**
  1992. * ucfg_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1993. * cfg item
  1994. * @psoc: psoc context
  1995. * @value: data to be set
  1996. *
  1997. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1998. * ignore_peer_ht_opmode flag value
  1999. *
  2000. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2001. */
  2002. static inline QDF_STATUS
  2003. ucfg_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  2004. uint32_t value)
  2005. {
  2006. return wlan_mlme_cfg_set_vht_basic_mcs_set(psoc, value);
  2007. }
  2008. /**
  2009. * ucfg_mlme_get_vht_enable_tx_bf() - gets enable TXBF for 20MHZ
  2010. * for 11ac
  2011. * @psoc: psoc context
  2012. * @value: data to be set
  2013. *
  2014. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2015. * ignore_peer_ht_opmode flag value
  2016. *
  2017. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2018. */
  2019. static inline QDF_STATUS
  2020. ucfg_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value)
  2021. {
  2022. return wlan_mlme_get_vht_enable_tx_bf(psoc, value);
  2023. }
  2024. /**
  2025. * ucfg_mlme_get_vht_tx_su_beamformer() - gets enable tx_su_beamformer
  2026. * for 11ac
  2027. * @psoc: psoc context
  2028. * @value: data to be set
  2029. *
  2030. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2031. * ignore_peer_ht_opmode flag value
  2032. *
  2033. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2034. */
  2035. static inline QDF_STATUS
  2036. ucfg_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value)
  2037. {
  2038. return wlan_mlme_get_vht_tx_su_beamformer(psoc, value);
  2039. }
  2040. /**
  2041. * ucfg_mlme_get_vht_channel_width() - gets Channel width capability
  2042. * for 11ac
  2043. * @psoc: psoc context
  2044. * @value: data to be set
  2045. *
  2046. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2047. * ignore_peer_ht_opmode flag value
  2048. *
  2049. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2050. */
  2051. static inline QDF_STATUS
  2052. ucfg_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2053. {
  2054. return wlan_mlme_get_vht_channel_width(psoc, value);
  2055. }
  2056. /**
  2057. * ucfg_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  2058. * for 11ac
  2059. * @psoc: psoc context
  2060. * @value: data to be set
  2061. *
  2062. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2063. * ignore_peer_ht_opmode flag value
  2064. *
  2065. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2066. */
  2067. static inline QDF_STATUS
  2068. ucfg_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2069. {
  2070. return wlan_mlme_get_vht_rx_mcs_8_9(psoc, value);
  2071. }
  2072. /**
  2073. * ucfg_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  2074. * for 11ac
  2075. * @psoc: psoc context
  2076. * @value: data to be set
  2077. *
  2078. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2079. * ignore_peer_ht_opmode flag value
  2080. *
  2081. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2082. */
  2083. static inline QDF_STATUS
  2084. ucfg_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2085. {
  2086. return wlan_mlme_get_vht_tx_mcs_8_9(psoc, value);
  2087. }
  2088. /**
  2089. * ucfg_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  2090. * for 11ac
  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_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2101. {
  2102. return wlan_mlme_get_vht_rx_mcs_2x2(psoc, value);
  2103. }
  2104. /**
  2105. * ucfg_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  2106. * for 11ac
  2107. * @psoc: psoc context
  2108. * @value: data to be set
  2109. *
  2110. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2111. * ignore_peer_ht_opmode flag value
  2112. *
  2113. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2114. */
  2115. static inline QDF_STATUS
  2116. ucfg_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2117. {
  2118. return wlan_mlme_get_vht_tx_mcs_2x2(psoc, value);
  2119. }
  2120. /**
  2121. * ucfg_mlme_get_ini_vdev_config() - get the ini capability of vdev
  2122. * @vdev: pointer to the vdev obj
  2123. *
  2124. * This API will get the ini config of the vdev related to
  2125. * the nss, chains params
  2126. *
  2127. * Return: pointer to the nss, chain param ini cfg structure
  2128. */
  2129. static inline struct wlan_mlme_nss_chains *
  2130. ucfg_mlme_get_ini_vdev_config(struct wlan_objmgr_vdev *vdev)
  2131. {
  2132. return mlme_get_ini_vdev_config(vdev);
  2133. }
  2134. /**
  2135. * ucfg_mlme_get_dynamic_vdev_config() - get the dynamic capability of vdev
  2136. * @vdev: pointer to the vdev obj
  2137. *
  2138. * This API will get the dynamic config of the vdev related to nss,
  2139. * chains params
  2140. *
  2141. * Return: pointer to the nss, chain param dynamic cfg structure
  2142. */
  2143. static inline struct wlan_mlme_nss_chains *
  2144. ucfg_mlme_get_dynamic_vdev_config(struct wlan_objmgr_vdev *vdev)
  2145. {
  2146. return mlme_get_dynamic_vdev_config(vdev);
  2147. }
  2148. /**
  2149. * ucfg_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  2150. * @psoc: psoc context
  2151. * @value: data to be set
  2152. *
  2153. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2154. * ignore_peer_ht_opmode flag value
  2155. *
  2156. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2157. */
  2158. static inline QDF_STATUS
  2159. ucfg_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value)
  2160. {
  2161. return wlan_mlme_get_vht20_mcs9(psoc, value);
  2162. }
  2163. /**
  2164. * ucfg_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  2165. * @psoc: psoc context
  2166. * @value: data to be set
  2167. *
  2168. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2169. * ignore_peer_ht_opmode flag value
  2170. *
  2171. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2172. */
  2173. static inline QDF_STATUS
  2174. ucfg_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value)
  2175. {
  2176. return wlan_mlme_get_vht_enable2x2(psoc, value);
  2177. }
  2178. /**
  2179. * ucfg_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  2180. * @psoc: psoc context
  2181. * @value: data to be set
  2182. *
  2183. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2184. * ignore_peer_ht_opmode flag value
  2185. *
  2186. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2187. */
  2188. static inline QDF_STATUS
  2189. ucfg_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value)
  2190. {
  2191. return wlan_mlme_set_vht_enable2x2(psoc, value);
  2192. }
  2193. /**
  2194. * ucfg_mlme_get_vht_enable_paid() - Enables/disables paid feature
  2195. * @psoc: psoc context
  2196. * @value: data to be set
  2197. *
  2198. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2199. * ignore_peer_ht_opmode flag value
  2200. *
  2201. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2202. */
  2203. static inline QDF_STATUS
  2204. ucfg_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value)
  2205. {
  2206. return wlan_mlme_get_vht_enable_paid(psoc, value);
  2207. }
  2208. /**
  2209. * ucfg_mlme_get_vht_enable_gid() - Enables/disables gid feature
  2210. * @psoc: psoc context
  2211. * @value: data to be set
  2212. *
  2213. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2214. * ignore_peer_ht_opmode flag value
  2215. *
  2216. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2217. */
  2218. static inline QDF_STATUS
  2219. ucfg_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value)
  2220. {
  2221. return wlan_mlme_get_vht_enable_gid(psoc, value);
  2222. }
  2223. /**
  2224. * ucfg_mlme_get_vht_for_24ghz() - Get mlme cfg of vht for 24ghz
  2225. * @psoc: psoc context
  2226. * @value: data to get
  2227. *
  2228. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2229. */
  2230. static inline QDF_STATUS
  2231. ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  2232. {
  2233. return wlan_mlme_get_vht_for_24ghz(psoc, value);
  2234. }
  2235. /**
  2236. * ucfg_mlme_set_vht_for_24ghz() - Enables/disables vht for 24ghz
  2237. * @psoc: psoc context
  2238. * @value: data to be set
  2239. *
  2240. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2241. */
  2242. static inline QDF_STATUS
  2243. ucfg_mlme_set_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool value)
  2244. {
  2245. return wlan_mlme_set_vht_for_24ghz(psoc, value);
  2246. }
  2247. /**
  2248. * ucfg_mlme_get_vendor_vht_for_24ghz() - Get mlme cfg of vendor vht for 24ghz
  2249. * @psoc: psoc context
  2250. * @value: data to be set
  2251. *
  2252. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2253. */
  2254. static inline QDF_STATUS
  2255. ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  2256. {
  2257. return wlan_mlme_get_vendor_vht_for_24ghz(psoc, value);
  2258. }
  2259. /**
  2260. * ucfg_mlme_update_vht_cap() - Update vht capabilities
  2261. * @psoc: psoc context
  2262. * @value: data to be set
  2263. *
  2264. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2265. * ignore_peer_ht_opmode flag value
  2266. *
  2267. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2268. */
  2269. static inline
  2270. QDF_STATUS ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  2271. struct wma_tgt_vht_cap *cfg)
  2272. {
  2273. return mlme_update_vht_cap(psoc, cfg);
  2274. }
  2275. /**
  2276. * ucfg_mlme_update_nss_vht_cap() -Update the number of spatial
  2277. * streams supported for vht
  2278. * @psoc: psoc context
  2279. * @value: data to be set
  2280. *
  2281. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2282. * ignore_peer_ht_opmode flag value
  2283. *
  2284. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2285. */
  2286. static inline QDF_STATUS
  2287. ucfg_mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc)
  2288. {
  2289. return mlme_update_nss_vht_cap(psoc);
  2290. }
  2291. /**
  2292. * ucfg_mlme_is_11h_enabled() - Get 11h flag
  2293. * @psoc: pointer to psoc object
  2294. * @value: Value that needs to be set from the caller
  2295. *
  2296. * Inline UCFG API to be used by HDD/OSIF callers
  2297. *
  2298. * Return: QDF Status
  2299. */
  2300. static inline QDF_STATUS
  2301. ucfg_mlme_is_11h_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2302. {
  2303. return wlan_mlme_is_11h_enabled(psoc, value);
  2304. }
  2305. /**
  2306. * ucfg_mlme_set_11h_enabled() - Set 11h flag
  2307. * @psoc: pointer to psoc object
  2308. * @value: Value that needs to be set from the caller
  2309. *
  2310. * Inline UCFG API to be used by HDD/OSIF callers
  2311. *
  2312. * Return: QDF Status
  2313. */
  2314. static inline QDF_STATUS
  2315. ucfg_mlme_set_11h_enabled(struct wlan_objmgr_psoc *psoc, bool value)
  2316. {
  2317. return wlan_mlme_set_11h_enabled(psoc, value);
  2318. }
  2319. /**
  2320. * ucfg_mlme_is_11d_enabled() - Get 11d flag
  2321. * @psoc: pointer to psoc object
  2322. * @value: Value that needs to be set from the caller
  2323. *
  2324. * Inline UCFG API to be used by HDD/OSIF callers
  2325. *
  2326. * Return: QDF Status
  2327. */
  2328. static inline QDF_STATUS
  2329. ucfg_mlme_is_11d_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2330. {
  2331. return wlan_mlme_is_11d_enabled(psoc, value);
  2332. }
  2333. /**
  2334. * ucfg_mlme_set_11d_enabled() - Set 11d flag
  2335. * @psoc: pointer to psoc object
  2336. * @value: Value that needs to be set from the caller
  2337. *
  2338. * Inline UCFG API to be used by HDD/OSIF callers
  2339. *
  2340. * Return: QDF Status
  2341. */
  2342. static inline QDF_STATUS
  2343. ucfg_mlme_set_11d_enabled(struct wlan_objmgr_psoc *psoc, bool value)
  2344. {
  2345. return wlan_mlme_set_11d_enabled(psoc, value);
  2346. }
  2347. /**
  2348. * ucfg_mlme_get_opr_rate_set() - Get operational rate set
  2349. * @psoc: pointer to psoc object
  2350. * @buf: buffer to get rates set
  2351. * @len: length of the buffer
  2352. * Return: QDF Status
  2353. */
  2354. QDF_STATUS
  2355. ucfg_mlme_get_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2356. qdf_size_t *len);
  2357. /**
  2358. * ucfg_mlme_get_ext_opr_rate_set() - Get operational rate set
  2359. * @psoc: pointer to psoc object
  2360. * @buf: buffer to get rates set
  2361. * @len: length of the buffer
  2362. * Return: QDF Status
  2363. */
  2364. QDF_STATUS
  2365. ucfg_mlme_get_ext_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2366. qdf_size_t *len);
  2367. /**
  2368. * ucfg_mlme_get_supported_mcs_set() - Get Supported MCS set
  2369. * @psoc: pointer to psoc object
  2370. * @buf: caller buffer to copy mcs set info
  2371. * @len: length of the buffer
  2372. * Return: QDF Status
  2373. */
  2374. QDF_STATUS
  2375. ucfg_mlme_get_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2376. qdf_size_t *len);
  2377. /**
  2378. * ucfg_mlme_set_supported_mcs_set() - Get Supported MCS set
  2379. * @psoc: pointer to psoc object
  2380. * @buf: caller buffer having mcs set info
  2381. * @len: length of the buffer
  2382. * Return: QDF Status
  2383. */
  2384. QDF_STATUS
  2385. ucfg_mlme_set_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2386. qdf_size_t len);
  2387. /**
  2388. * ucfg_mlme_get_current_mcs_set() - Get current MCS set
  2389. * @psoc: pointer to psoc object
  2390. * @buf: caller buffer to copy mcs set info
  2391. * @len: length of the buffer
  2392. * Return: QDF Status
  2393. */
  2394. QDF_STATUS
  2395. ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2396. qdf_size_t *len);
  2397. /**
  2398. * ucfg_mlme_get_sta_keepalive_method() - Get sta_keepalive_method
  2399. * @psoc: pointer to psoc object
  2400. * @val: Value to pass to the caller
  2401. *
  2402. * Return: QDF Status
  2403. */
  2404. QDF_STATUS
  2405. ucfg_mlme_get_sta_keepalive_method(struct wlan_objmgr_psoc *psoc,
  2406. enum station_keepalive_method *val);
  2407. /**
  2408. * ucfg_mlme_stats_get_periodic_display_time() - get display time
  2409. * @psoc: pointer to psoc object
  2410. * @periodic_display_time: buffer to hold value
  2411. *
  2412. * Return: QDF Status
  2413. */
  2414. QDF_STATUS
  2415. ucfg_mlme_stats_get_periodic_display_time(struct wlan_objmgr_psoc *psoc,
  2416. uint32_t *periodic_display_time);
  2417. /**
  2418. * ucfg_mlme_stats_get_cfg_values() - get stats cfg values
  2419. * @psoc: pointer to psoc object
  2420. * @link_speed_rssi_high: link speed high limit
  2421. * @link_speed_rssi_mid: link speed high mid
  2422. * @link_speed_rssi_low: link speed high low
  2423. * @link_speed_rssi_report: link speed report limit
  2424. *
  2425. * Return: QDF Status
  2426. */
  2427. QDF_STATUS
  2428. ucfg_mlme_stats_get_cfg_values(struct wlan_objmgr_psoc *psoc,
  2429. int *link_speed_rssi_high,
  2430. int *link_speed_rssi_mid,
  2431. int *link_speed_rssi_low,
  2432. uint32_t *link_speed_rssi_report);
  2433. /**
  2434. * ucfg_mlme_stats_is_link_speed_report_actual() - is link speed report set
  2435. * actual
  2436. * @psoc: pointer to psoc object
  2437. *
  2438. * Return: True is report set to actual
  2439. */
  2440. bool
  2441. ucfg_mlme_stats_is_link_speed_report_actual(struct wlan_objmgr_psoc *psoc);
  2442. /**
  2443. * ucfg_mlme_stats_is_link_speed_report_max() - is link speed report set
  2444. * max
  2445. * @psoc: pointer to psoc object
  2446. *
  2447. * Return: True is report set to max
  2448. */
  2449. bool
  2450. ucfg_mlme_stats_is_link_speed_report_max(struct wlan_objmgr_psoc *psoc);
  2451. /**
  2452. * ucfg_mlme_stats_is_link_speed_report_max_scaled() - is link speed report set
  2453. * max scaled
  2454. * @psoc: pointer to psoc object
  2455. *
  2456. * Return: True is report set to max scaled
  2457. */
  2458. bool
  2459. ucfg_mlme_stats_is_link_speed_report_max_scaled(struct wlan_objmgr_psoc *psoc);
  2460. /**
  2461. * ucfg_mlme_get_ibss_cfg() - Get IBSS config params data structure
  2462. * @psoc: pointer to psoc object
  2463. * @auto_bssid: Pointer to return the IBSS config data structure
  2464. *
  2465. * Return: QDF Status
  2466. */
  2467. QDF_STATUS ucfg_mlme_get_ibss_cfg(struct wlan_objmgr_psoc *psoc,
  2468. struct wlan_mlme_ibss_cfg *ibss_cfg);
  2469. /**
  2470. * ucfg_mlme_set_ibss_auto_bssid() - Set IBSS Auto BSSID config
  2471. * @psoc: pointer to psoc object
  2472. * @auto_bssid: IBSS Auto BSSID config value
  2473. *
  2474. * Return: QDF Status
  2475. */
  2476. QDF_STATUS ucfg_mlme_set_ibss_auto_bssid(struct wlan_objmgr_psoc *psoc,
  2477. uint32_t auto_bssid);
  2478. /**
  2479. * ucfg_mlme_ibss_power_save_setup() - Set IBSS power save params
  2480. * @psoc: pointer to psoc object
  2481. * @vdev_id: IBSS Vdev ID
  2482. *
  2483. * Return: QDF Status
  2484. */
  2485. static inline
  2486. QDF_STATUS ucfg_mlme_ibss_power_save_setup(struct wlan_objmgr_psoc *psoc,
  2487. uint32_t vdev_id)
  2488. {
  2489. return wlan_mlme_ibss_power_save_setup(psoc, vdev_id);
  2490. }
  2491. /**
  2492. * ucfg_mlme_get_tl_delayed_trgr_frm_int() - Get delay interval(in ms)
  2493. * of UAPSD auto trigger.
  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: None
  2500. */
  2501. static inline
  2502. void ucfg_mlme_get_tl_delayed_trgr_frm_int(struct wlan_objmgr_psoc *psoc,
  2503. uint32_t *value)
  2504. {
  2505. wlan_mlme_get_tl_delayed_trgr_frm_int(psoc, value);
  2506. }
  2507. /**
  2508. * ucfg_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  2509. * for VI
  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_dir_ac_vi(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2519. {
  2520. return wlan_mlme_get_wmm_dir_ac_vi(psoc, value);
  2521. }
  2522. /**
  2523. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  2524. * MSDU size for VI
  2525. * @psoc: pointer to psoc object
  2526. * @value: Value that needs to be set from the caller
  2527. *
  2528. * Inline UCFG API to be used by HDD/OSIF callers
  2529. *
  2530. * Return: QDF Status
  2531. */
  2532. static inline
  2533. QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  2534. uint16_t *value)
  2535. {
  2536. return wlan_mlme_get_wmm_nom_msdu_size_ac_vi(psoc, value);
  2537. }
  2538. /**
  2539. * ucfg_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  2540. * rate for VI
  2541. * @psoc: pointer to psoc object
  2542. * @value: Value that needs to be set from the caller
  2543. *
  2544. * Inline UCFG API to be used by HDD/OSIF callers
  2545. *
  2546. * Return: QDF Status
  2547. */
  2548. static inline
  2549. QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  2550. uint32_t *value)
  2551. {
  2552. return wlan_mlme_get_wmm_mean_data_rate_ac_vi(psoc, value);
  2553. }
  2554. /**
  2555. * ucfg_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  2556. * rate for VI
  2557. * @psoc: pointer to psoc object
  2558. * @value: Value that needs to be set from the caller
  2559. *
  2560. * Inline UCFG API to be used by HDD/OSIF callers
  2561. *
  2562. * Return: QDF Status
  2563. */
  2564. static inline
  2565. QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  2566. uint32_t *value)
  2567. {
  2568. return wlan_mlme_get_wmm_min_phy_rate_ac_vi(psoc, value);
  2569. }
  2570. /**
  2571. * ucfg_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  2572. * allowance for VI
  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_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2582. {
  2583. return wlan_mlme_get_wmm_sba_ac_vi(psoc, value);
  2584. }
  2585. /**
  2586. * ucfg_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  2587. * interval for video
  2588. * @psoc: pointer to psoc object
  2589. * @value: pointer to the value which will be filled for the caller
  2590. *
  2591. * Inline UCFG API to be used by HDD/OSIF callers
  2592. *
  2593. * Return: QDF Status
  2594. */
  2595. static inline QDF_STATUS
  2596. ucfg_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  2597. uint32_t *value)
  2598. {
  2599. return wlan_mlme_get_wmm_uapsd_vi_srv_intv(psoc, value);
  2600. }
  2601. /**
  2602. * ucfg_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  2603. * interval for video
  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_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  2613. uint32_t *value)
  2614. {
  2615. return wlan_mlme_get_wmm_uapsd_vi_sus_intv(psoc, value);
  2616. }
  2617. /**
  2618. * ucfg_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  2619. * for BE
  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_dir_ac_be(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2629. {
  2630. return wlan_mlme_get_wmm_dir_ac_be(psoc, value);
  2631. }
  2632. /**
  2633. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  2634. * MSDU size for BE
  2635. * @psoc: pointer to psoc object
  2636. * @value: Value that needs to be set from the caller
  2637. *
  2638. * Inline UCFG API to be used by HDD/OSIF callers
  2639. *
  2640. * Return: QDF Status
  2641. */
  2642. static inline
  2643. QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  2644. uint16_t *value)
  2645. {
  2646. return wlan_mlme_get_wmm_nom_msdu_size_ac_be(psoc, value);
  2647. }
  2648. /**
  2649. * ucfg_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  2650. * rate for BE
  2651. * @psoc: pointer to psoc object
  2652. * @value: Value that needs to be set from the caller
  2653. *
  2654. * Inline UCFG API to be used by HDD/OSIF callers
  2655. *
  2656. * Return: QDF Status
  2657. */
  2658. static inline
  2659. QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  2660. uint32_t *value)
  2661. {
  2662. return wlan_mlme_get_wmm_mean_data_rate_ac_be(psoc, value);
  2663. }
  2664. /**
  2665. * ucfg_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  2666. * rate for BE
  2667. * @psoc: pointer to psoc object
  2668. * @value: Value that needs to be set from the caller
  2669. *
  2670. * Inline UCFG API to be used by HDD/OSIF callers
  2671. *
  2672. * Return: QDF Status
  2673. */
  2674. static inline
  2675. QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  2676. uint32_t *value)
  2677. {
  2678. return wlan_mlme_get_wmm_min_phy_rate_ac_be(psoc, value);
  2679. }
  2680. /**
  2681. * ucfg_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  2682. * allowance for BE
  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_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2692. {
  2693. return wlan_mlme_get_wmm_sba_ac_be(psoc, value);
  2694. }
  2695. /**
  2696. * ucfg_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  2697. * interval for BE
  2698. * @psoc: pointer to psoc object
  2699. * @value: pointer to the value which will be filled for 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_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  2707. uint32_t *value)
  2708. {
  2709. return wlan_mlme_get_wmm_uapsd_be_srv_intv(psoc, value);
  2710. }
  2711. /**
  2712. * ucfg_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  2713. * interval for BE
  2714. * @psoc: pointer to psoc object
  2715. * @value: Value that needs to be set from the caller
  2716. *
  2717. * Inline UCFG API to be used by HDD/OSIF callers
  2718. *
  2719. * Return: QDF Status
  2720. */
  2721. static inline QDF_STATUS
  2722. ucfg_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  2723. uint32_t *value)
  2724. {
  2725. return wlan_mlme_get_wmm_uapsd_be_sus_intv(psoc, value);
  2726. }
  2727. /**
  2728. * ucfg_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  2729. * for BK
  2730. * @psoc: pointer to psoc object
  2731. * @value: Value that needs to be set from the caller
  2732. *
  2733. * Inline UCFG API to be used by HDD/OSIF callers
  2734. *
  2735. * Return: QDF Status
  2736. */
  2737. static inline QDF_STATUS
  2738. ucfg_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2739. {
  2740. return wlan_mlme_get_wmm_dir_ac_bk(psoc, value);
  2741. }
  2742. /**
  2743. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  2744. * MSDU size for BE
  2745. * @psoc: pointer to psoc object
  2746. * @value: Value that needs to be set from the caller
  2747. *
  2748. * Inline UCFG API to be used by HDD/OSIF callers
  2749. *
  2750. * Return: QDF Status
  2751. */
  2752. static inline
  2753. QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  2754. uint16_t *value)
  2755. {
  2756. return wlan_mlme_get_wmm_nom_msdu_size_ac_bk(psoc, value);
  2757. }
  2758. /**
  2759. * ucfg_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  2760. * rate for BK
  2761. * @psoc: pointer to psoc object
  2762. * @value: Value that needs to be set from the caller
  2763. *
  2764. * Inline UCFG API to be used by HDD/OSIF callers
  2765. *
  2766. * Return: QDF Status
  2767. */
  2768. static inline
  2769. QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  2770. uint32_t *value)
  2771. {
  2772. return wlan_mlme_get_wmm_mean_data_rate_ac_bk(psoc, value);
  2773. }
  2774. /**
  2775. * ucfg_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  2776. * rate for BE
  2777. * @psoc: pointer to psoc object
  2778. * @value: Value that needs to be set from the caller
  2779. *
  2780. * Inline UCFG API to be used by HDD/OSIF callers
  2781. *
  2782. * Return: QDF Status
  2783. */
  2784. static inline
  2785. QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  2786. uint32_t *value)
  2787. {
  2788. return wlan_mlme_get_wmm_min_phy_rate_ac_bk(psoc, value);
  2789. }
  2790. /**
  2791. * ucfg_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  2792. * allowance for BE
  2793. * @psoc: pointer to psoc object
  2794. * @value: Value that needs to be set from the caller
  2795. *
  2796. * Inline UCFG API to be used by HDD/OSIF callers
  2797. *
  2798. * Return: QDF Status
  2799. */
  2800. static inline QDF_STATUS
  2801. ucfg_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2802. {
  2803. return wlan_mlme_get_wmm_sba_ac_bk(psoc, value);
  2804. }
  2805. /**
  2806. * ucfg_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  2807. * interval for BK
  2808. * @psoc: pointer to psoc object
  2809. * @value: pointer to the value which will be filled for the caller
  2810. *
  2811. * Inline UCFG API to be used by HDD/OSIF callers
  2812. *
  2813. * Return: QDF Status
  2814. */
  2815. static inline QDF_STATUS
  2816. ucfg_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  2817. uint32_t *value)
  2818. {
  2819. return wlan_mlme_get_wmm_uapsd_bk_srv_intv(psoc, value);
  2820. }
  2821. /**
  2822. * ucfg_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  2823. * interval for BK
  2824. * @psoc: pointer to psoc object
  2825. * @value: Value that needs to be set from the caller
  2826. *
  2827. * Inline UCFG API to be used by HDD/OSIF callers
  2828. *
  2829. * Return: QDF Status
  2830. */
  2831. static inline QDF_STATUS
  2832. ucfg_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  2833. uint32_t *value)
  2834. {
  2835. return wlan_mlme_get_wmm_uapsd_bk_sus_intv(psoc, value);
  2836. }
  2837. /**
  2838. * ucfg_mlme_get_wmm_mode() - Enable WMM feature
  2839. * @psoc: pointer to psoc object
  2840. * @value: Value that needs to be set from the caller
  2841. *
  2842. * Inline UCFG API to be used by HDD/OSIF callers
  2843. *
  2844. * Return: QDF Status
  2845. */
  2846. static inline QDF_STATUS
  2847. ucfg_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2848. {
  2849. return wlan_mlme_get_wmm_mode(psoc, value);
  2850. }
  2851. #ifdef WLAN_FEATURE_11AX
  2852. /**
  2853. * ucfg_mlme_update_tgt_he_cap() - Update tgt he cap in mlme component
  2854. *
  2855. * @psoc: pointer to psoc object
  2856. * @cfg: pointer to config params from target
  2857. *
  2858. * Inline UCFG API to be used by HDD/OSIF callers to update
  2859. * he caps in mlme.
  2860. *
  2861. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2862. */
  2863. static inline QDF_STATUS
  2864. ucfg_mlme_update_tgt_he_cap(struct wlan_objmgr_psoc *psoc,
  2865. struct wma_tgt_cfg *cfg)
  2866. {
  2867. return mlme_update_tgt_he_caps_in_cfg(psoc, cfg);
  2868. }
  2869. /**
  2870. * ucfg_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio
  2871. * @psoc: pointer to psoc object
  2872. * @value: Value that needs to be set from the caller
  2873. *
  2874. * Return: QDF Status
  2875. */
  2876. static inline
  2877. QDF_STATUS ucfg_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  2878. uint32_t *value)
  2879. {
  2880. return wlan_mlme_cfg_get_he_ul_mumimo(psoc, value);
  2881. }
  2882. /**
  2883. * ucfg_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio
  2884. * @psoc: pointer to psoc object
  2885. * @value: Value that needs to be set from the caller
  2886. *
  2887. * Return: QDF Status
  2888. */
  2889. static inline
  2890. QDF_STATUS ucfg_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  2891. uint32_t value)
  2892. {
  2893. return wlan_mlme_cfg_set_he_ul_mumimo(psoc, value);
  2894. }
  2895. /**
  2896. * ucfg_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo
  2897. * @psoc: pointer to psoc object
  2898. * @value: Value that needs to be set from the caller
  2899. *
  2900. * Return: QDF Status
  2901. */
  2902. static inline
  2903. QDF_STATUS ucfg_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc,
  2904. uint8_t *value)
  2905. {
  2906. return wlan_mlme_cfg_get_enable_ul_mimo(psoc, value);
  2907. }
  2908. /**
  2909. * ucfg_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm
  2910. * @psoc: pointer to psoc object
  2911. * @value: Value that needs to be set from the caller
  2912. *
  2913. * Return: QDF Status
  2914. */
  2915. static inline
  2916. QDF_STATUS ucfg_mlme_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc,
  2917. uint8_t *value)
  2918. {
  2919. return wlan_mlme_cfg_get_enable_ul_ofdm(psoc, value);
  2920. }
  2921. #endif
  2922. /**
  2923. * ucfg_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  2924. * @psoc: pointer to psoc object
  2925. * @value: Value that needs to be set from the caller
  2926. *
  2927. * Inline UCFG API to be used by HDD/OSIF callers
  2928. *
  2929. * Return: QDF Status
  2930. */
  2931. static inline QDF_STATUS
  2932. ucfg_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2933. {
  2934. return wlan_mlme_get_80211e_is_enabled(psoc, value);
  2935. }
  2936. /**
  2937. * ucfg_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  2938. * @psoc: pointer to psoc object
  2939. * @value: Value that needs to be set from the caller
  2940. *
  2941. * Inline UCFG API to be used by HDD/OSIF callers
  2942. *
  2943. * Return: QDF Status
  2944. */
  2945. static inline QDF_STATUS
  2946. ucfg_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2947. {
  2948. return wlan_mlme_get_wmm_uapsd_mask(psoc, value);
  2949. }
  2950. /**
  2951. * ucfg_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  2952. * @psoc: pointer to psoc object
  2953. * @value: Value that needs to be set from the caller
  2954. *
  2955. * Inline UCFG API to be used by HDD/OSIF callers
  2956. *
  2957. * Return: QDF Status
  2958. */
  2959. static inline
  2960. QDF_STATUS ucfg_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  2961. bool *value)
  2962. {
  2963. return wlan_mlme_get_implicit_qos_is_enabled(psoc, value);
  2964. }
  2965. #ifdef FEATURE_WLAN_ESE
  2966. /**
  2967. * ucfg_mlme_get_inactivity_interval() - Infra Inactivity Interval
  2968. * @psoc: pointer to psoc object
  2969. * @value: Value that needs to be get from the caller
  2970. *
  2971. * Inline UCFG API to be used by HDD/OSIF callers
  2972. *
  2973. * Return: None
  2974. */
  2975. static inline void
  2976. ucfg_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
  2977. uint32_t *value)
  2978. {
  2979. wlan_mlme_get_inactivity_interval(psoc, value);
  2980. }
  2981. /**
  2982. * ucfg_mlme_is_ese_enabled() - ese feature enable or not
  2983. * @psoc: pointer to psoc object
  2984. * @val: Pointer to the value which will be filled for the caller
  2985. *
  2986. * Return: QDF Status
  2987. */
  2988. QDF_STATUS
  2989. ucfg_mlme_is_ese_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  2990. #endif /* FEATURE_WLAN_ESE */
  2991. /**
  2992. * ucfg_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
  2993. * @psoc: pointer to psoc object
  2994. * @value: Value that needs to be get from the caller
  2995. *
  2996. * Inline UCFG API to be used by HDD/OSIF callers
  2997. *
  2998. * Return: None
  2999. */
  3000. static inline
  3001. void ucfg_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
  3002. bool *value)
  3003. {
  3004. wlan_mlme_get_is_ts_burst_size_enable(psoc, value);
  3005. }
  3006. /**
  3007. * ucfg_mlme_get_ts_info_ack_policy() - Get TS ack policy
  3008. * @psoc: pointer to psoc object
  3009. * @value: Value that needs to be get from the caller
  3010. *
  3011. * Inline UCFG API to be used by HDD/OSIF callers
  3012. *
  3013. * Return: None
  3014. */
  3015. static inline void
  3016. ucfg_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
  3017. enum mlme_ts_info_ack_policy *value)
  3018. {
  3019. wlan_mlme_get_ts_info_ack_policy(psoc, value);
  3020. }
  3021. /**
  3022. * ucfg_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
  3023. * @psoc: pointer to psoc object
  3024. * @value: Value that needs to be get from the caller
  3025. *
  3026. *
  3027. * Inline UCFG API to be used by HDD/OSIF callers
  3028. *
  3029. * Return: QDF Status
  3030. */
  3031. static inline QDF_STATUS
  3032. ucfg_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value)
  3033. {
  3034. return wlan_mlme_get_ts_acm_value_for_ac(psoc, value);
  3035. }
  3036. /*
  3037. * ucfg_mlme_is_sap_uapsd_enabled() - SAP UAPSD enabled status.
  3038. * @psoc: pointer to psoc object
  3039. * @value: sap uapsd enabled flag value requested from the caller
  3040. *
  3041. * Inline UCFG API to be used by HDD/OSIF callers
  3042. *
  3043. * Return: QDF Status
  3044. */
  3045. static inline QDF_STATUS
  3046. ucfg_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  3047. {
  3048. return wlan_mlme_is_sap_uapsd_enabled(psoc, value);
  3049. }
  3050. /*
  3051. * ucfg_mlme_set_sap_uapsd_flag() - SAP UAPSD enabled status.
  3052. * @psoc: pointer to psoc object
  3053. * @value: Value that needs to be set from the caller
  3054. *
  3055. * Inline UCFG API to be used by HDD/OSIF callers
  3056. *
  3057. * Return: QDF Status
  3058. */
  3059. static inline QDF_STATUS
  3060. ucfg_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc, bool value)
  3061. {
  3062. return wlan_mlme_set_sap_uapsd_flag(psoc, value);
  3063. }
  3064. /**
  3065. * ucfg_mlme_get_enable_deauth_to_disassoc_map() - Enable deauth_to_disassoc_map
  3066. * @psoc: pointer to psoc object
  3067. * @value: Value that needs to be set from the caller
  3068. *
  3069. * UCFG API to be used by HDD/OSIF callers
  3070. *
  3071. * Return: QDF Status
  3072. */
  3073. QDF_STATUS
  3074. ucfg_mlme_get_enable_deauth_to_disassoc_map(struct wlan_objmgr_psoc *psoc,
  3075. bool *value);
  3076. /**
  3077. * ucfg_mlme_get_ap_random_bssid_enable() - Enable random bssid
  3078. * @psoc: pointer to psoc object
  3079. * @value: Value that needs to be set from the caller
  3080. *
  3081. * UCFG API to be used by HDD/OSIF callers
  3082. *
  3083. * Return: QDF Status
  3084. */
  3085. QDF_STATUS
  3086. ucfg_mlme_get_ap_random_bssid_enable(struct wlan_objmgr_psoc *psoc,
  3087. bool *value);
  3088. /**
  3089. * ucfg_mlme_get_sta_miracast_mcc_rest_time() - Get STA/MIRACAST MCC rest time
  3090. *
  3091. * @psoc: pointer to psoc object
  3092. * @value: value which needs to filled by API
  3093. *
  3094. * This API gives rest time to be used when STA and MIRACAST MCC conc happens
  3095. *
  3096. * Return: QDF_STATUS
  3097. */
  3098. static inline QDF_STATUS
  3099. ucfg_mlme_get_sta_miracast_mcc_rest_time(struct wlan_objmgr_psoc *psoc,
  3100. uint32_t *value)
  3101. {
  3102. return wlan_mlme_get_sta_miracast_mcc_rest_time(psoc, value);
  3103. }
  3104. /**
  3105. * ucfg_mlme_get_sap_mcc_chnl_avoid() - Check if SAP MCC needs to be avoided
  3106. *
  3107. * @psoc: pointer to psoc object
  3108. * @value: value which needs to filled by API
  3109. *
  3110. * This API fetches the user setting to determine if SAP MCC with other persona
  3111. * to be avoided.
  3112. *
  3113. * Return: QDF_STATUS
  3114. */
  3115. static inline QDF_STATUS
  3116. ucfg_mlme_get_sap_mcc_chnl_avoid(struct wlan_objmgr_psoc *psoc,
  3117. uint8_t *value)
  3118. {
  3119. return wlan_mlme_get_sap_mcc_chnl_avoid(psoc, value);
  3120. }
  3121. /**
  3122. * ucfg_mlme_get_mcc_bcast_prob_resp() - Get broadcast probe rsp in MCC
  3123. *
  3124. * @psoc: pointer to psoc object
  3125. * @value: value which needs to filled by API
  3126. *
  3127. * To get INI value which helps to determe whether to enable/disable use of
  3128. * broadcast probe response to increase the detectability of SAP in MCC mode.
  3129. *
  3130. *
  3131. * Return: QDF_STATUS
  3132. */
  3133. static inline QDF_STATUS
  3134. ucfg_mlme_get_mcc_bcast_prob_resp(struct wlan_objmgr_psoc *psoc,
  3135. uint8_t *value)
  3136. {
  3137. return wlan_mlme_get_mcc_bcast_prob_resp(psoc, value);
  3138. }
  3139. /**
  3140. * ucfg_mlme_get_mcc_rts_cts_prot() - To get RTS-CTS protection in MCC.
  3141. *
  3142. * @psoc: pointer to psoc object
  3143. * @value: value which needs to filled by API
  3144. *
  3145. * To get INI value which helps to determine whether to enable/disable
  3146. * use of long duration RTS-CTS protection when SAP goes off
  3147. * channel in MCC mode.
  3148. *
  3149. * Return: QDF_STATUS
  3150. */
  3151. static inline QDF_STATUS
  3152. ucfg_mlme_get_mcc_rts_cts_prot(struct wlan_objmgr_psoc *psoc,
  3153. uint8_t *value)
  3154. {
  3155. return wlan_mlme_get_mcc_rts_cts_prot(psoc, value);
  3156. }
  3157. /**
  3158. * ucfg_mlme_get_mcc_feature() - To find out to enable/disable MCC feature
  3159. *
  3160. * @psoc: pointer to psoc object
  3161. * @value: value which needs to filled by API
  3162. *
  3163. * To get INI value which helps to determine whether to enable MCC feature
  3164. *
  3165. * Return: QDF_STATUS
  3166. */
  3167. static inline QDF_STATUS
  3168. ucfg_mlme_get_mcc_feature(struct wlan_objmgr_psoc *psoc,
  3169. uint8_t *value)
  3170. {
  3171. return wlan_mlme_get_mcc_feature(psoc, value);
  3172. }
  3173. /**
  3174. * ucfg_wlan_mlme_get_rrm_enabled() - Get the rrm enabled
  3175. * @psoc: pointer to psoc object
  3176. * @value: Value that needs to be get from the caller
  3177. *
  3178. * Return: QDF Status
  3179. */
  3180. static inline
  3181. QDF_STATUS ucfg_wlan_mlme_get_rrm_enabled(struct wlan_objmgr_psoc *psoc,
  3182. bool *value)
  3183. {
  3184. return wlan_mlme_get_rrm_enabled(psoc, value);
  3185. }
  3186. /**
  3187. * ucfg_mlme_get_latency_enable() - Get the latency_enable
  3188. * @psoc: pointer to psoc object
  3189. * @value: Value that needs to be get from the caller
  3190. *
  3191. * Return: QDF Status
  3192. */
  3193. QDF_STATUS
  3194. ucfg_mlme_get_latency_enable(struct wlan_objmgr_psoc *psoc, bool *value);
  3195. /**
  3196. * ucfg_mlme_get_dtim_selection_diversity() - get dtim selection diversity
  3197. * bitmap
  3198. * @psoc: pointer to psoc object
  3199. * @dtim_selection_div: value that is requested by the caller
  3200. *
  3201. * Inline UCFG API to be used by HDD/OSIF callers
  3202. *
  3203. * Return: QDF_STATUS_SUCCESS - in case of success
  3204. */
  3205. static inline QDF_STATUS
  3206. ucfg_mlme_get_dtim_selection_diversity(struct wlan_objmgr_psoc *psoc,
  3207. uint32_t *dtim_selection_div)
  3208. {
  3209. return wlan_mlme_get_dtim_selection_diversity(psoc, dtim_selection_div);
  3210. }
  3211. /**
  3212. * ucfg_mlme_get_bmps_min_listen_interval() - get beacon mode powersave
  3213. * minimum listen interval value
  3214. * @psoc: pointer to psoc object
  3215. * @value: value that is requested by the caller
  3216. *
  3217. * Inline UCFG API to be used by HDD/OSIF callers
  3218. *
  3219. * Return: QDF_STATUS_SUCCESS - in case of success
  3220. */
  3221. static inline QDF_STATUS
  3222. ucfg_mlme_get_bmps_min_listen_interval(struct wlan_objmgr_psoc *psoc,
  3223. uint32_t *value)
  3224. {
  3225. return wlan_mlme_get_bmps_min_listen_interval(psoc, value);
  3226. }
  3227. /**
  3228. * ucfg_mlme_get_bmps_max_listen_interval() - get beacon mode powersave
  3229. * maximum listen interval value
  3230. * @psoc: pointer to psoc object
  3231. * @value: value that is requested by the caller
  3232. *
  3233. * Inline UCFG API to be used by HDD/OSIF callers
  3234. *
  3235. * Return: QDF_STATUS_SUCCESS - in case of success
  3236. */
  3237. static inline QDF_STATUS
  3238. ucfg_mlme_get_bmps_max_listen_interval(struct wlan_objmgr_psoc *psoc,
  3239. uint32_t *value)
  3240. {
  3241. return wlan_mlme_get_bmps_max_listen_interval(psoc, value);
  3242. }
  3243. /**
  3244. * ucfg_mlme_get_auto_bmps_timer_value() - get bmps timer value
  3245. * minimum listen interval value
  3246. * @psoc: pointer to psoc object
  3247. * @value: value that is requested by the caller
  3248. *
  3249. * Inline UCFG API to be used by HDD/OSIF callers
  3250. *
  3251. * Return: QDF_STATUS_SUCCESS - in case of success
  3252. */
  3253. static inline QDF_STATUS
  3254. ucfg_mlme_get_auto_bmps_timer_value(struct wlan_objmgr_psoc *psoc,
  3255. uint32_t *value)
  3256. {
  3257. return wlan_mlme_get_auto_bmps_timer_value(psoc, value);
  3258. }
  3259. /**
  3260. * ucfg_mlme_is_bmps_enabled() - check if beacon mode powersave is
  3261. * enabled/disabled
  3262. * @psoc: pointer to psoc object
  3263. * @value: value that is requested by the caller
  3264. *
  3265. * Inline UCFG API to be used by HDD/OSIF callers
  3266. *
  3267. * Return: QDF_STATUS_SUCCESS - in case of success
  3268. */
  3269. static inline QDF_STATUS
  3270. ucfg_mlme_is_bmps_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  3271. {
  3272. return wlan_mlme_is_bmps_enabled(psoc, value);
  3273. }
  3274. /**
  3275. * ucfg_mlme_is_imps_enabled() - check if idle mode powersave is
  3276. * enabled/disabled
  3277. * @psoc: pointer to psoc object
  3278. * @value: value that is requested by the caller
  3279. *
  3280. * Inline UCFG API to be used by HDD/OSIF callers
  3281. *
  3282. * Return: QDF_STATUS_SUCCESS - in case of success
  3283. */
  3284. static inline QDF_STATUS
  3285. ucfg_mlme_is_imps_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  3286. {
  3287. return wlan_mlme_is_imps_enabled(psoc, value);
  3288. }
  3289. /**
  3290. * ucfg_mlme_override_bmps_imps() - disable imps/bmps as part of
  3291. * override to disable all ps features
  3292. * @psoc: pointer to psoc object
  3293. * Inline UCFG API to be used by HDD/OSIF callers
  3294. *
  3295. * Return: QDF_STATUS_SUCCESS - in case of success
  3296. */
  3297. static inline QDF_STATUS
  3298. ucfg_mlme_override_bmps_imps(struct wlan_objmgr_psoc *psoc)
  3299. {
  3300. return wlan_mlme_override_bmps_imps(psoc);
  3301. }
  3302. #ifdef MWS_COEX
  3303. /**
  3304. * ucfg_mlme_get_mws_coex_4g_quick_tdm() - Get mws coex 4g quick tdm
  3305. * @psoc: pointer to psoc object
  3306. * @val: Pointer to the value which will be filled for the caller
  3307. *
  3308. * Return: QDF Status
  3309. */
  3310. QDF_STATUS
  3311. ucfg_mlme_get_mws_coex_4g_quick_tdm(struct wlan_objmgr_psoc *psoc,
  3312. uint32_t *val);
  3313. /**
  3314. * ucfg_mlme_get_mws_coex_5g_nr_pwr_limit() - Get mws coex 5g nr pwr limit
  3315. * @psoc: pointer to psoc object
  3316. * @val: Pointer to the value which will be filled for the caller
  3317. *
  3318. * Return: QDF Status
  3319. */
  3320. QDF_STATUS
  3321. ucfg_mlme_get_mws_coex_5g_nr_pwr_limit(struct wlan_objmgr_psoc *psoc,
  3322. uint32_t *val);
  3323. #endif
  3324. /**
  3325. * ucfg_mlme_get_etsi13_srd_chan_in_master_mode - get etsi13 srd chan
  3326. * in master mode
  3327. * @psoc: pointer to psoc object
  3328. * @value: pointer to the value which will be filled for the caller
  3329. *
  3330. * Return: QDF Status
  3331. */
  3332. QDF_STATUS
  3333. ucfg_mlme_get_etsi13_srd_chan_in_master_mode(struct wlan_objmgr_psoc *psoc,
  3334. bool *value);
  3335. /**
  3336. * ucfg_mlme_get_11d_in_world_mode - get whether 11d is enabled in world mode
  3337. * in master mode
  3338. * @psoc: pointer to psoc object
  3339. * @value: pointer to the value which will be filled for the caller
  3340. *
  3341. * Return: QDF Status
  3342. */
  3343. QDF_STATUS
  3344. ucfg_mlme_get_11d_in_world_mode(struct wlan_objmgr_psoc *psoc,
  3345. bool *value);
  3346. /**
  3347. * ucfg_mlme_restart_beaconing_on_ch_avoid() - get restart beaconing on ch avoid
  3348. * @psoc: pointer to psoc object
  3349. * @value: pointer to the value which will be filled for the caller
  3350. *
  3351. * Return: QDF Status
  3352. */
  3353. QDF_STATUS
  3354. ucfg_mlme_get_restart_beaconing_on_ch_avoid(struct wlan_objmgr_psoc *psoc,
  3355. uint32_t *value);
  3356. /**
  3357. * ucfg_mlme_get_indoor_channel_support() - get indoor channel support
  3358. * @psoc: pointer to psoc object
  3359. * @value: pointer to the value which will be filled for the caller
  3360. *
  3361. * Return: QDF Status
  3362. */
  3363. QDF_STATUS
  3364. ucfg_mlme_get_indoor_channel_support(struct wlan_objmgr_psoc *psoc,
  3365. bool *value);
  3366. /**
  3367. * ucfg_mlme_get_scan_11d_interval() - get scan 11d interval
  3368. * @psoc: pointer to psoc object
  3369. * @value: Pointer to the value which will be filled for the caller
  3370. *
  3371. * Return: QDF Status
  3372. */
  3373. QDF_STATUS
  3374. ucfg_mlme_get_scan_11d_interval(struct wlan_objmgr_psoc *psoc,
  3375. uint32_t *value);
  3376. /**
  3377. * ucfg_mlme_get_valid_channel_list() - get valid channel list
  3378. * @psoc: pointer to psoc object
  3379. * @channel_list: pointer to return channel list
  3380. * @channel_list_num: pointer to return channel list number
  3381. *
  3382. * Return: QDF Status
  3383. */
  3384. QDF_STATUS
  3385. ucfg_mlme_get_valid_channel_list(struct wlan_objmgr_psoc *psoc,
  3386. uint8_t *channel_list,
  3387. uint32_t *channel_list_num);
  3388. #ifdef FEATURE_LFR_SUBNET_DETECTION
  3389. /**
  3390. * ucfg_mlme_is_subnet_detection_enabled() - check if sub net detection is
  3391. * enabled/disabled
  3392. * @psoc: pointer to psoc object
  3393. * @value: value that is requested by the caller
  3394. *
  3395. * Inline UCFG API to be used by HDD/OSIF callers
  3396. *
  3397. * Return: QDF_STATUS_SUCCESS - in case of success
  3398. */
  3399. QDF_STATUS
  3400. ucfg_mlme_is_subnet_detection_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  3401. #else
  3402. static QDF_STATUS
  3403. ucfg_mlme_is_subnet_detection_enabled(struct wlan_objmgr_psoc *psoc, bool *val)
  3404. {
  3405. *val = false;
  3406. return QDF_STATUS_SUCCESS;
  3407. }
  3408. #endif /* FEATURE_LFR_SUBNET_DETECTION */
  3409. /**
  3410. * ucfg_mlme_set_current_tx_power_level() - set current tx power level
  3411. * @psoc: pointer to psoc object
  3412. * @value: data to be set
  3413. *
  3414. * Return: QDF Status
  3415. */
  3416. QDF_STATUS
  3417. ucfg_mlme_set_current_tx_power_level(struct wlan_objmgr_psoc *psoc,
  3418. uint8_t value);
  3419. /**
  3420. * ucfg_mlme_get_current_tx_power_level() - get current tx power level
  3421. * @psoc: pointer to psoc object
  3422. * @value: pointer to the value which will be filled for the caller
  3423. *
  3424. * Return: QDF Status
  3425. */
  3426. QDF_STATUS
  3427. ucfg_mlme_get_current_tx_power_level(struct wlan_objmgr_psoc *psoc,
  3428. uint8_t *value);
  3429. /**
  3430. * ucfg_mlme_set_obss_detection_offload_enabled() - Enable obss offload
  3431. * @psoc: pointer to psoc object
  3432. * @value: enable or disable
  3433. *
  3434. * Return: QDF Status
  3435. */
  3436. QDF_STATUS
  3437. ucfg_mlme_set_obss_detection_offload_enabled(struct wlan_objmgr_psoc *psoc,
  3438. uint8_t value);
  3439. /**
  3440. * ucfg_mlme_set_obss_color_collision_offload_enabled() - Enable obss color
  3441. * collision offload
  3442. * @psoc: pointer to psoc object
  3443. * @value: enable or disable
  3444. *
  3445. * Return: QDF Status
  3446. */
  3447. QDF_STATUS
  3448. ucfg_mlme_set_obss_color_collision_offload_enabled(
  3449. struct wlan_objmgr_psoc *psoc, uint8_t value);
  3450. /**
  3451. * ucfg_mlme_get_channel_bonding_24ghz() - get channel bonding mode of 24ghz
  3452. * @psoc: pointer to psoc object
  3453. * @value: pointer to the value which will be filled for the caller
  3454. *
  3455. * Return: QDF Status
  3456. */
  3457. QDF_STATUS
  3458. ucfg_mlme_get_channel_bonding_24ghz(struct wlan_objmgr_psoc *psoc,
  3459. uint32_t *value);
  3460. /**
  3461. * ucfg_mlme_set_channel_bonding_24ghz() - set channel bonding mode for 24ghz
  3462. * @psoc: pointer to psoc object
  3463. * @value: channel bonding mode
  3464. *
  3465. * Return: QDF Status
  3466. */
  3467. QDF_STATUS
  3468. ucfg_mlme_set_channel_bonding_24ghz(struct wlan_objmgr_psoc *psoc,
  3469. uint32_t value);
  3470. /**
  3471. * ucfg_mlme_get_channel_bonding_5ghz() - get channel bonding mode of 5ghz
  3472. * @psoc: pointer to psoc object
  3473. * @value: pointer to the value which will be filled for the caller
  3474. *
  3475. * Return: QDF Status
  3476. */
  3477. QDF_STATUS
  3478. ucfg_mlme_get_channel_bonding_5ghz(struct wlan_objmgr_psoc *psoc,
  3479. uint32_t *value);
  3480. /**
  3481. * ucfg_mlme_set_channel_bonding_5ghz() - set channel bonding mode for 5ghz
  3482. * @psoc: pointer to psoc object
  3483. * @value: channel bonding mode
  3484. *
  3485. * Return: QDF Status
  3486. */
  3487. QDF_STATUS
  3488. ucfg_mlme_set_channel_bonding_5ghz(struct wlan_objmgr_psoc *psoc,
  3489. uint32_t value);
  3490. #endif /* _WLAN_MLME_UCFG_API_H_ */