wlan_mlme_api.h 128 KB

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