wlan_mlme_ucfg_api.h 98 KB

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