wlan_mlme_ucfg_api.h 100 KB

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