wlan_mlme_ucfg_api.h 94 KB

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