wlan_mlme_ucfg_api.h 98 KB

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