wlan_mlme_ucfg_api.h 100 KB

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