wlan_mlme_ucfg_api.h 97 KB

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