wlan_mlme_ucfg_api.h 101 KB

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