wlan_mlme_api.h 133 KB

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