wlan_mlme_api.h 117 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431
  1. /*
  2. * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: declare public APIs exposed by the mlme component
  21. */
  22. #ifndef _WLAN_MLME_API_H_
  23. #define _WLAN_MLME_API_H_
  24. #include <wlan_mlme_public_struct.h>
  25. #include <wlan_objmgr_psoc_obj.h>
  26. #include <wlan_cmn.h>
  27. #include "sme_api.h"
  28. #ifdef FEATURE_SET
  29. /**
  30. * wlan_mlme_get_feature_info() - Get mlme features
  31. * @psoc: psoc context
  32. * @mlme_feature_set: MLME feature set info structure
  33. *
  34. * Return: None
  35. */
  36. void wlan_mlme_get_feature_info(
  37. struct wlan_objmgr_psoc *psoc,
  38. struct wlan_mlme_features *mlme_feature_set);
  39. #endif
  40. /**
  41. * wlan_mlme_get_cfg_str() - Copy the uint8_t array for a particular CFG
  42. * @dst: pointer to the destination buffer.
  43. * @cfg_str: pointer to the cfg string structure
  44. * @len: length to be copied
  45. *
  46. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_E_FAILURE
  47. */
  48. QDF_STATUS wlan_mlme_get_cfg_str(uint8_t *dst, struct mlme_cfg_str *cfg_str,
  49. qdf_size_t *len);
  50. /**
  51. * wlan_mlme_set_cfg_str() - Set values for a particular CFG
  52. * @src: pointer to the source buffer.
  53. * @dst_cfg_str: pointer to the cfg string structure to be modified
  54. * @len: length to be written
  55. *
  56. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_E_FAILURE
  57. */
  58. QDF_STATUS wlan_mlme_set_cfg_str(uint8_t *src, struct mlme_cfg_str *dst_cfg_str,
  59. qdf_size_t len);
  60. /**
  61. * wlan_mlme_get_edca_params() - get the EDCA parameters corresponding to the
  62. * edca profile access category
  63. * @edca_params: pointer to mlme edca parameters structure
  64. * @data: data to which the parameter is to be copied
  65. * @edca_ac: edca ac type enum passed to get the cfg value
  66. *
  67. * Return QDF_STATUS_SUCCESS or QDF_STATUS_E_FAILURE
  68. *
  69. */
  70. QDF_STATUS wlan_mlme_get_edca_params(struct wlan_mlme_edca_params *edca_params,
  71. uint8_t *data, enum e_edca_type edca_ac);
  72. /**
  73. * wlan_mlme_update_cfg_with_tgt_caps() - Update mlme cfg with tgt caps
  74. * @psoc: pointer to psoc object
  75. * @tgt_caps: Pointer to the mlme related capability structure
  76. *
  77. * Return: None
  78. */
  79. void
  80. wlan_mlme_update_cfg_with_tgt_caps(struct wlan_objmgr_psoc *psoc,
  81. struct mlme_tgt_caps *tgt_caps);
  82. /*
  83. * mlme_get_wep_key() - get the wep key to process during auth frame
  84. * @vdev: VDEV object for which the wep key is being requested
  85. * @wep_params: cfg wep parameters structure
  86. * @wep_key_id: default key number
  87. * @default_key: default key to be copied
  88. * @key_len: length of the key to copy
  89. *
  90. * Return QDF_STATUS
  91. */
  92. QDF_STATUS mlme_get_wep_key(struct wlan_objmgr_vdev *vdev,
  93. struct wlan_mlme_wep_cfg *wep_params,
  94. enum wep_key_id wep_keyid, uint8_t *default_key,
  95. qdf_size_t *key_len);
  96. /**
  97. * wlan_mlme_get_tx_power() - Get the max tx power in particular band
  98. * @psoc: pointer to psoc object
  99. * @band: 2ghz/5ghz band
  100. *
  101. * Return: value of tx power in the respective band
  102. */
  103. uint8_t wlan_mlme_get_tx_power(struct wlan_objmgr_psoc *psoc,
  104. enum band_info band);
  105. /**
  106. * wlan_mlme_get_power_usage() - Get the power usage info
  107. * @psoc: pointer to psoc object
  108. *
  109. * Return: pointer to character array of power usage
  110. */
  111. char *wlan_mlme_get_power_usage(struct wlan_objmgr_psoc *psoc);
  112. /**
  113. * wlan_mlme_get_enable_deauth_to_disassoc_map() - Get the deauth to disassoc
  114. * map
  115. * @psoc: pointer to psoc object
  116. * @value: pointer to the value which will be filled for the caller
  117. *
  118. * Return: QDF Status
  119. */
  120. QDF_STATUS
  121. wlan_mlme_get_enable_deauth_to_disassoc_map(struct wlan_objmgr_psoc *psoc,
  122. bool *value);
  123. /**
  124. * wlan_mlme_get_ht_cap_info() - Get the HT cap info config
  125. * @psoc: pointer to psoc object
  126. * @ht_cap_info: pointer to the value which will be filled for the caller
  127. *
  128. * Return: QDF Status
  129. */
  130. QDF_STATUS wlan_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  131. struct mlme_ht_capabilities_info
  132. *ht_cap_info);
  133. /**
  134. * wlan_mlme_get_manufacturer_name() - get manufacturer name
  135. * @psoc: pointer to psoc object
  136. * @pbuf: pointer of the buff which will be filled for the caller
  137. * @plen: pointer of max buffer length
  138. * actual length will be returned at this address
  139. * This function gets manufacturer name
  140. *
  141. * Return: QDF_STATUS_SUCCESS - in case of success
  142. */
  143. QDF_STATUS
  144. wlan_mlme_get_manufacturer_name(struct wlan_objmgr_psoc *psoc,
  145. uint8_t *pbuf, uint32_t *plen);
  146. /**
  147. * wlan_mlme_get_model_number() - get model number
  148. * @psoc: pointer to psoc object
  149. * @pbuf: pointer of the buff which will be filled for the caller
  150. * @plen: pointer of max buffer length
  151. * actual length will be returned at this address
  152. * This function gets model number
  153. *
  154. * Return: QDF_STATUS_SUCCESS - in case of success
  155. */
  156. QDF_STATUS
  157. wlan_mlme_get_model_number(struct wlan_objmgr_psoc *psoc,
  158. uint8_t *pbuf, uint32_t *plen);
  159. /**
  160. * wlan_mlme_get_model_name() - get model name
  161. * @psoc: pointer to psoc object
  162. * @pbuf: pointer of the buff which will be filled for the caller
  163. * @plen: pointer of max buffer length
  164. * actual length will be returned at this address
  165. * This function gets model name
  166. *
  167. * Return: QDF_STATUS_SUCCESS - in case of success
  168. */
  169. QDF_STATUS
  170. wlan_mlme_get_model_name(struct wlan_objmgr_psoc *psoc,
  171. uint8_t *pbuf, uint32_t *plen);
  172. /**
  173. * wlan_mlme_get_manufacture_product_name() - get manufacture product name
  174. * @psoc: pointer to psoc object
  175. * @pbuf: pointer of the buff which will be filled for the caller
  176. * @plen: pointer of max buffer length
  177. * actual length will be returned at this address
  178. * This function gets manufacture product name
  179. *
  180. * Return: QDF_STATUS_SUCCESS - in case of success
  181. */
  182. QDF_STATUS
  183. wlan_mlme_get_manufacture_product_name(struct wlan_objmgr_psoc *psoc,
  184. uint8_t *pbuf, uint32_t *plen);
  185. /**
  186. * wlan_mlme_get_manufacture_product_version() - get manufacture product version
  187. * @psoc: pointer to psoc object
  188. * @pbuf: pointer of the buff which will be filled for the caller
  189. * @plen: pointer of max buffer length
  190. * actual length will be returned at this address
  191. * This function gets manufacture product version
  192. *
  193. * Return: QDF_STATUS_SUCCESS - in case of success
  194. */
  195. QDF_STATUS
  196. wlan_mlme_get_manufacture_product_version(struct wlan_objmgr_psoc *psoc,
  197. uint8_t *pbuf, uint32_t *plen);
  198. /**
  199. * wlan_mlme_set_ht_cap_info() - Set the HT cap info config
  200. * @psoc: pointer to psoc object
  201. * @ht_cap_info: Value that needs to be set from the caller
  202. *
  203. * Return: QDF Status
  204. */
  205. QDF_STATUS wlan_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  206. struct mlme_ht_capabilities_info
  207. ht_cap_info);
  208. /**
  209. * wlan_mlme_get_max_amsdu_num() - get the max amsdu num
  210. * @psoc: pointer to psoc object
  211. * @value: pointer to the value where the max_amsdu num is to be filled
  212. *
  213. * Return: QDF_STATUS
  214. */
  215. QDF_STATUS wlan_mlme_get_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  216. uint8_t *value);
  217. /**
  218. * wlan_mlme_set_max_amsdu_num() - set the max amsdu num
  219. * @psoc: pointer to psoc object
  220. * @value: value to be set for max_amsdu_num
  221. *
  222. * Return: QDF_STATUS
  223. */
  224. QDF_STATUS wlan_mlme_set_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  225. uint8_t value);
  226. /**
  227. * wlan_mlme_get_ht_mpdu_density() - get the ht mpdu density
  228. * @psoc: pointer to psoc object
  229. * @value: pointer to the value where the ht mpdu density is to be filled
  230. *
  231. * Return: QDF_STATUS
  232. */
  233. QDF_STATUS wlan_mlme_get_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  234. uint8_t *value);
  235. /**
  236. * wlan_mlme_set_ht_mpdu_density() - set the ht mpdu density
  237. * @psoc: pointer to psoc object
  238. * @value: value to be set for ht mpdu density
  239. *
  240. * Return: QDF_STATUS
  241. */
  242. QDF_STATUS wlan_mlme_set_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  243. uint8_t value);
  244. /**
  245. * wlan_mlme_get_band_capability() - Get the Band capability config
  246. * @psoc: pointer to psoc object
  247. * @band_capability: Pointer to the variable from caller
  248. *
  249. * Return: QDF Status
  250. */
  251. QDF_STATUS wlan_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  252. uint32_t *band_capability);
  253. #ifdef QCA_MULTIPASS_SUPPORT
  254. /**
  255. * wlan_mlme_peer_config_vlan() - send vlan id to FW for RX path
  256. * @vdev: vdev pointer
  257. * @mac_addr: mac address of the peer
  258. *
  259. * Return: QDF_STATUS
  260. */
  261. QDF_STATUS
  262. wlan_mlme_peer_config_vlan(struct wlan_objmgr_vdev *vdev,
  263. uint8_t *mac_addr);
  264. #else
  265. static inline QDF_STATUS
  266. wlan_mlme_peer_config_vlan(struct wlan_objmgr_vdev *vdev,
  267. uint8_t *mac_addr)
  268. {
  269. return QDF_STATUS_SUCCESS;
  270. }
  271. #endif
  272. #ifdef MULTI_CLIENT_LL_SUPPORT
  273. /**
  274. * wlan_mlme_get_wlm_multi_client_ll_caps() - Get the wlm multi client latency
  275. * level capability flag
  276. * @psoc: pointer to psoc object
  277. *
  278. * Return: True is multi client ll cap present
  279. */
  280. bool wlan_mlme_get_wlm_multi_client_ll_caps(struct wlan_objmgr_psoc *psoc);
  281. #else
  282. static inline bool
  283. wlan_mlme_get_wlm_multi_client_ll_caps(struct wlan_objmgr_psoc *psoc)
  284. {
  285. return false;
  286. }
  287. #endif
  288. #ifdef FEATURE_WLAN_CH_AVOID_EXT
  289. /**
  290. * wlan_mlme_get_coex_unsafe_chan_nb_user_prefer() - get coex unsafe nb
  291. * support
  292. * @psoc: pointer to psoc object
  293. *
  294. * Return: coex_unsafe_chan_nb_user_prefer
  295. */
  296. bool wlan_mlme_get_coex_unsafe_chan_nb_user_prefer(
  297. struct wlan_objmgr_psoc *psoc);
  298. #else
  299. static inline
  300. bool wlan_mlme_get_coex_unsafe_chan_nb_user_prefer(
  301. struct wlan_objmgr_psoc *psoc)
  302. {
  303. return false;
  304. }
  305. #endif
  306. /**
  307. * wlan_mlme_set_band_capability() - Set the Band capability config
  308. * @psoc: pointer to psoc object
  309. * @band_capability: Value to be set from the caller
  310. *
  311. * Return: QDF Status
  312. */
  313. QDF_STATUS wlan_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  314. uint32_t band_capability);
  315. #ifdef WLAN_VENDOR_HANDOFF_CONTROL
  316. /**
  317. * wlan_mlme_get_vendor_handoff_control_caps() - Get the vendor handoff control
  318. * capability flag
  319. * @psoc: pointer to psoc object
  320. *
  321. * Return: True if vendor handoff control caps present
  322. */
  323. bool wlan_mlme_get_vendor_handoff_control_caps(struct wlan_objmgr_psoc *psoc);
  324. #else
  325. static inline bool
  326. wlan_mlme_get_vendor_handoff_control_caps(struct wlan_objmgr_psoc *psoc)
  327. {
  328. return false;
  329. }
  330. #endif
  331. /**
  332. * wlan_mlme_set_dual_sta_policy() - Set the dual sta config
  333. * @psoc: pointer to psoc object
  334. * @dual_sta_config: Value to be set from the caller
  335. *
  336. * Return: QDF Status
  337. */
  338. QDF_STATUS wlan_mlme_set_dual_sta_policy(struct wlan_objmgr_psoc *psoc,
  339. uint8_t dual_sta_config);
  340. /**
  341. * wlan_mlme_get_dual_sta_policy() - Get the dual sta policy
  342. * @psoc: pointer to psoc object
  343. * @dual_sta_config: Value to be set from the caller
  344. *
  345. * Return: QDF Status
  346. */
  347. QDF_STATUS wlan_mlme_get_dual_sta_policy(struct wlan_objmgr_psoc *psoc,
  348. uint8_t *dual_sta_config);
  349. /**
  350. * wlan_mlme_convert_ap_policy_config() - Convert vendor attr ap policy
  351. * config to host enum
  352. * @ap_config: Value to convert
  353. *
  354. * Return: enum host_concurrent_ap_policy
  355. */
  356. enum host_concurrent_ap_policy
  357. wlan_mlme_convert_ap_policy_config(
  358. enum qca_wlan_concurrent_ap_policy_config ap_config);
  359. /**
  360. * wlan_mlme_set_ap_policy() - Set ap config policy value
  361. * @vdev: pointer to vdev object
  362. * @ap_cfg_policy: Value to be set from the caller
  363. *
  364. * Return: QDF Status
  365. */
  366. QDF_STATUS
  367. wlan_mlme_set_ap_policy(struct wlan_objmgr_vdev *vdev,
  368. enum host_concurrent_ap_policy ap_cfg_policy);
  369. /**
  370. * wlan_mlme_get_ap_policy() - Get ap config policy value
  371. * @vdev: pointer to vdev object
  372. *
  373. * Return: enum host_concurrent_ap_policy
  374. */
  375. enum host_concurrent_ap_policy
  376. wlan_mlme_get_ap_policy(struct wlan_objmgr_vdev *vdev);
  377. /**
  378. * wlan_mlme_get_prevent_link_down() - Get the prevent link down config
  379. * @psoc: pointer to psoc object
  380. * @prevent_link_down: Pointer to the variable from caller
  381. *
  382. * Return: QDF Status
  383. */
  384. QDF_STATUS wlan_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
  385. bool *prevent_link_down);
  386. /**
  387. * wlan_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
  388. * @psoc: pointer to psoc object
  389. * @select_5ghz_margin: Pointer to the variable from caller
  390. *
  391. * Return: QDF Status
  392. */
  393. QDF_STATUS wlan_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
  394. uint8_t *select_5ghz_margin);
  395. /**
  396. * wlan_mlme_get_rtt_mac_randomization() - Get the RTT MAC randomization config
  397. * @psoc: pointer to psoc object
  398. * @rtt_mac_randomization: Pointer to the variable from caller
  399. *
  400. * Return: QDF Status
  401. */
  402. QDF_STATUS wlan_mlme_get_rtt_mac_randomization(struct wlan_objmgr_psoc *psoc,
  403. bool *rtt_mac_randomization);
  404. /**
  405. * wlan_mlme_get_crash_inject() - Get the crash inject config
  406. * @psoc: pointer to psoc object
  407. * @crash_inject: Pointer to the variable from caller
  408. *
  409. * Return: QDF Status
  410. */
  411. QDF_STATUS wlan_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
  412. bool *crash_inject);
  413. /**
  414. * wlan_mlme_get_lpass_support() - Get the LPASS Support config
  415. * @psoc: pointer to psoc object
  416. * @lpass_support: Pointer to the variable from caller
  417. *
  418. * Return: QDF Status
  419. */
  420. QDF_STATUS wlan_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
  421. bool *lpass_support);
  422. /**
  423. * wlan_mlme_get_wls_6ghz_cap() - Get the wifi location service(WLS)
  424. * 6ghz capability
  425. * @psoc: pointer to psoc object
  426. * @wls_6ghz_capable: Pointer to the variable from caller
  427. *
  428. * Return: void
  429. */
  430. void wlan_mlme_get_wls_6ghz_cap(struct wlan_objmgr_psoc *psoc,
  431. bool *wls_6ghz_capable);
  432. /**
  433. * wlan_mlme_get_self_recovery() - Get the self recovery config
  434. * @psoc: pointer to psoc object
  435. * @self_recovery: Pointer to the variable from caller
  436. *
  437. * Return: QDF Status
  438. */
  439. QDF_STATUS wlan_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  440. bool *self_recovery);
  441. /**
  442. * wlan_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  443. * @psoc: pointer to psoc object
  444. * @sub_20_chan_width: Pointer to the variable from caller
  445. *
  446. * Return: QDF Status
  447. */
  448. QDF_STATUS wlan_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  449. uint8_t *sub_20_chan_width);
  450. /**
  451. * wlan_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  452. * @psoc: pointer to psoc object
  453. * @fw_timeout_crash: Pointer to the variable from caller
  454. *
  455. * Return: QDF Status
  456. */
  457. QDF_STATUS wlan_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  458. bool *fw_timeout_crash);
  459. /**
  460. * wlan_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  461. * @psoc: pointer to psoc object
  462. * @ito_repeat_count: Pointer to the variable from caller
  463. *
  464. * Return: QDF Status
  465. */
  466. QDF_STATUS wlan_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  467. uint8_t *ito_repeat_count);
  468. /**
  469. * wlan_mlme_get_acs_with_more_param() - Get the acs_with_more_param flag
  470. * @psoc: pointer to psoc object
  471. * @value: Value that needs to be set from the caller
  472. *
  473. * Return: QDF Status
  474. */
  475. QDF_STATUS wlan_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  476. bool *value);
  477. /**
  478. * wlan_mlme_get_auto_channel_weight() - Get the auto channel weight
  479. * @psoc: pointer to psoc object
  480. * @value: Value that needs to be set from the caller
  481. *
  482. * Return: QDF Status
  483. */
  484. QDF_STATUS wlan_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  485. uint32_t *value);
  486. /**
  487. * wlan_mlme_get_vendor_acs_support() - Get the vendor based channel selece
  488. * @psoc: pointer to psoc object
  489. * @value: Value that needs to be set from the caller
  490. *
  491. * Return: QDF Status
  492. */
  493. QDF_STATUS wlan_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  494. bool *value);
  495. /**
  496. * wlan_mlme_get_acs_support_for_dfs_ltecoex() - Get the flag for
  497. * acs support for dfs ltecoex
  498. * @psoc: pointer to psoc object
  499. * @value: Value that needs to be set from the caller
  500. *
  501. * Return: QDF Status
  502. */
  503. QDF_STATUS
  504. wlan_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  505. bool *value);
  506. /**
  507. * wlan_mlme_get_external_acs_policy() - Get the flag for external acs policy
  508. * @psoc: pointer to psoc object
  509. * @value: Value that needs to be set from the caller
  510. *
  511. * Return: QDF Status
  512. */
  513. QDF_STATUS
  514. wlan_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  515. bool *value);
  516. /**
  517. * wlan_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  518. * override flag is set.
  519. * @psoc: pointer to psoc object
  520. * @value: Value that needs to be set from the caller
  521. *
  522. * Return: QDF Status
  523. */
  524. void wlan_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  525. bool *value);
  526. /**
  527. * wlan_mlme_get_ignore_peer_ht_mode() - Get the ignore peer ht opmode flag
  528. * @psoc: pointer to psoc object
  529. * @value: Value that needs to be set from the caller
  530. *
  531. * Return: QDF Status
  532. */
  533. QDF_STATUS wlan_mlme_get_ignore_peer_ht_mode(struct wlan_objmgr_psoc *psoc,
  534. bool *value);
  535. /**
  536. * wlan_mlme_get_tx_chainmask_cck() - Get the tx_chainmask_cfg value
  537. * @psoc: pointer to psoc object
  538. * @value: Value that needs to be set from the caller
  539. *
  540. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  541. */
  542. QDF_STATUS wlan_mlme_get_tx_chainmask_cck(struct wlan_objmgr_psoc *psoc,
  543. bool *value);
  544. /**
  545. * wlan_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  546. * @psoc: pointer to psoc object
  547. * @value: Value that caller needs to get
  548. *
  549. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  550. */
  551. QDF_STATUS wlan_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  552. uint8_t *value);
  553. /**
  554. * wlan_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  555. * @psoc: pointer to psoc object
  556. * @value: Value that needs to be set from the caller
  557. *
  558. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  559. */
  560. QDF_STATUS wlan_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  561. uint16_t *value);
  562. /**
  563. * wlan_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  564. * @psoc: pointer to psoc object
  565. * @value: Value that caller needs to get
  566. *
  567. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  568. */
  569. QDF_STATUS wlan_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  570. uint16_t *value);
  571. /**
  572. * wlan_mlme_get_bt_chain_separation_flag() - get the enable_bt_chain_separation
  573. * flag
  574. * @psoc: pointer to psoc object
  575. * @value: Value that needs to be set from the caller
  576. *
  577. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  578. */
  579. QDF_STATUS wlan_mlme_get_bt_chain_separation_flag(struct wlan_objmgr_psoc *psoc,
  580. bool *value);
  581. /**
  582. * wlan_mlme_configure_chain_mask() - configure chainmask parameters
  583. * @psoc: pointer to psoc object
  584. * @session_id: vdev_id
  585. *
  586. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  587. */
  588. QDF_STATUS wlan_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  589. uint8_t session_id);
  590. /**
  591. * wlan_mlme_is_chain_mask_supported() - check if configure chainmask can
  592. * be supported
  593. * @psoc: pointer to psoc object
  594. *
  595. * Return: true if supported else false
  596. */
  597. bool wlan_mlme_is_chain_mask_supported(struct wlan_objmgr_psoc *psoc);
  598. /**
  599. * wlan_mlme_get_listen_interval() - Get listen interval
  600. * @psoc: pointer to psoc object
  601. * @value: Pointer to value that needs to be filled by MLME
  602. *
  603. * Return: QDF Status
  604. */
  605. QDF_STATUS wlan_mlme_get_listen_interval(struct wlan_objmgr_psoc *psoc,
  606. int *value);
  607. /**
  608. * wlan_mlme_set_sap_listen_interval() - Set the sap listen interval
  609. * @psoc: pointer to psoc object
  610. * @value: Value that needs to be set from the caller
  611. *
  612. * Return: QDF Status
  613. */
  614. QDF_STATUS wlan_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  615. int value);
  616. /**
  617. * wlan_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  618. * @psoc: pointer to psoc object
  619. * @value: Value that needs to be set from the caller
  620. *
  621. * Return: QDF Status
  622. */
  623. QDF_STATUS wlan_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  624. int value);
  625. /**
  626. * wlan_mlme_get_assoc_sta_limit() - Get the assoc sta limit
  627. * @psoc: pointer to psoc object
  628. * @value: Pointer to value that needs to be filled by MLME
  629. *
  630. * Return: QDF Status
  631. */
  632. QDF_STATUS wlan_mlme_get_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  633. int *value);
  634. /**
  635. * wlan_mlme_get_sap_get_peer_info() - get the sap get peer info
  636. * @psoc: pointer to psoc object
  637. * @value: Value that needs to be set from the caller
  638. *
  639. * Return: QDF Status
  640. */
  641. QDF_STATUS wlan_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  642. bool *value);
  643. /**
  644. * wlan_mlme_set_sap_get_peer_info() - set the sap get peer info
  645. * @psoc: pointer to psoc object
  646. * @value: value to overwrite the sap get peer info
  647. *
  648. * Return: QDF Status
  649. */
  650. QDF_STATUS wlan_mlme_set_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  651. bool value);
  652. /**
  653. * wlan_mlme_get_sap_bcast_deauth_enabled() - get the enable/disable value
  654. * for broadcast deauth in sap
  655. * @psoc: pointer to psoc object
  656. * @value: Value that needs to get from the caller
  657. *
  658. * Return: QDF Status
  659. */
  660. QDF_STATUS
  661. wlan_mlme_get_sap_bcast_deauth_enabled(struct wlan_objmgr_psoc *psoc,
  662. bool *value);
  663. /**
  664. * wlan_mlme_get_sap_allow_all_channels() - get the value of sap allow all
  665. * channels
  666. * @psoc: pointer to psoc object
  667. * @value: Value that needs to be set from the caller
  668. *
  669. * Return: QDF Status
  670. */
  671. QDF_STATUS wlan_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  672. bool *value);
  673. /**
  674. * wlan_mlme_is_6g_sap_fd_enabled() - get the enable/disable value
  675. * for 6g sap fils discovery
  676. * @psoc: pointer to psoc object
  677. * @value: Value that needs to get from the caller
  678. *
  679. * Return: QDF Status
  680. */
  681. QDF_STATUS
  682. wlan_mlme_is_6g_sap_fd_enabled(struct wlan_objmgr_psoc *psoc,
  683. bool *value);
  684. /**
  685. * wlan_mlme_get_sap_max_peers() - get the value sap max peers
  686. * @psoc: pointer to psoc object
  687. * @value: Value that needs to be set from the caller
  688. *
  689. * Return: QDF Status
  690. */
  691. QDF_STATUS wlan_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  692. int *value);
  693. /**
  694. * wlan_mlme_set_sap_max_peers() - set the value sap max peers
  695. * @psoc: pointer to psoc object
  696. * @value: Value that needs to be set from the caller
  697. *
  698. * Return: QDF Status
  699. */
  700. QDF_STATUS wlan_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  701. int value);
  702. /**
  703. * wlan_mlme_get_sap_max_offload_peers() - get the value sap max offload peers
  704. * @psoc: pointer to psoc object
  705. * @value: Value that needs to be set from the caller
  706. *
  707. * Return: QDF Status
  708. */
  709. QDF_STATUS wlan_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  710. int *value);
  711. /**
  712. * wlan_mlme_get_sap_max_offload_reorder_buffs() - get the value sap max offload
  713. * reorder buffs.
  714. * @psoc: pointer to psoc object
  715. * @value: Value that needs to be set from the caller
  716. *
  717. * Return: QDF Status
  718. */
  719. QDF_STATUS wlan_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  720. *psoc, int *value);
  721. /**
  722. * wlan_mlme_get_sap_chn_switch_bcn_count() - get the value sap max channel
  723. * switch beacon count
  724. * @psoc: pointer to psoc object
  725. * @value: Value that needs to be set from the caller
  726. *
  727. * Return: QDF Status
  728. */
  729. QDF_STATUS wlan_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  730. int *value);
  731. /**
  732. * wlan_mlme_get_sap_chn_switch_mode() - get the sap channel
  733. * switch mode
  734. * @psoc: pointer to psoc object
  735. * @value: Value that needs to be set from the caller
  736. *
  737. * Return: QDF Status
  738. */
  739. QDF_STATUS wlan_mlme_get_sap_chn_switch_mode(struct wlan_objmgr_psoc *psoc,
  740. bool *value);
  741. /**
  742. * wlan_mlme_get_sap_internal_restart() - get the sap internal
  743. * restart
  744. * @psoc: pointer to psoc object
  745. * @value: Value that needs to be set from the caller
  746. *
  747. * Return: QDF Status
  748. */
  749. QDF_STATUS wlan_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  750. bool *value);
  751. /**
  752. * wlan_mlme_get_sap_max_modulated_dtim() - get the max modulated dtim
  753. * restart
  754. * @psoc: pointer to psoc object
  755. * @value: Value that needs to be set from the caller
  756. *
  757. * Return: QDF Status
  758. */
  759. QDF_STATUS wlan_mlme_get_sap_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
  760. uint8_t *value);
  761. /**
  762. * wlan_mlme_get_sap_chan_pref_location() - get the sap chan pref location
  763. * restart
  764. * @psoc: pointer to psoc object
  765. * @value: Value that needs to be set from the caller
  766. *
  767. * Return: QDF Status
  768. */
  769. QDF_STATUS wlan_mlme_get_sap_chan_pref_location(struct wlan_objmgr_psoc *psoc,
  770. uint8_t *value);
  771. /**
  772. * wlan_mlme_get_sap_country_priority() - get the sap country code priority
  773. * restart
  774. * @psoc: pointer to psoc object
  775. * @value: Value that needs to be set from the caller
  776. *
  777. * Return: QDF Status
  778. */
  779. QDF_STATUS wlan_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc,
  780. bool *value);
  781. /**
  782. * wlan_mlme_get_sap_reduced_beacon_interval() - get the sap reduced
  783. * beacon interval
  784. * @psoc: pointer to psoc object
  785. * @value: Value that needs to be set from the caller
  786. *
  787. * Return: QDF Status
  788. */
  789. QDF_STATUS wlan_mlme_get_sap_reduced_beacon_interval(struct wlan_objmgr_psoc
  790. *psoc, int *value);
  791. /**
  792. * wlan_mlme_get_sap_chan_switch_rate_enabled() - get the sap rate hostapd
  793. * enabled beacon interval
  794. * @psoc: pointer to psoc object
  795. * @value: Value that needs to be set from the caller
  796. *
  797. * Return: QDF Status
  798. */
  799. QDF_STATUS wlan_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  800. *psoc, bool *value);
  801. /**
  802. * wlan_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac
  803. * @psoc: pointer to psoc object
  804. * @value: Value that needs to be set from the caller
  805. *
  806. * Return: QDF Status
  807. */
  808. QDF_STATUS wlan_mlme_get_sap_force_11n_for_11ac(struct wlan_objmgr_psoc
  809. *psoc, bool *value);
  810. /**
  811. * wlan_mlme_get_go_force_11n_for_11ac() - get the go 11n for 11ac
  812. * @psoc: pointer to psoc object
  813. * @value: Value that needs to be set from the caller
  814. *
  815. * Return: QDF Status
  816. */
  817. QDF_STATUS wlan_mlme_get_go_force_11n_for_11ac(struct wlan_objmgr_psoc
  818. *psoc, bool *value);
  819. /**
  820. * wlan_mlme_is_go_11ac_override() - Override 11ac bandwdith for P2P GO
  821. * @psoc: pointer to psoc object
  822. * @value: pointer to the value which will be filled for the caller
  823. *
  824. * Return: QDF Status
  825. */
  826. QDF_STATUS wlan_mlme_is_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  827. bool *value);
  828. /**
  829. * wlan_mlme_is_sap_11ac_override() - Override 11ac bandwdith for SAP
  830. * @psoc: pointer to psoc object
  831. * @value: pointer to the value which will be filled for the caller
  832. *
  833. * Return: QDF Status
  834. */
  835. QDF_STATUS wlan_mlme_is_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  836. bool *value);
  837. /**
  838. * wlan_mlme_set_go_11ac_override() - set override 11ac bandwdith for P2P GO
  839. * @psoc: pointer to psoc object
  840. * @value: pointer to the value which will be filled for the caller
  841. *
  842. * Return: QDF Status
  843. */
  844. QDF_STATUS wlan_mlme_set_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  845. bool value);
  846. /**
  847. * wlan_mlme_set_sap_11ac_override() - set override 11ac bandwdith for SAP
  848. * @psoc: pointer to psoc object
  849. * @value: pointer to the value which will be filled for the caller
  850. *
  851. * Return: QDF Status
  852. */
  853. QDF_STATUS wlan_mlme_set_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  854. bool value);
  855. /**
  856. * wlan_mlme_get_oce_sta_enabled_info() - Get the OCE feature enable
  857. * info for STA
  858. * @psoc: pointer to psoc object
  859. * @value: pointer to the value which will be filled for the caller
  860. *
  861. * Return: QDF Status
  862. */
  863. QDF_STATUS wlan_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  864. bool *value);
  865. /**
  866. * wlan_mlme_get_bigtk_support() - Get the BIGTK support
  867. * @psoc: pointer to psoc object
  868. * @value: pointer to the value which will be filled for the caller
  869. *
  870. * Return: QDF Status
  871. */
  872. QDF_STATUS wlan_mlme_get_bigtk_support(struct wlan_objmgr_psoc *psoc,
  873. bool *value);
  874. /**
  875. * wlan_mlme_get_ocv_support() - Get the OCV support
  876. * @psoc: pointer to psoc object
  877. * @value: pointer to the value which will be filled for the caller
  878. *
  879. * Return: QDF Status
  880. */
  881. QDF_STATUS wlan_mlme_get_ocv_support(struct wlan_objmgr_psoc *psoc,
  882. bool *value);
  883. /**
  884. * wlan_mlme_get_host_scan_abort_support() - Get support for stop all host
  885. * scans service capability.
  886. * @psoc: PSOC object pointer
  887. *
  888. * Return: True if capability is supported, else False
  889. */
  890. bool wlan_mlme_get_host_scan_abort_support(struct wlan_objmgr_psoc *psoc);
  891. /**
  892. * wlan_mlme_get_dual_sta_roam_support - Get support for dual sta roaming
  893. * feature
  894. * @psoc: PSOC object pointer
  895. *
  896. * Return: True if capability is supported, else False
  897. */
  898. bool wlan_mlme_get_dual_sta_roam_support(struct wlan_objmgr_psoc *psoc);
  899. /**
  900. * wlan_mlme_get_oce_sap_enabled_info() - Get the OCE feature enable
  901. * info for SAP
  902. * @psoc: pointer to psoc object
  903. * @value: pointer to the value which will be filled for the caller
  904. *
  905. * Return: QDF Status
  906. */
  907. QDF_STATUS wlan_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  908. bool *value);
  909. /**
  910. * wlan_mlme_update_oce_flags() - Update the oce flags to FW
  911. * @pdev: pointer to pdev object
  912. *
  913. * Return: void
  914. */
  915. void wlan_mlme_update_oce_flags(struct wlan_objmgr_pdev *pdev);
  916. #ifdef WLAN_FEATURE_11AX
  917. /**
  918. * wlan_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio
  919. * @psoc: pointer to psoc object
  920. * @value: Value that needs to be set from the caller
  921. *
  922. * Return: QDF Status
  923. */
  924. QDF_STATUS wlan_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  925. uint32_t *value);
  926. /**
  927. * wlan_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio
  928. * @psoc: pointer to psoc object
  929. * @value: Value that needs to be set from the caller
  930. *
  931. * Return: QDF Status
  932. */
  933. QDF_STATUS wlan_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  934. uint32_t value);
  935. /**
  936. * mlme_cfg_get_he_caps() - Get the HE capability info
  937. * @psoc: pointer to psoc object
  938. * @he_cap: Caps that needs to be filled.
  939. *
  940. * Return: QDF Status
  941. */
  942. QDF_STATUS mlme_cfg_get_he_caps(struct wlan_objmgr_psoc *psoc,
  943. tDot11fIEhe_cap *he_cap);
  944. /**
  945. * wlan_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo
  946. * @psoc: pointer to psoc object
  947. * @value: Value that needs to be set from the caller
  948. *
  949. * Return: QDF Status
  950. */
  951. QDF_STATUS wlan_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc,
  952. uint8_t *value);
  953. /**
  954. * wlan_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm
  955. * @psoc: pointer to psoc object
  956. * @value: Value that needs to be set from the caller
  957. *
  958. * Return: QDF Status
  959. */
  960. QDF_STATUS wlan_mlme_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc,
  961. uint8_t *value);
  962. /**
  963. * mlme_update_tgt_he_caps_in_cfg() - Update tgt he cap in mlme component
  964. * @psoc: pointer to psoc object
  965. * @cfg: pointer to config params from target
  966. *
  967. * This api to be used by callers to update
  968. * he caps in mlme.
  969. *
  970. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  971. */
  972. QDF_STATUS mlme_update_tgt_he_caps_in_cfg(struct wlan_objmgr_psoc *psoc,
  973. struct wma_tgt_cfg *cfg);
  974. #endif
  975. /**
  976. * wlan_mlme_convert_vht_op_bw_to_phy_ch_width() - convert channel width in VHT
  977. * operation IE to phy_ch_width
  978. * @channel_width: channel width in VHT operation IE.
  979. * @chan_id: channel id
  980. * @ccfs0: channel center frequency segment 0
  981. * @ccfs1: channel center frequency segment 1
  982. *
  983. * Return: phy_ch_width
  984. */
  985. enum phy_ch_width
  986. wlan_mlme_convert_vht_op_bw_to_phy_ch_width(uint8_t channel_width,
  987. uint8_t chan_id,
  988. uint8_t ccfs0,
  989. uint8_t ccfs1);
  990. /**
  991. * wlan_mlme_convert_he_6ghz_op_bw_to_phy_ch_width() - convert channel width in
  992. * he 6ghz peration IE to phy_ch_width
  993. * @channel_width: channel width in HE operation IE.
  994. * @chan_id: channel id
  995. * @ccfs0: channel center frequency segment 0
  996. * @ccfs1: channel center frequency segment 1
  997. *
  998. * Return: phy_ch_width
  999. */
  1000. enum phy_ch_width
  1001. wlan_mlme_convert_he_6ghz_op_bw_to_phy_ch_width(uint8_t channel_width,
  1002. uint8_t chan_id,
  1003. uint8_t ccfs0,
  1004. uint8_t ccfs1);
  1005. /**
  1006. * wlan_mlme_chan_stats_scan_event_cb() - process connected channel stats
  1007. * scan event
  1008. * @vdev: pointer to vdev object
  1009. * @event: scan event definition
  1010. * @arg: scan argument
  1011. *
  1012. * Return: none
  1013. */
  1014. void wlan_mlme_chan_stats_scan_event_cb(struct wlan_objmgr_vdev *vdev,
  1015. struct scan_event *event, void *arg);
  1016. /**
  1017. * wlan_mlme_send_ch_width_update_with_notify() - update connected VDEV
  1018. * channel bandwidth
  1019. * @psoc: pointer to psoc object
  1020. * @vdev: pointer to vdev object
  1021. * @vdev_id: vdev id
  1022. * @ch_width: channel width to update
  1023. *
  1024. * Return: none
  1025. */
  1026. QDF_STATUS
  1027. wlan_mlme_send_ch_width_update_with_notify(struct wlan_objmgr_psoc *psoc,
  1028. struct wlan_objmgr_vdev *vdev,
  1029. uint8_t vdev_id,
  1030. enum phy_ch_width ch_width);
  1031. #ifdef WLAN_FEATURE_11BE
  1032. /**
  1033. * mlme_update_tgt_eht_caps_in_cfg() - Update tgt eht cap in mlme component
  1034. * @psoc: pointer to psoc object
  1035. * @cfg: pointer to config params from target
  1036. *
  1037. * This api to be used by callers to update EHT caps in mlme.
  1038. *
  1039. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1040. */
  1041. QDF_STATUS mlme_update_tgt_eht_caps_in_cfg(struct wlan_objmgr_psoc *psoc,
  1042. struct wma_tgt_cfg *cfg);
  1043. /**
  1044. * mlme_update_tgt_mlo_caps_in_cfg() - Update tgt MLO cap in mlme component
  1045. * @psoc: pointer to psoc object
  1046. *
  1047. * This api to be used by callers to update MLO caps in mlme.
  1048. *
  1049. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1050. */
  1051. QDF_STATUS mlme_update_tgt_mlo_caps_in_cfg(struct wlan_objmgr_psoc *psoc);
  1052. /**
  1053. * wlan_mlme_convert_eht_op_bw_to_phy_ch_width() - convert channel width in eht
  1054. * operation IE to phy_ch_width
  1055. * @channel_width: channel width in eht operation IE
  1056. *
  1057. * Return: phy_ch_width
  1058. */
  1059. enum phy_ch_width wlan_mlme_convert_eht_op_bw_to_phy_ch_width(
  1060. uint8_t channel_width);
  1061. /**
  1062. * wlan_mlme_get_usr_disable_sta_eht() - Get user disable sta eht flag
  1063. * @psoc: psoc object
  1064. *
  1065. * Return: true if user has disabled eht in connect request
  1066. */
  1067. bool wlan_mlme_get_usr_disable_sta_eht(struct wlan_objmgr_psoc *psoc);
  1068. /**
  1069. * wlan_mlme_set_usr_disable_sta_eht() - Set user disable sta eht flag
  1070. * @psoc: psoc object
  1071. * @disable: eht disable flag
  1072. *
  1073. * Return: void
  1074. */
  1075. void wlan_mlme_set_usr_disable_sta_eht(struct wlan_objmgr_psoc *psoc,
  1076. bool disable);
  1077. #else
  1078. static inline
  1079. bool wlan_mlme_get_usr_disable_sta_eht(struct wlan_objmgr_psoc *psoc)
  1080. {
  1081. return true;
  1082. }
  1083. static inline
  1084. void wlan_mlme_set_usr_disable_sta_eht(struct wlan_objmgr_psoc *psoc,
  1085. bool disable)
  1086. {
  1087. }
  1088. #endif
  1089. /**
  1090. * wlan_mlme_is_ap_prot_enabled() - check if sap protection is enabled
  1091. * @psoc: pointer to psoc object
  1092. *
  1093. * Return: is_ap_prot_enabled flag
  1094. */
  1095. bool wlan_mlme_is_ap_prot_enabled(struct wlan_objmgr_psoc *psoc);
  1096. /**
  1097. * wlan_mlme_get_ap_protection_mode() - Get ap_protection_mode value
  1098. * @psoc: pointer to psoc object
  1099. * @value: pointer to the value which needs to be filled for the caller
  1100. *
  1101. * Return: QDF Status
  1102. */
  1103. QDF_STATUS wlan_mlme_get_ap_protection_mode(struct wlan_objmgr_psoc *psoc,
  1104. uint16_t *value);
  1105. /**
  1106. * wlan_mlme_is_ap_obss_prot_enabled() - Get ap_obss_protection is
  1107. * enabled/disabled
  1108. * @psoc: pointer to psoc object
  1109. * @value: pointer to the value which needs to be filled for the caller
  1110. *
  1111. * Return: QDF Status
  1112. */
  1113. QDF_STATUS wlan_mlme_is_ap_obss_prot_enabled(struct wlan_objmgr_psoc *psoc,
  1114. bool *value);
  1115. /**
  1116. * wlan_mlme_get_rts_threshold() - Get the RTS threshold config
  1117. * @psoc: pointer to psoc object
  1118. * @value: pointer to the value which will be filled for the caller
  1119. *
  1120. * Return: QDF Status
  1121. */
  1122. QDF_STATUS wlan_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1123. uint32_t *value);
  1124. /**
  1125. * wlan_mlme_set_rts_threshold() - Set the RTS threshold config
  1126. * @psoc: pointer to psoc object
  1127. * @value: Value that needs to be set from the caller
  1128. *
  1129. * Return: QDF Status
  1130. */
  1131. QDF_STATUS wlan_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1132. uint32_t value);
  1133. /**
  1134. * wlan_mlme_get_frag_threshold() - Get the Fragmentation threshold
  1135. * config
  1136. * @psoc: pointer to psoc object
  1137. * @value: pointer to the value which will be filled for the caller
  1138. *
  1139. * Return: QDF Status
  1140. */
  1141. QDF_STATUS wlan_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1142. uint32_t *value);
  1143. /**
  1144. * wlan_mlme_set_frag_threshold() - Set the Fragmentation threshold
  1145. * config
  1146. * @psoc: pointer to psoc object
  1147. * @value: Value that needs to be set from the caller
  1148. *
  1149. * Return: QDF Status
  1150. */
  1151. QDF_STATUS wlan_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1152. uint32_t value);
  1153. /**
  1154. * wlan_mlme_get_fils_enabled_info() - Get the fils enable info for driver
  1155. * @psoc: pointer to psoc object
  1156. * @value: pointer to the value which will be filled for the caller
  1157. *
  1158. * Return: QDF Status
  1159. */
  1160. QDF_STATUS wlan_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1161. bool *value);
  1162. /**
  1163. * wlan_mlme_set_fils_enabled_info() - Set the fils enable info for driver
  1164. * @psoc: pointer to psoc object
  1165. * @value: value that needs to be set from the caller
  1166. *
  1167. * Return: QDF Status
  1168. */
  1169. QDF_STATUS wlan_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1170. bool value);
  1171. /**
  1172. * wlan_mlme_set_primary_interface() - Set the primary iface id for driver
  1173. * @psoc: pointer to psoc object
  1174. * @value: value that needs to be set from the caller
  1175. *
  1176. * When a vdev is set as primary then based on the dual sta policy
  1177. * "qca_wlan_concurrent_sta_policy_config" mcc preference and roaming has
  1178. * to be enabled on the primary vdev
  1179. *
  1180. * Return: QDF Status
  1181. */
  1182. QDF_STATUS wlan_mlme_set_primary_interface(struct wlan_objmgr_psoc *psoc,
  1183. uint8_t value);
  1184. /**
  1185. * wlan_mlme_set_default_primary_iface() - Set the default primary iface id
  1186. * for driver
  1187. * @psoc: pointer to psoc object
  1188. *
  1189. * Return: QDF Status
  1190. */
  1191. QDF_STATUS wlan_mlme_set_default_primary_iface(struct wlan_objmgr_psoc *psoc);
  1192. /**
  1193. * wlan_mlme_is_primary_interface_configured() - Check if primary iface is set
  1194. * @psoc: pointer to psoc object
  1195. *
  1196. * Check if primary iface is configured from userspace through vendor command.
  1197. * Return true if it's configured. If it's not configured, default value would
  1198. * be 0xFF and return false then.
  1199. *
  1200. * Return: True or False
  1201. */
  1202. bool wlan_mlme_is_primary_interface_configured(struct wlan_objmgr_psoc *psoc);
  1203. /**
  1204. * wlan_mlme_peer_get_assoc_rsp_ies() - Get the assoc response IEs of peer
  1205. * @peer: WLAN peer objmgr
  1206. * @ie_buf: Pointer to IE buffer
  1207. * @ie_len: Length of the IE buffer
  1208. *
  1209. * Get the pointer to assoc response IEs of the peer from MLME
  1210. * and length of the IE buffer.
  1211. *
  1212. * Return: QDF_STATUS
  1213. */
  1214. QDF_STATUS wlan_mlme_peer_get_assoc_rsp_ies(struct wlan_objmgr_peer *peer,
  1215. const uint8_t **ie_buf,
  1216. size_t *ie_len);
  1217. /**
  1218. * wlan_mlme_get_mcc_duty_cycle_percentage() - Get primary STA iface duty
  1219. * cycle percentage
  1220. * @pdev: pointer to pdev object
  1221. *
  1222. * API to get the MCC duty cycle for primary and secondary STA's
  1223. *
  1224. * Return: primary iface quota on success
  1225. */
  1226. int wlan_mlme_get_mcc_duty_cycle_percentage(struct wlan_objmgr_pdev *pdev);
  1227. /**
  1228. * wlan_mlme_get_tl_delayed_trgr_frm_int() - Get delay interval(in ms)
  1229. * of UAPSD auto trigger
  1230. * @psoc: pointer to psoc object
  1231. * @value: Value that needs to be set from the caller
  1232. *
  1233. * Return: None
  1234. */
  1235. void wlan_mlme_get_tl_delayed_trgr_frm_int(struct wlan_objmgr_psoc *psoc,
  1236. uint32_t *value);
  1237. /**
  1238. * wlan_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  1239. * for VI
  1240. * @psoc: pointer to psoc object
  1241. * @value: Value that needs to be set from the caller
  1242. *
  1243. * Return: QDF Status
  1244. */
  1245. QDF_STATUS
  1246. wlan_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1247. /**
  1248. * wlan_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  1249. * MSDU size for VI
  1250. * @psoc: pointer to psoc object
  1251. * @value: Value that needs to be set from the caller
  1252. *
  1253. * Return: QDF Status
  1254. */
  1255. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  1256. uint16_t *value);
  1257. /**
  1258. * wlan_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  1259. * rate for VI
  1260. * @psoc: pointer to psoc object
  1261. * @value: Value that needs to be set from the caller
  1262. *
  1263. * Return: QDF Status
  1264. */
  1265. QDF_STATUS
  1266. wlan_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  1267. uint32_t *value);
  1268. /**
  1269. * wlan_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  1270. * rate for VI
  1271. * @psoc: pointer to psoc object
  1272. * @value: Value that needs to be set from the caller
  1273. *
  1274. * Return: QDF Status
  1275. */
  1276. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  1277. uint32_t *value);
  1278. /**
  1279. * wlan_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  1280. * allowance for VI
  1281. * @psoc: pointer to psoc object
  1282. * @value: Value that needs to be set from the caller
  1283. *
  1284. * Return: QDF Status
  1285. */
  1286. QDF_STATUS
  1287. wlan_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1288. /**
  1289. * wlan_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  1290. * interval for video
  1291. * @psoc: pointer to psoc object
  1292. * @value: pointer to the value which will be filled for the caller
  1293. *
  1294. * Return: QDF Status
  1295. */
  1296. QDF_STATUS
  1297. wlan_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  1298. uint32_t *value);
  1299. /**
  1300. * wlan_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  1301. * interval for video
  1302. * @psoc: pointer to psoc object
  1303. * @value: pointer to the value which will be filled for the caller
  1304. *
  1305. * Return: QDF Status
  1306. */
  1307. QDF_STATUS
  1308. wlan_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  1309. uint32_t *value);
  1310. /**
  1311. * wlan_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  1312. * for BE
  1313. * @psoc: pointer to psoc object
  1314. * @value: Value that needs to be set from the caller
  1315. *
  1316. * Return: QDF Status
  1317. */
  1318. QDF_STATUS
  1319. wlan_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc,
  1320. uint8_t *value);
  1321. /**
  1322. * wlan_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  1323. * MSDU size for BE
  1324. * @psoc: pointer to psoc object
  1325. * @value: Value that needs to be set from the caller
  1326. *
  1327. * Return: QDF Status
  1328. */
  1329. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  1330. uint16_t *value);
  1331. /**
  1332. * wlan_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  1333. * rate for BE
  1334. * @psoc: pointer to psoc object
  1335. * @value: Value that needs to be set from the caller
  1336. *
  1337. * Return: QDF Status
  1338. */
  1339. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1340. uint32_t *value);
  1341. /**
  1342. * wlan_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  1343. * rate for BE
  1344. * @psoc: pointer to psoc object
  1345. * @value: Value that needs to be set from the caller
  1346. *
  1347. * Return: QDF Status
  1348. */
  1349. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1350. uint32_t *value);
  1351. /**
  1352. * wlan_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  1353. * allowance for BE
  1354. * @psoc: pointer to psoc object
  1355. * @value: Value that needs to be set from the caller
  1356. *
  1357. * Return: QDF Status
  1358. */
  1359. QDF_STATUS
  1360. wlan_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1361. /**
  1362. * wlan_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  1363. * interval for BE
  1364. * @psoc: pointer to psoc object
  1365. * @value: pointer to the value which will be filled for the caller
  1366. *
  1367. * Return: QDF Status
  1368. */
  1369. QDF_STATUS
  1370. wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  1371. uint32_t *value);
  1372. /**
  1373. * wlan_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  1374. * interval for BE
  1375. * @psoc: pointer to psoc object
  1376. * @value: pointer to the value which will be filled for the caller
  1377. *
  1378. * Return: QDF Status
  1379. */
  1380. QDF_STATUS
  1381. wlan_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  1382. uint32_t *value);
  1383. /**
  1384. * wlan_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  1385. * for BK
  1386. * @psoc: pointer to psoc object
  1387. * @value: Value that needs to be set from the caller
  1388. *
  1389. * Return: QDF Status
  1390. */
  1391. QDF_STATUS
  1392. wlan_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1393. /**
  1394. * wlan_mlme_get_wmm_nom_msdu_size_ac_bk() - Get normal
  1395. * MSDU size for BK
  1396. * @psoc: pointer to psoc object
  1397. * @value: Value that needs to be set from the caller
  1398. *
  1399. * Return: QDF Status
  1400. */
  1401. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  1402. uint16_t *value);
  1403. /**
  1404. * wlan_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  1405. * rate for BK
  1406. * @psoc: pointer to psoc object
  1407. * @value: Value that needs to be set from the caller
  1408. *
  1409. * Return: QDF Status
  1410. */
  1411. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1412. uint32_t *value);
  1413. /**
  1414. * wlan_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  1415. * rate for BK
  1416. * @psoc: pointer to psoc object
  1417. * @value: Value that needs to be set from the caller
  1418. *
  1419. * Return: QDF Status
  1420. */
  1421. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1422. uint32_t *value);
  1423. /**
  1424. * wlan_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  1425. * allowance for BE
  1426. * @psoc: pointer to psoc object
  1427. * @value: Value that needs to be set from the caller
  1428. *
  1429. * Return: QDF Status
  1430. */
  1431. QDF_STATUS
  1432. wlan_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1433. /**
  1434. * wlan_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  1435. * interval for BK
  1436. * @psoc: pointer to psoc object
  1437. * @value: pointer to the value which will be filled for the caller
  1438. *
  1439. * Return: QDF Status
  1440. */
  1441. QDF_STATUS
  1442. wlan_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  1443. uint32_t *value);
  1444. /**
  1445. * wlan_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  1446. * interval for BK
  1447. * @psoc: pointer to psoc object
  1448. * @value: pointer to the value which will be filled for the caller
  1449. *
  1450. * Return: QDF Status
  1451. */
  1452. QDF_STATUS
  1453. wlan_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  1454. uint32_t *value);
  1455. /**
  1456. * wlan_mlme_get_wmm_mode() - Enable WMM feature
  1457. * @psoc: pointer to psoc object
  1458. * @value: pointer to the value which will be filled for the caller
  1459. *
  1460. * Return: QDF Status
  1461. */
  1462. QDF_STATUS
  1463. wlan_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1464. /**
  1465. * wlan_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  1466. * @psoc: pointer to psoc object
  1467. * @value: pointer to the value which will be filled for the caller
  1468. *
  1469. * Return: QDF Status
  1470. */
  1471. QDF_STATUS
  1472. wlan_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1473. /**
  1474. * wlan_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  1475. * @psoc: pointer to psoc object
  1476. * @value: pointer to the value which will be filled for the caller
  1477. *
  1478. * Return: QDF Status
  1479. */
  1480. QDF_STATUS
  1481. wlan_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1482. #ifdef FEATURE_WLAN_ESE
  1483. /**
  1484. * wlan_mlme_get_inactivity_interval() - Infra Inactivity Interval
  1485. * @psoc: pointer to psoc object
  1486. * @value: pointer to the value which will be filled for the caller
  1487. *
  1488. * Return: None
  1489. */
  1490. void
  1491. wlan_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
  1492. uint32_t *value);
  1493. #endif
  1494. /**
  1495. * wlan_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
  1496. * @psoc: pointer to psoc object
  1497. * @value: pointer to the value which will be filled for the caller
  1498. *
  1499. * Return: None
  1500. */
  1501. void wlan_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
  1502. bool *value);
  1503. /**
  1504. * wlan_mlme_get_ts_info_ack_policy() - Get TS ack policy
  1505. * @psoc: pointer to psoc object
  1506. * @value: pointer to the value which will be filled for the caller
  1507. *
  1508. * Return: None
  1509. */
  1510. void wlan_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
  1511. enum mlme_ts_info_ack_policy *value);
  1512. /**
  1513. * wlan_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
  1514. * @psoc: pointer to psoc object
  1515. * @value: pointer to the value which will be filled for the caller
  1516. *
  1517. * Return: QDF Status
  1518. */
  1519. QDF_STATUS
  1520. wlan_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value);
  1521. /**
  1522. * wlan_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction
  1523. * for VO
  1524. * @psoc: pointer to psoc object
  1525. * @value: Value that needs to be set from the caller
  1526. *
  1527. * Return: QDF Status
  1528. */
  1529. QDF_STATUS
  1530. wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1531. /**
  1532. * wlan_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  1533. * MSDU size for VO
  1534. * @psoc: pointer to psoc object
  1535. * @value: Value that needs to be set from the caller
  1536. *
  1537. * Return: QDF Status
  1538. */
  1539. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  1540. uint16_t *value);
  1541. /**
  1542. * wlan_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  1543. * @psoc: pointer to psoc object
  1544. * @value: Value that needs to be set from the caller
  1545. *
  1546. * Return: QDF Status
  1547. */
  1548. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1549. uint32_t *value);
  1550. /**
  1551. * wlan_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  1552. * rate for VO
  1553. * @psoc: pointer to psoc object
  1554. * @value: Value that needs to be set from the caller
  1555. *
  1556. * Return: QDF Status
  1557. */
  1558. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1559. uint32_t *value);
  1560. /**
  1561. * wlan_mlme_get_wmm_sba_ac_vo() - surplus bandwidth allowance for VO
  1562. * @psoc: pointer to psoc object
  1563. * @value: Value that needs to be set from the caller
  1564. *
  1565. * Return: QDF Status
  1566. */
  1567. QDF_STATUS
  1568. wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1569. /**
  1570. * wlan_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  1571. * @psoc: pointer to psoc object
  1572. * @value: value that needs to be set from the caller
  1573. *
  1574. * Return: QDF Status
  1575. */
  1576. QDF_STATUS wlan_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1577. bool value);
  1578. /**
  1579. * wlan_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  1580. * interval for voice
  1581. * @psoc: pointer to psoc object
  1582. * @value: pointer to the value which will be filled for the caller
  1583. *
  1584. * Return: QDF Status
  1585. */
  1586. QDF_STATUS
  1587. wlan_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  1588. uint32_t *value);
  1589. /**
  1590. * wlan_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  1591. * interval for voice
  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. QDF_STATUS
  1598. wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  1599. uint32_t *value);
  1600. /**
  1601. * wlan_mlme_cfg_get_vht_max_mpdu_len() - gets vht max mpdu length from cfg item
  1602. * @psoc: psoc context
  1603. * @value: pointer to get required data
  1604. *
  1605. * Return: QDF_STATUS
  1606. */
  1607. QDF_STATUS
  1608. wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1609. uint8_t *value);
  1610. /**
  1611. * wlan_mlme_cfg_set_vht_max_mpdu_len() - sets vht max mpdu length into cfg item
  1612. * @psoc: psoc context
  1613. * @value: data to be set
  1614. *
  1615. * Return: QDF_STATUS
  1616. */
  1617. QDF_STATUS
  1618. wlan_mlme_cfg_set_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1619. uint8_t value);
  1620. /**
  1621. * wlan_mlme_cfg_get_ht_smps() - gets HT SM Power Save mode from cfg item
  1622. * @psoc: psoc context
  1623. * @value: data to be set
  1624. *
  1625. * Return: QDF_STATUS
  1626. */
  1627. QDF_STATUS wlan_mlme_cfg_get_ht_smps(struct wlan_objmgr_psoc *psoc,
  1628. uint8_t *value);
  1629. /**
  1630. * wlan_mlme_cfg_get_vht_chan_width() - gets vht supported channel width from
  1631. * cfg item
  1632. * @psoc: psoc context
  1633. * @value: pointer to get required data
  1634. *
  1635. * Return: QDF_STATUS
  1636. */
  1637. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1638. uint8_t *value);
  1639. /**
  1640. * wlan_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  1641. * cfg item
  1642. * @psoc: psoc context
  1643. * @value: data to be set
  1644. *
  1645. * Return: QDF_STATUS
  1646. */
  1647. QDF_STATUS wlan_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1648. uint8_t value);
  1649. /**
  1650. * wlan_mlme_cfg_get_vht_chan_width() - sets vht supported channel width into
  1651. * cfg item
  1652. * @psoc: psoc context
  1653. * @value: data to be set
  1654. *
  1655. * Return: QDF_STATUS
  1656. */
  1657. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1658. uint8_t *value);
  1659. /**
  1660. * wlan_mlme_cfg_get_vht_ldpc_coding_cap() - gets vht ldpc coding cap from
  1661. * cfg item
  1662. * @psoc: psoc context
  1663. * @value: pointer to get required data
  1664. *
  1665. * Return: QDF_STATUS
  1666. */
  1667. QDF_STATUS wlan_mlme_cfg_get_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1668. bool *value);
  1669. /**
  1670. * wlan_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1671. * cfg item
  1672. * @psoc: psoc context
  1673. * @value: data to be set
  1674. *
  1675. * Return: QDF_STATUS
  1676. */
  1677. QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1678. bool value);
  1679. /**
  1680. * wlan_mlme_cfg_get_vht_short_gi_80mhz() - gets vht short gi 80MHz from
  1681. * cfg item
  1682. * @psoc: psoc context
  1683. * @value: pointer to get required data
  1684. *
  1685. * Return: QDF_STATUS
  1686. */
  1687. QDF_STATUS wlan_mlme_cfg_get_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1688. bool *value);
  1689. /**
  1690. * wlan_mlme_cfg_set_vht_short_gi_80mhz() - sets vht short gi 80MHz into
  1691. * cfg item
  1692. * @psoc: psoc context
  1693. * @value: data to be set
  1694. *
  1695. * Return: QDF_STATUS
  1696. */
  1697. QDF_STATUS wlan_mlme_cfg_set_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1698. bool value);
  1699. /**
  1700. * wlan_mlme_cfg_get_short_gi_160_mhz() - gets vht short gi 160MHz from
  1701. * cfg item
  1702. * @psoc: psoc context
  1703. * @value: pointer to get required data
  1704. *
  1705. * Return: QDF_STATUS
  1706. */
  1707. QDF_STATUS
  1708. wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool *value);
  1709. /**
  1710. * wlan_mlme_cfg_set_short_gi_160_mhz() - sets vht short gi 160MHz into
  1711. * cfg item
  1712. * @psoc: psoc context
  1713. * @value: data to be set
  1714. *
  1715. * Return: QDF_STATUS
  1716. */
  1717. QDF_STATUS
  1718. wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool value);
  1719. /**
  1720. * wlan_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1721. * cfg item
  1722. * @psoc: psoc context
  1723. * @value: pointer to get required data
  1724. *
  1725. * Return: QDF_STATUS
  1726. */
  1727. QDF_STATUS
  1728. wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1729. /**
  1730. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1731. * cfg item
  1732. * @psoc: psoc context
  1733. * @value: pointer to get required data
  1734. *
  1735. * Return: QDF_STATUS
  1736. */
  1737. QDF_STATUS
  1738. wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1739. /**
  1740. * wlan_mlme_cfg_set_vht_tx_stbc() - sets vht tx stbc into
  1741. * cfg item
  1742. * @psoc: psoc context
  1743. * @value: data to be set
  1744. *
  1745. * Return: QDF_STATUS
  1746. */
  1747. QDF_STATUS
  1748. wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
  1749. /**
  1750. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1751. * cfg item
  1752. * @psoc: psoc context
  1753. * @value: pointer to get required data
  1754. *
  1755. * Return: QDF_STATUS
  1756. */
  1757. QDF_STATUS
  1758. wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1759. /**
  1760. * wlan_mlme_cfg_set_vht_rx_stbc() - sets vht rx stbc into
  1761. * cfg item
  1762. * @psoc: psoc context
  1763. * @value: data to be set
  1764. *
  1765. * Return: QDF_STATUS
  1766. */
  1767. QDF_STATUS
  1768. wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
  1769. /**
  1770. * wlan_mlme_cfg_get_vht_su_bformer() - gets vht su beam former cap from
  1771. * cfg item
  1772. * @psoc: psoc context
  1773. * @value: pointer to get required data
  1774. *
  1775. * Return: QDF_STATUS
  1776. */
  1777. QDF_STATUS
  1778. wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1779. /**
  1780. * wlan_mlme_cfg_set_vht_su_bformer() - sets vht su beam former cap into
  1781. * cfg item
  1782. * @psoc: psoc context
  1783. * @value: data to be set
  1784. *
  1785. * Return: QDF_STATUS
  1786. */
  1787. QDF_STATUS
  1788. wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool value);
  1789. /**
  1790. * wlan_mlme_cfg_set_vht_su_bformee() - sets vht su beam formee cap into
  1791. * cfg item
  1792. * @psoc: psoc context
  1793. * @value: data to be set
  1794. *
  1795. * Return: QDF_STATUS
  1796. */
  1797. QDF_STATUS
  1798. wlan_mlme_cfg_set_vht_su_bformee(struct wlan_objmgr_psoc *psoc, bool value);
  1799. /**
  1800. * wlan_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1801. * support cap
  1802. * into cfg item
  1803. * @psoc: psoc context
  1804. * @value: data to be set
  1805. *
  1806. * Return: QDF_STATUS
  1807. */
  1808. QDF_STATUS wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1809. uint8_t value);
  1810. /**
  1811. * wlan_mlme_cfg_get_vht_tx_bfee_ant_supp() - Gets vht Beamformee antenna
  1812. * support cap into cfg item
  1813. *
  1814. * @psoc: psoc context
  1815. * @value: data to be set
  1816. *
  1817. * Return: QDF_STATUS
  1818. */
  1819. QDF_STATUS wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1820. uint8_t *value);
  1821. /**
  1822. * wlan_mlme_cfg_set_vht_num_sounding_dim() - sets vht no of sounding dimensions
  1823. * into cfg item
  1824. * @psoc: psoc context
  1825. * @value: data to be set
  1826. *
  1827. * Return: QDF_STATUS
  1828. */
  1829. QDF_STATUS wlan_mlme_cfg_set_vht_num_sounding_dim(struct wlan_objmgr_psoc *psoc,
  1830. uint8_t value);
  1831. /**
  1832. * wlan_mlme_cfg_get_vht_mu_bformer() - gets vht mu beam former cap from
  1833. * cfg item
  1834. * @psoc: psoc context
  1835. * @value: pointer to get required data
  1836. *
  1837. * Return: QDF_STATUS
  1838. */
  1839. QDF_STATUS
  1840. wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1841. /**
  1842. * wlan_mlme_cfg_set_vht_mu_bformer() - sets vht mu beam former cap into
  1843. * cfg item
  1844. * @psoc: psoc context
  1845. * @value: data to be set
  1846. *
  1847. * Return: QDF_STATUS
  1848. */
  1849. QDF_STATUS
  1850. wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool value);
  1851. /**
  1852. * wlan_mlme_cfg_get_vht_mu_bformee() - gets vht mu beam formee cap from
  1853. * cfg item
  1854. * @psoc: psoc context
  1855. * @value: pointer to get required data
  1856. *
  1857. * Return: QDF_STATUS
  1858. */
  1859. QDF_STATUS
  1860. wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool *value);
  1861. /**
  1862. * wlan_mlme_cfg_set_vht_mu_bformee() - sets vht mu beam formee cap into
  1863. * cfg item
  1864. * @psoc: psoc context
  1865. * @value: data to be set
  1866. *
  1867. * Return: QDF_STATUS
  1868. */
  1869. QDF_STATUS
  1870. wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool value);
  1871. /**
  1872. * wlan_mlme_cfg_get_vht_txop_ps() - gets vht tx ops ps cap from
  1873. * cfg item
  1874. * @psoc: psoc context
  1875. * @value: pointer to get required data
  1876. *
  1877. * Return: QDF_STATUS
  1878. */
  1879. QDF_STATUS
  1880. wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool *value);
  1881. /**
  1882. * wlan_mlme_cfg_set_vht_txop_ps() - sets vht tx ops ps cap into
  1883. * cfg item
  1884. * @psoc: psoc context
  1885. * @value: data to be set
  1886. *
  1887. * Return: QDF_STATUS
  1888. */
  1889. QDF_STATUS
  1890. wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool value);
  1891. /**
  1892. * wlan_mlme_cfg_get_vht_ampdu_len_exp() - gets vht max AMPDU length exponent from
  1893. * cfg item
  1894. * @psoc: psoc context
  1895. * @value: pointer to get required data
  1896. *
  1897. * Return: QDF_STATUS
  1898. */
  1899. QDF_STATUS
  1900. wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1901. uint8_t *value);
  1902. /**
  1903. * wlan_mlme_cfg_set_vht_ampdu_len_exp() - sets vht max AMPDU length exponent into
  1904. * cfg item
  1905. * @psoc: psoc context
  1906. * @value: data to be set
  1907. *
  1908. * Return: QDF_STATUS
  1909. */
  1910. QDF_STATUS
  1911. wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1912. uint8_t value);
  1913. /**
  1914. * wlan_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1915. * cfg item
  1916. * @psoc: psoc context
  1917. * @value: pointer to get required data
  1918. *
  1919. * Return: QDF_STATUS
  1920. */
  1921. QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1922. uint32_t *value);
  1923. /**
  1924. * wlan_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1925. * cfg item
  1926. * @psoc: psoc context
  1927. * @value: data to be set
  1928. *
  1929. * Return: QDF_STATUS
  1930. */
  1931. QDF_STATUS
  1932. wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value);
  1933. /**
  1934. * wlan_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1935. * cfg item
  1936. * @psoc: psoc context
  1937. * @value: pointer to get required data
  1938. *
  1939. * Return: QDF_STATUS
  1940. */
  1941. QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1942. uint32_t *value);
  1943. /**
  1944. * wlan_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1945. * cfg item
  1946. * @psoc: psoc context
  1947. * @value: data to be set
  1948. *
  1949. * Return: QDF_STATUS
  1950. */
  1951. QDF_STATUS wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1952. uint32_t value);
  1953. /**
  1954. * wlan_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data rate into
  1955. * cfg item
  1956. * @psoc: psoc context
  1957. * @value: data to be set
  1958. *
  1959. * Return: QDF_STATUS
  1960. */
  1961. QDF_STATUS
  1962. wlan_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1963. uint32_t value);
  1964. /**
  1965. * wlan_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1966. * cfg item
  1967. * @psoc: psoc context
  1968. * @value: data to be set
  1969. *
  1970. * Return: QDF_STATUS
  1971. */
  1972. QDF_STATUS
  1973. wlan_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1974. uint32_t value);
  1975. /**
  1976. * wlan_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1977. * cfg item
  1978. * @psoc: psoc context
  1979. * @value: data to be set
  1980. *
  1981. * Return: QDF_STATUS
  1982. */
  1983. QDF_STATUS
  1984. wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1985. uint32_t *value);
  1986. /**
  1987. * wlan_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1988. * cfg item
  1989. * @psoc: psoc context
  1990. * @value: data to be set
  1991. *
  1992. * Return: QDF_STATUS
  1993. */
  1994. QDF_STATUS
  1995. wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1996. uint32_t value);
  1997. /**
  1998. * wlan_mlme_get_vht_enable_tx_bf() - Get vht enable tx bf
  1999. * @psoc: psoc context
  2000. * @value: data to be set
  2001. *
  2002. * Return: QDF_STATUS
  2003. */
  2004. QDF_STATUS
  2005. wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value);
  2006. /**
  2007. * wlan_mlme_get_vht_tx_su_beamformer() - VHT enable tx su beamformer
  2008. * @psoc: psoc context
  2009. * @value: data to be set
  2010. *
  2011. * Return: QDF_STATUS
  2012. */
  2013. QDF_STATUS
  2014. wlan_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value);
  2015. /**
  2016. * wlan_mlme_get_vht_channel_width() - gets Channel width capability
  2017. * for 11ac
  2018. * @psoc: psoc context
  2019. * @value: data to be set
  2020. *
  2021. * Return: QDF_STATUS
  2022. */
  2023. QDF_STATUS wlan_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc,
  2024. uint8_t *value);
  2025. /**
  2026. * wlan_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  2027. * @psoc: psoc context
  2028. * @value: data to be set
  2029. *
  2030. * Return: QDF_STATUS
  2031. */
  2032. QDF_STATUS wlan_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  2033. uint8_t *value);
  2034. /**
  2035. * wlan_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  2036. * @psoc: psoc context
  2037. * @value: data to be set
  2038. *
  2039. * Return: QDF_STATUS
  2040. */
  2041. QDF_STATUS
  2042. wlan_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  2043. /**
  2044. * wlan_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  2045. * @psoc: psoc context
  2046. * @value: data to be set
  2047. *
  2048. * Return: QDF_STATUS
  2049. */
  2050. QDF_STATUS wlan_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  2051. uint8_t *value);
  2052. /**
  2053. * wlan_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  2054. * @psoc: psoc context
  2055. * @value: data to be set
  2056. *
  2057. * Return: QDF_STATUS
  2058. */
  2059. QDF_STATUS wlan_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  2060. uint8_t *value);
  2061. /**
  2062. * wlan_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  2063. * @psoc: psoc context
  2064. * @value: data to be set
  2065. *
  2066. * Return: QDF_STATUS
  2067. */
  2068. QDF_STATUS
  2069. wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value);
  2070. /**
  2071. * wlan_mlme_get_srd_master_mode_for_vdev - Get SRD master mode for vdev
  2072. * @psoc: pointer to psoc object
  2073. * @vdev_opmode: vdev operating mode
  2074. * @value: pointer to the value which will be filled for the caller
  2075. *
  2076. * Return: QDF Status
  2077. */
  2078. QDF_STATUS
  2079. wlan_mlme_get_srd_master_mode_for_vdev(struct wlan_objmgr_psoc *psoc,
  2080. enum QDF_OPMODE vdev_opmode,
  2081. bool *value);
  2082. /**
  2083. * wlan_mlme_get_indoor_support_for_nan - Get indoor channel support for NAN
  2084. * @psoc: pointer to psoc object
  2085. * @value: pointer to the value which will be filled for the caller
  2086. *
  2087. * Return: QDF Status
  2088. */
  2089. QDF_STATUS
  2090. wlan_mlme_get_indoor_support_for_nan(struct wlan_objmgr_psoc *psoc,
  2091. bool *value);
  2092. /**
  2093. * wlan_mlme_get_force_sap_enabled() - Get the value of force SAP enabled
  2094. * @psoc: psoc context
  2095. * @value: data to get
  2096. *
  2097. * Get the value of force SAP enabled
  2098. *
  2099. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2100. */
  2101. QDF_STATUS
  2102. wlan_mlme_get_force_sap_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  2103. /**
  2104. * wlan_mlme_get_enable_dynamic_nss_chains_cfg() - API to get whether dynamic
  2105. * nss and chain config is enabled or not
  2106. * @psoc: psoc context
  2107. * @value: data to be set
  2108. *
  2109. * API to get whether dynamic nss and chain config is enabled or not
  2110. *
  2111. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2112. */
  2113. QDF_STATUS
  2114. wlan_mlme_get_enable_dynamic_nss_chains_cfg(struct wlan_objmgr_psoc *psoc,
  2115. bool *value);
  2116. /**
  2117. * wlan_mlme_get_restart_sap_on_dynamic_nss_chains_cfg() - API to get whether
  2118. * SAP needs to be restarted or not on dynamic nss chain config
  2119. * @psoc: psoc context
  2120. * @value: data to be set
  2121. *
  2122. * API to get whether SAP needs to be restarted or not on dynamic nss chain
  2123. * config
  2124. *
  2125. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2126. */
  2127. QDF_STATUS
  2128. wlan_mlme_get_restart_sap_on_dynamic_nss_chains_cfg(
  2129. struct wlan_objmgr_psoc *psoc,
  2130. bool *value);
  2131. /**
  2132. * wlan_mlme_cfg_set_dynamic_nss_chains_support() - API to update
  2133. * dynamic_nss_chains_support
  2134. *
  2135. * @psoc: psoc context
  2136. * @value: data to be set
  2137. *
  2138. * API to update dynamic_nss_chains_support in wlan_mlme_cfg object to
  2139. * maintain this value in mlme context
  2140. *
  2141. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2142. */
  2143. QDF_STATUS
  2144. wlan_mlme_cfg_set_dynamic_nss_chains_support(struct wlan_objmgr_psoc *psoc,
  2145. bool value);
  2146. /**
  2147. * wlan_mlme_cfg_get_dynamic_nss_chains_support() - API to get current value of
  2148. * dynamic_nss_chains_support
  2149. *
  2150. * @psoc: psoc context
  2151. * @value: data to be set
  2152. *
  2153. * API to get current value of dynamic_nss_chains_support
  2154. *
  2155. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2156. */
  2157. QDF_STATUS
  2158. wlan_mlme_cfg_get_dynamic_nss_chains_support(struct wlan_objmgr_psoc *psoc,
  2159. bool *value);
  2160. /**
  2161. * wlan_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  2162. * @psoc: psoc context
  2163. * @value: data to be set
  2164. *
  2165. * Return: QDF_STATUS
  2166. */
  2167. QDF_STATUS
  2168. wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value);
  2169. /**
  2170. * wlan_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  2171. * @psoc: psoc context
  2172. * @value: data to be set
  2173. *
  2174. * Return: QDF_STATUS
  2175. */
  2176. QDF_STATUS
  2177. wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value);
  2178. /**
  2179. * wlan_mlme_get_vht_enable_paid() - Enables/disables paid feature
  2180. * @psoc: psoc context
  2181. * @value: data to be set
  2182. *
  2183. * Return: QDF_STATUS
  2184. */
  2185. QDF_STATUS
  2186. wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value);
  2187. /**
  2188. * wlan_mlme_get_vht_enable_gid() - Enables/disables VHT GID feature
  2189. * @psoc: psoc context
  2190. * @value: data to be set
  2191. *
  2192. * Return: QDF_STATUS
  2193. */
  2194. QDF_STATUS
  2195. wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value);
  2196. /**
  2197. * wlan_mlme_get_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  2198. * @psoc: psoc context
  2199. * @value: data to be set
  2200. *
  2201. * Return: QDF_STATUS
  2202. */
  2203. QDF_STATUS
  2204. wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
  2205. /**
  2206. * wlan_mlme_set_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  2207. * @psoc: psoc context
  2208. * @value: data to be set
  2209. *
  2210. * Return: QDF_STATUS
  2211. */
  2212. QDF_STATUS
  2213. wlan_mlme_set_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool value);
  2214. /**
  2215. * wlan_mlme_get_vendor_vht_for_24ghz() - nables/disables vendor VHT for 24 ghz
  2216. * @psoc: psoc context
  2217. * @value: data to be set
  2218. *
  2219. * Return: QDF_STATUS
  2220. */
  2221. QDF_STATUS
  2222. wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
  2223. /**
  2224. * mlme_update_vht_cap() - update vht capabilities
  2225. * @psoc: psoc context
  2226. * @cfg: data to be set
  2227. *
  2228. * Return: QDF_STATUS
  2229. */
  2230. QDF_STATUS
  2231. mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc, struct wma_tgt_vht_cap *cfg);
  2232. /**
  2233. * mlme_update_nss_vht_cap() - Update the number of spatial
  2234. * streams supported for vht
  2235. * @psoc: psoc context
  2236. *
  2237. * Return: QDF_STATUS
  2238. */
  2239. QDF_STATUS mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc);
  2240. #ifdef WLAN_FEATURE_11BE
  2241. /**
  2242. * mlme_get_bss_11be_allowed() - Check BSS allowed in 11be mode
  2243. * @psoc: psoc context
  2244. * @bssid: bssid
  2245. * @ie_data: ie data
  2246. * @ie_length: ie data length
  2247. *
  2248. * Return: true if AP in 11be oui allow list
  2249. */
  2250. bool mlme_get_bss_11be_allowed(struct wlan_objmgr_psoc *psoc,
  2251. struct qdf_mac_addr *bssid,
  2252. uint8_t *ie_data,
  2253. uint32_t ie_length);
  2254. #else
  2255. static inline
  2256. bool mlme_get_bss_11be_allowed(struct wlan_objmgr_psoc *psoc,
  2257. struct qdf_mac_addr *bssid,
  2258. uint8_t *ie_data,
  2259. uint32_t ie_length)
  2260. {
  2261. return false;
  2262. }
  2263. #endif
  2264. /**
  2265. * wlan_mlme_is_sap_uapsd_enabled() - Get if SAP UAPSD is enabled/disabled
  2266. * @psoc: psoc context
  2267. * @value: value to be filled for caller
  2268. *
  2269. * Return: QDF_STATUS
  2270. */
  2271. QDF_STATUS wlan_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc,
  2272. bool *value);
  2273. /**
  2274. * wlan_mlme_set_sap_uapsd_flag() - Enable/Disable SAP UAPSD
  2275. * @psoc: psoc context
  2276. * @value: Enable/Disable control value for sap_uapsd_enabled field
  2277. *
  2278. * Return: QDF_STATUS
  2279. */
  2280. QDF_STATUS wlan_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc,
  2281. bool value);
  2282. /**
  2283. * wlan_mlme_is_11h_enabled() - Get the 11h flag
  2284. * @psoc: psoc context
  2285. * @value: Enable/Disable value ptr.
  2286. *
  2287. * Return: QDF_STATUS
  2288. */
  2289. QDF_STATUS
  2290. wlan_mlme_is_11h_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  2291. /**
  2292. * wlan_mlme_set_11h_enabled() - Set the 11h flag
  2293. * @psoc: psoc context
  2294. * @value: Enable/Disable value
  2295. *
  2296. * Return: QDF_STATUS
  2297. */
  2298. QDF_STATUS
  2299. wlan_mlme_set_11h_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  2300. /**
  2301. * wlan_mlme_is_11d_enabled() - Get the 11d flag
  2302. * @psoc: psoc context
  2303. * @value: Enable/Disable value ptr.
  2304. *
  2305. * Return: QDF_STATUS
  2306. */
  2307. QDF_STATUS
  2308. wlan_mlme_is_11d_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  2309. /**
  2310. * wlan_mlme_set_11d_enabled() - Set the 11h flag
  2311. * @psoc: psoc context
  2312. * @value: Enable/Disable value
  2313. *
  2314. * Return: QDF_STATUS
  2315. */
  2316. QDF_STATUS
  2317. wlan_mlme_set_11d_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  2318. /**
  2319. * wlan_mlme_is_rf_test_mode_enabled() - Get the rf test mode flag
  2320. * @psoc: psoc context
  2321. * @value: Enable/Disable value ptr.
  2322. *
  2323. * Return: QDF_STATUS
  2324. */
  2325. QDF_STATUS
  2326. wlan_mlme_is_rf_test_mode_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  2327. /**
  2328. * wlan_mlme_set_rf_test_mode_enabled() - Set the rf test mode flag
  2329. * @psoc: psoc context
  2330. * @value: Enable/Disable value.
  2331. *
  2332. * Return: QDF_STATUS
  2333. */
  2334. QDF_STATUS
  2335. wlan_mlme_set_rf_test_mode_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  2336. #ifdef CONFIG_BAND_6GHZ
  2337. /**
  2338. * wlan_mlme_is_disable_vlp_sta_conn_to_sp_ap_enabled() - Get the disable vlp
  2339. * STA conn to SP AP flag
  2340. * @psoc: psoc context
  2341. * @value: Enable/Disable value ptr.
  2342. *
  2343. * Return: QDF_STATUS
  2344. */
  2345. QDF_STATUS
  2346. wlan_mlme_is_disable_vlp_sta_conn_to_sp_ap_enabled(
  2347. struct wlan_objmgr_psoc *psoc,
  2348. bool *value);
  2349. /**
  2350. * wlan_mlme_is_standard_6ghz_conn_policy_enabled() - Get the 6 GHz standard
  2351. * connection policy flag
  2352. * @psoc: psoc context
  2353. * @value: Enable/Disable value ptr.
  2354. *
  2355. * Return: QDF_STATUS
  2356. */
  2357. QDF_STATUS
  2358. wlan_mlme_is_standard_6ghz_conn_policy_enabled(struct wlan_objmgr_psoc *psoc,
  2359. bool *value);
  2360. #else
  2361. static inline QDF_STATUS
  2362. wlan_mlme_is_disable_vlp_sta_conn_to_sp_ap_enabled(
  2363. struct wlan_objmgr_psoc *psoc,
  2364. bool *value)
  2365. {
  2366. *value = false;
  2367. return QDF_STATUS_SUCCESS;
  2368. }
  2369. static inline QDF_STATUS
  2370. wlan_mlme_is_standard_6ghz_conn_policy_enabled(struct wlan_objmgr_psoc *psoc,
  2371. bool *value)
  2372. {
  2373. *value = false;
  2374. return QDF_STATUS_SUCCESS;
  2375. }
  2376. #endif
  2377. #ifdef WLAN_FEATURE_11BE_MLO
  2378. /**
  2379. * wlan_mlme_get_eht_mode() - Get the EHT mode of operations
  2380. * @psoc: psoc context
  2381. * @value: EHT mode value ptr
  2382. *
  2383. * Return: QDF_STATUS
  2384. */
  2385. QDF_STATUS
  2386. wlan_mlme_get_eht_mode(struct wlan_objmgr_psoc *psoc,
  2387. enum wlan_eht_mode *value);
  2388. /**
  2389. * wlan_mlme_set_eht_mode() - Set the EHT mode of operation
  2390. * @psoc: psoc context
  2391. * @value: EHT mode value
  2392. *
  2393. * Return: QDF_STATUS
  2394. */
  2395. QDF_STATUS
  2396. wlan_mlme_set_eht_mode(struct wlan_objmgr_psoc *psoc, enum wlan_eht_mode value);
  2397. /**
  2398. * wlan_mlme_get_emlsr_mode_enabled() - Get the eMLSR mode flag
  2399. * @psoc: psoc context
  2400. * @value: Enable/Disable value ptr.
  2401. *
  2402. * Return: QDF_STATUS
  2403. */
  2404. QDF_STATUS
  2405. wlan_mlme_get_emlsr_mode_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  2406. /**
  2407. * wlan_mlme_set_emlsr_mode_enabled() - Set the eMLSR mode flag
  2408. * @psoc: psoc context
  2409. * @value: Enable/Disable value.
  2410. *
  2411. * Return: QDF_STATUS
  2412. */
  2413. QDF_STATUS
  2414. wlan_mlme_set_emlsr_mode_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  2415. /**
  2416. * wlan_mlme_set_eml_params() - Set EML subfields in psoc mlme obj that
  2417. * are received from FW
  2418. * @psoc: psoc context
  2419. * @cap: psoc mac/phy capability ptr
  2420. *
  2421. * Return: none
  2422. */
  2423. void
  2424. wlan_mlme_set_eml_params(struct wlan_objmgr_psoc *psoc,
  2425. struct wlan_psoc_host_mac_phy_caps_ext2 *cap);
  2426. /**
  2427. * wlan_mlme_get_eml_params() - Get EML subfields from psoc mlme obj
  2428. * @psoc: psoc context
  2429. * @cap: EML capability subfield ptr
  2430. *
  2431. * Return: none
  2432. */
  2433. void
  2434. wlan_mlme_get_eml_params(struct wlan_objmgr_psoc *psoc,
  2435. struct wlan_mlo_eml_cap *cap);
  2436. /**
  2437. * wlan_mlme_cfg_set_emlsr_pad_delay() - Configure EMLSR padding delay subfield
  2438. * @psoc: psoc context
  2439. * @val: EMLSR padding delay subfield value
  2440. *
  2441. * API to configure EMLSR padding delay subfield in psoc mlme obj with user
  2442. * requested value if it greater than the value configured by FW during boot-up.
  2443. *
  2444. * Return: none
  2445. */
  2446. void
  2447. wlan_mlme_cfg_set_emlsr_pad_delay(struct wlan_objmgr_psoc *psoc, uint8_t val);
  2448. /**
  2449. * wlan_mlme_get_t2lm_negotiation_supported() - Get the T2LM
  2450. * negotiation supported value
  2451. * @psoc: psoc context
  2452. *
  2453. * Return: t2lm negotiation supported value
  2454. */
  2455. enum t2lm_negotiation_support
  2456. wlan_mlme_get_t2lm_negotiation_supported(struct wlan_objmgr_psoc *psoc);
  2457. /**
  2458. * wlan_mlme_set_t2lm_negotiation_supported() - Set the T2LM
  2459. * negotiation supported value
  2460. * @psoc: psoc context
  2461. * @value: t2lm negotiation supported value
  2462. *
  2463. * Return: qdf status
  2464. */
  2465. QDF_STATUS
  2466. wlan_mlme_set_t2lm_negotiation_supported(struct wlan_objmgr_psoc *psoc,
  2467. uint8_t value);
  2468. /*
  2469. * wlan_mlme_get_mlo_prefer_percentage() - get MLO preference percentage
  2470. * @psoc: pointer to psoc object
  2471. *
  2472. * Return: void
  2473. */
  2474. void
  2475. wlan_mlme_get_mlo_prefer_percentage(
  2476. struct wlan_objmgr_psoc *psoc,
  2477. int8_t *mlo_prefer_percentage);
  2478. #else
  2479. static inline QDF_STATUS
  2480. wlan_mlme_get_eht_mode(struct wlan_objmgr_psoc *psoc, enum wlan_eht_mode *value)
  2481. {
  2482. *value = WLAN_EHT_MODE_DISABLED;
  2483. return QDF_STATUS_SUCCESS;
  2484. }
  2485. static inline QDF_STATUS
  2486. wlan_mlme_set_eht_mode(struct wlan_objmgr_psoc *psoc, enum wlan_eht_mode value)
  2487. {
  2488. return QDF_STATUS_SUCCESS;
  2489. }
  2490. static inline QDF_STATUS
  2491. wlan_mlme_get_emlsr_mode_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2492. {
  2493. *value = false;
  2494. return QDF_STATUS_SUCCESS;
  2495. }
  2496. static inline QDF_STATUS
  2497. wlan_mlme_set_emlsr_mode_enabled(struct wlan_objmgr_psoc *psoc, bool value)
  2498. {
  2499. return QDF_STATUS_SUCCESS;
  2500. }
  2501. static inline void
  2502. wlan_mlme_set_eml_params(struct wlan_objmgr_psoc *psoc,
  2503. struct wlan_psoc_host_mac_phy_caps_ext2 *cap)
  2504. {
  2505. }
  2506. static inline void
  2507. wlan_mlme_get_eml_params(struct wlan_objmgr_psoc *psoc,
  2508. struct wlan_mlo_eml_cap *cap)
  2509. {
  2510. }
  2511. static inline void
  2512. wlan_mlme_cfg_set_emlsr_pad_delay(struct wlan_objmgr_psoc *psoc, uint8_t val)
  2513. {
  2514. }
  2515. static inline enum t2lm_negotiation_support
  2516. wlan_mlme_get_t2lm_negotiation_supported(struct wlan_objmgr_psoc *psoc)
  2517. {
  2518. return T2LM_NEGOTIATION_DISABLED;
  2519. }
  2520. static inline QDF_STATUS
  2521. wlan_mlme_set_t2lm_negotiation_supported(struct wlan_objmgr_psoc *psoc,
  2522. uint8_t value)
  2523. {
  2524. return QDF_STATUS_E_NOSUPPORT;
  2525. }
  2526. static inline void
  2527. wlan_mlme_get_mlo_prefer_percentage(
  2528. struct wlan_objmgr_psoc *psoc,
  2529. int8_t *mlo_prefer_percentage)
  2530. {}
  2531. #endif
  2532. /**
  2533. * wlan_mlme_get_sta_miracast_mcc_rest_time() - Get STA/MIRACAST MCC rest time
  2534. * @psoc: pointer to psoc object
  2535. * @value: value which needs to filled by API
  2536. *
  2537. * This API gives rest time to be used when STA and MIRACAST MCC conc happens
  2538. *
  2539. * Return: QDF_STATUS
  2540. */
  2541. QDF_STATUS
  2542. wlan_mlme_get_sta_miracast_mcc_rest_time(struct wlan_objmgr_psoc *psoc,
  2543. uint32_t *value);
  2544. /**
  2545. * wlan_mlme_get_max_modulated_dtim_ms() - get the max modulated dtim in ms
  2546. * restart
  2547. * @psoc: pointer to psoc object
  2548. * @value: Value that needs to be set from the caller
  2549. *
  2550. * Return: QDF Status
  2551. */
  2552. QDF_STATUS
  2553. wlan_mlme_get_max_modulated_dtim_ms(struct wlan_objmgr_psoc *psoc,
  2554. uint16_t *value);
  2555. /**
  2556. * wlan_mlme_get_scan_probe_unicast_ra() - Get scan probe unicast RA cfg
  2557. * @psoc: pointer to psoc object
  2558. * @value: value which needs to filled by API
  2559. *
  2560. * This API gives scan probe request with unicast RA user config
  2561. *
  2562. * Return: QDF_STATUS
  2563. */
  2564. QDF_STATUS
  2565. wlan_mlme_get_scan_probe_unicast_ra(struct wlan_objmgr_psoc *psoc,
  2566. bool *value);
  2567. /**
  2568. * wlan_mlme_set_scan_probe_unicast_ra() - Set scan probe unicast RA cfg
  2569. * @psoc: pointer to psoc object
  2570. * @value: set value
  2571. *
  2572. * This API sets scan probe request with unicast RA user config
  2573. *
  2574. * Return: QDF_STATUS
  2575. */
  2576. QDF_STATUS
  2577. wlan_mlme_set_scan_probe_unicast_ra(struct wlan_objmgr_psoc *psoc,
  2578. bool value);
  2579. /**
  2580. * wlan_mlme_get_sap_mcc_chnl_avoid() - Check if SAP MCC needs to be avoided
  2581. * @psoc: pointer to psoc object
  2582. * @value: value which needs to filled by API
  2583. *
  2584. * This API fetches the user setting to determine if SAP MCC with other persona
  2585. * to be avoided.
  2586. *
  2587. * Return: QDF_STATUS
  2588. */
  2589. QDF_STATUS
  2590. wlan_mlme_get_sap_mcc_chnl_avoid(struct wlan_objmgr_psoc *psoc,
  2591. uint8_t *value);
  2592. /**
  2593. * wlan_mlme_get_mcc_bcast_prob_resp() - Get broadcast probe rsp in MCC
  2594. * @psoc: pointer to psoc object
  2595. * @value: value which needs to filled by API
  2596. *
  2597. * To get INI value which helps to determe whether to enable/disable use of
  2598. * broadcast probe response to increase the detectability of SAP in MCC mode.
  2599. *
  2600. *
  2601. * Return: QDF_STATUS
  2602. */
  2603. QDF_STATUS
  2604. wlan_mlme_get_mcc_bcast_prob_resp(struct wlan_objmgr_psoc *psoc,
  2605. uint8_t *value);
  2606. /**
  2607. * wlan_mlme_get_mcc_rts_cts_prot() - To get RTS-CTS protection in MCC.
  2608. * @psoc: pointer to psoc object
  2609. * @value: value which needs to filled by API
  2610. *
  2611. * To get INI value which helps to determine whether to enable/disable
  2612. * use of long duration RTS-CTS protection when SAP goes off
  2613. * channel in MCC mode.
  2614. *
  2615. * Return: QDF_STATUS
  2616. */
  2617. QDF_STATUS
  2618. wlan_mlme_get_mcc_rts_cts_prot(struct wlan_objmgr_psoc *psoc,
  2619. uint8_t *value);
  2620. /**
  2621. * wlan_mlme_get_mcc_feature() - To find out to enable/disable MCC feature
  2622. * @psoc: pointer to psoc object
  2623. * @value: value which needs to filled by API
  2624. *
  2625. * To get INI value which helps to determine whether to enable MCC feature
  2626. *
  2627. * Return: QDF_STATUS
  2628. */
  2629. QDF_STATUS
  2630. wlan_mlme_get_mcc_feature(struct wlan_objmgr_psoc *psoc,
  2631. uint8_t *value);
  2632. /**
  2633. * wlan_mlme_get_rrm_enabled() - Get the RRM enabled ini
  2634. * @psoc: pointer to psoc object
  2635. * @value: pointer to the value which will be filled for the caller
  2636. *
  2637. * Return: QDF Status
  2638. */
  2639. QDF_STATUS wlan_mlme_get_rrm_enabled(struct wlan_objmgr_psoc *psoc,
  2640. bool *value);
  2641. /**
  2642. * wlan_mlme_get_dtim_selection_diversity() - get dtim selection diversity
  2643. * bitmap
  2644. * @psoc: pointer to psoc object
  2645. * @dtim_selection_div: value that is requested by the caller
  2646. * This function gets the dtim selection diversity bitmap to be
  2647. * sent to the firmware
  2648. *
  2649. * Return: QDF_STATUS_SUCCESS - in case of success
  2650. */
  2651. QDF_STATUS wlan_mlme_get_dtim_selection_diversity(struct wlan_objmgr_psoc *psoc,
  2652. uint32_t *dtim_selection_div);
  2653. /**
  2654. * wlan_mlme_get_bmps_min_listen_interval() - get beacon mode powersave
  2655. * minimum listen interval value
  2656. * @psoc: pointer to psoc object
  2657. * @value: value that is requested by the caller
  2658. *
  2659. * Return: QDF_STATUS_SUCCESS - in case of success
  2660. */
  2661. QDF_STATUS wlan_mlme_get_bmps_min_listen_interval(struct wlan_objmgr_psoc *psoc,
  2662. uint32_t *value);
  2663. /**
  2664. * wlan_mlme_get_bmps_max_listen_interval() - get beacon mode powersave
  2665. * maximum listen interval value
  2666. * @psoc: pointer to psoc object
  2667. * @value: value that is requested by the caller
  2668. *
  2669. * Return: QDF_STATUS_SUCCESS - in case of success
  2670. */
  2671. QDF_STATUS wlan_mlme_get_bmps_max_listen_interval(struct wlan_objmgr_psoc *psoc,
  2672. uint32_t *value);
  2673. /**
  2674. * wlan_mlme_get_auto_bmps_timer_value() - get bmps timer value
  2675. * @psoc: pointer to psoc object
  2676. * @value: value that is requested by the caller
  2677. *
  2678. * Return: QDF_STATUS_SUCCESS - in case of success
  2679. */
  2680. QDF_STATUS wlan_mlme_get_auto_bmps_timer_value(struct wlan_objmgr_psoc *psoc,
  2681. uint32_t *value);
  2682. /**
  2683. * wlan_mlme_is_bmps_enabled() - check if beacon mode powersave is
  2684. * enabled/disabled
  2685. * @psoc: pointer to psoc object
  2686. * @value: value that is requested by the caller
  2687. *
  2688. * Return: QDF_STATUS_SUCCESS - in case of success
  2689. */
  2690. QDF_STATUS wlan_mlme_is_bmps_enabled(struct wlan_objmgr_psoc *psoc,
  2691. bool *value);
  2692. /**
  2693. * wlan_mlme_override_bmps_imps() - disable imps/bmps
  2694. * @psoc: pointer to psoc object
  2695. *
  2696. * Return: QDF_STATUS_SUCCESS - in case of success
  2697. */
  2698. QDF_STATUS wlan_mlme_override_bmps_imps(struct wlan_objmgr_psoc *psoc);
  2699. /**
  2700. * wlan_mlme_is_imps_enabled() - check if idle mode powersave is
  2701. * enabled/disabled
  2702. * @psoc: pointer to psoc object
  2703. * @value: value that is requested by the caller
  2704. *
  2705. * Return: QDF_STATUS_SUCCESS - in case of success
  2706. */
  2707. QDF_STATUS wlan_mlme_is_imps_enabled(struct wlan_objmgr_psoc *psoc,
  2708. bool *value);
  2709. /**
  2710. * wlan_mlme_get_wps_uuid() - get the wps uuid string
  2711. * @wps_params: pointer to mlme wps parameters structure
  2712. * @data: data to which the parameter is to be copied
  2713. *
  2714. * Return None
  2715. *
  2716. */
  2717. void
  2718. wlan_mlme_get_wps_uuid(struct wlan_mlme_wps_params *wps_params, uint8_t *data);
  2719. /**
  2720. * wlan_mlme_get_self_gen_frm_pwr() - get self gen frm pwr
  2721. * @psoc: pointer to psoc object
  2722. * @value: Pointer to the value which will be filled for the caller
  2723. *
  2724. * Return: QDF Status
  2725. */
  2726. QDF_STATUS
  2727. wlan_mlme_get_self_gen_frm_pwr(struct wlan_objmgr_psoc *psoc,
  2728. uint32_t *value);
  2729. /**
  2730. * wlan_mlme_get_4way_hs_offload() - get 4-way hs offload to fw cfg
  2731. * @psoc: pointer to psoc object
  2732. * @value: Pointer to the value which will be filled for the caller
  2733. *
  2734. * Return: QDF Status
  2735. */
  2736. QDF_STATUS
  2737. wlan_mlme_get_4way_hs_offload(struct wlan_objmgr_psoc *psoc, uint32_t *value);
  2738. /**
  2739. * wlan_mlme_get_bmiss_skip_full_scan_value() - To get value of
  2740. * bmiss_skip_full_scan ini
  2741. * @psoc: pointer to psoc object
  2742. * @value: Pointer to the value which will be filled for the caller
  2743. *
  2744. * Return: QDF Status
  2745. */
  2746. QDF_STATUS
  2747. wlan_mlme_get_bmiss_skip_full_scan_value(struct wlan_objmgr_psoc *psoc,
  2748. bool *value);
  2749. /**
  2750. * mlme_get_peer_phymode() - get phymode of peer
  2751. * @psoc: pointer to psoc object
  2752. * @mac: Pointer to the mac addr of the peer
  2753. * @peer_phymode: phymode
  2754. *
  2755. * Return: QDF Status
  2756. */
  2757. QDF_STATUS
  2758. mlme_get_peer_phymode(struct wlan_objmgr_psoc *psoc, uint8_t *mac,
  2759. enum wlan_phymode *peer_phymode);
  2760. /**
  2761. * mlme_set_tgt_wpa3_roam_cap() - Set the target WPA3 roam support
  2762. * to mlme
  2763. * @psoc: pointer to PSOC object
  2764. * @akm_bitmap: Bitmap of akm suites supported for roaming by the firmware
  2765. *
  2766. * Return: QDF Status
  2767. */
  2768. QDF_STATUS mlme_set_tgt_wpa3_roam_cap(struct wlan_objmgr_psoc *psoc,
  2769. uint32_t akm_bitmap);
  2770. /**
  2771. * wlan_mlme_get_ignore_fw_reg_offload_ind() - Get the
  2772. * ignore_fw_reg_offload_ind ini
  2773. * @psoc: pointer to psoc object
  2774. * @disabled: output pointer to hold user config
  2775. *
  2776. * Return: QDF Status
  2777. */
  2778. QDF_STATUS
  2779. wlan_mlme_get_ignore_fw_reg_offload_ind(struct wlan_objmgr_psoc *psoc,
  2780. bool *disabled);
  2781. /**
  2782. * mlme_get_roam_trigger_str() - Get the string for enum
  2783. * WMI_ROAM_TRIGGER_REASON_ID reason.
  2784. * @roam_scan_trigger: roam scan trigger ID
  2785. *
  2786. * Return: Meaningful string from enum WMI_ROAM_TRIGGER_REASON_ID
  2787. */
  2788. char *mlme_get_roam_trigger_str(uint32_t roam_scan_trigger);
  2789. /**
  2790. * mlme_get_roam_status_str() - Get the string for roam status
  2791. * @roam_status: roam status coming from fw via
  2792. * wmi_roam_scan_info tlv
  2793. *
  2794. * Return: Meaningful string for roam status
  2795. */
  2796. char *mlme_get_roam_status_str(uint32_t roam_status);
  2797. /**
  2798. * mlme_get_converted_timestamp() - Return time of the day
  2799. * from timestamp
  2800. * @timestamp: Timestamp value in milliseconds
  2801. * @time: Output buffer to fill time into
  2802. *
  2803. * Return: Time of the day in [HH:MM:SS.uS]
  2804. */
  2805. void mlme_get_converted_timestamp(uint32_t timestamp, char *time);
  2806. #if defined(WLAN_SAE_SINGLE_PMK) && defined(WLAN_FEATURE_ROAM_OFFLOAD)
  2807. /**
  2808. * wlan_mlme_set_sae_single_pmk_bss_cap - API to set WPA3 single pmk AP IE
  2809. * @psoc: Pointer to psoc object
  2810. * @vdev_id: vdev id
  2811. * @val: value to be set
  2812. *
  2813. * Return : None
  2814. */
  2815. void wlan_mlme_set_sae_single_pmk_bss_cap(struct wlan_objmgr_psoc *psoc,
  2816. uint8_t vdev_id, bool val);
  2817. /**
  2818. * wlan_mlme_update_sae_single_pmk - API to update mlme_pmkid_info
  2819. * @vdev: vdev object
  2820. * @sae_single_pmk: pointer to sae_single_pmk_info struct
  2821. *
  2822. * Return : None
  2823. */
  2824. void
  2825. wlan_mlme_update_sae_single_pmk(struct wlan_objmgr_vdev *vdev,
  2826. struct mlme_pmk_info *sae_single_pmk);
  2827. /**
  2828. * wlan_mlme_get_sae_single_pmk_info - API to get mlme_pmkid_info
  2829. * @vdev: vdev object
  2830. * @pmksa: pointer to PMKSA struct
  2831. *
  2832. * Return : None
  2833. */
  2834. void
  2835. wlan_mlme_get_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2836. struct wlan_mlme_sae_single_pmk *pmksa);
  2837. /**
  2838. * wlan_mlme_is_sae_single_pmk_enabled() - Get is SAE single pmk feature enabled
  2839. * @psoc: Pointer to Global psoc
  2840. *
  2841. * Return: True if SAE single PMK is enabled
  2842. */
  2843. bool wlan_mlme_is_sae_single_pmk_enabled(struct wlan_objmgr_psoc *psoc);
  2844. /**
  2845. * wlan_mlme_clear_sae_single_pmk_info - API to clear mlme_pmkid_info ap caps
  2846. * @vdev: vdev object
  2847. * @pmk : pmk info to clear
  2848. *
  2849. * Return : None
  2850. */
  2851. void wlan_mlme_clear_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2852. struct mlme_pmk_info *pmk);
  2853. #else
  2854. static inline void
  2855. wlan_mlme_set_sae_single_pmk_bss_cap(struct wlan_objmgr_psoc *psoc,
  2856. uint8_t vdev_id, bool val)
  2857. {
  2858. }
  2859. static inline
  2860. bool wlan_mlme_is_sae_single_pmk_enabled(struct wlan_objmgr_psoc *psoc)
  2861. {
  2862. return false;
  2863. }
  2864. static inline void
  2865. wlan_mlme_update_sae_single_pmk(struct wlan_objmgr_vdev *vdev,
  2866. struct mlme_pmk_info *sae_single_pmk)
  2867. {
  2868. }
  2869. static inline void
  2870. wlan_mlme_get_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2871. struct wlan_mlme_sae_single_pmk *pmksa)
  2872. {
  2873. }
  2874. static inline
  2875. void wlan_mlme_clear_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2876. struct mlme_pmk_info *pmk)
  2877. {
  2878. }
  2879. #endif
  2880. /**
  2881. * mlme_get_roam_fail_reason_str() - Get fail string from enum
  2882. * WMI_ROAM_FAIL_REASON_ID
  2883. * @result: Roam fail reason
  2884. *
  2885. * Return: Meaningful string from enum
  2886. */
  2887. char *mlme_get_roam_fail_reason_str(uint32_t result);
  2888. /**
  2889. * mlme_get_sub_reason_str() - Get roam trigger sub reason from enum
  2890. * WMI_ROAM_TRIGGER_SUB_REASON_ID
  2891. * @sub_reason: Sub reason value
  2892. *
  2893. * Return: Meaningful string from enum WMI_ROAM_TRIGGER_SUB_REASON_ID
  2894. */
  2895. char *mlme_get_sub_reason_str(uint32_t sub_reason);
  2896. /**
  2897. * wlan_mlme_get_mgmt_max_retry() - Get the
  2898. * max mgmt retry
  2899. * @psoc: pointer to psoc object
  2900. * @max_retry: output pointer to hold user config
  2901. *
  2902. * Return: QDF Status
  2903. */
  2904. QDF_STATUS
  2905. wlan_mlme_get_mgmt_max_retry(struct wlan_objmgr_psoc *psoc,
  2906. uint8_t *max_retry);
  2907. /**
  2908. * wlan_mlme_get_mgmt_6ghz_rate_support() - Get status of HE rates for
  2909. * 6GHz mgmt frames
  2910. * @psoc: pointer to psoc object
  2911. * @enable_he_mcs0_for_6ghz_mgmt: pointer to check for HE rates support
  2912. *
  2913. * Return: QDF Status
  2914. */
  2915. QDF_STATUS
  2916. wlan_mlme_get_mgmt_6ghz_rate_support(struct wlan_objmgr_psoc *psoc,
  2917. bool *enable_he_mcs0_for_6ghz_mgmt);
  2918. /**
  2919. * wlan_mlme_get_status_ring_buffer() - Get the
  2920. * status of ring buffer
  2921. * @psoc: pointer to psoc object
  2922. * @enable_ring_buffer: output pointer to point the configured value of
  2923. * ring buffer
  2924. *
  2925. * Return: QDF_STATUS
  2926. */
  2927. QDF_STATUS
  2928. wlan_mlme_get_status_ring_buffer(struct wlan_objmgr_psoc *psoc,
  2929. bool *enable_ring_buffer);
  2930. /**
  2931. * wlan_mlme_get_peer_unmap_conf() - Indicate if peer unmap confirmation
  2932. * support is enabled or disabled
  2933. * @psoc: pointer to psoc object
  2934. *
  2935. * Return: true if peer unmap confirmation support is enabled, else false
  2936. */
  2937. bool wlan_mlme_get_peer_unmap_conf(struct wlan_objmgr_psoc *psoc);
  2938. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  2939. /**
  2940. * wlan_mlme_get_roam_reason_vsie_status() - Indicate if roam reason
  2941. * vsie is enabled or disabled
  2942. * @psoc: pointer to psoc object
  2943. * @roam_reason_vsie_enabled: pointer to hold value of roam reason
  2944. * vsie
  2945. *
  2946. * Return: QDF_STATUS
  2947. */
  2948. QDF_STATUS
  2949. wlan_mlme_get_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  2950. uint8_t *roam_reason_vsie_enabled);
  2951. /**
  2952. * wlan_mlme_set_roam_reason_vsie_status() - Update roam reason vsie status
  2953. * @psoc: pointer to psoc object
  2954. * @roam_reason_vsie_enabled: value of roam reason vsie
  2955. *
  2956. * Return: QDF_STATUS
  2957. */
  2958. QDF_STATUS
  2959. wlan_mlme_set_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  2960. uint8_t roam_reason_vsie_enabled);
  2961. /**
  2962. * wlan_mlme_get_roaming_triggers - Get the roaming triggers bitmap
  2963. * @psoc: Pointer to PSOC object
  2964. *
  2965. * Return: Roaming triggers value
  2966. */
  2967. uint32_t wlan_mlme_get_roaming_triggers(struct wlan_objmgr_psoc *psoc);
  2968. /**
  2969. * wlan_mlme_get_roaming_offload() - Get roaming offload setting
  2970. * @psoc: pointer to psoc object
  2971. * @val: Pointer to enable/disable roaming offload
  2972. *
  2973. * Return: QDF Status
  2974. */
  2975. QDF_STATUS
  2976. wlan_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  2977. bool *val);
  2978. /**
  2979. * wlan_mlme_get_enable_disconnect_roam_offload() - Get emergency roaming
  2980. * Enable/Disable status during deauth/disassoc
  2981. * @psoc: pointer to psoc object
  2982. * @val: Pointer to emergency roaming Enable/Disable status
  2983. * during deauth/disassoc
  2984. *
  2985. * Return: QDF Status
  2986. */
  2987. QDF_STATUS
  2988. wlan_mlme_get_enable_disconnect_roam_offload(struct wlan_objmgr_psoc *psoc,
  2989. bool *val);
  2990. /**
  2991. * wlan_mlme_get_enable_idle_roam() - Get Enable/Disable idle roaming status
  2992. * @psoc: pointer to psoc object
  2993. * @val: Pointer to Enable/Disable idle roaming status
  2994. *
  2995. * Return: QDF Status
  2996. */
  2997. QDF_STATUS
  2998. wlan_mlme_get_enable_idle_roam(struct wlan_objmgr_psoc *psoc, bool *val);
  2999. /**
  3000. * wlan_mlme_get_idle_roam_rssi_delta() - Get idle roam rssi delta
  3001. * @psoc: pointer to psoc object
  3002. * @val: Pointer to idle roam rssi delta
  3003. *
  3004. * Return: QDF Status
  3005. */
  3006. QDF_STATUS
  3007. wlan_mlme_get_idle_roam_rssi_delta(struct wlan_objmgr_psoc *psoc,
  3008. uint32_t *val);
  3009. /**
  3010. * wlan_mlme_get_roam_info_stats_num() - Get roam information statistics number
  3011. * @psoc: pointer to psoc object
  3012. * @val: Pointer to roam_info_stats_num
  3013. *
  3014. * Return: QDF Status
  3015. */
  3016. QDF_STATUS
  3017. wlan_mlme_get_roam_info_stats_num(struct wlan_objmgr_psoc *psoc, uint32_t *val);
  3018. /**
  3019. * wlan_mlme_get_idle_roam_inactive_time() - Get idle roam inactive time
  3020. * @psoc: pointer to psoc object
  3021. * @val: Pointer to idle roam inactive time
  3022. *
  3023. * Return: QDF Status
  3024. */
  3025. QDF_STATUS
  3026. wlan_mlme_get_idle_roam_inactive_time(struct wlan_objmgr_psoc *psoc,
  3027. uint32_t *val);
  3028. /**
  3029. * wlan_mlme_get_idle_data_packet_count() - Get idle data packet count
  3030. * @psoc: pointer to psoc object
  3031. * @val: Pointer to idle data packet count
  3032. *
  3033. * Return: QDF Status
  3034. */
  3035. QDF_STATUS
  3036. wlan_mlme_get_idle_data_packet_count(struct wlan_objmgr_psoc *psoc,
  3037. uint32_t *val);
  3038. /**
  3039. * wlan_mlme_get_idle_roam_min_rssi() - Get idle roam min rssi
  3040. * @psoc: pointer to psoc object
  3041. * @val: Pointer to idle roam min rssi
  3042. *
  3043. * Return: QDF Status
  3044. */
  3045. QDF_STATUS
  3046. wlan_mlme_get_idle_roam_min_rssi(struct wlan_objmgr_psoc *psoc, uint32_t *val);
  3047. /**
  3048. * wlan_mlme_get_idle_roam_band() - Get idle roam band
  3049. * @psoc: pointer to psoc object
  3050. * @val: Pointer to idle roam band
  3051. *
  3052. * Return: QDF Status
  3053. */
  3054. QDF_STATUS
  3055. wlan_mlme_get_idle_roam_band(struct wlan_objmgr_psoc *psoc, uint32_t *val);
  3056. /**
  3057. * wlan_mlme_get_self_bss_roam() - Get self bss roam enable status
  3058. * @psoc: pointer to psoc object
  3059. * @enable_self_bss_roam: Pointer to self bss roam enable status
  3060. *
  3061. * Return: QDF Status
  3062. */
  3063. QDF_STATUS
  3064. wlan_mlme_get_self_bss_roam(struct wlan_objmgr_psoc *psoc,
  3065. uint8_t *enable_self_bss_roam);
  3066. #else
  3067. static inline QDF_STATUS
  3068. wlan_mlme_get_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  3069. uint8_t *roam_reason_vsie_enable)
  3070. {
  3071. return QDF_STATUS_E_FAILURE;
  3072. }
  3073. static inline QDF_STATUS
  3074. wlan_mlme_set_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  3075. uint8_t roam_reason_vsie_enable)
  3076. {
  3077. return QDF_STATUS_E_FAILURE;
  3078. }
  3079. static inline
  3080. uint32_t wlan_mlme_get_roaming_triggers(struct wlan_objmgr_psoc *psoc)
  3081. {
  3082. return 0xFFFF;
  3083. }
  3084. static inline QDF_STATUS
  3085. wlan_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  3086. bool *val)
  3087. {
  3088. *val = false;
  3089. return QDF_STATUS_SUCCESS;
  3090. }
  3091. #endif
  3092. /**
  3093. * wlan_mlme_set_ft_over_ds() - Update ft_over_ds
  3094. * @psoc: pointer to psoc object
  3095. * @ft_over_ds_enable: value of ft_over_ds
  3096. *
  3097. * Return: QDF_STATUS
  3098. */
  3099. QDF_STATUS wlan_mlme_set_ft_over_ds(struct wlan_objmgr_psoc *psoc,
  3100. uint8_t ft_over_ds_enable);
  3101. /**
  3102. * wlan_mlme_get_dfs_chan_ageout_time() - Get the DFS Channel ageout time
  3103. * @psoc: pointer to psoc object
  3104. * @dfs_chan_ageout_time: output pointer to hold configured value of DFS
  3105. * Channel ageout time
  3106. *
  3107. * Return: QDF Status
  3108. */
  3109. QDF_STATUS
  3110. wlan_mlme_get_dfs_chan_ageout_time(struct wlan_objmgr_psoc *psoc,
  3111. uint8_t *dfs_chan_ageout_time);
  3112. #ifdef WLAN_FEATURE_SAE
  3113. /**
  3114. * wlan_mlme_get_sae_assoc_retry_count() - Get the sae assoc retry count
  3115. * @psoc: pointer to psoc object
  3116. * @retry_count: assoc retry count
  3117. *
  3118. * Return: QDF Status
  3119. */
  3120. QDF_STATUS
  3121. wlan_mlme_get_sae_assoc_retry_count(struct wlan_objmgr_psoc *psoc,
  3122. uint8_t *retry_count);
  3123. /**
  3124. * wlan_mlme_get_sae_auth_retry_count() - Get the sae auth retry count
  3125. * @psoc: pointer to psoc object
  3126. * @retry_count: auth retry count
  3127. *
  3128. * Return: QDF Status
  3129. */
  3130. QDF_STATUS
  3131. wlan_mlme_get_sae_auth_retry_count(struct wlan_objmgr_psoc *psoc,
  3132. uint8_t *retry_count);
  3133. /**
  3134. * wlan_mlme_get_sae_roam_auth_retry_count() - Get the sae roam auth retry count
  3135. * @psoc: pointer to psoc object
  3136. * @retry_count: auth retry count
  3137. *
  3138. * Return: QDF Status
  3139. */
  3140. QDF_STATUS
  3141. wlan_mlme_get_sae_roam_auth_retry_count(struct wlan_objmgr_psoc *psoc,
  3142. uint8_t *retry_count);
  3143. #else
  3144. static inline QDF_STATUS
  3145. wlan_mlme_get_sae_assoc_retry_count(struct wlan_objmgr_psoc *psoc,
  3146. uint8_t *retry_count)
  3147. {
  3148. *retry_count = 0;
  3149. return QDF_STATUS_SUCCESS;
  3150. }
  3151. static inline QDF_STATUS
  3152. wlan_mlme_get_sae_auth_retry_count(struct wlan_objmgr_psoc *psoc,
  3153. uint8_t *retry_count)
  3154. {
  3155. *retry_count = 0;
  3156. return QDF_STATUS_SUCCESS;
  3157. }
  3158. static inline QDF_STATUS
  3159. wlan_mlme_get_sae_roam_auth_retry_count(struct wlan_objmgr_psoc *psoc,
  3160. uint8_t *retry_count)
  3161. {
  3162. *retry_count = 0;
  3163. return QDF_STATUS_SUCCESS;
  3164. }
  3165. #endif
  3166. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  3167. /**
  3168. * wlan_mlme_get_dual_sta_roaming_enabled - API to get if the dual sta
  3169. * roaming support is enabled.
  3170. * @psoc: Pointer to global psoc object
  3171. *
  3172. * Return: True if dual sta roaming feature is enabled else return false
  3173. */
  3174. bool
  3175. wlan_mlme_get_dual_sta_roaming_enabled(struct wlan_objmgr_psoc *psoc);
  3176. #else
  3177. static inline bool
  3178. wlan_mlme_get_dual_sta_roaming_enabled(struct wlan_objmgr_psoc *psoc)
  3179. {
  3180. return false;
  3181. }
  3182. #endif
  3183. /**
  3184. * mlme_store_fw_scan_channels - Update the valid channel list to mlme.
  3185. * @psoc: Pointer to global psoc object
  3186. * @chan_list: Source channel list pointer
  3187. *
  3188. * Currently the channel list is saved to wma_handle to be updated in the
  3189. * PCL command. This cannot be accessed at target_if while sending vdev
  3190. * set pcl command. So save the channel list to mlme.
  3191. *
  3192. * Return: QDF_STATUS
  3193. */
  3194. QDF_STATUS
  3195. mlme_store_fw_scan_channels(struct wlan_objmgr_psoc *psoc,
  3196. tSirUpdateChanList *chan_list);
  3197. /**
  3198. * mlme_get_fw_scan_channels - Copy the saved valid channel
  3199. * list to the provided buffer
  3200. * @psoc: Pointer to global psoc object
  3201. * @freq_list: Pointer to the frequency list buffer to be filled
  3202. * @saved_num_chan: Number of channels filled
  3203. *
  3204. * Return: QDF_STATUS
  3205. */
  3206. QDF_STATUS mlme_get_fw_scan_channels(struct wlan_objmgr_psoc *psoc,
  3207. uint32_t *freq_list,
  3208. uint8_t *saved_num_chan);
  3209. /**
  3210. * wlan_mlme_get_roam_scan_offload_enabled() - Roam scan offload enable or not
  3211. * @psoc: pointer to psoc object
  3212. * @val: Pointer to the value which will be filled for the caller
  3213. *
  3214. * Return: QDF Status
  3215. */
  3216. QDF_STATUS
  3217. wlan_mlme_get_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc,
  3218. bool *val);
  3219. /**
  3220. * wlan_mlme_get_roam_bmiss_final_bcnt() - Get roam bmiss final count
  3221. * @psoc: pointer to psoc object
  3222. * @val: Pointer to the value which will be filled for the caller
  3223. *
  3224. * Return: QDF Status
  3225. */
  3226. QDF_STATUS
  3227. wlan_mlme_get_roam_bmiss_final_bcnt(struct wlan_objmgr_psoc *psoc,
  3228. uint8_t *val);
  3229. /**
  3230. * wlan_mlme_get_roam_bmiss_first_bcnt() - Get roam bmiss first count
  3231. * @psoc: pointer to psoc object
  3232. * @val: Pointer to the value which will be filled for the caller
  3233. *
  3234. * Return: QDF Status
  3235. */
  3236. QDF_STATUS
  3237. wlan_mlme_get_roam_bmiss_first_bcnt(struct wlan_objmgr_psoc *psoc,
  3238. uint8_t *val);
  3239. /**
  3240. * wlan_mlme_get_bmiss_timeout_on_wakeup() - Get bmiss timeout
  3241. * @psoc: pointer to psoc object
  3242. * @val: Pointer to the value which will be filled for the caller
  3243. *
  3244. * Return: QDF Status
  3245. */
  3246. QDF_STATUS
  3247. wlan_mlme_get_bmiss_timeout_on_wakeup(struct wlan_objmgr_psoc *psoc,
  3248. uint8_t *val);
  3249. /**
  3250. * wlan_mlme_get_bmiss_timeout_on_sleep() - Get roam conbmiss timeout
  3251. * @psoc: pointer to psoc object
  3252. * @val: Pointer to the value which will be filled for the caller
  3253. *
  3254. * Return: QDF Status
  3255. */
  3256. QDF_STATUS
  3257. wlan_mlme_get_bmiss_timeout_on_sleep(struct wlan_objmgr_psoc *psoc,
  3258. uint8_t *val);
  3259. /**
  3260. * wlan_mlme_adaptive_11r_enabled() - check if adaptive 11r feature is enaled
  3261. * or not
  3262. * @psoc: pointer to psoc object
  3263. *
  3264. * Return: bool
  3265. */
  3266. #ifdef WLAN_ADAPTIVE_11R
  3267. bool wlan_mlme_adaptive_11r_enabled(struct wlan_objmgr_psoc *psoc);
  3268. #else
  3269. static inline bool wlan_mlme_adaptive_11r_enabled(struct wlan_objmgr_psoc *psoc)
  3270. {
  3271. return false;
  3272. }
  3273. #endif
  3274. /**
  3275. * wlan_mlme_get_mawc_enabled() - Get mawc enabled status
  3276. * @psoc: pointer to psoc object
  3277. * @val: Pointer to the value which will be filled for the caller
  3278. *
  3279. * Return: QDF Status
  3280. */
  3281. QDF_STATUS
  3282. wlan_mlme_get_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  3283. /**
  3284. * wlan_mlme_get_mawc_roam_enabled() - Get mawc roam enabled status
  3285. * @psoc: pointer to psoc object
  3286. * @val: Pointer to the value which will be filled for the caller
  3287. *
  3288. * Return: QDF Status
  3289. */
  3290. QDF_STATUS
  3291. wlan_mlme_get_mawc_roam_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  3292. /**
  3293. * wlan_mlme_get_mawc_roam_traffic_threshold() - Get mawc traffic threshold
  3294. * @psoc: pointer to psoc object
  3295. * @val: Pointer to the value which will be filled for the caller
  3296. *
  3297. * Return: QDF Status
  3298. */
  3299. QDF_STATUS
  3300. wlan_mlme_get_mawc_roam_traffic_threshold(struct wlan_objmgr_psoc *psoc,
  3301. uint32_t *val);
  3302. /**
  3303. * wlan_mlme_get_mawc_roam_ap_rssi_threshold() - Get AP RSSI threshold for
  3304. * MAWC roaming
  3305. * @psoc: pointer to psoc object
  3306. * @val: Pointer to the value which will be filled for the caller
  3307. *
  3308. * Return: QDF Status
  3309. */
  3310. QDF_STATUS
  3311. wlan_mlme_get_mawc_roam_ap_rssi_threshold(struct wlan_objmgr_psoc *psoc,
  3312. uint32_t *val);
  3313. /**
  3314. * wlan_mlme_get_mawc_roam_rssi_high_adjust() - Get high adjustment value
  3315. * for suppressing scan
  3316. * @psoc: pointer to psoc object
  3317. * @val: Pointer to the value which will be filled for the caller
  3318. *
  3319. * Return: QDF Status
  3320. */
  3321. QDF_STATUS
  3322. wlan_mlme_get_mawc_roam_rssi_high_adjust(struct wlan_objmgr_psoc *psoc,
  3323. uint8_t *val);
  3324. /**
  3325. * wlan_mlme_get_mawc_roam_rssi_low_adjust() - Get low adjustment value
  3326. * for suppressing scan
  3327. * @psoc: pointer to psoc object
  3328. * @val: Pointer to the value which will be filled for the caller
  3329. *
  3330. * Return: QDF Status
  3331. */
  3332. QDF_STATUS
  3333. wlan_mlme_get_mawc_roam_rssi_low_adjust(struct wlan_objmgr_psoc *psoc,
  3334. uint8_t *val);
  3335. /**
  3336. * wlan_mlme_get_bss_load_enabled() - Get bss load based roam trigger
  3337. * enabled status
  3338. * @psoc: pointer to psoc object
  3339. * @val: Pointer to the value which will be filled for the caller
  3340. *
  3341. * Return: QDF Status
  3342. */
  3343. QDF_STATUS
  3344. wlan_mlme_get_bss_load_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  3345. /**
  3346. * wlan_mlme_get_bss_load_threshold() - Get bss load threshold
  3347. * @psoc: pointer to psoc object
  3348. * @val: Pointer to the value which will be filled for the caller
  3349. *
  3350. * Return: QDF Status
  3351. */
  3352. QDF_STATUS
  3353. wlan_mlme_get_bss_load_threshold(struct wlan_objmgr_psoc *psoc, uint32_t *val);
  3354. /**
  3355. * wlan_mlme_get_bss_load_sample_time() - Get bss load sample time
  3356. * @psoc: pointer to psoc object
  3357. * @val: Pointer to the value which will be filled for the caller
  3358. *
  3359. * Return: QDF Status
  3360. */
  3361. QDF_STATUS
  3362. wlan_mlme_get_bss_load_sample_time(struct wlan_objmgr_psoc *psoc,
  3363. uint32_t *val);
  3364. /**
  3365. * wlan_mlme_get_bss_load_rssi_threshold_6ghz() - Get bss load RSSI
  3366. * threshold on 6G
  3367. * @psoc: pointer to psoc object
  3368. * @val: Pointer to the value which will be filled for the caller
  3369. *
  3370. * Return: QDF Status
  3371. */
  3372. QDF_STATUS
  3373. wlan_mlme_get_bss_load_rssi_threshold_6ghz(struct wlan_objmgr_psoc *psoc,
  3374. int32_t *val);
  3375. /**
  3376. * wlan_mlme_get_bss_load_rssi_threshold_5ghz() - Get bss load RSSI
  3377. * threshold on 5G
  3378. * @psoc: pointer to psoc object
  3379. * @val: Pointer to the value which will be filled for the caller
  3380. *
  3381. * Return: QDF Status
  3382. */
  3383. QDF_STATUS
  3384. wlan_mlme_get_bss_load_rssi_threshold_5ghz(struct wlan_objmgr_psoc *psoc,
  3385. int32_t *val);
  3386. /**
  3387. * wlan_mlme_get_bss_load_rssi_threshold_24ghz() - Get bss load RSSI
  3388. * threshold on 2.4G
  3389. * @psoc: pointer to psoc object
  3390. * @val: Pointer to the value which will be filled for the caller
  3391. *
  3392. * Return: QDF Status
  3393. */
  3394. QDF_STATUS
  3395. wlan_mlme_get_bss_load_rssi_threshold_24ghz(struct wlan_objmgr_psoc *psoc,
  3396. int32_t *val);
  3397. /**
  3398. * wlan_mlme_check_chan_param_has_dfs() - Get dfs flag based on
  3399. * channel & channel parameters
  3400. * @pdev: pdev object
  3401. * @ch_params: channel parameters
  3402. * @chan_freq: channel frequency in MHz
  3403. *
  3404. * Return: True for dfs
  3405. */
  3406. bool
  3407. wlan_mlme_check_chan_param_has_dfs(struct wlan_objmgr_pdev *pdev,
  3408. struct ch_params *ch_params,
  3409. uint32_t chan_freq);
  3410. /**
  3411. * wlan_mlme_set_usr_disabled_roaming() - Set user config for roaming disable
  3412. * @psoc: pointer to psoc object
  3413. * @val: user config for roaming disable
  3414. *
  3415. * Return: QDF_STATUS
  3416. */
  3417. QDF_STATUS
  3418. wlan_mlme_set_usr_disabled_roaming(struct wlan_objmgr_psoc *psoc, bool val);
  3419. /**
  3420. * wlan_mlme_get_usr_disabled_roaming() - Get user config for roaming disable
  3421. * @psoc: pointer to psoc object
  3422. * @val: user config for roaming disable
  3423. *
  3424. * Return: QDF_STATUS
  3425. */
  3426. QDF_STATUS
  3427. wlan_mlme_get_usr_disabled_roaming(struct wlan_objmgr_psoc *psoc, bool *val);
  3428. /**
  3429. * mlme_get_opr_rate() - get operational rate
  3430. * @vdev: vdev pointer
  3431. * @dst: buffer to get rates set
  3432. * @len: length of the buffer
  3433. *
  3434. * Return: length of the rates set
  3435. */
  3436. qdf_size_t mlme_get_opr_rate(struct wlan_objmgr_vdev *vdev, uint8_t *dst,
  3437. qdf_size_t len);
  3438. /**
  3439. * mlme_set_opr_rate() - set operational rate
  3440. * @vdev: vdev pointer
  3441. * @src: pointer to set operational rate
  3442. * @len: length of operational rate
  3443. *
  3444. * Return: QDF_SUCCESS if success
  3445. */
  3446. QDF_STATUS mlme_set_opr_rate(struct wlan_objmgr_vdev *vdev, uint8_t *src,
  3447. qdf_size_t len);
  3448. /**
  3449. * mlme_get_ext_opr_rate() - get extended operational rate
  3450. * @vdev: vdev pointer
  3451. * @dst: buffer to get rates set
  3452. * @len: length of the buffer
  3453. *
  3454. * Return: length of the rates set
  3455. */
  3456. qdf_size_t mlme_get_ext_opr_rate(struct wlan_objmgr_vdev *vdev, uint8_t *dst,
  3457. qdf_size_t len);
  3458. /**
  3459. * mlme_set_ext_opr_rate() - set extended operational rate
  3460. * @vdev: vdev pointer
  3461. * @src: pointer to set extended operational rate
  3462. * @len: length of extended operational rate
  3463. *
  3464. * Return: QDF_SUCCESS if success
  3465. */
  3466. QDF_STATUS mlme_set_ext_opr_rate(struct wlan_objmgr_vdev *vdev, uint8_t *src,
  3467. qdf_size_t len);
  3468. /**
  3469. * mlme_clear_ext_opr_rate() - clear extended operational rate
  3470. * @vdev: vdev pointer
  3471. *
  3472. * Return: QDF_SUCCESS if success
  3473. */
  3474. QDF_STATUS mlme_clear_ext_opr_rate(struct wlan_objmgr_vdev *vdev);
  3475. /**
  3476. * mlme_get_mcs_rate() - get MCS based rate
  3477. * @vdev: vdev pointer
  3478. * @dst: buffer to get rates set
  3479. * @len: length of the buffer
  3480. *
  3481. * Return: length of the rates set
  3482. */
  3483. qdf_size_t mlme_get_mcs_rate(struct wlan_objmgr_vdev *vdev, uint8_t *dst,
  3484. qdf_size_t len);
  3485. /**
  3486. * mlme_set_mcs_rate() - set MCS based rate
  3487. * @vdev: vdev pointer
  3488. * @src: pointer to set MCS based rate
  3489. * @len: length of MCS based rate
  3490. *
  3491. * Return: QDF_SUCCESS if success
  3492. */
  3493. QDF_STATUS mlme_set_mcs_rate(struct wlan_objmgr_vdev *vdev, uint8_t *src,
  3494. qdf_size_t len);
  3495. /**
  3496. * mlme_clear_mcs_rate() - clear MCS based rate
  3497. * @vdev: vdev pointer
  3498. *
  3499. * Return: QDF_SUCCESS if success
  3500. */
  3501. QDF_STATUS mlme_clear_mcs_rate(struct wlan_objmgr_vdev *vdev);
  3502. /**
  3503. * wlan_mlme_is_sta_mon_conc_supported() - Check if STA + Monitor mode
  3504. * concurrency is supported
  3505. * @psoc: pointer to psoc object
  3506. *
  3507. * Return: True if supported
  3508. */
  3509. bool wlan_mlme_is_sta_mon_conc_supported(struct wlan_objmgr_psoc *psoc);
  3510. /**
  3511. * wlan_mlme_get_phy_max_freq_range() - Get phy supported max channel
  3512. * frequency range
  3513. * @psoc: psoc for country information
  3514. * @low_2ghz_chan: 2.4 GHz low channel frequency
  3515. * @high_2ghz_chan: 2.4 GHz high channel frequency
  3516. * @low_5ghz_chan: 5 GHz low channel frequency
  3517. * @high_5ghz_chan: 5 GHz high channel frequency
  3518. *
  3519. * Return: QDF status
  3520. */
  3521. QDF_STATUS wlan_mlme_get_phy_max_freq_range(struct wlan_objmgr_psoc *psoc,
  3522. uint32_t *low_2ghz_chan,
  3523. uint32_t *high_2ghz_chan,
  3524. uint32_t *low_5ghz_chan,
  3525. uint32_t *high_5ghz_chan);
  3526. /**
  3527. * wlan_mlme_is_multipass_sap() -Get multipass sap support
  3528. * @psoc: psoc pointer
  3529. *
  3530. * Return: True, if FW support multipass support.
  3531. */
  3532. bool wlan_mlme_is_multipass_sap(struct wlan_objmgr_psoc *psoc);
  3533. #ifdef FEATURE_WDS
  3534. /**
  3535. * wlan_mlme_get_wds_mode() - Check wds mode supported
  3536. * @psoc: pointer to psoc object
  3537. *
  3538. * Return: supported wds mode
  3539. */
  3540. enum wlan_wds_mode
  3541. wlan_mlme_get_wds_mode(struct wlan_objmgr_psoc *psoc);
  3542. #else
  3543. static inline enum wlan_wds_mode
  3544. wlan_mlme_get_wds_mode(struct wlan_objmgr_psoc *psoc)
  3545. {
  3546. return WLAN_WDS_MODE_DISABLED;
  3547. }
  3548. #endif
  3549. #ifdef WLAN_SUPPORT_TWT
  3550. /**
  3551. * mlme_is_twt_enabled() - Get if TWT is enabled via ini.
  3552. * @psoc: pointer to psoc object
  3553. *
  3554. * Return: True if TWT is enabled else false.
  3555. */
  3556. bool
  3557. mlme_is_twt_enabled(struct wlan_objmgr_psoc *psoc);
  3558. #else
  3559. static inline bool
  3560. mlme_is_twt_enabled(struct wlan_objmgr_psoc *psoc)
  3561. {
  3562. return false;
  3563. }
  3564. #endif /* WLAN_SUPPORT_TWT */
  3565. /**
  3566. * wlan_mlme_is_local_tpe_pref() - Get preference to use local TPE or
  3567. * regulatory TPE values
  3568. * @psoc: pointer to psoc object
  3569. *
  3570. * Return: True if there is local preference, false if there is regulatory
  3571. * preference
  3572. */
  3573. bool wlan_mlme_is_local_tpe_pref(struct wlan_objmgr_psoc *psoc);
  3574. /**
  3575. * wlan_mlme_skip_tpe() - Get preference to not consider TPE in 2G/5G case
  3576. *
  3577. * @psoc: pointer to psoc object
  3578. *
  3579. * Return: True if host should not consider TPE IE in TX power calculation when
  3580. * operating in 2G/5G bands, false if host should always consider TPE IE values
  3581. */
  3582. bool wlan_mlme_skip_tpe(struct wlan_objmgr_psoc *psoc);
  3583. /**
  3584. * wlan_mlme_is_data_stall_recovery_fw_supported() - Check if data stall
  3585. * recovery is supported by fw
  3586. * @psoc: pointer to psoc object
  3587. *
  3588. * Return: True if supported
  3589. */
  3590. bool
  3591. wlan_mlme_is_data_stall_recovery_fw_supported(struct wlan_objmgr_psoc *psoc);
  3592. /**
  3593. * mlme_cfg_get_eht_caps() - Get the EHT capability info
  3594. * @psoc: pointer to psoc object
  3595. * @eht_cap: Caps that needs to be filled.
  3596. *
  3597. * Return: QDF Status
  3598. */
  3599. QDF_STATUS mlme_cfg_get_eht_caps(struct wlan_objmgr_psoc *psoc,
  3600. tDot11fIEeht_cap *eht_cap);
  3601. #ifdef WLAN_FEATURE_11BE_MLO
  3602. /**
  3603. * wlan_mlme_get_sta_mlo_conn_max_num() - get max number of links that sta mlo
  3604. * connection can support
  3605. * @psoc: pointer to psoc object
  3606. *
  3607. * Return: max number of links that sta mlo connection can support
  3608. */
  3609. uint8_t wlan_mlme_get_sta_mlo_conn_max_num(struct wlan_objmgr_psoc *psoc);
  3610. /**
  3611. * wlan_mlme_set_sta_mlo_conn_max_num() - set max number of links that sta mlo
  3612. * connection can support
  3613. * @psoc: pointer to psoc object
  3614. * @value: value to set
  3615. *
  3616. * Return: QDF Status
  3617. */
  3618. QDF_STATUS wlan_mlme_set_sta_mlo_conn_max_num(struct wlan_objmgr_psoc *psoc,
  3619. uint8_t value);
  3620. /**
  3621. * wlan_mlme_get_sta_mlo_conn_band_bmp() - get band bitmap that sta mlo
  3622. * connection can support
  3623. * @psoc: pointer to psoc object
  3624. *
  3625. * Return: band bitmap that sta mlo connection can support
  3626. */
  3627. uint8_t wlan_mlme_get_sta_mlo_conn_band_bmp(struct wlan_objmgr_psoc *psoc);
  3628. /**
  3629. * wlan_mlme_set_sta_mlo_simultaneous_links() - set mlo simultaneous links
  3630. * @psoc: pointer to psoc object
  3631. * @value: value to set
  3632. *
  3633. * Return: QDF Status
  3634. */
  3635. QDF_STATUS
  3636. wlan_mlme_set_sta_mlo_simultaneous_links(struct wlan_objmgr_psoc *psoc,
  3637. uint8_t value);
  3638. /**
  3639. * wlan_mlme_get_sta_mlo_simultaneous_links() - get mlo simultaneous links
  3640. * @psoc: pointer to psoc object
  3641. *
  3642. * Return: number of links
  3643. */
  3644. uint8_t wlan_mlme_get_sta_mlo_simultaneous_links(struct wlan_objmgr_psoc *psoc);
  3645. /**
  3646. * wlan_mlme_set_sta_mlo_conn_band_bmp() - set band bitmap that sta mlo
  3647. * connection can support
  3648. * @psoc: pointer to psoc object
  3649. * @value: value to set
  3650. *
  3651. * Return: QDF Status
  3652. */
  3653. QDF_STATUS wlan_mlme_set_sta_mlo_conn_band_bmp(struct wlan_objmgr_psoc *psoc,
  3654. uint8_t value);
  3655. #else
  3656. static inline QDF_STATUS
  3657. wlan_mlme_set_sta_mlo_conn_max_num(struct wlan_objmgr_psoc *psoc,
  3658. uint8_t value)
  3659. {
  3660. return QDF_STATUS_SUCCESS;
  3661. }
  3662. static inline uint8_t
  3663. wlan_mlme_get_sta_mlo_conn_max_num(struct wlan_objmgr_psoc *psoc)
  3664. {
  3665. return 0;
  3666. }
  3667. static inline QDF_STATUS
  3668. wlan_mlme_set_sta_mlo_simultaneous_links(struct wlan_objmgr_psoc *psoc,
  3669. uint8_t value)
  3670. {
  3671. return QDF_STATUS_SUCCESS;
  3672. }
  3673. static inline QDF_STATUS
  3674. wlan_mlme_set_sta_mlo_conn_band_bmp(struct wlan_objmgr_psoc *psoc,
  3675. uint8_t value)
  3676. {
  3677. return QDF_STATUS_SUCCESS;
  3678. }
  3679. #endif
  3680. /**
  3681. * wlan_mlme_set_ba_2k_jump_iot_ap() - Set a flag if ba 2k jump IOT AP is found
  3682. * @vdev: vdev pointer
  3683. * @found: Carries the value true if ba 2k jump IOT AP is found
  3684. *
  3685. * Return: QDF Status
  3686. */
  3687. QDF_STATUS
  3688. wlan_mlme_set_ba_2k_jump_iot_ap(struct wlan_objmgr_vdev *vdev, bool found);
  3689. /**
  3690. * wlan_mlme_is_ba_2k_jump_iot_ap() - Check if ba 2k jump IOT AP is found
  3691. * @vdev: vdev pointer
  3692. *
  3693. * Return: true if ba 2k jump IOT AP is found
  3694. */
  3695. bool
  3696. wlan_mlme_is_ba_2k_jump_iot_ap(struct wlan_objmgr_vdev *vdev);
  3697. /**
  3698. * wlan_mlme_set_last_delba_sent_time() - Cache the last delba sent ts
  3699. * @vdev: vdev pointer
  3700. * @delba_sent_time: Last delba sent timestamp
  3701. *
  3702. * Return: QDF Status
  3703. */
  3704. QDF_STATUS
  3705. wlan_mlme_set_last_delba_sent_time(struct wlan_objmgr_vdev *vdev,
  3706. qdf_time_t delba_sent_time);
  3707. /**
  3708. * wlan_mlme_get_last_delba_sent_time() - Get the last delba sent ts
  3709. * @vdev: vdev pointer
  3710. *
  3711. * Return: Last delba timestamp if cached, 0 otherwise
  3712. */
  3713. qdf_time_t
  3714. wlan_mlme_get_last_delba_sent_time(struct wlan_objmgr_vdev *vdev);
  3715. /**
  3716. * mlme_set_user_ps() - Set the PS user config
  3717. * @psoc: Pointer to psoc object
  3718. * @vdev_id: vdev id
  3719. * @ps_enable: User PS enable
  3720. *
  3721. * Return: QDF_STATUS
  3722. */
  3723. QDF_STATUS mlme_set_user_ps(struct wlan_objmgr_psoc *psoc, uint8_t vdev_id,
  3724. bool ps_enable);
  3725. /**
  3726. * mlme_get_user_ps() - Set the user ps flag
  3727. * @psoc: Pointer to psoc object
  3728. * @vdev_id: vdev id
  3729. *
  3730. * Return: True if user_ps flag is set
  3731. */
  3732. bool mlme_get_user_ps(struct wlan_objmgr_psoc *psoc, uint8_t vdev_id);
  3733. #ifdef WLAN_FEATURE_P2P_P2P_STA
  3734. /**
  3735. * wlan_mlme_get_p2p_p2p_conc_support() - Get p2p+p2p conc support
  3736. * @psoc: pointer to psoc object
  3737. *
  3738. * Return: Success/failure
  3739. */
  3740. bool
  3741. wlan_mlme_get_p2p_p2p_conc_support(struct wlan_objmgr_psoc *psoc);
  3742. #else
  3743. static inline bool
  3744. wlan_mlme_get_p2p_p2p_conc_support(struct wlan_objmgr_psoc *psoc)
  3745. {
  3746. return false;
  3747. }
  3748. #endif
  3749. /**
  3750. * mlme_get_vht_ch_width() - get vht channel width of fw capability
  3751. *
  3752. * Return: vht channel width
  3753. */
  3754. enum phy_ch_width mlme_get_vht_ch_width(void);
  3755. /**
  3756. * wlan_mlme_get_mgmt_hw_tx_retry_count() - Get mgmt frame hw tx retry count
  3757. * @psoc: pointer to psoc object
  3758. * @frm_type: frame type of the query
  3759. *
  3760. * Return: hw tx retry count
  3761. */
  3762. uint8_t
  3763. wlan_mlme_get_mgmt_hw_tx_retry_count(struct wlan_objmgr_psoc *psoc,
  3764. enum mlme_cfg_frame_type frm_type);
  3765. /**
  3766. * wlan_mlme_get_tx_retry_multiplier() - Get the tx retry multiplier percentage
  3767. * @psoc: pointer to psoc object
  3768. * @tx_retry_multiplier: pointer to hold user config value of
  3769. * tx_retry_multiplier
  3770. *
  3771. * Return: QDF Status
  3772. */
  3773. QDF_STATUS
  3774. wlan_mlme_get_tx_retry_multiplier(struct wlan_objmgr_psoc *psoc,
  3775. uint32_t *tx_retry_multiplier);
  3776. /**
  3777. * wlan_mlme_get_channel_bonding_5ghz - Get the channel bonding
  3778. * val for 5ghz freq
  3779. * @psoc: pointer to psoc object
  3780. * @value: pointer to the value which will be filled for the caller
  3781. *
  3782. * Return: QDF Status
  3783. */
  3784. QDF_STATUS
  3785. wlan_mlme_get_channel_bonding_5ghz(struct wlan_objmgr_psoc *psoc,
  3786. uint32_t *value);
  3787. /**
  3788. * wlan_mlme_update_ratemask_params() - Update ratemask params
  3789. *
  3790. * @vdev: pointer to vdev object
  3791. * @num_ratemask: number of rate masks
  3792. * @rate_params: pointer to ratemask structure
  3793. *
  3794. * Return: QDF Status
  3795. */
  3796. QDF_STATUS
  3797. wlan_mlme_update_ratemask_params(struct wlan_objmgr_vdev *vdev,
  3798. uint8_t num_ratemask,
  3799. struct config_ratemask_params *rate_params);
  3800. /**
  3801. * wlan_mlme_is_channel_valid() - validate channel frequency
  3802. * @psoc: psoc object manager
  3803. * @chan_freq: channel frequency
  3804. *
  3805. * This function validates channel frequency present in valid channel
  3806. * list or not.
  3807. *
  3808. * Return: true or false
  3809. */
  3810. bool wlan_mlme_is_channel_valid(struct wlan_objmgr_psoc *psoc,
  3811. uint32_t chan_freq);
  3812. #ifdef WLAN_FEATURE_MCC_QUOTA
  3813. /**
  3814. * wlan_mlme_set_user_mcc_quota() - set the user mcc quota in mlme
  3815. * @psoc: pointer to psoc object
  3816. * @quota: pointer to user set mcc quota object
  3817. *
  3818. * Return: QDF Status
  3819. */
  3820. QDF_STATUS wlan_mlme_set_user_mcc_quota(struct wlan_objmgr_psoc *psoc,
  3821. struct wlan_user_mcc_quota *quota);
  3822. /**
  3823. * wlan_mlme_get_user_mcc_quota() - Get the user mcc quota from mlme
  3824. * @psoc: pointer to psoc object
  3825. * @quota: pointer to user set mcc quota object
  3826. *
  3827. * Return: QDF Status
  3828. */
  3829. QDF_STATUS wlan_mlme_get_user_mcc_quota(struct wlan_objmgr_psoc *psoc,
  3830. struct wlan_user_mcc_quota *quota);
  3831. /**
  3832. * wlan_mlme_get_user_mcc_duty_cycle_percentage() - Get user mcc duty cycle
  3833. * @psoc: pointer to psoc object
  3834. *
  3835. * Return: MCC duty cycle if MCC exists for the user MCC quota, else 0
  3836. */
  3837. uint32_t
  3838. wlan_mlme_get_user_mcc_duty_cycle_percentage(struct wlan_objmgr_psoc *psoc);
  3839. #else
  3840. static inline QDF_STATUS
  3841. wlan_mlme_set_user_mcc_quota(struct wlan_objmgr_psoc *psoc,
  3842. struct wlan_user_mcc_quota *quota)
  3843. {
  3844. return QDF_STATUS_SUCCESS;
  3845. }
  3846. static inline QDF_STATUS
  3847. wlan_mlme_get_user_mcc_quota(struct wlan_objmgr_psoc *psoc,
  3848. struct wlan_user_mcc_quota *quota)
  3849. {
  3850. return QDF_STATUS_E_NOSUPPORT;
  3851. }
  3852. static inline uint32_t
  3853. wlan_mlme_get_user_mcc_duty_cycle_percentage(struct wlan_objmgr_psoc *psoc)
  3854. {
  3855. return 0;
  3856. }
  3857. #endif /* WLAN_FEATURE_MCC_QUOTA */
  3858. /**
  3859. * mlme_get_max_he_mcs_idx() - get max mcs index from he cap information
  3860. * @mcs_ch_width: channel width
  3861. * @hecap_rxmcsnssmap: rx mcs map from he cap
  3862. * @hecap_txmcsnssmap: tx mcs map from he cap
  3863. *
  3864. * Return: the maximum MCS supported
  3865. */
  3866. uint8_t mlme_get_max_he_mcs_idx(enum phy_ch_width mcs_ch_width,
  3867. u_int16_t *hecap_rxmcsnssmap,
  3868. u_int16_t *hecap_txmcsnssmap);
  3869. /**
  3870. * mlme_get_max_vht_mcs_idx() - get max mcs index from vht cap information
  3871. * @rx_vht_mcs_map: rx mcs map from vht cap
  3872. * @tx_vht_mcs_map: tx mcs map from vht cap
  3873. *
  3874. * Return: the maximum MCS supported
  3875. */
  3876. uint8_t mlme_get_max_vht_mcs_idx(u_int16_t rx_vht_mcs_map,
  3877. u_int16_t tx_vht_mcs_map);
  3878. #ifdef WLAN_FEATURE_SON
  3879. /**
  3880. * mlme_save_vdev_max_mcs_idx() - Save max mcs index of vdev
  3881. * @vdev: pointer to vdev object
  3882. * @max_mcs_idx: max_mcs_idx to save
  3883. *
  3884. * Return: QDF Status
  3885. */
  3886. QDF_STATUS mlme_save_vdev_max_mcs_idx(struct wlan_objmgr_vdev *vdev,
  3887. uint8_t max_mcs_idx);
  3888. /**
  3889. * mlme_get_vdev_max_mcs_idx() - Get max mcs index of vdev
  3890. * @vdev: pointer to vdev object
  3891. *
  3892. * Return max mcs index of vdev
  3893. */
  3894. uint8_t mlme_get_vdev_max_mcs_idx(struct wlan_objmgr_vdev *vdev);
  3895. #endif /* WLAN_FEATURE_SON */
  3896. /**
  3897. * wlan_mlme_set_safe_mode_enable() - set safe_mode_enable flag
  3898. * based on value set by user space.
  3899. *
  3900. * @psoc: psoc context
  3901. * @safe_mode_enable: safe mode enabled or not
  3902. *
  3903. * Return: none
  3904. */
  3905. void wlan_mlme_set_safe_mode_enable(struct wlan_objmgr_psoc *psoc,
  3906. bool safe_mode_enable);
  3907. /**
  3908. * wlan_mlme_get_safe_mode_enable() - get safe_mode_enable set by user
  3909. * space
  3910. *
  3911. * @psoc: psoc context
  3912. * @safe_mode_enable: safe mode enabled or not
  3913. *
  3914. * Return: none
  3915. */
  3916. void wlan_mlme_get_safe_mode_enable(struct wlan_objmgr_psoc *psoc,
  3917. bool *safe_mode_enable);
  3918. /**
  3919. * wlan_mlme_get_6g_ap_power_type() - get the power type of the
  3920. * vdev operating on 6GHz.
  3921. *
  3922. * @vdev: vdev context
  3923. *
  3924. * Return: 6g_power_type
  3925. */
  3926. uint32_t wlan_mlme_get_6g_ap_power_type(struct wlan_objmgr_vdev *vdev);
  3927. QDF_STATUS wlan_connect_hw_mode_change_resp(struct wlan_objmgr_pdev *pdev,
  3928. uint8_t vdev_id,
  3929. wlan_cm_id cm_id,
  3930. QDF_STATUS status);
  3931. /**
  3932. * wlan_mlme_get_ch_width_from_phymode() - Convert phymode to ch_width
  3933. * @phy_mode: Phy mode
  3934. *
  3935. * Return: enum phy_ch_width
  3936. */
  3937. enum phy_ch_width
  3938. wlan_mlme_get_ch_width_from_phymode(enum wlan_phymode phy_mode);
  3939. /**
  3940. * wlan_mlme_get_peer_ch_width() - get ch_width of the given peer
  3941. * @psoc: psoc context
  3942. * @mac: peer mac
  3943. *
  3944. * Return: enum phy_ch_width
  3945. */
  3946. enum phy_ch_width
  3947. wlan_mlme_get_peer_ch_width(struct wlan_objmgr_psoc *psoc, uint8_t *mac);
  3948. #if defined(WLAN_FEATURE_SR)
  3949. /**
  3950. * wlan_mlme_get_sr_enable_modes() - get mode for which SR is enabled
  3951. *
  3952. * @psoc: psoc context
  3953. * @val: pointer to hold the value of SR(Spatial Reuse) enable modes
  3954. *
  3955. * Return: void
  3956. */
  3957. void
  3958. wlan_mlme_get_sr_enable_modes(struct wlan_objmgr_psoc *psoc, uint8_t *val);
  3959. #endif
  3960. /**
  3961. * wlan_mlme_set_edca_pifs_param() - set edca/pifs param for ll sap
  3962. * @ep: pointer to wlan_edca_pifs_param_ie
  3963. * @type: edca_param_type
  3964. *
  3965. * Return: None
  3966. */
  3967. void
  3968. wlan_mlme_set_edca_pifs_param(struct wlan_edca_pifs_param_ie *ep,
  3969. enum host_edca_param_type type);
  3970. /**
  3971. * wlan_mlme_stats_get_periodic_display_time() - get display time
  3972. * @psoc: pointer to psoc object
  3973. * @periodic_display_time: buffer to hold value
  3974. *
  3975. * Return: QDF Status
  3976. */
  3977. QDF_STATUS
  3978. wlan_mlme_stats_get_periodic_display_time(struct wlan_objmgr_psoc *psoc,
  3979. uint32_t *periodic_display_time);
  3980. /**
  3981. * wlan_mlme_is_bcn_prot_disabled_for_sap() - Is beacon protection config
  3982. * disabled for SAP interface
  3983. *
  3984. * @psoc: pointer to psoc object
  3985. *
  3986. * Return: is beacon protection disabled
  3987. */
  3988. bool
  3989. wlan_mlme_is_bcn_prot_disabled_for_sap(struct wlan_objmgr_psoc *psoc);
  3990. /**
  3991. * wlan_mlme_get_src_addr_from_frame() - Get source address of the frame
  3992. * @frame: frame ptr
  3993. *
  3994. * Extract source mac address of the frame
  3995. *
  3996. * Return: Ptr for extracted src mac address
  3997. *
  3998. */
  3999. uint8_t *
  4000. wlan_mlme_get_src_addr_from_frame(struct element_info *frame);
  4001. /*
  4002. * wlan_mlme_get_sap_ps_with_twt() - power save with twt config enabled/disabled
  4003. * for SAP interface
  4004. *
  4005. * @psoc: pointer to psoc object
  4006. *
  4007. * Return: power save enabled/disabled
  4008. */
  4009. bool
  4010. wlan_mlme_get_sap_ps_with_twt(struct wlan_objmgr_psoc *psoc);
  4011. /**
  4012. * wlan_mlme_get_max_bw() - Get max supported bandwidth
  4013. *
  4014. * Extract max supported bandwidth
  4015. *
  4016. * Return: enum phy_ch_width
  4017. *
  4018. */
  4019. enum phy_ch_width wlan_mlme_get_max_bw(void);
  4020. /**
  4021. * wlan_mlme_get_sta_ch_width() - Get current operating
  4022. * channel width for STA / P2P-CLI mode
  4023. *
  4024. * @vdev: STA / P2P-CLI vdev
  4025. * @ch_width: Returned channel width
  4026. *
  4027. * Return: QDF_STATUS_SUCCESS for success otherwise QDF_STATUS_E_INVAL
  4028. *
  4029. */
  4030. QDF_STATUS wlan_mlme_get_sta_ch_width(struct wlan_objmgr_vdev *vdev,
  4031. enum phy_ch_width *ch_width);
  4032. /**
  4033. * wlan_mlme_set_ul_mu_config() - set ul mu config
  4034. *
  4035. * @psoc: pointer to psoc object
  4036. * @vdev_id : vdev_id
  4037. * @ulmu_disable : ulmu_disable value
  4038. *
  4039. * Return: QDF Status
  4040. */
  4041. QDF_STATUS
  4042. wlan_mlme_set_ul_mu_config(struct wlan_objmgr_psoc *psoc, uint8_t vdev_id,
  4043. uint8_t ulmu_disable);
  4044. #endif /* _WLAN_MLME_API_H_ */