wlan_mlme_api.h 131 KB

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