wlan_mlme_ucfg_api.h 98 KB

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