1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992 |
- /*
- * Copyright (c) 2010-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
- *
- * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
- *
- *
- * Permission to use, copy, modify, and/or distribute this software for
- * any purpose with or without fee is hereby granted, provided that the
- * above copyright notice and this permission notice appear in all
- * copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
- /*
- * This file was originally distributed by Qualcomm Atheros, Inc.
- * under proprietary terms before Copyright ownership was assigned
- * to the Linux Foundation.
- */
- /**
- * @addtogroup WMIAPI
- *@{
- */
- /** @file
- * This file specifies the WMI interface for the Software Architecture.
- *
- * It includes definitions of all the commands and events. Commands are messages
- * from the host to the target. Events and Replies are messages from the target
- * to the host.
- *
- * Ownership of correctness in regards to WMI commands
- * belongs to the host driver and the target is not required to validate
- * parameters for value, proper range, or any other checking.
- *
- * Guidelines for extending this interface are below.
- *
- * 1. Add new WMI commands ONLY within the specified range - 0x9000 - 0x9fff
- * 2. Use ONLY A_UINT32 type for defining member variables within WMI command/event
- * structures. Do not use A_UINT8, A_UINT16, A_BOOL or enum types within these structures.
- * 3. DO NOT define bit fields within structures. Implement bit fields using masks
- * if necessary. Do not use the programming language's bit field definition.
- * 4. Define macros for encode/decode of A_UINT8, A_UINT16 fields within the A_UINT32
- * variables. Use these macros for set/get of these fields. Try to use this to
- * optimize the structure without bloating it with A_UINT32 variables for every lower
- * sized field.
- * 5. Do not use PACK/UNPACK attributes for the structures as each member variable is
- * already 4-byte aligned by virtue of being a A_UINT32 type.
- * 6. Comment each parameter part of the WMI command/event structure by using the
- * 2 stars at the beginning of C comment instead of one star to enable HTML document
- * generation using Doxygen.
- *
- */
- #ifndef _WMI_UNIFIED_H_
- #define _WMI_UNIFIED_H_
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include <wlan_defs.h>
- #include <wmi_services.h>
- /*
- * Include the defs of vendor-specific messages (or possibly dummy defs
- * if there are no actual vendor-specific message defs).
- */
- #include <wmi_unified_vendor.h>
- /* WMI_VAR_LEN_ARRAY1:
- * This macro is for converting the definition of existing variable-length
- * arrays within TLV structs of the form "type name[1];" to use the form
- * "type name[];" while ensuring that the length of the TLV struct is
- * unmodified by the conversion.
- * In general, any new variable-length structs should simply use
- * "type name[];" directly, rather than using WMI_VAR_LEN_ARRAY1.
- * However, if there's a legitimate reason to make the new variable-length
- * struct appear to not have a variable length, WMI_VAR_LEN_ARRAY1 can be
- * used for this purpose.
- */
- #if !defined(__KERNEL__)
- #define WMI_DUMMY_ZERO_LEN_FIELD A_UINT32 dummy_zero_len_field[0]
- #else
- /*
- * Certain build settings of the Linux kernel don't allow zero-element
- * arrays, and C++ doesn't allow zero-length empty structs.
- * Confirm that there's no build that combines kernel with C++.
- */
- #ifdef __cplusplus
- #error unsupported combination of kernel and C plus plus
- #endif
- #define WMI_DUMMY_ZERO_LEN_FIELD struct {} dummy_zero_len_field
- #endif
- #if defined(__WINDOWS__)
- #define WMI_VAR_LEN_ARRAY1(type, name) type name[1]
- #else
- #define WMI_VAR_LEN_ARRAY1(type, name) \
- union { \
- type name ## __first_elem; \
- struct { \
- WMI_DUMMY_ZERO_LEN_FIELD; \
- type name[]; \
- }; \
- }
- #endif
- #define ATH_MAC_LEN 6 /**< length of MAC in bytes */
- #define WMI_EVENT_STATUS_SUCCESS 0 /* Success return status to host */
- #define WMI_EVENT_STATUS_FAILURE 1 /* Failure return status to host */
- #define MAX_TX_RATE_VALUES 10 /*Max Tx Rates*/
- #define MAX_RSSI_VALUES 10 /*Max Rssi values*/
- #define WMI_MAX_CHAINS 8
- #define WMI_MAX_CHAINS_FOR_AOA_RCC 2
- #define WMI_MAX_ADDRESS_SPACE 10
- #define MAX_AOA_PHASEDELTA 31 /* 62 gain values */
- #define MAX_20MHZ_SEGMENTS 16 /* 320 MHz / 20 MHz = 16 (20 MHz subbands) */
- /* The WLAN_MAX_AC macro cannot be changed without breaking
- WMI compatibility. */
- /* The maximum value of access category */
- #define WLAN_MAX_AC 4
- #define WMI_MAX_PN_LEN 8
- #define MAX_NUM_CQI_USERS_IN_STANDALONE_SND 3
- /*
- * These don't necessarily belong here; but as the MS/SM macros require
- * ar6000_internal.h to be included, it may not be defined as yet.
- */
- #define WMI_F_MS(_v, _f) \
- (((_v) & (_f)) >> (_f##_S))
- /*
- * This breaks the "good macro practice" of only referencing each
- * macro field once (to avoid things like field++ from causing issues.)
- */
- #define WMI_F_RMW(_var, _v, _f) \
- do { \
- (_var) &= ~(_f); \
- (_var) |= (((_v) << (_f##_S)) & (_f)); \
- } while (0)
- #define WMI_GET_BITS(_val,_index,_num_bits) \
- (((_val) >> (_index)) & (((A_UINT32) 1 << (_num_bits)) - 1))
- #define WMI_SET_BITS(_var,_index,_num_bits,_val) do { \
- (_var) &= ~((((A_UINT32) 1 << (_num_bits)) - 1) << (_index)); \
- (_var) |= (((_val) & (((A_UINT32) 1 << (_num_bits)) - 1)) << (_index)); \
- } while (0)
- #define WMI_APPEND_TWO_SET_BITS(var, lsb_index, lsb_num_bits, msb_index, msb_num_bits, val) \
- do { \
- WMI_SET_BITS(var, lsb_index, lsb_num_bits, val); \
- WMI_SET_BITS(var, msb_index, msb_num_bits, (val >> lsb_num_bits)); \
- } while(0)
- #define WMI_APPEND_TWO_GET_BITS(var, lsb_index, lsb_num_bits, msb_index, msb_num_bits, val) \
- do { \
- (var) = WMI_GET_BITS(val, lsb_index, lsb_num_bits); \
- (var) |= (WMI_GET_BITS(val, msb_index, msb_num_bits) << lsb_num_bits); \
- } while(0)
- /*
- * Below GET/SET BITS_ARRAY_LEN32_BYTES macros can be used when
- * reading/writing bits which are spread across array_len32 entries.
- * These can be used to GET/SET maximum of 32 bits only,
- * also array_len32 length should be limited to maximum of 32.
- */
- #define WMI_GET_BITS_ARRAY_LEN32_BYTES(var, _arrayp, _index, _num_bits) \
- do { \
- A_UINT8 i; \
- for (i = 0; i < _num_bits; i++) { \
- (var) |= (WMI_GET_BITS(_arrayp[(_index+i) / 32], ((_index+i) % 32), 1) << i); \
- } \
- } while(0)
- #define WMI_SET_BITS_ARRAY_LEN32_BYTES(_arrayp, _index, _num_bits, val) \
- do { \
- A_UINT8 i; \
- for (i = 0; i < _num_bits; i++) { \
- WMI_SET_BITS(_arrayp[(_index+i) / 32], ((_index+i) % 32), 1, (val >> i)); \
- } \
- } while(0)
- /**
- * A packed array is an array where each entry in the array is less than
- * or equal to 16 bits, and the entries are stuffed into an A_UINT32 array.
- * For example, if each entry in the array is 11 bits, then you can stuff
- * an array of 4 11-bit values into an array of 2 A_UINT32 values.
- * The first 2 11-bit values will be stored in the first A_UINT32,
- * and the last 2 11-bit values will be stored in the second A_UINT32.
- */
- #define WMI_PACKED_ARR_SIZE(num_entries,bits_per_entry) \
- (((num_entries) / (32 / (bits_per_entry))) + \
- (((num_entries) % (32 / (bits_per_entry))) ? 1 : 0))
- #define WMI_RETURN_STRING(str) case ((str)): return (A_UINT8 *)(# str);
- static INLINE A_UINT32 wmi_packed_arr_get_bits(A_UINT32 *arr,
- A_UINT32 entry_index, A_UINT32 bits_per_entry)
- {
- A_UINT32 entries_per_uint = (32 / bits_per_entry);
- A_UINT32 uint_index = (entry_index / entries_per_uint);
- A_UINT32 num_entries_in_prev_uints = (uint_index * entries_per_uint);
- A_UINT32 index_in_uint = (entry_index - num_entries_in_prev_uints);
- A_UINT32 start_bit_in_uint = (index_in_uint * bits_per_entry);
- return (arr[uint_index] >> start_bit_in_uint) &
- (((A_UINT32) 1 << bits_per_entry) - 1);
- }
- static INLINE void wmi_packed_arr_set_bits(A_UINT32 *arr, A_UINT32 entry_index,
- A_UINT32 bits_per_entry, A_UINT32 val)
- {
- A_UINT32 entries_per_uint = (32 / bits_per_entry);
- A_UINT32 uint_index = (entry_index / entries_per_uint);
- A_UINT32 num_entries_in_prev_uints = (uint_index * entries_per_uint);
- A_UINT32 index_in_uint = (entry_index - num_entries_in_prev_uints);
- A_UINT32 start_bit_in_uint = (index_in_uint * bits_per_entry);
- arr[uint_index] &=
- ~((((A_UINT32) 1 << bits_per_entry) - 1) << start_bit_in_uint);
- arr[uint_index] |=
- ((val & (((A_UINT32) 1 << bits_per_entry) - 1)) << start_bit_in_uint);
- }
- /** macro to convert MAC address from WMI word format to char array */
- #define WMI_MAC_ADDR_TO_CHAR_ARRAY(pwmi_mac_addr,c_macaddr) do { \
- (c_macaddr)[0] = (((pwmi_mac_addr)->mac_addr31to0) >> 0) & 0xff; \
- (c_macaddr)[1] = (((pwmi_mac_addr)->mac_addr31to0) >> 8) & 0xff; \
- (c_macaddr)[2] = (((pwmi_mac_addr)->mac_addr31to0) >> 16) & 0xff; \
- (c_macaddr)[3] = (((pwmi_mac_addr)->mac_addr31to0) >> 24) & 0xff; \
- (c_macaddr)[4] = (((pwmi_mac_addr)->mac_addr47to32) >> 0) & 0xff; \
- (c_macaddr)[5] = (((pwmi_mac_addr)->mac_addr47to32) >> 8) & 0xff; \
- } while (0)
- /** macro to convert MAC address from char array to WMI word format */
- #define WMI_CHAR_ARRAY_TO_MAC_ADDR(c_macaddr,pwmi_mac_addr) do { \
- (pwmi_mac_addr)->mac_addr31to0 = \
- (((A_UINT32)(c_macaddr)[0] << 0) | \
- ((A_UINT32)(c_macaddr)[1] << 8) | \
- ((A_UINT32)(c_macaddr)[2] << 16) | \
- ((A_UINT32)(c_macaddr)[3] << 24)); \
- (pwmi_mac_addr)->mac_addr47to32 = ((c_macaddr)[4] | ((c_macaddr)[5] << 8));\
- } while (0)
- /** macro to convert generic hash of 6 bytes from WMI word format to char array */
- #define WMI_GENERIC_HASH_TO_CHAR_ARRAY(pwmi_generic_hash,c_generic_hash) do { \
- (c_generic_hash)[0] = (((pwmi_generic_hash)->generic_hash31to0) >> 0) & 0xff; \
- (c_generic_hash)[1] = (((pwmi_generic_hash)->generic_hash31to0) >> 8) & 0xff; \
- (c_generic_hash)[2] = (((pwmi_generic_hash)->generic_hash31to0) >> 16) & 0xff; \
- (c_generic_hash)[3] = (((pwmi_generic_hash)->generic_hash31to0) >> 24) & 0xff; \
- (c_generic_hash)[4] = (((pwmi_generic_hash)->generic_hash47to32) >> 0) & 0xff; \
- (c_generic_hash)[5] = (((pwmi_generic_hash)->generic_hash47to32) >> 8) & 0xff; \
- } while (0)
- /** macro to convert generic hash from char array to WMI word format */
- #define WMI_CHAR_ARRAY_TO_GENERIC_HASH(c_generic_hash,pwmi_generic_hash) do { \
- (pwmi_generic_hash)->generic_hash31to0 = \
- (((A_UINT32)(c_generic_hash)[0] << 0) | \
- ((A_UINT32)(c_generic_hash)[1] << 8) | \
- ((A_UINT32)(c_generic_hash)[2] << 16) | \
- ((A_UINT32)(c_generic_hash)[3] << 24)); \
- (pwmi_generic_hash)->generic_hash47to32 = \
- ((c_generic_hash)[4] | ((c_generic_hash)[5] << 8)); \
- } while (0)
- /*
- * The below function declarations are for implementations on some
- * platforms of the above macros, but in function form, to save code
- * memory by avoiding macro-inlining of a non-trivial amount of code.
- * These function versions of the above macros may not be available
- * on all host and target platforms.
- */
- void wmi_mac_addr_to_char_array(wmi_mac_addr *pwmi_mac_addr, A_UINT8 *c_macaddr);
- void wmi_char_array_to_mac_addr(A_UINT8 *c_macaddr, wmi_mac_addr *pwmi_mac_addr);
- /*
- * wmi command groups.
- */
- typedef enum {
- /* 0 to 2 are reserved */
- WMI_GRP_START = 0x3,
- WMI_GRP_SCAN = WMI_GRP_START, /* 0x3 */
- WMI_GRP_PDEV, /* 0x4 */
- WMI_GRP_VDEV, /* 0x5 */
- WMI_GRP_PEER, /* 0x6 */
- WMI_GRP_MGMT, /* 0x7 */
- WMI_GRP_BA_NEG, /* 0x8 */
- WMI_GRP_STA_PS, /* 0x9 */
- WMI_GRP_DFS, /* 0xa */
- WMI_GRP_ROAM, /* 0xb */
- WMI_GRP_OFL_SCAN, /* 0xc */
- WMI_GRP_P2P, /* 0xd */
- WMI_GRP_AP_PS, /* 0xe */
- WMI_GRP_RATE_CTRL, /* 0xf */
- WMI_GRP_PROFILE, /* 0x10 */
- WMI_GRP_SUSPEND, /* 0x11 */
- WMI_GRP_BCN_FILTER, /* 0x12 */
- WMI_GRP_WOW, /* 0x13 */
- WMI_GRP_RTT, /* 0x14 */
- WMI_GRP_SPECTRAL, /* 0x15 */
- WMI_GRP_STATS, /* 0x16 */
- WMI_GRP_ARP_NS_OFL, /* 0x17 */
- WMI_GRP_NLO_OFL, /* 0x18 */
- WMI_GRP_GTK_OFL, /* 0x19 */
- WMI_GRP_CSA_OFL, /* 0x1a */
- WMI_GRP_CHATTER, /* 0x1b */
- WMI_GRP_TID_ADDBA, /* 0x1c */
- WMI_GRP_MISC, /* 0x1d */
- WMI_GRP_GPIO, /* 0x1e */
- WMI_GRP_FWTEST, /* 0x1f */
- WMI_GRP_TDLS, /* 0x20 */
- WMI_GRP_RESMGR, /* 0x21 */
- WMI_GRP_STA_SMPS, /* 0x22 */
- WMI_GRP_WLAN_HB, /* 0x23 */
- WMI_GRP_RMC, /* 0x24 */
- WMI_GRP_MHF_OFL, /* 0x25 */
- WMI_GRP_LOCATION_SCAN, /* 0x26 */
- WMI_GRP_OEM, /* 0x27 */
- WMI_GRP_NAN, /* 0x28 */
- WMI_GRP_COEX, /* 0x29 */
- WMI_GRP_OBSS_OFL, /* 0x2a */
- WMI_GRP_LPI, /* 0x2b */
- WMI_GRP_EXTSCAN, /* 0x2c */
- WMI_GRP_DHCP_OFL, /* 0x2d */
- WMI_GRP_IPA, /* 0x2e */
- WMI_GRP_MDNS_OFL, /* 0x2f */
- WMI_GRP_SAP_OFL, /* 0x30 */
- WMI_GRP_OCB, /* 0x31 */
- WMI_GRP_SOC, /* 0x32 */
- WMI_GRP_PKT_FILTER, /* 0x33 */
- WMI_GRP_MAWC, /* 0x34 */
- WMI_GRP_PMF_OFFLOAD, /* 0x35 */
- WMI_GRP_BPF_OFFLOAD, /* 0x36 Berkeley Packet Filter */
- WMI_GRP_NAN_DATA, /* 0x37 */
- WMI_GRP_PROTOTYPE, /* 0x38 */
- WMI_GRP_MONITOR, /* 0x39 */
- WMI_GRP_REGULATORY, /* 0x3a */
- WMI_GRP_HW_DATA_FILTER, /* 0x3b */
- WMI_GRP_WLM, /* 0x3c WLAN Latency Manager */
- WMI_GRP_11K_OFFLOAD, /* 0x3d */
- WMI_GRP_TWT, /* 0x3e TWT (Target Wake Time) for STA and AP */
- WMI_GRP_MOTION_DET, /* 0x3f */
- WMI_GRP_SPATIAL_REUSE, /* 0x40 */
- WMI_GRP_ESP, /* 0x41 Estimate Service Parameters (802.11mc) */
- WMI_GRP_HPCS_PULSE, /* 0x42 */
- WMI_GRP_AUDIO, /* 0x43 */
- WMI_GRP_CFR_CAPTURE, /* 0x44 */
- WMI_GRP_ATM, /* 0x45 ATM (Air Time Management group) */
- WMI_GRP_VENDOR, /* 0x46 vendor specific group */
- WMI_GRP_LATENCY, /* 0x47 TID/AC level latency config */
- WMI_GRP_MLO, /* 0x48 MLO(Multiple Link Operation) management */
- WMI_GRP_SAWF, /* 0x49 SAWF (Service Aware WiFi) */
- WMI_GRP_QUIET_OFL, /* 0x4a Quiet offloads */
- WMI_GRP_ODD, /* 0x4b ODD */
- WMI_GRP_TDMA, /* 0x4c TDMA */
- WMI_GRP_MANUAL_UL_TRIG /* 0x4d Manual UL OFDMA Trigger */
- } WMI_GRP_ID;
- #define WMI_CMD_GRP_START_ID(grp_id) (((grp_id) << 12) | 0x1)
- #define WMI_EVT_GRP_START_ID(grp_id) (((grp_id) << 12) | 0x1)
- /**
- * Command IDs and commange events
- */
- typedef enum {
- /** initialize the wlan sub system */
- WMI_INIT_CMDID = 0x1,
- /* Scan specific commands */
- /** start scan request to FW */
- WMI_START_SCAN_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_SCAN),
- /** stop scan request to FW */
- WMI_STOP_SCAN_CMDID,
- /** full list of channels as defined by the regulatory that will be used by scanner */
- WMI_SCAN_CHAN_LIST_CMDID,
- /** overwrite default priority table in scan scheduler */
- WMI_SCAN_SCH_PRIO_TBL_CMDID,
- /** This command to adjust the priority and min.max_rest_time
- * of an on ongoing scan request.
- */
- WMI_SCAN_UPDATE_REQUEST_CMDID,
- /** set OUI to be used in probe request if enabled */
- WMI_SCAN_PROB_REQ_OUI_CMDID,
- /** config adaptive dwell scan */
- WMI_SCAN_ADAPTIVE_DWELL_CONFIG_CMDID,
- /** Only applicable to DBS capable product */
- WMI_SET_SCAN_DBS_DUTY_CYCLE_CMDID,
- /* PDEV(physical device) specific commands */
- /** set regulatorty ctl id used by FW to determine the exact ctl power limits */
- WMI_PDEV_SET_REGDOMAIN_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_PDEV),
- /** set channel. mainly used for supporting monitor mode */
- WMI_PDEV_SET_CHANNEL_CMDID,
- /** set pdev specific parameters */
- WMI_PDEV_SET_PARAM_CMDID,
- /** enable packet log */
- WMI_PDEV_PKTLOG_ENABLE_CMDID,
- /** disable packet log*/
- WMI_PDEV_PKTLOG_DISABLE_CMDID,
- /** set wmm parameters */
- WMI_PDEV_SET_WMM_PARAMS_CMDID,
- /** set HT cap ie that needs to be carried probe requests HT/VHT channels */
- WMI_PDEV_SET_HT_CAP_IE_CMDID,
- /** set VHT cap ie that needs to be carried on probe requests on VHT channels */
- WMI_PDEV_SET_VHT_CAP_IE_CMDID,
- /** Command to send the DSCP-to-TID map to the target */
- WMI_PDEV_SET_DSCP_TID_MAP_CMDID,
- /** set quiet ie parameters. primarily used in AP mode */
- WMI_PDEV_SET_QUIET_MODE_CMDID,
- /** Enable/Disable Green AP Power Save */
- WMI_PDEV_GREEN_AP_PS_ENABLE_CMDID,
- /** get TPC config for the current operating channel */
- WMI_PDEV_GET_TPC_CONFIG_CMDID,
- /** set the base MAC address for the physical device before a VDEV is created.
- * For firmware that doesn't support this feature and this command, the pdev
- * MAC address will not be changed. */
- WMI_PDEV_SET_BASE_MACADDR_CMDID,
- /* eeprom content dump , the same to bdboard data */
- WMI_PDEV_DUMP_CMDID,
- /* set LED configuration */
- WMI_PDEV_SET_LED_CONFIG_CMDID,
- /* Get Current temperature of chip in Celcius degree*/
- WMI_PDEV_GET_TEMPERATURE_CMDID,
- /* Set LED flashing behavior */
- WMI_PDEV_SET_LED_FLASHING_CMDID,
- /** Enable/Disable Smart Antenna */
- WMI_PDEV_SMART_ANT_ENABLE_CMDID,
- /** Set Smart Antenna RX antenna*/
- WMI_PDEV_SMART_ANT_SET_RX_ANTENNA_CMDID,
- /** Override the antenna switch table */
- WMI_PDEV_SET_ANTENNA_SWITCH_TABLE_CMDID,
- /** Override the CTL table */
- WMI_PDEV_SET_CTL_TABLE_CMDID,
- /** Override the array gain table */
- WMI_PDEV_SET_MIMOGAIN_TABLE_CMDID,
- /** FIPS test mode command */
- WMI_PDEV_FIPS_CMDID,
- /** get CCK ANI level */
- WMI_PDEV_GET_ANI_CCK_CONFIG_CMDID,
- /** get OFDM ANI level */
- WMI_PDEV_GET_ANI_OFDM_CONFIG_CMDID,
- /** NF Cal Power dBr/dBm */
- WMI_PDEV_GET_NFCAL_POWER_CMDID,
- /** TxPPDU TPC */
- WMI_PDEV_GET_TPC_CMDID,
- /** Set to enable MIB stats collection */
- WMI_MIB_STATS_ENABLE_CMDID,
- /** Set preferred channel list for DBS Mgr */
- WMI_PDEV_SET_PCL_CMDID,
- /** Set HW mode. Eg: single MAC, DBS & SBS, see soc_hw_mode_t for values */
- WMI_PDEV_SET_HW_MODE_CMDID,
- /** Set DFS, SCAN modes and other FW configurations */
- WMI_PDEV_SET_MAC_CONFIG_CMDID,
- /** Set per band and per pdev antenna chains */
- WMI_PDEV_SET_ANTENNA_MODE_CMDID,
- /** Periodic channel stats request command */
- WMI_SET_PERIODIC_CHANNEL_STATS_CONFIG_CMDID,
- /** WMI command for power debug framework */
- WMI_PDEV_WAL_POWER_DEBUG_CMDID,
- /** set per-AC rx reorder timeouts */
- WMI_PDEV_SET_REORDER_TIMEOUT_VAL_CMDID,
- /** WMI command for WOW gpio and type */
- WMI_PDEV_SET_WAKEUP_CONFIG_CMDID,
- /* Get current ANT's per chain's RSSI info */
- WMI_PDEV_GET_ANTDIV_STATUS_CMDID,
- /** WMI command for getting Chip Power Stats */
- WMI_PDEV_GET_CHIP_POWER_STATS_CMDID,
- /** set stats reporting thresholds - see WMI_REPORT_STATS_EVENTID */
- WMI_PDEV_SET_STATS_THRESHOLD_CMDID,
- /** vdev restart request for multiple vdevs */
- WMI_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMDID,
- /** Pdev update packet routing command */
- WMI_PDEV_UPDATE_PKT_ROUTING_CMDID,
- /** Get Calibration data version details */
- WMI_PDEV_CHECK_CAL_VERSION_CMDID,
- /** Set Diversity Gain */
- WMI_PDEV_SET_DIVERSITY_GAIN_CMDID,
- /** Get chain RSSI and antena index command */
- WMI_PDEV_DIV_GET_RSSI_ANTID_CMDID,
- /** get bss chan info */
- WMI_PDEV_BSS_CHAN_INFO_REQUEST_CMDID,
- /** update pmk cache info */
- WMI_PDEV_UPDATE_PMK_CACHE_CMDID,
- /** update fils HLP */
- WMI_PDEV_UPDATE_FILS_HLP_PKT_CMDID,
- /** update ctltable request **/
- WMI_PDEV_UPDATE_CTLTABLE_REQUEST_CMDID,
- /** Command to set beacon OUI **/
- WMI_PDEV_CONFIG_VENDOR_OUI_ACTION_CMDID,
- /** enable/disable per-AC tx queue optimizations */
- WMI_PDEV_SET_AC_TX_QUEUE_OPTIMIZED_CMDID,
- /** enable/disable rx promiscuous mode */
- WMI_PDEV_SET_RX_FILTER_PROMISCUOUS_CMDID,
- /* set a generic direct DMA ring config */
- WMI_PDEV_DMA_RING_CFG_REQ_CMDID,
- /* enable/disable Action frame response as HE TB PPDU */
- WMI_PDEV_HE_TB_ACTION_FRM_CMDID,
- /** filter packet log based on MAC address */
- WMI_PDEV_PKTLOG_FILTER_CMDID,
- /** wmi command for setting rogue ap configuration */
- WMI_PDEV_SET_RAP_CONFIG_CMDID,
- /** Specify DSM filters along with disallow bssid filters */
- WMI_PDEV_DSM_FILTER_CMDID,
- /** enable/disable periodic frame injection */
- WMI_PDEV_FRAME_INJECT_CMDID,
- /*
- * Pdev level command to:
- * a) solicit @WMI_TBTTOFFSET_EXT_UPDATE_EVENTID having TBTT in qtime
- * domain for all active vdevs or
- * b) update one pdevs tbtt offset to another pdev for use in
- * RNR TBTT offset calculation.
- */
- WMI_PDEV_TBTT_OFFSET_SYNC_CMDID,
- /** Bss color bitmap for SRG based spatial reuse feature */
- WMI_PDEV_SET_SRG_BSS_COLOR_BITMAP_CMDID,
- /** Partial BSSID bitmap for SRG based spatial reuse feature */
- WMI_PDEV_SET_SRG_PARTIAL_BSSID_BITMAP_CMDID,
- /** OBSS color enable bitmap for SRG based spatial reuse feature */
- WMI_PDEV_SET_SRG_OBSS_COLOR_ENABLE_BITMAP_CMDID,
- /** OBSS BSSID enable bitmap for SRG based spatial reuse feature */
- WMI_PDEV_SET_SRG_OBSS_BSSID_ENABLE_BITMAP_CMDID,
- /** OBSS color enable bitmap for NON_SRG based spatial reuse feature */
- WMI_PDEV_SET_NON_SRG_OBSS_COLOR_ENABLE_BITMAP_CMDID,
- /** OBSS BSSID enable bitmap for NON_SRG based spatial reuse feature */
- WMI_PDEV_SET_NON_SRG_OBSS_BSSID_ENABLE_BITMAP_CMDID,
- /** TPC stats display command */
- WMI_PDEV_GET_TPC_STATS_CMDID,
- /** ENABLE/DISABLE Duration based tx mode selection */
- WMI_PDEV_ENABLE_DURATION_BASED_TX_MODE_SELECTION_CMDID,
- /* Get DPD status from HALPHY */
- WMI_PDEV_GET_DPD_STATUS_CMDID,
- /* Set bios sar table */
- WMI_PDEV_SET_BIOS_SAR_TABLE_CMDID,
- /* Set bios geo table */
- WMI_PDEV_SET_BIOS_GEO_TABLE_CMDID,
- /* Get Calibration status from HALPHY */
- WMI_PDEV_GET_HALPHY_CAL_STATUS_CMDID,
- /* Set HALPHY CAL bitmap */
- WMI_PDEV_SET_HALPHY_CAL_BMAP_CMDID,
- /* WMI cmd to set a single vdev param for multiple vdevs */
- WMI_PDEV_MULTIPLE_VDEV_SET_PARAM_CMDID,
- /* Configure MEC AGING TIMER */
- WMI_PDEV_MEC_AGING_TIMER_CONFIG_CMDID,
- /* Set bios interface table */
- WMI_PDEV_SET_BIOS_INTERFACE_CMDID,
- WMI_PDEV_FIPS_EXTEND_CMDID,
- WMI_PDEV_FIPS_MODE_SET_CMDID,
- WMI_PDEV_FEATURESET_CMDID,
- /** tag as Filter Pass category and the filters set for FP mode */
- WMI_PDEV_MESH_RX_FILTER_ENABLE_CMDID,
- /* WMI cmd to set Target rate to power table */
- WMI_PDEV_SET_TGTR2P_TABLE_CMDID,
- /* WMI cmd to set RF path for PHY */
- WMI_PDEV_SET_RF_PATH_CMDID,
- /** WSI stats info WMI command */
- WMI_PDEV_WSI_STATS_INFO_CMDID,
- /*
- * WMI cmd to Enable LED blink based on Tx+Rx Data Rate
- * and download LED ON/OFF Rate table
- */
- WMI_PDEV_ENABLE_LED_BLINK_DOWNLOAD_TABLE_CMDID,
- /** WMI Command to enable wifi radar */
- WMI_PDEV_ENABLE_WIFI_RADAR_CMDID,
- /* WMI Command to enable xLNA */
- WMI_PDEV_ENABLE_XLNA_CMDID,
- /**
- * WMI cmd to set custom TX power backoff value per band/chain/MCS to PHY.
- */
- WMI_PDEV_SET_CUSTOM_TX_POWER_PER_MCS_CMDID,
- /* VDEV (virtual device) specific commands */
- /** vdev create */
- WMI_VDEV_CREATE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_VDEV),
- /** vdev delete */
- WMI_VDEV_DELETE_CMDID,
- /** vdev start request */
- WMI_VDEV_START_REQUEST_CMDID,
- /** vdev restart request (RX only, NO TX, used for CAC period)*/
- WMI_VDEV_RESTART_REQUEST_CMDID,
- /** vdev up request */
- WMI_VDEV_UP_CMDID,
- /** vdev stop request */
- WMI_VDEV_STOP_CMDID,
- /** vdev down request */
- WMI_VDEV_DOWN_CMDID,
- /* set a vdev param */
- WMI_VDEV_SET_PARAM_CMDID,
- /* set a key (used for setting per peer unicast and per vdev multicast) */
- WMI_VDEV_INSTALL_KEY_CMDID,
- /* wnm sleep mode command */
- WMI_VDEV_WNM_SLEEPMODE_CMDID,
- WMI_VDEV_WMM_ADDTS_CMDID,
- WMI_VDEV_WMM_DELTS_CMDID,
- WMI_VDEV_SET_WMM_PARAMS_CMDID,
- WMI_VDEV_SET_GTX_PARAMS_CMDID,
- WMI_VDEV_IPSEC_NATKEEPALIVE_FILTER_CMDID,
- WMI_VDEV_PLMREQ_START_CMDID,
- WMI_VDEV_PLMREQ_STOP_CMDID,
- /* TSF timestamp action for specified vdev */
- WMI_VDEV_TSF_TSTAMP_ACTION_CMDID,
- /** set the additional IEs in probe requests for scan or
- * assoc req etc for frames FW locally generates */
- WMI_VDEV_SET_IE_CMDID,
- WMI_VDEV_RATEMASK_CMDID,
- /** ATF VDEV REQUEST commands. */
- WMI_VDEV_ATF_REQUEST_CMDID,
- /** Command to send the DSCP-to-TID map to the target for VAP */
- WMI_VDEV_SET_DSCP_TID_MAP_CMDID,
- /* Configure filter for Neighbor Rx Pkt (smart mesh selective listening) */
- WMI_VDEV_FILTER_NEIGHBOR_RX_PACKETS_CMDID,
- /** set quiet ie parameters. primarily used in AP mode */
- WMI_VDEV_SET_QUIET_MODE_CMDID,
- /** To set custom aggregation size for per vdev */
- WMI_VDEV_SET_CUSTOM_AGGR_SIZE_CMDID,
- /* DISA feature: Encrypt-decrypt data request */
- WMI_VDEV_ENCRYPT_DECRYPT_DATA_REQ_CMDID,
- /** Command to enable mac randomizaton **/
- WMI_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_CMDID,
- /** WMI commands related to dbg arp stats */
- WMI_VDEV_SET_ARP_STAT_CMDID,
- WMI_VDEV_GET_ARP_STAT_CMDID,
- /** get tx power for the current vdev */
- WMI_VDEV_GET_TX_POWER_CMDID,
- /* limit STA offchannel activity */
- WMI_VDEV_LIMIT_OFFCHAN_CMDID,
- /** To set custom software retries per-AC for vdev */
- WMI_VDEV_SET_CUSTOM_SW_RETRY_TH_CMDID,
- /** To set chainmask configuration for vdev */
- WMI_VDEV_CHAINMASK_CONFIG_CMDID,
- WMI_VDEV_GET_BCN_RECEPTION_STATS_CMDID,
- /* request LTE-Coex info */
- WMI_VDEV_GET_MWS_COEX_INFO_CMDID,
- /** delete all peer (excluding bss peer) */
- WMI_VDEV_DELETE_ALL_PEER_CMDID,
- /* To set bss max idle time related parameters */
- WMI_VDEV_BSS_MAX_IDLE_TIME_CMDID,
- /** Indicates FW to trigger Audio sync */
- WMI_VDEV_AUDIO_SYNC_TRIGGER_CMDID,
- /** Gives Qtimer value to FW */
- WMI_VDEV_AUDIO_SYNC_QTIMER_CMDID,
- /** Preferred channel list for each vdev */
- WMI_VDEV_SET_PCL_CMDID,
- /** VDEV_GET_BIG_DATA_CMD IS DEPRECATED - DO NOT USE */
- WMI_VDEV_GET_BIG_DATA_CMDID,
- /** Get per vdev BIG DATA stats phase 2 */
- WMI_VDEV_GET_BIG_DATA_P2_CMDID,
- /** set TPC PSD/non-PSD power */
- WMI_VDEV_SET_TPC_POWER_CMDID,
- /** IGMP OFFLOAD */
- WMI_VDEV_IGMP_OFFLOAD_CMDID,
- /** Enable/Disable Intra Bss for each vdev */
- WMI_VDEV_ENABLE_DISABLE_INTRA_BSS_CMDID,
- /* set vdev mu sniffer param */
- WMI_VDEV_SET_MU_SNIF_CMDID,
- /** ICMP OFFLOAD */
- WMI_VDEV_ICMP_OFFLOAD_CMDID,
- /** Update vdev mac address */
- WMI_VDEV_UPDATE_MAC_ADDR_CMDID,
- /* WMI cmd to perform operation on multiple peer based on subcmd type */
- WMI_VDEV_MULTIPLE_PEER_GROUP_CMDID,
- /** Set LTF key seed which will be further used to derive LTF keys */
- WMI_VDEV_SET_LTF_KEY_SEED_CMDID,
- WMI_VDEV_PN_MGMT_RX_FILTER_CMDID,
- /** Enable SR prohibit feature for TIDs of vdev */
- WMI_VDEV_PARAM_ENABLE_SR_PROHIBIT_CMDID,
- /** pause vdev's Tx, Rx, or both for a specific duration */
- WMI_VDEV_PAUSE_CMDID,
- /** WMI Command to set status of CSA event from HOST */
- WMI_CSA_EVENT_STATUS_INDICATION_CMDID,
- /** Request to firmware to probe scheduler modes */
- WMI_VDEV_SCHED_MODE_PROBE_REQ_CMDID,
- /** Connect request on the vdev */
- WMI_VDEV_OOB_CONNECTION_REQ_CMDID,
- /**
- * WMI command to inform the target of the AP's operating bandwidth
- * (only applicable for STA vdev)
- */
- WMI_VDEV_REPORT_AP_OPER_BW_CMDID,
- /* peer specific commands */
- /** create a peer */
- WMI_PEER_CREATE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_PEER),
- /** delete a peer */
- WMI_PEER_DELETE_CMDID,
- /** flush specific tid queues of a peer */
- WMI_PEER_FLUSH_TIDS_CMDID,
- /** set a parameter of a peer */
- WMI_PEER_SET_PARAM_CMDID,
- /** set peer to associated state. will cary all parameters determined during assocication time */
- WMI_PEER_ASSOC_CMDID,
- /**add a wds (4 address) entry. used only for testing WDS feature on AP products */
- WMI_PEER_ADD_WDS_ENTRY_CMDID,
- /**remove wds (4 address) entry. used only for testing WDS feature on AP products */
- WMI_PEER_REMOVE_WDS_ENTRY_CMDID,
- /** set up mcast group info for multicast to unicast conversion */
- WMI_PEER_MCAST_GROUP_CMDID,
- /** request peer info from FW. FW shall respond with PEER_INFO_EVENTID */
- WMI_PEER_INFO_REQ_CMDID,
- /** request the estimated link speed for the peer. FW shall respond with
- * WMI_PEER_ESTIMATED_LINKSPEED_EVENTID.
- */
- WMI_PEER_GET_ESTIMATED_LINKSPEED_CMDID,
- /** Set the conditions to report peer justified rate to driver
- * The justified rate means the user-rate is justified by PER.
- */
- WMI_PEER_SET_RATE_REPORT_CONDITION_CMDID,
- /** update a wds (4 address) entry */
- WMI_PEER_UPDATE_WDS_ENTRY_CMDID,
- /** add a proxy sta entry */
- WMI_PEER_ADD_PROXY_STA_ENTRY_CMDID,
- /** Set Smart Antenna TX antenna */
- WMI_PEER_SMART_ANT_SET_TX_ANTENNA_CMDID,
- /** Set Smart Antenna TX train info */
- WMI_PEER_SMART_ANT_SET_TRAIN_INFO_CMDID,
- /** Set SA node config options */
- WMI_PEER_SMART_ANT_SET_NODE_CONFIG_OPS_CMDID,
- /** ATF PEER REQUEST commands */
- WMI_PEER_ATF_REQUEST_CMDID,
- /** bandwidth fairness (BWF) peer configuration request command */
- WMI_PEER_BWF_REQUEST_CMDID,
- /** rx reorder queue setup for peer/tid */
- WMI_PEER_REORDER_QUEUE_SETUP_CMDID,
- /** rx reorder queue remove for peer/tid */
- WMI_PEER_REORDER_QUEUE_REMOVE_CMDID,
- /** specify a limit for rx A-MPDU block size */
- WMI_PEER_SET_RX_BLOCKSIZE_CMDID,
- /** request peer antdiv info from FW. FW shall respond with PEER_ANTDIV_INFO_EVENTID */
- WMI_PEER_ANTDIV_INFO_REQ_CMDID,
- /*
- * The WMI_PEER_OPER_MODE_CHANGE_EVENTID def was originally mistakenly
- * placed here, amongst the CMDID defs.
- * The WMI_PEER_OPER_MODE_CHANGE_EVENTID def has been moved to the
- * EVENTID section, but to preserve backwards compatibility, the value
- * here that had been used for WMI_PEER_OPER_MODE_CHANGE_EVENTID
- * is kept reserved/deprecated.
- *
- * This WMI_PEER_RESERVED0_CMDID value can be replaced with an actual
- * WMI peer event message ID, though it will be simpler to instead add
- * new WMI_PEER CMDID defs at the end of the WMI_GRP_PEER WMI_CMD_GRP.
- */
- WMI_PEER_RESERVED0_CMDID,
- /** Peer/Tid/Msduq threshold update */
- WMI_PEER_TID_MSDUQ_QDEPTH_THRESH_UPDATE_CMDID,
- /** TID specific configurations per peer of type
- * wmi_peer_tid_configurations_cmd_fixed_param
- */
- WMI_PEER_TID_CONFIGURATIONS_CMDID,
- /** Peer configuration for Channel Frequency Response (CFR) capture
- * of type wmi_peer_cfr_capture_cmd.
- *
- * On targets that do not use the direct DMA framework,
- * completion of the CFR capture is communicated through
- * HTT_T2H_MSG_TYPE_CFR_DUMP_COMPL_IND.
- * Such targets will set WMI_SERVICE_CFR_CAPTURE_IND_MSG_TYPE_1
- * in WMI Service Ready.
- *
- * On targets that use direct DMA, completion of CFR capture is
- * communicated through WMI_PDEV_DMA_RING_BUF_RELEASE_EVENTID
- * using module ID WMI_DMA_RING_CONFIG_MODULE_RTT.
- * Such targets will set WMI_SERVICE_CFR_CAPTURE_IND_EVT_TYPE_1
- * in WMI Service Ready and enumerate WMI_DMA_RING_CONFIG_MODULE_RTT
- * in the dma_ring_caps entry of WMI_SERVICE_READY_EXT_EVENTID.
- * Additional MAC metadata is provided in WMI_PEER_CFR_CAPTURE_EVENTID.
- */
- WMI_PEER_CFR_CAPTURE_CMDID,
- /** WMI command related to AP channel width switching */
- WMI_PEER_CHAN_WIDTH_SWITCH_CMDID,
- /** WMI command to fetch current tx PN for the peer */
- WMI_PEER_TX_PN_REQUEST_CMDID,
- /** unmap response with peer ids */
- WMI_PEER_UNMAP_RESPONSE_CMDID,
- /** WMI command for per-peer configuration of VLAN header operations
- * during TX and RX
- */
- WMI_PEER_CONFIG_VLAN_CMDID,
- /** WMI command for per-peer configuration of PPE DS */
- WMI_PEER_CONFIG_PPE_DS_CMDID,
- /** Enable/Disable Intra Bss for the peer */
- WMI_PEER_ENABLE_DISABLE_INTRA_BSS_CMDID,
- WMI_PEER_RX_PN_REQUEST_CMDID,
- /* Mac addr based filtering*/
- WMI_PEER_TX_FILTER_CMDID,
- /** flush specific tid queues of a peer */
- WMI_PEER_FLUSH_POLICY_CMDID,
- /* Set disabled scheduler modes for one or more peers */
- WMI_PEER_SCHED_MODE_DISABLE_CMDID,
- /* Group SET cmd for PEERS */
- WMI_PEER_BULK_SET_CMDID,
- /* WMI command to setup reorder queue for multiple TIDs */
- WMI_PEER_MULTIPLE_REORDER_QUEUE_SETUP_CMDID,
- /* beacon/management specific commands */
- /** transmit beacon by reference . used for transmitting beacon on low latency interface like pcie */
- WMI_BCN_TX_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_MGMT),
- /** transmit beacon by value */
- WMI_PDEV_SEND_BCN_CMDID,
- /** set the beacon template. used in beacon offload mode to setup the
- * the common beacon template with the FW to be used by FW to generate beacons */
- WMI_BCN_TMPL_CMDID,
- /** set beacon filter with FW */
- WMI_BCN_FILTER_RX_CMDID,
- /* enable/disable filtering of probe requests in the firmware */
- WMI_PRB_REQ_FILTER_RX_CMDID,
- /** transmit management frame by value. will be deprecated */
- WMI_MGMT_TX_CMDID,
- /** set the probe response template. used in beacon offload mode to setup the
- * the common probe response template with the FW to be used by FW to generate
- * probe responses */
- WMI_PRB_TMPL_CMDID,
- /** Transmit Mgmt frame by reference */
- WMI_MGMT_TX_SEND_CMDID,
- /** Transmit data frame by reference */
- WMI_OFFCHAN_DATA_TX_SEND_CMDID,
- /** transmit FILS Discovery frame by value */
- WMI_PDEV_SEND_FD_CMDID,
- /** Cmd to enable/disable offloaded beacons */
- WMI_BCN_OFFLOAD_CTRL_CMDID,
- /** Cmd to enable FW handling BSS color change notification from AP. */
- WMI_BSS_COLOR_CHANGE_ENABLE_CMDID,
- /** To configure Beacon offload quiet-ie params */
- WMI_VDEV_BCN_OFFLOAD_QUIET_CONFIG_CMDID,
- /** set FILS Discovery frame template for FW to generate FD frames */
- WMI_FD_TMPL_CMDID,
- /** Transmit QoS null Frame over wmi interface */
- WMI_QOS_NULL_FRAME_TX_SEND_CMDID,
- /** WMI CMD to receive the management filter criteria from the host for RX REO */
- WMI_MGMT_RX_REO_FILTER_CONFIGURATION_CMDID,
- /** commands to directly control ba negotiation directly from host. only used in test mode */
- /** turn off FW Auto addba mode and let host control addba */
- WMI_ADDBA_CLEAR_RESP_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_BA_NEG),
- /** send add ba request */
- WMI_ADDBA_SEND_CMDID,
- WMI_ADDBA_STATUS_CMDID,
- /** send del ba */
- WMI_DELBA_SEND_CMDID,
- /** set add ba response will be used by FW to generate addba response*/
- WMI_ADDBA_SET_RESP_CMDID,
- /** send single VHT MPDU with AMSDU */
- WMI_SEND_SINGLEAMSDU_CMDID,
- /** Station power save specific config */
- /** enable/disable station powersave */
- WMI_STA_POWERSAVE_MODE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_STA_PS),
- /** set station power save specific parameter */
- WMI_STA_POWERSAVE_PARAM_CMDID,
- /** set station mimo powersave mode */
- WMI_STA_MIMO_PS_MODE_CMDID,
- /** config station TX cycle percentage in a beacon interval */
- WMI_STA_TDCC_CONFIG_CMDID,
- /** DFS-specific commands */
- /** enable DFS (radar detection)*/
- WMI_PDEV_DFS_ENABLE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_DFS),
- /** disable DFS (radar detection)*/
- WMI_PDEV_DFS_DISABLE_CMDID,
- /** enable DFS phyerr/parse filter offload */
- WMI_DFS_PHYERR_FILTER_ENA_CMDID,
- /** enable DFS phyerr/parse filter offload */
- WMI_DFS_PHYERR_FILTER_DIS_CMDID,
- /** enable DFS phyerr processing offload */
- WMI_PDEV_DFS_PHYERR_OFFLOAD_ENABLE_CMDID,
- /** disable DFS phyerr processing offload */
- WMI_PDEV_DFS_PHYERR_OFFLOAD_DISABLE_CMDID,
- /** set ADFS channel config */
- WMI_VDEV_ADFS_CH_CFG_CMDID,
- /** abort ADFS off-channel-availability-check currently in progress */
- WMI_VDEV_ADFS_OCAC_ABORT_CMDID,
- /* Roaming specific commands */
- /** set roam scan mode */
- WMI_ROAM_SCAN_MODE = WMI_CMD_GRP_START_ID(WMI_GRP_ROAM),
- /** set roam scan RSSI threshold below which roam scan is enabled */
- WMI_ROAM_SCAN_RSSI_THRESHOLD,
- /** set roam scan period for periodic roam scan mode */
- WMI_ROAM_SCAN_PERIOD,
- /** set roam scan trigger RSSI change threshold */
- WMI_ROAM_SCAN_RSSI_CHANGE_THRESHOLD,
- /** set roam AP profile */
- WMI_ROAM_AP_PROFILE,
- /** set channel list for roam scans */
- WMI_ROAM_CHAN_LIST,
- /** Stop scan command */
- WMI_ROAM_SCAN_CMD,
- /** roaming sme offload sync complete */
- WMI_ROAM_SYNCH_COMPLETE,
- /** set ric request element for 11r roaming */
- WMI_ROAM_SET_RIC_REQUEST_CMDID,
- /** Invoke roaming forcefully */
- WMI_ROAM_INVOKE_CMDID,
- /** roaming filter cmd to allow further filtering of roaming candidate */
- WMI_ROAM_FILTER_CMDID,
- /** set gateway ip, mac and retries for subnet change detection */
- WMI_ROAM_SUBNET_CHANGE_CONFIG_CMDID,
- /** configure thresholds for MAWC */
- WMI_ROAM_CONFIGURE_MAWC_CMDID,
- /** configure MultiBand Operation(refer WFA MBO spec) parameter */
- WMI_ROAM_SET_MBO_PARAM_CMDID, /* DEPRECATED */
- /** configure packet error rate threshold for triggering roaming */
- WMI_ROAM_PER_CONFIG_CMDID,
- /** configure BSS Transition Management (BTM) offload for roaming */
- WMI_ROAM_BTM_CONFIG_CMDID,
- /** Enable or Disable Fast Initial Link Setup (FILS) feature */
- WMI_ENABLE_FILS_CMDID,
- /** Request for roam scan stats */
- WMI_REQUEST_ROAM_SCAN_STATS_CMDID,
- /** Configure BSS load parameters for roam trigger */
- WMI_ROAM_BSS_LOAD_CONFIG_CMDID,
- /** Configure deauth roam trigger parameters */
- WMI_ROAM_DEAUTH_CONFIG_CMDID,
- /** Configure idle roam trigger parameters */
- WMI_ROAM_IDLE_CONFIG_CMDID,
- /**
- * WMI_ROAM_DSM_FILTER_CMDID is deprecated and should be unused,
- * but leave it reserved just to be safe.
- */
- DEPRECATED__WMI_ROAM_DSM_FILTER_CMDID,
- /** Enable or disable roaming triggers */
- WMI_ROAM_ENABLE_DISABLE_TRIGGER_REASON_CMDID,
- /** Pre-Authentication completion status command */
- WMI_ROAM_PREAUTH_STATUS_CMDID,
- /** Command to get roam scan channels list */
- WMI_ROAM_GET_SCAN_CHANNEL_LIST_CMDID,
- /** configure MLO parameters for roaming */
- WMI_ROAM_MLO_CONFIG_CMDID,
- /** set roam params **/
- WMI_ROAM_SET_PARAM_CMDID,
- /** Enable or Disable roam vendor control */
- WMI_ROAM_ENABLE_VENDOR_CONTROL_CMDID,
- /** Get firmware ini value */
- WMI_ROAM_GET_VENDOR_CONTROL_PARAM_CMDID,
- /** offload scan specific commands */
- /** set offload scan AP profile */
- WMI_OFL_SCAN_ADD_AP_PROFILE = WMI_CMD_GRP_START_ID(WMI_GRP_OFL_SCAN),
- /** remove offload scan AP profile */
- WMI_OFL_SCAN_REMOVE_AP_PROFILE,
- /** set offload scan period */
- WMI_OFL_SCAN_PERIOD,
- /* P2P specific commands */
- /**set P2P device info. FW will used by FW to create P2P IE to be carried in probe response
- * generated during p2p listen and for p2p discoverability */
- WMI_P2P_DEV_SET_DEVICE_INFO = WMI_CMD_GRP_START_ID(WMI_GRP_P2P),
- /** enable/disable p2p discoverability on STA/AP VDEVs */
- WMI_P2P_DEV_SET_DISCOVERABILITY,
- /** set p2p ie to be carried in beacons generated by FW for GO */
- WMI_P2P_GO_SET_BEACON_IE,
- /** set p2p ie to be carried in probe response frames generated by FW for GO */
- WMI_P2P_GO_SET_PROBE_RESP_IE,
- /** set the vendor specific p2p ie data. FW will use this to parse the P2P NoA
- * attribute in the beacons/probe responses received.
- * Note: This command is currently used only for Apple P2P implementation.
- */
- WMI_P2P_SET_VENDOR_IE_DATA_CMDID,
- /** set the configure of p2p find offload */
- WMI_P2P_DISC_OFFLOAD_CONFIG_CMDID,
- /** set the vendor specific p2p ie data for p2p find offload using */
- WMI_P2P_DISC_OFFLOAD_APPIE_CMDID,
- /** set the BSSID/device name pattern of p2p find offload */
- WMI_P2P_DISC_OFFLOAD_PATTERN_CMDID,
- /** set OppPS related parameters **/
- WMI_P2P_SET_OPPPS_PARAM_CMDID,
- /** set listen offload start related parameters */
- WMI_P2P_LISTEN_OFFLOAD_START_CMDID,
- /** set listen offload stop related parameters */
- WMI_P2P_LISTEN_OFFLOAD_STOP_CMDID,
- /** set DFS master AP configuration */
- WMI_P2P_GO_DFS_AP_CONFIG_CMDID,
- /** AP power save specific config */
- /** set AP power save specific param */
- WMI_AP_PS_PEER_PARAM_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_AP_PS),
- /** set AP UAPSD coex specific param */
- WMI_AP_PS_PEER_UAPSD_COEX_CMDID,
- /** set Enhanced Green AP param */
- WMI_AP_PS_EGAP_PARAM_CMDID,
- /** Rate-control specific commands */
- WMI_PEER_RATE_RETRY_SCHED_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_RATE_CTRL),
- /** WLAN Profiling commands. */
- WMI_WLAN_PROFILE_TRIGGER_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_PROFILE),
- WMI_WLAN_PROFILE_SET_HIST_INTVL_CMDID,
- WMI_WLAN_PROFILE_GET_PROFILE_DATA_CMDID,
- WMI_WLAN_PROFILE_ENABLE_PROFILE_ID_CMDID,
- WMI_WLAN_PROFILE_LIST_PROFILE_ID_CMDID,
- /** Suspend resume command Ids */
- WMI_PDEV_SUSPEND_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_SUSPEND),
- WMI_PDEV_RESUME_CMDID,
- /* Beacon filter commands */
- /** add a beacon filter */
- WMI_ADD_BCN_FILTER_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_BCN_FILTER),
- /** remove a beacon filter */
- WMI_RMV_BCN_FILTER_CMDID,
- /* WOW Specific WMI commands*/
- /** add pattern for awake */
- WMI_WOW_ADD_WAKE_PATTERN_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_WOW),
- /** deleta a wake pattern */
- WMI_WOW_DEL_WAKE_PATTERN_CMDID,
- /** enable/deisable wake event */
- WMI_WOW_ENABLE_DISABLE_WAKE_EVENT_CMDID,
- /** enable WOW */
- WMI_WOW_ENABLE_CMDID,
- /** host woke up from sleep event to FW. Generated in response to WOW Hardware event */
- WMI_WOW_HOSTWAKEUP_FROM_SLEEP_CMDID,
- /* IOAC add keep alive cmd. */
- WMI_WOW_IOAC_ADD_KEEPALIVE_CMDID,
- /* IOAC del keep alive cmd. */
- WMI_WOW_IOAC_DEL_KEEPALIVE_CMDID,
- /* IOAC add pattern for awake */
- WMI_WOW_IOAC_ADD_WAKE_PATTERN_CMDID,
- /* IOAC deleta a wake pattern */
- WMI_WOW_IOAC_DEL_WAKE_PATTERN_CMDID,
- /* D0-WOW enable or disable cmd */
- WMI_D0_WOW_ENABLE_DISABLE_CMDID,
- /* enable extend WoW */
- WMI_EXTWOW_ENABLE_CMDID,
- /* Extend WoW command to configure app type1 parameter */
- WMI_EXTWOW_SET_APP_TYPE1_PARAMS_CMDID,
- /* Extend WoW command to configure app type2 parameter */
- WMI_EXTWOW_SET_APP_TYPE2_PARAMS_CMDID,
- /* enable ICMPv6 Network advertisement filtering */
- WMI_WOW_ENABLE_ICMPV6_NA_FLT_CMDID,
- /*
- * Set a pattern to match UDP packet in WOW mode.
- * If match, construct a tx frame in a local buffer
- * to send through the peer AP to the entity in the
- * IP network that sent the UDP packet to this STA.
- */
- WMI_WOW_UDP_SVC_OFLD_CMDID,
- /* configure WOW host wakeup PIN pattern */
- WMI_WOW_HOSTWAKEUP_GPIO_PIN_PATTERN_CONFIG_CMDID,
- /* Set which action category should wake the host from suspend */
- WMI_WOW_SET_ACTION_WAKE_UP_CMDID,
- /*
- * Set a pattern to match broadcast CoAP packet in WoW mode.
- * If match and verify pass, cache the packet and then reply
- * a unicast response in local with pre-configured packet.
- */
- WMI_WOW_COAP_ADD_PATTERN_CMDID,
- /* Delete a pattern match broadcast CoAP packet */
- WMI_WOW_COAP_DEL_PATTERN_CMDID,
- /*
- * Add a CoAP keepalive pattern to send a CoAP broadcast packet
- * when configured timeout occurred.
- */
- WMI_WOW_COAP_ADD_KEEPALIVE_PATTERN_CMDID,
- /* Delete a CoAP keepalive pattern */
- WMI_WOW_COAP_DEL_KEEPALIVE_PATTERN_CMDID,
- /* Host read the cached CoAP packets after resume */
- WMI_WOW_COAP_GET_BUF_INFO_CMDID,
- /* RTT measurement related cmd */
- /** request to make an RTT measurement */
- WMI_RTT_MEASREQ_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_RTT),
- /** request to report a tsf measurement */
- WMI_RTT_TSF_CMDID,
- /** RTT 11az PASN authentication status */
- WMI_RTT_PASN_AUTH_STATUS_CMD,
- /** RTT 11az PASN deauthentication cmd */
- WMI_RTT_PASN_DEAUTH_CMD,
- /** spectral scan command */
- /** configure spectral scan */
- WMI_VDEV_SPECTRAL_SCAN_CONFIGURE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_SPECTRAL),
- /** enable/disable spectral scan and trigger */
- WMI_VDEV_SPECTRAL_SCAN_ENABLE_CMDID,
- /* F/W stats */
- /** one time request for stats */
- WMI_REQUEST_STATS_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_STATS),
- /** Push MCC Adaptive Scheduler Stats to Firmware */
- WMI_MCC_SCHED_TRAFFIC_STATS_CMDID,
- /** one time request for txrx stats */
- WMI_REQUEST_STATS_EXT_CMDID,
- /* Link Layer stats */
- /** Request for link layer stats */
- WMI_REQUEST_LINK_STATS_CMDID,
- /** Request for setting params to link layer stats */
- WMI_START_LINK_STATS_CMDID,
- /** Request to clear stats*/
- WMI_CLEAR_LINK_STATS_CMDID,
- /** Request for getting the Firmware Memory Dump */
- WMI_GET_FW_MEM_DUMP_CMDID,
- /** Request to flush of the buffered debug messages */
- WMI_DEBUG_MESG_FLUSH_CMDID,
- /** Cmd to configure the verbose level */
- WMI_DIAG_EVENT_LOG_CONFIG_CMDID,
- /** One time request for wlan stats */
- WMI_REQUEST_WLAN_STATS_CMDID,
- /** Request for getting RCPI of peer */
- WMI_REQUEST_RCPI_CMDID,
- /** One time request for peer stats info */
- WMI_REQUEST_PEER_STATS_INFO_CMDID,
- /** One time request for radio channel stats */
- WMI_REQUEST_RADIO_CHAN_STATS_CMDID,
- /** request for WLM (wlan latency manager) stats */
- WMI_REQUEST_WLM_STATS_CMDID,
- /** request for control path stats */
- WMI_REQUEST_CTRL_PATH_STATS_CMDID,
- /** unified request for LL stats and get station cmds */
- WMI_REQUEST_UNIFIED_LL_GET_STA_CMDID,
- /** request for thermal stats */
- WMI_REQUEST_THERMAL_STATS_CMDID,
- /** request for HALPHY stats through ctrl path */
- WMI_REQUEST_HALPHY_CTRL_PATH_STATS_CMDID,
- /** ARP OFFLOAD REQUEST*/
- WMI_SET_ARP_NS_OFFLOAD_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_ARP_NS_OFL),
- /** Proactive ARP Response Add Pattern Command*/
- WMI_ADD_PROACTIVE_ARP_RSP_PATTERN_CMDID,
- /** Proactive ARP Response Del Pattern Command*/
- WMI_DEL_PROACTIVE_ARP_RSP_PATTERN_CMDID,
- /** NS offload confid*/
- WMI_NETWORK_LIST_OFFLOAD_CONFIG_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_NLO_OFL),
- /** APFIND Config */
- WMI_APFIND_CMDID,
- /** Passpoint list config */
- WMI_PASSPOINT_LIST_CONFIG_CMDID,
- /** configure suppressing parameters for MAWC */
- WMI_NLO_CONFIGURE_MAWC_CMDID,
- /* GTK offload Specific WMI commands*/
- WMI_GTK_OFFLOAD_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_GTK_OFL),
- /* CSA offload Specific WMI commands*/
- /** csa offload enable */
- WMI_CSA_OFFLOAD_ENABLE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_CSA_OFL),
- /** chan switch command */
- WMI_CSA_OFFLOAD_CHANSWITCH_CMDID,
- /* Chatter commands*/
- /* Change chatter mode of operation */
- WMI_CHATTER_SET_MODE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_CHATTER),
- /** chatter add coalescing filter command */
- WMI_CHATTER_ADD_COALESCING_FILTER_CMDID,
- /** chatter delete coalescing filter command */
- WMI_CHATTER_DELETE_COALESCING_FILTER_CMDID,
- /** chatter coalecing query command */
- WMI_CHATTER_COALESCING_QUERY_CMDID,
- /**addba specific commands */
- /** start the aggregation on this TID */
- WMI_PEER_TID_ADDBA_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_TID_ADDBA),
- /** stop the aggregation on this TID */
- WMI_PEER_TID_DELBA_CMDID,
- /** set station mimo powersave method */
- WMI_STA_DTIM_PS_METHOD_CMDID,
- /** Configure the Station UAPSD AC Auto Trigger Parameters */
- WMI_STA_UAPSD_AUTO_TRIG_CMDID,
- /** Configure the Keep Alive Parameters */
- WMI_STA_KEEPALIVE_CMDID,
- /* Request ssn from target for a sta/tid pair */
- WMI_BA_REQ_SSN_CMDID,
- /* misc command group */
- /** echo command mainly used for testing */
- WMI_ECHO_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_MISC),
- /* !!IMPORTANT!!
- * If you need to add a new WMI command to the WMI_GRP_MISC sub-group,
- * please make sure you add it BEHIND WMI_PDEV_UTF_CMDID,
- * as we MUST have a fixed value here to maintain compatibility between
- * UTF and the ART2 driver
- */
- /** UTF WMI commands */
- WMI_PDEV_UTF_CMDID,
- /** set debug log config */
- WMI_DBGLOG_CFG_CMDID,
- /* QVIT specific command id */
- WMI_PDEV_QVIT_CMDID,
- /* Factory Testing Mode request command
- * used for integrated chipsets */
- WMI_PDEV_FTM_INTG_CMDID,
- /* set and get keepalive parameters command */
- WMI_VDEV_SET_KEEPALIVE_CMDID,
- WMI_VDEV_GET_KEEPALIVE_CMDID,
- /* For fw recovery test command */
- WMI_FORCE_FW_HANG_CMDID,
- /* Set Mcast/Bdcast filter */
- WMI_SET_MCASTBCAST_FILTER_CMDID,
- /** set thermal management params **/
- WMI_THERMAL_MGMT_CMDID,
- /** set host auto shutdown params **/
- WMI_HOST_AUTO_SHUTDOWN_CFG_CMDID,
- /** set tpc chainmask config command */
- WMI_TPC_CHAINMASK_CONFIG_CMDID,
- /** set Antenna diversity command */
- WMI_SET_ANTENNA_DIVERSITY_CMDID,
- /** Set OCB Sched Request, deprecated */
- WMI_OCB_SET_SCHED_CMDID,
- /** Set RSSI monitoring config command */
- WMI_RSSI_BREACH_MONITOR_CONFIG_CMDID,
- /** Enable/disable Large Receive Offload processing; provide cfg params */
- WMI_LRO_CONFIG_CMDID,
- /** transfer data from host to firmware to write flash */
- WMI_TRANSFER_DATA_TO_FLASH_CMDID,
- /** Command to enable/disable filtering of multicast IP with unicast mac */
- WMI_CONFIG_ENHANCED_MCAST_FILTER_CMDID,
- /** Command to control WISA mode */
- WMI_VDEV_WISA_CMDID,
- /** set debug log time stamp sync up with host */
- WMI_DBGLOG_TIME_STAMP_SYNC_CMDID,
- /** Command for host to set/delete multiple mcast filters */
- WMI_SET_MULTIPLE_MCAST_FILTER_CMDID,
- /** upload a requested section of data from firmware flash to host */
- WMI_READ_DATA_FROM_FLASH_CMDID,
- /* Thermal Throttling SET CONF commands */
- WMI_THERM_THROT_SET_CONF_CMDID,
- /* set runtime dpd recalibration params */
- WMI_RUNTIME_DPD_RECAL_CMDID,
- /* get TX power for input HALPHY parameters */
- WMI_GET_TPC_POWER_CMDID,
- /* Specify when to start monitoring for idle state */
- WMI_IDLE_TRIGGER_MONITOR_CMDID,
- /** set ELNA BYPASS status */
- WMI_SET_ELNA_BYPASS_CMDID,
- /** get ELNA BYPASS status */
- WMI_GET_ELNA_BYPASS_CMDID,
- /** get ANI level of the channels */
- WMI_GET_CHANNEL_ANI_CMDID,
- /** set OCL (One Chain Listen) mode */
- WMI_SET_OCL_CMDID,
- /** Consolidated params for pdev/vdev:
- * Set multiple parameters at once for one pdev or vdev.
- */
- WMI_SET_MULTIPLE_PDEV_VDEV_PARAM_CMDID,
- /* WMI cmd used to allocate HW scratch registers */
- WMI_PMM_SCRATCH_REG_ALLOCATION_CMDID,
- /* WMI cmd used to start/stop XGAP (XPAN Green AP) */
- WMI_XGAP_ENABLE_CMDID,
- /* H2T HPA message */
- WMI_HPA_CMDID,
- /* WMI comamnd for standalone sounding */
- WMI_VDEV_STANDALONE_SOUND_CMDID,
- /* WMI cmd used by host to send the switch response status to FW */
- WMI_AUDIO_TRANSPORT_SWITCH_RESP_STATUS_CMDID,
- /** WMI command to set active traffic type bitmap for a peer */
- WMI_PEER_ACTIVE_TRAFFIC_MAP_CMDID,
- /** WMI command to Request Opportunistic Power Mgmt (OPM) stats */
- WMI_REQUEST_OPM_STATS_CMDID,
- /** WMI command to Request SAP suspend/resume */
- WMI_SET_AP_SUSPEND_RESUME_CMDID,
- /** Unsynchronized Service Discovery */
- WMI_USD_SERVICE_CMDID,
- /* Offload 11k related requests */
- WMI_11K_OFFLOAD_REPORT_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_11K_OFFLOAD),
- /* invoke neighbor report from FW */
- WMI_11K_INVOKE_NEIGHBOR_REPORT_CMDID,
- /* GPIO Configuration */
- WMI_GPIO_CONFIG_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_GPIO),
- WMI_GPIO_OUTPUT_CMDID,
- /* Txbf configuration command */
- WMI_TXBF_CMDID,
- /* Antenna Controller, connected to wlan debug uart/GPIO. */
- WMI_ANT_CONTROLLER_CMDID,
- WMI_GPIO_STATE_REQ_CMDID,
- /* FWTEST Commands */
- WMI_FWTEST_VDEV_MCC_SET_TBTT_MODE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_FWTEST),
- /** set NoA descs **/
- WMI_FWTEST_P2P_SET_NOA_PARAM_CMDID,
- /* UNIT Tests */
- WMI_UNIT_TEST_CMDID,
- /* set debug and tuning parameters */
- WMI_FWTEST_CMDID,
- /* Q-Boost configuration test commands */
- WMI_QBOOST_CFG_CMDID,
- /* Simulation Test command */
- WMI_SIMULATION_TEST_CMDID,
- /* WFA test config command */
- WMI_WFA_CONFIG_CMDID,
- /** TDLS Configuration */
- /** enable/disable TDLS */
- WMI_TDLS_SET_STATE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_TDLS),
- /** set tdls peer state */
- WMI_TDLS_PEER_UPDATE_CMDID,
- /** TDLS Offchannel control */
- WMI_TDLS_SET_OFFCHAN_MODE_CMDID,
- /** Resmgr Configuration */
- /** Adaptive OCS is enabled by default in the FW. This command is used to
- * disable FW based adaptive OCS.
- */
- WMI_RESMGR_ADAPTIVE_OCS_ENABLE_DISABLE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_RESMGR),
- /** set the requested channel time quota for the home channels */
- WMI_RESMGR_SET_CHAN_TIME_QUOTA_CMDID,
- /** set the requested latency for the home channels */
- WMI_RESMGR_SET_CHAN_LATENCY_CMDID,
- /** STA SMPS Configuration */
- /** force SMPS mode */
- WMI_STA_SMPS_FORCE_MODE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_STA_SMPS),
- /** set SMPS parameters */
- WMI_STA_SMPS_PARAM_CMDID,
- /* Wlan HB commands*/
- /* enable/disable wlan HB */
- WMI_HB_SET_ENABLE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_WLAN_HB),
- /* set tcp parameters for wlan HB */
- WMI_HB_SET_TCP_PARAMS_CMDID,
- /* set tcp pkt filter for wlan HB */
- WMI_HB_SET_TCP_PKT_FILTER_CMDID,
- /* set udp parameters for wlan HB */
- WMI_HB_SET_UDP_PARAMS_CMDID,
- /* set udp pkt filter for wlan HB */
- WMI_HB_SET_UDP_PKT_FILTER_CMDID,
- /* OIC ping keep alive */
- WMI_HB_OIC_PING_OFFLOAD_PARAM_CMDID,
- WMI_HB_OIC_PING_OFFLOAD_SET_ENABLE_CMDID,
- /* WMI commands related to DHCP Lease Renew Offload **/
- WMI_HB_DHCP_LEASE_RENEW_OFFLOAD_CMDID,
- /** Wlan RMC commands*/
- /** enable/disable RMC */
- WMI_RMC_SET_MODE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_RMC),
- /** configure action frame period */
- WMI_RMC_SET_ACTION_PERIOD_CMDID,
- /** For debug/future enhancement purposes only,
- * configures/finetunes RMC algorithms */
- WMI_RMC_CONFIG_CMDID,
- /** select manual leader */
- WMI_RMC_SET_MANUAL_LEADER_CMDID,
- /** WLAN MHF offload commands */
- /** enable/disable MHF offload */
- WMI_MHF_OFFLOAD_SET_MODE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_MHF_OFL),
- /** Plumb routing table for MHF offload */
- WMI_MHF_OFFLOAD_PLUMB_ROUTING_TBL_CMDID,
- /*location scan commands*/
- /*start batch scan*/
- WMI_BATCH_SCAN_ENABLE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_LOCATION_SCAN),
- /*stop batch scan*/
- WMI_BATCH_SCAN_DISABLE_CMDID,
- /*get batch scan result*/
- WMI_BATCH_SCAN_TRIGGER_RESULT_CMDID,
- /* OEM related cmd */
- WMI_OEM_REQ_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_OEM),
- WMI_OEM_REQUEST_CMDID, /* UNUSED */
- /* OEM related cmd used for Low Power ranging */
- WMI_LPI_OEM_REQ_CMDID,
- WMI_OEM_DMA_RING_CFG_REQ_CMDID,
- /** Command to handle OEM's opaque data */
- WMI_OEM_DATA_CMDID,
- /** Nan Request */
- WMI_NAN_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_NAN),
- /** Command to handle OEM's NAN specific opaque data */
- WMI_NAN_OEM_DATA_CMDID,
- /** Modem power state command */
- WMI_MODEM_POWER_STATE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_COEX),
- WMI_CHAN_AVOID_UPDATE_CMDID,
- WMI_COEX_CONFIG_CMDID,
- WMI_CHAN_AVOID_RPT_ALLOW_CMDID,
- WMI_COEX_GET_ANTENNA_ISOLATION_CMDID,
- WMI_SAR_LIMITS_CMDID,
- WMI_SAR_GET_LIMITS_CMDID,
- /** Dedicated BT Antenna Mode (DBAM) command */
- WMI_COEX_DBAM_CMDID,
- WMI_TAS_POWER_HISTORY_CMDID,
- WMI_ESL_EGID_CMDID,
- WMI_COEX_MULTIPLE_CONFIG_CMDID,
- /**
- * OBSS scan offload enable/disable commands
- * OBSS scan enable CMD will send to FW after VDEV UP, if these conditions are true:
- * 1. WMI_SERVICE_OBSS_SCAN is reported by FW in service ready,
- * 2. STA connect to a 2.4 GHz ht20/ht40 AP,
- * 3. AP enable 20/40 coexistence (OBSS_IE-74 can be found in beacon or association response)
- * If OBSS parameters from beacon changed, also use enable CMD to update parameters.
- * OBSS scan disable CMD will send to FW if have enabled when tearing down connection.
- */
- WMI_OBSS_SCAN_ENABLE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_OBSS_OFL),
- WMI_OBSS_SCAN_DISABLE_CMDID,
- WMI_OBSS_COLOR_COLLISION_DET_CONFIG_CMDID,
- /** LPI commands */
- /** LPI mgmt snooping config command */
- WMI_LPI_MGMT_SNOOPING_CONFIG_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_LPI),
- /** LPI scan start command */
- WMI_LPI_START_SCAN_CMDID,
- /** LPI scan stop command */
- WMI_LPI_STOP_SCAN_CMDID,
- /** ExtScan commands */
- WMI_EXTSCAN_START_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_EXTSCAN),
- WMI_EXTSCAN_STOP_CMDID,
- WMI_EXTSCAN_CONFIGURE_WLAN_CHANGE_MONITOR_CMDID,
- WMI_EXTSCAN_CONFIGURE_HOTLIST_MONITOR_CMDID,
- WMI_EXTSCAN_GET_CACHED_RESULTS_CMDID,
- WMI_EXTSCAN_GET_WLAN_CHANGE_RESULTS_CMDID,
- WMI_EXTSCAN_SET_CAPABILITIES_CMDID,
- WMI_EXTSCAN_GET_CAPABILITIES_CMDID,
- WMI_EXTSCAN_CONFIGURE_HOTLIST_SSID_MONITOR_CMDID,
- WMI_EXTSCAN_CONFIGURE_MAWC_CMDID,
- /** DHCP server offload commands */
- WMI_SET_DHCP_SERVER_OFFLOAD_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_DHCP_OFL),
- /** IPA Offload features related commands */
- WMI_IPA_OFFLOAD_ENABLE_DISABLE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_IPA),
- /** mDNS responder offload commands */
- WMI_MDNS_OFFLOAD_ENABLE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_MDNS_OFL),
- WMI_MDNS_SET_FQDN_CMDID,
- WMI_MDNS_SET_RESPONSE_CMDID,
- WMI_MDNS_GET_STATS_CMDID,
- WMI_MDNS_SET_STAIP_CMDID,
- /* enable/disable AP Authentication offload */
- WMI_SAP_OFL_ENABLE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_SAP_OFL),
- WMI_SAP_SET_BLACKLIST_PARAM_CMDID,
- WMI_SAP_OBSS_DETECTION_CFG_CMDID,
- /** Out-of-context-of-BSS (OCB) commands */
- WMI_OCB_SET_CONFIG_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_OCB),
- WMI_OCB_SET_UTC_TIME_CMDID,
- WMI_OCB_START_TIMING_ADVERT_CMDID,
- WMI_OCB_STOP_TIMING_ADVERT_CMDID,
- WMI_OCB_GET_TSF_TIMER_CMDID,
- WMI_DCC_GET_STATS_CMDID,
- WMI_DCC_CLEAR_STATS_CMDID,
- WMI_DCC_UPDATE_NDL_CMDID,
- /* System-On-Chip commands */
- WMI_SOC_SET_PCL_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_SOC),
- WMI_SOC_SET_HW_MODE_CMDID,
- WMI_SOC_SET_DUAL_MAC_CONFIG_CMDID,
- WMI_SOC_SET_ANTENNA_MODE_CMDID,
- /** enable/disable TQM reset (SOC level) feature */
- WMI_SOC_TQM_RESET_ENABLE_DISABLE_CMDID,
- /*
- * WMI Command to enable custom classification of packets in Tx path
- * and specifiy packets of interest for classification.
- */
- WMI_SOC_TX_PACKET_CUSTOM_CLASSIFY_CMDID,
- /* packet filter commands */
- WMI_PACKET_FILTER_CONFIG_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_PKT_FILTER),
- WMI_PACKET_FILTER_ENABLE_CMDID,
- /** Motion Aided WiFi Connectivity (MAWC) commands */
- WMI_MAWC_SENSOR_REPORT_IND_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_MAWC),
- /** WMI commands related to PMF 11w Offload */
- WMI_PMF_OFFLOAD_SET_SA_QUERY_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_PMF_OFFLOAD),
- /** WMI commands related to pkt filter (BPF) offload */
- WMI_BPF_GET_CAPABILITY_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_BPF_OFFLOAD),
- WMI_BPF_GET_VDEV_STATS_CMDID,
- WMI_BPF_SET_VDEV_INSTRUCTIONS_CMDID,
- WMI_BPF_DEL_VDEV_INSTRUCTIONS_CMDID,
- WMI_BPF_SET_VDEV_ACTIVE_MODE_CMDID,
- WMI_BPF_SET_VDEV_ENABLE_CMDID,
- WMI_BPF_SET_VDEV_WORK_MEMORY_CMDID,
- WMI_BPF_GET_VDEV_WORK_MEMORY_CMDID,
- /** WMI commands related to monitor mode. */
- WMI_MNT_FILTER_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_MONITOR),
- /** WMI commands related to regulatory offload */
- WMI_SET_CURRENT_COUNTRY_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_REGULATORY),
- WMI_11D_SCAN_START_CMDID,
- WMI_11D_SCAN_STOP_CMDID,
- WMI_SET_INIT_COUNTRY_CMDID,
- WMI_AFC_CMDID,
- /**
- * Nan Data commands
- * NDI - NAN Data Interface
- * NDP - NAN Data Path
- */
- /* Commands in prototyping phase */
- WMI_NDI_GET_CAP_REQ_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_PROTOTYPE),
- WMI_NDP_INITIATOR_REQ_CMDID,
- WMI_NDP_RESPONDER_REQ_CMDID,
- WMI_NDP_END_REQ_CMDID,
- WMI_NDP_CMDID,
- /** WMI commands related to HW data filtering **/
- WMI_HW_DATA_FILTER_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_HW_DATA_FILTER),
- /** WMI commands related to WLAN latency module **/
- WMI_WLM_CONFIG_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_WLM),
- /** WMI commands related to STA & AP TWT module **/
- WMI_TWT_ENABLE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_TWT),
- WMI_TWT_DISABLE_CMDID,
- WMI_TWT_ADD_DIALOG_CMDID,
- WMI_TWT_DEL_DIALOG_CMDID,
- WMI_TWT_PAUSE_DIALOG_CMDID,
- WMI_TWT_RESUME_DIALOG_CMDID,
- WMI_TWT_BTWT_INVITE_STA_CMDID,
- WMI_TWT_BTWT_REMOVE_STA_CMDID,
- WMI_TWT_NUDGE_DIALOG_CMDID,
- WMI_VDEV_SET_TWT_EDCA_PARAMS_CMDID, /* XPAN TWT */
- WMI_VDEV_GET_TWT_SESSION_STATS_INFO_CMDID,
- WMI_TWT_VDEV_CONFIG_CMDID,
- /** WMI commands related to motion detection **/
- WMI_MOTION_DET_CONFIG_PARAM_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_MOTION_DET),
- WMI_MOTION_DET_BASE_LINE_CONFIG_PARAM_CMDID,
- WMI_MOTION_DET_START_STOP_CMDID,
- WMI_MOTION_DET_BASE_LINE_START_STOP_CMDID,
- /** WMI commands related to OBSS PD Spatial Reuse **/
- WMI_PDEV_OBSS_PD_SPATIAL_REUSE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_SPATIAL_REUSE),
- WMI_PDEV_OBSS_PD_SPATIAL_REUSE_SET_DEF_OBSS_THRESH_CMDID,
- /** WMI commands related to High Precision Clock Synchronization feature **/
- WMI_HPCS_PULSE_START_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_HPCS_PULSE),
- /** WMI commands related to Audio Frame aggregation feature **/
- WMI_AUDIO_AGGR_ENABLE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_AUDIO),
- WMI_AUDIO_AGGR_ADD_GROUP_CMDID,
- WMI_AUDIO_AGGR_DEL_GROUP_CMDID,
- WMI_AUDIO_AGGR_SET_GROUP_RATE_CMDID,
- WMI_AUDIO_AGGR_SET_GROUP_RETRY_CMDID,
- WMI_AUDIO_AGGR_SET_GROUP_AUTO_RATE_CMDID,
- WMI_AUDIO_AGGR_SET_GROUP_PROBE_CMDID,
- WMI_AUDIO_AGGR_UPDATE_STA_GROUP_INFO_CMDID,
- WMI_AUDIO_AGGR_GET_STATISTICS_CMDID,
- WMI_AUDIO_AGGR_RESET_STATISTICS_CMDID,
- WMI_AUDIO_AGGR_SET_RTSCTS_CONFIG_CMDID,
- WMI_AUDIO_AGGR_SET_SCHED_METHOD_CMDID,
- WMI_AUDIO_AGGR_GET_SCHED_METHOD_CMDID,
- /** WMI commands related to Channel Frequency Response Capture **/
- WMI_CFR_CAPTURE_FILTER_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_CFR_CAPTURE),
- /** WMI commands related to Air Time Management feature **/
- /** ATF SSID GROUPING REQUEST command */
- WMI_ATF_SSID_GROUPING_REQUEST_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_ATM),
- /** WMM ATF Configuration for groups */
- WMI_ATF_GROUP_WMM_AC_CONFIG_REQUEST_CMDID,
- /** ATF Peer Extended Request command */
- WMI_PEER_ATF_EXT_REQUEST_CMDID,
- /** Vendor Defined WMI commands **/
- WMI_VENDOR_PDEV_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_VENDOR),
- WMI_VENDOR_VDEV_CMDID,
- WMI_VENDOR_PEER_CMDID,
- /** Further vendor cmd IDs can be added below **/
- /** WMI commands specific to Tid level Latency config **/
- /** VDEV Latency Config command */
- WMI_VDEV_TID_LATENCY_CONFIG_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_LATENCY),
- /** TID Latency Request command */
- WMI_PEER_TID_LATENCY_CONFIG_CMDID,
- /** WMI commands specific to MLO **/
- /** MLO link active / inactive Request command */
- WMI_MLO_LINK_SET_ACTIVE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_MLO),
- /** WMI cmd used to indicate hw_links part of MLO */
- WMI_MLO_SETUP_CMDID,
- /** WMI cmd used for init synchronization of hw_links part of MLO */
- WMI_MLO_READY_CMDID,
- /** WMI cmd used for tearing down a hw_link part of MLO */
- WMI_MLO_TEARDOWN_CMDID,
- /** WMI cmd used to setup Tid to Link Mapping for a MLO Peer */
- WMI_MLO_PEER_TID_TO_LINK_MAP_CMDID,
- /** WMI cmd for dynamically deleting a link from a MLD VAP */
- WMI_MLO_LINK_REMOVAL_CMDID,
- /** WMI cmd used to setup Tid to Link Mapping for a MLO VAP */
- WMI_MLO_AP_VDEV_TID_TO_LINK_MAP_CMDID,
- /** WMI cmd used to get mlo link information */
- WMI_MLO_VDEV_GET_LINK_INFO_CMDID,
- /** WMI cmd used to set link BSS parameters */
- WMI_MLO_LINK_SET_BSS_PARAMS_CMDID,
- /** WMI cmd to confirm the status of link switch request handling */
- WMI_MLO_LINK_SWITCH_CONF_CMDID,
- /** WMI cmd to migrate the primary link peer */
- WMI_MLO_PRIMARY_LINK_PEER_MIGRATION_CMDID,
- /** WMI cmd to recommand preferred link */
- WMI_MLO_LINK_RECOMMENDATION_CMDID,
- /** WMI commands specific to Service Aware WiFi (SAWF) */
- /** configure or reconfigure the parameters for a service class */
- WMI_SAWF_SVC_CLASS_CFG_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_SAWF),
- /** disable a service class */
- WMI_SAWF_SVC_CLASS_DISABLE_CMDID,
- /* WMI commands specific to ODD */
- WMI_ODD_LIVEDUMP_REQUEST_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_ODD),
- /* WMI commands specific to TDMA */
- WMI_TDMA_SCHEDULE_REQUEST_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_TDMA),
- /* WMI commands specific to manually-triggered UL */
- /** WMI Command to set Manual SU UL OFDMA trigger parameters */
- WMI_VDEV_SET_ULOFDMA_MANUAL_SU_TRIG_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_MANUAL_UL_TRIG),
- /** WMI Command to set Manual MU UL OFDMA trigger parameters */
- WMI_VDEV_SET_ULOFDMA_MANUAL_MU_TRIG_CMDID,
- } WMI_CMD_ID;
- typedef enum {
- /** WMI service is ready; after this event WMI messages can be sent/received */
- WMI_SERVICE_READY_EVENTID = 0x1,
- /** WMI is ready; after this event the wlan subsystem is initialized and can process commands. */
- WMI_READY_EVENTID,
- /** Specify what WMI services the target supports (for services beyond
- * what fits in the WMI_SERVICE_READY_EVENT message's wmi_service_bitmap)
- */
- WMI_SERVICE_AVAILABLE_EVENTID,
- /** Specify what numbers and kinds of interfaces (a.k.a. vdevs)
- * the target supports
- */
- WMI_IFACE_COMBINATION_IND_EVENTID,
- /** Scan specific events */
- WMI_SCAN_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_SCAN),
- /** Spectral scan FW params to host */
- WMI_PDEV_SSCAN_FW_PARAM_EVENTID,
- /** Spectral scan related event start/stop trigger to host */
- WMI_SSCAN_EVT_MESSAGE_EVENTID,
- /** Spectral scan capabilities advertisement */
- WMI_SPECTRAL_CAPABILITIES_EVENTID,
- /* PDEV specific events */
- /** TPC config for the current operating channel */
- WMI_PDEV_TPC_CONFIG_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_PDEV),
- /** Channel stats event */
- WMI_CHAN_INFO_EVENTID,
- /** PHY Error specific WMI event */
- WMI_PHYERR_EVENTID,
- /** eeprom dump event */
- WMI_PDEV_DUMP_EVENTID,
- /** traffic pause event */
- WMI_TX_PAUSE_EVENTID,
- /** DFS radar event */
- WMI_DFS_RADAR_EVENTID,
- /** track L1SS entry and residency event */
- WMI_PDEV_L1SS_TRACK_EVENTID,
- /** Report current temperature of the chip in Celcius degree */
- WMI_PDEV_TEMPERATURE_EVENTID,
- /** Extension of WMI_SERVICE_READY msg with extra target capability info */
- WMI_SERVICE_READY_EXT_EVENTID,
- /** FIPS test mode event */
- WMI_PDEV_FIPS_EVENTID,
- /** Channel hopping avoidance */
- WMI_PDEV_CHANNEL_HOPPING_EVENTID,
- /** CCK ANI level event */
- WMI_PDEV_ANI_CCK_LEVEL_EVENTID,
- /** OFDM ANI level event */
- WMI_PDEV_ANI_OFDM_LEVEL_EVENTID,
- /** Tx PPDU params */
- WMI_PDEV_TPC_EVENTID,
- /** NF Cal Power in DBR/DBM for all channels */
- WMI_PDEV_NFCAL_POWER_ALL_CHANNELS_EVENTID,
- /** SOC/PDEV events */
- WMI_PDEV_SET_HW_MODE_RESP_EVENTID,
- WMI_PDEV_HW_MODE_TRANSITION_EVENTID,
- WMI_PDEV_SET_MAC_CONFIG_RESP_EVENTID,
- /** Report ANT DIV feature's status */
- WMI_PDEV_ANTDIV_STATUS_EVENTID,
- /** Chip level Power stats */
- WMI_PDEV_CHIP_POWER_STATS_EVENTID,
- /** Power Save Failure Detected */
- WMI_PDEV_CHIP_POWER_SAVE_FAILURE_DETECTED_EVENTID,
- /* Event to report the switch count in csa of one or more VDEVs */
- WMI_PDEV_CSA_SWITCH_COUNT_STATUS_EVENTID,
- /** Report the caldata version to host */
- WMI_PDEV_CHECK_CAL_VERSION_EVENTID,
- /** Report chain RSSI and antenna index to host */
- WMI_PDEV_DIV_RSSI_ANTID_EVENTID,
- /** provide noise floor and cycle counts for a channel */
- WMI_PDEV_BSS_CHAN_INFO_EVENTID,
- /** Response received the ctl table to host */
- WMI_PDEV_UPDATE_CTLTABLE_EVENTID,
- WMI_PDEV_DMA_RING_CFG_RSP_EVENTID,
- WMI_PDEV_DMA_RING_BUF_RELEASE_EVENTID,
- /** WMI Event to deliver CTL Failsafe application */
- WMI_PDEV_CTL_FAILSAFE_CHECK_EVENTID,
- /* Event to report the switch count in BSS color of one or more VDEVs */
- WMI_PDEV_CSC_SWITCH_COUNT_STATUS_EVENTID,
- /* Event to send cold boot calibration data */
- WMI_PDEV_COLD_BOOT_CAL_DATA_EVENTID,
- /* Event to report a rogue ap info that is detected in fw */
- WMI_PDEV_RAP_INFO_EVENTID,
- WMI_CHAN_RF_CHARACTERIZATION_INFO_EVENTID,
- /** 2nd extension of SERVICE_READY msg with extra target capability info */
- WMI_SERVICE_READY_EXT2_EVENTID,
- /**
- * vdev restart response for multiple vdevs in response to
- * MULTIPLE_VDEV_RESTART_REQUEST
- */
- WMI_PDEV_MULTIPLE_VDEV_RESTART_RESP_EVENTID,
- /** WMI event in response to TPC STATS command */
- WMI_PDEV_GET_TPC_STATS_EVENTID,
- /* Event to get DPD status from HALPHY */
- WMI_PDEV_GET_DPD_STATUS_EVENTID,
- /* Event to get Calibration status from HALPHY */
- WMI_PDEV_GET_HALPHY_CAL_STATUS_EVENTID,
- /* Event to set halphy cal bitmap */
- WMI_PDEV_SET_HALPHY_CAL_BMAP_EVENTID,
- /* Event to get AOA phasedelta values from HALPHY */
- WMI_PDEV_AOA_PHASEDELTA_EVENTID,
- WMI_PDEV_FIPS_EXTEND_EVENTID,
- /* Event to send packet log decode information */
- WMI_PDEV_PKTLOG_DECODE_INFO_EVENTID,
- /**
- * RSSI dB to dBm conversion params info event
- * sent to host after channel/bw/chainmask change per pdev.
- */
- WMI_PDEV_RSSI_DBM_CONVERSION_PARAMS_INFO_EVENTID,
- /* Event to indicate Schedule tid queue suspended info */
- WMI_PDEV_SCHED_TIDQ_SUSP_INFO_EVENTID,
- /* Event to send target rate to power table update status */
- WMI_PDEV_SET_TGTR2P_TABLE_EVENTID,
- /* Event to indicate completion on RF path */
- WMI_PDEV_SET_RF_PATH_RESP_EVENTID,
- /* Event to get AOA phasedelta values for all gain tables from HALPHY */
- WMI_PDEV_ENHANCED_AOA_PHASEDELTA_EVENTID,
- /* Event to indicate the status of WiFi Radar calibration */
- WMI_PDEV_WIFI_RADAR_CAL_COMPLETION_STATUS_EVENTID,
- /* Event to indicate xLNA is enabled */
- WMI_PDEV_ENABLE_XLNA_EVENTID,
- /* VDEV specific events */
- /** VDEV started event in response to VDEV_START request */
- WMI_VDEV_START_RESP_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_VDEV),
- /** vdev stopped event , generated in response to VDEV_STOP request */
- WMI_VDEV_STOPPED_EVENTID,
- /* Indicate the set key (used for setting per
- * peer unicast and per vdev multicast)
- * operation has completed */
- WMI_VDEV_INSTALL_KEY_COMPLETE_EVENTID,
- /* NOTE: WMI_VDEV_MCC_BCN_INTERVAL_CHANGE_REQ_EVENTID would be deprecated. Please
- don't use this for any new implementations */
- /* Firmware requests dynamic change to a specific beacon interval for a specific vdev ID in MCC scenario.
- This request is valid only for vdevs operating in soft AP or P2P GO mode */
- WMI_VDEV_MCC_BCN_INTERVAL_CHANGE_REQ_EVENTID,
- /* Return the TSF timestamp of specified vdev */
- WMI_VDEV_TSF_REPORT_EVENTID,
- /* FW response to Host for vdev delete cmdid */
- WMI_VDEV_DELETE_RESP_EVENTID,
- /* DISA feature: FW response to Host with encrypted/decrypted 802.11 DISA frame */
- WMI_VDEV_ENCRYPT_DECRYPT_DATA_RESP_EVENTID,
- /** event to report mac randomization success **/
- WMI_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_STATUS_EVENTID,
- /* event for ARP stats collection */
- WMI_VDEV_GET_ARP_STAT_EVENTID,
- /** get tx power event in response to VDEV_GET_TX_POWER request */
- WMI_VDEV_GET_TX_POWER_EVENTID,
- WMI_VDEV_BCN_RECEPTION_STATS_EVENTID,
- /* provide LTE-Coex state */
- WMI_VDEV_GET_MWS_COEX_STATE_EVENTID,
- /* provide LTE-Coex Dynamic Power Back-off info */
- WMI_VDEV_GET_MWS_COEX_DPWB_STATE_EVENTID,
- /* provide LTE-Coex TDM info */
- WMI_VDEV_GET_MWS_COEX_TDM_STATE_EVENTID,
- /* provide LTE-Coex IDRx info */
- WMI_VDEV_GET_MWS_COEX_IDRX_STATE_EVENTID,
- /* provide LTE-Coex antenna sharing info */
- WMI_VDEV_GET_MWS_COEX_ANTENNA_SHARING_STATE_EVENTID,
- /* Event to handle FW offloaded mgmt packets */
- WMI_VDEV_MGMT_OFFLOAD_EVENTID,
- /* FW response to Host for delete all peer cmdid */
- WMI_VDEV_DELETE_ALL_PEER_RESP_EVENTID,
- /** Indicates host to start/stop strobing for QTIMER periodically */
- WMI_VDEV_AUDIO_SYNC_START_STOP_EVENTID,
- /** Sends the final offset in the QTIMERs of both master and slave */
- WMI_VDEV_AUDIO_SYNC_Q_MASTER_SLAVE_OFFSET_EVENTID,
- /** VDEV_SEND_BIG_DATA_EVENT IS DEPRECATED - DO NOT USE */
- WMI_VDEV_SEND_BIG_DATA_EVENTID,
- /** send BIG DATA stats to host phase 2 */
- WMI_VDEV_SEND_BIG_DATA_P2_EVENTID,
- /** Latency related information received from beacon IE */
- WMI_VDEV_BCN_LATENCY_EVENTID,
- /** Disconnect request from FW */
- WMI_VDEV_DISCONNECT_EVENTID,
- /** Send Smart Monitor related params to host */
- WMI_VDEV_SMART_MONITOR_EVENTID,
- /** Send status of vdev mac address update request to host */
- WMI_VDEV_UPDATE_MAC_ADDR_CONF_EVENTID,
- /** event to report latency level honored by FW */
- WMI_VDEV_LATENCY_LEVEL_EVENTID,
- /** Result from firmware about completed scheduler probing */
- WMI_VDEV_SCHED_MODE_PROBE_RESP_EVENTID,
- /** Connect response */
- WMI_VDEV_OOB_CONNECTION_RESP_EVENTID,
- /* peer specific events */
- /** FW reauet to kick out the station for reasons like inactivity,lack of response ..etc */
- WMI_PEER_STA_KICKOUT_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_PEER),
- /** Peer Info Event with data_rate, RSSI, tx_fail_cnt etc */
- WMI_PEER_INFO_EVENTID,
- /** Event indicating that TX fail count reaching threshold */
- WMI_PEER_TX_FAIL_CNT_THR_EVENTID,
- /* Return the estimate link speed for the Peer specified in the
- * WMI_PEER_GET_ESTIMATED_LINKSPEED_CMDID command.
- */
- WMI_PEER_ESTIMATED_LINKSPEED_EVENTID,
- /* Return the peer state
- * WMI_PEER_SET_PARAM_CMDID, WMI_PEER_AUTHORIZE
- */
- WMI_PEER_STATE_EVENTID,
- /* Peer Assoc Conf event to confirm fw had received PEER_ASSOC_CMD.
- * After that, host will send Mx message.
- * Otherwise, host will pause any Mx(STA:M2/M4) message
- */
- WMI_PEER_ASSOC_CONF_EVENTID,
- /* FW response to Host for peer delete cmdid */
- WMI_PEER_DELETE_RESP_EVENTID,
- /** Valid rate code list for peer */
- WMI_PEER_RATECODE_LIST_EVENTID,
- WMI_WDS_PEER_EVENTID,
- WMI_PEER_STA_PS_STATECHG_EVENTID,
- /** Peer Ant Div Info Event with RSSI per chain, etc */
- WMI_PEER_ANTDIV_INFO_EVENTID,
- /*
- * WMI_PEER_RESERVED_EVENTID
- * These values are used for placeholders, to allow the subsequent
- * WMI_PEER_OPER_MODE_CHANGE_EVENTID constant to have the same value
- * as it had in its original location, when it was mistakenly placed
- * amongst the WMI_PEER CMDID defs.
- *
- * These WMI_PEER_RESERVED values can be replaced with actual WMI peer
- * event message IDs, though it will be simpler to instead add new
- * WMI_PEER EVENTID defs at the end of the WMI_GRP_PEER WMI_EVT_GRP.
- */
- WMI_PEER_RESERVED0_EVENTID,
- WMI_PEER_RESERVED1_EVENTID,
- WMI_PEER_RESERVED2_EVENTID,
- WMI_PEER_RESERVED3_EVENTID,
- WMI_PEER_RESERVED4_EVENTID,
- WMI_PEER_RESERVED5_EVENTID,
- WMI_PEER_RESERVED6_EVENTID,
- WMI_PEER_RESERVED7_EVENTID,
- WMI_PEER_RESERVED8_EVENTID,
- WMI_PEER_RESERVED9_EVENTID,
- WMI_PEER_RESERVED10_EVENTID,
- /** Peer operating mode change indication sent to host to update stats */
- WMI_PEER_OPER_MODE_CHANGE_EVENTID,
- /** report the current tx PN for the peer */
- WMI_PEER_TX_PN_RESPONSE_EVENTID,
- WMI_PEER_CFR_CAPTURE_EVENTID,
- /* Peer Create Conf event to confirm fw had received WMI_PEER_CREATE_CMDID
- * and status of WMI_PEER_CREATE_CMDID.
- */
- WMI_PEER_CREATE_CONF_EVENTID,
- WMI_PEER_RX_PN_RESPONSE_EVENTID,
- /* beacon/mgmt specific events */
- /** RX management frame. the entire frame is carried along with the event. */
- WMI_MGMT_RX_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_MGMT),
- /** software beacon alert event to Host requesting host to Queue a beacon for transmission
- use only in host beacon mode */
- WMI_HOST_SWBA_EVENTID,
- /** beacon tbtt offset event indicating the tsf offset of the tbtt from the theoretical value.
- tbtt offset is normally 0 and will be non zero if there are multiple VDEVs operating in
- staggered beacon transmission mode */
- WMI_TBTTOFFSET_UPDATE_EVENTID,
- /** event after the first beacon is transmitted following
- a change in the template.*/
- WMI_OFFLOAD_BCN_TX_STATUS_EVENTID,
- /** event after the first probe response is transmitted following
- a change in the template.*/
- WMI_OFFLOAD_PROB_RESP_TX_STATUS_EVENTID,
- /** Event for Mgmt TX completion event */
- WMI_MGMT_TX_COMPLETION_EVENTID,
- /** Event for Mgmt TX bundle completion event */
- WMI_MGMT_TX_BUNDLE_COMPLETION_EVENTID,
- /** vdev_map used in WMI_TBTTOFFSET_UPDATE_EVENTID supports max 32 vdevs.
- * Use this event if number of vdevs > 32.
- */
- WMI_TBTTOFFSET_EXT_UPDATE_EVENTID,
- /** Event for offchan data TX completion event */
- WMI_OFFCHAN_DATA_TX_COMPLETION_EVENTID,
- /** software FILS Discovery Frame alert event to Host, requesting host to Queue an FD frame for transmission */
- WMI_HOST_SWFDA_EVENTID,
- /** software beacon alert event to Host requesting host to Queue a beacon for transmission.
- * Used only in host beacon mode. */
- WMI_HOST_SWBA_V2_EVENTID,
- /** Event for QoS null frame TX completion */
- WMI_QOS_NULL_FRAME_TX_COMPLETION_EVENTID,
- /** WMI event for Firmware Consumed/Dropped Rx management frames indication */
- WMI_MGMT_RX_FW_CONSUMED_EVENTID,
- /** WMI event for indication to Host to reap the MGMT SRNG */
- WMI_MGMT_SRNG_REAP_EVENTID,
- /* ADDBA Related WMI Events*/
- /** Indication the completion of the prior
- WMI_PEER_TID_DELBA_CMDID(initiator) */
- WMI_TX_DELBA_COMPLETE_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_BA_NEG),
- /** Indication the completion of the prior
- *WMI_PEER_TID_ADDBA_CMDID(initiator) */
- WMI_TX_ADDBA_COMPLETE_EVENTID,
- /* Seq num returned from hw for a sta/tid pair */
- WMI_BA_RSP_SSN_EVENTID,
- /* Aggregation state requested by BTC */
- WMI_AGGR_STATE_TRIG_EVENTID,
- /** Roam event to trigger roaming on host */
- WMI_ROAM_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_ROAM),
- /** matching AP found from list of profiles */
- WMI_PROFILE_MATCH,
- /** roam synch event */
- WMI_ROAM_SYNCH_EVENTID,
- /** roam synch frame event */
- WMI_ROAM_SYNCH_FRAME_EVENTID,
- /** various roam scan stats */
- WMI_ROAM_SCAN_STATS_EVENTID,
- /** Blacklisted AP information event */
- WMI_ROAM_BLACKLIST_EVENTID,
- /** Roam Pre-Authentication start event */
- WMI_ROAM_PREAUTH_START_EVENTID,
- /** Roaming PMKID request event */
- WMI_ROAM_PMKID_REQUEST_EVENTID,
- /** roam stats */
- WMI_ROAM_STATS_EVENTID,
- /** Roam scan channels list */
- WMI_ROAM_SCAN_CHANNEL_LIST_EVENTID,
- /** Firmware roam capability information */
- WMI_ROAM_CAPABILITY_REPORT_EVENTID,
- /** Send AP frame content like beacon/probe resp etc.. */
- WMI_ROAM_FRAME_EVENTID,
- /** Send firmware ini value corresponding to param_id */
- WMI_ROAM_GET_VENDOR_CONTROL_PARAM_EVENTID,
- /** roam synch key event */
- WMI_ROAM_SYNCH_KEY_EVENTID,
- /** P2P disc found */
- WMI_P2P_DISC_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_P2P),
- /** send noa info to host when noa is changed for beacon tx offload enable */
- WMI_P2P_NOA_EVENTID,
- /** send p2p listen offload stopped event with different reason */
- WMI_P2P_LISTEN_OFFLOAD_STOPPED_EVENTID,
- /** send event to AP assisted P2P GO to change current DFS channel */
- WMI_P2P_CLI_DFS_AP_BMISS_DETECTED_EVENTID,
- /** Send EGAP Info to host */
- WMI_AP_PS_EGAP_INFO_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_AP_PS),
- /* send pdev resume event to host after pdev resume. */
- WMI_PDEV_RESUME_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_SUSPEND),
- /** WOW wake up host event.generated in response to WMI_WOW_HOSTWAKEUP_FROM_SLEEP_CMDID.
- will cary wake reason */
- WMI_WOW_WAKEUP_HOST_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_WOW),
- WMI_D0_WOW_DISABLE_ACK_EVENTID,
- WMI_WOW_INITIAL_WAKEUP_EVENTID,
- WMI_WOW_COAP_BUF_INFO_EVENTID,
- /* RTT related event ID */
- /** RTT measurement report */
- WMI_RTT_MEASUREMENT_REPORT_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_RTT),
- /** TSF measurement report */
- WMI_TSF_MEASUREMENT_REPORT_EVENTID,
- /** RTT error report */
- WMI_RTT_ERROR_REPORT_EVENTID,
- /** RTT 11az PASN peer create request */
- WMI_RTT_PASN_PEER_CREATE_REQ_EVENTID,
- /** RTT 11az PASN peer delete event */
- WMI_RTT_PASN_PEER_DELETE_EVENTID,
- /*STATS specific events*/
- /** txrx stats event requested by host */
- WMI_STATS_EXT_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_STATS),
- /** FW iface link stats Event */
- WMI_IFACE_LINK_STATS_EVENTID,
- /** FW iface peer link stats Event */
- WMI_PEER_LINK_STATS_EVENTID,
- /** FW Update radio stats Event */
- WMI_RADIO_LINK_STATS_EVENTID,
- /** Firmware memory dump Complete event*/
- WMI_UPDATE_FW_MEM_DUMP_EVENTID,
- /** Event indicating the DIAG logs/events supported by FW */
- WMI_DIAG_EVENT_LOG_SUPPORTED_EVENTID,
- /** Instantaneous RSSI event */
- WMI_INST_RSSI_STATS_EVENTID,
- /** FW update tx power levels event */
- WMI_RADIO_TX_POWER_LEVEL_STATS_EVENTID,
- /** This event is used to report wlan stats to host.
- * It is triggered under 3 conditions:
- * (a) Periodic timer timed out, based on the period specified
- * by WMI_PDEV_PARAM_STATS_OBSERVATION_PERIOD
- * (b) Whenever any of the (enabled) stats thresholds specified
- * in the WMI_PDEV_SET_STATS_THRESHOLD_CMD message is exceeded
- * within the current stats period.
- * (c) In response to the one-time wlan stats request of
- * WMI_REQUEST_WLAN_STATS_CMDID from host.
- *
- * If this event is triggered by condition a or b,
- * the stats counters are cleared at the start of each period.
- * But if it is triggered by condition c, stats counters won't be cleared.
- */
- WMI_REPORT_STATS_EVENTID,
- /** Event indicating RCPI of the peer requested by host in the WMI_REQUEST_RCPI_CMDID */
- WMI_UPDATE_RCPI_EVENTID,
- /** This event is used to respond to WMI_REQUEST_PEER_STATS_INFO_CMDID
- * and report peer stats info to host */
- WMI_PEER_STATS_INFO_EVENTID,
- /** This event is used to respond to WMI_REQUEST_RADIO_CHAN_STATS_CMDID
- * and report radio channel stats to host */
- WMI_RADIO_CHAN_STATS_EVENTID,
- /** This event is used to respond to WMI_REQUEST_WLM_STATS_CMDID
- * and report WLM (WLAN latency manager) stats info to host */
- WMI_WLM_STATS_EVENTID,
- /** This event is used to respond to WMI_REQUEST_CTRL_PATH_STATS_CMDID
- * and report stats info to host */
- WMI_CTRL_PATH_STATS_EVENTID,
- /** This event is used to respond to
- * WMI_REQUEST_HALPHY_CTRL_PATH_STATS_CMDID and report stats info to host
- */
- WMI_HALPHY_CTRL_PATH_STATS_EVENTID,
- /** FW IPA link stats Event */
- WMI_IPA_LINK_STATS_EVENTID,
- /* NLO specific events */
- /** NLO match event after the first match */
- WMI_NLO_MATCH_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_NLO_OFL),
- /** NLO scan complete event */
- WMI_NLO_SCAN_COMPLETE_EVENTID,
- /** APFIND specific events */
- WMI_APFIND_EVENTID,
- /** passpoint network match event */
- WMI_PASSPOINT_MATCH_EVENTID,
- /** GTK offload stautus event requested by host */
- WMI_GTK_OFFLOAD_STATUS_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_GTK_OFL),
- /** GTK offload failed to rekey event */
- WMI_GTK_REKEY_FAIL_EVENTID,
- /* CSA handling event */
- WMI_CSA_HANDLING_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_CSA_OFL),
- /* CSA IE received event */
- WMI_CSA_IE_RECEIVED_EVENTID,
- /*chatter query reply event*/
- WMI_CHATTER_PC_QUERY_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_CHATTER),
- /** DFS related events */
- WMI_PDEV_DFS_RADAR_DETECTION_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_DFS),
- /** Indicate channel-availability-check completion event to host */
- WMI_VDEV_DFS_CAC_COMPLETE_EVENTID,
- /** Indicate off-channel-availability-check completion event to host */
- WMI_VDEV_ADFS_OCAC_COMPLETE_EVENTID,
- /** echo event in response to echo command */
- WMI_ECHO_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_MISC),
- /* !!IMPORTANT!!
- * If you need to add a new WMI event ID to the WMI_GRP_MISC sub-group,
- * please make sure you add it BEHIND WMI_PDEV_UTF_EVENTID,
- * as we MUST have a fixed value here to maintain compatibility between
- * UTF and the ART2 driver
- */
- /** UTF specific WMI event */
- WMI_PDEV_UTF_EVENTID,
- /** event carries buffered debug messages */
- WMI_DEBUG_MESG_EVENTID,
- /** FW stats(periodic or on shot) */
- WMI_UPDATE_STATS_EVENTID,
- /** debug print message used for tracing FW code while debugging */
- WMI_DEBUG_PRINT_EVENTID,
- /** DCS wlan or non-wlan interference event
- */
- WMI_DCS_INTERFERENCE_EVENTID,
- /** VI spoecific event */
- WMI_PDEV_QVIT_EVENTID,
- /** FW code profile data in response to profile request */
- WMI_WLAN_PROFILE_DATA_EVENTID,
- /* Factory Testing Mode request event
- * used for integrated chipsets */
- WMI_PDEV_FTM_INTG_EVENTID,
- /* avoid list of frequencies .
- */
- WMI_WLAN_FREQ_AVOID_EVENTID,
- /* Indicate the keepalive parameters */
- WMI_VDEV_GET_KEEPALIVE_EVENTID,
- /*Thermal Management event*/
- WMI_THERMAL_MGMT_EVENTID,
- /* Container for DIAG event and log data */
- WMI_DIAG_DATA_CONTAINER_EVENTID,
- /* host auto shutdown event */
- WMI_HOST_AUTO_SHUTDOWN_EVENTID,
- /*update mib counters together with WMI_UPDATE_STATS_EVENTID*/
- WMI_UPDATE_WHAL_MIB_STATS_EVENTID,
- /*update ht/vht info based on vdev (rx and tx NSS and preamble)*/
- WMI_UPDATE_VDEV_RATE_STATS_EVENTID,
- WMI_DIAG_EVENTID,
- /** Set OCB Sched Response, deprecated */
- WMI_OCB_SET_SCHED_EVENTID,
- /** event to indicate the flush of the buffered debug messages is complete*/
- WMI_DEBUG_MESG_FLUSH_COMPLETE_EVENTID,
- /** event to report mix/max RSSI breach events */
- WMI_RSSI_BREACH_EVENTID,
- /** event to report completion of data storage into flash memory */
- WMI_TRANSFER_DATA_TO_FLASH_COMPLETE_EVENTID,
- /** event to report SCPC calibrated data to host */
- WMI_PDEV_UTF_SCPC_EVENTID,
- /** event to provide requested data from the target's flash memory */
- WMI_READ_DATA_FROM_FLASH_EVENTID,
- /** event to report rx aggregation failure frame information */
- WMI_REPORT_RX_AGGR_FAILURE_EVENTID,
- /** event to upload a PKGID to host to identify chip for various products */
- WMI_PKGID_EVENTID,
- /* Thermal Throttling stats event id for every pdev and zones, etc */
- WMI_THERM_THROT_STATS_EVENTID,
- /* WMI UNIT TEST event */
- WMI_UNIT_TEST_EVENTID,
- /** event to report result of host configure SAR2 */
- WMI_SAR2_RESULT_EVENTID,
- /** event to get TX power per input HALPHY parameters */
- WMI_GET_TPC_POWER_EVENTID,
- /** event to provide MU-EDCA Parameters (to update host's beacon config) */
- WMI_MUEDCA_PARAMS_CONFIG_EVENTID,
- /** event to get ELNA BYPASS status */
- WMI_GET_ELNA_BYPASS_EVENTID,
- /** event to report ANI level of the channels */
- WMI_GET_CHANNEL_ANI_EVENTID,
- /* WMI event to available scratch registers */
- WMI_PMM_AVAILABLE_SCRATCH_REG_EVENTID,
- /* WMI event to scratch registers allocation */
- WMI_PMM_SCRATCH_REG_ALLOCATION_COMPLETE_EVENTID,
- /* WMI event to indicate Helath Monitor Infra init done */
- WMI_HEALTH_MON_INIT_DONE_EVENTID,
- /* WMI XGAP enable command response event ID */
- WMI_XGAP_ENABLE_COMPLETE_EVENTID,
- /* T2H HPA message */
- WMI_HPA_EVENTID,
- /* WMI standalone command complete Event */
- WMI_VDEV_STANDALONE_SOUND_COMPLETE_EVENTID,
- /* WMI evt to indicate switch type either to WLAN(XPAN) or non_WLAN(BLE) */
- WMI_AUDIO_TRANSPORT_SWITCH_TYPE_EVENTID,
- /** Usynchronized Service Discovery:
- * Send USD event with USD mode status as success or fail.
- */
- WMI_USD_SERVICE_EVENTID,
- /* GPIO Event */
- WMI_GPIO_INPUT_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_GPIO),
- /** upload H_CV info WMI event
- * to indicate uploaded H_CV info to host
- */
- WMI_UPLOADH_EVENTID,
- /** capture H info WMI event
- * to indicate captured H info to host
- */
- WMI_CAPTUREH_EVENTID,
- /* hw RFkill */
- WMI_RFKILL_STATE_CHANGE_EVENTID,
- /* Smart Antenna Controller status */
- WMI_SMARTANT_STATE_CHANGE_EVENTID,
- WMI_GPIO_STATE_RES_EVENTID,
- /* TDLS Event */
- WMI_TDLS_PEER_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_TDLS),
- /* Resmgr Event */
- /* deliver the new channel time quota for home channels */
- WMI_RESMGR_CHAN_TIME_QUOTA_CHANGED_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_RESMGR),
- /** STA SMPS Event */
- /** force SMPS mode */
- WMI_STA_SMPS_FORCE_MODE_COMPLETE_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_STA_SMPS),
- /*location scan event*/
- /*report the firmware's capability of batch scan*/
- WMI_BATCH_SCAN_ENABLED_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_LOCATION_SCAN),
- /*batch scan result*/
- WMI_BATCH_SCAN_RESULT_EVENTID,
- /* OEM Event */
- WMI_OEM_CAPABILITY_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_OEM), /*DEPRECATED*/
- WMI_OEM_MEASUREMENT_REPORT_EVENTID, /* DEPRECATED */
- WMI_OEM_ERROR_REPORT_EVENTID, /* DEPRECATED */
- WMI_OEM_RESPONSE_EVENTID,
- WMI_OEM_DMA_RING_CFG_RSP_EVENTID,
- WMI_OEM_DMA_BUF_RELEASE_EVENTID,
- WMI_OEM_DATA_EVENTID,
- /* NAN Event */
- WMI_NAN_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_NAN),
- WMI_NAN_DISC_IFACE_CREATED_EVENTID,
- WMI_NAN_DISC_IFACE_DELETED_EVENTID,
- WMI_NAN_STARTED_CLUSTER_EVENTID,
- WMI_NAN_JOINED_CLUSTER_EVENTID,
- WMI_NAN_DMESG_EVENTID,
- /** Event to deliver OEM's NAN specific opaque data */
- WMI_NAN_OEM_DATA_EVENTID,
- /* Coex Event */
- WMI_COEX_REPORT_ANTENNA_ISOLATION_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_COEX),
- WMI_SAR_GET_LIMITS_EVENTID,
- /** Dedicated BT Antenna Mode (DBAM) complete event */
- WMI_COEX_DBAM_COMPLETE_EVENTID,
- WMI_TAS_POWER_HISTORY_EVENTID,
- /* LPI Event */
- WMI_LPI_RESULT_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_LPI),
- WMI_LPI_STATUS_EVENTID,
- WMI_LPI_HANDOFF_EVENTID,
- /* ExtScan events */
- WMI_EXTSCAN_START_STOP_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_EXTSCAN),
- WMI_EXTSCAN_OPERATION_EVENTID,
- WMI_EXTSCAN_TABLE_USAGE_EVENTID,
- WMI_EXTSCAN_CACHED_RESULTS_EVENTID,
- WMI_EXTSCAN_WLAN_CHANGE_RESULTS_EVENTID,
- WMI_EXTSCAN_HOTLIST_MATCH_EVENTID,
- WMI_EXTSCAN_CAPABILITIES_EVENTID,
- WMI_EXTSCAN_HOTLIST_SSID_MATCH_EVENTID,
- /* mDNS offload events */
- WMI_MDNS_STATS_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_MDNS_OFL),
- /* SAP Authentication offload events */
- WMI_SAP_OFL_ADD_STA_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_SAP_OFL),
- WMI_SAP_OFL_DEL_STA_EVENTID,
- WMI_SAP_OBSS_DETECTION_REPORT_EVENTID,
- /* OBSS Offloads events */
- WMI_OBSS_COLOR_COLLISION_DETECTION_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_OBSS_OFL),
- /** Out-of-context-of-bss (OCB) events */
- WMI_OCB_SET_CONFIG_RESP_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_OCB),
- WMI_OCB_GET_TSF_TIMER_RESP_EVENTID,
- WMI_DCC_GET_STATS_RESP_EVENTID,
- WMI_DCC_UPDATE_NDL_RESP_EVENTID,
- WMI_DCC_STATS_EVENTID,
- /* System-On-Chip events */
- WMI_SOC_SET_HW_MODE_RESP_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_SOC),
- WMI_SOC_HW_MODE_TRANSITION_EVENTID,
- WMI_SOC_SET_DUAL_MAC_CONFIG_RESP_EVENTID,
- /** Motion Aided WiFi Connectivity (MAWC) events */
- WMI_MAWC_ENABLE_SENSOR_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_MAWC),
- /** pkt filter (BPF) offload relevant events */
- WMI_BPF_CAPABILIY_INFO_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_BPF_OFFLOAD),
- WMI_BPF_VDEV_STATS_INFO_EVENTID,
- WMI_BPF_GET_VDEV_WORK_MEMORY_RESP_EVENTID,
- /* RMC specific event */
- /* RMC manual leader selected event */
- WMI_RMC_NEW_LEADER_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_RMC),
- /** WMI events related to regulatory offload */
- WMI_REG_CHAN_LIST_CC_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_REGULATORY),
- WMI_11D_NEW_COUNTRY_EVENTID,
- WMI_REG_CHAN_LIST_CC_EXT_EVENTID,
- WMI_AFC_EVENTID,
- WMI_REG_CHAN_LIST_CC_EXT2_EVENTID, /* DEPRECATED */
- /** Events for TWT(Target Wake Time) of STA and AP */
- WMI_TWT_ENABLE_COMPLETE_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_TWT),
- WMI_TWT_DISABLE_COMPLETE_EVENTID,
- WMI_TWT_ADD_DIALOG_COMPLETE_EVENTID,
- WMI_TWT_DEL_DIALOG_COMPLETE_EVENTID,
- WMI_TWT_PAUSE_DIALOG_COMPLETE_EVENTID,
- WMI_TWT_RESUME_DIALOG_COMPLETE_EVENTID,
- WMI_TWT_BTWT_INVITE_STA_COMPLETE_EVENTID,
- WMI_TWT_BTWT_REMOVE_STA_COMPLETE_EVENTID,
- WMI_TWT_SESSION_STATS_EVENTID,
- WMI_TWT_NUDGE_DIALOG_COMPLETE_EVENTID,
- WMI_TWT_NOTIFY_EVENTID,
- WMI_TWT_ACK_EVENTID,
- /** Events in Prototyping phase */
- WMI_NDI_CAP_RSP_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_PROTOTYPE),
- WMI_NDP_INITIATOR_RSP_EVENTID,
- WMI_NDP_RESPONDER_RSP_EVENTID,
- WMI_NDP_END_RSP_EVENTID,
- WMI_NDP_INDICATION_EVENTID,
- WMI_NDP_CONFIRM_EVENTID,
- WMI_NDP_END_INDICATION_EVENTID,
- WMI_WLAN_COEX_BT_ACTIVITY_EVENTID,
- WMI_NDL_SCHEDULE_UPDATE_EVENTID,
- WMI_NDP_EVENTID,
- /** WMI events related to motion detection */
- WMI_MOTION_DET_HOST_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_MOTION_DET),
- WMI_MOTION_DET_BASE_LINE_HOST_EVENTID,
- /** WMI events related to Estimation of Service Parameters (802.11mc) */
- WMI_ESP_ESTIMATE_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_ESP),
- /** WMI events related to Audio Frame aggregation feature **/
- WMI_AUDIO_AGGR_REPORT_STATISTICS_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_AUDIO),
- WMI_AUDIO_AGGR_SCHED_METHOD_EVENTID,
- /** Vendor defined WMI events **/
- WMI_VENDOR_PDEV_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_VENDOR),
- WMI_VENDOR_VDEV_EVENTID,
- WMI_VENDOR_PEER_EVENTID,
- /** Further vendor event IDs can be added below **/
- /** WMI event specific to MLO **/
- /** MLO link active / inactive response event */
- WMI_MLO_LINK_SET_ACTIVE_RESP_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_MLO),
- /* Response event for MLO setup cmd */
- WMI_MLO_SETUP_COMPLETE_EVENTID,
- /* Response event for MLO teardown cmd */
- WMI_MLO_TEARDOWN_COMPLETE_EVENTID,
- /* Response event for Link Removal Cmd */
- WMI_MLO_LINK_REMOVAL_EVENTID,
- /* Response event for WMI_MLO_AP_VDEV_TID_TO_LINK_MAP_CMDID */
- WMI_MLO_AP_VDEV_TID_TO_LINK_MAP_EVENTID,
- /* Response event for WMI_MLO_VDEV_GET_LINK_INFO_CMDID */
- WMI_MLO_VDEV_LINK_INFO_EVENTID,
- /** request host to do T2LM neg to the un-disabled link */
- WMI_MLO_LINK_DISABLE_REQUEST_EVENTID,
- /** request host to switch to new link for specified vdev */
- WMI_MLO_LINK_SWITCH_REQUEST_EVENTID,
- /** Response event for WMI_MLO_PRIMARY_LINK_PEER_MIGRATION_CMDID */
- WMI_MLO_PRIMARY_LINK_PEER_MIGRATION_EVENTID,
- /** WMI Event to spcify reason for link state switch */
- WMI_MLO_LINK_STATE_SWITCH_EVENTID,
- /** WMI Event to sync link info to host */
- WMI_MLO_LINK_INFO_SYNC_EVENTID,
- /** WMI Event to announce host about the TLT update for TID */
- WMI_MLO_TLT_SELECTION_FOR_TID_SPRAY_EVENTID,
- /** WMI Event to send the status of T2LM configured */
- WMI_MLO_PEER_TID_TO_LINK_MAP_EVENTID,
- /* WMI event specific to Quiet handling */
- WMI_QUIET_HANDLING_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_QUIET_OFL),
- /* ODD events */
- WMI_ODD_LIVEDUMP_RESPONSE_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_ODD),
- /** WMI events specific to manually-triggered UL */
- /**
- * WMI Event to send Manual UL OFDMA Trigger frame status feedback to Host
- */
- WMI_MANUAL_UL_OFDMA_TRIG_FEEDBACK_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_MANUAL_UL_TRIG),
- /**
- * WMI Event to send Manual UL OFDMA Trigger frame RX PPDU info to Host
- */
- WMI_MANUAL_UL_OFDMA_TRIG_RX_PEER_USERINFO_EVENTID,
- } WMI_EVT_ID;
- /* defines for OEM message sub-types */
- #define WMI_OEM_CAPABILITY_REQ 0x01
- #define WMI_OEM_CAPABILITY_RSP 0x02
- #define WMI_OEM_MEASUREMENT_REQ 0x03
- #define WMI_OEM_MEASUREMENT_RSP 0x04
- #define WMI_OEM_ERROR_REPORT_RSP 0x05
- #define WMI_OEM_NAN_MEAS_REQ 0x06
- #define WMI_OEM_NAN_MEAS_RSP 0x07
- #define WMI_OEM_NAN_PEER_INFO 0x08
- #define WMI_OEM_CONFIGURE_LCR 0x09
- #define WMI_OEM_CONFIGURE_LCI 0x0A
- #define WMI_CHAN_LIST_TAG 0x1
- #define WMI_SSID_LIST_TAG 0x2
- #define WMI_BSSID_LIST_TAG 0x3
- #define WMI_IE_TAG 0x4
- #define WMI_SCAN_START_OFFSET_TAG 0x5
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_channel */
- /** primary 20 MHz channel frequency in mhz */
- A_UINT32 mhz;
- /** Center frequency 1 in MHz*/
- A_UINT32 band_center_freq1;
- /** Center frequency 2 in MHz - valid only for 11acvht 80plus80 mode*/
- A_UINT32 band_center_freq2;
- /** channel info described below */
- A_UINT32 info;
- /** contains min power, max power, reg power and reg class id. */
- A_UINT32 reg_info_1;
- /** contains antennamax, max bandwidth */
- A_UINT32 reg_info_2;
- } wmi_channel;
- typedef enum {
- WMI_CHANNEL_CHANGE_CAUSE_NONE = 0,
- WMI_CHANNEL_CHANGE_CAUSE_CSA,
- } wmi_channel_change_cause;
- /** channel info consists of 6 bits of channel mode */
- #define WMI_SET_CHANNEL_MODE(pwmi_channel,val) do { \
- (pwmi_channel)->info &= 0xffffffc0; \
- (pwmi_channel)->info |= (val); \
- } while (0)
- #define WMI_GET_CHANNEL_MODE(pwmi_channel) ((pwmi_channel)->info & 0x0000003f)
- #define WMI_CHAN_FLAG_HT40_PLUS 6
- #define WMI_CHAN_FLAG_PASSIVE 7
- #define WMI_CHAN_ADHOC_ALLOWED 8
- #define WMI_CHAN_AP_DISABLED 9
- #define WMI_CHAN_FLAG_DFS 10
- #define WMI_CHAN_FLAG_ALLOW_HT 11 /* HT is allowed on this channel */
- #define WMI_CHAN_FLAG_ALLOW_VHT 12 /* VHT is allowed on this channel */
- #define WMI_CHANNEL_CHANGE_CAUSE_CSA 13 /*Indicate reason for channel switch */
- #define WMI_CHAN_FLAG_HALF_RATE 14 /* Indicates half rate channel */
- #define WMI_CHAN_FLAG_QUARTER_RATE 15 /* Indicates quarter rate channel */
- #define WMI_CHAN_FLAG_DFS_CFREQ2 16 /* Enable radar event reporting for sec80 in VHT80p80 */
- #define WMI_CHAN_FLAG_ALLOW_HE 17 /* HE (11ax) is allowed on this channel */
- #define WMI_CHAN_FLAG_PSC 18 /* Indicate it is a PSC (preferred scanning channel) */
- #define WMI_CHAN_FLAG_NAN_DISABLED 19 /* Indicates that NAN operations are disabled on this channel */
- #define WMI_CHAN_FLAG_STA_DFS 20 /* Indicates if STA should process radar signals */
- #define WMI_CHAN_FLAG_ALLOW_EHT 21 /* EHT (11be) is allowed on this channel */
- #define WMI_SET_CHANNEL_FLAG(pwmi_channel,flag) do { \
- (pwmi_channel)->info |= ((A_UINT32) 1 << flag); \
- } while (0)
- #define WMI_GET_CHANNEL_FLAG(pwmi_channel,flag) \
- (((pwmi_channel)->info & ((A_UINT32) 1 << flag)) >> flag)
- #define WMI_SET_CHANNEL_MIN_POWER(pwmi_channel,val) do { \
- (pwmi_channel)->reg_info_1 &= 0xffffff00; \
- (pwmi_channel)->reg_info_1 |= (val & 0xff); \
- } while (0)
- #define WMI_GET_CHANNEL_MIN_POWER(pwmi_channel) ((pwmi_channel)->reg_info_1 & 0xff)
- #define WMI_SET_CHANNEL_MAX_POWER(pwmi_channel,val) do { \
- (pwmi_channel)->reg_info_1 &= 0xffff00ff; \
- (pwmi_channel)->reg_info_1 |= ((val & 0xff) << 8); \
- } while (0)
- #define WMI_GET_CHANNEL_MAX_POWER(pwmi_channel) ((((pwmi_channel)->reg_info_1) >> 8) & 0xff)
- #define WMI_SET_CHANNEL_REG_POWER(pwmi_channel,val) do { \
- (pwmi_channel)->reg_info_1 &= 0xff00ffff; \
- (pwmi_channel)->reg_info_1 |= ((val & 0xff) << 16); \
- } while (0)
- #define WMI_GET_CHANNEL_REG_POWER(pwmi_channel) ((((pwmi_channel)->reg_info_1) >> 16) & 0xff)
- #define WMI_SET_CHANNEL_REG_CLASSID(pwmi_channel,val) do { \
- (pwmi_channel)->reg_info_1 &= 0x00ffffff; \
- (pwmi_channel)->reg_info_1 |= ((val & 0xff) << 24); \
- } while (0)
- #define WMI_GET_CHANNEL_REG_CLASSID(pwmi_channel) ((((pwmi_channel)->reg_info_1) >> 24) & 0xff)
- #define WMI_SET_CHANNEL_ANTENNA_MAX(pwmi_channel,val) do { \
- (pwmi_channel)->reg_info_2 &= 0xffffff00; \
- (pwmi_channel)->reg_info_2 |= (val & 0xff); \
- } while (0)
- #define WMI_GET_CHANNEL_ANTENNA_MAX(pwmi_channel) ((pwmi_channel)->reg_info_2 & 0xff)
- /* max tx power is in 1 dBm units */
- #define WMI_SET_CHANNEL_MAX_TX_POWER(pwmi_channel,val) do { \
- (pwmi_channel)->reg_info_2 &= 0xffff00ff; \
- (pwmi_channel)->reg_info_2 |= ((val & 0xff) << 8); \
- } while (0)
- #define WMI_GET_CHANNEL_MAX_TX_POWER(pwmi_channel) ((((pwmi_channel)->reg_info_2)>>8) & 0xff)
- /* max bw supported for each channel, enum wmi_channel_width as value */
- #define WMI_SET_CHANNEL_MAX_BANDWIDTH(pwmi_channel,val) do { \
- (pwmi_channel)->reg_info_2 &= 0xff00ffff; \
- (pwmi_channel)->reg_info_2 |= ((val & 0xff) << 16); \
- } while (0)
- #define WMI_GET_CHANNEL_MAX_BANDWIDTH(pwmi_channel) ((((pwmi_channel)->reg_info_2) >> 16) & 0xff)
- /** HT Capabilities*/
- #define WMI_HT_CAP_ENABLED 0x0001 /* HT Enabled/ disabled */
- #define WMI_HT_CAP_HT20_SGI 0x0002 /* Short Guard Interval with HT20 */
- #define WMI_HT_CAP_DYNAMIC_SMPS 0x0004 /* Dynamic MIMO powersave */
- #define WMI_HT_CAP_TX_STBC 0x0008 /* B3 TX STBC */
- #define WMI_HT_CAP_TX_STBC_MASK_SHIFT 3
- #define WMI_HT_CAP_RX_STBC 0x0030 /* B4-B5 RX STBC */
- #define WMI_HT_CAP_RX_STBC_MASK_SHIFT 4
- #define WMI_HT_CAP_LDPC 0x0040 /* LDPC supported */
- #define WMI_HT_CAP_L_SIG_TXOP_PROT 0x0080 /* L-SIG TXOP Protection */
- #define WMI_HT_CAP_MPDU_DENSITY 0x0700 /* MPDU Density */
- #define WMI_HT_CAP_MPDU_DENSITY_MASK_SHIFT 8
- #define WMI_HT_CAP_HT40_SGI 0x0800
- #define WMI_HT_CAP_RX_LDPC 0x1000 /* LDPC RX support */
- #define WMI_HT_CAP_TX_LDPC 0x2000 /* LDPC TX support */
- /* These macros should be used when we wish to advertise STBC support for
- * only 1SS or 2SS or 3SS. */
- #define WMI_HT_CAP_RX_STBC_1SS 0x0010 /* B4-B5 RX STBC */
- #define WMI_HT_CAP_RX_STBC_2SS 0x0020 /* B4-B5 RX STBC */
- #define WMI_HT_CAP_RX_STBC_3SS 0x0030 /* B4-B5 RX STBC */
- #define WMI_HT_CAP_DEFAULT_ALL (WMI_HT_CAP_ENABLED | \
- WMI_HT_CAP_HT20_SGI | \
- WMI_HT_CAP_HT40_SGI | \
- WMI_HT_CAP_TX_STBC | \
- WMI_HT_CAP_RX_STBC | \
- WMI_HT_CAP_LDPC | \
- WMI_HT_CAP_TX_LDPC | \
- WMI_HT_CAP_RX_LDPC)
- /* WMI_VHT_CAP_* these maps to ieee 802.11ac vht capability information
- field. The fields not defined here are not supported, or reserved.
- Do not change these masks and if you have to add new one follow the
- bitmask as specified by 802.11ac draft.
- */
- #define WMI_VHT_CAP_MAX_MPDU_LEN_7935 0x00000001
- #define WMI_VHT_CAP_MAX_MPDU_LEN_11454 0x00000002
- #define WMI_VHT_CAP_MAX_MPDU_LEN_MASK 0x00000003
- #define WMI_VHT_CAP_CH_WIDTH_160MHZ 0x00000004
- #define WMI_VHT_CAP_CH_WIDTH_80P80_160MHZ 0x00000008
- #define WMI_VHT_CAP_RX_LDPC 0x00000010
- #define WMI_VHT_CAP_SGI_80MHZ 0x00000020
- #define WMI_VHT_CAP_SGI_160MHZ 0x00000040
- #define WMI_VHT_CAP_TX_STBC 0x00000080
- #define WMI_VHT_CAP_RX_STBC_MASK 0x00000300
- #define WMI_VHT_CAP_RX_STBC_MASK_SHIFT 8
- #define WMI_VHT_CAP_SU_BFORMER 0x00000800
- #define WMI_VHT_CAP_SU_BFORMEE 0x00001000
- #define WMI_VHT_CAP_MAX_CS_ANT_MASK 0x0000E000
- #define WMI_VHT_CAP_MAX_CS_ANT_MASK_SHIFT 13
- #define WMI_VHT_CAP_MAX_SND_DIM_MASK 0x00070000
- #define WMI_VHT_CAP_MAX_SND_DIM_MASK_SHIFT 16
- #define WMI_VHT_CAP_MU_BFORMER 0x00080000
- #define WMI_VHT_CAP_MU_BFORMEE 0x00100000
- #define WMI_VHT_CAP_TXOP_PS 0x00200000
- #define WMI_VHT_CAP_MAX_AMPDU_LEN_EXP 0x03800000
- #define WMI_VHT_CAP_MAX_AMPDU_LEN_EXP_SHIFT 23
- #define WMI_VHT_CAP_RX_FIXED_ANT 0x10000000
- #define WMI_VHT_CAP_TX_FIXED_ANT 0x20000000
- #define WMI_VHT_EXTENDED_NSS_BW_MASK 0xC0000000
- #define WMI_VHT_EXTENDED_NSS_BW_MASK_SHIFT 30
- /* TEMPORARY:
- * Preserve the incorrect old name as an alias for the correct new name
- * until all references to the old name have been removed from all hosts
- * and targets.
- */
- #define WMI_VHT_CAP_MAX_AMPDU_LEN_EXP_SHIT WMI_VHT_CAP_MAX_AMPDU_LEN_EXP_SHIFT
- /* These macros should be used when we wish to advertise STBC support for
- * only 1SS or 2SS or 3SS. */
- #define WMI_VHT_CAP_RX_STBC_1SS 0x00000100
- #define WMI_VHT_CAP_RX_STBC_2SS 0x00000200
- #define WMI_VHT_CAP_RX_STBC_3SS 0x00000300
- /* TEMPORARY:
- * Preserve the incorrect old name as an alias for the correct new name
- * until all references to the old name have been removed from all hosts
- * and targets.
- */
- #define WMI_vHT_CAP_RX_STBC_3SS WMI_VHT_CAP_RX_STBC_3SS
- /* TEMPORARY:
- * Spec does not have VHT TX LDPC capability bit. To Maintain backward
- * compatibility due to previous incorrect definition, the value is moved
- * from 0x4 to 0x0. No new use of WMI_VHT_CAP_TX_LDPC should be added.
- */
- #define WMI_VHT_CAP_TX_LDPC 0x0
- #define WMI_VHT_CAP_DEFAULT_ALL (WMI_VHT_CAP_MAX_MPDU_LEN_11454 | \
- WMI_VHT_CAP_SGI_80MHZ | \
- WMI_VHT_CAP_TX_STBC | \
- WMI_VHT_CAP_RX_STBC_MASK | \
- WMI_VHT_CAP_RX_LDPC | \
- WMI_VHT_CAP_TX_LDPC | \
- WMI_VHT_CAP_MAX_AMPDU_LEN_EXP | \
- WMI_VHT_CAP_RX_FIXED_ANT | \
- WMI_VHT_CAP_TX_FIXED_ANT)
- /* Interested readers refer to Rx/Tx MCS Map definition as defined in
- 802.11ac
- */
- #define WMI_VHT_MAX_MCS_EXT_SS_GET(vht_mcs_map, index) WMI_GET_BITS(vht_mcs_map, 16 + index, 1)
- #define WMI_VHT_MAX_MCS_EXT_SS_SET(vht_mcs_map, index, value) WMI_SET_BITS(vht_mcs_map, 16 + index, 1, value)
- /* Notification bit for Ext MCS 10/11 support */
- #define WMI_VHT_MCS_NOTIFY_EXT_SS_GET(vht_mcs_map) WMI_GET_BITS(vht_mcs_map, 24, 1)
- #define WMI_VHT_MCS_NOTIFY_EXT_SS_SET(vht_mcs_map, value) WMI_SET_BITS(vht_mcs_map, 24, 1, value)
- #define WMI_VHT_MAX_MCS_4_SS_MASK(r,ss) ((3 & (r)) << (((ss) - 1) << 1))
- #define WMI_VHT_MAX_SUPP_RATE_MASK 0x1fff0000
- #define WMI_VHT_MAX_SUPP_RATE_MASK_SHIFT 16
- /** 11ax capabilities */
- #define WMI_HE_CAP_PPE_PRESENT 0x00000001
- #define WMI_HE_CAP_TWT_RESPONDER_SUPPORT 0x00000002
- #define WMI_HE_CAP_TWT_REQUESTER_SUPPORT 0x00000004
- #define WMI_HE_FRAG_SUPPORT_MASK 0x00000018
- #define WMI_HE_FRAG_SUPPORT_SHIFT 3
- #define WMI_HE_CAP_1X_LTF_400NS_GI_SUPPORT 0x00000001
- #define WMI_HE_CAP_2X_LTF_400NS_GI_SUPPORT 0x00000002
- #define WMI_HE_CAP_2X_LTF_160_80_80_SUPPORT 0x00000004
- #define WMI_HE_CAP_RX_DL_OFDMA_SUPPORT 0x00000018
- #define WMI_HE_CAP_RX_DL_MUMIMO_SUPPORT 0x00000030
- #define WMI_HE_CAP_1X_LTF_400NS_GI_SUPPORT_GET(he_cap_info_dword1) \
- WMI_GET_BITS(he_cap_info_dword1, 0, 1)
- #define WMI_HE_CAP_1X_LTF_400NS_GI_SUPPORT_SET(he_cap_info_dword1, value) \
- WMI_SET_BITS(he_cap_info_dword1, 0, 1, value)
- #define WMI_HE_CAP_2X_LTF_400NS_GI_SUPPORT_GET(he_cap_info_dword1) \
- WMI_GET_BITS(he_cap_info_dword1, 1, 1)
- #define WMI_HE_CAP_2X_LTF_400NS_GI_SUPPORT_SET(he_cap_info_dword1, value) \
- WMI_SET_BITS(he_cap_info_dword1, 1, 1, value)
- #define WMI_HE_CAP_2X_LTF_160_80_80_SUPPORT_GET(he_cap_info_dword1) \
- WMI_GET_BITS(he_cap_info_dword1, 2, 1)
- #define WMI_HE_CAP_2X_LTF_160_80_80_SUPPORT_SET(he_cap_info_dword1, value) \
- WMI_SET_BITS(he_cap_info_dword1, 2, 1, value)
- #define WMI_HE_CAP_RX_DL_OFDMA_SUPPORT_GET(he_cap_info_dword1) \
- WMI_GET_BITS(he_cap_info_dword1, 3, 2)
- #define WMI_HE_CAP_RX_DL_OFDMA_SUPPORT_SET(he_cap_info_dword1, value) \
- WMI_SET_BITS(he_cap_info_dword1, 3, 2, value)
- #define WMI_HE_CAP_RX_DL_MUMIMO_SUPPORT_GET(he_cap_info_dword1) \
- WMI_GET_BITS(he_cap_info_dword1, 5, 2)
- #define WMI_HE_CAP_RX_DL_MUMIMO_SUPPORT_SET(he_cap_info_dword1, value) \
- WMI_SET_BITS(he_cap_info_dword1, 5, 2, value)
- /* Interested readers refer to Rx/Tx MCS Map definition as defined in 802.11ax
- */
- #define WMI_HE_MAX_MCS_4_SS_MASK(r,ss) ((3 & (r)) << (((ss) - 1) << 1))
- /*
- * index ranges from 0 to 15, and is used for checking if MCS 12/13 is enabled
- * for a particular NSS.
- * The lower 8 bits (indices 0-7) within the 16 bits indicate MCS 12/13
- * enablement for BW <= 80MHz; the upper 8 bits (indices 8-15) within
- * the 16 bits indicate MCS 12/13 enablement for BW > 80MHz.
- * The 16 bits for the index values are within the upper bits (bits 31:16)
- * of a 32-bit word.
- */
- #define WMI_HE_EXTRA_MCS_SS_GET(he_mcs_map_ext, index) \
- WMI_GET_BITS(he_mcs_map_ext, 16 + index, 1)
- #define WMI_HE_EXTRA_MCS_SS_SET(he_mcs_map_ext, index, value) \
- WMI_SET_BITS(he_mcs_map_ext, 16 + index, 1, value)
- /* fragmentation support field value */
- enum {
- WMI_HE_FRAG_SUPPORT_LEVEL0, /* No Fragmentation support */
- WMI_HE_FRAG_SUPPORT_LEVEL1, /* support for fragments within a VHT single MPDU, no support for fragments within AMPDU */
- WMI_HE_FRAG_SUPPORT_LEVEL2, /* support for up to 1 fragment per MSDU within a single A-MPDU */
- WMI_HE_FRAG_SUPPORT_LEVEL3, /* support for multiple fragments per MSDU within an A-MPDU */
- };
- enum {
- WMI_HE_RX_DL_OFDMA_SUPPORT_DEFAULT, /* Default */
- WMI_HE_RX_DL_OFDMA_SUPPORT_DISABLE, /* RX DL OFDMA Support Disabled */
- WMI_HE_RX_DL_OFDMA_SUPPORT_ENABLE, /* RX DL OFDMA Support Enabled */
- WMI_HE_RX_DL_OFDMA_SUPPORT_INVALID, /* INVALID */
- };
- enum {
- WMI_HE_RX_DL_MUMIMO_SUPPORT_DEFAULT, /* Default */
- WMI_HE_RX_DL_MUMIMO_SUPPORT_DISABLE, /* RX DL MU-MIMO Support Disabled */
- WMI_HE_RX_DL_MUMIMO_SUPPORT_ENABLE, /* RX DL MU-MIMO Support Enabled */
- WMI_HE_RX_DL_MUMIMO_SUPPORT_INVALID, /* INVALID */
- };
- /** NOTE: This defs cannot be changed in the future without breaking WMI compatibility */
- #define WMI_MAX_NUM_SS MAX_HE_NSS
- #define WMI_MAX_NUM_RU MAX_HE_RU
- /*
- * Figure 8 554ae: -PPE Threshold Info field format
- * we pack PPET16 and PPT8 for four RU's in one element of array.
- *
- * ppet16_ppet8_ru3_ru0 array element 0 holds:
- * | PPET8 | PPET16 | PPET8 | PPET16 | PPET8 | PPET16 | PPET8 | PPET16 |
- *rsvd |NSS1,RU4|NSS1,RU4|NSS1,RU3|NSS1,RU3|NSS1,RU2|NSS1,RU2|NSS1,RU1|NSS1,RU1|
- *31:23| 22:20 | 19:17 | 17:15 | 14:12 | 11:9 | 8:6 | 5:3 | 2:0 |
- *
- * ppet16_ppet8_ru3_ru0 array element 1 holds:
- * | PPET8 | PPET16 | PPET8 | PPET16 | PPET8 | PPET16 | PPET8 | PPET16 |
- *rsvd |NSS2,RU4|NSS2,RU4|NSS2,RU3|NSS2,RU3|NSS2,RU2|NSS2,RU2|NSS2,RU1|NSS2,RU1|
- *31:23| 22:20 | 19:17 | 17:15 | 14:12 | 11:9 | 8:6 | 5:3 | 2:0 |
- *
- * etc.
- */
- /*
- * Note that in these macros, "ru" is one-based, not zero-based, while
- * nssm1 is zero-based.
- */
- #define WMI_SET_PPET16(ppet16_ppet8_ru3_ru0, ru, nssm1, ppet) \
- do { \
- ppet16_ppet8_ru3_ru0[nssm1] &= ~(7 << (((ru-1) & 3) * 6)); \
- ppet16_ppet8_ru3_ru0[nssm1] |= ((ppet & 7) << (((ru-1) & 3) * 6)); \
- } while (0)
- #define WMI_GET_PPET16(ppet16_ppet8_ru3_ru0, ru, nssm1) \
- ((ppet16_ppet8_ru3_ru0[nssm1] >> (((ru-1) & 3) * 6)) & 7)
- #define WMI_SET_PPET8(ppet16_ppet8_ru3_ru0, ru, nssm1, ppet) \
- do { \
- ppet16_ppet8_ru3_ru0[nssm1] &= ~(7 << (((ru-1) & 3) * 6 + 3)); \
- ppet16_ppet8_ru3_ru0[nssm1] |= ((ppet&7) << (((ru-1) & 3) * 6 + 3)); \
- } while (0)
- #define WMI_GET_PPET8(ppet16_ppet8_ru3_ru0, ru, nssm1) \
- ((ppet16_ppet8_ru3_ru0[nssm1] >> (((ru-1) & 3) * 6 + 3)) & 7)
- typedef struct _wmi_ppe_threshold {
- A_UINT32 numss_m1; /** NSS - 1*/
- union {
- A_UINT32 ru_count; /** RU COUNT OBSOLETE to be removed after few versions */
- A_UINT32 ru_mask; /** RU index mask */
- };
- A_UINT32 ppet16_ppet8_ru3_ru0[WMI_MAX_NUM_SS]; /** ppet8 and ppet16 for max num ss */
- /**************************************************
- * As this struct is embedded inside other structs,
- * it cannot be expanded without breaking backwards
- * compatibility. Do not add new fields here.
- **************************************************/
- } wmi_ppe_threshold;
- #define WMI_MAX_EHTCAP_MAC_SIZE 2
- #define WMI_MAX_EHTCAP_PHY_SIZE 3
- /*
- * 0 – index indicated EHT-MCS map for 20Mhz only sta (4 bytes valid)
- * 1 – index for <= 80MHz bw (only 3 bytes are valid and other is reserved)
- * 2 – index for == 160Mhz bw (only 3 bytes are valid and other is reserved)
- * 3 – index for == 320Mhz bw (only 3 bytes are valid and other is reserved)
- */
- enum {
- WMI_EHT_SUPP_MCS_20MHZ_ONLY,
- WMI_EHT_SUPP_MCS_LE_80MHZ,
- WMI_EHT_SUPP_MCS_160MHZ,
- WMI_EHT_SUPP_MCS_320MHZ,
- };
- #define WMI_MAX_EHT_SUPP_MCS_2G_SIZE 2
- #define WMI_MAX_EHT_SUPP_MCS_5G_SIZE 4
- /* WMI_SYS_CAPS_* refer to the capabilities that system support
- */
- #define WMI_SYS_CAP_ENABLE 0x00000001
- #define WMI_SYS_CAP_TXPOWER 0x00000002
- /*
- * WMI Dual Band Simultaneous (DBS) hardware mode list bit-mask definitions.
- * Bits 5:0 are reserved
- */
- #define WMI_DBS_HW_MODE_MAC0_TX_STREAMS_BITPOS (28)
- #define WMI_DBS_HW_MODE_MAC0_RX_STREAMS_BITPOS (24)
- #define WMI_DBS_HW_MODE_MAC1_TX_STREAMS_BITPOS (20)
- #define WMI_DBS_HW_MODE_MAC1_RX_STREAMS_BITPOS (16)
- #define WMI_DBS_HW_MODE_MAC0_BANDWIDTH_BITPOS (12)
- #define WMI_DBS_HW_MODE_MAC1_BANDWIDTH_BITPOS (8)
- #define WMI_DBS_HW_MODE_DBS_MODE_BITPOS (7)
- #define WMI_DBS_HW_MODE_AGILE_DFS_MODE_BITPOS (6)
- #define WMI_DBS_HW_MODE_MAC0_TX_STREAMS_MASK (0xf << WMI_DBS_HW_MODE_MAC0_TX_STREAMS_BITPOS)
- #define WMI_DBS_HW_MODE_MAC0_RX_STREAMS_MASK (0xf << WMI_DBS_HW_MODE_MAC0_RX_STREAMS_BITPOS)
- #define WMI_DBS_HW_MODE_MAC1_TX_STREAMS_MASK (0xf << WMI_DBS_HW_MODE_MAC1_TX_STREAMS_BITPOS)
- #define WMI_DBS_HW_MODE_MAC1_RX_STREAMS_MASK (0xf << WMI_DBS_HW_MODE_MAC1_RX_STREAMS_BITPOS)
- #define WMI_DBS_HW_MODE_MAC0_BANDWIDTH_MASK (0xf << WMI_DBS_HW_MODE_MAC0_BANDWIDTH_BITPOS)
- #define WMI_DBS_HW_MODE_MAC1_BANDWIDTH_MASK (0xf << WMI_DBS_HW_MODE_MAC1_BANDWIDTH_BITPOS)
- #define WMI_DBS_HW_MODE_DBS_MODE_MASK (0x1 << WMI_DBS_HW_MODE_DBS_MODE_BITPOS)
- #define WMI_DBS_HW_MODE_AGILE_DFS_MODE_MASK (0x1 << WMI_DBS_HW_MODE_AGILE_DFS_MODE_BITPOS)
- #define WMI_DBS_HW_MODE_MAC0_TX_STREAMS_SET(hw_mode, value) \
- WMI_SET_BITS(hw_mode, WMI_DBS_HW_MODE_MAC0_TX_STREAMS_BITPOS, 4, value)
- #define WMI_DBS_HW_MODE_MAC0_RX_STREAMS_SET(hw_mode, value) \
- WMI_SET_BITS(hw_mode, WMI_DBS_HW_MODE_MAC0_RX_STREAMS_BITPOS, 4, value)
- #define WMI_DBS_HW_MODE_MAC1_TX_STREAMS_SET(hw_mode, value) \
- WMI_SET_BITS(hw_mode, WMI_DBS_HW_MODE_MAC1_TX_STREAMS_BITPOS, 4, value)
- #define WMI_DBS_HW_MODE_MAC1_RX_STREAMS_SET(hw_mode, value) \
- WMI_SET_BITS(hw_mode, WMI_DBS_HW_MODE_MAC1_RX_STREAMS_BITPOS, 4, value)
- #define WMI_DBS_HW_MODE_MAC0_BANDWIDTH_SET(hw_mode, value) \
- WMI_SET_BITS(hw_mode, WMI_DBS_HW_MODE_MAC0_BANDWIDTH_BITPOS, 4, value)
- #define WMI_DBS_HW_MODE_MAC1_BANDWIDTH_SET(hw_mode, value) \
- WMI_SET_BITS(hw_mode, WMI_DBS_HW_MODE_MAC1_BANDWIDTH_BITPOS, 4, value)
- #define WMI_DBS_HW_MODE_DBS_MODE_SET(hw_mode, value) \
- WMI_SET_BITS(hw_mode, WMI_DBS_HW_MODE_DBS_MODE_BITPOS, 1, value)
- #define WMI_DBS_HW_MODE_AGILE_DFS_SET(hw_mode, value) \
- WMI_SET_BITS(hw_mode, WMI_DBS_HW_MODE_AGILE_DFS_MODE_BITPOS, 1, value)
- #define WMI_DBS_HW_MODE_MAC0_TX_STREAMS_GET(hw_mode) \
- ((hw_mode & WMI_DBS_HW_MODE_MAC0_TX_STREAMS_MASK) >> WMI_DBS_HW_MODE_MAC0_TX_STREAMS_BITPOS)
- #define WMI_DBS_HW_MODE_MAC0_RX_STREAMS_GET(hw_mode) \
- ((hw_mode & WMI_DBS_HW_MODE_MAC0_RX_STREAMS_MASK) >> WMI_DBS_HW_MODE_MAC0_RX_STREAMS_BITPOS)
- #define WMI_DBS_HW_MODE_MAC1_TX_STREAMS_GET(hw_mode) \
- ((hw_mode & WMI_DBS_HW_MODE_MAC1_TX_STREAMS_MASK) >> WMI_DBS_HW_MODE_MAC1_TX_STREAMS_BITPOS)
- #define WMI_DBS_HW_MODE_MAC1_RX_STREAMS_GET(hw_mode) \
- ((hw_mode & WMI_DBS_HW_MODE_MAC1_RX_STREAMS_MASK) >> WMI_DBS_HW_MODE_MAC1_RX_STREAMS_BITPOS)
- #define WMI_DBS_HW_MODE_MAC0_BANDWIDTH_GET(hw_mode) \
- ((hw_mode & WMI_DBS_HW_MODE_MAC0_BANDWIDTH_MASK) >> WMI_DBS_HW_MODE_MAC0_BANDWIDTH_BITPOS)
- #define WMI_DBS_HW_MODE_MAC1_BANDWIDTH_GET(hw_mode) \
- ((hw_mode & WMI_DBS_HW_MODE_MAC1_BANDWIDTH_MASK) >> WMI_DBS_HW_MODE_MAC1_BANDWIDTH_BITPOS)
- #define WMI_DBS_HW_MODE_DBS_MODE_GET(hw_mode) \
- ((hw_mode & WMI_DBS_HW_MODE_DBS_MODE_MASK) >> WMI_DBS_HW_MODE_DBS_MODE_BITPOS)
- #define WMI_DBS_HW_MODE_AGILE_DFS_GET(hw_mode) \
- ((hw_mode & WMI_DBS_HW_MODE_AGILE_DFS_MODE_MASK) >> WMI_DBS_HW_MODE_AGILE_DFS_MODE_BITPOS)
- #define WMI_DBS_CONC_SCAN_CFG_DBS_SCAN_BITPOS (31)
- #define WMI_DBS_CONC_SCAN_CFG_AGILE_SCAN_BITPOS (30)
- #define WMI_DBS_CONC_SCAN_CFG_AGILE_DFS_SCAN_BITPOS (29)
- #define WMI_DBS_CONC_SCAN_CFG_ASYNC_DBS_SCAN_BITPOS (28)
- #define WMI_DBS_CONC_SCAN_CFG_SYNC_DBS_SCAN_BITPOS (27)
- #define WMI_DBS_CONC_SCAN_CFG_DBS_SCAN_MASK ((A_UINT32) 0x1 << WMI_DBS_CONC_SCAN_CFG_DBS_SCAN_BITPOS)
- #define WMI_DBS_CONC_SCAN_CFG_AGILE_SCAN_MASK ((A_UINT32) 0x1 << WMI_DBS_CONC_SCAN_CFG_AGILE_SCAN_BITPOS)
- #define WMI_DBS_CONC_SCAN_CFG_AGILE_DFS_SCAN_MASK ((A_UINT32) 0x1 << WMI_DBS_CONC_SCAN_CFG_AGILE_DFS_SCAN_BITPOS)
- #define WMI_DBS_CONC_SCAN_CFG_ASYC_DBS_SCAN_MASK ((A_UINT32) 0x1 << WMI_DBS_CONC_SCAN_CFG_ASYNC_DBS_SCAN_BITPOS)
- #define WMI_DBS_CONC_SCAN_CFG_SYNC_DBS_SCAN_MASK ((A_UINT32) 0x1 << WMI_DBS_CONC_SCAN_CFG_SYNC_DBS_SCAN_BITPOS)
- #define WMI_DBS_CONC_SCAN_CFG_DBS_SCAN_SET(scan_cfg, value) \
- WMI_SET_BITS(scan_cfg, WMI_DBS_CONC_SCAN_CFG_DBS_SCAN_BITPOS, 1, value)
- #define WMI_DBS_CONC_SCAN_CFG_AGILE_SCAN_SET(scan_cfg, value) \
- WMI_SET_BITS(scan_cfg, WMI_DBS_CONC_SCAN_CFG_AGILE_SCAN_BITPOS, 1, value)
- #define WMI_DBS_CONC_SCAN_CFG_AGILE_DFS_SCAN_SET(scan_cfg, value) \
- WMI_SET_BITS(scan_cfg, WMI_DBS_CONC_SCAN_CFG_AGILE_DFS_SCAN_BITPOS, 1, value)
- #define WMI_DBS_CONC_SCAN_CFG_ASYNC_DBS_SCAN_SET(scan_cfg, value) \
- WMI_SET_BITS(scan_cfg, WMI_DBS_CONC_SCAN_CFG_ASYNC_DBS_SCAN_BITPOS, 1, value)
- #define WMI_DBS_CONC_SCAN_CFG_SYNC_DBS_SCAN_SET(scan_cfg, value) \
- WMI_SET_BITS(scan_cfg, WMI_DBS_CONC_SCAN_CFG_SYNC_DBS_SCAN_BITPOS, 1, value)
- #define WMI_DBS_CONC_SCAN_CFG_DBS_SCAN_GET(scan_cfg) \
- ((scan_cfg & WMI_DBS_CONC_SCAN_CFG_DBS_SCAN_MASK) >> WMI_DBS_CONC_SCAN_CFG_DBS_SCAN_BITPOS)
- #define WMI_DBS_CONC_SCAN_CFG_AGILE_SCAN_GET(scan_cfg) \
- ((scan_cfg & WMI_DBS_CONC_SCAN_CFG_AGILE_SCAN_MASK) >> WMI_DBS_CONC_SCAN_CFG_AGILE_SCAN_BITPOS)
- #define WMI_DBS_CONC_SCAN_CFG_AGILE_DFS_SCAN_GET(scan_cfg) \
- ((scan_cfg & WMI_DBS_CONC_SCAN_CFG_AGILE_DFS_SCAN_MASK) >> WMI_DBS_CONC_SCAN_CFG_AGILE_DFS_SCAN_BITPOS)
- #define WMI_DBS_CONC_SCAN_CFG_ASYNC_DBS_SCAN_GET(scan_cfg) \
- ((scan_cfg & WMI_DBS_CONC_SCAN_CFG_ASYC_DBS_SCAN_MASK) >> WMI_DBS_CONC_SCAN_CFG_ASYNC_DBS_SCAN_BITPOS)
- #define WMI_DBS_CONC_SCAN_CFG_SYNC_DBS_SCAN_GET(scan_cfg) \
- ((scan_cfg & WMI_DBS_CONC_SCAN_CFG_SYNC_DBS_SCAN_MASK) >> WMI_DBS_CONC_SCAN_CFG_SYNC_DBS_SCAN_BITPOS)
- #define WMI_DBS_FW_MODE_CFG_DBS_BITPOS (31)
- #define WMI_DBS_FW_MODE_CFG_AGILE_DFS_BITPOS (30)
- #define WMI_DBS_FW_MODE_CFG_DBS_FOR_CXN_BITPOS (29)
- #define WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_STA_BITPOS (28)
- #define WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_P2P_BITPOS (27)
- #define WMI_DBS_FW_MODE_CFG_ASYNC_SBS_BITPOS (26)
- #define WMI_DBS_FW_MODE_CFG_DBS_MASK ((A_UINT32) 0x1 << WMI_DBS_FW_MODE_CFG_DBS_BITPOS)
- #define WMI_DBS_FW_MODE_CFG_AGILE_DFS_MASK ((A_UINT32) 0x1 << WMI_DBS_FW_MODE_CFG_AGILE_DFS_BITPOS)
- #define WMI_DBS_FW_MODE_CFG_DBS_FOR_CXN_DFS_MASK ((A_UINT32) 0x1 << WMI_DBS_FW_MODE_CFG_DBS_FOR_CXN_BITPOS)
- #define WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_STA_MASK ((A_UINT32) 0x1 << WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_STA_BITPOS)
- #define WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_P2P_MASK ((A_UINT32) 0x1 << WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_P2P_BITPOS)
- #define WMI_DBS_FW_MODE_CFG_ASYNC_SBS_MASK ((A_UINT32) 0x1 << WMI_DBS_FW_MODE_CFG_ASYNC_SBS_BITPOS)
- #define WMI_DBS_FW_MODE_CFG_DBS_SET(fw_mode, value) \
- WMI_SET_BITS(fw_mode, WMI_DBS_FW_MODE_CFG_DBS_BITPOS, 1, value)
- #define WMI_DBS_FW_MODE_CFG_AGILE_DFS_SET(fw_mode, value) \
- WMI_SET_BITS(fw_mode, WMI_DBS_FW_MODE_CFG_AGILE_DFS_BITPOS, 1, value)
- #define WMI_DBS_FW_MODE_CFG_DBS_FOR_CXN_SET(fw_mode, value) \
- WMI_SET_BITS(fw_mode, WMI_DBS_FW_MODE_CFG_DBS_FOR_CXN_BITPOS, 1, value)
- #define WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_STA_SET(fw_mode, value) \
- WMI_SET_BITS(fw_mode, WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_STA_BITPOS, 1, value)
- #define WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_P2P_SET(fw_mode, value) \
- WMI_SET_BITS(fw_mode, WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_P2P_BITPOS, 1, value)
- #define WMI_DBS_FW_MODE_CFG_ASYNC_SBS_SET(fw_mode, value) \
- WMI_SET_BITS(fw_mode, WMI_DBS_FW_MODE_CFG_ASYNC_SBS_BITPOS, 1, value)
- #define WMI_DBS_FW_MODE_CFG_DBS_GET(fw_mode) \
- ((fw_mode & WMI_DBS_FW_MODE_CFG_DBS_MASK) >> WMI_DBS_FW_MODE_CFG_DBS_BITPOS)
- #define WMI_DBS_FW_MODE_CFG_AGILE_DFS_GET(fw_mode) \
- ((fw_mode & WMI_DBS_FW_MODE_CFG_AGILE_DFS_MASK) >> WMI_DBS_FW_MODE_CFG_AGILE_DFS_BITPOS)
- #define WMI_DBS_FW_MODE_CFG_DBS_FOR_CXN_GET(fw_mode) \
- ((fw_mode & WMI_DBS_FW_MODE_CFG_DBS_FOR_CXN_DFS_MASK) >> WMI_DBS_FW_MODE_CFG_DBS_FOR_CXN_BITPOS)
- #define WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_STA_GET(fw_mode) \
- ((fw_mode & WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_STA_MASK) >> WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_STA_BITPOS)
- #define WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_P2P_GET(fw_mode) \
- ((fw_mode & WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_P2P_MASK) >> WMI_DBS_FW_MODE_CFG_DBS_FOR_STA_PLUS_P2P_BITPOS)
- #define WMI_DBS_FW_MODE_CFG_ASYNC_SBS_GET(fw_mode) \
- ((fw_mode & WMI_DBS_FW_MODE_CFG_ASYNC_SBS_MASK) >> WMI_DBS_FW_MODE_CFG_ASYNC_SBS_BITPOS)
- /** NOTE: This structure cannot be extended in the future without breaking WMI compatibility */
- typedef struct _wmi_abi_version {
- A_UINT32 abi_version_0; /** WMI Major and Minor versions */
- A_UINT32 abi_version_1; /** WMI change revision */
- A_UINT32 abi_version_ns_0; /** ABI version namespace first four dwords */
- A_UINT32 abi_version_ns_1; /** ABI version namespace second four dwords */
- A_UINT32 abi_version_ns_2; /** ABI version namespace third four dwords */
- A_UINT32 abi_version_ns_3; /** ABI version namespace fourth four dwords */
- } wmi_abi_version;
- /*
- * maximum number of memory requests allowed from FW.
- */
- #define WMI_MAX_MEM_REQS 16
- /* !!NOTE!!:
- * This HW_BD_INFO_SIZE cannot be changed without breaking compatibility.
- * Please don't change it.
- */
- #define HW_BD_INFO_SIZE 5
- /**
- * PDEV ID to identify the physical device,
- * value 0 reserved for SOC level commands/event
- */
- #define WMI_PDEV_ID_SOC 0 /* SOC level, applicable to all PDEVs */
- #define WMI_PDEV_ID_1ST 1 /* first pdev (pdev 0) */
- #define WMI_PDEV_ID_2ND 2 /* second pdev (pdev 1) */
- #define WMI_PDEV_ID_3RD 3 /* third pdev (pdev 2) */
- /*
- * Enum regarding which BDF elements are provided in which elements of the
- * wmi_service_ready_event_fixed_param.hw_bd_info[] array
- */
- typedef enum {
- BDF_VERSION = 0,
- REF_DESIGN_ID = 1,
- CUSTOMER_ID = 2,
- PROJECT_ID = 3,
- BOARD_DATA_REV = 4,
- } wmi_hw_bd_info_e;
- /*
- * Macros to get/set BDF details within the
- * wmi_service_ready_event_fixed_param.hw_bd_info[] array
- */
- #define WMI_GET_BDF_VERSION(hw_bd_info) ((hw_bd_info)[BDF_VERSION])
- #define WMI_GET_REF_DESIGN(hw_bd_info) ((hw_bd_info)[REF_DESIGN_ID])
- #define WMI_GET_CUSTOMER_ID(hw_bd_info) ((hw_bd_info)[CUSTOMER_ID])
- #define WMI_GET_PROJECT_ID(hw_bd_info) ((hw_bd_info)[PROJECT_ID])
- #define WMI_GET_BOARD_DATA_REV(hw_bd_info) ((hw_bd_info)[BOARD_DATA_REV])
- #define WMI_SET_BDF_VERSION(hw_bd_info, val) ((hw_bd_info)[BDF_VERSION] = (val))
- #define WMI_SET_REF_DESIGN(hw_bd_info, val) ((hw_bd_info)[REF_DESIGN_ID] = (val))
- #define WMI_SET_CUSTOMER_ID(hw_bd_info, val) ((hw_bd_info)[CUSTOMER_ID] = (val))
- #define WMI_SET_PROJECT_ID(hw_bd_info, val) ((hw_bd_info)[PROJECT_ID] = (val))
- #define WMI_SET_BOARD_DATA_REV(hw_bd_info, val) ((hw_bd_info)[BOARD_DATA_REV] = (val))
- /*
- * Enum to indicate which Tx power capability is provided in which element of
- * hw_tx_power_signed
- */
- typedef enum {
- WMI_HW_MIN_TX_POWER_SIGNED = 0,
- WMI_HW_MAX_TX_POWER_SIGNED = 1,
- WMI_HW_TX_POWER_CAPS_MAX,
- } wmi_hw_tx_power_caps;
- /**
- * The following struct holds optional payload for
- * wmi_service_ready_event_fixed_param,e.g., 11ac pass some of the
- * device capability to the host.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_SERVICE_READY_EVENT */
- A_UINT32 fw_build_vers; /* firmware build number */
- wmi_abi_version fw_abi_vers;
- A_UINT32 phy_capability; /* WMI_PHY_CAPABILITY */
- A_UINT32 max_frag_entry; /* Maximum number of frag table entries that SW will populate less 1 */
- A_UINT32 num_rf_chains;
- /* The following field is only valid for service type WMI_SERVICE_11AC */
- A_UINT32 ht_cap_info; /* WMI HT Capability */
- A_UINT32 vht_cap_info; /* VHT capability info field of 802.11ac */
- A_UINT32 vht_supp_mcs; /* VHT Supported MCS Set field Rx/Tx same */
- A_UINT32 hw_min_tx_power;
- A_UINT32 hw_max_tx_power;
- /* sys_cap_info:
- * bits 1:0 - RXTX LED + RFKILL enable flags (see WMI_LEDRFKILL_FLAGS)
- * bits 31:2 - reserved (must be set to zero)
- */
- A_UINT32 sys_cap_info;
- A_UINT32 min_pkt_size_enable; /* Enterprise mode short pkt enable */
- /** Max beacon and Probe Response IE offload size (includes
- * optional P2P IEs) */
- A_UINT32 max_bcn_ie_size;
- /*
- * request to host to allocate a chuck of memory and pss it down to FW via WM_INIT.
- * FW uses this as FW extesnsion memory for saving its data structures. Only valid
- * for low latency interfaces like PCIE where FW can access this memory directly (or)
- * by DMA.
- */
- A_UINT32 num_mem_reqs;
- /* Max No. scan channels target can support
- * If FW is too old and doesn't indicate this number, host side value will default to
- * 0, and host will take the original compatible value (62) for future scan channel
- * setup.
- */
- A_UINT32 max_num_scan_channels;
- /* Hardware board specific ID. Values defined in enum WMI_HWBOARD_ID.
- * Default 0 means that hw_bd_info[] is invalid (legacy board).
- */
- A_UINT32 hw_bd_id;
- A_UINT32 hw_bd_info[HW_BD_INFO_SIZE]; /* Board specific information. Invalid if hw_hd_id is zero. */
- /*
- * Number of MACs supported, i.e. a DBS-capable device will return 2
- */
- A_UINT32 max_supported_macs;
- /*
- * FW sub-feature capabilities to be used in concurrence with wmi_service_bitmap
- */
- A_UINT32 wmi_fw_sub_feat_caps; /* values from enum WMI_FW_SUB_FEAT_CAPS */
- /*
- * Number of Dual Band Simultaneous (DBS) hardware modes
- */
- A_UINT32 num_dbs_hw_modes;
- /*
- * txrx_chainmask
- * [7:0] - 2G band tx chain mask
- * [15:8] - 2G band rx chain mask
- * [23:16] - 5G band tx chain mask
- * [31:24] - 5G band rx chain mask
- *
- */
- A_UINT32 txrx_chainmask;
- /*
- * default Dual Band Simultaneous (DBS) hardware mode
- */
- A_UINT32 default_dbs_hw_mode_index;
- /*
- * Number of msdu descriptors target would use
- */
- A_UINT32 num_msdu_desc;
- /* This ready_event_fixed_param TLV is followed by the below TLVs:
- * HAL_REG_CAPABILITIES hal_reg_capabilities;
- * A_UINT32 wmi_service_bitmap[WMI_SERVICE_BM_SIZE];
- * wlan_host_mem_req mem_reqs[];
- * A_UINT32 wlan_dbs_hw_mode_list[];
- */
- } wmi_service_ready_event_fixed_param;
- typedef enum {
- WMI_RXTX_LED_ENABLE = 0x00000001,
- WMI_RFKILL_ENABLE = 0x00000002,
- } WMI_LEDRFKILL_FLAGS;
- #define WMI_SERVICE_SEGMENT_BM_SIZE32 4 /* 4x A_UINT32 = 128 bits */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_service_available_event_fixed_param */
- /*
- * The wmi_service_segment offset field specifies the position within the
- * logical bitmap of WMI service flags at which the WMI service flags
- * specified within this message begin.
- * Since the first 128 WMI service flags are specified within the
- * wmi_service_bitmap field of the WMI_SERVICE_READY_EVENT message,
- * the wmi_service_segment_offset value is expected to be 128 or more.
- */
- A_UINT32 wmi_service_segment_offset;
- A_UINT32 wmi_service_segment_bitmap[WMI_SERVICE_SEGMENT_BM_SIZE32];
- /*
- * This TLV is followed by the below TLVs:
- * A_UINT32 wmi_service_ext_bitmap[]
- * The wmi_service_ext_bitmap covers WMI service flags at the offset where
- * wmi_service_available_event_fixed_param.wmi_service_segment_bitmap
- * leaves off.
- * For example, if
- * wmi_service_available_event_fixed_param.wmi_service_segment_offset
- * is 128, then
- * wmi_service_available_event_fixed_param.wmi_service_segment_bitmap
- * will cover WMI service flags
- * 128 to (128 + WMI_SERVICE_SEGMENT_BM_SIZE32 * 32) = 128 to 256
- * and wmi_service_ext_bitmap will cover WMI service flags starting at 256.
- */
- } wmi_service_available_event_fixed_param;
- /*
- * HDL version GET/SET APIs
- */
- #define WMI_HDL_VERSION_BITPOS 0
- #define WMI_HDL_VERSION_NUM_BITS 10
- #define WMI_HDL_VERSION_GET(dword) WMI_GET_BITS(dword, WMI_HDL_VERSION_BITPOS, WMI_HDL_VERSION_NUM_BITS)
- #define WMI_HDL_VERSION_SET(dword, value) WMI_SET_BITS(dword, WMI_HDL_VERSION_BITPOS, WMI_HDL_VERSION_NUM_BITS, value)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_SERVICE_EXT_READY_EVENT */
- /* which WMI_DBS_CONC_SCAN_CFG setting the FW is initialized with */
- A_UINT32 default_conc_scan_config_bits;
- /* which WMI_DBS_FW_MODE_CFG setting the FW is initialized with */
- A_UINT32 default_fw_config_bits;
- wmi_ppe_threshold ppet;
- A_UINT32 he_cap_info; /* see section 8.4.2.213 from draft r8 of 802.11ax; see WMI_HE_FRAG_SUPPORT enum */
- /*
- * An HT STA shall not allow transmission of more than one MPDU start
- * within the time limit described in the MPDU maximum density field.
- */
- A_UINT32 mpdu_density; /* units are microseconds */
- /*
- * Maximum no of BSSID based RX filters host can program
- * Value 0 means FW hasn't given any limit to host.
- */
- A_UINT32 max_bssid_rx_filters;
- /*
- * Extended FW build version information:
- * bits 9:0 -> HDL version info
- * bits 12:10 -> CRM sub ID MSbs (refer to WMI_SVC_RDY_CRM_SUB_ID_GET/SET)
- * bits 27:13 -> reserved
- * bits 31:28 -> CRM sub ID LSbs (refer to WMI_SVC_RDY_CRM_SUB_ID_GET/SET)
- */
- A_UINT32 fw_build_vers_ext;
- /* max_nlo_ssids - dynamically negotiated maximum number of SSIDS for NLO
- * This limit is the maximum number of SSIDs that can be configured in the
- * target for Network List Offload (i.e. scanning for a preferred network).
- * If this value is 0x0, the target supports WMI_NLO_MAX_SSIDS (16).
- * If this value is non-zero, the host should send back in the
- * WMI_INIT message's wmi_resource_config.max_nlo_ssids a value that
- * is equal to or less than the target capability limit reported here.
- */
- A_UINT32 max_nlo_ssids;
- /* ref to section 8.4.2.48 Multiple BSSID element
- * The Max BSSID Indicator field contains a value assigned to n,
- * where 2^n is the maximum number of BSSIDs
- */
- A_UINT32 max_bssid_indicator;
- /* 2nd DWORD of HE MAC Capabilities */
- A_UINT32 he_cap_info_ext;
- /**************************************************************************
- * DON'T ADD ANY FURTHER FIELDS HERE -
- * It would cause the size of the READY_EXT message within some targets
- * to exceed the size of the buffer used for the message.
- **************************************************************************/
- /*
- * A variable-length TLV array of wmi_chan_rf_characterization_info will
- * follow this fixed_param TLV, containing rx characterization info for
- * primary channels.
- * WMI_CHAN_RF_CHARACTERIZATION_INFO wmi_chan_rf_characterization_info[];
- */
- } wmi_service_ready_ext_event_fixed_param;
- #define WMI_SVC_RDY_CRM_SUB_ID_LSBS_INDEX 28
- #define WMI_SVC_RDY_CRM_SUB_ID_LSBS_NUM_BITS 4
- #define WMI_SVC_RDY_CRM_SUB_ID_MSBS_INDEX 10
- #define WMI_SVC_RDY_CRM_SUB_ID_MSBS_NUM_BITS 3
- #define WMI_SVC_RDY_CRM_SUB_ID_GET(var, val) \
- WMI_APPEND_TWO_GET_BITS( \
- var, \
- WMI_SVC_RDY_CRM_SUB_ID_LSBS_INDEX, \
- WMI_SVC_RDY_CRM_SUB_ID_LSBS_NUM_BITS, \
- WMI_SVC_RDY_CRM_SUB_ID_MSBS_INDEX, \
- WMI_SVC_RDY_CRM_SUB_ID_MSBS_NUM_BITS, \
- val)
- #define WMI_SVC_RDY_CRM_SUB_ID_SET(var, val) \
- WMI_APPEND_TWO_SET_BITS( \
- var, \
- WMI_SVC_RDY_CRM_SUB_ID_LSBS_INDEX, \
- WMI_SVC_RDY_CRM_SUB_ID_LSBS_NUM_BITS, \
- WMI_SVC_RDY_CRM_SUB_ID_MSBS_INDEX, \
- WMI_SVC_RDY_CRM_SUB_ID_MSBS_NUM_BITS, \
- val)
- /*
- * regdb version GET/SET APIs
- */
- #define WMI_REG_DB_VERSION_MAJOR_BITPOS 0
- #define WMI_REG_DB_VERSION_MINOR_BITPOS 8
- #define WMI_BDF_REG_DB_VERSION_MAJOR_BITPOS 16
- #define WMI_BDF_REG_DB_VERSION_MINOR_BITPOS 24
- #define WMI_REG_DB_VERSION_NUM_BITS 8
- #define WMI_REG_DB_VERSION_MAJOR_GET(dword) \
- WMI_GET_BITS(dword, WMI_REG_DB_VERSION_MAJOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS)
- #define WMI_REG_DB_VERSION_MAJOR_SET(dword, value) \
- WMI_SET_BITS(dword, WMI_REG_DB_VERSION_MAJOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS, value)
- #define WMI_REG_DB_VERSION_MINOR_GET(dword) \
- WMI_GET_BITS(dword, WMI_REG_DB_VERSION_MINOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS)
- #define WMI_REG_DB_VERSION_MINOR_SET(dword, value) \
- WMI_SET_BITS(dword, WMI_REG_DB_VERSION_MINOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS, value)
- #define WMI_BDF_REG_DB_VERSION_MAJOR_GET(dword) \
- WMI_GET_BITS(dword, WMI_BDF_REG_DB_VERSION_MAJOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS)
- #define WMI_BDF_REG_DB_VERSION_MAJOR_SET(dword, value) \
- WMI_SET_BITS(dword, WMI_BDF_REG_DB_VERSION_MAJOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS, value)
- #define WMI_BDF_REG_DB_VERSION_MINOR_GET(dword) \
- WMI_GET_BITS(dword, WMI_BDF_REG_DB_VERSION_MINOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS)
- #define WMI_BDF_REG_DB_VERSION_MINOR_SET(dword, value) \
- WMI_SET_BITS(dword, WMI_BDF_REG_DB_VERSION_MINOR_BITPOS, WMI_REG_DB_VERSION_NUM_BITS, value)
- #define WMI_REG_DB_VERSION_SET(dword, reg_db_ver_major, reg_db_ver_minor, bdf_reg_db_ver_major, bdf_reg_db_ver_minor) \
- do { \
- WMI_REG_DB_VERSION_MAJOR_SET(dword, reg_db_ver_major); \
- WMI_REG_DB_VERSION_MINOR_SET(dword, reg_db_ver_minor); \
- WMI_BDF_REG_DB_VERSION_MAJOR_SET(dword, bdf_reg_db_ver_major); \
- WMI_BDF_REG_DB_VERSION_MINOR_SET(dword, bdf_reg_db_ver_minor); \
- } while (0)
- #define WMI_HW_MIN_TX_POWER_BITPOS 0
- #define WMI_HW_MAX_TX_POWER_BITPOS 16
- #define WMI_HW_MIN_TX_POWER_GET(dword) \
- ((A_INT16) WMI_GET_BITS(dword, WMI_HW_MIN_TX_POWER_BITPOS, 16))
- #define WMI_HW_MIN_TX_POWER_SET(dword, value) \
- WMI_SET_BITS(dword, WMI_HW_MIN_TX_POWER_BITPOS, 16, value)
- #define WMI_HW_MAX_TX_POWER_GET(dword) \
- ((A_INT16) WMI_GET_BITS(dword, WMI_HW_MAX_TX_POWER_BITPOS, 16))
- #define WMI_HW_MAX_TX_POWER_SET(dword, value) \
- WMI_SET_BITS(dword, WMI_HW_MAX_TX_POWER_BITPOS, 16, value)
- #define WMI_MAX_USER_PER_PPDU_UL_OFDMA_GET(dword) \
- WMI_GET_BITS(dword, 0, 16)
- #define WMI_MAX_USER_PER_PPDU_UL_OFDMA_SET(dword, value) \
- WMI_SET_BITS(dword, 0, 16, value)
- #define WMI_MAX_USER_PER_PPDU_DL_OFDMA_GET(dword) \
- WMI_GET_BITS(dword, 16, 16)
- #define WMI_MAX_USER_PER_PPDU_DL_OFDMA_SET(dword, value) \
- WMI_SET_BITS(dword, 16, 16, value)
- #define WMI_MAX_USER_PER_PPDU_UL_MUMIMO_GET(dword) \
- WMI_GET_BITS(dword, 0, 16)
- #define WMI_MAX_USER_PER_PPDU_UL_MUMIMO_SET(dword, value) \
- WMI_SET_BITS(dword, 0, 16, value)
- #define WMI_MAX_USER_PER_PPDU_DL_MUMIMO_GET(dword) \
- WMI_GET_BITS(dword, 16, 16)
- #define WMI_MAX_USER_PER_PPDU_DL_MUMIMO_SET(dword, value) \
- WMI_SET_BITS(dword, 16, 16, value)
- #define WMI_TARGET_CAP_FLAGS_RX_PEER_METADATA_VERSION_GET(target_cap_flags) \
- WMI_GET_BITS(target_cap_flags, 0, 2)
- #define WMI_TARGET_CAP_FLAGS_RX_PEER_METADATA_VERSION_SET(target_cap_flags, value) \
- WMI_SET_BITS(target_cap_flags, 0, 2, value)
- #define WMI_TARGET_CAP_UL_MU_MIMO_RX_SUPPORT_2GHZ_GET(target_cap_flags) \
- WMI_GET_BITS(target_cap_flags, 2, 1)
- #define WMI_TARGET_CAP_UL_MU_MIMO_RX_SUPPORT_2GHZ_SET(target_cap_flags, value) \
- WMI_SET_BITS(target_cap_flags, 2, 1, value)
- #define WMI_TARGET_CAP_UL_MU_MIMO_TX_SUPPORT_2GHZ_GET(target_cap_flags) \
- WMI_GET_BITS(target_cap_flags, 3, 1)
- #define WMI_TARGET_CAP_UL_MU_MIMO_TX_SUPPORT_2GHZ_SET(target_cap_flags, value) \
- WMI_SET_BITS(target_cap_flags, 3, 1, value)
- #define WMI_TARGET_CAP_UL_MU_MIMO_RX_SUPPORT_5GHZ_GET(target_cap_flags) \
- WMI_GET_BITS(target_cap_flags, 4, 1)
- #define WMI_TARGET_CAP_UL_MU_MIMO_RX_SUPPORT_5GHZ_SET(target_cap_flags, value) \
- WMI_SET_BITS(target_cap_flags, 4, 1, value)
- #define WMI_TARGET_CAP_UL_MU_MIMO_TX_SUPPORT_5GHZ_GET(target_cap_flags) \
- WMI_GET_BITS(target_cap_flags, 5, 1)
- #define WMI_TARGET_CAP_UL_MU_MIMO_TX_SUPPORT_5GHZ_SET(target_cap_flags, value) \
- WMI_SET_BITS(target_cap_flags, 5, 1, value)
- #define WMI_TARGET_CAP_UL_MU_MIMO_RX_SUPPORT_6GHZ_GET(target_cap_flags) \
- WMI_GET_BITS(target_cap_flags, 6, 1)
- #define WMI_TARGET_CAP_UL_MU_MIMO_RX_SUPPORT_6GHZ_SET(target_cap_flags, value) \
- WMI_SET_BITS(target_cap_flags, 6, 1, value)
- #define WMI_TARGET_CAP_UL_MU_MIMO_TX_SUPPORT_6GHZ_GET(target_cap_flags) \
- WMI_GET_BITS(target_cap_flags, 7, 1)
- #define WMI_TARGET_CAP_UL_MU_MIMO_TX_SUPPORT_6GHZ_SET(target_cap_flags, value) \
- WMI_SET_BITS(target_cap_flags, 7, 1, value)
- #define WMI_TARGET_CAP_MAX_ML_BSS_NUM_GET(target_cap_flags) \
- WMI_GET_BITS(target_cap_flags, 8, 3)
- #define WMI_TARGET_CAP_MAX_ML_BSS_NUM_SET(target_cap_flags, value) \
- WMI_SET_BITS(target_cap_flags, 8, 3, value)
- #define WMI_TARGET_CAP_CONCURRENCE_SUPPORT_GET(target_cap_flags) \
- WMI_GET_BITS(target_cap_flags, 11, 2)
- #define WMI_TARGET_CAP_CONCURRENCE_SUPPORT_SET(target_cap_flags, value) \
- WMI_SET_BITS(target_cap_flags, 11, 2, value)
- #define WMI_TARGET_CAP_MULTIPASS_SAP_SUPPORT_GET(target_cap_flags) \
- WMI_GET_BITS(target_cap_flags, 13, 1)
- #define WMI_TARGET_CAP_MULTIPASS_SAP_SUPPORT_SET(target_cap_flags, value) \
- WMI_SET_BITS(target_cap_flags, 13, 1, value)
- /* ML FULL monitor mode */
- #define WMI_TARGET_CAP_ML_MONITOR_MODE_SUPPORT_GET(target_cap_flags) \
- WMI_GET_BITS(target_cap_flags, 14, 1)
- #define WMI_TARGET_CAP_ML_MONITOR_MODE_SUPPORT_SET(target_cap_flags, value) \
- WMI_SET_BITS(target_cap_flags, 14, 1, value)
- #define WMI_TARGET_CAP_QDATA_TX_LCE_FILTER_SUPPORT_GET(target_cap_flags) \
- WMI_GET_BITS(target_cap_flags, 15, 1)
- #define WMI_TARGET_CAP_QDATA_TX_LCE_FILTER_SUPPORT_SET(target_cap_flags, value)\
- WMI_SET_BITS(target_cap_flags, 15, 1, value)
- #define WMI_TARGET_CAP_MPDU_STATS_PER_TX_NSS_SUPPORT_GET(target_cap_flags) \
- WMI_GET_BITS(target_cap_flags, 16, 1)
- #define WMI_TARGET_CAP_MPDU_STATS_PER_TX_NSS_SUPPORT_SET(target_cap_flags, value)\
- WMI_SET_BITS(target_cap_flags, 16, 1, value)
- /*
- * wmi_htt_msdu_idx_to_htt_msdu_qtype GET/SET APIs
- */
- #define WMI_HTT_MSDUQ_IDX_TO_MSDUQ_QTYPE_INDEX_GET(index_and_type) \
- WMI_GET_BITS(index_and_type, 0, 8)
- #define WMI_HTT_MSDUQ_IDX_TO_MSDUQ_QTYPE_INDEX_SET(index_and_type, value) \
- WMI_SET_BITS(index_and_type, 0, 8, value)
- #define WMI_HTT_MSDUQ_IDX_TO_MSDUQ_QTYPE_TYPE_GET(index_and_type) \
- WMI_GET_BITS(index_and_type, 8, 8)
- #define WMI_HTT_MSDUQ_IDX_TO_MSDUQ_QTYPE_TYPE_SET(index_and_type, value) \
- WMI_SET_BITS(index_and_type, 8, 8, value)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_htt_msdu_idx_to_htt_msdu_qtype.*/
- /**
- * index_and_type
- *
- * [7:0] : htt_msduq_index
- * [15:8] : htt_msduq_type
- * [31:16] : reserved
- */
- A_UINT32 index_and_type;
- } wmi_htt_msdu_idx_to_htt_msdu_qtype;
- typedef enum {
- WMI_AFC_FEATURE_6G_DEPLOYMENT_UNSPECIFIED = 0,
- WMI_AFC_FEATURE_6G_DEPLOYMENT_INDOOR_ONLY = 1,
- WMI_AFC_FEATURE_6G_DEPLOYMENT_OUTDOOR_ONLY = 2,
- } WMI_AFC_FEATURE_6G_DEPLOYMENT_TYPE;
- typedef enum {
- WMI_BDF_VERSION_CHECK_DISABLED = 0,
- /* WMI_BDF_VERSION_CHECK_GOOD:
- * BDF version is matched with FW.
- */
- WMI_BDF_VERSION_CHECK_GOOD = 1,
- /* WMI_BDF_VERSION_TEMPLATE_TOO_OLD:
- * BDF template version is older than the oldest version supported by FW.
- */
- WMI_BDF_VERSION_TEMPLATE_TOO_OLD = 2,
- /* WMI_BDF_VERSION_TEMPLATE_TOO_NEW:
- * BDF template version is newer than the newest version supported by FW.
- */
- WMI_BDF_VERSION_TEMPLATE_TOO_NEW = 3,
- /* WMI_BDF_VERSION_FW_TOO_OLD:
- * FW version is older than the major version supported by BDF.
- */
- WMI_BDF_VERSION_FW_TOO_OLD = 4,
- /* WMI_BDF_VERSION_FW_TOO_NEW:
- * FW version is newer than the minor version supported by BDF.
- */
- WMI_BDF_VERSION_FW_TOO_NEW = 5,
- } wmi_bdf_version_status_type;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_service_ready_ext2_event_fixed_param.*/
- /*
- * regDB Version to be sent to Host on WMI service ready ext2 event.
- * [7:0] - regDbVersionMajor
- * [15:8] - regDbVersionMinor
- * [23:16] - bdfRegDbVersionMajor
- * [31:24] - bdfRegDbVersionMinor
- * The WMI_*REG_DB_VERSION_[MAJOR,MINOR]_[SET,GET] macros are used to
- * access these bitfields.
- */
- A_UINT32 reg_db_version;
- /* Min & Max Tx power (in dBm) supported in 2.4 GHz band
- * [15:0] - Min Tx Power in 2.4 GHz band
- * [31:16] - Max Tx Power in 2.4 GHz band
- * WMI_HW_[MIN,MAX]_TX_POWER_[GET,SET] macros are used to access
- * these bitfields.
- * If Min Tx Power = Max Tx Power = 0 means Min Tx Power & Max Tx Power
- * are not specified.
- */
- A_UINT32 hw_min_max_tx_power_2g;
- /* Min & Max Tx power (in dBm) supported in 5 GHz band
- * [15:0] - Min Tx Power in 5 GHz band
- * [31:16] - Max Tx Power in 5 GHz band
- * WMI_HW_[MIN,MAX]_TX_POWER_[GET,SET] macros are used to access
- * these bitfields.
- * If Min Tx Power = Max Tx Power = 0 means Min Tx Power & Max Tx Power
- * are not specified.
- */
- A_UINT32 hw_min_max_tx_power_5g;
- /*
- * Number of peers supported per WMI_PEER_CHAN_WIDTH_SWITCH_CMDID
- * 0 - not enabled
- */
- A_UINT32 chwidth_num_peer_caps;
- /*
- * Whether preamble puncturing is supported by FW, and if so, for which
- * bandwidths. The possible values for this field are listed below.
- * 0: preamble puncturing is not supported
- * 80: puncturing supported within channels of at least 80 MHz bandwidth
- * 160: puncturing supported within channels of at least 160 MHz bandwidth
- * 320: puncturing supported within 320 MHz channels
- */
- A_UINT32 preamble_puncture_bw;
- /*
- * [15:0] - ULOFDMA Refer WMI_MAX_USER_PER_PPDU_UL_OFDMA_GET & SET
- * [31:16] - DLOFDMA Refer WMI_MAX_USER_PER_PPDU_DL_OFDMA_GET & SET
- * If max_user_per_ppdu_ofdma == 0 the UL/DL max users are unspecified.
- */
- A_UINT32 max_user_per_ppdu_ofdma;
- /*
- * [15:0] - ULMUMIMO Refer WMI_MAX_USER_PER_PPDU_UL_MUMIMO_GET & SET
- * [31:16] - DLMUMIMO Refer WMI_MAX_USER_PER_PPDU_DL_MUMIMO_GET & SET
- * If max_user_per_ppdu_mumimo == 0 the UL/DL max users are unspecified.
- */
- A_UINT32 max_user_per_ppdu_mumimo;
- /**
- * @brief target_cap_flags - flags containing information about target capabilities.
- * Bits 1:0
- * Rx peer metadata version number used by target
- * 0-> legacy case
- * 1-> MLO support
- * 2,3-> reserved
- * Refer to WMI_TARGET_CAP_FLAGS_PEER_METADATA_VERSION macros.
- * Bit 2 - UL MUMIMO Rx support on 2.4 GHz (AP Mode)
- * Bit 3 - UL MUMIMO Tx support on 2.4 GHz (STA Mode)
- * Bit 4 - UL MUMIMO Rx support on 5 GHz (AP Mode)
- * Bit 5 - UL MUMIMO Tx support on 5 GHz (STA Mode)
- * Bit 6 - UL MUMIMO Rx support on 6 GHz (AP Mode)
- * Bit 7 - UL MUMIMO Tx support on 6 GHz (STA Mode)
- * Bits 10:8 - max ML BSS number supported, range [0-7]
- * Bits 12:11 concurrence support capability
- * Bit11 - [ML-STA + SL-STA] 0: not supported; 1:supported
- * Bit12 - [ML-STA + SL-SAP] 0: not supported; 1:supported
- * Bit 13 - Support for multipass SAP
- * Bit 14 - Support for ML monitor mode
- * Bit 15 - Support for Qdata Tx LCE filter installation
- * Bit 16 - Support for MPDU stats per tx Nss capability
- * Bits 31:17 - Reserved
- */
- A_UINT32 target_cap_flags;
- /* EHT MAC Capabilities: total WMI_MAX_EHTCAP_MAC_SIZE*A_UINT32 bits
- * those bits actually are max mac capabilities = cap_mac_2g | cap_mac_5g
- * The actual cap mac info per mac (2g/5g) in the TLV -- WMI_MAC_PHY_CAPABILITIES_EXT
- */
- A_UINT32 eht_cap_mac_info[WMI_MAX_EHTCAP_MAC_SIZE];
- /* Following this struct are the TLV's:
- * WMI_DMA_RING_CAPABILITIES;
- * wmi_spectral_bin_scaling_params;
- * WMI_MAC_PHY_CAPABILITIES_EXT; <-- EHT mac capabilities and phy capabilities info
- * WMI_HAL_REG_CAPABILITIES_EXT2;
- * wmi_nan_capabilities;
- * WMI_SCAN_RADIO_CAPABILITIES_EXT2;
- */
- /*
- * Max number of LinkView peers supported by target
- */
- A_UINT32 max_num_linkview_peers;
- /*
- * Max number of msduq's per TID per peer supported by target,
- * defines LinkView peers number
- */
- A_UINT32 max_num_msduq_supported_per_tid;
- /*
- * Number of peers support default flowqs
- */
- A_UINT32 default_num_msduq_supported_per_tid;
- /*
- * Indoor/Outdoor specification for AFC support -
- * refer to WMI_AFC_FEATURE_6G_DEPLOYMENT_TYPE enum
- */
- A_UINT32 afc_deployment_type;
- /*
- * Board data check report. Please see wmi_hw_bd_status_type enum values.
- */
- A_UINT32 hw_bd_status;
- /*
- * max block ack window size FW supports for tx.
- */
- A_UINT32 tx_aggr_ba_win_size_max;
- /*
- * max block ack window size FW supports for rx.
- */
- A_UINT32 rx_aggr_ba_win_size_max;
- /*
- * max link number per STA MLD FW supports.
- */
- A_UINT32 num_max_mlo_link_per_ml_bss_supp;
- /*
- * max link number per SAP MLD FW supports.
- */
- A_UINT32 num_max_mlo_link_per_ml_sap_supp;
- /* Followed by next TLVs:
- * WMI_DMA_RING_CAPABILITIES dma_ring_caps[];
- * wmi_spectral_bin_scaling_params wmi_bin_scaling_params[];
- * WMI_MAC_PHY_CAPABILITIES_EXT mac_phy_caps[];
- * WMI_HAL_REG_CAPABILITIES_EXT2 hal_reg_caps[];
- * wmi_nan_capabilities nan_cap;
- * WMI_SCAN_RADIO_CAPABILITIES_EXT2 wmi_scan_radio_caps[];
- * wmi_htt_msdu_idx_to_htt_msdu_qtype htt_msdu_idx_to_qtype_map[];
- * wmi_dbs_or_sbs_cap_ext dbs_or_sbs_cap_ext;
- * A_INT32 hw_tx_power_signed[WMI_HW_TX_POWER_CAPS_MAX];
- * wmi_aux_dev_capabilities aux_dev_caps[];
- */
- } wmi_service_ready_ext2_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_chan_rf_characterization_info_event_fixed_param */
- /*
- * A variable-length TLV array of wmi_chan_rf_characterization_info will
- * follow this fixed_param TLV, containing rx characterization info for
- * primary channels.
- * WMI_CHAN_RF_CHARACTERIZATION_INFO wmi_chan_rf_characterization_info[];
- */
- } wmi_chan_rf_characterization_info_event_fixed_param;
- typedef enum {
- WMI_FW_STA_RTT_INITR = 0x00000001,
- WMI_FW_STA_RTT_RESPR = 0x00000002,
- WMI_FW_P2P_CLI_RTT_INITR = 0x00000004,
- WMI_FW_P2P_CLI_RTT_RESPR = 0x00000008,
- WMI_FW_P2P_GO_RTT_INITR = 0x00000010,
- WMI_FW_P2P_GO_RTT_RESPR = 0x00000020,
- WMI_FW_AP_RTT_INITR = 0x00000040,
- WMI_FW_AP_RTT_RESPR = 0x00000080,
- WMI_FW_NAN_RTT_INITR = 0x00000100,
- WMI_FW_NAN_RTT_RESPR = 0x00000200,
- WMI_FW_SCAN_DBS_POLICY = 0x00000400,
- /*
- * New fw sub feature capabilities before
- * WMI_FW_MAX_SUB_FEAT_CAP
- */
- WMI_FW_MAX_SUB_FEAT_CAP = 0x80000000,
- } WMI_FW_SUB_FEAT_CAPS;
- typedef enum {
- WMI_HWBD_NONE = 0, /* No hw board information is given */
- WMI_HWBD_QCA6174 = 1, /* Rome(AR6320) */
- WMI_HWBD_QCA2582 = 2, /* Killer 1525*/
- } WMI_HWBD_ID;
- #define ATH_BD_DATA_REV_MASK 0x000000FF
- #define ATH_BD_DATA_REV_SHIFT 0
- #define ATH_BD_DATA_PROJ_ID_MASK 0x0000FF00
- #define ATH_BD_DATA_PROJ_ID_SHIFT 8
- #define ATH_BD_DATA_CUST_ID_MASK 0x00FF0000
- #define ATH_BD_DATA_CUST_ID_SHIFT 16
- #define ATH_BD_DATA_REF_DESIGN_ID_MASK 0xFF000000
- #define ATH_BD_DATA_REF_DESIGN_ID_SHIFT 24
- #define SET_BD_DATA_REV(bd_data_ver, value) \
- ((bd_data_ver) &= ~ATH_BD_DATA_REV_MASK, (bd_data_ver) |= ((value) << ATH_BD_DATA_REV_SHIFT))
- #define GET_BD_DATA_REV(bd_data_ver) \
- (((bd_data_ver) & ATH_BD_DATA_REV_MASK) >> ATH_BD_DATA_REV_SHIFT)
- #define SET_BD_DATA_PROJ_ID(bd_data_ver, value) \
- ((bd_data_ver) &= ~ATH_BD_DATA_PROJ_ID_MASK, (bd_data_ver) |= ((value) << ATH_BD_DATA_PROJ_ID_SHIFT))
- #define GET_BD_DATA_PROJ_ID(bd_data_ver) \
- (((bd_data_ver) & ATH_BD_DATA_PROJ_ID_MASK) >> ATH_BD_DATA_PROJ_ID_SHIFT)
- #define SET_BD_DATA_CUST_ID(bd_data_ver, value) \
- ((bd_data_ver) &= ~ATH_BD_DATA_CUST_ID_MASK, (bd_data_ver) |= ((value) << ATH_BD_DATA_CUST_ID_SHIFT))
- #define GET_BD_DATA_CUST_ID(bd_data_ver) \
- (((bd_data_ver) & ATH_BD_DATA_CUST_ID_MASK) >> ATH_BD_DATA_CUST_ID_SHIFT)
- #define SET_BD_DATA_REF_DESIGN_ID(bd_data_ver, value) \
- ((bd_data_ver) &= ~ATH_BD_DATA_REF_DESIGN_ID_MASK, (bd_data_ver) |= ((value) << ATH_BD_DATA_REF_DESIGN_ID_SHIFT))
- #define GET_BD_DATA_REF_DESIGN_ID(bd_data_ver) \
- (((bd_data_ver) & ATH_BD_DATA_REF_DESIGN_ID_MASK) >> ATH_BD_DATA_REF_DESIGN_ID_SHIFT)
- #ifdef ROME_LTE_COEX_FREQ_AVOID
- typedef struct {
- A_UINT32 start_freq; /* start frequency, not channel center freq */
- A_UINT32 end_freq; /* end frequency */
- } avoid_freq_range_desc;
- typedef struct {
- /* bad channel range count, multi range is allowed, 0 means all channel clear */
- A_UINT32 num_freq_ranges;
- /* multi range with num_freq_ranges, LTE advance multi carrier, CDMA,etc */
- avoid_freq_range_desc avd_freq_range[];
- } wmi_wlan_avoid_freq_ranges_event;
- #endif
- /** status consists of upper 16 bits fo A_STATUS status and lower 16 bits of module ID that returned status */
- #define WLAN_INIT_STATUS_SUCCESS 0x0
- #define WLAN_INIT_STATUS_GEN_FAILED 0x1
- #define WLAN_GET_INIT_STATUS_REASON(status) ((status) & 0xffff)
- #define WLAN_GET_INIT_STATUS_MODULE_ID(status) (((status) >> 16) & 0xffff)
- typedef A_UINT32 WLAN_INIT_STATUS;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ready_event_fixed_param */
- wmi_abi_version fw_abi_vers;
- /*
- * mac_addr is always filled; in addition, there can be a mac_addr_list
- * TLV following this fixed_param TLV to specify additional MAC addresses,
- * for cases where the target specifies one MAC address per pdev
- * (so the host can treat the pdevs within the target as separately
- * as possible) rather than one MAC address for the whole SOC.
- */
- wmi_mac_addr mac_addr;
- A_UINT32 status;
- A_UINT32 num_dscp_table;
- /* num_extra_mac_addr -
- * how many additional MAC addresses besides the above mac_addr
- * are provided in the subsequent mac_addr_list TLV
- */
- A_UINT32 num_extra_mac_addr;
- /*
- * Total number of "real" peers (remote peers of an AP vdev,
- * BSS peer of a STA vdev, TDLS peer of a STA vdev) that FW supports.
- * If 0, then Host can use param_tlv->resource_config->num_peers as
- * total number of peers.
- */
- A_UINT32 num_total_peers;
- /*
- * Number of extra peers that Firmware adds.
- * These are self peers and/or other FW only peers that don't represent
- * a 802.11 transceiver, but instead are used for convenience, e.g. to
- * provide a pseudo-peer object for an AP vdev's bcast/mcast tx queues,
- * to allow each tx queue to belong to a peer object.
- * Peer ID can be up to num_total_peers + num_extra_peers.
- */
- A_UINT32 num_extra_peers;
- /*
- * max_ast_index - max AST index that Firmware can generate
- * max_ast_index = (ast_table_size-1), ast_table_size is dynamically chosen
- * based on num_peers configuration from Host. Hence Host needs to know the
- * max_ast_index that Firmware can generate.
- * A 0x0 value for max_ast_index means the target has not specified a limit.
- */
- A_UINT32 max_ast_index;
- /* pktlog_defs_checksum:
- * checksum computed from the definitions of the enums and structs
- * used within pktlog traces.
- * This pktlog defs checksum needs to be embedded into pktlog trace files
- * (specifically in ath_pktlog_bufhdr.version).
- *
- * If pktlog_defs_checksum is zero then it is invalid; it should be ignored
- * and ath_pktlog_bufhdr.magic_num needs to be PKTLOG_MAGIC_NUM_LEGACY
- * (i.e. 7735225).
- *
- * If pktlog_defs_checksum is non-zero then it is valid, and the host
- * should put it into the pktlog trace file header and set
- * ath_pktlog_bufhdr.magic_num as PKTLOG_MAGIC_NUM_VERSION_IS_CHECKSUM
- * (i.e. 2453506), to indicate that the file header version field contains
- * a checksum.
- */
- A_UINT32 pktlog_defs_checksum;
- /*
- * max_onchip_ast_index - max AST index that Firmware can generate
- * max_onchip_ast_index = (ast_table_size-1), where ast_table_size is
- * dynamically chosen based on num_peers configuration from Host.
- * Hence Host needs to know the max_onchip_ast_index that Firmware can
- * generate.
- * A 0x0 value for max_onchip_ast_index means the target has not specified
- * a limit.
- */
- A_UINT32 max_onchip_ast_index;
- /*
- * The maximum number of LinkView peers can be supported onsite of target,
- * based on proposed by the host configuration,
- * total number of available resources, configured peers number,
- * number of MSDUQs per LinkView peer's TID.
- * Target can reduce proposed by WMI_INIT_CMDID number, depending on
- * the target's resources availability.
- */
- A_UINT32 num_of_linkview_peers;
- /* Total number of "real" max_active_vdevs that FW supports. */
- A_UINT32 num_max_active_vdevs;
- /*
- * This fixed_param TLV is followed by these additional TLVs:
- * mac_addr_list[num_extra_mac_addr];
- */
- } wmi_ready_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_resource_config */
- /**
- * @brief num_vdev - number of virtual devices (VAPs) to support
- */
- A_UINT32 num_vdevs;
- /**
- * @brief num_peers - number of peer nodes to support
- */
- A_UINT32 num_peers;
- /*
- * @brief In offload mode target supports features like WOW, chatter and other
- * protocol offloads. In order to support them some functionalities like
- * reorder buffering, PN checking need to be done in target. This determines
- * maximum number of peers supported by target in offload mode
- */
- A_UINT32 num_offload_peers;
- /* @brief Number of reorder buffers available for doing target based reorder
- * Rx reorder buffering
- */
- A_UINT32 num_offload_reorder_buffs;
- /**
- * @brief num_peer_keys - number of keys per peer
- */
- A_UINT32 num_peer_keys;
- /**
- * @brief num_peer_tids - number of TIDs to provide storage for per peer.
- */
- A_UINT32 num_tids;
- /**
- * @brief ast_skid_limit - max skid for resolving hash collisions
- * @details
- * The address search table is sparse, so that if two MAC addresses
- * result in the same hash value, the second of these conflicting
- * entries can slide to the next index in the address search table,
- * and use it, if it is unoccupied. This ast_skid_limit parameter
- * specifies the upper bound on how many subsequent indices to search
- * over to find an unoccupied space.
- */
- A_UINT32 ast_skid_limit;
- /**
- * @brief tx_chain_mask - the nominal chain mask for transmit
- * @details
- * The chain mask may be modified dynamically, e.g. to operate AP tx with
- * a reduced number of chains if no clients are associated.
- * This configuration parameter specifies the nominal chain-mask that
- * should be used when not operating with a reduced set of tx chains.
- */
- A_UINT32 tx_chain_mask;
- /**
- * @brief rx_chain_mask - the nominal chain mask for receive
- * @details
- * The chain mask may be modified dynamically, e.g. for a client to use
- * a reduced number of chains for receive if the traffic to the client
- * is low enough that it doesn't require downlink MIMO or antenna
- * diversity.
- * This configuration parameter specifies the nominal chain-mask that
- * should be used when not operating with a reduced set of rx chains.
- */
- A_UINT32 rx_chain_mask;
- /**
- * @brief rx_timeout_pri - what rx reorder timeout (ms) to use for the AC
- * @details
- * Each WMM access class (voice, video, best-effort, background) will
- * have its own timeout value to dictate how long to wait for missing
- * rx MPDUs to arrive before flushing subsequent MPDUs that have already
- * been received.
- * This parameter specifies the timeout in milliseconds for each class .
- * NOTE: the number of class (defined as 4) cannot be
- * changed in the future without breaking WMI compatibility.
- */
- A_UINT32 rx_timeout_pri[4];
- /**
- * @brief rx_decap mode - what mode the rx should decap packets to
- * @details
- * MAC can decap to RAW (no decap), native wifi or Ethernet types
- * THis setting also determines the default TX behavior, however TX
- * behavior can be modified on a per VAP basis during VAP init
- */
- A_UINT32 rx_decap_mode;
- /**
- * @brief scan_max_pending_req - what is the maximum scan requests than can be queued
- */
- A_UINT32 scan_max_pending_req;
- /**
- * @brief maximum VDEV that could use BMISS offload
- */
- A_UINT32 bmiss_offload_max_vdev;
- /**
- * @brief maximum VDEV that could use offload roaming
- */
- A_UINT32 roam_offload_max_vdev;
- /**
- * @brief maximum AP profiles that would push to offload roaming
- */
- A_UINT32 roam_offload_max_ap_profiles;
- /**
- * @brief num_mcast_groups - how many groups to use for mcast->ucast conversion
- * @details
- * The target's WAL maintains a table to hold information regarding which
- * peers belong to a given multicast group, so that if multicast->unicast
- * conversion is enabled, the target can convert multicast tx frames to a
- * series of unicast tx frames, to each peer within the multicast group.
- * This num_mcast_groups configuration parameter tells the target how
- * many multicast groups to provide storage for within its multicast
- * group membership table.
- */
- A_UINT32 num_mcast_groups;
- /**
- * @brief num_mcast_table_elems - size to alloc for the mcast membership table
- * @details
- * This num_mcast_table_elems configuration parameter tells the target
- * how many peer elements it needs to provide storage for in its
- * multicast group membership table.
- * These multicast group membership table elements are shared by the
- * multicast groups stored within the table.
- */
- A_UINT32 num_mcast_table_elems;
- /**
- * @brief mcast2ucast_mode - whether/how to do multicast->unicast conversion
- * @details
- * This configuration parameter specifies whether the target should
- * perform multicast --> unicast conversion on transmit, and if so,
- * what to do if it finds no entries in its multicast group membership
- * table for the multicast IP address in the tx frame.
- * Configuration value:
- * 0 -> Do not perform multicast to unicast conversion.
- * 1 -> Convert multicast frames to unicast, if the IP multicast address
- * from the tx frame is found in the multicast group membership
- * table. If the IP multicast address is not found, drop the frame.
- * 2 -> Convert multicast frames to unicast, if the IP multicast address
- * from the tx frame is found in the multicast group membership
- * table. If the IP multicast address is not found, transmit the
- * frame as multicast.
- */
- A_UINT32 mcast2ucast_mode;
- /**
- * @brief tx_dbg_log_size - how much memory to allocate for a tx PPDU dbg log
- * @details
- * This parameter controls how much memory the target will allocate to
- * store a log of tx PPDU meta-information (how large the PPDU was,
- * when it was sent, whether it was successful, etc.)
- */
- A_UINT32 tx_dbg_log_size;
- /**
- * @brief num_wds_entries - how many AST entries to be allocated for WDS
- */
- A_UINT32 num_wds_entries;
- /**
- * @brief dma_burst_size - MAC DMA burst size, e.g., on Peregrine on PCI
- * this limit can be 0 -default, 1 256B
- */
- A_UINT32 dma_burst_size;
- /**
- * @brief mac_aggr_delim - Fixed delimiters to be inserted after every MPDU
- * to account for interface latency to avoid underrun.
- */
- A_UINT32 mac_aggr_delim;
- /**
- * @brief rx_skip_defrag_timeout_dup_detection_check
- * @details
- * determine whether target is responsible for detecting duplicate
- * non-aggregate MPDU and timing out stale fragments.
- *
- * A-MPDU reordering is always performed on the target.
- *
- * 0: target responsible for frag timeout and dup checking
- * 1: host responsible for frag timeout and dup checking
- */
- A_UINT32 rx_skip_defrag_timeout_dup_detection_check;
- /**
- * @brief vow_config - Configuration for VoW : No of Video Nodes to be supported
- * and Max no of descriptors for each Video link (node).
- */
- A_UINT32 vow_config;
- /**
- * @brief maximum VDEV that could use GTK offload
- */
- A_UINT32 gtk_offload_max_vdev;
- /**
- * @brief num_msdu_desc - Number of msdu descriptors target should use
- */
- A_UINT32 num_msdu_desc; /* Number of msdu desc */
- /**
- * @brief max_frag_entry - Max. number of Tx fragments per MSDU
- * @details
- * This parameter controls the max number of Tx fragments per MSDU.
- * This is sent by the target as part of the WMI_SERVICE_READY event
- * and is overridden by the OS shim as required.
- */
- A_UINT32 max_frag_entries;
- /**
- * @brief num_tdls_vdevs - Max. number of vdevs that can support TDLS
- * @brief num_msdu_desc - Number of vdev that can support beacon offload
- */
- A_UINT32 num_tdls_vdevs; /* number of vdevs allowed to do tdls */
- /**
- * @brief num_tdls_conn_table_entries - Number of peers tracked by tdls vdev
- * @details
- * Each TDLS enabled vdev can track outgoing transmits/RSSI/rates to/of
- * peers in a connection tracking table for possible TDLS link creation
- * or deletion. This controls the number of tracked peers per vdev.
- */
- A_UINT32 num_tdls_conn_table_entries; /* number of peers to track per TDLS vdev */
- /**
- * @brief beacon_tx_offload_max_vdev - Number of maximum beaconing vaps at any time.
- */
- A_UINT32 beacon_tx_offload_max_vdev;
- A_UINT32 num_multicast_filter_entries;
- A_UINT32 num_wow_filters; /*host can configure the number of wow filters*/
- /**
- * @brief num_keep_alive_pattern - Num of keep alive patterns configured
- * from host.
- */
- A_UINT32 num_keep_alive_pattern;
- /**
- * @brief keep_alive_pattern_size - keep alive pattern size.
- */
- A_UINT32 keep_alive_pattern_size;
- /**
- * @brief max_tdls_concurrent_sleep_sta - Number of tdls sleep sta supported
- * @details
- * Each TDLS STA can become a sleep STA independently. This parameter
- * mentions how many such sleep STAs can be supported concurrently.
- */
- A_UINT32 max_tdls_concurrent_sleep_sta;
- /**
- * @brief max_tdls_concurrent_buffer_sta - Number of tdls buffer sta supported
- * @details
- * Each TDLS STA can become a buffer STA independently. This parameter
- * mentions how many such buffer STAs can be supported concurrently.
- */
- A_UINT32 max_tdls_concurrent_buffer_sta;
- /**
- * @brief wmi_send_separate - host configures fw to send the wmi separately
- */
- A_UINT32 wmi_send_separate;
- /**
- * @brief num_ocb_vdevs - Number of vdevs used for OCB support
- */
- A_UINT32 num_ocb_vdevs;
- /**
- * @brief num_ocb_channels - The supported number of simultaneous OCB channels
- */
- A_UINT32 num_ocb_channels;
- /**
- * @brief num_ocb_schedules - The supported number of OCB schedule segments
- */
- A_UINT32 num_ocb_schedules;
- /**
- * @brief specific configuration from host, such as per platform configuration
- */
- #define WMI_RSRC_CFG_FLAG_WOW_IGN_PCIE_RST_S 0
- #define WMI_RSRC_CFG_FLAG_WOW_IGN_PCIE_RST_M 0x1
- #define WMI_RSRC_CFG_FLAG_LTEU_SUPPORT_S 1
- #define WMI_RSRC_CFG_FLAG_LTEU_SUPPORT_M 0x2
- #define WMI_RSRC_CFG_FLAG_COEX_GPIO_SUPPORT_S 2
- #define WMI_RSRC_CFG_FLAG_COEX_GPIO_SUPPORT_M 0x4
- #define WMI_RSRC_CFG_FLAG_AUX_RADIO_SPECTRAL_INTF_S 3
- #define WMI_RSRC_CFG_FLAG_AUX_RADIO_SPECTRAL_INTF_M 0x8
- #define WMI_RSRC_CFG_FLAG_AUX_RADIO_CHAN_LOAD_INTF_S 4
- #define WMI_RSRC_CFG_FLAG_AUX_RADIO_CHAN_LOAD_INTF_M 0x10
- #define WMI_RSRC_CFG_FLAG_BSS_CHANNEL_INFO_64_S 5
- #define WMI_RSRC_CFG_FLAG_BSS_CHANNEL_INFO_64_M 0x20
- #define WMI_RSRC_CFG_FLAG_ATF_CONFIG_ENABLE_S 6
- #define WMI_RSRC_CFG_FLAG_ATF_CONFIG_ENABLE_M 0x40
- #define WMI_RSRC_CFG_FLAG_IPHR_PAD_CONFIG_ENABLE_S 7
- #define WMI_RSRC_CFG_FLAG_IPHR_PAD_CONFIG_ENABLE_M 0x80
- #define WMI_RSRC_CFG_FLAG_QWRAP_MODE_ENABLE_S 8
- #define WMI_RSRC_CFG_FLAG_QWRAP_MODE_ENABLE_M 0x100
- #define WMI_RSRC_CFG_FLAG_MGMT_COMP_EVT_BUNDLE_SUPPORT_S 9
- #define WMI_RSRC_CFG_FLAG_MGMT_COMP_EVT_BUNDLE_SUPPORT_M 0x200
- #define WMI_RSRC_CFG_FLAG_TX_MSDU_ID_NEW_PARTITION_SUPPORT_S 10
- #define WMI_RSRC_CFG_FLAG_TX_MSDU_ID_NEW_PARTITION_SUPPORT_M 0x400
- #define WMI_RSRC_CFG_FLAG_TX_PPDU_STATS_ENABLE_S 11
- #define WMI_RSRC_CFG_FLAG_TX_PPDU_STATS_ENABLE_M 0x800
- #define WMI_RSRC_CFG_FLAG_TCL_CCE_DISABLE_S 12
- #define WMI_RSRC_CFG_FLAG_TCL_CCE_DISABLE_M 0x1000
- #define WMI_RSRC_CFG_FLAG_TIM_V2_SUPPORT_ENABLE_S 13
- #define WMI_RSRC_CFG_FLAG_TIM_V2_SUPPORT_ENABLE_M 0x2000
- #define WMI_RSRC_CFG_FLAG_EAPOL_REKEY_MINRATE_SUPPORT_ENABLE_S 14
- #define WMI_RSRC_CFG_FLAG_EAPOL_REKEY_MINRATE_SUPPORT_ENABLE_M 0x4000
- #define WMI_RSRC_CFG_FLAG_EAPOL_AC_OVERRIDE_VALID_S 15
- #define WMI_RSRC_CFG_FLAG_EAPOL_AC_OVERRIDE_VALID_M 0x8000
- /*
- * If the AC override valid bit is set then this field will specify the
- * access category to use for EAPOL frames
- * 0 - WMM_AC_BE
- * 1 - WMM_AC_BK
- * 2 - WMM_AC_VI
- * 3 - WMM_AC_VO
- */
- #define WMI_RSRC_CFG_FLAG_EAPOL_AC_OVERRIDE_S 16
- #define WMI_RSRC_CFG_FLAG_EAPOL_AC_OVERRIDE_M 0x30000
- /*
- * If TX_ACK_RSSI is set, then the target should populate the ack_rssi
- * field within the WMI_MGMT_TX_COMPLETION_EVENT message, the ack_rssi
- * TLV within the WMI_MGMT_TX_BUNDLE_COMPLETION_EVENT message, and the
- * "MSDU ACK RSSI" array within the HTT_T2H TX_COMPL_IND message.
- */
- #define WMI_RSRC_CFG_FLAG_TX_ACK_RSSI_S 18
- #define WMI_RSRC_CFG_FLAG_TX_ACK_RSSI_M 0x40000
- /*
- * If HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN is set, the host will not
- * include the HTC header length in the payload length for all HTT_H2T
- * messages.
- * Otherwise, only when sending HTT_H2T_MSG_TYPE_TX_FRM message,
- * payload length includes HTC header length. Other HTT_H2T messages'
- * payload length does not include HTC header length.
- * The host will only set this HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN flag
- * if the target has set the WMI_SERVICE_HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN
- * flag to indicate its support for this option.
- */
- #define WMI_RSRC_CFG_FLAG_HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN_S 19
- #define WMI_RSRC_CFG_FLAG_HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN_M 0x80000
- #define WMI_RSRC_CFG_FLAG_PEER_UNMAP_RESPONSE_SUPPORT_S 20
- #define WMI_RSRC_CFG_FLAG_PEER_UNMAP_RESPONSE_SUPPORT_M 0x100000
- /*
- * If this HTT_PEER_STATS is set, then the target should use the
- * the HTT_T2H_MSG_TYPE_PEER_STATS_IND message to upload peer stats;
- * else the target should avoid sending the PEER_STATS_IND message.
- */
- #define WMI_RSRC_CFG_FLAG_HTT_PEER_STATS_S 21
- #define WMI_RSRC_CFG_FLAG_HTT_PEER_STATS_M 0x200000
- /*
- * If this BIT is set, then the target should use peer_tid_ext to analyze
- * per peer per tid extended configurations
- */
- #define WMI_RSRC_CFG_FLAG_PEER_TID_EXT_S 22
- #define WMI_RSRC_CFG_FLAG_PEER_TID_EXT_M 0x400000
- /*
- * If the VIDEO_OVER_WIFI_ENABLE flag is set, the target will use a
- * series of algorithmic adjustments to optimize Video performance
- * by reducing latency, reducing latency jitter, and minimizing
- * dropped packets.
- */
- #define WMI_RSRC_CFG_FLAG_VIDEO_OVER_WIFI_ENABLE_S 23
- #define WMI_RSRC_CFG_FLAG_VIDEO_OVER_WIFI_ENABLE_M 0x800000
- /*
- * If the THREE_WAY_COEX_CONFIG_LEGACY flag is set, the target will use
- * the configuration parameters given by Host driver to WLAN FW and
- * apply them along with the existing CoEx Weights Override logic to
- * prioritize the WLAN-BT-Zigbee packets accordingly.
- *
- * The host shall only set the THREE_WAY_COEX_CONFIG_LEGACY_SUPPORT
- * RSRC_CFG flag if the target has set the WMI_SERVICE
- * THREE_WAY_COEX_CONFIG_LEGACY_SUPPORT flag.
- *
- * The logic to send GPM to BT-SOC with BT-ZB priorities remains the same.
- */
- #define WMI_RSRC_CFG_FLAG_THREE_WAY_COEX_CONFIG_LEGACY_SUPPORT_S 24
- #define WMI_RSRC_CFG_FLAG_THREE_WAY_COEX_CONFIG_LEGACY_SUPPORT_M 0x1000000
- /*
- * If the THREE_WAY_COEX_CONFIG_OVERRIDE flag is set, the target will use
- * the configuration parameters given by Host driver to WLAN FW and
- * apply them by OVERRIDing the existing CoEx Weights Override logic to
- * prioritize the WLAN-BT-Zigbee packets accordingly.
- *
- * The host shall only set the THREE_WAY_COEX_CONFIG_OVERRIDE_SUPPORT
- * RSRC_CFG flag if the target has set the WMI_SERVICE
- * THREE_WAY_COEX_CONFIG_OVERRIDE_SUPPORT flag.
- *
- * The logic to send GPM to BT-SOC with BT-ZB priorities remains the same.
- */
- #define WMI_RSRC_CFG_FLAG_THREE_WAY_COEX_CONFIG_OVERRIDE_SUPPORT_S 25
- #define WMI_RSRC_CFG_FLAG_THREE_WAY_COEX_CONFIG_OVERRIDE_SUPPORT_M 0x2000000
- /*
- * If the TX_COMPLETION_TX_TSF64 flag is set, the target should
- * populate the htt_tx_compl_ind_append_tx_tsf64 array within the
- * HTT_T2H TX_COMPL_IND message.
- */
- #define WMI_RSRC_CFG_FLAG_TX_COMPLETION_TX_TSF64_ENABLE_S 26
- #define WMI_RSRC_CFG_FLAG_TX_COMPLETION_TX_TSF64_ENABLE_M 0x4000000
- /*
- * If this BIT is set, then the target should support Packet capture(SMART MU FR)
- */
- #define WMI_RSRC_CFG_FLAG_PACKET_CAPTURE_SUPPORT_S 27
- #define WMI_RSRC_CFG_FLAG_PACKET_CAPTURE_SUPPORT_M 0x8000000
- /*
- * If this BIT is set, then target should support BSS Max Idle period.
- */
- #define WMI_RSRC_CFG_FLAG_BSS_MAX_IDLE_TIME_SUPPORT_S 28
- #define WMI_RSRC_CFG_FLAG_BSS_MAX_IDLE_TIME_SUPPORT_M 0x10000000
- /*
- * If this bit is set, then target should use the audio sync feature.
- * Host should only set this bit if the target has indicated via the
- * WMI_SERVICE_AUDIO_SYNC_SUPPORT flag that it supports audio sync.
- */
- #define WMI_RSRC_CFG_FLAG_AUDIO_SYNC_SUPPORT_S 29
- #define WMI_RSRC_CFG_FLAG_AUDIO_SYNC_SUPPORT_M 0x20000000
- /*
- * If this BIT is set, then the target should disable IPA
- */
- #define WMI_RSRC_CFG_FLAG_IPA_DISABLE_S 30
- #define WMI_RSRC_CFG_FLAG_IPA_DISABLE_M 0x40000000
- /*
- * If this bit is set, target should use the PCIe GEN switching feature.
- */
- #define WMI_RSRC_CFG_FLAG_PCIE_GEN_SWITCH_CAPABLITY_S 31
- #define WMI_RSRC_CFG_FLAG_PCIE_GEN_SWITCH_CAPABLITY_M 0x80000000
- A_UINT32 flag1;
- /** @brief smart_ant_cap - Smart Antenna capabilities information
- * @details
- * 1 - Smart antenna is enabled.
- * 0 - Smart antenna is disabled.
- * In future this can contain smart antenna specific capabilities.
- */
- A_UINT32 smart_ant_cap;
- /**
- * User can configure the buffers allocated for each AC (BE, BK, VI, VO)
- * during init
- */
- A_UINT32 BK_Minfree;
- A_UINT32 BE_Minfree;
- A_UINT32 VI_Minfree;
- A_UINT32 VO_Minfree;
- /**
- * @brief alloc_frag_desc_for_data_pkt . Controls data packet fragment
- * descriptor memory allocation.
- * 1 - Allocate fragment descriptor memory for data packet in firmware.
- * If host wants to transmit data packet at its desired rate,
- * this field must be set.
- * 0 - Don't allocate fragment descriptor for data packet.
- */
- A_UINT32 alloc_frag_desc_for_data_pkt;
- /** how much space to allocate for NDP NS (neighbor solicitation) specs */
- A_UINT32 num_ns_ext_tuples_cfg;
- /**
- * size (in bytes) of the buffer the FW shall allocate per vdev
- * firmware can dynamic allocate memory (or disable)
- * packet filtering feature.
- * 0 - fw chooses its default value
- * -1 (0XFFFFFFFF) - disable APF
- */
- A_UINT32 bpf_instruction_size;
- /**
- * Maximum no of BSSID based RX filters host would program
- * Value 0 means host doesn't given any limit to FW.
- */
- A_UINT32 max_bssid_rx_filters;
- /**
- * Use PDEV ID instead of MAC ID, added for backward compatibility with older host
- * which is using MAC ID. 1 means PDEV ID, 0 means MAC ID.
- */
- A_UINT32 use_pdev_id;
- /** Maximum number of scan clients whose DBS scan duty cycle can be configured */
- A_UINT32 max_num_dbs_scan_duty_cycle;
- /** Maximum number of Multi group key to support */
- A_UINT32 max_num_group_keys;
- union {
- A_UINT32 peer_map_unmap_v2_support; /* old name */
- /**
- * HTT peer map/unmap format support (map 4bits and unmap 4bits)
- * 0x00 -> host use default map/unmap only.
- * 0x01 -> legacy value that is interpreted the same as 0x22.
- * 0x22 -> host supports HTT peer map/unmap v2 format; the target is
- * allowed but not required to use peer map/unmap v2 format.
- * 0x32 -> host supports HTT peer map v3 format; the target is
- * allowed but not required to use peer map v3 format and
- * peer unmap v2 format.
- */
- A_UINT32 peer_map_unmap_versions;
- };
- /** Sched config params for all pdevs
- * These tx scheduling configuration parameters are currently only
- * used for internal testing purposes; therefore the non-default
- * values for this field are not currently documented.
- * For regular use, this field should be set to 0x0.
- */
- A_UINT32 sched_params;
- /* Number of MAC on which AP TWT feature is supported */
- A_UINT32 twt_ap_pdev_count;
- /* Max no of STA with which TWT sessions can be formed by the AP */
- A_UINT32 twt_ap_sta_count;
- /* max_nlo_ssids - dynamically negotiated maximum number of SSIDS for NLO
- * This parameter provides the final specification for the maximum number
- * of SSIDs for the target to support for Network List Offload's scanning
- * for preferred networks.
- * This wmi_resource_config.max_nlo_ssids must be <= the max_nlo_ssids
- * field from the target's WMI_SERVICE_READY_EXT_EVENT message.
- * (If the target didn't provide a max_nlo_ssids field in the
- * WMI_SERVICE_READY_EXT message, or if the SERVICE_READY_EXT msg's
- * max_nlo_ssids value was 0x0, the target doesn't support dynamic
- * negotiation of max NLO SSIDs, and WMI_NLO_MAX_SSIDS (=16) applies.)
- * If this wmi_resource_config.max_nlo_ssids field is absent or 0x0,
- * the host does not support dynamic negotiation of max NLO SSIDs.
- * In such a case, the target will respond as follows:
- * If the target supports at least WMI_NLO_MAX_SSIDS, the target will
- * use the statically-configured WMI_NLO_MAX_SSIDS value.
- * If the target supports less than WMI_NLO_MAX_SSIDS, the target will
- * abort its boot-up, due to receiving an invalid/unsupported
- * configuration specification.
- */
- A_UINT32 max_nlo_ssids;
- /**
- * num_packet_filters: the num that host requests fw to support for
- * pktfilter in total, then firmware can dynamic allocate
- * memory(or disable) pktfilter feature.
- *
- * 0 - fw chooses its default value.
- * -1(0XFFFFFFFF)- disable pktfilter.
- */
- A_UINT32 num_packet_filters;
- /**
- * num_max_sta_vdevs: the max num for the sta vdevs
- * fw will use it to config the memory of offload features that
- * are only for sta vdevs.
- * p2p client should be included.
- *
- * 0 - fw chooses its default value: 'num_vdevs' of this structure.
- */
- A_UINT32 num_max_sta_vdevs;
- /* ref to section 8.4.2.48 Multiple BSSID element
- * The Max BSSID Indicator field contains a value assigned to n,
- * where 2^n is the maximum number of BSSIDs
- */
- A_UINT32 max_bssid_indicator;
- /** @brief ul_resp_config - Configures the 11ax uplink ofdma feature on STA.
- * I.e. sending uplink response to a trigger frame sent by AP.
- * @details
- * 0 - fw default behavior, based on chipset
- * 1 - UL_RESP is disabled.
- * 2 - UL_RESP is enabled.
- * other - reserved.
- */
- A_UINT32 ul_resp_config;
- /* msdu_flow_override_config0 - contains AST enable bitmask
- * AST0 is unconditionally enabled, unless the MSDU flow override feature
- * is entirely disabled.
- * AST1 through AST3 are conditionally enabled, based on bits 0-2 in
- * msdu_flow_override_config0.
- * If all three bits are 0, no msdu flow override feature at all in FW.
- *
- * The WMI_MSDU_FLOW_AST_ENABLE_GET and WMI_MSDU_FLOW_AST_ENABLE_SET
- * macros are used to read and write these bitfields.
- */
- A_UINT32 msdu_flow_override_config0;
- /* msdu_flow_override_config1:
- * Bits 3:0 - AST0_FLOW_MASK(4)
- * Bits 7:4 - AST1_FLOW_MASK(4)
- * Bits 11:8 - AST2_FLOW_MASK(4)
- * Bits 15:12 - AST3_FLOW_MASK(4)
- * Bits 23:16 - TID_VALID_HI_PRI (8)
- * Bits 31:24 - TID_VALID_LOW_PRI (8)
- *
- * The macros
- * WMI_MSDU_FLOW_ASTX_MSDU_FLOW_MASKS_GET
- * WMI_MSDU_FLOW_ASTX_MSDU_FLOW_MASKS_SET
- * WMI_MSDU_FLOW_TID_VALID_HI_MASKS_GET
- * WMI_MSDU_FLOW_TID_VALID_HI_MASKS_SET
- * WMI_MSDU_FLOW_TID_VALID_LOW_MASKS_GET
- * WMI_MSDU_FLOW_TID_VALID_LOW_MASKS_SET
- * are used to read and write these bitfields.
- */
- A_UINT32 msdu_flow_override_config1;
- /** @brief flags2 - contains flags used for the following purposes:
- * Configure 11ax uplink ofdma/MU-MIMO feature in FW, when chipsets
- * are brought up in Repeater/STA mode.
- *
- * @details
- * Bits 3:0
- * Enable UL MU-OFDMA/MIMO for PDEVs WIFI0, WIFI1, WIFI2
- * This flags should only be set when a pdev has STA VAP
- * in repeater/self-organizing-network modes.
- * E.g. to enable UL RESP for 5G and 2G radios, value shall be
- * 0b00000000000000000000000000000011 = 0x3.
- * Host shall use UCI config for a radio to populate this value,
- * each radio entry shall have "config re_ul_resp 1" value set.
- * Hence this can be configured dynamically.
- *
- * Refer to the below WMI_RSRC_CFG_FLAGS2_RE_ULRESP_PDEV_CFG_GET/SET
- * macros.
- * Bits 5:4
- * HTT rx peer metadata version number that host supports.
- * Firmware initially sends the target supported version number
- * as part of service_ready_ext2 message.
- * Host can ack the version number that it is using as part of
- * this message.
- * 0-> legacy case
- * 1-> MLO support
- * 2-3-> Reserved
- * Refer to the WMI_RSRC_CFG_FLAGS2_RX_PEER_METADATA_VERSION macros.
- * Bit 6 - is_sap_connected_d3wow_enabled
- * Enable D3WoW for SAP w/ clients connected
- * 0-> disable the feature
- * 1-> enable the feature
- * Refer to the WMI_RSRC_CFG_FLAGS2_IS_SAP_CONNECTED_D3WOW_ENABLED
- * GET/SET macros.
- * Bit 7 - is_go_connected_d3wow_enabled
- * Enable D3WoW for GO w/ clients connected
- * 0-> disable the feature
- * 1-> enable the feature
- * Refer to the WMI_RSRC_CFG_FLAGS2_IS_GO_CONNECTED_D3WOW_ENABLED
- * GET/SET macros.
- * Bit 8 - enable_dynamic_pcie_gen_speed_switch
- * enable dynamic pcie gen speed switch
- * 0-> disable the feature
- * 1-> enable the feature
- * Refer to the WMI_RSRC_CFG_FLAGS2_IS_DYNAMIC_PCIE_GEN_SPEED_SWITCH_ENABLED
- * GET/SET macros.
- * Bit 9 - calc_next_dtim_count
- * 0 -> disable calculation of DTIM count for MBSSID_NON_TX_VAP
- * 1 -> Used by some hosts to indicate calculation of DTIM count
- * for MBSSID_NON_TX_VAP
- * Refer to WMI_RSRC_CFG_FLAGS2_CALC_NEXT_DTIM_COUNT_GET/SET macros.
- *
- * Bit 10 - arp_ac_override_valid
- * 0 -> arp_ac_override field is invalid
- * 1 -> arp_ac_override field is valid
- * Refer to WMI_RSRC_CFG_FLAGS2_ARP_AC_OVERRIDE_VALID_GET/SET macros.
- * Bit 12:11 - arp_ac_override
- * If the AC override valid bit is set then this field will specify the
- * access category to use for ARP frames
- * 0 - WMM_AC_BE
- * 1 - WMM_AC_BK
- * 2 - WMM_AC_VI
- * 3 - WMM_AC_VO
- * Refer to WMI_RSRC_CFG_FLAGS2_ARP_AC_OVERRIDE_GET/SET macros.
- * Bit 13 - sawf_sched
- * SAWF feature flag for scheduler
- * 0 -> disable SAWF based scheduling
- * 1 -> enable SAWF based scheduling
- * Refer to WMI_RSRC_CFG_FLAGS2_SAWF_CONFIG_ENABLE_GET/SET macros.
- * Bit 14 - notify_frame_support
- * Flag to enable notify_frame_support from host.
- * 0 -> disable notify_frame_support feature
- * 1 -> enable_notify_frame_support feature
- * Refer to WMI_RSRC_CFG_FLAGS2_NOTIFY_FRAME_CONFIG_ENABLE_GET/SET
- * macros.
- * Bit 15 - disable_wds_mec_intrabss
- * Flag to disable wds learning, MEC, intrabss offload.
- * By default, it is enabled.
- * 0 -> enable wds_mec_intrabss offload
- * 1 -> disable wds_mec_intrabss offload
- * Refer to WMI_RSRC_CFG_FLAGS2_DISABLE_WDS_MEC_INTRABSS_OFFLOAD_GET /
- * SET macros.
- * Bit 16 - latency_flowq_support
- * Flag to indicate whether host supports latency tolerant queue.
- * By default, it is disabled.
- * 0 -> disable latency_flowq_support
- * 1 -> enable latency_flowq_support
- * Refer to WMI_RSRC_CFG_FLAGS2_LATENCY_FLOWQ_SUPPORT_GET/SET macros.
- * Bit 17 - rf_path_mode
- * Flag to indicate overlapping_freq_mode
- * By default, it will be primary mode (0)
- * 0 - Primary
- * 1 - Secondary
- * Refer to WMI_RSRC_CFG_FLAGS2_RF_PATH_MODE_GET/SET macros.
- * Bit 18 - disable_wds_peer_map_unmap_event
- * Flag to indicate whether the WDS peer map/unmap event should be
- * processed or ignored.
- * 0 - leave the WDS peer map/unmap event enabled
- * 1 - disable the WDS peer map/unmap event
- * This flag shall only be set if the target has set the
- * WMI_SERVICE_DISABLE_WDS_PEER_MAP_UNMAP_EVENT_SUPPORT flag.
- * Refer to WMI_RSRC_CFG_FLAGS2_DISABLE_WDS_PEER_MAP_UNMAP_EVENT_GET
- * and _SET macros.
- * Bit 19 - show whether the host supports 128 or 256 service classes
- * This bit will be set when host supports for 256 service classes
- * 0 -> host supports 128 service classes
- * 1 -> host supports 255 [0-254] valid service classes,
- * and 255 indicates an invalid service class
- * Refer to WMI_RSRC_CFG_FLAGS2_SAWF_255_SVC_CLASS_SUPPORT_GET/SET
- * macros.
- * Bit 20 - enable feature EPM (Enhanced Power Management)
- * 0 -> disable the feature
- * 1 -> enable the feature
- * Refer to the below WMI_RSRC_CFG_FLAGS2_EPM_GET/SET macros.
- * Bit 21 - enable new MGMT SRNG for beacons and probe responses.
- * 0 -> disable the feature
- * 1 -> enable the feature
- * Refer to the below WMI_RSRC_CFG_FLAGS2_IS_MGMT_SRNG_ENABLED_GET/SET
- * macros.
- * Bit 22 - enable 4address WDS support
- * 0 -> disable the feature
- * 1 -> enable the feature
- * Refer to below WMI_RSRC_CFG_FLAGS2_ENABLE_WDS_NULL_FRAME_SUPPORT
- *
- * Bits 31:23 - Reserved
- */
- A_UINT32 flags2;
- /** @brief host_service_flags - can be used by Host to indicate
- * services that host can support.
- *
- * @details
- * Bit 0
- * The bit will be set when Host HDD supports separate iface creation
- * for NAN. More specifically Host can support creation of NAN vdev
- * in firmware.
- *
- * Refer to WMI_RSRC_CFG_HOST_SERVICE_FLAG_NAN_IFACE_SUPPORT_GET/SET
- * macros defined below.
- * Bit 1
- * The bit will be set when HOST is capable of processing multiple
- * radio events per radio. More specifically whenever Firmware is
- * sending multiple radio events (WMI_RADIO_LINK_STATS_EVENTID
- * = 0x16004) for a single radio,
- * Through this flag Firmware will know that HOST is able to support
- * delivery of RADIO_LINK_STATS across multiple event messages,
- * and Firmware can send multiple radio events.
- *
- * Refer to WMI_RSRC_CFG_HOST_SERVICE_FLAG_HOST_SUPPORT_MULTI_RADIO_EVTS_PER_RADIO_GET/SET
- * macros defined below.
- * Bit 2
- * This bit will be set when host is able to handle split AST feature.
- * Refer to the below definitions of the
- * WMI_RSRC_CFG_HOST_SERVICE_FLAG_SPLIT_AST_FEATURE_HOST_SUPPORT_GET
- * and _SET macros.
- * Bit 3
- * This bit will be set when host is able to enable EAPOL offload to
- * FW for SAE roaming feature.
- * Refer to the below definitions of the
- * WMI_RSRC_CFG_HOST_SERVICE_FLAG_SAE_EAPOL_OFFLOAD_SUPPORT_GET
- * and _SET macros.
- * Bit 4
- * This bit will be set when host is able to process the
- * WMI_REG_CC_EXT_EVENT.
- * Refer to the below definitions of the
- * WMI_RSRC_CFG_HOST_SERVICE_FLAG_REG_CC_EXT_SUPPORT_GET
- * and _SET macros.
- * Bit 5
- * This bit will be set when the host supports NAN channels.
- * Refer to WMI_RSRC_CFG_HOST_SERVICE_FLAG_NAN_CHANNEL_SUPPORT_GET/SET
- * Bit 6
- * This bit will be set when the host supports synchronous TWT events.
- * Refer to WMI_RSRC_CFG_HOST_SERVICE_FLAG_STA_TWT_SYNC_EVT_SUPPORT_GET
- * and _SET.
- * Bit 7
- * This bit will be set when host supports both LPI and SP mode.
- * when this bit is set to 0 - Indicate LPI only mode
- * when set to 1 - Indicate both SP mode and LPI mode
- * both are supported
- * Refer to the below definitions of the
- * WMI_RSRC_CFG_HOST_SERVICE_FLAG_LPI_SP_MODE_SUPPORT_GET
- * and _SET macros.
- * Bit 8
- * This bit will be set when host wants to disable timer check in
- * reg for AFC.
- * when set to 1 - Disable timer check
- * Refer to the below definitions of the
- * WMI_RSRC_CFG_HOST_SERVICE_FLAG_REG_DISCARD_TIMER_CHECK_GET
- * and _SET macros.
- * Bit 9
- * This bit will be set when host host wants to disable request id
- * check in reg for AFC.
- * when set to 1 - Disable Request ID check
- * Refer to the below definitions of the
- * WMI_RSRC_CFG_HOST_SERVICE_FLAG_REG_DISCARD_REQ_ID_CHECK_GET
- * and _SET macros.
- * Bit 10
- * This bit will be set when host wants to enable indoor for AFC
- * when this bit is set to 0 indoor mode not enabled
- * when this bit is set to 1 indoor mode is enabled
- * WMI_RSRC_CFG_HOST_SERVICE_FLAG_AFC_INDOOR_SUPPORT_CHECK_GET
- * and SET macros
- * Bit 11
- * This bit will be set when host wants to enable outdoor for AFC
- * when this bit is set to 0 outdoor mode not enabled
- * when this bit is set to 1 outdoor mode is enabled
- * WMI_RSRC_CFG_HOST_SERVICE_FLAG_AFC_OUTDOOR_SUPPORT_CHECK_GET
- * and SET macros.
- * Bit 12
- * This bit will be set when host host wants to enable/disable
- * REO QREF feature
- * when set to 1 - Enable the REO QREF feature
- * when set to 0 - Disable the REO QREF feature
- * Refer to the below definitions of the
- * WMI_RSRC_CFG_HOST_SERVICE_FLAG_REO_QREF_FEATURE_SUPPORT_GET
- * and _SET macros.
- * Bit 13
- * This bit will be set when host host wants to enable/disable
- * bang radar 320M support feature
- * when set to 1 - Enable the bang radar 320M support
- * when set to 0 - Disable the bang radar 320M support
- * Refer to the below definitions of the
- * WMI_RSRC_CFG_HOST_SERVICE_FLAG_BANG_RADAR_320M_SUPPORT_GET
- * and _SET macros.
- * Bit 14
- * This bit will be set when host wants to enable/disable
- * full BW NOL feature.
- * When set to 1: Enable full BW NOL feature.
- * When set to 0: Disable the full BW NOL feature.
- * Refer to the below definitions of the
- * WMI_RSRC_CFG_HOST_SERVICE_FLAG_RADAR_FLAGS_FULL_BW_NOL_GET
- * and _SET macros.
- * Bit 15
- * This bit will be set if the host has smem_mailbox support enabled.
- * Refer to the below definitions of the
- * WMI_RSRC_CFG_HOST_SERVICE_FLAG_SMEM_MAILBOX_SUPPORT_GET
- * and _SET macros.
- * Bit 16
- * ML FULL monitor mode
- * This bit will be set by host to enable ML_FULL_MONITOR_MODE
- * Refer to the below definitions of the
- * WMI_RSRC_CFG_HOST_SERVICE_FLAG_ML_FULL_MONITOR_MODE_SUPPORT_GET
- * and _SET macros
- * Bit 17
- * This bit will set by host to inform FW that rx buffer refilling
- * is supported by the host in Qdata feature (tx LCE consent pkt),
- * So FW will start refilling the buffers.
- * Refer to the below definitions of WMI_RSRC_CFG_HOST_SERVICE_FLAG
- * OPT_DP_CTRL_REPLENISH_REFILL_RX_BUFFER_SUPPORT_GET and _SET macros.
- * Bits 31:18 - Reserved
- */
- A_UINT32 host_service_flags;
- /** @brief max_rnr_neighbours -
- * The Maximum number of neighbour RNR's from other SoC.
- * This limits the field @num_bss in @wmi_pdev_tbtt_offset_sync_cmd_fixed_param.
- * Value of 0 means cross SoC TBTT offset synchronization not required and
- * @PDEV_TBTT_OFFSET_SYNC_CMD wouldn't be used.
- */
- A_UINT32 max_rnr_neighbours;
- /** @brief ema_max_vap_cnt - number of maximum EMA Tx vaps (VAPs having both
- * VDEV_FLAGS_EMA_MODE and VDEV_FLAGS_TRANSMIT_AP set) at any instance
- * of time across SOC. Legacy MBSS Vaps are not accounted in this field.
- */
- A_UINT32 ema_max_vap_cnt;
- /** @brief ema_max_profile_period - maximum profile periodicity
- * (maximum number of beacons after which VAP profiles repeat)
- * for any EMA VAP on any pdev.
- */
- A_UINT32 ema_max_profile_period;
- /** @brief max_ndp_sessions
- * This is the max ndp sessions sent by the host which is the minimum
- * of the value requested within the host's ini configurations and
- * the max ndp sessions supported by the firmware (as reported in the
- * SERVICE_READY_EXT2_EVENT message).
- */
- A_UINT32 max_ndp_sessions;
- /** @brief max_ndi_supported
- * This is the max ndi interfaces sent by the host based on the value
- * specified by the host's ini configuration.
- */
- A_UINT32 max_ndi_interfaces;
- /** @brief max_ap_vaps
- * Maximum number of AP mode vdevs created at any time.
- * This value is minimum of the number of AP vdevs supported by
- * the target and host.
- */
- A_UINT32 max_ap_vaps;
- /** @brief cbc_flow_ena
- * When cbc_flow_ena is se, halphy will do Cold Boot Calibration flow.
- * Otherwise, halphy will do normal flow.
- */
- A_UINT32 cbc_flow_ena;
- /** @brief ema_init_config - can be used by Host to indicate beacon size
- * @details
- * Bit 0 : 15 - Size of beacon, currently it can be sent as
- * 1500 or 2500 or 4000 bytes
- * Bit 16 : 31 - Reserved
- * In case of Backward compatibility, if this variable is 0 then
- * default beacon size (1500) is used.
- */
- A_UINT32 ema_init_config;
- /** @brief carrier_config
- * Carrier profile configuration
- * BIT 0 -> enable/disable charter configurations
- * BIT 1 : 31 Reserved
- */
- A_UINT32 carrier_config;
- /** @brief num_of_linkview_peers - proposed by the host value of
- * the peers with the num_of_linkview_msduqs_per_tid allocation
- * @details
- * Host can request what the number of 'num_peers' should use
- * num_of_linkview_msduqs_per_tid. All other peers will use
- * default number of MSDUQs allocated.
- */
- A_UINT32 num_of_linkview_peers;
- /** @brief num_of_linkview_msduqs_per_tid - proposed by the host value of
- * MSDUQs per each LinkView peer's TID
- * @details
- * Host sends the number of MSDUQs per each LinkView peer's TID.
- * This number will be used during resources allocation for
- * LinkView peer in the target.
- */
- A_UINT32 num_of_linkview_msduqs_per_tid;
- /**
- * @brief num_max_active_vdevs -
- * number of max active virtual devices (VAPs) to support
- */
- A_UINT32 num_max_active_vdevs;
- /**
- * @brief num_max_mlo_link_per_ml_bss
- * number of max partner links of a ML BSS
- */
- A_UINT32 num_max_mlo_link_per_ml_bss;
- /**
- * @brief num_max_active_mlo_link_per_ml_bss
- * number of max active partner links of a ML BSS
- */
- A_UINT32 num_max_active_mlo_link_per_ml_bss;
- } wmi_resource_config;
- #define WMI_MSDU_FLOW_AST_ENABLE_GET(msdu_flow_config0, ast_x) \
- (((ast_x) == 0) ? 1 : ((msdu_flow_config0) & (1 << ((ast_x) - 1))))
- #define WMI_MSDU_FLOW_AST_ENABLE_SET(msdu_flow_config0, ast_x, enable) \
- do { \
- if ((ast_x) == 0) break; \
- if ((enable)) { \
- (msdu_flow_config0) |= (1 << ((ast_x) - 1)); \
- } else { \
- (msdu_flow_config0) &= ~(1 << ((ast_x) - 1)); \
- } \
- } while(0)
- #define WMI_MSDU_FLOW_ASTX_MSDU_FLOW_MASKS_GET(msdu_flow_config1, ast_x) \
- (((msdu_flow_config1) & (0x0f << ((ast_x) * 4))) >> ((ast_x) * 4))
- #define WMI_MSDU_FLOW_ASTX_MSDU_FLOW_MASKS_SET( \
- msdu_flow_config1, ast_x, mask) \
- do { \
- (msdu_flow_config1) &= ~(0xF << ((ast_x) * 4)); \
- (msdu_flow_config1) |= ((mask) << ((ast_x) * 4)); \
- } while(0)
- #define WMI_MSDU_FLOW_TID_VALID_HI_MASKS_GET(msdu_flow_config1) \
- (((msdu_flow_config1) & 0xff0000) >> 16)
- #define WMI_MSDU_FLOW_TID_VALID_HI_MASKS_SET(msdu_flow_config1, mask) \
- do { \
- (msdu_flow_config1) &= ~0xff0000; \
- (msdu_flow_config1) |= ((mask) << 16); \
- } while(0)
- #define WMI_MSDU_FLOW_TID_VALID_LOW_MASKS_GET(msdu_flow_config1) \
- ((msdu_flow_config1 & 0xff000000) >> 24)
- #define WMI_MSDU_FLOW_TID_VALID_LOW_MASKS_SET(msdu_flow_config1, mask) \
- do { \
- (msdu_flow_config1) &= ~0xff000000; \
- (msdu_flow_config1) |= ((mask) << 24); \
- } while(0)
- #define WMI_RSRC_CFG_FLAG_SET(word32, flag, value) \
- do { \
- (word32) &= ~WMI_RSRC_CFG_FLAG_ ## flag ## _M; \
- (word32) |= ((value) << WMI_RSRC_CFG_FLAG_ ## flag ## _S) & \
- WMI_RSRC_CFG_FLAG_ ## flag ## _M; \
- } while (0)
- #define WMI_RSRC_CFG_FLAG_GET(word32, flag) \
- (((word32) & WMI_RSRC_CFG_FLAG_ ## flag ## _M) >> \
- WMI_RSRC_CFG_FLAG_ ## flag ## _S)
- #define WMI_RSRC_CFG_FLAG_WOW_IGN_PCIE_RST_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), WOW_IGN_PCIE_RST, (value))
- #define WMI_RSRC_CFG_FLAG_WOW_IGN_PCIE_RST_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), WOW_IGN_PCIE_RST)
- #define WMI_RSRC_CFG_FLAG_LTEU_SUPPORT_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), LTEU_SUPPORT, (value))
- #define WMI_RSRC_CFG_FLAG_LTEU_SUPPORT_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), LTEU_SUPPORT)
- #define WMI_RSRC_CFG_FLAG_COEX_GPIO_SUPPORT_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), COEX_GPIO_SUPPORT, (value))
- #define WMI_RSRC_CFG_FLAG_COEX_GPIO_SUPPORT_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), COEX_GPIO_SUPPORT)
- #define WMI_RSRC_CFG_FLAG_AUX_RADIO_SPECTRAL_INTF_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), AUX_RADIO_SPECTRAL_INTF, (value))
- #define WMI_RSRC_CFG_FLAG_AUX_RADIO_SPECTRAL_INTF_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), AUX_RADIO_SPECTRAL_INTF)
- #define WMI_RSRC_CFG_FLAG_AUX_RADIO_CHAN_LOAD_INTF_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), AUX_RADIO_CHAN_LOAD_INTF, (value))
- #define WMI_RSRC_CFG_FLAG_AUX_RADIO_CHAN_LOAD_INTF_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), AUX_RADIO_CHAN_LOAD_INTF)
- #define WMI_RSRC_CFG_FLAG_BSS_CHANNEL_INFO_64_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), BSS_CHANNEL_INFO_64, (value))
- #define WMI_RSRC_CFG_FLAG_BSS_CHANNEL_INFO_64_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), BSS_CHANNEL_INFO_64)
- #define WMI_RSRC_CFG_FLAG_ATF_CONFIG_ENABLE_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), ATF_CONFIG_ENABLE, (value))
- #define WMI_RSRC_CFG_FLAG_ATF_CONFIG_ENABLE_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), ATF_CONFIG_ENABLE)
- #define WMI_RSRC_CFG_FLAG_IPHR_PAD_CONFIG_ENABLE_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), IPHR_PAD_CONFIG_ENABLE, (value))
- #define WMI_RSRC_CFG_FLAG_IPHR_PAD_CONFIG_ENABLE_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), IPHR_PAD_CONFIG_ENABLE)
- #define WMI_RSRC_CFG_FLAG_QWRAP_MODE_ENABLE_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), QWRAP_MODE_ENABLE, (value))
- #define WMI_RSRC_CFG_FLAG_QWRAP_MODE_ENABLE_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), QWRAP_MODE_ENABLE)
- #define WMI_RSRC_CFG_FLAG_MGMT_COMP_EVT_BUNDLE_SUPPORT_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), MGMT_COMP_EVT_BUNDLE_SUPPORT, (value))
- #define WMI_RSRC_CFG_FLAG_MGMT_COMP_EVT_BUNDLE_SUPPORT_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), MGMT_COMP_EVT_BUNDLE_SUPPORT)
- #define WMI_RSRC_CFG_FLAG_TX_MSDU_ID_NEW_PARTITION_SUPPORT_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), TX_MSDU_ID_NEW_PARTITION_SUPPORT, (value))
- #define WMI_RSRC_CFG_FLAG_TX_MSDU_ID_NEW_PARTITION_SUPPORT_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), TX_MSDU_ID_NEW_PARTITION_SUPPORT)
- #define WMI_RSRC_CFG_FLAG_TCL_CCE_DISABLE_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), TCL_CCE_DISABLE, (value))
- #define WMI_RSRC_CFG_FLAG_TCL_CCE_DISABLE_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), TCL_CCE_DISABLE)
- #define WMI_RSRC_CFG_FLAG_TIM_V2_SUPPORT_ENABLE_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), TIM_V2_SUPPORT_ENABLE, (value))
- #define WMI_RSRC_CFG_FLAG_TIM_V2_SUPPORT_ENABLE_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), TIM_V2_SUPPORT_ENABLE)
- #define WMI_RSRC_CFG_FLAG_EAPOL_REKEY_MINRATE_SUPPORT_ENABLE_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), EAPOL_REKEY_MINRATE_SUPPORT_ENABLE, (value))
- #define WMI_RSRC_CFG_FLAG_EAPOL_REKEY_MINRATE_SUPPORT_ENABLE_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), EAPOL_REKEY_MINRATE_SUPPORT_ENABLE)
- #define WMI_RSRC_CFG_FLAG_EAPOL_AC_OVERRIDE_VALID_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), EAPOL_AC_OVERRIDE_VALID, (value))
- #define WMI_RSRC_CFG_FLAG_EAPOL_AC_OVERRIDE_VALID_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), EAPOL_AC_OVERRIDE_VALID)
- #define WMI_RSRC_CFG_FLAG_EAPOL_AC_OVERRIDE_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), EAPOL_AC_OVERRIDE, (value))
- #define WMI_RSRC_CFG_FLAG_EAPOL_AC_OVERRIDE_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), EAPOL_AC_OVERRIDE)
- #define WMI_RSRC_CFG_FLAG_TX_ACK_RSSI_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), TX_ACK_RSSI, (value))
- #define WMI_RSRC_CFG_FLAG_TX_ACK_RSSI_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), TX_ACK_RSSI)
- #define WMI_RSRC_CFG_FLAG_HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN, (value))
- #define WMI_RSRC_CFG_FLAG_HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN)
- #define WMI_RSRC_CFG_FLAG_PEER_UNMAP_RESPONSE_SUPPORT_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), PEER_UNMAP_RESPONSE_SUPPORT, (value))
- #define WMI_RSRC_CFG_FLAG_PEER_UNMAP_RESPONSE_SUPPORT_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), PEER_UNMAP_RESPONSE_SUPPORT)
- #define WMI_RSRC_CFG_FLAG_HTT_PEER_STATS_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), HTT_PEER_STATS, (value))
- #define WMI_RSRC_CFG_FLAG_HTT_PEER_STATS_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), HTT_PEER_STATS)
- #define WMI_RSRC_CFG_FLAG_PEER_TID_EXT_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), PEER_TID_EXT, (value))
- #define WMI_RSRC_CFG_FLAG_PEER_TID_EXT_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), PEER_TID_EXT)
- #define WMI_RSRC_CFG_FLAG_VIDEO_OVER_WIFI_ENABLE_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), VIDEO_OVER_WIFI_ENABLE, (value))
- #define WMI_RSRC_CFG_FLAG_VIDEO_OVER_WIFI_ENABLE_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), VIDEO_OVER_WIFI_ENABLE)
- #define WMI_RSRC_CFG_FLAG_THREE_WAY_COEX_CONFIG_LEGACY_SUPPORT_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), THREE_WAY_COEX_CONFIG_LEGACY_SUPPORT, (value))
- #define WMI_RSRC_CFG_FLAG_THREE_WAY_COEX_CONFIG_LEGACY_SUPPORT_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), THREE_WAY_COEX_CONFIG_LEGACY_SUPPORT)
- #define WMI_RSRC_CFG_FLAG_THREE_WAY_COEX_CONFIG_OVERRIDE_SUPPORT_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), THREE_WAY_COEX_CONFIG_OVERRIDE_SUPPORT, (value))
- #define WMI_RSRC_CFG_FLAG_THREE_WAY_COEX_CONFIG_OVERRIDE_SUPPORT_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), THREE_WAY_COEX_CONFIG_OVERRIDE_SUPPORT)
- #define WMI_RSRC_CFG_FLAG_TX_COMPLETION_TX_TSF64_ENABLE_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), TX_COMPLETION_TX_TSF64_ENABLE, (value))
- #define WMI_RSRC_CFG_FLAG_TX_COMPLETION_TX_TSF64_ENABLE_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), TX_COMPLETION_TX_TSF64_ENABLE)
- #define WMI_RSRC_CFG_FLAG_PACKET_CAPTURE_SUPPORT_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), PACKET_CAPTURE_SUPPORT, (value))
- #define WMI_RSRC_CFG_FLAG_PACKET_CAPTURE_SUPPORT_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), PACKET_CAPTURE_SUPPORT)
- #define WMI_RSRC_CFG_FLAG_BSS_MAX_IDLE_TIME_SUPPORT_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), BSS_MAX_IDLE_TIME_SUPPORT, (value))
- #define WMI_RSRC_CFG_FLAG_BSS_MAX_IDLE_TIME_SUPPORT_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), BSS_MAX_IDLE_TIME_SUPPORT)
- #define WMI_RSRC_CFG_FLAG_AUDIO_SYNC_SUPPORT_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), AUDIO_SYNC_SUPPORT, (value))
- #define WMI_RSRC_CFG_FLAG_AUDIO_SYNC_SUPPORT_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), AUDIO_SYNC_SUPPORT)
- #define WMI_RSRC_CFG_FLAG_IPA_DISABLE_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), IPA_DISABLE, (value))
- #define WMI_RSRC_CFG_FLAG_IPA_DISABLE_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), IPA_DISABLE)
- #define WMI_RSRC_CFG_FLAG_PCIE_GEN_SWITCH_CAPABLITY_SET(word32, value) \
- WMI_RSRC_CFG_FLAG_SET((word32), PCIE_GEN_SWITCH_CAPABLITY, (value))
- #define WMI_RSRC_CFG_FLAG_PCIE_GEN_SWITCH_CAPABLITY_GET(word32) \
- WMI_RSRC_CFG_FLAG_GET((word32), PCIE_GEN_SWITCH_CAPABLITY)
- #define WMI_RSRC_CFG_FLAGS2_RE_ULRESP_PDEV_CFG_GET(flags2, pdev_id) \
- WMI_GET_BITS(flags2, pdev_id, 1)
- #define WMI_RSRC_CFG_FLAGS2_RE_ULRESP_PDEV_CFG_SET(flags2, pdev_id, value) \
- WMI_SET_BITS(flags2, pdev_id, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_RX_PEER_METADATA_VERSION_GET(flags2) \
- WMI_GET_BITS(flags2, 4, 2)
- #define WMI_RSRC_CFG_FLAGS2_RX_PEER_METADATA_VERSION_SET(flags2, value) \
- WMI_SET_BITS(flags2, 4, 2, value)
- #define WMI_RSRC_CFG_FLAGS2_IS_SAP_CONNECTED_D3WOW_ENABLED_GET(flags2) \
- WMI_GET_BITS(flags2, 6, 1)
- #define WMI_RSRC_CFG_FLAGS2_IS_SAP_CONNECTED_D3WOW_ENABLED_SET(flags2, value) \
- WMI_SET_BITS(flags2, 6, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_IS_GO_CONNECTED_D3WOW_ENABLED_GET(flags2) \
- WMI_GET_BITS(flags2, 7, 1)
- #define WMI_RSRC_CFG_FLAGS2_IS_GO_CONNECTED_D3WOW_ENABLED_SET(flags2, value) \
- WMI_SET_BITS(flags2, 7, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_IS_DYNAMIC_PCIE_GEN_SPEED_SWITCH_ENABLED_GET(flags2) \
- WMI_GET_BITS(flags2, 8, 1)
- #define WMI_RSRC_CFG_FLAGS2_IS_DYNAMIC_PCIE_GEN_SPEED_SWITCH_ENABLED_SET(flags2, value) \
- WMI_SET_BITS(flags2, 8, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_CALC_NEXT_DTIM_COUNT_GET(flags2) \
- WMI_GET_BITS(flags2, 9, 1)
- #define WMI_RSRC_CFG_FLAGS2_CALC_NEXT_DTIM_COUNT_SET(flags2, value) \
- WMI_SET_BITS(flags2, 9, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_ARP_AC_OVERRIDE_VALID_GET(flags2) \
- WMI_GET_BITS(flags2, 10, 1)
- #define WMI_RSRC_CFG_FLAGS2_ARP_AC_OVERRIDE_VALID_SET(flags2, value) \
- WMI_SET_BITS(flags2, 10, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_ARP_AC_OVERRIDE_GET(flags2) \
- WMI_GET_BITS(flags2, 11, 2)
- #define WMI_RSRC_CFG_FLAGS2_ARP_AC_OVERRIDE_SET(flags2, value) \
- WMI_SET_BITS(flags2, 11, 2, value)
- #define WMI_RSRC_CFG_FLAGS2_SAWF_CONFIG_ENABLE_GET(flags2) \
- WMI_GET_BITS(flags2, 13, 1)
- #define WMI_RSRC_CFG_FLAGS2_SAWF_CONFIG_ENABLE_SET(flags2, value) \
- WMI_SET_BITS(flags2, 13, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_NOTIFY_FRAME_CONFIG_ENABLE_GET(flags2) \
- WMI_GET_BITS(flags2, 14, 1)
- #define WMI_RSRC_CFG_FLAGS2_NOTIFY_FRAME_CONFIG_ENABLE_SET(flags2, value) \
- WMI_SET_BITS(flags2, 14, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_DISABLE_WDS_MEC_INTRABSS_OFFLOAD_GET(flags2) \
- WMI_GET_BITS(flags2, 15, 1)
- #define WMI_RSRC_CFG_FLAGS2_DISABLE_WDS_MEC_INTRABSS_OFFLOAD_SET(flags2, value) \
- WMI_SET_BITS(flags2, 15, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_LATENCY_FLOWQ_SUPPORT_GET(flags2) \
- WMI_GET_BITS(flags2, 16, 1)
- #define WMI_RSRC_CFG_FLAGS2_LATENCY_FLOWQ_SUPPORT_SET(flags2, value) \
- WMI_SET_BITS(flags2, 16, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_RF_PATH_MODE_GET(flags2) \
- WMI_GET_BITS(flags2, 17, 1)
- #define WMI_RSRC_CFG_FLAGS2_RF_PATH_MODE_SET(flags2, value) \
- WMI_SET_BITS(flags2, 17, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_DISABLE_WDS_PEER_MAP_UNMAP_EVENT_GET(flags2) \
- WMI_GET_BITS(flags2, 18, 1)
- #define WMI_RSRC_CFG_FLAGS2_DISABLE_WDS_PEER_MAP_UNMAP_EVENT_SET(flags2, value) \
- WMI_SET_BITS(flags2, 18, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_SAWF_255_SVC_CLASS_SUPPORT_GET(flags2) \
- WMI_GET_BITS(flags2, 19, 1)
- #define WMI_RSRC_CFG_FLAGS2_SAWF_255_SVC_CLASS_SUPPORT_SET(flags2, value) \
- WMI_SET_BITS(flags2, 19, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_EPM_GET(flags2) \
- WMI_GET_BITS(flags2, 20, 1)
- #define WMI_RSRC_CFG_FLAGS2_EPM_SET(flags2, value) \
- WMI_SET_BITS(flags2, 20, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_IS_MGMT_SRNG_ENABLED_GET(flags2) \
- WMI_GET_BITS(flags2, 21, 1)
- #define WMI_RSRC_CFG_FLAGS2_IS_MGMT_SRNG_ENABLED_SET(flags2, value) \
- WMI_SET_BITS(flags2, 21, 1, value)
- #define WMI_RSRC_CFG_FLAGS2_ENABLE_WDS_NULL_FRAME_SUPPORT_GET(flags2) \
- WMI_GET_BITS(flags2, 22, 1)
- #define WMI_RSRC_CFG_FLAGS2_ENABLE_WDS_NULL_FRAME_SUPPORT_SET(flags2, value) \
- WMI_SET_BITS(flags2, 22, 1, value)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_NAN_IFACE_SUPPORT_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 0, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_NAN_IFACE_SUPPORT_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 0, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_HOST_SUPPORT_MULTI_RADIO_EVTS_PER_RADIO_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 1, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_HOST_SUPPORT_MULTI_RADIO_EVTS_PER_RADIO_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 1, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_SPLIT_AST_FEATURE_HOST_SUPPORT_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 2, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_SPLIT_AST_FEATURE_HOST_SUPPORT_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 2, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_SAE_EAPOL_OFFLOAD_SUPPORT_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 3, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_SAE_EAPOL_OFFLOAD_SUPPORT_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 3, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_REG_CC_EXT_SUPPORT_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 4, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_REG_CC_EXT_SUPPORT_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 4, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_NAN_CHANNEL_SUPPORT_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 5, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_NAN_CHANNEL_SUPPORT_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 5, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_STA_TWT_SYNC_EVT_SUPPORT_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 6, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_STA_TWT_SYNC_EVT_SUPPORT_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 6, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_LPI_SP_MODE_SUPPORT_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 7, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_LPI_SP_MODE_SUPPORT_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 7, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_REG_DISCARD_AFC_TIMER_CHECK_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 8, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_REG_DISCARD_AFC_TIMER_CHECK_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 8, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_REG_DISCARD_AFC_REQ_ID_CHECK_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 9, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_REG_DISCARD_AFC_REQ_ID_CHECK_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 9, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_AFC_INDOOR_SUPPORT_CHECK_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 10, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_AFC_INDOOR_SUPPORT_CHECK_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 10, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_AFC_OUTDOOR_SUPPORT_CHECK_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 11, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_AFC_OUTDOOR_SUPPORT_CHECK_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 11, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_REO_QREF_FEATURE_SUPPORT_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 12, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_REO_QREF_FEATURE_SUPPORT_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 12, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_BANG_RADAR_320M_SUPPORT_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 13, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_BANG_RADAR_320M_SUPPORT_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 13, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_RADAR_FLAGS_FULL_BW_NOL_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 14, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_RADAR_FLAGS_FULL_BW_NOL_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 14, 1, val)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_SMEM_MAILBOX_SUPPORT_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 15, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_SMEM_MAILBOX_SUPPORT_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 15, 1, val)
- /*
- * Temporarily retain deprecated old "QMS_DLKM" macro names as aliases
- * for the new "SMEM_MAILBOX" macro names.
- */
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_QMS_DLKM_SUPPORT_GET(host_service_flags) /* DEPRECATED */ \
- WMI_RSRC_CFG_HOST_SERVICE_FLAG_SMEM_MAILBOX_SUPPORT_GET(host_service_flags)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_QMS_DLKM_SUPPORT_SET(host_service_flags, val) /* DEPRECATED */ \
- WMI_RSRC_CFG_HOST_SERVICE_FLAG_SMEM_MAILBOX_SUPPORT_SET(host_service_flags, val)
- /* ML FULL monitor mode */
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_ML_FULL_MONITOR_MODE_SUPPORT_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 16, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_ML_FULL_MONITOR_MODE_SUPPORT_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 16, 1, val)
- /* This bit is used to inform FW to provide refill buffers in Qdata feature */
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_OPT_DP_CTRL_REPLENISH_REFILL_RX_BUFFER_SUPPORT_GET(host_service_flags) \
- WMI_GET_BITS(host_service_flags, 17, 1)
- #define WMI_RSRC_CFG_HOST_SERVICE_FLAG_OPT_DP_CTRL_REPLENISH_REFILL_RX_BUFFER_SUPPORT_SET(host_service_flags, val) \
- WMI_SET_BITS(host_service_flags, 17, 1, val)
- #define WMI_RSRC_CFG_CARRIER_CFG_CHARTER_ENABLE_GET(carrier_config) \
- WMI_GET_BITS(carrier_config, 0, 1)
- #define WMI_RSRC_CFG_CARRIER_CFG_CHARTER_ENABLE_SET(carrier_config, val) \
- WMI_SET_BITS(carrier_config, 0, 1, val)
- /** Top nibble can be used to diff between HE and EHT: 0xVXXXXXXX
- * If V == 0b0000: format is HE.
- * If V == 0b0001: format is EHT.
- */
- #define WMI_RSRC_CFG_IS_EHT_GET(param_value) \
- WMI_GET_BITS(param_value, 28, 4)
- #define WMI_RSRC_CFG_IS_EHT_SET(param_value, val) \
- WMI_SET_BITS(param_value, 28, 4, val)
- /* Used along with the above macro to set the value. */
- #define WMI_RSRC_CFG_PARAM_VALUE_GET(param_value) \
- WMI_GET_BITS(param_value, 0, 28)
- #define WMI_RSRC_CFG_PARAM_VALUE_SET(param_value, val) \
- WMI_SET_BITS(param_value, 0, 28, val)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_init_cmd_fixed_param */
- /** The following indicate the WMI versions to be supported by
- * the host driver. Note that the host driver decide to
- * "downgrade" its WMI version support and this may not be the
- * native version of the host driver. */
- wmi_abi_version host_abi_vers;
- A_UINT32 num_host_mem_chunks; /** size of array host_mem_chunks[] */
- /* This init_cmd_fixed_param TLV is followed by the below TLVs:
- * wmi_resource_config resource_config;
- * wlan_host_memory_chunk host_mem_chunks[];
- * wmi_pdev_set_hw_mode_cmd_fixed_param hw_mode_config;
- * Note that the hw_mode_config, in spite of its "pdev" name,
- * applies to the entire target rather than for a single pdev
- * within the target.
- * To avoid specifying a HW mode for the target, the host should
- * fill hw_mode_config's fields with 0x0.
- * wmi_pdev_band_to_mac band_to_mac[];
- * wmi_htt_msdu_idx_to_htt_msdu_qtype htt_msdu_idx_to_qtype_map[];
- */
- } wmi_init_cmd_fixed_param;
- typedef enum {
- WMI_WIFI_STANDARD_4 = 0,
- WMI_WIFI_STANDARD_5 = 1,
- WMI_WIFI_STANDARD_6 = 2,
- WMI_WIFI_STANDARD_6E = 3,
- WMI_WIFI_STANDARD_7 = 4,
- } WMI_WIFI_STANDARD;
- typedef enum {
- WMI_HOST_NONE = 0, /* No concurrency mode supported */
- WMI_HOST_DBS = 1, /* When 2.4G + 5G & 2.4G + 6G if 6G is supported */
- WMI_HOST_DBS_SBS = 2, /* When 2.4G + 5G, 2.4G + 6G, 5G + 6G & 5G + 5G is supported */
- } WMI_BAND_CONCURRENCY;
- typedef enum {
- WMI_SISO = 1, /* When 1x1 is supported */
- WMI_MIMO_2X2 = 2, /* When 2x2 MIMO is supported */
- } WMI_NUM_ANTENNAS;
- typedef enum {
- WMI_VENDOR1_REQ1_VERSION_3_00 = 0,
- WMI_VENDOR1_REQ1_VERSION_3_01 = 1,
- WMI_VENDOR1_REQ1_VERSION_3_20 = 2,
- WMI_VENDOR1_REQ1_VERSION_3_30 = 3,
- WMI_VENDOR1_REQ1_VERSION_3_40 = 4,
- WMI_VENDOR1_REQ1_VERSION_4_00 = 5,
- WMI_VENDOR1_REQ1_VERSION_4_10 = 6,
- } WMI_VENDOR1_REQ1_VERSION;
- typedef enum {
- WMI_VENDOR1_REQ2_VERSION_3_00 = 0,
- WMI_VENDOR1_REQ2_VERSION_3_01 = 1,
- WMI_VENDOR1_REQ2_VERSION_3_20 = 2,
- WMI_VENDOR1_REQ2_VERSION_3_50 = 3,
- } WMI_VENDOR1_REQ2_VERSION;
- typedef enum {
- WMI_HOST_BAND_CAP_2GHZ = 0x01,
- WMI_HOST_BAND_CAP_5GHZ = 0x02,
- WMI_HOST_BAND_CAP_6GHZ = 0x04,
- } WMI_HOST_BAND_CAP;
- /* HW features supported info */
- /* enum WMI_WIFI_STANDARD are possible values for WiFi standard bitfield */
- #define WMI_GET_WIFI_STANDARD(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 0, 4)
- #define WMI_SET_WIFI_STANDARD(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 0, 4, val)
- /* enum WMI_BAND_CONCURRENCY are possible values for band concurrency support bitfield */
- #define WMI_GET_BAND_CONCURRENCY_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 4, 3)
- #define WMI_SET_BAND_CONCURRENCY_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 4, 3, val)
- /* PNO feature supported info */
- #define WMI_GET_PNO_SCAN_IN_UNASSOC_STATE(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 7, 1)
- #define WMI_SET_PNO_SCAN_IN_UNASSOC_STATE(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 7, 1, val)
- #define WMI_GET_PNO_SCAN_IN_ASSOC_STATE(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 8, 1)
- #define WMI_SET_PNO_SCAN_IN_ASSOC_STATE(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 8, 1, val)
- /* TWT feature supported info */
- #define WMI_GET_TWT_FEATURE_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 9, 1)
- #define WMI_SET_TWT_FEATURE_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 9, 1, val)
- #define WMI_GET_TWT_REQUESTOR(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 10, 1)
- #define WMI_SET_TWT_REQUESTER(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 10, 1, val)
- #define WMI_GET_TWT_BROADCAST(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 11, 1)
- #define WMI_SET_TWT_BROADCAST(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 11, 1, val)
- #define WMI_GET_TWT_FLEXIBLE(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 12, 1)
- #define WMI_SET_TWT_FLEXIBLE(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 12, 1, val)
- /* WIFI optimizer feature supported info */
- #define WMI_GET_WIFI_OPT_FEATURE_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 13, 1)
- #define WMI_SET_WIFI_OPT_FEATURE_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 13, 1, val)
- /* RFC8325 feature supported info */
- #define WMI_GET_RFC8325_FEATURE_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 14, 1)
- #define WMI_SET_RFC8325_FEATURE_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 14, 1, val)
- /* MHS feature supported info */
- #define WMI_GET_MHS_5G_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 15, 1)
- #define WMI_SET_MHS_5G_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 15, 1, val)
- #define WMI_GET_MHS_6G_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 16, 1)
- #define WMI_SET_MHS_6G_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 16, 1, val)
- #define WMI_GET_MHS_MAX_CLIENTS_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 17, 8)
- #define WMI_SET_MHS_MAX_CLIENTS_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 17, 8, val)
- #define WMI_GET_MHS_SET_COUNTRY_CODE_HAL_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 25, 1)
- #define WMI_SET_MHS_SET_COUNTRY_CODE_HAL_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 25, 1, val)
- #define WMI_GET_MHS_GETVALID_CHANNELS_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 26, 1)
- #define WMI_SET_MHS_GETVALID_CHANNELS_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 26, 1, val)
- /* enum WMI_WIFI_STANDARD are possible values for MHS DOT11 mode support bitfield */
- #define WMI_GET_MHS_DOT11_MODE_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 27, 4)
- #define WMI_SET_MHS_DOT11_MODE_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 27, 4, val)
- #define WMI_GET_MHS_WPA3_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 31, 1)
- #define WMI_SET_MHS_WPA3_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 31, 1, val)
- /* Vendor requirement1 supported version info */
- /* enum's WMI_VENDORxx_REQxx_VERSION are the possible vaues for below bitfield*/
- #define WMI_GET_VENDOR_REQ_1_VERSION(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 32, 8)
- #define WMI_SET_VENDOR_REQ_1_VERSION(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 32, 8, val)
- /* Roaming feature supported info */
- #define WMI_GET_ROAMING_HIGH_CU_ROAM_TRIGGER(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 40, 1)
- #define WMI_SET_ROAMING_HIGH_CU_ROAM_TRIGGER(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 40, 1, val)
- #define WMI_GET_ROAMING_EMERGENCY_TRIGGER(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 41, 1)
- #define WMI_SET_ROAMING_EMERGENCY_TRIGGER(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 41, 1, val)
- #define WMI_GET_ROAMING_BTM_TRIGGER(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 42, 1)
- #define WMI_SET_ROAMING_BTM_TRIGGER(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 42, 1, val)
- #define WMI_GET_ROAMING_IDLE_TRIGGER(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 43, 1)
- #define WMI_SET_ROAMING_IDLE_TRIGGER(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 43, 1, val)
- #define WMI_GET_ROAMING_WTC_TRIGGER(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 44, 1)
- #define WMI_SET_ROAMING_WTC_TRIGGER(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 44, 1, val)
- #define WMI_GET_ROAMING_BTCOEX_TRIGGER(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 45, 1)
- #define WMI_SET_ROAMING_BTCOEX_TRIGGER(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 45, 1, val)
- #define WMI_GET_ROAMING_BTW_WPA_WPA2(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 46, 1)
- #define WMI_SET_ROAMING_BTW_WPA_WPA2(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 46, 1, val)
- #define WMI_GET_ROAMING_MANAGE_CHAN_LIST_API(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 47, 1)
- #define WMI_SET_ROAMING_MANAGE_CHAN_LIST_API(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 47, 1, val)
- #define WMI_GET_ROAMING_ADAPTIVE_11R(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 48, 1)
- #define WMI_SET_ROAMING_ADAPTIVE_11R(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 48, 1, val)
- #define WMI_GET_ROAMING_CTRL_API_GET_SET(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 49, 1)
- #define WMI_SET_ROAMING_CTRL_API_GET_SET(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 49, 1, val)
- #define WMI_GET_ROAMING_CTRL_API_REASSOC(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 50, 1)
- #define WMI_SET_ROAMING_CTRL_API_REASSOC(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 50, 1, val)
- #define WMI_GET_ROAMING_CTRL_GET_CU(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 51, 1)
- #define WMI_SET_ROAMING_CTRL_GET_CU(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 51, 1, val)
- /* Vendor requirement2 supported version info */
- /* enum's WMI_VENDORxx_REQxx_VERSION are the possible vaues for below bitfield*/
- #define WMI_GET_VENDOR_REQ_2_VERSION(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 52, 8)
- #define WMI_SET_VENDOR_REQ_2_VERSION(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 52, 8, val)
- #define WMI_GET_ASSURANCE_DISCONNECT_REASON_API(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 60, 1)
- #define WMI_SET_ASSURANCE_DISCONNECT_REASON_API(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 60, 1, val)
- /* Frame pcap logging */
- #define WMI_GET_FRAME_PCAP_LOG_MGMT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 61, 1)
- #define WMI_SET_FRAME_PCAP_LOG_MGMT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 61, 1, val)
- #define WMI_GET_FRAME_PCAP_LOG_CTRL(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 62, 1)
- #define WMI_SET_FRAME_PCAP_LOG_CTRL(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 62, 1, val)
- #define WMI_GET_FRAME_PCAP_LOG_DATA(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 63, 1)
- #define WMI_SET_FRAME_PCAP_LOG_DATA(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 63, 1, val)
- /* Security features supported info */
- #define WMI_GET_SECURITY_WPA3_SAE_H2E(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 64, 1)
- #define WMI_SET_SECURITY_WPA3_SAE_H2E(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 64, 1, val)
- #define WMI_GET_SECURITY_WPA3_SAE_FT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 65, 1)
- #define WMI_SET_SECURITY_WPA3_SAE_FT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 65, 1, val)
- #define WMI_GET_SECURITY_WPA3_ENTERP_SUITEB(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 66, 1)
- #define WMI_SET_SECURITY_WPA3_ENTERP_SUITEB(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 66, 1, val)
- #define WMI_GET_SECURITY_WPA3_ENTERP_SUITEB_192bit(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 67, 1)
- #define WMI_SET_SECURITY_WPA3_ENTERP_SUITEB_192bit(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 67, 1, val)
- #define WMI_GET_SECURITY_FILS_SHA256(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 68, 1)
- #define WMI_SET_SECURITY_FILS_SHA256(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 68, 1, val)
- #define WMI_GET_SECURITY_FILS_SHA384(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 69, 1)
- #define WMI_SET_SECURITY_FILS_SHA384(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 69, 1, val)
- #define WMI_GET_SECURITY_FILS_SHA256_FT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 70, 1)
- #define WMI_SET_SECURITY_FILS_SHA256_FT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 70, 1, val)
- #define WMI_GET_SECURITY_FILS_SHA384_FT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 71, 1)
- #define WMI_SET_SECURITY_FILS_SHA384_FT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 71, 1, val)
- #define WMI_GET_SECURITY_ENCHANCED_OPEN(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 72, 1)
- #define WMI_SET_SECURITY_ENCHANCED_OPEN(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 72, 1, val)
- /* Peer protocol features supported info */
- #define WMI_GET_NAN_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 73, 1)
- #define WMI_SET_NAN_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 73, 1, val)
- #define WMI_GET_TDLS_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 74, 1)
- #define WMI_SET_TDLS_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 74, 1, val)
- #define WMI_GET_P2P6E_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 75, 1)
- #define WMI_SET_P2P6E_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 75, 1, val)
- #define WMI_GET_TDLS_OFFCHAN_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 76, 1)
- #define WMI_SET_TDLS_OFFCHAN_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 76, 1, val)
- #define WMI_GET_TDLS_CAP_ENHANCE(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 77, 1)
- #define WMI_SET_TDLS_CAP_ENHANCE(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 77, 1, val)
- #define WMI_GET_MAX_TDLS_PEERS_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 78, 4)
- #define WMI_SET_MAX_TDLS_PEERS_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 78, 4, val)
- #define WMI_GET_STA_DUAL_P2P_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 82, 1)
- #define WMI_SET_STA_DUAL_P2P_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 82, 1, val)
- /* Big data feature supported info */
- #define WMI_GET_PEER_BIGDATA_GETBSSINFO_API_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 83, 1)
- #define WMI_SET_PEER_BIGDATA_GETBSSINFO_API_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 83, 1, val)
- #define WMI_GET_PEER_BIGDATA_GETASSOCREJECTINFO_API_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 84, 1)
- #define WMI_SET_PEER_BIGDATA_GETASSOCREJECTINFO_API_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 84, 1, val)
- #define WMI_GET_PEER_BIGDATA_GETSTAINFO_API_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 85, 1)
- #define WMI_SET_PEER_BIGDATA_GETSTAINFO_API_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 85, 1, val)
- /* Feature set requirement supported version info */
- #define WMI_GET_FEATURE_SET_VERSION(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 86, 16)
- #define WMI_SET_FEATURE_SET_VERSION(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 86, 16, val)
- /*
- * enum WMI_NUM_ANTENNAS are possible values for number of antennas supported bitfield.
- * Bitfield value 0 means invalid, 1 means SISO, 2 means MIMO, and values 3+ are reserved.
- */
- #define WMI_GET_NUM_ANTENNAS(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 102, 4)
- #define WMI_SET_NUM_ANTENNAS(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 102, 4, val)
- /* enum WMI_HOST_BAND_CAP are possible values for below bitfield */
- #define WMI_GET_HOST_BAND_CAP(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 106, 6)
- #define WMI_SET_HOST_BAND_CAP(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 106, 6, val)
- #define WMI_GET_STA_DUMP_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 112, 1)
- #define WMI_SET_STA_DUMP_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 112, 1, val)
- /* Peer protocol features supported info (contd) */
- #define WMI_GET_STA_P2P_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 113, 1)
- #define WMI_SET_STA_P2P_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 113, 1, val)
- #define WMI_GET_STA_SAP_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 114, 1)
- #define WMI_SET_STA_SAP_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 114, 1, val)
- #define WMI_GET_STA_NAN_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 115, 1)
- #define WMI_SET_STA_NAN_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 115, 1, val)
- #define WMI_GET_STA_TDLS_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 116, 1)
- #define WMI_SET_STA_TDLS_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 116, 1, val)
- /* Reserving 16 bits for accomodating other 2 port concurrencies later */
- #define WMI_GET_STA_SAP_P2P_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 133, 1)
- #define WMI_SET_STA_SAP_P2P_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 133, 1, val)
- #define WMI_GET_STA_SAP_NAN_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 134, 1)
- #define WMI_SET_STA_SAP_NAN_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 134, 1, val)
- #define WMI_GET_STA_P2P_NAN_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 135, 1)
- #define WMI_SET_STA_P2P_NAN_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 135, 1, val)
- #define WMI_GET_STA_P2P_TDLS_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 136, 1)
- #define WMI_SET_STA_P2P_TDLS_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 136, 1, val)
- #define WMI_GET_STA_SAP_TDLS_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 137, 1)
- #define WMI_SET_STA_SAP_TDLS_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 137, 1, val)
- #define WMI_GET_STA_NAN_TDLS_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 138, 1)
- #define WMI_SET_STA_NAN_TDLS_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 138, 1, val)
- /* Reserving 16 bits for accomodating other 3 port concurrencies later */
- #define WMI_GET_STA_SAP_P2P_TDLS_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 155, 1)
- #define WMI_SET_STA_SAP_P2P_TDLS_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 155, 1, val)
- #define WMI_GET_STA_SAP_NAN_TDLS_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 156, 1)
- #define WMI_SET_STA_SAP_NAN_TDLS_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 156, 1, val)
- #define WMI_GET_STA_P2P_P2P_TDLS_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 157, 1)
- #define WMI_SET_STA_P2P_P2P_TDLS_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 157, 1, val)
- #define WMI_GET_STA_P2P_NAN_TDLS_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 158, 1)
- #define WMI_SET_STA_P2P_NAN_TDLS_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 158, 1, val)
- /* NAN EHT supported info */
- #define WMI_GET_NAN_EHT_SUPPORT(var, feature_bitmap) \
- WMI_GET_BITS_ARRAY_LEN32_BYTES(var, feature_bitmap, 159, 1)
- #define WMI_SET_NAN_EHT_SUPPORT(feature_bitmap, val) \
- WMI_SET_BITS_ARRAY_LEN32_BYTES(feature_bitmap, 159, 1, val)
- /*
- * Specify how many A_UINT32 words are needed to hold the feature bitmap flags.
- * This value may change over time.
- * It is not directly used in any WMI message definition.
- * It is provided simply as a convenience for the feature_set_bitmap sender to
- * know how many 32-bit words to allocate for the bitmap.
- */
- #define WMI_FEATURE_SET_BITMAP_ARRAY_LEN32 6
- /**
- * TLV for channel list
- */
- typedef struct {
- /** WMI_CHAN_LIST_TAG */
- A_UINT32 tag;
- /** # of channels to scan */
- A_UINT32 num_chan;
- /** channels in Mhz */
- WMI_VAR_LEN_ARRAY1(A_UINT32, channel_list);
- } wmi_chan_list;
- /**
- * TLV for bssid list
- */
- typedef struct {
- /** WMI_BSSID_LIST_TAG */
- A_UINT32 tag;
- /** number of bssids */
- A_UINT32 num_bssid;
- /** bssid list */
- WMI_VAR_LEN_ARRAY1(wmi_mac_addr, bssid_list);
- } wmi_bssid_list;
- /**
- * TLV for ie data.
- */
- typedef struct {
- /** WMI_IE_TAG */
- A_UINT32 tag;
- /** number of bytes in ie data */
- A_UINT32 ie_len;
- /** ie data array (ie_len adjusted to number of words (ie_len + 4)/4) */
- WMI_VAR_LEN_ARRAY1(A_UINT32, ie_data);
- } wmi_ie_data;
- /**
- * TLV used for length/buffer
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tlv_buf_len_param */
- A_UINT32 buf_len; /** Length of buf */
- /**
- * Following this structure is the TLV byte stream of buf of length buf_len:
- * A_UINT8 buf[];
- *
- */
- } wmi_tlv_buf_len_param;
- /**
- * TLV used for specifying the dimensions of a multi-dimensional array
- * that has been stored in a flat buffer
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tlv_arrays_len_param */
- /**
- * d1_len, d2_len, d3_len, and d4_len are the lengths of each dimension
- * for a multi-dimensional array.
- * If the length of outer dimension is not 1, the inner dimension
- * shouldn't be 1.
- * If the multi-dimensional array has less than 4 dimensions, the outer
- * dimensions' lengths should be 1. For example, a buf[3][4] array
- * would have d1_len = 4, d2_len = 3, d3_len = 1, d4_len = 1.
- * The outermost dimension of the array can be inferred from the array
- * length; thus, this struct supports up to 5-D arrays. For a 5-D array,
- * the outermost (5th) dimension would be
- * array length / (d1_len * d2_len * d3_len * d4_len)
- *
- * For security (to ensure no out-of-bounds memory access),
- * the receiver shall validate that the product of all dimensions
- * is equal to (or less than) the array length.
- */
- A_UINT32 d1_len; /* the length of 1st (innermost) dimension array */
- A_UINT32 d2_len; /* the length of 2nd dimension array */
- A_UINT32 d3_len; /* the length of 3rd dimension array */
- A_UINT32 d4_len; /* the length of 4th dimension array */
- /**
- * Following this structure is the TLV multi-dimension array buffer:
- * <type> buf[L1*L2*L3*L4];
- * where, L1, L2, L3, and L4 are the values of
- * d1_len, d2_len, d3_len and d4_len.
- * To access the 4-D element a[i][j][k][l], the buf[] array would be
- * indexed as buf[i*L3*L2*L1 + j*L2*L1 + k*L1 + l].
- */
- } wmi_tlv_arrays_len_param;
- typedef struct {
- /** Len of the SSID */
- A_UINT32 ssid_len;
- /** SSID */
- A_UINT32 ssid[8];
- } wmi_ssid;
- typedef struct {
- /** WMI_SSID_LIST_TAG */
- A_UINT32 tag;
- A_UINT32 num_ssids;
- WMI_VAR_LEN_ARRAY1(wmi_ssid, ssids);
- } wmi_ssid_list;
- typedef struct {
- /** WMI_SCAN_START_OFFSET_TAG */
- A_UINT32 tag;
- /** Number of start TSF offsets */
- A_UINT32 num_offset;
- /** Array of start TSF offsets provided in milliseconds */
- WMI_VAR_LEN_ARRAY1(A_UINT32, start_tsf_offset);
- } wmi_scan_start_offset;
- /**
- * WLAN_SCAN_CHAN_MODE Macros defined for A_UINT8 phymode_list[]
- */
- /** enum WLAN_PHY_MODE _mode starts from 0, but the WMI message requires
- * 0 to be used to represent unspecified / don't care / default values.
- * Therefore, WMI phy mode = WLAN phy mode + 1.
- */
- /** If the received WMI phy mode is 0 then it is ignored by the FW,
- * and the FW will use any mode as long as the frequency matches.
- */
- /** The number of phy_mode's (BW+mode) passed in the TLV phymode_list[] must
- * be equal to num_chan. (Unless the host does not specify phymode_list values
- * at all, in which case the number of phymode_list elements will be zero.)
- * The indexing of the phymode_list[] array corresponds to same index of
- * the chan_list[] array.
- */
- #define WMI_SCAN_CHAN_SET_MODE(_c) ((_c) + 1)
- #define WMI_SCAN_CHAN_GET_MODE(_c) ((_c) - 1)
- #define WMI_SCAN_CHAN_MODE_IS_SET(_c) (_c)
- typedef struct {
- /*
- * freq unit: MHz (upper 16bits -- value)
- * flags (lower 16bits -- bitfield): valid for the freq short ssid
- * The flags bitfield contains a bitmask of WMI_SCAN_HINT_FLAG_ values.
- */
- A_UINT32 freq_flags;
- /* per spec, only 4 bytes*/
- A_UINT32 short_ssid;
- } wmi_hint_freq_short_ssid;
- /** following bssid mac address same as wmi_mac_addr
- * one example: freq -- 5980(0x175c), flags -- 0x1, mac -- 00:03:7f:12:34:56
- * freq_flags will be: 0x175c0001
- * macaddr31to00 will be: 0x127f0300
- * macaddr47to32 will be: 0x00005634
- */
- typedef struct {
- /*
- * freq unit: MHz (upper 16bits -- value)
- * flags (lower 16bits -- bitfield): valid for the freq bssid
- * The flags bitfield contains a bitmask of WMI_SCAN_HINT_FLAG_ values.
- */
- A_UINT32 freq_flags;
- /* legacy bssid addr, use same macro to convert: WMI_MAC_ADDR_TO_CHAR_ARRAY, WMI_CHAR_ARRAY_TO_MAC_ADDR */
- wmi_mac_addr bssid;
- } wmi_hint_freq_bssid;
- /** macro to get freq and corresponding flags from wmi_hint_freq_short_ssid */
- #define WMI_GET_FREQ_FROM_HINT_FREQ_SHORT_SSID(pwmi_hint_freq_short_ssid_addr) ((((pwmi_hint_freq_short_ssid_addr)->freq_flags) >> 16) & 0xffff)
- #define WMI_GET_FLAGS_FROM_HINT_FREQ_SHORT_SSID(pwmi_hint_freq_short_ssid_addr) (((pwmi_hint_freq_short_ssid_addr)->freq_flags) & 0xffff)
- /** macro to set freq and corresponding flags in wmi_hint_freq_short_ssid */
- #define WMI_SET_FREQ_IN_HINT_FREQ_SHORT_SSID(freq, pwmi_hint_freq_short_ssid_addr) (((pwmi_hint_freq_short_ssid_addr)->freq_flags) |= ((freq) << 16))
- #define WMI_SET_FLAGS_IN_HINT_FREQ_SHORT_SSID(flags, pwmi_hint_freq_short_ssid_addr) (((pwmi_hint_freq_short_ssid_addr)->freq_flags) |= (flags))
- /** macro to get freq and corresponding flags from wmi_hint_freq_bssid */
- #define WMI_GET_FREQ_FROM_HINT_FREQ_BSSID(pwmi_hint_freq_bssid_addr) ((((pwmi_hint_freq_bssid_addr)->freq_flags) >> 16) & 0xffff)
- #define WMI_GET_FLAGS_FROM_HINT_FREQ_BSSID(pwmi_hint_freq_bssid_addr) (((pwmi_hint_freq_bssid_addr)->freq_flags) & 0xffff)
- /** macro to set freq and corresponding flags in wmi_hint_freq_bssid */
- #define WMI_SET_FREQ_IN_HINT_FREQ_BSSID(freq, pwmi_hint_freq_bssid_addr) (((pwmi_hint_freq_bssid_addr)->freq_flags) |= ((freq) << 16))
- #define WMI_SET_FLAGS_IN_HINT_FREQ_BSSID(flags, pwmi_hint_freq_bssid_addr) (((pwmi_hint_freq_bssid_addr)->freq_flags) |= (flags))
- /** other macro for 6 GHZ, TU (time unit), 20TU normally it is 20ms */
- #define MAX_NUM_20TU_EACH_CH 6
- #define MAX_NUM_S_SSID_EACH_20TU 1
- #define MAX_NUM_BSSID_EACH_20TU 3
- /* prefix used by scan requestor ids on the host */
- #define WMI_HOST_SCAN_REQUESTOR_ID_PREFIX 0xA000
- /* prefix used by scan request ids generated on the host */
- /* host cycles through the lower 12 bits to generate ids */
- #define WMI_HOST_SCAN_REQ_ID_PREFIX 0xA000
- #define WLAN_SCAN_PARAMS_MAX_SSID 16
- #define WLAN_SCAN_PARAMS_MAX_BSSID 4
- #define WLAN_SCAN_PARAMS_MAX_IE_LEN 512
- /* NOTE: This constant cannot be changed without breaking WMI compatibility */
- #define WMI_IE_BITMAP_SIZE 8
- #define WMI_SCAN_MLD_PARAM_MLD_ID_GET(mld_param) WMI_GET_BITS(mld_param, 0, 8)
- #define WMI_SCAN_MLD_PARAM_MLD_ID_SET(mld_param, val) WMI_SET_BITS(mld_param, 0, 8, val)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_start_scan_cmd_fixed_param */
- /** Scan ID (lower 16 bits) MSB 4 bits is used to identify scan client based on enum WMI_SCAN_CLIENT_ID */
- A_UINT32 scan_id;
- /** Scan requestor ID (lower 16 bits) is used by scan client to classify the scan source, reason, ...etc */
- A_UINT32 scan_req_id;
- /** VDEV id(interface) that is requesting scan */
- A_UINT32 vdev_id;
- /** Scan Priority, input to scan scheduler */
- A_UINT32 scan_priority;
- /** Scan events subscription */
- A_UINT32 notify_scan_events;
- /** dwell time in msec on active channels */
- A_UINT32 dwell_time_active;
- /** dwell time in msec on passive channels */
- A_UINT32 dwell_time_passive;
- /** min time in msec on the BSS channel,only valid if atleast one VDEV is active*/
- A_UINT32 min_rest_time;
- /** max rest time in msec on the BSS channel,only valid if at least one VDEV is active*/
- /** the scanner will rest on the bss channel at least min_rest_time. after min_rest_time the scanner
- * will start checking for tx/rx activity on all VDEVs. if there is no activity the scanner will
- * switch to off channel. if there is activity the scanner will let the radio on the bss channel
- * until max_rest_time expires.at max_rest_time scanner will switch to off channel
- * irrespective of activity. activity is determined by the idle_time parameter.
- */
- A_UINT32 max_rest_time;
- /** time before sending next set of probe requests.
- * The scanner keeps repeating probe requests transmission with period specified by repeat_probe_time.
- * The number of probe requests specified depends on the ssid_list and bssid_list
- */
- A_UINT32 repeat_probe_time;
- /** time in msec between 2 consecutive probe requests with in a set. */
- A_UINT32 probe_spacing_time;
- /** data inactivity time in msec on bss channel that will be used by scanner for measuring the inactivity */
- A_UINT32 idle_time;
- /** maximum time in msec allowed for scan */
- A_UINT32 max_scan_time;
- /** delay in msec before sending first probe request after switching to a channel */
- A_UINT32 probe_delay;
- /** Scan control flags */
- A_UINT32 scan_ctrl_flags;
- /** Burst duration time in msec*/
- A_UINT32 burst_duration;
- /** # if channels to scan. In the TLV channel_list[] */
- A_UINT32 num_chan;
- /** number of bssids. In the TLV bssid_list[] */
- A_UINT32 num_bssid;
- /** number of ssid. In the TLV ssid_list[] */
- A_UINT32 num_ssids;
- /** number of bytes in ie data. In the TLV ie_data[]. Max len is defined by WLAN_SCAN_PARAMS_MAX_IE_LEN */
- A_UINT32 ie_len;
- /** Max number of probes to be sent */
- A_UINT32 n_probes;
- /** MAC Address to use in Probe Req as SA **/
- wmi_mac_addr mac_addr;
- /** Mask on which MAC has to be randomized **/
- wmi_mac_addr mac_mask;
- /** ie bitmap to use in probe req **/
- A_UINT32 ie_bitmap[WMI_IE_BITMAP_SIZE];
- /** Number of vendor OUIs. In the TLV vendor_oui[] **/
- A_UINT32 num_vendor_oui;
- /** Scan control flags extended **/
- A_UINT32 scan_ctrl_flags_ext;
- /** dwell time in msec on active 2G channels, if it's not zero */
- A_UINT32 dwell_time_active_2g;
- /**
- * dwell time in msec when 6 GHz channel (PSC or non-PSC) is marked
- * as an active channel
- */
- A_UINT32 dwell_time_active_6ghz;
- /**
- * dwell time in msec when 6 GHz channel (PSC or non-PSC) is marked
- * as a passive channel
- */
- A_UINT32 dwell_time_passive_6ghz;
- /**
- * Offset time is in milliseconds per channel.
- */
- A_UINT32 scan_start_offset;
- /**
- * minimum dwell time in msec for 6 GHz channel
- * We'll listen for this time on the channel; if no beacon /
- * probe response / FILS frame are received during this time
- * we'll move to next channel.
- */
- A_UINT32 min_dwell_time_6ghz;
- /**
- * dwell time in msec for 6 GHz channel of spectral scan channel list
- */
- A_UINT32 dwell_time_spectral_ch;
- /**
- * B0-B7: mld id to be inserted in ML probe request
- * B8-B31: reserved
- */
- A_UINT32 mld_parameter;
- /**
- * TLV (tag length value) parameters follow the scan_cmd
- * structure. The TLV's are:
- * channel_list:
- * If FW supports WMI_SERVICE_SCAN_CONFIG_PER_CHANNEL,
- * then channel_list may fill the upper 12 bits with channel flags,
- * while using only the lower 20 bits for channel frequency.
- * Check WMI_SCAN_CHANNEL_FLAG macros for the channel flags
- * If FW doesn't support WMI_SERVICE_SCAN_CONFIG_PER_CHANNEL,
- * then channel_list only holds the frequency value
- * Use WMI_SCAN_CHANNEL_FREQ_MASK & WMI_SCAN_CHANNEL_FLAGS_MASK
- * A_UINT32 channel_list[num_chan]; // in MHz
- * wmi_ssid ssid_list[num_ssids];
- * wmi_mac_addr bssid_list[num_bssid];
- * A_UINT8 ie_data[ie_len];
- * wmi_vendor_oui vendor_oui[num_vendor_oui];
- * A_UINT8 phymode_list[0 or num_chan]; // see WMI_SCAN_CHAN_MODE macros
- * wmi_hint_freq_short_ssid hint_freq_short_ssid[num]; // the num can be calculated by TLV len
- * wmi_hint_freq_bssid hint_freq_bssid[num]; // the num can be calculated by TLV len
- * A_UINT32 spectral_chan_list[num]; // in MHz, the num can be calculated by TLV len
- * *** NOTE:
- * *** Use caution when using further TLVs, in case the additional
- * *** TLVs cause the message size to exceed the of the buffer to
- * *** hold the message.
- */
- } wmi_start_scan_cmd_fixed_param;
- /**
- * scan control flags.
- */
- /** passively scan all channels including active channels */
- #define WMI_SCAN_FLAG_PASSIVE 0x1
- /** add wild card ssid probe request even though ssid_list is specified. */
- #define WMI_SCAN_ADD_BCAST_PROBE_REQ 0x2
- /** add cck rates to rates/xrate ie for the generated probe request */
- #define WMI_SCAN_ADD_CCK_RATES 0x4
- /** add ofdm rates to rates/xrate ie for the generated probe request */
- #define WMI_SCAN_ADD_OFDM_RATES 0x8
- /** To enable indication of Chan load and Noise floor to host */
- #define WMI_SCAN_CHAN_STAT_EVENT 0x10
- /** Filter Probe request frames */
- #define WMI_SCAN_FILTER_PROBE_REQ 0x20
- /**When set, not to scan DFS channels*/
- #define WMI_SCAN_BYPASS_DFS_CHN 0x40
- /**When set, certain errors are ignored and scan continues.
- * Different FW scan engine may use its own logic to decide what errors to ignore*/
- #define WMI_SCAN_CONTINUE_ON_ERROR 0x80
- /** Enable promiscuous mode for CCXv4 */
- #define WMI_SCAN_FILTER_PROMISCOUS 0x100
- /** allow to send probe req on DFS channel */
- #define WMI_SCAN_FLAG_FORCE_ACTIVE_ON_DFS 0x200
- /** add TPC content in probe req frame */
- #define WMI_SCAN_ADD_TPC_IE_IN_PROBE_REQ 0x400
- /** add DS content in probe req frame */
- #define WMI_SCAN_ADD_DS_IE_IN_PROBE_REQ 0x800
- /** use random mac address for TA for probe request frame and add
- * oui specified by WMI_SCAN_PROB_REQ_OUI_CMDID to the probe req frame.
- * if oui is not set by WMI_SCAN_PROB_REQ_OUI_CMDID then the flag is ignored*/
- #define WMI_SCAN_ADD_SPOOFED_MAC_IN_PROBE_REQ 0x1000
- /** allow mgmt transmission during off channel scan */
- #define WMI_SCAN_OFFCHAN_MGMT_TX 0x2000
- /** allow data transmission during off channel scan */
- #define WMI_SCAN_OFFCHAN_DATA_TX 0x4000
- /** allow capture ppdu with phy errors */
- #define WMI_SCAN_CAPTURE_PHY_ERROR 0x8000
- /** always do passive scan on passive channels */
- #define WMI_SCAN_FLAG_STRICT_PASSIVE_ON_PCHN 0x10000
- /** set HALF (10MHz) rate support */
- #define WMI_SCAN_FLAG_HALF_RATE_SUPPORT 0x20000
- /** set Quarter (5MHz) rate support */
- #define WMI_SCAN_FLAG_QUARTER_RATE_SUPPORT 0x40000
- #define WMI_SCAN_RANDOM_SEQ_NO_IN_PROBE_REQ 0x80000
- #define WMI_SCAN_ENABLE_IE_WHTELIST_IN_PROBE_REQ 0x100000
- /** pause home channel when scan channel is same as home channel */
- #define WMI_SCAN_FLAG_PAUSE_HOME_CHANNEL 0x200000
- /**
- * report CCA busy for each possible 20Mhz subbands of the wideband scan channel
- */
- #define WMI_SCAN_FLAG_REPORT_CCA_BUSY_FOREACH_20MHZ 0x400000
- /** for adaptive scan mode using 3 bits (21 - 23 bits) */
- #define WMI_SCAN_DWELL_MODE_MASK 0x00E00000
- #define WMI_SCAN_DWELL_MODE_SHIFT 21
- typedef enum {
- WMI_SCAN_DWELL_MODE_DEFAULT = 0,
- WMI_SCAN_DWELL_MODE_CONSERVATIVE = 1,
- WMI_SCAN_DWELL_MODE_MODERATE = 2,
- WMI_SCAN_DWELL_MODE_AGGRESSIVE = 3,
- WMI_SCAN_DWELL_MODE_STATIC = 4,
- } WMI_SCAN_DWELL_MODE;
- #define WMI_SCAN_SET_DWELL_MODE(flag, mode) \
- do { \
- (flag) |= (((mode) << WMI_SCAN_DWELL_MODE_SHIFT) & \
- WMI_SCAN_DWELL_MODE_MASK); \
- } while (0)
- #define WMI_SCAN_GET_DWELL_MODE(flag) \
- (((flag) & WMI_SCAN_DWELL_MODE_MASK) >> WMI_SCAN_DWELL_MODE_SHIFT)
- /** WMI_SCAN_CLASS_MASK must be the same value as IEEE80211_SCAN_CLASS_MASK */
- #define WMI_SCAN_CLASS_MASK 0xFF000000
- /*
- * Masks identifying types/ID of scans
- * Scan_Stop macros should be the same value as below defined in UMAC
- * #define IEEE80211_SPECIFIC_SCAN 0x00000000
- * #define IEEE80211_VAP_SCAN 0x01000000
- * #define IEEE80211_ALL_SCANS 0x04000000
- */
- /* WMI_SCAN_STOP_ONE:
- * Stop one scan which matches with scan_id provided in scan stop command.
- */
- #define WMI_SCAN_STOP_ONE 0x00000000
- /* WMI_SCN_STOP_VAP_ALL:
- * Stop all scans (host scans and FW internal scans) on provided vdev.
- */
- #define WMI_SCN_STOP_VAP_ALL 0x01000000
- /* WMI_SCN_STOP_HOST_VAP_ALL:
- * Stop all host scans on provided vdev.
- */
- #define WMI_SCN_STOP_HOST_VAP_ALL 0x02000000
- /* WMI_SCAN_STOP_ALL:
- * Stop all scans (host scans and FW internal scans) on all vdevs.
- */
- #define WMI_SCAN_STOP_ALL 0x04000000
- /** extended Scan ctrl flags **/
- #define WMI_SCAN_FLAG_EXT_DBS_SCAN_POLICY_MASK 0x00000003 /* Bit 0-1 reserved for DBS scan selection policy.*/
- #define WMI_SCAN_DBS_POLICY_DEFAULT 0x0 /** Select duty cycle if configured, else fall back to whatever
- policy scan manager computes */
- #define WMI_SCAN_DBS_POLICY_FORCE_NONDBS 0x1 /** Force to select Non-DBS scan */
- #define WMI_SCAN_DBS_POLICY_IGNORE_DUTY 0x2 /** Ignore duty cycle even if configured and fall back to whatever
- policy scan manager computes*/
- #define WMI_SCAN_DBS_POLICY_RESERVED 0x3
- #define WMI_SCAN_DBS_POLICY_MAX 0x3
- /* Enable Reception of Public Action frame with this flag */
- #define WMI_SCAN_FLAG_EXT_FILTER_PUBLIC_ACTION_FRAME 0x00000004
- /* Indicate to scan all PSC channel */
- #define WMI_SCAN_FLAG_EXT_6GHZ_SCAN_ALL_PSC_CH 0x00000008
- /* Indicate to scan all NON-PSC channel */
- #define WMI_SCAN_FLAG_EXT_6GHZ_SCAN_ALL_NON_PSC_CH 0x00000010
- /* Indicate to save scan result matching hint from scan client */
- #define WMI_SCAN_FLAG_EXT_6GHZ_MATCH_HINT 0x00000020
- /* Skip any ch on which no any RNR had been received */
- #define WMI_SCAN_FLAG_EXT_6GHZ_SKIP_NON_RNR_CH 0x00000040
- /* Indicate client hint req is high priority than fw rnr or FILS disc */
- #define WMI_SCAN_FLAG_EXT_6GHZ_CLIENT_HIGH_PRIORITY 0x00000080
- /* Force all 6 GHz scan channels to active channel */
- #define WMI_SCAN_FLAG_EXT_6GHZ_FORCE_CHAN_ACTIVE 0x00000100
- /* Force broadcast address in RA even though specified bssid */
- #define WMI_SCAN_FLAG_EXT_FORCE_BRCAST_RA 0x00000200
- /* Extend 6 GHz channel measure time */
- #define WMI_SCAN_FLAG_EXT_6GHZ_EXTEND_MEASURE_TIME 0x00000400
- /**
- * Currently passive scan has higher priority than beacon and
- * beacon miss would happen irrespective of dwell time.
- * Below flag ensures there would not be beacon miss if the dwell
- * time is lesser than beacon interval - channel switch time combined.
- * For dwell time greater than beacon interval, bmiss is expected.
- */
- #define WMI_SCAN_FLAG_EXT_PASSIVE_SCAN_START_TIME_ENHANCE 0x00000800
- /* Force unicast address in RA */
- #define WMI_SCAN_FLAG_EXT_FORCE_UNICAST_RA 0x00001000
- /**
- * Indicate to add 10 Mhz offset to spectral scan center frequencies
- * sent by Host when checking against support channel list in FW
- */
- #define WMI_SCAN_FLAG_EXT_SPECTRAL_CFREQ_PLUS_10MHZ_IN_SUPP_CH_LIST 0x00002000
- /* Include MLO IE in Probe req */
- #define WMI_SCAN_FLAG_EXT_INCL_MLIE_PRB_REQ 0x00004000
- #define WMI_SCAN_FLAG_EXT_LOW_LATENCY_SCAN 0x00008000
- #define WMI_SCAN_FLAG_EXT_RELIABLE_SCAN 0x00010000
- #define WMI_SCAN_FLAG_EXT_FAST_SCAN 0x00020000
- #define WMI_SCAN_FLAG_EXT_LOW_POWER_SCAN 0x00040000
- #define WMI_SCAN_FLAG_EXT_STOP_IF_BSSID_FOUND 0x00080000
- #define WMI_SCAN_FLAG_EXT_P2P_SCAN 0x00100000
- /**
- * new 6 GHz flags per chan (short ssid or bssid) in struct
- * wmi_hint_freq_short_ssid or wmi_hint_freq_bssid
- */
- /* Indicate not to send probe req for short_ssid or bssid on that channel */
- #define WMI_SCAN_HINT_FLAG_SKIP_TX_PROBE_REQ 0x00000001
- /* Force channel in WMI hint to active channel */
- #define WMI_SCAN_HINT_FLAG_FORCE_CHAN_ACTIVE 0x00000002
- /* Combine short SSID with legacy bssid list */
- #define WMI_SCAN_HINT_FLAG_COMBINE_BSSID_LIST 0x00000004
- #define WMI_SCAN_CHANNEL_FREQ_MASK 0x000FFFFF
- #define WMI_SCAN_CHANNEL_FLAGS_MASK 0xFFF00000
- /**
- * Per channel configuration flags
- */
- /**
- * WMI_SCAN_CHANNEL_FLAG_SCAN_ONLY_IF_RNR_FOUND:
- * If this flag is set, then scan only if the corresponding channel
- * is found via RNR IE during 2g/5g scan.
- * If this flag is not set, then FW always scans the channel
- * irrespective of RNR and also FW ignores
- * WMI_SCAN_FLAG_EXT_6GHZ_SKIP_NON_RNR_CH flag
- */
- #define WMI_SCAN_CHANNEL_FLAG_SCAN_ONLY_IF_RNR_FOUND 0x001
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_stop_scan_cmd_fixed_param */
- /** requestor requesting cancel */
- A_UINT32 requestor;
- /** Scan ID */
- A_UINT32 scan_id;
- /**
- * Req Type
- * req_type should be WMI_SCAN_STOP_ONE, WMI_SCN_STOP_VAP_ALL or WMI_SCAN_STOP_ALL
- * WMI_SCAN_STOP_ONE indicates to stop a specific scan with scan_id (on a specific pdev in DBDC)
- * WMI_SCN_STOP_VAP_ALL indicates to stop all scan requests on a specific vDev with vdev_id
- * WMI_SCAN_STOP_ALL indicates to stop all scan requests in both Scheduler's queue and Scan Engine (on a specific pdev in DBDC)
- */
- A_UINT32 req_type;
- /**
- * vDev ID
- * used when req_type equals to WMI_SCN_STOP_VAP_ALL, it indexed the vDev on which to stop the scan
- */
- A_UINT32 vdev_id;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- } wmi_stop_scan_cmd_fixed_param;
- #define MAX_NUM_CHAN_PER_WMI_CMD 58 /* each WMI cmd can hold 58 channel entries at most */
- #define WMI_APPEND_TO_EXISTING_CHAN_LIST 0x1
- #define WMI_CHANNEL_MAX_BANDWIDTH_VALID 0x2
- #define WMI_HONOR_HOST_6GHZ_CHANNEL_PASSIVE 0x4
- /*
- * To preserve backwards compatibility, retain old names (without WMI_ prefix)
- * as aliases for the corrected names (with WMI_ prefix).
- */
- #define APPEND_TO_EXISTING_CHAN_LIST WMI_APPEND_TO_EXISTING_CHAN_LIST
- #define CHANNEL_MAX_BANDWIDTH_VALID WMI_CHANNEL_MAX_BANDWIDTH_VALID
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_scan_chan_list_cmd_fixed_param */
- A_UINT32 num_scan_chans; /** no of elements in chan_info[] */
- A_UINT32 flags; /* Flags used to control the behavior of channel list update on target side */
- A_UINT32 pdev_id; /** pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. In non-DBDC case host should set it to 0. */
- /** Followed by the variable length TLV chan_info:
- * wmi_channel chan_info[] */
- } wmi_scan_chan_list_cmd_fixed_param;
- /*
- * Priority numbers must be sequential, starting with 0.
- */
- /* NOTE: WLAN SCAN_PRIORITY_COUNT can't be changed without breaking the compatibility */
- typedef enum {
- WMI_SCAN_PRIORITY_VERY_LOW = 0,
- WMI_SCAN_PRIORITY_LOW,
- WMI_SCAN_PRIORITY_MEDIUM,
- WMI_SCAN_PRIORITY_HIGH,
- WMI_SCAN_PRIORITY_VERY_HIGH,
- WMI_SCAN_PRIORITY_COUNT /* number of priorities supported */
- } wmi_scan_priority;
- /* Five Levels for Requested Priority */
- /* VERY_LOW LOW MEDIUM HIGH VERY_HIGH */
- typedef A_UINT32 WLAN_PRIORITY_MAPPING[WMI_SCAN_PRIORITY_COUNT];
- /**
- * to keep align with UMAC implementation, we pass only vdev_type but not vdev_subtype when we overwrite an entry for a specific vdev_subtype
- * ex. if we need overwrite P2P Client prority entry, we will overwrite the whole table for WLAN_M_STA
- * we will generate the new WLAN_M_STA table with modified P2P Client Entry but keep STA entry intact
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_scan_sch_priority_table_cmd_fixed_param */
- /**
- * used as an index to find the proper table for a specific vdev type in default_scan_priority_mapping_table
- * vdev_type should be one of enum in WLAN_OPMODE which inculdes WLAN_M_IBSS, WLAN_M_STA, WLAN_M_AP and WLAN_M_MONITOR currently
- */
- A_UINT32 vdev_type;
- /**
- * number of rows in mapping_table for a specific vdev
- * for WLAN_M_STA type, there are 3 entries in the table (refer to default_scan_priority_mapping_table definition)
- */
- A_UINT32 number_rows;
- /**
- * pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /** mapping_table for a specific vdev follows this TLV
- * WLAN_PRIORITY_MAPPING mapping_table[]; */
- } wmi_scan_sch_priority_table_cmd_fixed_param;
- /** update flags */
- #define WMI_SCAN_UPDATE_SCAN_PRIORITY 0x1
- #define WMI_SCAN_UPDATE_SCAN_MIN_REST_TIME 0x2
- #define WMI_SCAN_UPDATE_SCAN_MAX_REST_TIME 0x4
- typedef struct {
- A_UINT32 tlv_header;
- /** requestor requesting update scan request */
- A_UINT32 requestor;
- /** Scan ID of the scan request that need to be update */
- A_UINT32 scan_id;
- /** update flags, indicating which of the following fields are valid and need to be updated*/
- A_UINT32 scan_update_flags;
- /** scan priority. Only valid if WMI_SCAN_UPDATE_SCAN_PRIORITY flag is set in scan_update_flag */
- A_UINT32 scan_priority;
- /** min rest time. Only valid if WMI_SCAN_UPDATE_MIN_REST_TIME flag is set in scan_update_flag */
- A_UINT32 min_rest_time;
- /** min rest time. Only valid if WMI_SCAN_UPDATE_MAX_REST_TIME flag is set in scan_update_flag */
- A_UINT32 max_rest_time;
- /** pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. In non-DBDC case host should set it to 0 */
- A_UINT32 pdev_id;
- } wmi_scan_update_request_cmd_fixed_param;
- #define WMI_SCAN_PROBE_OUI_SPOOFED_MAC_IN_PROBE_REQ 0x1
- #define WMI_SCAN_PROBE_OUI_RANDOM_SEQ_NO_IN_PROBE_REQ 0x2
- #define WMI_SCAN_PROBE_OUI_ENABLE_IE_WHITELIST_IN_PROBE_REQ 0x4
- typedef struct _wmi_vendor_oui {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vendor_oui */
- A_UINT32 oui_type_subtype; /** Vendor OUI type and subtype, lower 3 bytes is type and highest byte is subtype**/
- }wmi_vendor_oui;
- typedef struct {
- A_UINT32 tlv_header;
- /** oui to be used in probe request frame when random mac addresss is
- * requested part of scan parameters. this is applied to both FW internal scans and
- * host initated scans. host can request for random mac address with
- * WMI_SCAN_ADD_SPOOFED_MAC_IN_PROBE_REQ flag. */
- A_UINT32 prob_req_oui;
- A_UINT32 vdev_id;
- /** Control Flags **/
- A_UINT32 flags;
- /** ie bitmap to use in probe req **/
- A_UINT32 ie_bitmap[WMI_IE_BITMAP_SIZE];
- /** Number of vendor OUIs. In the TLV vendor_oui[] **/
- A_UINT32 num_vendor_oui;
- /** pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. In non-DBDC case host should set it to 0 */
- A_UINT32 pdev_id;
- /* Following this tlv, there comes an array of structure of type wmi_vendor_oui
- wmi_vendor_oui vendor_oui[];*/
- } wmi_scan_prob_req_oui_cmd_fixed_param;
- enum wmi_scan_event_type {
- WMI_SCAN_EVENT_STARTED = 0x1,
- WMI_SCAN_EVENT_COMPLETED = 0x2,
- WMI_SCAN_EVENT_BSS_CHANNEL = 0x4,
- WMI_SCAN_EVENT_FOREIGN_CHANNEL = 0x8,
- WMI_SCAN_EVENT_DEQUEUED = 0x10, /* scan request got dequeued */
- WMI_SCAN_EVENT_PREEMPTED = 0x20, /* preempted by other high priority scan */
- WMI_SCAN_EVENT_START_FAILED = 0x40, /* scan start failed */
- WMI_SCAN_EVENT_RESTARTED = 0x80, /* scan restarted */
- WMI_SCAN_EVENT_FOREIGN_CHANNEL_EXIT = 0x100,
- WMI_SCAN_EVENT_SUSPENDED = 0x200, /* scan request is suspended */
- WMI_SCAN_EVENT_RESUMED = 0x400, /* scan request is resumed */
- WMI_SCAN_EVENT_MAX = 0x8000
- };
- enum wmi_scan_completion_reason {
- /** scan related events */
- WMI_SCAN_REASON_NONE = 0xFF,
- WMI_SCAN_REASON_COMPLETED = 0,
- WMI_SCAN_REASON_CANCELLED = 1,
- WMI_SCAN_REASON_PREEMPTED = 2,
- WMI_SCAN_REASON_TIMEDOUT = 3,
- WMI_SCAN_REASON_INTERNAL_FAILURE = 4, /* This reason indication failures when performaing scan */
- WMI_SCAN_REASON_SUSPENDED = 5,
- WMI_SCAN_REASON_DFS_VIOLATION = 6, /* Failure when tried to SCAN channel in NOL list */
- WMI_SCAN_REASON_MAX,
- };
- #define WMI_SCAN_EVT_IS_SCAN_TYPE_P2P_FLAG_SET(flag, value) \
- WMI_SET_BITS(flag, 0, 1, value)
- #define WMI_SCAN_EVT_IS_SCAN_TYPE_P2P_FLAG_GET(flag) \
- WMI_GET_BITS(flag, 0, 1)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_scan_event_fixed_param */
- /** scan event (wmi_scan_event_type) */
- A_UINT32 event;
- /** status of the scan completion event */
- A_UINT32 reason;
- /** channel freq , only valid for FOREIGN channel event*/
- A_UINT32 channel_freq;
- /**id of the requestor whose scan is in progress */
- A_UINT32 requestor;
- /**id of the scan that is in progress */
- A_UINT32 scan_id;
- /**id of VDEV that requested the scan */
- A_UINT32 vdev_id;
- /** TSF Timestamp when the scan event (wmi_scan_event_type) is completed
- * In case of AP it is TSF of the AP vdev
- * In case of STA connected state this is the TSF of the AP
- * In case of STA not connected it will be the free running HW timer
- */
- A_UINT32 tsf_timestamp;
- /** flags:
- * Bit[0] - indicate if scan type is for p2p
- * Bit[1:31] - reserved
- */
- A_UINT32 flags;
- } wmi_scan_event_fixed_param;
- /* WMI Diag event */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag is WMITLV_TAG_STRUC_wmi_diag_event_fixed_param */
- A_UINT32 time_stamp; /* Reference timestamp. diag frame contains diff value */
- A_UINT32 count; /* Number of diag frames added to current event */
- A_UINT32 dropped;
- /* followed by WMITLV_TAG_ARRAY_BYTE */
- } wmi_diag_event_fixed_param;
- #define WMI_11K_OFFLOAD_BITMAP_NEIGHBOR_REPORT_REQ 0x1
- typedef struct {
- A_UINT32 time_offset; /* positive offset in secs from the time 11k offload command has been received, 0xFFFFFFFF if offset is not valid */
- A_UINT32 low_rssi_offset; /* positive offset in dB from current low RSSI roaming trigger to send neighbor req, 0xFFFFFFFF if offset is not valid */
- A_UINT32 bmiss_count_trigger; /* value 1 is to send neighbor report at 1st BMISS, 0xFFFFFFFF if input is not valid */
- A_UINT32 per_threshold_offset; /* percentage offset from the current per_threshold, 0xFFFFFFFF if input is not valid */
- A_UINT32 neighbor_report_cache_timeout; /* cache timeout in secs after which neighbor cache is not valid in FW, 0xFFFFFFFF if input is not valid */
- A_UINT32 max_neighbor_report_req_cap; /* 0xFFFFFFFF if input is not valid, else positive number per every roam, these are the maximum number of
- * neighbor report requests that will be sent by FW after every roam */
- wmi_ssid ssid; /* ssid of current connected AP FW might choose to use this SSID in the neighbor report req frame if it is
- * interested in candidate of the same SSID */
- } wmi_neighbor_report_offload;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_offload_11k_report_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 offload_11k; /* bitmask to indicate to FW what all 11k features are offloaded */
- } wmi_11k_offload_report_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_neighbor_report_offload_tlv_param */
- wmi_neighbor_report_offload neighbor_rep_ofld_params;
- } wmi_neighbor_report_11k_offload_tlv_param;
- #define WMI_INVOKE_NEIGHBOR_REPORT_FLAGS_SEND_RESP_TO_HOST 0x1
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_invoke_neighbor_report_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 flags;
- wmi_ssid ssid; /* if ssid.len == 0, firmware doesn't include ssid sub-element.
- * In that case AP gives all the candidates in ESS without SSID filter
- * If host wants to insert ssid subelement in the neighbor report request frame, then it can specify the ssid here */
- } wmi_11k_offload_invoke_neighbor_report_fixed_param;
- #define WMI_MAX_PMKID_LEN 16
- #define WMI_MAX_PMK_LEN 64
- #define WMI_PMK_CACHE_CAT_FLAG_BSSID 0x1
- #define WMI_PMK_CACHE_CAT_FLAG_SSID_CACHE_ID 0x2
- #define WMI_PMK_CACHE_ACTION_FLAG_ADD_ENTRY 0x1
- #define WMI_PMK_CACHE_ACTION_FLAG_DEL_ENTRY 0x2
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 pmk_len;
- A_UINT8 pmk[WMI_MAX_PMK_LEN];/* for big-endian hosts, manual endian conversion will be needed to keep the array values in their original order,
- in spite of the automatic byte-swap applied to WMI messages during download*/
- A_UINT32 pmkid_len;
- A_UINT8 pmkid[WMI_MAX_PMKID_LEN];
- wmi_mac_addr bssid;
- wmi_ssid ssid;
- A_UINT32 cache_id;
- A_UINT32 cat_flag; // whether (bssid) or (ssid,cache_id) is valid
- A_UINT32 action_flag; // add/delete the entry
- } wmi_pmk_cache;
- #define WMI_PMK_CACHE_OP_FLAG_FLUSH_ALL 0x1
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_update_pmk_cache_cmd_fixed_param */
- A_UINT32 op_flag; //option to flush all the cache at once
- A_UINT32 vdev_id;
- A_UINT32 num_cache;
- /**
- * TLV (tag length value) parameters follow the update_pmk_cache cmd
- * structure. The TLV's are:
- * wmi_pmk_cache cache_list[];
- */
- } wmi_pdev_update_pmk_cache_cmd_fixed_param;
- #define WMI_FILS_MAX_USERNAME_LEN 16
- #define WMI_FILS_MAX_REALM_LEN 256
- #define WMI_FILS_MAX_RRK_LEN 64
- #define WMI_FILS_MAX_RIK_LEN 64
- /* for big-endian hosts, manual endian conversion will be needed to keep the array values in their original order,
- in spite of the automatic byte-swap applied to WMI messages during download*/
- typedef struct {
- A_UINT8 username[WMI_FILS_MAX_USERNAME_LEN];
- A_UINT32 username_length;
- A_UINT32 next_erp_seq_num;
- A_UINT8 rRk[WMI_FILS_MAX_RRK_LEN];
- A_UINT32 rRk_length;
- A_UINT8 rIk[WMI_FILS_MAX_RIK_LEN];
- A_UINT32 rIk_length;
- A_UINT8 realm[WMI_FILS_MAX_REALM_LEN];
- A_UINT32 realm_len;
- } wmi_erp_info;
- enum wmi_fils_hlp_pkt_type {
- WMI_FILS_HLP_PKT_TYPE_DHCP_DISCOVER = 1,
- };
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_fils_offload_tlv_param */
- A_UINT32 flags;
- wmi_erp_info vdev_erp_info;
- } wmi_roam_fils_offload_tlv_param;
- typedef struct {
- A_UINT32 tlv_header; /** tag WMITLV_TAG_STRUC_wmi_pdev_update_fils_hlp_pkt_cmd_fixed_param**/
- A_UINT32 flags;
- A_UINT32 vdev_id;
- A_UINT32 size;
- A_UINT32 pkt_type; // filled using enum wmi_fils_hlp_pkt_type
- // A_UINT8 fils_hlp_pkt[];
- } wmi_pdev_update_fils_hlp_pkt_cmd_fixed_param;
- #define WMI_MAX_KEK_LEN 64
- #define GTK_OFFLOAD_KEK_EXTENDED_BYTES WMI_MAX_KEK_LEN /*KEK len has been increased to 64 to support FILS security.
- To not break backward compatibility, new GTK_OFFLOAD_KEK_EXTENDED_BYTES has been defined without modifying old GTK_OFFLOAD_KEK_BYTES */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_fils_synch_tlv_param */
- A_UINT32 update_erp_next_seq_num;// Boolean denoting whether next erp_seq_num changed or not.
- A_UINT32 next_erp_seq_num;
- A_UINT32 kek_len;
- A_UINT8 kek[WMI_MAX_KEK_LEN];
- A_UINT32 pmk_len;
- A_UINT8 pmk[WMI_MAX_PMK_LEN];
- A_UINT8 pmkid[WMI_MAX_PMKID_LEN];
- A_UINT8 realm[WMI_FILS_MAX_REALM_LEN];
- A_UINT32 realm_len;
- } wmi_roam_fils_synch_tlv_param;
- /*
- * FW sends PMK cache of roamed candidate to host to sync pmk cache with host
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_pmk_cache_synch_tlv_param */
- A_UINT32 pmk_len;
- A_UINT8 pmk[WMI_MAX_PMK_LEN];
- A_UINT8 pmkid[WMI_MAX_PMKID_LEN];
- } wmi_roam_pmk_cache_synch_tlv_param;
- /**
- * WMI_ROAM_LINK_FLAG_XXX definition:
- */
- #define WMI_ROAM_LINK_FLAG_DISABLE 0x1 /* link is disabled, host can overwrite it later. */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_ml_setup_links_param */
- A_UINT32 vdev_id; /* when vdev_id is 0xffffffff, means the link_id hasn't attached to vdev */
- A_UINT32 link_id; /* link id defined as in 802.11 BE spec. */
- wmi_channel channel; /* link primary channel */
- /**
- * link flags: refer WMI_ROAM_LINK_FLAG_XXX.
- */
- A_UINT32 flags;
- wmi_mac_addr link_addr; /* link address */
- wmi_mac_addr self_link_addr; /* self-link address */
- } wmi_roam_ml_setup_links_param;
- /*
- * If FW has multiple active channels due to MCC(multi channel concurrency),
- * then these stats are combined stats for all the active channels.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_update_whal_mib_stats_event_fixed_param */
- /** ack count, it is an incremental number, not accumulated number */
- A_UINT32 ackRcvBad;
- /** bad rts count, it is an incremental number, not accumulated number */
- A_UINT32 rtsBad;
- /** good rts, it is an incremental number, not accumulated number */
- A_UINT32 rtsGood;
- /** fcs count, it is an incremental number, not accumulated number */
- A_UINT32 fcsBad;
- /** beacon count, it is an incremental number, not accumulated number */
- A_UINT32 noBeacons;
- } wmi_update_whal_mib_stats_event_fixed_param;
- /*
- * This defines how much headroom is kept in the
- * receive frame between the descriptor and the
- * payload, in order for the WMI PHY error and
- * management handler to insert header contents.
- *
- * This is in bytes.
- */
- #define WMI_MGMT_RX_HDR_HEADROOM (sizeof(wmi_comb_phyerr_rx_hdr) + WMI_TLV_HDR_SIZE + sizeof(wmi_single_phyerr_rx_hdr))
- /** This event will be used for sending scan results
- * as well as rx mgmt frames to the host. The rx buffer
- * will be sent as part of this WMI event. It would be a
- * good idea to pass all the fields in the RX status
- * descriptor up to the host.
- */
- /* ATH_MAX_ANTENNA value (4) can't be changed without breaking the compatibility */
- #define ATH_MAX_ANTENNA 4 /* To support beelinear, which is up to 4 chains */
- /** flag indicating that the mgmt frame (probe req/beacon) is received in the context of extscan performed by FW */
- #define WMI_MGMT_RX_HDR_EXTSCAN 0x01
- /** flag indicating that the mgmt frame (probe req/beacon) is received in the context of matched network by FW ENLO */
- #define WMI_MGMT_RX_HDR_ENLO 0x02
- #define MAX_ANTENNA_EIGHT 8
- /** Helper macro for params GET/SET of MGMT_RX_FW_CONSUMED_EVENTID */
- #define WMI_MGMT_RX_FW_CONSUMED_PARAM_PEER_ID_GET(peer_info_subtype) WMI_GET_BITS(peer_info_subtype, 0, 16)
- #define WMI_MGMT_RX_FW_CONSUMED_PARAM_PEER_ID_SET(peer_info_subtype, value) WMI_SET_BITS(peer_info_subtype, 0, 16, value)
- #define WMI_MGMT_RX_FW_CONSUMED_PARAM_IEEE_LINK_ID_GET(peer_info_subtype) WMI_GET_BITS(peer_info_subtype, 16, 3)
- #define WMI_MGMT_RX_FW_CONSUMED_PARAM_IEEE_LINK_ID_SET(peer_info_subtype, value) WMI_SET_BITS(peer_info_subtype, 16, 3, value)
- #define WMI_MGMT_RX_FW_CONSUMED_PARAM_SUBTYPE_GET(peer_info_subtype) WMI_GET_BITS(peer_info_subtype, 28, 4)
- #define WMI_MGMT_RX_FW_CONSUMED_PARAM_SUBTYPE_SET(peer_info_subtype, value) WMI_SET_BITS(peer_info_subtype, 28, 4, value)
- #define WMI_MGMT_RX_FW_CONSUMED_PARAM_MGMT_PKT_CTR_VALID_GET(mgmt_pkt_ctr_info) WMI_GET_BITS(mgmt_pkt_ctr_info, 15, 1)
- #define WMI_MGMT_RX_FW_CONSUMED_PARAM_MGMT_PKT_CTR_VALID_SET(mgmt_pkt_ctr_info, value) WMI_SET_BITS(mgmt_pkt_ctr_info, 15, 1, value)
- #define WMI_MGMT_RX_FW_CONSUMED_PARAM_MGMT_PKT_CTR_GET(mgmt_pkt_ctr_info) WMI_GET_BITS(mgmt_pkt_ctr_info, 16, 16)
- #define WMI_MGMT_RX_FW_CONSUMED_PARAM_MGMT_PKT_CTR_SET(mgmt_pkt_ctr_info, value) WMI_SET_BITS(mgmt_pkt_ctr_info, 16, 16, value)
- typedef struct {
- A_UINT32 tlv_header; /* WMITLV_TAG_STRUCT_wmi_mgmt_rx_fw_consumed_hdr */
- A_UINT32 rx_tsf_l32; /* h/w assigned timestamp of the rx frame in micro sec */
- A_UINT32 rx_tsf_u32 ;/* h/w assigned timestamp of the rx frame in micro sec */
- A_UINT32 pdev_id; /* pdev_id for identifying the MAC the rx mgmt frame was received by */
- /**
- * peer_info_subtype
- *
- * [15:0]: ml_peer_id, ML peer_id unique across chips
- * [18:16]: ieee_link_id, protocol link id on which the rx frame is received
- * [27:19]: reserved
- * [31:28]: subtype, subtype of the received MGMT frame
- */
- A_UINT32 peer_info_subtype;
- A_UINT32 chan_freq; /* frequency in MHz of the channel on which this frame was received */
- /* Timestamp (in micro sec) of the last fw consumed/dropped mgmt. frame, same across chips */
- A_UINT32 global_timestamp;
- /**
- * mgmt_pkt_ctr_info
- *
- * [14:0]: reserved
- * [15]: mgmt_pkt_ctr_valid
- * [31:16]: mgmt_pkt_ctr, Sequence number of the last fw consumed mgmt frame
- */
- A_UINT32 mgmt_pkt_ctr_info;
- A_UINT32 rx_ppdu_duration_us; /* receive duration in us */
- A_UINT32 mpdu_end_timestamp; /* mpdu end timestamp in us (based on HWMLO timer) */
- } wmi_mgmt_rx_fw_consumed_hdr;
- /** Helper macro for param GET/SET of mgmt_rx_reo_params */
- #define WMI_MGMT_RX_REO_PARAM_IEEE_LINK_ID_GET(mgmt_pkt_ctr_link_info) WMI_GET_BITS(mgmt_pkt_ctr_link_info, 12, 3)
- #define WMI_MGMT_RX_REO_PARAM_IEEE_LINK_ID_SET(mgmt_pkt_ctr_link_info, value) WMI_SET_BITS(mgmt_pkt_ctr_link_info, 12, 3, value)
- #define WMI_MGMT_RX_REO_PARAM_MGMT_PKT_CTR_VALID_GET(mgmt_pkt_ctr_link_info) WMI_GET_BITS(mgmt_pkt_ctr_link_info, 15, 1)
- #define WMI_MGMT_RX_REO_PARAM_MGMT_PKT_CTR_VALID_SET(mgmt_pkt_ctr_link_info, value) WMI_SET_BITS(mgmt_pkt_ctr_link_info, 15, 1, value)
- #define WMI_MGMT_RX_REO_PARAM_MGMT_PKT_CTR_GET(mgmt_pkt_ctr_link_info) WMI_GET_BITS(mgmt_pkt_ctr_link_info, 16, 16)
- #define WMI_MGMT_RX_REO_PARAM_MGMT_PKT_CTR_SET(mgmt_pkt_ctr_link_info, value) WMI_SET_BITS(mgmt_pkt_ctr_link_info, 16, 16, value)
- /** Data structure of the TLV to add in RX EVENTID for providing REO params
- * like global_timestamp and mgmt_pkt_ctr
- */
- typedef struct {
- A_UINT32 tlv_header; /*TLV WMITLV_TAG_STRUC_wmi_mgmt_rx_reo_params*/
- /* Timestamp (in micro sec) of the last fw forwarded mgmt. frame, same across chips */
- A_UINT32 global_timestamp;
- /**
- * mgmt_pkt_ctr_link_info
- *
- * [11:0]: reserved
- * [14:12]: ieee_link_id, protocol link id on which the rx frame is received
- * [15]: mgmt_pkt_ctr_valid
- * [31:16]: mgmt_pkt_ctr, Sequence number of the last fw forwarded mgmt frame
- */
- A_UINT32 mgmt_pkt_ctr_link_info;
- A_UINT32 rx_ppdu_duration_us; /* receive duration in us */
- A_UINT32 mpdu_end_timestamp; /* mpdu end timestamp in us (based on HWMLO timer) */
- } wmi_mgmt_rx_reo_params;
- /** Helper macro for param GET/SET */
- #define WMI_RX_PARAM_EXT_META_ID_GET(mgmt_rx_params_ext_dword0) WMI_GET_BITS(mgmt_rx_params_ext_dword0, 0, 3)
- #define WMI_RX_PARAM_EXT_META_ID_SET(mgmt_rx_params_ext_dword0, value) WMI_SET_BITS(mgmt_rx_params_ext_dword0, 0, 3, value)
- #define WMI_RX_PARAM_EXT_BA_WIN_SIZE_GET(mgmt_rx_params_ext_dword1) WMI_GET_BITS(mgmt_rx_params_ext_dword1, 0, 16)
- #define WMI_RX_PARAM_EXT_BA_WIN_SIZE_SET(mgmt_rx_params_ext_dword1, value) WMI_SET_BITS(mgmt_rx_params_ext_dword1, 0, 16, value)
- #define WMI_RX_PARAM_EXT_REO_WIN_SIZE_GET(mgmt_rx_params_ext_dword1) WMI_GET_BITS(mgmt_rx_params_ext_dword1, 16, 16)
- #define WMI_RX_PARAM_EXT_REO_WIN_SIZE_SET(mgmt_rx_params_ext_dword1, value) WMI_SET_BITS(mgmt_rx_params_ext_dword1, 16, 16, value)
- typedef enum {
- WMI_RX_PARAMS_EXT_META_ADDBA = 0x0,
- WMI_RX_PARAMS_EXT_META_TWT = 0x1,
- } wmi_mgmt_rx_params_ext_meta_t;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag (WMITLV_TAG_STRUC_wmi_mgmt_rx_params_ext) and len */
- union {
- struct {
- A_UINT32
- /* Describes the representation of the data in rx_param_ext_dword1
- * Full set shown in wmi_mgmt_rx_params_ext_meta_t */
- meta_id : 3,
- /* Dedicated for commonly used parameters only */
- reserved_0 : 29;
- };
- A_UINT32 mgmt_rx_params_ext_dword0;
- };
- union {
- struct {
- /* WMI_RX_PARAMS_EXT_META_ADDBA */
- A_UINT32
- ba_win_size :16, /* negotiated BA window size */
- reo_win_size :16; /* 2x the negotiated BA window size to handle any latency across MLO */
- };
- A_UINT32 mgmt_rx_params_ext_dword1;
- };
- union {
- struct {
- /* WMI_RX_PARAMS_EXT_META_TWT */
- A_UINT32 twt_ie_buf_len; /* IE length */
- /* Following this structure is the TLV byte stream of IE data
- * of length twt_ie_buf_len:
- * A_UINT8 ie_data[]; <-- length in bytes given by field
- * twt_ie_buf_len.
- * This ie_data[] would contain only the TWT IE information
- * when twt_ie_buf_len is non zero.
- */
- };
- A_UINT32 mgmt_rx_params_ext_dword2;
- };
- } wmi_mgmt_rx_params_ext;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mgmt_rx_hdr */
- /** channel on which this frame is received (channel number) */
- A_UINT32 channel;
- /** snr information used to cal RSSI */
- A_UINT32 snr;
- /** Rate kbps */
- A_UINT32 rate;
- /** rx phy mode WLAN_PHY_MODE */
- A_UINT32 phy_mode;
- /** length of the frame */
- A_UINT32 buf_len;
- /** rx status */
- A_UINT32 status; /* capture mode indication */
- /** RSSI of PRI 20MHz for each chain. */
- A_UINT32 rssi_ctl[ATH_MAX_ANTENNA];
- /** information about the management frame e.g. can give a scan source for a scan result mgmt frame */
- A_UINT32 flags;
- /** combined RSSI, i.e. the sum of the snr + noise floor (dBm units) */
- A_INT32 rssi;
- /** delta between local TSF(TSF timestamp when frame was RXd)
- * and remote TSF(TSF timestamp in the IE for mgmt frame -
- * beacon,proberesp for e.g). If remote TSF is not available,
- * delta set to 0.
- * Although tsf_delta is stored as A_UINT32, it can be negative,
- * and thus would need to be sign-extended if added to a value
- * larger than 32 bits.
- */
- A_UINT32 tsf_delta;
- /* The lower 32 bits of the TSF (rx_tsf_l32) is copied by FW from
- * TSF timestamp in the RX MAC descriptor provided by HW.
- */
- A_UINT32 rx_tsf_l32;
- /* The Upper 32 bits (rx_tsf_u32) is filled by reading the TSF register
- * after the packet is received.
- */
- A_UINT32 rx_tsf_u32;
- /** pdev_id for identifying the MAC the rx mgmt frame was received by
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** freq in MHz of the channel on which this frame was received */
- A_UINT32 chan_freq;
- /* This TLV is followed by array of bytes:
- * A_UINT8 bufp[]; <-- management frame buffer
- */
- /* This TLV is optionally followed by array of struct:
- * wmi_rssi_ctl_ext rssi_ctl_ext;
- */
- /*
- * This TLV is followed by struct:
- * wmi_mgmt_rx_reo_params reo_params;// MGMT rx REO params
- */
- /*
- * This TLV is optionally followed by struct:
- * wmi_mgmt_rx_params_ext mgmt_rx_params_ext[0 or 1];
- */
- } wmi_mgmt_rx_hdr;
- /* WMI CMD to receive the management filter criteria from the host */
- typedef struct {
- A_UINT32 tlv_header; /* WMITLV_TAG_STRUC_wmi_mgmt_reo_filter_cmd_fixed_param */
- A_UINT32 pdev_id; /* pdev_id for identifying the MAC */
- /* filter:
- * Each bit represents the possible combination of frame type (2 bits)
- * and subtype (4 bits)
- * There would be 64 such combinations as per the 802.11 standard
- * For Exp : We have beacon frame, we will take the type and subtype
- * of this frame and concatenate the bits, it will give 6 bits
- * number. We need to go to that bit position in the below
- * 2 filter_low and filter_high bitmap and set the bit.
- */
- A_UINT32 filter_low;
- A_UINT32 filter_high;
- } wmi_mgmt_rx_reo_filter_configuration_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag (WMITLV_TAG_STRUC_wmi_frame_pn_params) and len */
- A_UINT8 cur_pn[WMI_MAX_PN_LEN];
- A_UINT8 prev_pn[WMI_MAX_PN_LEN];
- } wmi_frame_pn_params;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag (WMITLV_TAG_STRUC_wmi_is_my_frame) */
- A_UINT32 mgmt_frm_sub_type; /* to indicate which sub-type of MGMT frame */
- A_UINT32 is_my_frame; /* to indicate frame is sent to this BSSID */
- } wmi_is_my_mgmt_frame;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mgmt_ml_info */
- /**
- * CU vdev map to initmate about the on-going Critical update
- * per-link contains 16 VAPs at max.
- */
- /*
- * bits : 0-15 | 16-31
- * link-id : 0 | 1
- */
- A_UINT32 cu_vdev_map_1;
- /*
- * bits : 0-15 | 16-31
- * link-id : 2 | 3
- */
- A_UINT32 cu_vdev_map_2;
- /*
- * bits : 0-15 | 16-31
- * link-id : 4 | 5
- */
- A_UINT32 cu_vdev_map_3;
- /*
- * bits : 0-15 | 16-31
- * link-id : 6 | 7
- */
- A_UINT32 cu_vdev_map_4; /* bits 63:32 */
- /**
- * This is followed by byte array that contains BPCC value per MLO VAP.
- * There will be 16 byte entries for each link corresponding to VAP-ID.
- * So number of byte entries will be (num of max links supported by AP * 16)
- * Note: num of max links supported = 8
- */
- } wmi_mgmt_ml_info;
- #define WMI_MLO_BROADCAST_TID_TO_LINK_MAP_INFO_VDEV_ID_GET(_var) WMI_GET_BITS(_var, 0, 8)
- #define WMI_MLO_BROADCAST_TID_TO_LINK_MAP_INFO_VDEV_ID_SET(_var, _val) WMI_SET_BITS(_var, 0, 8, _val)
- #define WMI_MLO_BROADCAST_TID_TO_LINK_MAP_INFO_EXP_DUR_GET(_var) WMI_GET_BITS(_var, 8, 24)
- #define WMI_MLO_BROADCAST_TID_TO_LINK_MAP_INFO_EXP_DUR_SET(_var, _val) WMI_SET_BITS(_var, 8, 24, _val)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_bcast_t2lm_info */
- /*
- * Vdev_id for MLO vap
- * WMI_MLO_BROADCAST_TID_TO_LINK_MAP_INFO_VDEV_ID_GET /
- * WMI_MLO_BROADCAST_TID_TO_LINK_MAP_INFO_VDEV_ID_SET
- * vdev_id :8
- *
- * Duration time for MLO Vap
- * WMI_MLO_BROADCAST_TID_TO_LINK_MAP_INFO_VDEV_ID_GET /
- * WMI_MLO_BROADCAST_TID_TO_LINK_MAP_INFO_VDEV_ID_SET
- * expected_duration :24
- */
- A_UINT32 vdev_id_expec_dur;
- } wmi_mlo_bcast_t2lm_info;
- typedef enum {
- PKT_CAPTURE_MODE_DISABLE = 0,
- PKT_CAPTURE_MODE_MGMT_ONLY,
- PKT_CAPTURE_MODE_DATA_ONLY,
- PKT_CAPTURE_MODE_DATA_MGMT,
- } WMI_PKT_CAPTURE_MODE_CONFIG;
- /* This information sending to host during offloaded MGMT local TX and host TX */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mgmt_hdr */
- /* channel frequency in MHz */
- A_UINT32 chan_freq;
- /** snr information used to cal RSSI in dB */
- A_UINT32 snr;
- /** Rate kbps */
- A_UINT32 rate_kbps;
- /** phy mode WLAN_PHY_MODE */
- A_UINT32 phy_mode;
- /** length of the frame in bytes */
- A_UINT32 buf_len;
- /** status:
- * 0x00: CRC ERR
- * 0x08: DECRYPT ERR
- * 0x10: MIC ERR
- * 0x20: KEY CACHE MISS
- */
- A_UINT32 status;
- /** flags:
- * Information about the management frame e.g. can give a scan source
- * for a scan result mgmt frame
- * Refer to WMI_MGMT_RX_HDR_ definitions.
- * ex: WMI_MGMT_RX_HDR_EXTSCAN,WMI_MGMT_RX_HDR_ENLO
- */
- A_UINT32 flags;
- /** combined RSSI, i.e. the sum of the snr + noise floor (dBm units) */
- A_INT32 rssi;
- /** delta between local TSF (TSF timestamp when frame was RXd)
- * and remote TSF (TSF timestamp in the IE for mgmt frame -
- * beacon, proberesp for example). If remote TSF is not available,
- * delta is set to 0.
- * Although tsf_delta is stored as A_UINT32, it can be negative,
- * and thus would need to be sign-extended if added to a value
- * larger than 32 bits.
- */
- A_UINT32 tsf_delta;
- /* The lower 32 bits of the TSF (tsf_l32) is copied by FW from
- * TSF timestamp in the TX MAC descriptor provided by HW.
- */
- A_UINT32 tsf_l32;
- /* The upper 32 bits of the TSF (tsf_u32) is copied by FW from
- * TSF timestamp in the TX MAC descriptor provided by HW.
- */
- A_UINT32 tsf_u32;
- /** pdev_id for identifying the MAC the tx mgmt frame transmitted.
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- A_UINT32 direction; /* tx:0,rx:1*/
- /** tx_status:
- * 0: xmit ok
- * 1: excessive retries
- * 2: blocked by tx filtering
- * 4: fifo underrun
- * 8: swabort
- */
- A_UINT32 tx_status;
- A_UINT32
- /* tx_retry_cnt:
- * Indicates retry count of offloaded/local & host mgmt tx frames.
- * The WMI_MGMT_HDR_TX_RETRY_[SET,GET] macros can be used to access
- * this bitfield in a portable manner.
- */
- tx_retry_cnt:6, /* [5:0] */
- reserved_1:26; /* [31:6] */
- /* This TLV may be followed by array of bytes:
- * A_UINT8 bufp[]; <-- management frame buffer
- */
- } wmi_mgmt_hdr;
- /* Tx retry cnt set & get bits*/
- #define WMI_MGMT_HDR_TX_RETRY_CNT_SET(tx_retry_cnt, value) \
- WMI_SET_BITS(tx_retry_cnt, 0, 6, value)
- #define WMI_MGMT_HDR_TX_RETRY_CNT_GET(tx_retry_cnt) \
- WMI_GET_BITS(tx_retry_cnt, 0, 6)
- /*
- * Instead of universally increasing the RX_HDR_HEADROOM size which may cause problems for older targets,
- * this new ext_hdr can be used for extending the header and will be only applicable for new targets.
- */
- typedef struct
- {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_rssi_ctl_ext */
- /** RSSI of PRI 20MHz for each chain, in dB w.r.t. noise floor */
- A_UINT32 rssi_ctl_ext[MAX_ANTENNA_EIGHT - ATH_MAX_ANTENNA];
- } wmi_rssi_ctl_ext;
- typedef struct {
- /** TSF timestamp */
- A_UINT32 tsf_timestamp;
- /**
- * Current freq1, freq2
- *
- * [7:0]: freq1[lo]
- * [15:8] : freq1[hi]
- * [23:16]: freq2[lo]
- * [31:24]: freq2[hi]
- */
- A_UINT32 freq_info_1;
- /**
- * Combined RSSI over all chains and channel width for this PHY error
- *
- * [7:0]: RSSI combined
- * [15:8]: Channel width (MHz)
- * [23:16]: PHY error code
- * [24:16]: reserved (future use)
- */
- A_UINT32 freq_info_2;
- /**
- * RSSI on chain 0 through 3
- *
- * This is formatted the same as the PPDU_START RX descriptor
- * field:
- *
- * [7:0]: pri20
- * [15:8]: sec20
- * [23:16]: sec40
- * [31:24]: sec80
- */
- A_UINT32 rssi_chain0;
- A_UINT32 rssi_chain1;
- A_UINT32 rssi_chain2;
- A_UINT32 rssi_chain3;
- /**
- * Last calibrated NF value for chain 0 through 3
- *
- * nf_list_1:
- *
- * + [15:0] - chain 0
- * + [31:16] - chain 1
- *
- * nf_list_2:
- *
- * + [15:0] - chain 2
- * + [31:16] - chain 3
- */
- A_UINT32 nf_list_1;
- A_UINT32 nf_list_2;
- /** Length of the frame */
- A_UINT32 buf_len;
- } wmi_single_phyerr_rx_hdr;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_single_phyerr_ext_rx_hdr */
- /**
- * RSSI on chain 4 through 7 in dB w.r.t noise floor.
- *
- * This is formatted the same as the PPDU_START RX descriptor
- * field:
- *
- * [7:0]: pri20
- * [15:8]: sec20
- * [23:16]: sec40
- * [31:24]: sec80
- */
- A_UINT32 rssi_chain4;
- A_UINT32 rssi_chain5;
- A_UINT32 rssi_chain6;
- A_UINT32 rssi_chain7;
- /**
- * Last calibrated NF value for chain 4 through 7 in dBm
- *
- * nf_list_3:
- * + [15:0] - chain 4
- * + [31:16] - chain 5
- *
- * nf_list_4:
- * + [15:0] - chain 6
- * + [31:16] - chain 7
- *
- * Each chain's noise floor is stored as a sign-extended (negative)
- * value in dBm units.
- */
- A_UINT32 nf_list_3;
- A_UINT32 nf_list_4;
- } wmi_single_phyerr_ext_rx_hdr;
- #define WMI_UNIFIED_FREQINFO_1_LO 0x000000ff
- #define WMI_UNIFIED_FREQINFO_1_LO_S 0
- #define WMI_UNIFIED_FREQINFO_1_HI 0x0000ff00
- #define WMI_UNIFIED_FREQINFO_1_HI_S 8
- #define WMI_UNIFIED_FREQINFO_2_LO 0x00ff0000
- #define WMI_UNIFIED_FREQINFO_2_LO_S 16
- #define WMI_UNIFIED_FREQINFO_2_HI 0xff000000
- #define WMI_UNIFIED_FREQINFO_2_HI_S 24
- /*
- * Please keep in mind that these _SET macros break macro side effect
- * assumptions; don't be clever with them.
- */
- #define WMI_UNIFIED_FREQ_INFO_GET(hdr, f) \
- (WMI_F_MS((hdr)->freq_info_1, \
- WMI_UNIFIED_FREQINFO_##f##_LO) \
- | (WMI_F_MS((hdr)->freq_info_1, \
- WMI_UNIFIED_FREQINFO_##f##_HI) << 8))
- #define WMI_UNIFIED_FREQ_INFO_SET(hdr, f, v) \
- do { \
- WMI_F_RMW((hdr)->freq_info_1, (v) & 0xff, \
- WMI_UNIFIED_FREQINFO_##f##_LO); \
- WMI_F_RMW((hdr)->freq_info_1, ((v) >> 8) & 0xff, \
- WMI_UNIFIED_FREQINFO_##f##_HI); \
- } while (0)
- #define WMI_UNIFIED_FREQINFO_2_RSSI_COMB 0x000000ff
- #define WMI_UNIFIED_FREQINFO_2_RSSI_COMB_S 0
- #define WMI_UNIFIED_FREQINFO_2_CHWIDTH 0x0000ff00
- #define WMI_UNIFIED_FREQINFO_2_CHWIDTH_S 8
- #define WMI_UNIFIED_FREQINFO_2_PHYERRCODE 0x00ff0000
- #define WMI_UNIFIED_FREQINFO_2_PHYERRCODE_S 16
- #define WMI_UNIFIED_RSSI_COMB_GET(hdr) \
- ((int8_t) (WMI_F_MS((hdr)->freq_info_2, \
- WMI_UNIFIED_FREQINFO_2_RSSI_COMB)))
- #define WMI_UNIFIED_RSSI_COMB_SET(hdr, v) \
- WMI_F_RMW((hdr)->freq_info_2, (v) & 0xff, \
- WMI_UNIFIED_FREQINFO_2_RSSI_COMB);
- #define WMI_UNIFIED_CHWIDTH_GET(hdr) \
- WMI_F_MS((hdr)->freq_info_2, WMI_UNIFIED_FREQINFO_2_CHWIDTH)
- #define WMI_UNIFIED_CHWIDTH_SET(hdr, v) \
- WMI_F_RMW((hdr)->freq_info_2, (v) & 0xff, \
- WMI_UNIFIED_FREQINFO_2_CHWIDTH);
- #define WMI_UNIFIED_PHYERRCODE_GET(hdr) \
- WMI_F_MS((hdr)->freq_info_2, WMI_UNIFIED_FREQINFO_2_PHYERRCODE)
- #define WMI_UNIFIED_PHYERRCODE_SET(hdr, v) \
- WMI_F_RMW((hdr)->freq_info_2, (v) & 0xff, \
- WMI_UNIFIED_FREQINFO_2_PHYERRCODE);
- #define WMI_UNIFIED_CHAIN_0 0x0000ffff
- #define WMI_UNIFIED_CHAIN_0_S 0
- #define WMI_UNIFIED_CHAIN_1 0xffff0000
- #define WMI_UNIFIED_CHAIN_1_S 16
- #define WMI_UNIFIED_CHAIN_2 0x0000ffff
- #define WMI_UNIFIED_CHAIN_2_S 0
- #define WMI_UNIFIED_CHAIN_3 0xffff0000
- #define WMI_UNIFIED_CHAIN_3_S 16
- #define WMI_UNIFIED_CHAIN_4 0x0000ffff
- #define WMI_UNIFIED_CHAIN_4_S 0
- #define WMI_UNIFIED_CHAIN_5 0xffff0000
- #define WMI_UNIFIED_CHAIN_5_S 16
- #define WMI_UNIFIED_CHAIN_6 0x0000ffff
- #define WMI_UNIFIED_CHAIN_6_S 0
- #define WMI_UNIFIED_CHAIN_7 0xffff0000
- #define WMI_UNIFIED_CHAIN_7_S 16
- #define WMI_UNIFIED_CHAIN_0_FIELD nf_list_1
- #define WMI_UNIFIED_CHAIN_1_FIELD nf_list_1
- #define WMI_UNIFIED_CHAIN_2_FIELD nf_list_2
- #define WMI_UNIFIED_CHAIN_3_FIELD nf_list_2
- #define WMI_UNIFIED_CHAIN_4_FIELD nf_list_3
- #define WMI_UNIFIED_CHAIN_5_FIELD nf_list_3
- #define WMI_UNIFIED_CHAIN_6_FIELD nf_list_4
- #define WMI_UNIFIED_CHAIN_7_FIELD nf_list_4
- #define WMI_UNIFIED_NF_CHAIN_GET(hdr, c) \
- ((int16_t) (WMI_F_MS((hdr)->WMI_UNIFIED_CHAIN_##c##_FIELD, \
- WMI_UNIFIED_CHAIN_##c)))
- #define WMI_UNIFIED_NF_CHAIN_SET(hdr, c, nf) \
- WMI_F_RMW((hdr)->WMI_UNIFIED_CHAIN_##c##_FIELD, (nf) & 0xffff, \
- WMI_UNIFIED_CHAIN_##c);
- /*
- * For now, this matches what the underlying hardware is doing.
- * Update ar6000ProcRxDesc() to use these macros when populating
- * the rx descriptor and then we can just copy the field over
- * to the WMI PHY notification without worrying about breaking
- * things.
- */
- #define WMI_UNIFIED_RSSI_CHAN_PRI20 0x000000ff
- #define WMI_UNIFIED_RSSI_CHAN_PRI20_S 0
- #define WMI_UNIFIED_RSSI_CHAN_SEC20 0x0000ff00
- #define WMI_UNIFIED_RSSI_CHAN_SEC20_S 8
- #define WMI_UNIFIED_RSSI_CHAN_SEC40 0x00ff0000
- #define WMI_UNIFIED_RSSI_CHAN_SEC40_S 16
- #define WMI_UNIFIED_RSSI_CHAN_SEC80 0xff000000
- #define WMI_UNIFIED_RSSI_CHAN_SEC80_S 24
- #define WMI_UNIFIED_RSSI_CHAN_SET(hdr, c, ch, rssi) \
- WMI_F_RMW((hdr)->rssi_chain##c, (rssi) & 0xff, \
- WMI_UNIFIED_RSSI_CHAN_##ch);
- #define WMI_UNIFIED_RSSI_CHAN_GET(hdr, c, ch) \
- ((int8_t) (WMI_F_MS((hdr)->rssi_chain##c, \
- WMI_UNIFIED_RSSI_CHAN_##ch)))
- #define WMI_UNIFIED_CHAIN_RSSI_GET(tlv, chain_idx, band) \
- ((A_INT8) WMI_F_MS((tlv)->chain_rssi[chain_idx], WMI_UNIFIED_RSSI_CHAN_ ## band))
- typedef struct {
- /** Phy error event header */
- wmi_single_phyerr_rx_hdr hdr;
- /** frame buffer */
- WMI_VAR_LEN_ARRAY1(A_UINT8, bufp);
- } wmi_single_phyerr_rx_event;
- /* PHY ERROR MASK 0 */
- /* bits 1:0 defined but not published */
- #define WMI_PHY_ERROR_MASK0_RADAR (1 << 2)
- /* bits 23:3 defined but not published */
- #define WMI_PHY_ERROR_MASK0_FALSE_RADAR_EXT (1 << 24)
- /* bits 25:24 defined but not published */
- #define WMI_PHY_ERROR_MASK0_SPECTRAL_SCAN (1 << 26)
- /* bits 31:27 defined but not published */
- /* PHY ERROR MASK 1 */
- /* bits 13:0 defined but not published */
- /* bits 31:14 reserved */
- /* PHY ERROR MASK 2 */
- /* bits 31:0 reserved */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_comb_phyerr_rx_hdr */
- /** Phy error phy error count */
- A_UINT32 num_phyerr_events;
- A_UINT32 tsf_l32;
- A_UINT32 tsf_u32;
- A_UINT32 buf_len;
- union {
- A_UINT32 pmac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- };
- A_UINT32 rsPhyErrMask0; /* see WMI_PHY_ERROR_MASK0 */
- A_UINT32 rsPhyErrMask1; /* see WMI_PHY_ERROR_MASK1 */
- A_UINT32 rsPhyErrMask2; /* see WMI_PHY_ERROR_MASK2 */
- /* This TLV is followed by array of bytes:
- * frame buffer - contains multiple payloads in the order:
- * header - payload, header - payload...
- * (The header is of type: wmi_single_phyerr_rx_hdr)
- * A_UINT8 bufp[];
- * The extension hdr will repeat num_phyerr_events of times
- * and will have 1:1 mapping with above header. i.e the 1st
- * ext_rx_hdr will belong to 1st phyerr_rx_hdr and so on.
- * wmi_single_phyerr_ext_rx_hdr single_phyerr_ext;
- */
- } wmi_comb_phyerr_rx_hdr;
- /* WMI MGMT TX */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mgmt_tx_hdr */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** xmit rate */
- A_UINT32 tx_rate;
- /** xmit power */
- A_UINT32 tx_power;
- /** Buffer length in bytes */
- A_UINT32 buf_len;
- /* This TLV is followed by array of bytes:
- * A_UINT8 bufp[]; <-- management frame buffer
- */
- } wmi_mgmt_tx_hdr;
- #define WMI_TX_SEND_PARAM_EXT_META_ID_GET(tx_param_ext_dword0) WMI_GET_BITS(tx_param_dword0, 0, 3)
- #define WMI_TX_SEND_PARAM_EXT_META_ID_SET(tx_param_ext_dword0, value) WMI_SET_BITS(tx_param_dword0, 0, 3, value)
- #define WMI_TX_SEND_PARAM_EXT_WIN_SIZE_GET(tx_param_ext_dword1) WMI_GET_BITS(tx_param_dword1, 0, 16)
- #define WMI_TX_SEND_PARAM_EXT_WIN_SIZE_SET(tx_param_ext_dword1, value) WMI_SET_BITS(tx_param_dword1, 0, 16, value)
- typedef enum {
- WMI_TX_SEND_PARAMS_EXT_META_ADDBA = 0x0,
- WMI_TX_SEND_PARAMS_EXT_META_DELBA = 0x1,
- } wmi_tx_send_params_ext_meta_t;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag (WMITLV_TAG_STRUC_wmi_tx_send_params_ext) and len */
- union {
- struct {
- A_UINT32 meta_id : 3, /* Describes the representation of the data in tx_param_ext_dword1 Full set shown in wmi_tx_send_params_ext_meta_t */
- reserved_0 : 29; /* Dedicated for commonly used parameters only */
- };
- A_UINT32 tx_param_ext_dword0;
- };
- union {
- struct {
- /* WMI_TX_SEND_PARAMS_EXT_META_ADDBA */
- A_UINT32 win_size : 16,
- reserved_1 : 16;
- };
- A_UINT32 tx_param_ext_dword1;
- };
- } wmi_tx_send_params_ext;
- #define WMI_TX_SEND_PARAM_PWR_GET(tx_param_dword0) WMI_GET_BITS(tx_param_dword0, 0, 8)
- #define WMI_TX_SEND_PARAM_PWR_SET(tx_param_dword0, value) WMI_SET_BITS(tx_param_dword0, 0, 8, value)
- #define WMI_TX_SEND_PARAM_MCS_MASK_GET(tx_param_dword0) WMI_GET_BITS(tx_param_dword0, 8, 12)
- #define WMI_TX_SEND_PARAM_MCS_MASK_SET(tx_param_dword0, value) WMI_SET_BITS(tx_param_dword0, 8, 12, value)
- #define WMI_TX_SEND_PARAM_NSS_MASK_GET(tx_param_dword0) WMI_GET_BITS(tx_param_dword0, 20, 8)
- #define WMI_TX_SEND_PARAM_NSS_MASK_SET(tx_param_dword0, value) WMI_SET_BITS(tx_param_dword0, 20, 8, value)
- #define WMI_TX_SEND_PARAM_RETRY_LIMIT_GET(tx_param_dword0) WMI_GET_BITS(tx_param_dword0, 28, 4)
- #define WMI_TX_SEND_PARAM_RETRY_LIMIT_SET(tx_param_dword0, value) WMI_SET_BITS(tx_param_dword0, 28, 4, value)
- #define WMI_TX_SEND_PARAM_CHAIN_MASK_GET(tx_param_dword1) WMI_GET_BITS(tx_param_dword1, 0, 8)
- #define WMI_TX_SEND_PARAM_CHAIN_MASK_SET(tx_param_dword1, value) WMI_SET_BITS(tx_param_dword1, 0, 8, value)
- #define WMI_TX_SEND_PARAM_BW_MASK_GET(tx_param_dword1) WMI_GET_BITS(tx_param_dword1, 8, 7)
- #define WMI_TX_SEND_PARAM_BW_MASK_SET(tx_param_dword1, value) WMI_SET_BITS(tx_param_dword1, 8, 7, value)
- #define WMI_TX_SEND_PARAM_PREAMBLE_GET(tx_param_dword1) WMI_GET_BITS(tx_param_dword1, 15, 5)
- #define WMI_TX_SEND_PARAM_PREAMBLE_SET(tx_param_dword1, value) WMI_SET_BITS(tx_param_dword1, 15, 5, value)
- #define WMI_TX_SEND_PARAM_FRAME_TYPE_GET(tx_param_dword1) WMI_GET_BITS(tx_param_dword1, 20, 1)
- #define WMI_TX_SEND_PARAM_FRAME_TYPE_SET(tx_param_dword1, value) WMI_SET_BITS(tx_param_dword1, 20, 1, value)
- #define WMI_TX_SEND_PARAM_CFR_CAPTURE_GET(tx_param_dword1) WMI_GET_BITS(tx_param_dword1, 21, 1)
- #define WMI_TX_SEND_PARAM_CFR_CAPTURE_SET(tx_param_dword1, value) WMI_SET_BITS(tx_param_dword1, 21, 1, value)
- #define WMI_TX_SEND_PARAM_BEAMFORM_GET(tx_param_dword1) WMI_GET_BITS(tx_param_dword1, 22, 1)
- #define WMI_TX_SEND_PARAM_BEAMFORM_SET(tx_param_dword1, value) WMI_SET_BITS(tx_param_dword1, 22, 1, value)
- #define WMI_TX_SEND_PARAM_RETRY_LIMIT_EXT_GET(tx_param_dword1) WMI_GET_BITS(tx_param_dword1, 23, 3)
- #define WMI_TX_SEND_PARAM_RETRY_LIMIT_EXT_SET(tx_param_dword1, value) WMI_SET_BITS(tx_param_dword1, 23, 3, value)
- /* TX_SEND flags:
- * Bit 0: set wrong txkey
- * There is one special WFA test case in STA or AP, setting wrong txkey
- * in disassoc or deauth with PMF enabled to verify if peer disconnected
- * Bit 1: set ps buffering for SA query frame
- */
- #define WMI_TX_SEND_FLAG_SET_WRONG_KEY 0x00000001
- #define WMI_TX_SEND_FLAG_SET_WRONG_KEY_GET(tx_flags) WMI_GET_BITS(tx_flags, 0, 1)
- #define WMI_TX_SEND_FLAG_SET_WRONG_KEY_SET(tx_flags, value) WMI_SET_BITS(tx_flags, 0, 1, value)
- #define WMI_TX_SEND_FLAG_SET_PS_BUFFERING_FOR_SA_QUERY 0x00000002
- #define WMI_TX_SEND_FLAG_SET_PS_BUFFERING_FOR_SA_QUERY_GET(tx_flags) WMI_GET_BITS(tx_flags, 1, 1)
- #define WMI_TX_SEND_FLAG_SET_PS_BUFFERING_FOR_SA_QUERY_SET(tx_flags, value) WMI_SET_BITS(tx_flags, 1, 1, value)
- #define WMI_TX_SEND_FLAG_SET_IS_SA_QUERY 0x00000004
- #define WMI_TX_SEND_FLAG_SET_IS_SA_QUERY_GET(tx_flags) WMI_GET_BITS(tx_flags, 2, 1)
- #define WMI_TX_SEND_FLAG_SET_IS_SA_QUERY_SET(tx_flags, value) WMI_SET_BITS(tx_flags, 2, 1, value)
- #define WMI_TX_SEND_FLAG_SET_P2P_FRAME_ON_STA_VDEV 0x00000008
- #define WMI_TX_SEND_FLAG_SET_P2P_FRAME_ON_STA_VDEV_GET(tx_flags) WMI_GET_BITS(tx_flags, 3, 1)
- #define WMI_TX_SEND_FLAG_SET_P2P_FRAME_ON_STA_VDEV_SET(tx_flags, value) WMI_SET_BITS(tx_flags, 3, 1, value)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tx_send_params */
- union {
- struct {
- /* DWORD 0: tx power, tx rate, retry_limit */
- A_UINT32
- /* pwr -
- * Specify what power the tx frame needs to be transmitted at.
- * The power a signed (two's complement) value is in units of 0.5 dBm.
- * The value needs to be appropriately sign-extended when extracting
- * the value from the message and storing it in a variable that is
- * larger than A_INT8. (fw automatically handles this sign-extension.)
- * If the transmission uses multiple tx chains, this power spec is
- * the total transmit power, assuming incoherent combination of
- * per-chain power to produce the total power.
- */
- pwr: 8,
- /* mcs_mask -
- * Specify the allowable values for MCS index (modulation and coding)
- * to use for transmitting the frame.
- *
- * For HT / VHT preamble types, this mask directly corresponds to
- * the HT or VHT MCS indices that are allowed. For each bit N set
- * within the mask, MCS index N is allowed for transmitting the frame.
- * For legacy CCK and OFDM rates, separate bits are provided for CCK
- * rates versus OFDM rates, so the host has the option of specifying
- * that the target must transmit the frame with CCK or OFDM rates
- * (not HT or VHT), but leaving the decision to the target whether
- * to use CCK or OFDM.
- *
- * For CCK and OFDM, the bits within this mask are interpreted as
- * follows:
- * bit 0 -> CCK 1 Mbps rate is allowed
- * bit 1 -> CCK 2 Mbps rate is allowed
- * bit 2 -> CCK 5.5 Mbps rate is allowed
- * bit 3 -> CCK 11 Mbps rate is allowed
- * bit 4 -> OFDM BPSK modulation, 1/2 coding rate is allowed
- * bit 5 -> OFDM BPSK modulation, 3/4 coding rate is allowed
- * bit 6 -> OFDM QPSK modulation, 1/2 coding rate is allowed
- * bit 7 -> OFDM QPSK modulation, 3/4 coding rate is allowed
- * bit 8 -> OFDM 16-QAM modulation, 1/2 coding rate is allowed
- * bit 9 -> OFDM 16-QAM modulation, 3/4 coding rate is allowed
- * bit 10 -> OFDM 64-QAM modulation, 2/3 coding rate is allowed
- * bit 11 -> OFDM 64-QAM modulation, 3/4 coding rate is allowed
- *
- * The MCS index specification needs to be compatible with the
- * bandwidth mask specification. For example, a MCS index == 9
- * specification is inconsistent with a preamble type == VHT,
- * Nss == 1, and channel bandwidth == 20 MHz.
- *
- * Furthermore, the host has only a limited ability to specify to
- * the target to select from HT + legacy rates, or VHT + legacy rates,
- * since this mcs_mask can specify either HT/VHT rates or legacy rates.
- * If no bits are set, target can choose what MCS type to use.
- */
- mcs_mask: 12,
- /* nss_mask -
- * Specify which numbers of spatial streams (MIMO factor) are permitted.
- * Each bit in this mask corresponds to a Nss value:
- * bit 0: if set, Nss = 1 (non-MIMO) is permitted
- * bit 1: if set, Nss = 2 (2x2 MIMO) is permitted
- * bit 2: if set, Nss = 3 (3x3 MIMO) is permitted
- * bit 3: if set, Nss = 4 (4x4 MIMO) is permitted
- * bit 4: if set, Nss = 5 (5x5 MIMO) is permitted
- * bit 5: if set, Nss = 6 (6x6 MIMO) is permitted
- * bit 6: if set, Nss = 7 (7x7 MIMO) is permitted
- * bit 7: if set, Nss = 8 (8x8 MIMO) is permitted
- * The values in the Nss mask must be suitable for the recipient, e.g.
- * a value of 0x4 (Nss = 3) cannot be specified for a tx frame to a
- * recipient which only supports 2x2 MIMO.
- * If no bits are set, target can choose what NSS type to use.
- */
- nss_mask: 8,
- /* retry_limit -
- * Specify the maximum number of transmissions, including the
- * initial transmission, to attempt before giving up if no ack
- * is received.
- * If the tx rate is specified, then all retries shall use the
- * same rate as the initial transmission.
- * If no tx rate is specified, the target can choose whether to
- * retain the original rate during the retransmissions, or to
- * fall back to a more robust rate.
- */
- retry_limit: 4;
- };
- A_UINT32 tx_param_dword0;
- };
- union {
- struct {
- /* DWORD 1: tx chain mask, preamble_type, tx BW */
- A_UINT32
- /* chain_mask - specify which chains to transmit from
- * If not set, target will choose what chain_mask to use.
- */
- chain_mask: 8,
- /* The bits in this mask correspond to the values as below
- * bit 0 -> 5MHz
- * bit 1 -> 10MHz
- * bit 2 -> 20MHz
- * bit 3 -> 40MHz
- * bit 4 -> 80MHz
- * bit 5 -> 160MHz
- * bit 6 -> 80_80MHz
- * If no bits are set, target can choose what BW to use.
- */
- bw_mask: 7,
- /* preamble_type_mask -
- * Specify which preamble types (CCK, OFDM, HT, VHT) the target
- * may choose from for transmitting this frame.
- * Each bit in this mask corresponds to a preamble_type value:
- * bit 0: if set, OFDM
- * bit 1: if set, CCK
- * bit 2: if set, HT
- * bit 3: if set, VHT
- * bit 4: if set, HE
- * If no bits are set, target can choose what preamble type to use.
- */
- preamble_type: 5,
- /* Data:1 Mgmt:0 */
- frame_type: 1,
- /* Capture CFR when bit is set */
- cfr_capture: 1,
- /* Enables Beamforming when bit is set */
- en_beamforming: 1,
- /*
- * Extra 3 bits of retry limit defined in tx_param_dword0,
- * to allow maximum 127 retries for specific frames.
- */
- retry_limit_ext: 3,
- reserved1_31_26: 6;
- };
- A_UINT32 tx_param_dword1;
- };
- } wmi_tx_send_params;
- #define WMI_MLO_MGMT_TID 0xFFFFFFFF
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag (WMITLV_TAG_STRUC_wmi_mlo_tx_send_params) and len */
- A_UINT32 hw_link_id; /** Unique link id across SOCs, provided by QMI handshake.
- * If WMI_MLO_MGMT_TID then the frame will be queued in the MLO queue
- * If valid hw_link_id
- */
- } wmi_mlo_tx_send_params;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mgmt_tx_send_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 desc_id; /* echoed in tx_compl_event */
- A_UINT32 chanfreq; /* MHz units */
- /* WMI_MGMT_TX_SEND_CMDID is used for both pass by value and
- * pass by reference WMI management frames.
- *
- * a) If the command is for pass by reference,
- * paddr_lo and padd_hi will hold the address of remote/host buffer
- * b) If the command is for pass by value,
- * paddr_lo and paddr_hi will be NULL.
- */
- A_UINT32 paddr_lo;
- A_UINT32 paddr_hi;
- A_UINT32 frame_len;
- A_UINT32 buf_len; /** Buffer length in bytes */
- /*
- * The frame which will have tx_params_valid set will be always be RAW
- * frame, as it will be tx'ed on non-pause tid
- */
- A_UINT32 tx_params_valid;
- /* tx_flags:
- * Extra flags when tx_params_valid is 0.
- * Refer to WMI_TX_SEND_FLAG_xxx defs regarding the meaning of the
- * bits within this field.
- */
- A_UINT32 tx_flags;
- /* peer_rssi:
- * If non-zero, indicates saved peer beacon/probe resp RSSI (dBm units)
- * ONLY for init connection auth/assoc pkt.
- */
- A_INT32 peer_rssi;
- /* This TLV is followed by array of bytes: First 64 bytes of management frame
- * A_UINT8 bufp[];
- */
- /* This TLV is followed by wmi_tx_send_params
- * wmi_tx_send_params tx_send_params;
- * wmi_mlo_tx_send_params mlo_tx_send_params[];
- * Note: WMI_MLO_MGMT_TID path validated for specific scenario
- * (BTM Usecase). Full support is not available.
- * wmi_tx_send_params_ext tx_send_params_ext[0 or 1];
- */
- } wmi_mgmt_tx_send_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_offchan_data_tx_send_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 desc_id; /* echoed in tx_compl_event */
- A_UINT32 chanfreq; /* MHz units */
- A_UINT32 paddr_lo;
- A_UINT32 paddr_hi;
- A_UINT32 frame_len;
- A_UINT32 buf_len; /** Buffer length in bytes */
- /* The frame which will have tx_params_valid set will be always be RAW
- * frame, as it will be tx'ed on non-pause tid
- */
- A_UINT32 tx_params_valid;
- /* This TLV is followed by array of bytes: First 64 bytes of frame
- * A_UINT8 bufp[];
- */
- /* This TLV is followed by wmi_tx_send_params
- * wmi_tx_send_params tx_send_params;
- */
- } wmi_offchan_data_tx_send_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_qos_null_frame_tx_send_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 desc_id; /* echoed in tx_compl_event */
- A_UINT32 paddr_lo; /* paddr_lo and padd_hi will hold the address of remote/host buffer, which is physical address of frame */
- A_UINT32 paddr_hi;
- A_UINT32 frame_len; /* Actual length of frame in bytes*/
- A_UINT32 buf_len; /** Buffer length in bytes, length of data DMA'ed to FW from host */
- /* This fixed_param TLV is followed by the TLVs listed below:
- * 1. ARRAY_BYTE TLV: First buf_len (expected to be 64) bytes of frame
- * A_UINT8 bufp[];
- * 2. wmi_tx_send_params tx_send_params;
- */
- } wmi_qos_null_frame_tx_send_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_echo_event_fixed_param */
- A_UINT32 value;
- } wmi_echo_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_echo_cmd_fixed_param */
- A_UINT32 value;
- } wmi_echo_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag would be equivalent to WMITLV_TAG_STRUC_wmi_mlo_link_disable_request_event_fixed_param */
- /** AP MLD address request to be disabled some set of link */
- wmi_mac_addr mld_addr;
- /** Request link id set to disable */
- A_UINT32 linkid_bitmap;
- } wmi_mlo_link_disable_request_event_fixed_param;
- typedef enum {
- /**
- * Projects support to offload regulatory database by default.
- * If don`t offload regulatory database, host can set this bit.
- */
- WMI_REGDOMAIN_DATABASE_NO_OFFLOAD_BITMASK = 0x00000001,
- } WMI_REGDOMAIN_BITMASK;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_regdomain_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** reg domain code */
- A_UINT32 reg_domain;
- A_UINT32 reg_domain_2G; /* fulfil 2G domain ID */
- A_UINT32 reg_domain_5G; /* fulfil 5G domain ID */
- A_UINT32 conformance_test_limit_2G; /* 2G whole band CTL index */
- A_UINT32 conformance_test_limit_5G; /* 5G whole band CTL index */
- A_UINT32 dfs_domain;
- /**
- * The below conformance_test_limit index fields are for supporting the
- * 5G sub-band CTL feature.
- * Conformance test limits (CTLs) are the product-specific
- * regulatory-compliant powers stored in the board data file (BDF).
- * These CTLs within the BDF are identified by CTL index values.
- * For example, the BDF file is expected to contain CTL data for
- * FCC (CTL index = 0x10), ETSI (CTL index = 0x30),
- * Japan/MKK (CTL index = 0x40), Korea (CTL index = 0x50),
- * and China (CTL index = 0x60) CTL regions.
- * The target FW will use the CTL indices specified in this message to
- * find a BDF CTL entry with a matching CTL index value, and then use
- * that CTL as one of the inputs into the tx power limit computation.
- * A CTL index value of 0x0 is invalid, and will be ignored by the FW.
- */
- A_UINT32 conformance_test_limit_5G_subband_UNII1;
- A_UINT32 conformance_test_limit_5G_subband_UNII2a;
- A_UINT32 conformance_test_limit_5G_subband_UNII2c;
- A_UINT32 conformance_test_limit_5G_subband_UNII3;
- A_UINT32 conformance_test_limit_5G_subband_UNII4;
- /**
- * The below conformance_test_limit index fields are like the above,
- * but are for supporting the 6G sub-band CTL feature.
- */
- A_UINT32 conformance_test_limit_6G_subband_UNII5;
- A_UINT32 conformance_test_limit_6G_subband_UNII6;
- A_UINT32 conformance_test_limit_6G_subband_UNII7;
- A_UINT32 conformance_test_limit_6G_subband_UNII8;
- /**
- * In 6G sub-band CTL, fulfil 6G domain id and whole band CTL index firstly.
- * Unlike 5G sub-band CTL index fields, role ap and role client have
- * different indices.
- * Each role has 3 sub-band indices due to different power_mode type.
- * Below 3 represent for power_mode types: 0-LPI, 1-SP, 2-VLP
- * Below 2 represent for client_max: 0-default, 1-subordinate
- */
- A_UINT32 reg_domain_6G; /* fulfil 6G domain id */
- A_UINT32 conformance_test_limit_6G; /* 6G whole band CTL index */
- A_UINT32 conformance_test_limit_6G_subband_UNII5_ap[3];
- A_UINT32 conformance_test_limit_6G_subband_UNII6_ap[3];
- A_UINT32 conformance_test_limit_6G_subband_UNII7_ap[3];
- A_UINT32 conformance_test_limit_6G_subband_UNII8_ap[3];
- A_UINT32 conformance_test_limit_6G_subband_UNII5_client[3][2];
- A_UINT32 conformance_test_limit_6G_subband_UNII6_client[3][2];
- A_UINT32 conformance_test_limit_6G_subband_UNII7_client[3][2];
- A_UINT32 conformance_test_limit_6G_subband_UNII8_client[3][2];
- /** reg domain bitmap */
- A_UINT32 regdomain_bitmap;
- } wmi_pdev_set_regdomain_cmd_fixed_param;
- typedef struct {
- /** TRUE for scan start and flase for scan end */
- A_UINT32 scan_start;
- } wmi_pdev_scan_cmd;
- /* WMI support for setting ratemask in target */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_config_ratemask_fixed_param */
- A_UINT32 vdev_id;
- /*
- * 0 - cck/ofdm
- * 1 - HT
- * 2 - VHT
- * 3 - HE
- * 4 - EHT
- *
- * Rate Bit mask format:
- * <MCS in NSS MAX> ...
- * <MCS MAX, ..., 2, 1, 0 : NSS2>
- * <MCS MAX, ..., 2, 1, 0 : NSS1>
- * EHT Rate Bit Mask format:
- * <MCS in NSS MAX> ...
- * <MCS MAX, ... 2, 1, 0, -1, -2 : NSS2>
- * <MCS MAX, ..., 2, 1, 0, -1(DCM), -2(EHT Dup) : NSS1>
- */
- A_UINT32 type;
- A_UINT32 mask_lower32;
- A_UINT32 mask_higher32;
- A_UINT32 mask_lower32_2;
- A_UINT32 mask_higher32_2;
- } wmi_vdev_config_ratemask_cmd_fixed_param;
- /* nrp action - Filter Neighbor Rx Packets - add/remove filter */
- enum {
- WMI_FILTER_NRP_ACTION_ADD = 0x1,
- WMI_FILTER_NRP_ACTION_REMOVE = 0x2,
- WMI_FILTER_NRP_ACTION_GET_LIST = 0x3,
- }; /* nrp - Neighbor Rx Packets */
- /* nrp type - Filter Neighbor Rx Packets - ap/client addr */
- enum {
- WMI_FILTER_NRP_TYPE_AP_BSSID = 0x1,
- WMI_FILTER_NRP_TYPE_STA_MACADDR = 0x2,
- };
- /* nrp flag - Filter Neighbor Rx Packets
- * (capture flag, 2 & 3 not initially supported)
- */
- enum {
- WMI_FILTER_NRP_CAPTURE_ONLY_RX_PACKETS = 0x1,
- WMI_FILTER_NRP_CAPTURE_ONLY_TX_PACKETS = 0x2,
- WMI_FILTER_NRP_CAPTURE_BOTH_TXRX_PACKETS = 0x3,
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_filter_nrp_config_cmd_fixed_param */
- A_UINT32 vdev_id;
- /* AP Bssid or Client Mac-addr */
- wmi_mac_addr addr;
- /* Add/Remove NRF Filter */
- A_UINT32 action; /* WMI_FILTER_NRP_ACTION enum */
- /* client/ap filter */
- A_UINT32 type; /* WMI_FILTER_NRP_TYPE enum */
- /* optional - tx/rx capture */
- A_UINT32 flag; /* WMI_FILTER_NRP_CAPTURE enum */
- /* BSSID index - index of the BSSID register */
- A_UINT32 bssid_idx;
- } wmi_vdev_filter_nrp_config_cmd_fixed_param; /* Filter for Neighbor Rx Packets */
- /* tx peer filter action - Filter Tx Packets - add/remove filter */
- enum {
- WMI_PEER_TX_FILTER_ACTION_ADD = 1,
- WMI_PEER_TX_FILTER_ACTION_REMOVE = 2,
- WMI_PEER_TX_FILTER_ACTION_ADD_AND_ENABLE_FILTERING = 3,
- WMI_PEER_TX_FILTER_ACTION_REMOVE_AND_CLEAR_FILTERING = 4,
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_tx_filter_cmd_fixed_param */
- A_UINT32 vdev_id;
- /* Client MAC addr */
- wmi_mac_addr addr;
- /* Add/Remove monitor_sta Filter */
- A_UINT32 action; /* WMI_PEER_TX_FILTER_ACTION enum */
- } wmi_peer_tx_filter_cmd_fixed_param; /* Filter for TX Packets */
- /* Command to set/unset chip in quiet mode */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_quiet_cmd_fixed_param */
- A_UINT32 pdev_id; /** pdev_id for identifying the MAC, See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 period; /*period in TUs*/
- A_UINT32 duration; /*duration in TUs*/
- A_UINT32 next_start; /*offset in TUs*/
- A_UINT32 enabled; /*enable/disable*/
- } wmi_pdev_set_quiet_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_quiet_cmd_fixed_param */
- A_UINT32 vdev_id; /* Virtual interface ID */
- A_UINT32 period; /* period in TUs */
- A_UINT32 duration; /* duration in TUs */
- A_UINT32 next_start; /* offset in TUs */
- A_UINT32 enabled; /* enable/disable */
- } wmi_vdev_set_quiet_cmd_fixed_param;
- /*
- * START_STOP flag value: 1 - Start, 0 - Stop
- */
- #define WMI_OFFLOAD_QUIET_FLAG_START_STOP 0x00000001
- /*
- * ONE_SHOT flag value: 1 - One shot, 0 - Repeat
- * This flag is only relevant if the START_STOP flag == 1 (start).
- */
- #define WMI_OFFLOAD_QUIET_FLAG_ONE_SHOT 0x00000002
- /*
- * Enable/Disable sending Quiet IE info in SWBA event from the target
- * 0 - Don't include Quiet IE in WMI SWBA Event
- * 1 - Include Quiet IE in WMI SWBA Event
- */
- #define WMI_OFFLOAD_QUIET_FLAG_INFO_IN_SWBA_START_STOP 0x00000004
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_bcn_offload_ml_quiet_config_params */
- A_UINT32 vdev_id; /* partner vdev_id */
- A_UINT32 hw_link_id; /* hw_link_id: Unique link id across SOCs, got as part of QMI handshake */
- A_UINT32 beacon_interval; /* beacon interval in TU from received beacon of the partner link */
- A_UINT32 period; /* period in TUs */
- A_UINT32 duration; /* duration in TUs */
- A_UINT32 next_start; /* offset in TUs from beacon */
- A_UINT32 flags; /* STOP or START (and single vs. repeated) Quiet IE
- * See WMI_OFFLOAD_QUIET_FLAG_xxx defs.
- */
- } wmi_vdev_bcn_offload_ml_quiet_config_params;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_bcn_offload_quiet_config_cmd_fixed_param */
- A_UINT32 vdev_id; /* Virtual interface ID */
- A_UINT32 period; /* period in TUs */
- A_UINT32 duration; /* duration in TUs */
- A_UINT32 next_start; /* offset in TUs from beacon */
- A_UINT32 flags; /* STOP or START (and single vs. repeated) Quiet IE
- * See WMI_OFFLOAD_QUIET_FLAG_xxx defs.
- */
- /*
- * This TLV is optionally followed by array of wmi_vdev_bcn_offload_ml_quiet_config_params struct
- * wmi_vdev_bcn_offload_ml_quiet_config_params will have multiple instances equal to num of links in an AP MLD
- * wmi_vdev_bcn_offload_ml_quiet_config_params ml_quiet_param[];
- */
- } wmi_vdev_bcn_offload_quiet_config_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_custom_aggr_size_cmd_fixed_param */
- A_UINT32 vdev_id; /* vdev id indicating to which the vdev custom aggregation size will be applied. */
- /* Size for tx aggregation for the vdev mentioned in vdev id
- * (max MPDUs per A-MPDU or max MSDUs per A-MSDU based on aggr_type field)
- */
- A_UINT32 tx_aggr_size;
- A_UINT32 rx_aggr_size; /* Size for rx aggregation (block ack window size limit) for the vdev mentioned in vdev id */
- /*
- * To set TX aggregation size limits per VDEV per AC
- * bits 1:0 (ac):
- * Access Category (0x0=BE, 0x1=BK, 0x2=VI, 0x3=VO)
- * If tx_ac_enable bit is not set, tx_aggr_size is applied
- * for all Access Categories
- * bit 2 (aggr_type): TX Aggregation Type (0=A-MPDU, 1=A-MSDU)
- * bit 3 (tx_aggr_size_disable): If set tx_aggr_size is invalid
- * bit 4 (rx_aggr_size_disable): If set rx_aggr_size is invalid
- * bit 5 (tx_ac_enable): If set, above ac bitmap is valid.
- * bit 6 (256 BA support enable) If set, Default 256 BA size is expected
- * from host
- * bit 7 (1024 BA support enable) If set, Default 1024 BA size is expected
- * from host
- * bits 31:8: Reserved bits. should be set to zero.
- */
- A_UINT32 enable_bitmap;
- } wmi_vdev_set_custom_aggr_size_cmd_fixed_param;
- typedef enum {
- WMI_VDEV_CUSTOM_AGGR_TYPE_AMPDU = 0,
- WMI_VDEV_CUSTOM_AGGR_TYPE_AMSDU = 1,
- WMI_VDEV_CUSTOM_AGGR_TYPE_MAX,
- } wmi_vdev_custom_aggr_type_t;
- #define WMI_VDEV_CUSTOM_AGGR_AC_BITPOS 0
- #define WMI_VDEV_CUSTOM_AGGR_AC_NUM_BITS 2
- #define WMI_VDEV_CUSTOM_AGGR_TYPE_BITPOS 2
- #define WMI_VDEV_CUSTOM_AGGR_TYPE_NUM_BITS 1
- #define WMI_VDEV_CUSTOM_TX_AGGR_SZ_DIS_BITPOS 3
- #define WMI_VDEV_CUSTOM_TX_AGGR_SZ_DIS_NUM_BITS 1
- #define WMI_VDEV_CUSTOM_RX_AGGR_SZ_DIS_BITPOS 4
- #define WMI_VDEV_CUSTOM_RX_AGGR_SZ_DIS_NUM_BITS 1
- #define WMI_VDEV_CUSTOM_TX_AC_EN_BITPOS 5
- #define WMI_VDEV_CUSTOM_TX_AC_EN_NUM_BITS 1
- #define WMI_VDEV_CUSTOM_AGGR_256_BA_EN_BITPOS 6
- #define WMI_VDEV_CUSTOM_AGGR_256_BA_EN_NUM_BITS 1
- #define WMI_VDEV_CUSTOM_AGGR_1024_BA_EN_BITPOS 7
- #define WMI_VDEV_CUSTOM_AGGR_1024_BA_EN_NUM_BITS 1
- #define WMI_VDEV_CUSTOM_AGGR_AC_SET(param, value) \
- WMI_SET_BITS(param, WMI_VDEV_CUSTOM_AGGR_AC_BITPOS, \
- WMI_VDEV_CUSTOM_AGGR_AC_NUM_BITS, value)
- #define WMI_VDEV_CUSTOM_AGGR_AC_GET(param) \
- WMI_GET_BITS(param, WMI_VDEV_CUSTOM_AGGR_AC_BITPOS, \
- WMI_VDEV_CUSTOM_AGGR_AC_NUM_BITS)
- #define WMI_VDEV_CUSTOM_AGGR_TYPE_SET(param, value) \
- WMI_SET_BITS(param, WMI_VDEV_CUSTOM_AGGR_TYPE_BITPOS, \
- WMI_VDEV_CUSTOM_AGGR_TYPE_NUM_BITS, value)
- #define WMI_VDEV_CUSTOM_AGGR_TYPE_GET(param) \
- WMI_GET_BITS(param, WMI_VDEV_CUSTOM_AGGR_TYPE_BITPOS, \
- WMI_VDEV_CUSTOM_AGGR_TYPE_NUM_BITS)
- #define WMI_VDEV_CUSTOM_TX_AGGR_SZ_DIS_SET(param, value) \
- WMI_SET_BITS(param, WMI_VDEV_CUSTOM_TX_AGGR_SZ_DIS_BITPOS, \
- WMI_VDEV_CUSTOM_TX_AGGR_SZ_DIS_NUM_BITS, value)
- #define WMI_VDEV_CUSTOM_TX_AGGR_SZ_DIS_GET(param) \
- WMI_GET_BITS(param, WMI_VDEV_CUSTOM_TX_AGGR_SZ_DIS_BITPOS, \
- WMI_VDEV_CUSTOM_TX_AGGR_SZ_DIS_NUM_BITS)
- #define WMI_VDEV_CUSTOM_RX_AGGR_SZ_DIS_SET(param, value) \
- WMI_SET_BITS(param, WMI_VDEV_CUSTOM_RX_AGGR_SZ_DIS_BITPOS, \
- WMI_VDEV_CUSTOM_RX_AGGR_SZ_DIS_NUM_BITS, value)
- #define WMI_VDEV_CUSTOM_RX_AGGR_SZ_DIS_GET(param) \
- WMI_GET_BITS(param, WMI_VDEV_CUSTOM_RX_AGGR_SZ_DIS_BITPOS, \
- WMI_VDEV_CUSTOM_RX_AGGR_SZ_DIS_NUM_BITS)
- #define WMI_VDEV_CUSTOM_TX_AC_EN_SET(param, value) \
- WMI_SET_BITS(param, WMI_VDEV_CUSTOM_TX_AC_EN_BITPOS, \
- WMI_VDEV_CUSTOM_TX_AC_EN_NUM_BITS, value)
- #define WMI_VDEV_CUSTOM_TX_AC_EN_GET(param) \
- WMI_GET_BITS(param, WMI_VDEV_CUSTOM_TX_AC_EN_BITPOS, \
- WMI_VDEV_CUSTOM_TX_AC_EN_NUM_BITS)
- #define WMI_VDEV_CUSTOM_AGGR_256_BA_EN_SET(param, value) \
- WMI_SET_BITS(param, WMI_VDEV_CUSTOM_AGGR_256_BA_EN_BITPOS, \
- WMI_VDEV_CUSTOM_AGGR_256_BA_EN_NUM_BITS, value)
- #define WMI_VDEV_CUSTOM_AGGR_256_BA_EN_GET(param) \
- WMI_GET_BITS(param, WMI_VDEV_CUSTOM_AGGR_256_BA_EN_BITPOS, \
- WMI_VDEV_CUSTOM_AGGR_256_BA_EN_NUM_BITS)
- #define WMI_VDEV_CUSTOM_AGGR_1024_BA_EN_SET(param, value) \
- WMI_SET_BITS(param, WMI_VDEV_CUSTOM_AGGR_1024_BA_EN_BITPOS, \
- WMI_VDEV_CUSTOM_AGGR_1024_BA_EN_NUM_BITS, value)
- #define WMI_VDEV_CUSTOM_AGGR_1024_BA_EN_GET(param) \
- WMI_GET_BITS(param, WMI_VDEV_CUSTOM_AGGR_1024_BA_EN_BITPOS, \
- WMI_VDEV_CUSTOM_AGGR_1024_BA_EN_NUM_BITS)
- typedef enum {
- WMI_VDEV_CUSTOM_SW_RETRY_TYPE_NONAGGR = 0,
- WMI_VDEV_CUSTOM_SW_RETRY_TYPE_AGGR = 1,
- WMI_VDEV_CUSTOM_SW_RETRY_TYPE_MAX,
- } wmi_vdev_custom_sw_retry_type_t;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_custom_sw_retry_th_cmd_fixed_param */
- A_UINT32 vdev_id; /* vdev id indicating to which the vdev custom software retries will be applied. */
- A_UINT32 ac_type; /* access category (VI, VO, BE, BK) enum wmi_traffic_ac */
- A_UINT32 sw_retry_type; /* 0 = non-aggr retry, 1 = aggr retry (wmi_vdev_custom_sw_retry_type_t enum) */
- A_UINT32 sw_retry_th; /* max retry count per AC base on ac_type for the vdev mentioned in vdev id*/
- } wmi_vdev_set_custom_sw_retry_th_cmd_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_chainmask_config_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* vdev id indicating to which the vdev, this chainmask configuration will be applied. */
- A_UINT32 vdev_id;
- /* number of chains to use for transmissions in 2.4 GHz band
- * If vdev is MLO vdev, below 2g params apply to all 2.4 GHz band links
- * If vdev is MLO vdev, below 5g params apply to all 5/6 GHz band links
- */
- A_UINT32 num_tx_chains_2g;
- /* number of chains to use for reception in 2.4 GHz band */
- A_UINT32 num_rx_chains_2g;
- /* nss to use for transmissions in 2.4 GHz band */
- A_UINT32 tx_nss_2g;
- /* nss to use for reception in 2.4 GHz band */
- A_UINT32 rx_nss_2g;
- /* number of chains to use for 11b transmissions. Valid only in 2.4 GHz */
- A_UINT32 num_tx_chains_b;
- /* number of chains to use for 11g transmissions. Valid only in 2.4 GHz */
- A_UINT32 num_tx_chains_g;
- /* number of chains to use for transmissions in 5 GHz band */
- A_UINT32 num_tx_chains_5g;
- /* number of chains to use for reception in 5 GHz band */
- A_UINT32 num_rx_chains_5g;
- /* nss to use for transmissions in 5 GHz band */
- A_UINT32 tx_nss_5g;
- /* nss to use for reception in 5 GHz band */
- A_UINT32 rx_nss_5g;
- /* number of chains to use for 11a transmissions. Valid only in 5 GHz */
- A_UINT32 num_tx_chains_a;
- /* If non-zero then use only one chain for TX when connection tx_nss is 1 in 2.4 GHz */
- A_UINT32 disable_tx_mrc_2g;
- /* If non-zero then use only one chain for RX when connection rx_nss is 1 in 2.4 GHz */
- A_UINT32 disable_rx_mrc_2g;
- /* If non-zero then use only one chain for TX when connection tx_nss is 1 in 5 GHz */
- A_UINT32 disable_tx_mrc_5g;
- /* If non-zero then use only one chain for RX when connection rx_nss is 1 in 5 GHz */
- A_UINT32 disable_rx_mrc_5g;
- /* Whether fast chain selection is needed when TX chain num is 1 */
- A_UINT32 fast_chain_selection;
- /* RSSI delta threshold to determine better chain, units: dB */
- A_UINT32 better_chain_rssi_threshold;
- } wmi_vdev_chainmask_config_cmd_fixed_param;
- /*
- * Command to enable/disable Green AP Power Save.
- * This helps conserve power during AP operation. When the AP has no
- * stations associated with it, the host can enable Green AP Power Save
- * to request the firmware to shut down all but one transmit and receive
- * chains.
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_green_ap_ps_enable_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- A_UINT32 enable; /*1:enable, 0:disable*/
- } wmi_pdev_green_ap_ps_enable_cmd_fixed_param;
- #define MAX_HT_IE_LEN 32
- /* DEPRECATED */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_ht_ie_cmd_fixed_param */
- A_UINT32 reserved0; /** placeholder for pdev_id of future multiple MAC products. Init. to 0. */
- A_UINT32 ie_len; /*length of the ht ie in the TLV ie_data[] */
- A_UINT32 tx_streams; /* Tx streams supported for this HT IE */
- A_UINT32 rx_streams; /* Rx streams supported for this HT IE */
- /** The TLV for the HT IE follows:
- * A_UINT32 ie_data[];
- */
- } wmi_pdev_set_ht_ie_cmd_fixed_param;
- #define MAX_VHT_IE_LEN 32
- /* DEPRECATED */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_vht_ie_cmd_fixed_param */
- A_UINT32 reserved0; /** placeholder for pdev_id of future multiple MAC products. Init. to 0. */
- A_UINT32 ie_len; /*length of the vht ie in the TLV ie_data[] */
- A_UINT32 tx_streams; /* Tx streams supported for this HT IE */
- A_UINT32 rx_streams; /* Rx streams supported for this HT IE */
- /** The TLV for the VHT IE follows:
- * A_UINT32 ie_data[];
- */
- } wmi_pdev_set_vht_ie_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_base_macaddr_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- wmi_mac_addr base_macaddr;
- } wmi_pdev_set_base_macaddr_cmd_fixed_param;
- enum wmi_spectral_scan_mode {
- WMI_SPECTRAL_SCAN_NORMAL_MODE,
- WMI_SPECTRAL_SCAN_AGILE_MODE,
- WMI_SPECTRAL_SCAN_MAX_MODE /* keep this last */
- };
- /*
- * For now, the spectral configuration is global rather than
- * per-vdev. The vdev is a placeholder and will be ignored
- * by the firmware.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_spectral_configure_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 spectral_scan_count;
- A_UINT32 spectral_scan_period;
- A_UINT32 spectral_scan_priority;
- A_UINT32 spectral_scan_fft_size;
- A_UINT32 spectral_scan_gc_ena;
- A_UINT32 spectral_scan_restart_ena;
- A_UINT32 spectral_scan_noise_floor_ref;
- A_UINT32 spectral_scan_init_delay;
- A_UINT32 spectral_scan_nb_tone_thr;
- A_UINT32 spectral_scan_str_bin_thr;
- A_UINT32 spectral_scan_wb_rpt_mode;
- A_UINT32 spectral_scan_rssi_rpt_mode;
- A_UINT32 spectral_scan_rssi_thr;
- A_UINT32 spectral_scan_pwr_format;
- A_UINT32 spectral_scan_rpt_mode;
- A_UINT32 spectral_scan_bin_scale;
- A_UINT32 spectral_scan_dBm_adj;
- A_UINT32 spectral_scan_chn_mask;
- /* See enum wmi_spectral_scan_mode */
- A_UINT32 spectral_scan_mode;
- union {
- /**
- * Two center frequencies are required for agile channel switch
- * supporting True 160 and Restricted 160 ((80+80) or 165) MHz.
- * This parameter specifies the center frequency for cases with a
- * contiguous channel, and the center frequency of the primary
- * portion of a non-contiguous (80+80 or 165 MHz) channel.
- */
- A_UINT32 spectral_scan_center_freq;
- A_UINT32 spectral_scan_center_freq1;
- };
- /* agile span primary channel frequency (MHz), 0 for normal scan*/
- A_UINT32 spectral_scan_chan_freq;
- /* agile scan bandwidth (20, 40, 80, 80+80, 160), enum wmi_channel_width */
- A_UINT32 spectral_scan_chan_width;
- /**
- * Adding freq2 to support True 160 and restricted 160 ((80+80) or 165) MHz.
- * agile span center frequency2 (MHz), 0 for normal scan.
- */
- A_UINT32 spectral_scan_center_freq2;
- /**
- * Flag to enable re-capture of FFT sample if the previous sample has
- * AGC gain change bit set.
- * Re-capture will be enabled only if scan period is greater than 50us.
- */
- A_UINT32 recapture_sample_on_gain_change;
- } wmi_vdev_spectral_configure_cmd_fixed_param;
- /*
- * Enabling, disabling and triggering the spectral scan
- * is a per-vdev operation. That is, it will set channel
- * flags per vdev rather than globally; so concurrent scan/run
- * and multiple STA (eg p2p, tdls, multi-band STA) is possible.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_spectral_enable_cmd_fixed_param */
- A_UINT32 vdev_id;
- /* 0 - ignore; 1 - trigger, 2 - clear trigger */
- A_UINT32 trigger_cmd;
- /* 0 - ignore; 1 - enable, 2 - disable */
- A_UINT32 enable_cmd;
- /* See enum wmi_spectral_scan_mode */
- A_UINT32 spectral_scan_mode;
- } wmi_vdev_spectral_enable_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_tx_power_cmd_fixed_param */
- A_UINT32 vdev_id;
- } wmi_vdev_get_tx_power_cmd_fixed_param;
- /* Primary 80 bin values */
- #define WMI_SSCAN_PRI80_START_BIN_GET(pri80_bins) WMI_GET_BITS(pri80_bins, 0, 16)
- #define WMI_SSCAN_PRI80_START_BIN_SET(pri80_bins, value) WMI_SET_BITS(pri80_bins, 0, 16, value)
- #define WMI_SSCAN_PRI80_END_BIN_GET(pri80_bins) WMI_GET_BITS(pri80_bins, 16, 16)
- #define WMI_SSCAN_PRI80_END_BIN_SET(pri80_bins, value) WMI_SET_BITS(pri80_bins, 16, 16, value)
- /* Secondary 80 bin values */
- #define WMI_SSCAN_SEC80_START_BIN_GET(sec80_bins) WMI_GET_BITS(sec80_bins, 0, 16)
- #define WMI_SSCAN_SEC80_START_BIN_SET(sec80_bins, value) WMI_SET_BITS(sec80_bins, 0, 16, value)
- #define WMI_SSCAN_SEC80_END_BIN_GET(sec80_bins) WMI_GET_BITS(sec80_bins, 16, 16)
- #define WMI_SSCAN_SEC80_END_BIN_SET(sec80_bins, value) WMI_SET_BITS(sec80_bins, 16, 16, value)
- /* 5MHz bin values */
- #define WMI_SSCAN_MID_5MHZ_START_BIN_GET(mid_5mhz_bins) WMI_GET_BITS(mid_5mhz_bins, 0, 16)
- #define WMI_SSCAN_MID_5MHZ_START_BIN_SET(mid_5mhz_bins, value) WMI_SET_BITS(mid_5mhz_bins, 0, 16, value)
- #define WMI_SSCAN_MID_5MHZ_END_BIN_GET(mid_5mhz_bins) WMI_GET_BITS(mid_5mhz_bins, 16, 16)
- #define WMI_SSCAN_MID_5MHZ_END_BIN_SET(mid_5mhz_bins, value) WMI_SET_BITS(mid_5mhz_bins, 16, 16, value)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_sscan_fw_cmd_fixed_param */
- A_UINT32 pdev_id;
- /* See enum wmi_spectral_scan_mode */
- A_UINT32 spectral_scan_mode;
- /**
- * This fixed_param TLV is followed by the below TLVs:
- *
- * wmi_pdev_sscan_fft_bin_index fft_bin_index[]; // array len = 0 or 1
- * If present (array length is 1) this TLV specifies the primary
- * and secondary channels FFT bin indices for True 160 and
- * Restricted 160 (80+80 or 165) MHz BW cases.
- */
- } wmi_pdev_sscan_fw_cmd_fixed_param;
- /**
- * The below structure is used only to send the FFT bin numbers for
- * True 160 and Restricted 160(80+80 or 165) MHz from FW to HOST
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_sscan_fft_bin_index */
- /**
- * Bit 15 - 0 : primary 80 start bin number
- * Bit 31 - 16 : primary 80 end bin number
- * Refer to WMI_SSCAN_PRI80_[START,END]_BIN_[GET,SET] macros.
- * Only for True 160 and Restricted 160(80+80 or 165) MHz this
- * will be filled.
- */
- A_UINT32 pri80_bins;
- /**
- * Bit 15 - 0 : secondary 80 start bin number
- * Bit 31 - 16 : secondary 80 end bin number
- * Refer to WMI_SSCAN_SEC80_[START,END]_BIN_[GET,SET] macros.
- * Only for True 160 and Restricted 160(80+80 or 165) MHz this
- * will be filled.
- */
- A_UINT32 sec80_bins;
- /**
- * Bit 15 - 0 : 5Mhz start bin number
- * Bit 31 - 16 : 5Mhz end bin number
- * Refer to WMI_SSCAN_MID_5MHZ_[START,END]_BIN_[GET,SET] macros.
- * Only for Restricted 160(80+80 or 165), otherwise 0.
- */
- A_UINT32 mid_5mhz_bins;
- } wmi_pdev_sscan_fft_bin_index;
- #define WMI_SPECTRAL_CHAN_PUNCTURE_BMAP_GET(puncture_bmap) WMI_GET_BITS(puncture_bmap, 0, 16)
- #define WMI_SPECTRAL_CHAN_PUNCTURE_BMAP_SET(puncture_bmap, value) WMI_SET_BITS(puncture_bmap, 0 , 16, value)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_sscan_chan_info */
- /*
- * For contiguous channels, cfreq1 should be represent the center of the entire span and
- * cfreq2 should be 0 whereas for non-contiguous channels, cfreq1 should represent the
- * center of primary segment whereas cfreq2 should represent the center of secondary segment
- */
- /* Information corresponding to operating channel */
- A_UINT32 operating_pri20_freq; /* In MHz */
- A_UINT32 operating_cfreq1; /* In MHz */
- A_UINT32 operating_cfreq2; /* In MHz */
- A_UINT32 operating_bw; /* as per enum wmi_channel_width */
- /*
- * bits [15:0] are used to represent puncture modes where each bit indicates
- * whether that 20MHz channel is punctured.
- * bits [31:16] are reserved.
- */
- A_UINT32 operating_puncture_20mhz_bitmap;
- /* Information corresponding to channel in which spectral scan is done */
- A_UINT32 sscan_cfreq1; /* In MHz */
- A_UINT32 sscan_cfreq2; /* In MHz */
- A_UINT32 sscan_bw; /* as per enum wmi_channel_width */
- /*
- * bits [15:0] are used to represent puncture modes where each bit indicates
- * whether that 20MHz channel is punctured.
- * bits [31:16] are reserved.
- */
- A_UINT32 sscan_puncture_20mhz_bitmap;
- } wmi_pdev_sscan_chan_info;
- typedef struct
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_sscan_per_detector_info */
- A_UINT32 detector_id; /** ID of the detector involved in the spectral scan */
- /*
- * Start/End frequency (in MHz) to indicate the frequency range to which the detector is listening
- */
- A_UINT32 start_freq; /* in MHz */
- A_UINT32 end_freq; /* in MHz */
- } wmi_pdev_sscan_per_detector_info;
- typedef enum {
- /** Enum to indicate bmsk of spectral scan stop evt on scan count max out */
- WMI_SSCAN_EVT_BMSK_SCAN_STOP_SCOUNT = 0X00000001,
- /** Add more event code bmsks above this */
- WMI_SSCAN_EVT_BMSK_MAX = 0Xffffffff,
- } wmi_sscan_evt_message_code;
- /**
- * The below structure is used to send the start/stop triggers
- * for events related to spectral scan activity from
- * FW to host
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sscan_evt_message_fixed_param */
- A_UINT32 pdev_id;
- /** Refer Enum wmi_sscan_evt_message_code */
- A_UINT32 sscan_evt_code;
- } wmi_sscan_evt_message_fixed_param;
- #define WMI_BEACON_CTRL_TX_DISABLE 0
- #define WMI_BEACON_CTRL_TX_ENABLE 1
- #define WMI_BEACON_CTRL_SWBA_EVENT_DISABLE 2
- #define WMI_BEACON_CTRL_SWBA_EVENT_ENABLE 3
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_bcn_offload_ctrl_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- A_UINT32 bcn_ctrl_op; /* fw default 1 (see WMI_BEACON_CTRL defs) */
- } wmi_bcn_offload_ctrl_cmd_fixed_param;
- /** common structure used for wmi_vedv_get_tx_power_event */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_tx_power_event_fixed_param */
- A_UINT32 tx_power; /** units: 0.5 dBm, per-chain tx power */
- A_UINT32 vdev_id; /** unique id identifying the VDEV, generated by the caller */
- } wmi_vdev_get_tx_power_event_fixed_param;
- typedef enum {
- /** Limit the offchannel duration */
- WMI_VDEV_LIMIT_OFFCHAN_ENABLE = 0x1,
- /** Skip DFS channels from Scan channel list.
- * valid for both host scans and FW scans */
- WMI_VDEV_LIMIT_OFFCHAN_SKIP_DFS = 0x2,
- } wmi_vdev_limit_offchan_flags;
- typedef struct {
- A_UINT32 tlv_header; /* WMITLV_TAG_STRUC_wmi_vdev_limit_offchan_cmd_fixed_param */
- /** Limit the duration of offchannel events requested by the vdev corresponding to the specified vdev_id */
- A_UINT32 vdev_id;
- /** see enum wmi_vdev_limit_offchan_flags */
- A_UINT32 flags;
- /** max offchannel time allowed in msec when WMI_VDEV_LIMIT_OFFCHAN_ENABLE flag is set */
- A_UINT32 max_offchan_time;
- /** rest time in msec on the BSS channel */
- A_UINT32 rest_time;
- } wmi_vdev_limit_offchan_cmd_fixed_param;
- #define WMI_CSA_EVENT_QSBW_ISE_ID_MASK 0x000000FF /* information sub element id for QSBW, expected value is 0x02 */
- #define WMI_CSA_EVENT_QSBW_ISE_LEN_MASK 0x0000FF00 /* length of QSBW ISE data, expected value is 0x02 */
- #define WMI_CSA_EVENT_QSBW_ISE_CAP_MASK 0x00FF0000 /* capabilities, 0x01 for 5MHz, 0x02 for 10MHz, 0x01|0x2 for both (see WMI_CSA_EVENT_QSBW_ISE bitmask defs) */
- #define WMI_CSA_EVENT_QSBW_ISE_NOTIF_MASK 0xFF000000 /* notification from AP, 0x01 for 5MHz, 0x02 for 10MHz (see WMI_CSA_EVENT_QSBW_ISE bitmask defs) */
- #define WMI_CSA_EVENT_QSBW_ISE_ID 0x02
- #define WMI_CSA_EVENT_QSBW_ISE_LEN 0x02
- #define WMI_CSA_EVENT_QSBW_ISE_5M_BITMASK 0x01
- #define WMI_CSA_EVENT_QSBW_ISE_10M_BITMASK 0x02
- #define WMI_CSA_EVENT_QSBW_ISE_CAP_5M(qsbw_ise) \
- (((qsbw_ise) >> 16) & WMI_CSA_EVENT_QSBW_ISE_5M_BITMASK)
- #define WMI_CSA_EVENT_QSBW_ISE_CAP_10M(qsbw_ise) \
- (((qsbw_ise) >> 16) & WMI_CSA_EVENT_QSBW_ISE_10M_BITMASK)
- #define WMI_CSA_EVENT_QSBW_ISE_NOTIF_5M(qsbw_ise) \
- (((qsbw_ise) >> 24) & WMI_CSA_EVENT_QSBW_ISE_5M_BITMASK)
- #define WMI_CSA_EVENT_QSBW_ISE_NOTIF_10M(qsbw_ise) \
- (((qsbw_ise) >> 24) & WMI_CSA_EVENT_QSBW_ISE_10M_BITMASK)
- typedef enum {
- WMI_CSA_IE_PRESENT = 0x00000001,
- WMI_XCSA_IE_PRESENT = 0x00000002,
- WMI_WBW_IE_PRESENT = 0x00000004,
- WMI_CSWRAP_IE_PRESENT = 0x00000008,
- WMI_CSWARP_IE_PRESENT = WMI_CSWRAP_IE_PRESENT, /* deprecated: typo */
- WMI_QSBW_ISE_PRESENT = 0x00000010,
- WMI_CSWRAP_IE_EXTENDED_PRESENT = 0x00000020, /* Added bitmask to verify if the additional information is filled in */
- WMI_CSWRAP_IE_EXT_VER_2_PRESENT = 0x00000040 /* Added bitmask to see if additional info is present in CS wrap IE */
- } WMI_CSA_EVENT_IES_PRESENT_FLAG;
- /* wmi CSA receive event from beacon frame */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_csa_event_fixed_param */
- A_UINT32 i_fc_dur; /* Bit 0-15: FC, Bit 16-31: DUR */
- wmi_mac_addr i_addr1;
- wmi_mac_addr i_addr2;
- /* NOTE: size of array of csa_ie[], xcsa_ie[], and wb_ie[] cannot be
- * changed in the future without breaking WMI compatibility */
- A_UINT32 csa_ie[2];
- A_UINT32 xcsa_ie[2];
- A_UINT32 wb_ie[2];
- union {
- A_UINT32 cswrap_ie; /* use this */
- A_UINT32 cswarp_ie; /* deprecated (typo) */
- };
- A_UINT32 ies_present_flag; /* WMI_CSA_EVENT_IES_PRESENT_FLAG */
- A_UINT32 qsbw_ise;
- /* cswrap_ie_extended:
- * Stores full IEEE80211_ELEMID_CHAN_SWITCH_WRAP information element.
- * The first two octets host the Element ID and Length fields.
- * The IE comprises New Country Subelement (optional and max length 6),
- * Wide Bandwidth Channel Subelement (optional and max length 5) and
- * New Transmit Power Envelope subelement (optional and max length 7)
- * The 4-byte words within cswrap_ie_extended[] use little endian ordering;
- * the first octect of the IE resides in bits 7:0 of cswrap_ie_extended[0],
- * the second octet resides in bits 15:8 of cswrap_ie_extended[0] and so on.
- */
- A_UINT32 cswrap_ie_extended[5];
- /* num_bytes_valid_in_cswrap_ie_ext_ver2:
- * This fixed_param TLV can be followed by a VAR length TLV
- * variable-length byte-array TLV for CS WRAP IE.
- * Since the variable-length byte-array TLVs are always padded, if needed,
- * to contain a multiple of 4 bytes, this field shows how many of the bytes
- * contain valid data, versus how many are only for alignment padding.
- */
- A_UINT32 num_bytes_valid_in_cswrap_ie_ext_ver2;
- /*
- * Add link id, mld address and link address
- * fields for N link CSA support
- */
- A_UINT32 link_id; /* Link id associated with AP */
- wmi_mac_addr mld_mac_address; /* AP mld mac address */
- wmi_mac_addr link_mac_address; /* AP link mac address */
- A_UINT32 mld_mac_address_present :1,
- link_mac_address_present :1,
- link_id_present :1,
- reserved :29;
- /*
- * This initial fixed_param TLV may be followed by the below TLVs:
- * - cs_wrap_ie variable-length byte-array TLV
- */
- } wmi_csa_event_fixed_param;
- #define WMI_GET_MLD_MAC_ADDRESS_PRESENT(mld_mac_address_present) \
- WMI_GET_BITS(mld_mac_address_present, 0, 1)
- #define WMI_SET_MLD_MAC_ADDRESS_PRESENT(mld_mac_address_present, value) \
- WMI_SET_BITS(mld_mac_address_present, 0, 1, value)
- #define WMI_GET_LINK_ADDRESS_PRESENT(link_mac_address_present) \
- WMI_GET_BITS(link_mac_address_present, 1, 1)
- #define WMI_SET_LINK_ADDRESS_PRESENT(link_mac_address_present, value) \
- WMI_SET_BITS(link_mac_address_present, 1, 1, value)
- #define WMI_GET_LINK_ID_PRESENT(link_id_present) \
- WMI_GET_BITS(link_id_present, 2, 1)
- #define WMI_SET_LINK_ID_PRESENT(link_id_present, value) \
- WMI_SET_BITS(link_id_present, 2, 1, value)
- typedef enum {
- WMI_QUIET_EVENT_START = 0,
- WMI_QUIET_EVENT_STOP = 1,
- } WMI_QUIET_EVENT_FLAG;
- /* WMI Quiet receive event from beacon frame */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_quiet_event_fixed_param */
- wmi_mac_addr mld_mac_address; /* AP mld mac address */
- wmi_mac_addr link_mac_address; /* AP link mac address */
- A_UINT32 linkid; /* Link id associated with AP */
- A_UINT32 mld_mac_address_present :1,
- link_mac_address_present :1,
- linkid_present :1,
- reserved :29;
- A_UINT32 quiet_status; /* WMI_QUIET_EVENT_FLAG: quiet start or stop */
- } wmi_quiet_event_fixed_param;
- typedef enum {
- WAL_PEER_MCAST2UCAST_DISABLED = 0,
- WAL_PEER_MCAST2UCAST_DROP_EMPTY = 1, /* Drop the frames if match is not found */
- WAL_PEER_MCAST2UCAST_MCAST_EMPTY = 2, /* Send as mcast if match is not found */
- } WMI_PEER_MCAST2UCAST_MODE;
- typedef enum {
- PKT_PWR_SAVE_NAP_ENABLE = 0x00000001,
- PKT_PWR_SAVE_LS_ENABLE = 0x00000002,
- PKT_PWR_SAVE_DS_ENABLE = 0x00000004,
- PKT_PWR_SAVE_BTCOEX_ENABLE = 0x00000008,
- PKT_PWR_SAVE_FSM_ENABLE = 0x80000000,
- } WMI_PDEV_PKT_PWR_SAVE_LEVEL;
- /** MACROs to get user setting for enabling/disabling Secondary Rate Feature set
- * Bit-0 : Enable/Disable Control for "PPDU Secondary Retry Support"
- * Bit-1 : Enable/Disable Control for "RTS Black/White-listing Support"
- * Bit-2 : Enable/Disable Control for "Higher MCS retry restriction on XRETRY failures"
- * Bit 3-5 : "Xretry threshold" to use
- * Bit 6~31 : reserved for future use.
- */
- #define WMI_PDEV_PARAM_SECONDARY_RATE_ENABLE_BIT_S 0
- #define WMI_PDEV_PARAM_SECONDARY_RATE_ENABLE_BIT 0x00000001
- #define WMI_PDEV_PARAM_RTS_BL_WL_ENABLE_BIT_S 1
- #define WMI_PDEV_PARAM_RTS_BL_WL_ENABLE_BIT 0x00000002
- #define WMI_PDEV_PARAM_HIGHER_MCS_XRETRY_RESTRICTION_S 2
- #define WMI_PDEV_PARAM_HIGHER_MCS_XRETRY_RESTRICTION 0x00000004
- #define WMI_PDEV_PARAM_XRETRY_THRESHOLD_S 3
- #define WMI_PDEV_PARAM_XRETRY_THRESHOLD 0x00000038
- #define WMI_PDEV_PARAM_IS_SECONDARY_RATE_ENABLED(word32) WMI_F_MS(word32, WMI_PDEV_PARAM_SECONDARY_RATE_ENABLE_BIT)
- #define WMI_PDEV_PARAM_IS_RTS_BL_WL_ENABLED(word32) WMI_F_MS(word32, WMI_PDEV_PARAM_RTS_BL_WL_ENABLE_BIT)
- #define WMI_PDEV_PARAM_IS_HIGHER_MCS_XRETRY_RESTRICTION_SET(word32) WMI_F_MS(word32, WMI_PDEV_PARAM_HIGHER_MCS_XRETRY_RESTRICTION)
- #define WMI_PDEV_PARAM_GET_XRETRY_THRESHOLD(word32) WMI_F_MS(word32, WMI_PDEV_PARAM_XRETRY_THRESHOLD)
- /*
- * The WMI_SCHED_MODE_FLAGS enum is used by the following WMI commands:
- *
- * WMI_VDEV_PARAM_SET_DISABLED_SCHED_MODES
- * WMI_PDEV_PARAM_SET_DISABLED_SCHED_MODES
- * WMI_PEER_SCHED_MODE_DISABLE_CMDID
- * WMI_SAWF_SVC_CLASS_CFG_CMDID
- */
- typedef enum {
- WMI_SCHED_MODE_DL_MU_MIMO = 0x00000001,
- WMI_SCHED_MODE_UL_MU_MIMO = 0x00000002,
- WMI_SCHED_MODE_DL_OFDMA = 0x00000004,
- WMI_SCHED_MODE_UL_OFDMA = 0x00000008,
- } WMI_SCHED_MODE_FLAGS;
- typedef enum {
- /** TX chain mask */
- WMI_PDEV_PARAM_TX_CHAIN_MASK = 0x1,
- /** RX chain mask */
- WMI_PDEV_PARAM_RX_CHAIN_MASK, /* 0x2 */
- /** TX power limit for 2G Radio */
- WMI_PDEV_PARAM_TXPOWER_LIMIT2G, /* 0x3 */
- /** TX power limit for 5G Radio */
- WMI_PDEV_PARAM_TXPOWER_LIMIT5G, /* 0x4 */
- /** TX power scale */
- WMI_PDEV_PARAM_TXPOWER_SCALE, /* 0x5 */
- /** Beacon generation mode . 0: host, 1: target */
- WMI_PDEV_PARAM_BEACON_GEN_MODE, /* 0x6 */
- /** Beacon generation mode . 0: staggered 1: bursted */
- WMI_PDEV_PARAM_BEACON_TX_MODE, /* 0x7 */
- /** Resource manager off chan mode .
- * 0: turn off off chan mode. 1: turn on offchan mode
- */
- WMI_PDEV_PARAM_RESMGR_OFFCHAN_MODE, /* 0x8 */
- /** Protection mode 0: no protection 1:use CTS-to-self 2: use RTS/CTS */
- WMI_PDEV_PARAM_PROTECTION_MODE, /* 0x9 */
- /** Dynamic bandwidth 0: disable 1: enable */
- WMI_PDEV_PARAM_DYNAMIC_BW, /* 0xa */
- /** Non aggregrate/ 11g sw retry threshold.0-disable */
- WMI_PDEV_PARAM_NON_AGG_SW_RETRY_TH, /* 0xb */
- /** aggregrate sw retry threshold. 0-disable*/
- WMI_PDEV_PARAM_AGG_SW_RETRY_TH, /* 0xc */
- /** Station kickout threshold (non of consecutive failures).0-disable */
- WMI_PDEV_PARAM_STA_KICKOUT_TH, /* 0xd */
- /** Aggerate size scaling configuration per AC */
- WMI_PDEV_PARAM_AC_AGGRSIZE_SCALING, /* 0xe */
- /** LTR enable */
- WMI_PDEV_PARAM_LTR_ENABLE, /* 0xf */
- /** LTR latency for BE, in us */
- WMI_PDEV_PARAM_LTR_AC_LATENCY_BE, /* 0x10 */
- /** LTR latency for BK, in us */
- WMI_PDEV_PARAM_LTR_AC_LATENCY_BK, /* 0x11 */
- /** LTR latency for VI, in us */
- WMI_PDEV_PARAM_LTR_AC_LATENCY_VI, /* 0x12 */
- /** LTR latency for VO, in us */
- WMI_PDEV_PARAM_LTR_AC_LATENCY_VO, /* 0x13 */
- /** LTR AC latency timeout, in ms */
- WMI_PDEV_PARAM_LTR_AC_LATENCY_TIMEOUT, /* 0x14 */
- /** LTR platform latency override, in us */
- WMI_PDEV_PARAM_LTR_SLEEP_OVERRIDE, /* 0x15 */
- /** LTR-M override, in us */
- WMI_PDEV_PARAM_LTR_RX_OVERRIDE, /* 0x16 */
- /** Tx activity timeout for LTR, in us */
- WMI_PDEV_PARAM_LTR_TX_ACTIVITY_TIMEOUT, /* 0x17 */
- /** L1SS state machine enable */
- WMI_PDEV_PARAM_L1SS_ENABLE, /* 0x18 */
- /** Deep sleep state machine enable */
- WMI_PDEV_PARAM_DSLEEP_ENABLE, /* 0x19 */
- /** RX buffering flush enable */
- WMI_PDEV_PARAM_PCIELP_TXBUF_FLUSH, /* 0x1a */
- /** RX buffering matermark */
- WMI_PDEV_PARAM_PCIELP_TXBUF_WATERMARK, /* 0x1b */
- /** RX buffering timeout enable */
- WMI_PDEV_PARAM_PCIELP_TXBUF_TMO_EN, /* 0x1c */
- /** RX buffering timeout value */
- WMI_PDEV_PARAM_PCIELP_TXBUF_TMO_VALUE, /* 0x1d */
- /** pdev level stats update period in ms */
- WMI_PDEV_PARAM_PDEV_STATS_UPDATE_PERIOD, /* 0x1e */
- /** vdev level stats update period in ms */
- WMI_PDEV_PARAM_VDEV_STATS_UPDATE_PERIOD, /* 0x1f */
- /** peer level stats update period in ms */
- WMI_PDEV_PARAM_PEER_STATS_UPDATE_PERIOD, /* 0x20 */
- /** beacon filter status update period */
- WMI_PDEV_PARAM_BCNFLT_STATS_UPDATE_PERIOD, /* 0x21 */
- /** QOS Mgmt frame protection MFP/PMF 0: disable, 1: enable */
- WMI_PDEV_PARAM_PMF_QOS, /* 0x22 */
- /** Access category on which ARP frames are sent */
- WMI_PDEV_PARAM_ARP_AC_OVERRIDE, /* 0x23 */
- /** DCS configuration */
- WMI_PDEV_PARAM_DCS, /* 0x24 */
- /** Enable/Disable ANI on target */
- WMI_PDEV_PARAM_ANI_ENABLE, /* 0x25 */
- /** configure the ANI polling period */
- WMI_PDEV_PARAM_ANI_POLL_PERIOD, /* 0x26 */
- /** configure the ANI listening period */
- WMI_PDEV_PARAM_ANI_LISTEN_PERIOD, /* 0x27 */
- /** configure OFDM immunity level */
- WMI_PDEV_PARAM_ANI_OFDM_LEVEL, /* 0x28 */
- /** configure CCK immunity level */
- WMI_PDEV_PARAM_ANI_CCK_LEVEL, /* 0x29 */
- /** Enable/Disable CDD for 1x1 STAs in rate control module */
- WMI_PDEV_PARAM_DYNTXCHAIN, /* 0x2a */
- /** Enable/Disable proxy STA */
- WMI_PDEV_PARAM_PROXY_STA, /* 0x2b */
- /** Enable/Disable low power state when all VDEVs are inactive/idle. */
- WMI_PDEV_PARAM_IDLE_PS_CONFIG, /* 0x2c */
- /** Enable/Disable power gating sleep */
- WMI_PDEV_PARAM_POWER_GATING_SLEEP, /* 0x2d */
- /** Enable/Disable Rfkill */
- WMI_PDEV_PARAM_RFKILL_ENABLE, /* 0x2e */
- /** Set Bursting DUR */
- WMI_PDEV_PARAM_BURST_DUR, /* 0x2f */
- /** Set Bursting ENABLE */
- WMI_PDEV_PARAM_BURST_ENABLE, /* 0x30 */
- /** HW rfkill config */
- WMI_PDEV_PARAM_HW_RFKILL_CONFIG, /* 0x31 */
- /** Enable radio low power features */
- WMI_PDEV_PARAM_LOW_POWER_RF_ENABLE, /* 0x32 */
- /** L1SS entry and residency time track */
- WMI_PDEV_PARAM_L1SS_TRACK, /* 0x33 */
- /** set hyst at runtime, requirement from SS */
- WMI_PDEV_PARAM_HYST_EN, /* 0x34 */
- /** Enable/ Disable POWER COLLAPSE */
- WMI_PDEV_PARAM_POWER_COLLAPSE_ENABLE, /* 0x35 */
- /** configure LED system state */
- WMI_PDEV_PARAM_LED_SYS_STATE, /* 0x36 */
- /** Enable/Disable LED */
- WMI_PDEV_PARAM_LED_ENABLE, /* 0x37 */
- /** set DIRECT AUDIO time latency */
- WMI_PDEV_PARAM_AUDIO_OVER_WLAN_LATENCY, /* DEPRECATED */ /* 0x38 */
- /** set DIRECT AUDIO Feature ENABLE */
- WMI_PDEV_PARAM_AUDIO_OVER_WLAN_ENABLE, /* DEPRECATED */ /* 0x39 */
- /** pdev level whal mib stats update enable */
- WMI_PDEV_PARAM_WHAL_MIB_STATS_UPDATE_ENABLE, /* 0x3a */
- /** ht/vht info based on vdev */
- WMI_PDEV_PARAM_VDEV_RATE_STATS_UPDATE_PERIOD, /* 0x3b */
- /** Set CTS channel BW for dynamic BW adjustment feature */
- WMI_PDEV_PARAM_CTS_CBW, /* 0x3c */
- /** Set GPIO pin info used by WNTS */
- WMI_PDEV_PARAM_WNTS_CONFIG, /* 0x3d */
- /** Enable/Disable hardware adaptive early rx feature */
- WMI_PDEV_PARAM_ADAPTIVE_EARLY_RX_ENABLE, /* 0x3e */
- /** The minimum early rx duration, to ensure early rx duration is non-zero */
- WMI_PDEV_PARAM_ADAPTIVE_EARLY_RX_MIN_SLEEP_SLOP, /* 0x3f */
- /** Increasing/decreasing step used by hardware */
- WMI_PDEV_PARAM_ADAPTIVE_EARLY_RX_INC_DEC_STEP, /* 0x40 */
- /** The fixed early rx duration when adaptive early rx is disabled */
- WMI_PDEV_PARAM_EARLY_RX_FIX_SLEEP_SLOP, /* 0x41 */
- /** Enable/Disable bmiss based adaptive beacon timeout feature */
- WMI_PDEV_PARAM_BMISS_BASED_ADAPTIVE_BTO_ENABLE, /* 0x42 */
- /** The minimum beacon timeout duration, to ensure beacon timeout duration is non-zero */
- WMI_PDEV_PARAM_BMISS_BTO_MIN_BCN_TIMEOUT, /* 0x43 */
- /** Increasing/decreasing step used by hardware */
- WMI_PDEV_PARAM_BMISS_BTO_INC_DEC_STEP, /* 0x44 */
- /** The fixed beacon timeout duration when bmiss based adaptive beacon timeout is disabled */
- WMI_PDEV_PARAM_BTO_FIX_BCN_TIMEOUT, /* 0x45 */
- /** Enable/Disable Congestion Estimator based adaptive beacon timeout feature */
- WMI_PDEV_PARAM_CE_BASED_ADAPTIVE_BTO_ENABLE, /* 0x46 */
- /** combo value of ce_id, ce_threshold, ce_time, refer to WMI_CE_BTO_CE_ID_MASK */
- WMI_PDEV_PARAM_CE_BTO_COMBO_CE_VALUE, /* 0x47 */
- /** 2G TX chain mask */
- WMI_PDEV_PARAM_TX_CHAIN_MASK_2G, /* 0x48 */
- /** 2G RX chain mask */
- WMI_PDEV_PARAM_RX_CHAIN_MASK_2G, /* 0x49 */
- /** 5G TX chain mask */
- WMI_PDEV_PARAM_TX_CHAIN_MASK_5G, /* 0x4a */
- /** 5G RX chain mask */
- WMI_PDEV_PARAM_RX_CHAIN_MASK_5G, /* 0x4b */
- /* Set tx chain mask for CCK rates */
- WMI_PDEV_PARAM_TX_CHAIN_MASK_CCK, /* 0x4c */
- /* Set tx chain mask for 1SS stream */
- WMI_PDEV_PARAM_TX_CHAIN_MASK_1SS, /* 0x4d */
- /* Enable/Disable CTS2Self for P2P GO when Non-P2P Client is connected */
- WMI_PDEV_PARAM_CTS2SELF_FOR_P2P_GO_CONFIG, /* 0x4e */
- /** TX power backoff in dB: tx power -= param value
- * Host passes values(DB) to Halphy, Halphy reduces the power table by
- * the values. Safety check will happen in Halphy
- */
- WMI_PDEV_PARAM_TXPOWER_DECR_DB, /* 0x4f */
- /** enable and disable aggregate burst along with duration */
- WMI_PDEV_PARAM_AGGR_BURST, /* 0x50 */
- /** Set the global RX decap mode */
- WMI_PDEV_PARAM_RX_DECAP_MODE, /* 0x51 */
- /** Enable/Disable Fast channel reset */
- WMI_PDEV_PARAM_FAST_CHANNEL_RESET, /* 0x52 */
- /** Default antenna for Smart antenna */
- WMI_PDEV_PARAM_SMART_ANTENNA_DEFAULT_ANTENNA, /* 0x53 */
- /** Set the user-specified antenna gain */
- WMI_PDEV_PARAM_ANTENNA_GAIN, /* 0x54 */
- /** Set the user-specified RX filter */
- WMI_PDEV_PARAM_RX_FILTER, /* 0x55 */
- /** configure the user-specified MCAST tid for managed mcast feature
- * 0-15 is the valid range. 0xff will clear the tid setting */
- WMI_PDEV_SET_MCAST_TO_UCAST_TID, /* 0x56 */
- /** Enable/Disable Proxy sta mode */
- WMI_PDEV_PARAM_PROXY_STA_MODE, /* 0x57 */
- /** configure the mcast2ucast mode for the pdev->peer_mcast.
- * See WMI_PEER_MCAST2UCAST_MODE for possible values */
- WMI_PDEV_PARAM_SET_MCAST2UCAST_MODE, /* 0x58 */
- /** Sets the Mcast buffers for cloning, to support Mcast enhancement */
- WMI_PDEV_PARAM_SET_MCAST2UCAST_BUFFER, /* 0x59 */
- /** Remove the Mcast buffers added by host */
- WMI_PDEV_PARAM_REMOVE_MCAST2UCAST_BUFFER, /* 0x5a */
- /** En/disable station power save state indication */
- WMI_PDEV_PEER_STA_PS_STATECHG_ENABLE, /* 0x5b */
- /** Access category on which ARP frames are sent */
- WMI_PDEV_PARAM_IGMPMLD_AC_OVERRIDE, /* 0x5c */
- /** allow or disallow interbss frame forwarding */
- WMI_PDEV_PARAM_BLOCK_INTERBSS, /* 0x5d */
- /** Enable/Disable reset */
- WMI_PDEV_PARAM_SET_DISABLE_RESET_CMDID, /* 0x5e */
- /** Enable/Disable/Set MSDU_TTL in milliseconds. */
- WMI_PDEV_PARAM_SET_MSDU_TTL_CMDID, /* 0x5f */
- /** Set global PPDU duration limit (usec). */
- WMI_PDEV_PARAM_SET_PPDU_DURATION_CMDID, /* 0x60 */
- /** set txbf sounding period of vap in milliseconds */
- WMI_PDEV_PARAM_TXBF_SOUND_PERIOD_CMDID, /* 0x61 */
- /** Set promiscuous mode */
- WMI_PDEV_PARAM_SET_PROMISC_MODE_CMDID, /* 0x62 */
- /** Set burst mode */
- WMI_PDEV_PARAM_SET_BURST_MODE_CMDID, /* 0x63 */
- /** enable enhanced stats */
- WMI_PDEV_PARAM_EN_STATS, /* 0x64 */
- /** Set mu-grouping policy */
- WMI_PDEV_PARAM_MU_GROUP_POLICY, /* 0x65 */
- /** Channel Hopping Enable */
- WMI_PDEV_PARAM_NOISE_DETECTION, /* 0x66 */
- /** Set Channel Hopping NF threshold in dBm */
- WMI_PDEV_PARAM_NOISE_THRESHOLD, /* 0x67 */
- /** Set PAPRD policy */
- WMI_PDEV_PARAM_DPD_ENABLE, /* 0x68 */
- /** Enable/disable mcast/bcast echo, used by ProxySTA */
- WMI_PDEV_PARAM_SET_MCAST_BCAST_ECHO, /* 0x69 */
- /** ATF enable/disable strict schedule */
- WMI_PDEV_PARAM_ATF_STRICT_SCH, /* 0x6a */
- /** ATF set access category duration, B0-B29 duration, B30-B31: AC */
- WMI_PDEV_PARAM_ATF_SCHED_DURATION, /* 0x6b */
- /** Default antenna polarization */
- WMI_PDEV_PARAM_ANT_PLZN, /* 0x6c */
- /** Set mgmt retry limit */
- WMI_PDEV_PARAM_MGMT_RETRY_LIMIT, /* 0x6d */
- /** Set CCA sensitivity level in dBm */
- WMI_PDEV_PARAM_SENSITIVITY_LEVEL, /* 0x6e */
- /** Set 2G positive and negative Tx power in 0.5dBm units */
- WMI_PDEV_PARAM_SIGNED_TXPOWER_2G, /* 0x6f */
- /** Set 5G positive and negative Tx power in 0.5dBm
- * units */
- WMI_PDEV_PARAM_SIGNED_TXPOWER_5G, /* 0x70 */
- /** Enable/disable AMSDU for tids */
- WMI_PDEV_PARAM_ENABLE_PER_TID_AMSDU, /* 0x71 */
- /** Enable/disable AMPDU for tids */
- WMI_PDEV_PARAM_ENABLE_PER_TID_AMPDU, /* 0x72 */
- /** Set CCA threshold in dBm */
- WMI_PDEV_PARAM_CCA_THRESHOLD, /* 0x73 */
- /** RTS Fixed rate setting */
- WMI_PDEV_PARAM_RTS_FIXED_RATE, /* 0x74 */
- /** Pdev reset */
- WMI_PDEV_PARAM_PDEV_RESET, /* 0x75 */
- /** wapi mbssid offset **/
- WMI_PDEV_PARAM_WAPI_MBSSID_OFFSET, /* 0x76 */
- /** ARP DEBUG source address*/
- WMI_PDEV_PARAM_ARP_DBG_SRCADDR, /* 0x77 */
- /** ARP DEBUG destination address*/
- WMI_PDEV_PARAM_ARP_DBG_DSTADDR, /* 0x78 */
- /** ATF enable/disable obss noise scheduling */
- WMI_PDEV_PARAM_ATF_OBSS_NOISE_SCH, /* 0x79 */
- /** ATF obss noise scaling factor */
- WMI_PDEV_PARAM_ATF_OBSS_NOISE_SCALING_FACTOR, /* 0x7a */
- /**
- * TX power reduction scaling exponent - final tx power is the
- * nominal tx power (A_MIN(reg_pow,ctl,etc..)) divided by
- * 2^(scale exponent). For example:
- * If this scale exponent is 0, the power is unchanged (divided by 2^0)
- * If this factor is 1, the power is scaled down by 2^1, i.e. 3 dB
- * If this factor is 2, the power is scaled down by 2^2, i.e. 6 dB
- * If this factor is 3, the power is scaled down by 2^3, i.e. 9 dB
- */
- WMI_PDEV_PARAM_CUST_TXPOWER_SCALE, /* 0x7b */
- /** ATF enabe/disable dynamically */
- WMI_PDEV_PARAM_ATF_DYNAMIC_ENABLE, /* 0x7c */
- /** Set tx retry limit for control frames. 0 = disable, 31 = max */
- WMI_PDEV_PARAM_CTRL_RETRY_LIMIT, /* 0x7d */
- /** Set propagation delay for 2G / 5G band.
- * The propagation delay is fundamentally a per-peer property, but
- * the target may not support per-peer settings for ack timeouts.
- * This pdev parameter allows the MAC-level ack timeout to be set to
- * a value suitable for the worst-case propagation delay of any peer
- * within that pdev.
- * Units are microseconds.
- */
- WMI_PDEV_PARAM_PROPAGATION_DELAY, /* 0x7e */
- /**
- * Host can enable/disable ANT DIV feature
- * if it's been enabled in BDF
- */
- WMI_PDEV_PARAM_ENA_ANT_DIV, /* 0x7f */
- /** Host can force one chain to select a specific ANT */
- WMI_PDEV_PARAM_FORCE_CHAIN_ANT, /* 0x80 */
- /**
- * Start a cycle ANT self test periodically.
- * In the test, the FW would select each ANT pair
- * one by one, the cycle time could be configured
- * via WMI_PDEV_PARAM_ANT_DIV_SELFTEST_INTVL
- */
- WMI_PDEV_PARAM_ANT_DIV_SELFTEST, /* 0x81 */
- /**
- * Configure the cycle time of ANT self test,
- * the unit is micro second. Per the timer
- * limitation, too small value could be not so
- * accurate.
- */
- WMI_PDEV_PARAM_ANT_DIV_SELFTEST_INTVL, /* 0x82 */
- /**
- * wlan stats observation period, the unit is millisecond.
- * The value of 0 is used to turn off periodic stats report.
- */
- WMI_PDEV_PARAM_STATS_OBSERVATION_PERIOD, /* 0x83 */
- /**
- * Set tx_ppdu_delay[] bin size to specify how many
- * milliseconds each bin of the wmi_tx_stats.tx_ppdu_delay[]
- * histogram represents.
- */
- WMI_PDEV_PARAM_TX_PPDU_DELAY_BIN_SIZE_MS, /* 0x84 */
- /** set wmi_tx_stats.tx_ppdu_delay[] array length */
- WMI_PDEV_PARAM_TX_PPDU_DELAY_ARRAY_LEN, /* 0x85 */
- /** set wmi_tx_stats.tx_mpdu_aggr[] array length */
- WMI_PDEV_PARAM_TX_MPDU_AGGR_ARRAY_LEN, /* 0x86 */
- /** set wmi_rx_stats.rx_mpdu_aggr[] array length */
- WMI_PDEV_PARAM_RX_MPDU_AGGR_ARRAY_LEN, /* 0x87 */
- /** Set TX delay value in TX sch module, unit is microseconds */
- WMI_PDEV_PARAM_TX_SCH_DELAY, /* 0x88 */
- /** Set RTS enable for SIFS bursting */
- WMI_PDEV_PARAM_ENABLE_RTS_SIFS_BURSTING, /* 0x89 */
- /** Set Maximum number of MPDUs in an AMPDU*/
- WMI_PDEV_PARAM_MAX_MPDUS_IN_AMPDU, /* 0x8a */
- /** Enable/disable peer stats info mechanism
- * A zero value disables; a non-zero value enables.
- */
- WMI_PDEV_PARAM_PEER_STATS_INFO_ENABLE, /* 0x8b */
- /** Configure Fast PWR Transition mode
- * 0x0 -> inidcates Fast PWR transition disabled
- * 0x1 -> indicates Static mode enabled
- * 0x2 -> indicates Dynamic mode enabled
- */
- WMI_PDEV_PARAM_FAST_PWR_TRANSITION, /* 0x8c */
- /** Enable/disable radio channel stats mechanism
- * A zero value disables; a non-zero value enables.
- */
- WMI_PDEV_PARAM_RADIO_CHAN_STATS_ENABLE, /* 0x8d */
- /** Enable/disable radio diagnosis feature
- * which allows retrieving the status of radio.
- * A zero value disables; a non-zero value enables.
- */
- WMI_PDEV_PARAM_RADIO_DIAGNOSIS_ENABLE, /* 0x8e */
- /** Enable/Disable mesh mcast traffic
- * 1 - Allow mesh mcast traffic
- * 0 - Disallow mesh mcast traffic
- */
- WMI_PDEV_PARAM_MESH_MCAST_ENABLE, /* 0x8f */
- /** Enable/Disable smart chainmask scheme
- * 1 - Enable smart chainmask scheme
- * 0 - Disable smart chainmask scheme
- */
- WMI_PDEV_PARAM_SMART_CHAINMASK_SCHEME, /* 0x90 */
- /** Enable/Disable alternate chainmask scheme
- * 1 - Enable alternate chainmask scheme
- * 0 - Disable alternate chainmask scheme
- */
- WMI_PDEV_PARAM_ALTERNATIVE_CHAINMASK_SCHEME, /* 0x91 */
- /** User configured parameters for antenna diversity algorithm
- * BIT[25..13]: Probe period (milliseconds units)
- * BIT[12..0]: Stay period (milliseconds units)
- */
- WMI_PDEV_PARAM_ANT_DIV_USRCFG, /* 0x92 */
- /** pdev packet power save levels,
- * refer to WMI_PDEV_PKT_PWR_SAVE_LEVEL
- */
- WMI_PDEV_PARAM_PACKET_POWER_SAVE_LEVEL, /* 0x93 */
- /** Define IOT pattern to be enabled/disabled
- * bit values: 0 - disable, 1 - enable
- * BIT[0..31]: each bit represents an IOT pattern
- * -----
- * Bit 0 - avoid SMPS with certain APs
- * Bits 31:1 - reserved
- */
- WMI_PDEV_PARAM_SET_IOT_PATTERN, /* 0x94 */
- /** ACK timeout - change wireless packet ack timeout configuration,
- * units are microseconds
- */
- WMI_PDEV_PARAM_ACK_TIMEOUT, /* 0x95 */
- /** Number of TX chains to use for a/b/g rates.
- * bit 0~15 : 11b mode TX chain number.
- * bit 16~31 : 11ag mode TX chain number.
- */
- WMI_PDEV_PARAM_ABG_MODE_TX_CHAIN_NUM, /* 0x96 */
- /** Enable/Disable cck txfir override
- * bit 0 - enable (1) or disable (0) CCK tx FIR
- * bits 31:1 - unused / reserved (set to 0)
- */
- WMI_PDEV_PARAM_ENABLE_CCK_TXFIR_OVERRIDE, /* 0x97 */
- /** Enable/Disable DTIM Synth
- * 1- Enable DTIM Synth
- * 0- Disable DTIM Synth
- */
- WMI_PDEV_PARAM_DTIM_SYNTH, /* 0x98 */
- /** Configure auto detect power failure feature.
- * 0 - FW will trigger crash if power failure happens.
- * 1 - FW will send a failure notification to host, and the host
- * framework determines how to respond to the power failure
- * 2 - Silently rejuvenate if power failure occurs.
- * 3 - Feature disabled.
- */
- WMI_PDEV_AUTO_DETECT_POWER_FAILURE, /* 0x99 */
- /** Configure operating voltage corner mode based on phymode and bw.
- * bit 0-1 - operating voltage corner mode for 11a/b.
- * bit 2-3 - operating voltage corner mode for 11g.
- * bit 4-5 - operating voltage corner mode for 11n, 20MHz, 1x1.
- * bit 6-7 - operating voltage corner mode for 11n, 20MHz, 2x2.
- * bit 8-9 - operating voltage corner mode for 11n, 40MHz, 1x1.
- * bit 10-11 - operating voltage corner mode for 11n, 40MHz, 2x2.
- * bit 12-13 - operating voltage corner mode for 11ac, 20MHz, 1x1.
- * bit 14-15 - operating voltage corner mode for 11ac, 20MHz, 2x2.
- * bit 16-17 - operating voltage corner mode for 11ac, 40MHz, 1x1.
- * bit 18-19 - operating voltage corner mode for 11ac, 40MHz, 2x2.
- * bit 20-21 - operating voltage corner mode for 11ac, 80MHz, 1x1.
- * bit 22-23 - operating voltage corner mode for 11ac, 80MHz, 2x2.
- * bit 24-25 - operating voltage corner mode for 11ac, 160MHz, 1x1.
- * bit 26-27 - operating voltage corner mode for 11ac, 160MHz, 2x2.
- * ---------------------------------------------
- * 00 - Static voltage corner SVS
- * 01 - static voltage corner LOW SVS
- * 10 - Dynamic voltage corner selection based on TPUT
- * 11 - Dynamic voltage corner selection based on TPUT and Tx Flush counters
- */
- WMI_PDEV_UPDATE_WDCVS_ALGO, /* 0x9a */
- /* Enable/Disable data stall detection */
- WMI_PDEV_PARAM_DATA_STALL_DETECT_ENABLE, /* 0x9b */
- /* GCMP Support indication to FW */
- WMI_PDEV_PARAM_GCMP_SUPPORT_ENABLE, /* 0x9c */
- /** Enable/Disable chain selection optimization for one chain dtim
- * non-zero - Enable optimization and use this non-zero value as the
- * chain imbalance threshold for optimization to kick in
- * (units = dB)
- * 0- Disable optimization
- */
- WMI_PDEV_PARAM_1CH_DTIM_OPTIMIZED_CHAIN_SELECTION,/* 0x9d */
- /*
- * Override default FW behavior and explicitly enable / disable
- * the use of CCK for PPDU transmissions.
- *
- * When CCK transmissions are disabled, the default OFDM legacy
- * rate will be used instead.
- */
- WMI_PDEV_PARAM_CCK_TX_ENABLE, /* 0x9e */
- /*
- * Set the user-specified antenna gain, but in 0.5 dB units.
- * This is a finer-granularity version of WMI_PDEV_PARAM_ANTENNA_GAIN.
- * E.g. to set a gain of 15.5 dB, a value of 31 could be provided as the
- * value accompanying the PDEV_PARAM_ANTENNA_GAIN_HALF_DB parameter type.
- */
- WMI_PDEV_PARAM_ANTENNA_GAIN_HALF_DB, /* 0x9f */
- /*
- * Global Enable/Disable control for Secondary Retry Feature Set
- *
- * Bit-0 : Enable/Disable Control for "PPDU Secondary Retry Support"
- * Bit-1 : Enable/Disable Control for "RTS Black/White-listing Support"
- * Bit-2 : Enable/Disable Control for "Higher MCS retry restriction on XRETRY failures"
- * Bit 3-5: "Xretry threshold" to use
- */
- WMI_PDEV_PARAM_SECONDARY_RETRY_ENABLE, /* 0xA0 */
- /** Set global uplink triggered PPDU duration limit (usec). */
- WMI_PDEV_PARAM_SET_UL_PPDU_DURATION, /* 0xA1 */
- /** Set target buffer status report trigger interval (ms) */
- WMI_PDEV_PARAM_SET_UL_BSR_TRIG_INTERVAL, /* 0xA2 */
- /** Use simplified equal RU allocation for DL and UL OFDMA */
- WMI_PDEV_PARAM_EQUAL_RU_ALLOCATION_ENABLE, /* 0xA3 */
- /** Enable/disable MWS-COEX 4G (LTE) Quick FTDM.
- * 0 - Don't allow quick FTDM Policy (Default)
- * 1 - Allow quick FTDM policy.
- */
- WMI_PDEV_PARAM_MWSCOEX_4G_ALLOW_QUICK_FTDM, /* 0xA4 */
- /** Set MWS-COEX 5G-NR power limit.
- * 0: Don't apply user specific power limit,
- * use internal power limit (Default)
- * 1-2: invalid value (ignored)
- * 3-21: apply the specified value as the external power limit, in dBm
- * >21: invalid value (ignored)
- */
- WMI_PDEV_PARAM_MWSCOEX_SET_5GNR_PWR_LIMIT, /* 0xA5 */
- /** Set max msdus available for cong ctrl in target */
- WMI_PDEV_PARAM_SET_CONG_CTRL_MAX_MSDUS, /* 0xA6 */
- /*
- * Configures the Estimated Throughput Calculation indication (802.11mc) settings.
- * The accompanying A_UINT32 parameter, in units of seconds, specifies how often FW needs to send the ESP estimation indication to the host.
- * Value 0: Disable this feature
- * Non zero Value: Periodicity (seconds)
- */
- WMI_PDEV_PARAM_ESP_INDICATION_PERIOD, /* 0xA7 */
- /*
- * Enable/Disable periodic peer CFR capture
- * WMI_PEER_CFR_CAPTURE_ENABLE - Enable per peer periodic CFR capture
- * WMI_PEER_CFR_CAPTURE_DISABLE - Disable per peer periodic CFR capture
- */
- WMI_PDEV_PARAM_PER_PEER_PERIODIC_CFR_ENABLE,
- /*
- * Set the base timer for the periodic CFR capture. By default this is 10ms.
- * The period ('periodicity' param in wmi_peer_cfr_capture_cmd) of
- * CFR measurement of other peers will be in multiples of this base timer.
- * The unit is in milliseconds.
- */
- WMI_PDEV_PARAM_PERIODIC_CFR_BASE_TIMER,
- /*
- * Once the periodic capture is enabled using
- * WMI_PDEV_PARAM_PER_PEER_PERIODIC_CFR_ENABLE, the timer starts running in
- * the target. This parameter will ensure that the timer stops if there are
- * no active peers in the capture list. Once the peers are added again to
- * the capture list, the timer will not start again. The timer has to be
- * started again using WMI_PDEV_PARAM_PER_PEER_PERIODIC_CFR_ENABLE.
- * Value 1: Enable this feature
- * Value 0: Disable this feature
- */
- WMI_PDEV_PARAM_ENABLE_OPTIMIZED_PERIODIC_CFR_TIMER,
- /*
- * Configures a portion of the Estimated Service Params indication
- * (802.11mc) settings, which together specify estimated throughput.
- * The accompanying A_UINT32 parameter is the ESP BA WINDOW size advertised
- * Value 0: Disable this feature
- * Non zero Value: ESP BA WINDOW size
- */
- WMI_PDEV_PARAM_ESP_BA_WINDOW,
- /*
- * Configures a portion of the Estimated Service Params indication
- * (802.11mc) settings, which together specify estimated throughput.
- * The accompanying A_UINT32 parameter is the air time fraction to be
- * advertised in the ESP IE
- * Value 0: Disable this feature
- * Non zero Value: Air time fraction in percentage
- */
- WMI_PDEV_PARAM_ESP_AIRTIME_FRACTION,
- /*
- * Configures a portion of the Estimated Service Params indication
- * (802.11mc) settings, which together specify estimated throughput.
- * The accompanying A_UINT32 parameter specifies PPDU duration in units
- * of milliseconds.
- * Value 0: Disable this feature
- * Non zero Value: PPDU duration in milliseconds
- */
- WMI_PDEV_PARAM_ESP_PPDU_DURATION,
- /*
- * Enable/Disable NOL(Non Occupancy list) in firmware
- * 1- Use NOL in firmware
- * 0- Don't use NOL in firmware
- */
- WMI_PDEV_PARAM_USE_NOL,
- /*
- * Allow / Not Allow RU26 in any user's RU allocation field in UL OFDMA
- * trigger frames sent by AP
- * 1 - Allow RU26
- * 0 - Do not allow RU26
- */
- WMI_PDEV_PARAM_UL_RU26_ALLOWED,
- /*
- * Enable/Disable sub channel marking
- * 1 - Enable sub channel marking
- * 0 - Disable sub channel marking (default value)
- */
- WMI_PDEV_PARAM_SUB_CHANNEL_MARKING,
- /*
- * Enable/Disable/Set MGMT_TTL in milliseconds.
- * non_zero - Enable, with the specified value
- * 0 - Disable
- */
- WMI_PDEV_PARAM_SET_MGMT_TTL,
- /*
- * Enable/Disable/Set PROBE_RESP_TTL in milliseconds.
- * non_zero - Enable, with the specified value
- * 0 - Disable
- */
- WMI_PDEV_PARAM_SET_PROBE_RESP_TTL,
- /*
- * TBTT_CTRL_CFG
- * BITS 0 - 2 (refer to WMI_TBTT_CTRL_CFG enum)
- * 0 - DEFAULT -> HW_TBTT
- * 1 - SW_TBTT -> HW_TBTT disabled,
- * software would truncate BURST near TBTT
- * 2 - IGNORE_TBTT
- *
- * BITS 3 - 31 Reserved, must be set to 0x0
- */
- WMI_PDEV_PARAM_SET_TBTT_CTRL,
- /*
- * BITS0 ~1 (refer to enum)
- * 0 - default --> always update
- * 1 - ignore to update
- * 2 - update if larger than threshould
- * 3 - update if less or equal than threshould
- *
- * BITS 2 ~ 31 Threshould
- */
- WMI_PDEV_PARAM_NAV_OVERRIDE_CONFIG,
- /* Set global MU PPDU duration for DL (usec units) */
- WMI_PDEV_PARAM_SET_MU_PPDU_DURATION,
- /*
- * Enable / disable test mode configuration.
- * By default FW will always send triggers dynamically (mix of BSR/Basic).
- * The below testmode are only used for certain tests.
- * A value of 1 in a given bit enables corresponding test mode.
- * bit | test mode
- * ---------------
- * 0 | FW only sends BSR triggers.
- * 1 | FW only sends Basic triggers.
- * 2 | If set, FW enables MU-RTS trigger.
- * | If cleared, FW uses implementation-specific internal default setting.
- * 3 | FW enables unicast embedded trigger in HE MU PPDU.
- * 4-31| reserved.
- */
- WMI_PDEV_PARAM_SET_TEST_CMD_UL_TRIGGER_TYPE_ENABLE,
- /*
- * Configure test command to set LSIG len.
- * Value 0: Dynamic LSIG based on STA's qdepth.
- * Non zero Value: LSIG length to be configured
- * as part of trigger frame.
- * bit |
- * ---------------
- * 0 - 30 | Bits storing the host supplied <value>.
- * 31 | If set: The legitimate value closest to the value specified in
- * | in bits 30:0 is directly set in UL len in trigger frame.
- * | The FW performs calculations to determine which legitimate
- * | value is closest to the specified value, if the specified
- * | value is not already legitimate.
- * | If not set: The value in lower bits is the duration (in ms),
- * | from which the UL len is derived.
- * | Example: if host sets 2000 (2ms), then UL Len in trigger
- * | will be derived to accommodate the given duration.
- */
- WMI_PDEV_PARAM_SET_TEST_CMD_UL_TRIGGER_LSIG_LEN,
- /*
- * Configure test cmd for fixed rate setting used for UL Trigger
- * (only Basic/BSR triggers).
- * The top nibble is used to select which format to use for encoding
- * the rate specification: 0xVXXXXXXX, V must be 1 for the UL
- * format.
- * If V == 0b0001: format is: 0x1000RRRR.
- * This will be output of WMI_ASSEMBLE_RATECODE_V1
- *
- */
- WMI_PDEV_PARAM_SET_TEST_CMD_UL_TRIGGER_FIXED_RATE,
- /*
- * Configure test command to set the mac padding duration.
- * 0 - FW set Mac Padding to 0us
- * 1 - FW set Mac Padding to 8us
- * 2 - FW set Mac Padding to 16us
- */
- WMI_PDEV_PARAM_SET_TEST_CMD_UL_MAC_PADDING,
- /*
- * Configure test command to set the fc duration in BSR trigger frame.
- * value 0 - FW calculates the duration (default).
- * Non zero Value: Duration to be configured.
- */
- WMI_PDEV_PARAM_SET_TEST_CMD_UL_BSR_FC_DURATION,
- /* Parameter used for configuring TWT scheduling properties
- * bit | config_mode
- * -----------------
- * 0 | Disables DL MU for TWT peers within TWT SP
- * 1 | Disables UL MU for TWT peers within TWT SP
- * 2 | Disables scheduling from WMM sched context for TWT peers
- * 3 | If set, FW only sends Basic triggers in TWT SP.
- * 4-31| reserved.
- */
- WMI_PDEV_PARAM_SET_TEST_CMD_TWT_SCHED_CONFIG,
- /* Parameter used to configure OBSS Packet Detect threshold
- * for Non-SRG / SRG based Spatial Reuse feature.
- * (SRG = Spatial Reuse Group)
- * The accepted values are in between 0x00 and 0xFF, inclusive.
- * The parameter value is programmed into the appropriate spatial reuse
- * register, to specify how low the background signal strength from
- * neighboring BSS cells must be, for this AP to employ spatial reuse.
- *
- * The value of the parameter is compared against the OBSS RSSI in dB.
- * It is a 8-bit value whose
- * range is -128 to 127 (after two's complement operation).
- * For example, if the parameter value is 0xF5, the target will
- * allow spatial reuse if the RSSI detected from other BSS
- * is below -10 dB.
- * Similarly, if the parameter value is 0x0A, the target will
- * allow spatial reuse only if the RSSI detected from neighboring
- * BSS cells is no more than 10 dB.
- *
- * If Bit 29 is set, then input value will be in dBm. This is used
- * for chipsets that uses dBm for comparison across MAC/Phy blocks.
- * Older chipsets support input in dB units. For newer chipsets, dBm
- * units will be used.
- * The host will use the WMI_SERVICE_SRG_SRP_SPATIAL_REUSE_SUPPORT
- * service ready bit to differentiate between providing input as dB or dBm.
- *
- * bit | purpose
- * -----------------
- * 0 - 7 | Param Value for non-SRG based Spatial Reuse
- * 8 - 15| Param value for SRG based Spatial Reuse
- * 16 - 28| Reserved
- * 29 | Param value is in dBm units rather than dB units
- * 30 | Enable/Disable SRG based spatial reuse.
- * | If set to 0, ignore bits 8-15.
- * 31 | Enable/Disable Non-SRG based spatial reuse.
- * | If set to 0, ignore bits 0-7.
- */
- WMI_PDEV_PARAM_SET_CMD_OBSS_PD_THRESHOLD,
- /* Parameter used for enabling/disabling non wlan coex from boot */
- WMI_PDEV_PARAM_ENABLE_NON_WLAN_COEX_FROM_BOOT,
- /* Parameter used to configure OBSS Packet Detection per Access Category
- * for SRP based and OBSS_PD based spatial reuse feature.
- * (SRP = Spatial Reuse Parameter)
- * Based on the bits set, the corresponding Access Category Queues will have
- * spatial reuse enabled / disabled.
- * bit | AC
- * ------------
- * 0 | BK for SRG/Non-SRG
- * 1 | BE for SRG/Non-SRG
- * 2 | VI for SRG/Non-SRG
- * 3 | VO for SRG/Non-SRG
- * 4 - 15 | Reserved
- * 16 | BK for SRP
- * 17 | BE for SRP
- * 18 | VI for SRP
- * 19 | VO for SRP
- * 20 - 31 | Reserved
- */
- WMI_PDEV_PARAM_SET_CMD_OBSS_PD_PER_AC,
- /*
- * Parameter used to enable/disable FW control of MU-EDCA and AP back-off
- * parameters.
- * If set to zero, FW mode is disabled; if set to 1, FW mode is enabled.
- * Default setting is to have it enabled, and user can disable it in
- * favor of manual mode or host control mode.
- */
- WMI_PDEV_PARAM_ENABLE_FW_DYNAMIC_HE_EDCA,
- /*
- * Parameter used to set default 6 GHz rate.
- * Applies to all non data transmissions in 6 GHz unless
- * overwritten by respective VDEV params.
- */
- WMI_PDEV_PARAM_DEFAULT_6GHZ_RATE,
- /*
- * Configures the duration (in seconds) to delay the channel avoidance
- * indication at WLAN firmware before indicating it to WLAN host,
- * when WWAN (LTE/5GNR) PCC is in conflict due to WWAN-WLAN coexistence.
- * Default value is 60 seconds.
- * If set to zero, FW sends channel avoidance indcation immediately to Host.
- */
- WMI_PDEV_PARAM_MWSCOEX_PCC_CHAVD_DELAY,
- /*
- * Configures the duration (in seconds) to delay the channel avoidance
- * indication at WLAN firmware before indicating it to WLAN host,
- * when WWAN (LTE/5GNR) SCC is in conflict due to WWAN-WLAN coexistence.
- * Default value is 120 seconds.
- * If set to zero, FW sends channel avoidance indcation immediately to Host.
- */
- WMI_PDEV_PARAM_MWSCOEX_SCC_CHAVD_DELAY,
- /*
- * Parameter used to set ageout timer value from host (units = seconds).
- * If not set, FW use default value 2 seconds.
- * ageout time: the time upto which DFS channel information such as
- * beacon found is remembered
- */
- WMI_PDEV_PARAM_SET_DFS_CHAN_AGEOUT_TIME,
- /* Parameter used for enabling/disabling xlna bypass for SAP mode*/
- WMI_PDEV_PARAM_SET_SAP_XLNA_BYPASS,
- /* Parameter used to enable/disable SRP feature */
- WMI_PDEV_PARAM_ENABLE_SRP,
- /* Parameter used to enable/disable SR prohibit feature */
- WMI_PDEV_PARAM_ENABLE_SR_PROHIBIT,
- /*
- * Parameter used to enable/disable UL OFDMA mBSSID support for
- * trigger frames. It is disabled by default.
- * bit | config_mode
- * -----------------
- * 0 | Enable/Disable mBSSID trigger support for basic triggers.
- * 1 | Enable/Disable mBSSID trigger support for BSR triggers.
- * 2 | Enable/Disable mBSSID trigger support for MU RTS.
- * 3 | Enable/Disable mBSSID trigger support for UL MUMIMO triggers.
- */
- WMI_PDEV_PARAM_ENABLE_MBSSID_CTRL_FRAME,
- /*
- * Parameter to set preamble punctured band as a bitmask, i.e.
- * which 20MHz in the 80MHz bandwidth or 40MHz in 160MHz bandwidth.
- * E.g. if first 20MHz is the primary and preamble puncturing is
- * desired for 3rd 20Mhz, then the host will send 0x0100.
- * FW doesn't expect the primary 20MHz to be punctured.
- * This param is required only for 11ax release.
- */
- WMI_PDEV_PARAM_SET_PREAM_PUNCT_BW,
- /*
- * Parameter used to set the Margin dB value to be included for calculating
- * the spatial reuse value in common info field of the UL Trigger frame.
- * Accepted value as per Spec are 0 to 5 dB (inclusive).
- */
- WMI_PDEV_PARAM_SR_TRIGGER_MARGIN,
- /* Param to enable/disable PCIE HW ILP */
- WMI_PDEV_PARAM_PCIE_HW_ILP,
- /*
- * Configure the TXTD_START_TIMESTAMP parameters
- * The timestamp units are nanoseconds.
- * This parameter can be used to adjust at what point the TXTD module
- * will start operating after the STA connects to an AP.
- */
- WMI_PDEV_PARAM_SET_TXTD_START_TIMESTAMP,
- /*
- * Parameter to configure and enable/disable features for mesh usecases
- * bit | config_mode
- * -----------------
- * 0 | Set to 1 to disable BSSID based spatial reuse.
- * 1-31 | Reserved.
- */
- WMI_PDEV_PARAM_SET_MESH_PARAMS,
- /* Param to enable low latency mode */
- WMI_PDEV_PARAM_LOW_LATENCY_SCHED_MODE,
- /* Param to enable per USERPD SSR - for MultiPD enabled chips */
- WMI_PDEV_PARAM_MPD_USERPD_SSR,
- /*
- * Param to disable Hardware Assist feature,
- * i.e. Disables HW feature that reconstructs the PPDU
- * by picking failing MPDUs from prior FES attempt.
- */
- WMI_PDEV_PARAM_DISABLE_HW_ASSIST,
- /*
- * Param to Enable/Disable Tx on DFS for Scan Radio RDP
- * Send MGMT frames on the DFS channel before Tx on the said channel
- * when in monitor mode.
- * Scan Radio RDP should do Tx on DFS channel based on available
- * Tx frame on DFS without doing CAC.
- * Host should ensure to send this param only for Scan Radio RDP.
- * This param used to inform Scan Radio Supports Tx on DFS channel.
- */
- WMI_PDEV_PARAM_SCAN_RADIO_TX_ON_DFS,
- /*
- * Param to configure Minimum OBSS ppdu time below which
- * spatial reuse will not happen over the TXOP duration of the OBSS frame.
- * If the incoming OBSS frame ppdu duration is greater then the value
- * configured, then spatial reuse can happen over the OBSS PPDU.
- * The value is configured in microseconds.
- */
- WMI_PDEV_PARAM_OBSS_MIN_DURATION_CHECK_FOR_SR,
- /*
- * Param to Enable/Disable Truncate SR feature.
- * PPDUs transmitted using SR opportunity will be truncated at the end
- * of OBSS frame duration and will not extend beyond.
- */
- WMI_PDEV_PARAM_TRUNCATE_SR,
- /* Parameter used to configure separate NON_SRG/SRG OBSS PD threshold for
- * for Control Frame.
- * (SRG = Spatial Reuse Group)
- * The accepted values are in between 0x00 and 0xFF, inclusive.
- * The parameter value is checked against the RSSI of the OBSS Control
- * frame. If RSSI is below the parameter value, then the Control frame is
- * aborted and NAV is ignored. Separate OBSS PD threshold for Control frame
- * is added to account for the higher TX power used for such control frames
- * when compared with data frames.
- *
- * The input value will be interpreted as a signed value in dBm units.
- *
- * The values will be reflected in the registers only if
- * SRG / non-srg based spatial reuse is enabled via
- * WMI_PDEV_PARAM_SET_CMD_OBSS_PD_THRESHOLD cmd.
- * bit | purpose
- * -----------------
- * 0 - 7 | Param Value for non-srg OBSS PD threshold for non-SRG
- * | control frames
- * 8 - 15| Param Value for srg OBSS PD threshold for SRG control frames
- * 16 - 29| Reserved
- * 30 | Enable/Disable separate SRG based spatial reuse for OBSS
- * | control frames.
- * | If set to 0, ignore bits 8-15.
- * 31 | Enable/Disable separate non-SRG based spatial reuse for OBSS
- * | control frames.
- * | If set to 0, ignore bits 0-7.
- */
- WMI_PDEV_PARAM_CTRL_FRAME_OBSS_PD_THRESHOLD,
- /* Param to configure the access category for the TWT queue */
- WMI_PDEV_PARAM_TWT_AC_CONFIG,
- /*
- * TX xretry extension parameter to allow product specific adjustment.
- * I.e. multiply the xretry counter by N% for a requirement from framework.
- */
- WMI_PDEV_PARAM_PDEV_STATS_TX_XRETRY_EXT,
- /*
- * Per PDEV level, set the highest rate cap allowed.
- * The accepted input values NSS are between 1-8, inclusive.
- * The accepted input values MCS are between 0-15, inclusive.
- * FW will use the input values as is.
- * The rate cap is specified in NSS, MCS format each 4bits.
- * i.e., NSS and MCS combined as shown below:
- * b'0-b'7 indicate the NSS (NSS value can be from 1-8)
- * b'8-b'15 indicate the MCS (MCS value can be from 0-15)
- * b'16 Enable or disable nss cap
- * b'17 Enable or disable mcs cap
- * b'18 To determine the direction for caping DL_direction
- * b'19 To determine the direction for caping UL_direction
- *
- * For backwards compatibility, if bits 18+19 are both
- * cleared, then the rate cap applies to both DL and UL.
- * To summarize:
- * bit 19 | bit 18 | rate cap applied
- * -------+--------+------------------
- * 0 | 0 | cap rates only for DL
- * 0 | 1 | cap rates only for DL
- * 1 | 0 | cap rates only for UL
- * 1 | 1 | cap rates for both UL and DL
- */
- WMI_PDEV_PARAM_RATE_UPPER_CAP,
- /*
- * Per PDEV level, set number of MCS to be dropped based
- * on configured retries.
- * bit | config_mode
- * -----------------
- * 0-7 | param value for number MCS to be dropped
- * 8-15| param value for excess retries
- * 16 | If set to 0, number of MCS to be dropped is disabled, i.e.
- * | fall back to default mode.
- * | The default value of MCS to be dropped is 1.
- * 17 | if set to 0, retries is disabled/use default retries.
- * | The default value of retries is 3.
- */
- WMI_PDEV_PARAM_SET_RATE_DROP_DOWN_RETRY_THRESH,
- /*
- * Param value to configure min/max probe interval for MCS of current NSS.
- * If probe interval expired, ratectrl will probe for MCS of current NSS.
- * If probe was successful, rate control updates the probe time with a
- * min of probe interval.
- * If probe failed for MCS of current NSS, rate control updates the probe
- * time by multiplying the probe period with 2, which is not greater than
- * max probe interval.
- * units = milliseconds
- * bits | config_mode
- * 0-15 | minimum probe time for MCS
- * 16-31| maximum probe time for MCS
- */
- WMI_PDEV_PARAM_MIN_MAX_MCS_PROBE_INTERVAL,
- /* Param value to configure min/max probe interval for NSS.
- * Rate control will probe for alternate NSS if probe time is expired.
- * If probe for an alternate NSS was successful, rate control updates
- * the probe time with a min of probe interval.
- * If probe failed for alternate NSS, rate control updates the probe time
- * by multiplying the probe period with 2, which is not greater than
- * max probe interval.
- * units = milliseconds
- * bits | config_mode
- * 0-15 | minimum probe time for alternate NSS
- * 16-32| maximum probe time for alternate NSS
- */
- WMI_PDEV_PARAM_MIN_MAX_NSS_PROBE_INTERVAL,
- /* Param to enable/disable probing on all BW */
- WMI_PDEV_PARAM_EN_PROBE_ALL_BW,
- /* Param to enable/disable updating scrambler seed feature */
- WMI_PDEV_PARAM_EN_UPDATE_SCRAM_SEED,
- /*
- * Param to set the GPIO Drive Configuration value for
- * Smart Antenna Parallel Mode
- */
- WMI_PDEV_PARAM_SA_PARALLEL_MODE_GPIO_DRIVE_CFG,
- /*
- * Param to disable LPI antenna optimizations
- * In 6G LPI mode, additional antenna optimizations are done to
- * improve range. Param is provided to disable the added
- * optimizations.
- */
- WMI_PDEV_PARAM_DISABLE_LPI_ANT_OPTIMIZATION,
- /*
- * Param to configure exclusive RSID range for 11az TB ranging.
- * RSID's are subset of total AID space and must not be used
- * for any other purpose by Host. FW uses these IDs for trigger
- * based ranging.
- */
- WMI_PDEV_PARAM_RTT_11AZ_RSID_RANGE,
- /*
- * Disable the indicated DL and UL scheduler for the PDEV.
- *
- * This command is not supported in STA mode.
- *
- * A value of 1 in a given bit position disables the corresponding mode,
- * and a value of 0 enables the mode. The WMI_SCHED_MODE_FLAGS enum defines
- * the bit positions for each mode.
- *
- * A single 32 bit value is used to store the following configuration
- * bitmap.
- *
- * This command differs from WMI_VDEV_PARAM_SET_HEMU_MODE and
- * WMI_VDEV_PARAM_SET_EHT_MU_MODE in that it is intended for use during
- * normal AP operation, and will never cause a VAP restart or other
- * capability bit modification. It simply controls the scheduler
- * behavior.
- *
- * bit | sched mode
- * ---------------
- * 0 | DL MU-MIMO
- * 1 | UL MU-MIMO
- * 2 | DL OFDMA
- * 3 | UL OFDMA
- * 4..31 | RESERVED
- */
- WMI_PDEV_PARAM_SET_DISABLED_SCHED_MODES,
- /*
- * Override default FW behavior and explicitly enable / disable
- * to allow frames without encryption when no encryption is set.
- *
- */
- WMI_PDEV_PARAM_BYPASS_ENCRYPTION,
- /*
- * Param to Enable/Disable scan blanking feature on the Scan Radio
- * Host should ensure to send this param only for Scan Radio
- * The WMI_SCAN_BLANKING_MODE enum specifies the possible values for this parameter.
- * Based on the received input, the scan blanking feature will be carried out as explained in the enum WMI_SCAN_BLANKING_MODE
- */
- WMI_PDEV_PARAM_SET_SCAN_BLANKING_MODE,
- /*
- * Parameter to enable/disable Multi-Channel Concurrency low latency mode
- * bit | config_mode
- * -----------------
- * 0 | 0:disable, 1:enable.
- * 1-31 | Reserved.
- */
- WMI_PDEV_PARAM_SET_CONC_LOW_LATENCY_MODE,
- /*
- * Parameter to enable/disable low power listen mode
- * bit | config_mode
- * -----------------
- * 0 | 0:disable, 1:enable.
- * 1-31 | Reserved.
- */
- WMI_PDEV_PARAM_LPL_SETTING,
- /** Set Probe Resp retry limit */
- WMI_PDEV_PARAM_PROBE_RESP_RETRY_LIMIT,
- /*
- * Parameter for configure PCIE
- *
- * 0 - Default Value(FW Control).
- * 1 - Force PCIE Gen Speed and Lane Width to maximum supported value.
- */
- WMI_PDEV_PARAM_PCIE_CONFIG,
- /** CTS timeout - change wireless packet cts timeout configuration,
- * units are microseconds
- */
- WMI_PDEV_PARAM_CTS_TIMEOUT,
- /** Slot time - change wireless packet slot time value dynamically,
- * units are microseconds
- */
- WMI_PDEV_PARAM_SLOT_TIME,
- /** VO dedicated time -
- * allocate dedicated time slots for VO access category across all
- * ATF groups in a pdev.
- * Note :
- * 1. Per AC airtime per group is already available through
- * ATF WMM WMI commands
- * 2. The dedicated time slot is applicable per second
- * 3. Units are in milli-seconds
- */
- WMI_PDEV_PARAM_ATF_VO_DEDICATED_TIME,
- /** VI dedicated time -
- * allocate dedicated time slots for VI access category across all
- * ATF groups in a pdev.
- * Note :
- * 1. Per AC airtime per group is already given through ATF WMM WMI cmds
- * 2. The dedicated time slot is applicable per second
- * 3. Units are in milli-seconds
- */
- WMI_PDEV_PARAM_ATF_VI_DEDICATED_TIME,
- /** Parameter used for enabling/disabling RFA toggle for SAP mode */
- WMI_PDEV_PARAM_SET_SAP_RFA_TOGGLE,
- /** Parameter to set PDEV level UL OFDMA RTD */
- WMI_PDEV_PARAM_UL_OFDMA_RTD,
- /** Parameter to enable/disable tid0 and tid3 mapping to work 3 Link MLO */
- WMI_PDEV_PARAM_TID_MAPPING_3LINK_MLO,
- /** Parameter to enable/disable small OFDMA M-RUs **/
- WMI_PDEV_PARAM_ENABLE_SMALL_MRU,
- /** Parameter to enable/disable large OFDMA M-RUs **/
- WMI_PDEV_PARAM_ENABLE_LARGE_MRU,
- /** Parameter to enable/disable delayed LMR feedback.
- * Note: Delayed LMR feedback is supported only up to two ranging peers to
- * enable Location certification
- * 0 - Immediate LMR feedback is enabled for all ranging peers.
- * 1 (non zero) - delayed LMR feedback is enabled. Third peer onward will
- * default to immediate LMR feedback.
- **/
- WMI_PDEV_PARAM_ENABLE_DELAYED_LMR_FEEDBACK,
- /* DFS_RADAR_MASK: Radar mask setting programmed in HW registers.
- * bit | config_mode
- * -----------------------
- * 0 - 15 | Each bit represents a 20 MHz portion of the channel.
- * | 0-Unmasked 1-Masked
- * 16 - 31 | Reserved.
- * Bit 0 represents the highest 20 MHz portion within the channel.
- * For example...
- * For a 80 MHz channel, bit0 = highest 20 MHz, bit3 = lowest 20 MHz
- * For a 320 MHz channel, bit0 = highest 20 MHz, bit15 = lowest 20 MHz
- */
- WMI_PDEV_PARAM_DFS_RADAR_MASK,
- /** PWR_REDUCTION_IN_QUARTER_DB:
- * Reduce final Tx power (derived after all considerations)
- * by specified value in units of 0.25 dB.
- * E.g. a value of 4 will result in a 1.0 dB tx power reduction.
- */
- WMI_PDEV_PARAM_PWR_REDUCTION_IN_QUARTER_DB,
- WMI_PDEV_PARAM_ENABLE_CHIPSET_LOGGING,
- /** SCAN MODE:
- * bit | scan_mode
- * -----------------
- * 0 | SISO SCAN - 1x1 scan
- * | If this bit is 0, then use default scan (NxN).
- * 1-31 | Reserved.
- */
- WMI_PDEV_PARAM_SCAN_MODE,
- /** configure datastall consecutive no ack interval (units = ms) */
- WMI_PDEV_PARAM_DSTALL_CONSECUTIVE_TX_NO_ACK_INTERVAL,
- /** configure datastall consecutive no ack threshold */
- WMI_PDEV_PARAM_DSTALL_CONSECUTIVE_TX_NO_ACK_THRESHOLD,
- WMI_PDEV_PARAM_MGMT_SRNG_REAP_EVENT_THRESHOLD,
- } WMI_PDEV_PARAM;
- #define WMI_PDEV_ONLY_BSR_TRIG_IS_ENABLED(trig_type) WMI_GET_BITS(trig_type, 0, 1)
- #define WMI_PDEV_ONLY_BSR_TRIG_ENABLE(trig_type) WMI_SET_BITS(trig_type, 0, 1, 1)
- #define WMI_PDEV_ONLY_BSR_TRIG_DISABLE(trig_type) WMI_SET_BITS(trig_type, 0, 1, 0)
- #define WMI_PDEV_ONLY_BASIC_TRIG_IS_ENABLED(trig_type) WMI_GET_BITS(trig_type, 1, 1)
- #define WMI_PDEV_ONLY_BASIC_TRIG_ENABLE(trig_type) WMI_SET_BITS(trig_type, 1, 1, 1)
- #define WMI_PDEV_ONLY_BASIC_TRIG_DISABLE(trig_type) WMI_SET_BITS(trig_type, 1, 1, 0)
- #define WMI_PDEV_MU_RTS_IS_ENABLED(trig_type) WMI_GET_BITS(trig_type, 2, 1)
- #define WMI_PDEV_MU_RTS_ENABLE(trig_type) WMI_SET_BITS(trig_type, 2, 1, 1)
- #define WMI_PDEV_MU_RTS_DISABLE(trig_type) WMI_SET_BITS(trig_type, 2, 1, 0)
- #define WMI_PDEV_EMBEDDED_TRIGGER_IS_ENABLED(trig_type) WMI_GET_BITS(trig_type, 3, 1)
- #define WMI_PDEV_EMBEDDED_TRIGGER_ENABLE(trig_type) WMI_SET_BITS(trig_type, 3, 1, 1)
- #define WMI_PDEV_EMBEDDED_TRIGGER_DISABLE(trig_type) WMI_SET_BITS(trig_type, 3, 1, 0)
- #define WMI_PDEV_TWT_SCHED_CFG_IS_DL_MU_IS_ENABLED(twt_sched_cfg) WMI_GET_BITS(twt_sched_cfg, 0, 1)
- #define WMI_PDEV_TWT_SCHED_CFG_DL_MU_ENABLE(twt_sched_cfg) WMI_SET_BITS(twt_sched_cfg, 0, 1, 1)
- #define WMI_PDEV_TWT_SCHED_CFG_DL_MU_DISABLE(twt_sched_cfg) WMI_SET_BITS(twt_sched_cfg, 0, 1, 0)
- #define WMI_PDEV_TWT_SCHED_CFG_IS_UL_MU_IS_ENABLED(twt_sched_cfg) WMI_GET_BITS(twt_sched_cfg, 1, 1)
- #define WMI_PDEV_TWT_SCHED_CFG_UL_MU_ENABLE(twt_sched_cfg) WMI_SET_BITS(twt_sched_cfg, 1, 1, 1)
- #define WMI_PDEV_TWT_SCHED_CFG_UL_MU_DISABLE(twt_sched_cfg) WMI_SET_BITS(twt_sched_cfg, 1, 1, 0)
- #define WMI_PDEV_TWT_SCHED_CFG_IS_WMM_IS_ENABLED(twt_sched_cfg) WMI_GET_BITS(twt_sched_cfg, 2, 1)
- #define WMI_PDEV_TWT_SCHED_CFG_WMM_ENABLE(twt_sched_cfg) WMI_SET_BITS(twt_sched_cfg, 2, 1, 1)
- #define WMI_PDEV_TWT_SCHED_CFG_WMM_DISABLE(twt_sched_cfg) WMI_SET_BITS(twt_sched_cfg, 2, 1, 0)
- #define WMI_PDEV_TWT_SCHED_CFG_IS_USE_ONLY_BASIC_TRIGGER_IS_ENABLED(twt_sched_cfg) WMI_GET_BITS(twt_sched_cfg, 3, 1)
- #define WMI_PDEV_TWT_SCHED_CFG_USE_ONLY_BASIC_TRIGGER_ENABLE(twt_sched_cfg) WMI_SET_BITS(twt_sched_cfg, 3, 1, 1)
- #define WMI_PDEV_TWT_SCHED_CFG_USE_ONLY_BASIC_TRIGGER_DISABLE(twt_sched_cfg) WMI_SET_BITS(twt_sched_cfg, 3, 1, 0)
- #define WMI_PDEV_LSIG_LEN_DURATION_ENABLE(lsig_len) WMI_SET_BITS(lsig_len, 0, 31, 1)
- #define WMI_PDEV_LSIG_LEN_DURATION_DISABLE(lsig_len) WMI_SET_BITS(lsig_len, 0, 31, 0)
- #define WMI_PDEV_LSIG_LEN_DURATION_GET(lsig_len) WMI_GET_BITS(lsig_len, 0, 30)
- #define WMI_PDEV_LSIG_LEN_DURATION_SET(lsig_len, value) WMI_SET_BITS(lsig_len, 0, 30, value)
- #define WMI_PDEV_IS_NON_SRG_ENABLED(pd_threshold_cfg) WMI_GET_BITS(pd_threshold_cfg, 31, 1)
- #define WMI_PDEV_NON_SRG_ENABLE(pd_threshold_cfg) WMI_SET_BITS(pd_threshold_cfg, 31, 1, 1)
- #define WMI_PDEV_NON_SRG_DISABLE(pd_threshold_cfg) WMI_SET_BITS(pd_threshold_cfg, 31, 1, 0)
- #define WMI_PDEV_NON_SRG_PD_THRESHOLD_SET(pd_threshold_cfg, value) WMI_SET_BITS(pd_threshold_cfg, 0, 8, value)
- #define WMI_PDEV_NON_SRG_PD_THRESHOLD_GET(pd_threshold_cfg) WMI_GET_BITS(pd_threshold_cfg, 0, 8)
- #define WMI_PDEV_IS_SRG_ENABLED(pd_threshold_cfg) WMI_GET_BITS(pd_threshold_cfg, 30, 1)
- #define WMI_PDEV_SRG_ENABLE(pd_threshold_cfg) WMI_SET_BITS(pd_threshold_cfg, 30, 1, 1)
- #define WMI_PDEV_SRG_DISABLE(pd_threshold_cfg) WMI_SET_BITS(pd_threshold_cfg, 30, 1, 0)
- #define WMI_PDEV_SRG_PD_THRESHOLD_SET(pd_threshold_cfg, value) WMI_SET_BITS(pd_threshold_cfg, 8, 8, value)
- #define WMI_PDEV_SRG_PD_THRESHOLD_GET(pd_threshold_cfg) WMI_GET_BITS(pd_threshold_cfg, 8, 8)
- #define WMI_PDEV_IS_PD_THRESHOLD_IN_DBM(pd_threshold_cfg) WMI_GET_BITS(pd_threshold_cfg, 29, 1)
- #define WMI_PDEV_SET_PD_THRESHOLD_IN_DBM(pd_threshold_cfg) WMI_SET_BITS(pd_threshold_cfg, 29, 1, 1)
- #define WMI_PDEV_OBSS_PD_ENABLE_PER_AC_SET(per_ac_cfg, value) WMI_SET_BITS(per_ac_cfg, 0, 4, value)
- #define WMI_PDEV_OBSS_PD_ENABLE_PER_AC_GET(per_ac_cfg) WMI_GET_BITS(per_ac_cfg, 0, 4)
- #define WMI_PDEV_SRP_ENABLE_PER_AC_SET(per_ac_cfg, value) WMI_SET_BITS(per_ac_cfg, 16, 4, value)
- #define WMI_PDEV_SRP_ENABLE_PER_AC_GET(per_ac_cfg) WMI_GET_BITS(per_ac_cfg, 16, 4)
- #define WMI_PDEV_IS_NON_SRG_SEP_PD_THRESH_CTRL_FRAME_ENABLED(pd_threshold_cfg) WMI_GET_BITS(pd_threshold_cfg, 31, 1)
- #define WMI_PDEV_NON_SRG_SEP_PD_THRESH_CTRL_FRAME_ENABLE(pd_threshold_cfg) WMI_SET_BITS(pd_threshold_cfg, 31, 1, 1)
- #define WMI_PDEV_NON_SRG_SEP_PD_THRESH_CTRL_FRAME_DISABLE(pd_threshold_cfg) WMI_SET_BITS(pd_threshold_cfg, 31, 1, 0)
- #define WMI_PDEV_NON_SRG_SEP_PD_THRESH_CTRL_FRAME_SET(pd_threshold_cfg, value) WMI_SET_BITS(pd_threshold_cfg, 0, 8, value)
- #define WMI_PDEV_NON_SRG_SEP_PD_THRESH_CTRL_FRAME_GET(pd_threshold_cfg) WMI_GET_BITS(pd_threshold_cfg, 0, 8)
- #define WMI_PDEV_IS_SRG_SEP_PD_THRESH_CTRL_FRAME_ENABLED(pd_threshold_cfg) WMI_GET_BITS(pd_threshold_cfg, 30, 1)
- #define WMI_PDEV_SRG_SEP_PD_THRESH_CTRL_FRAME_ENABLE(pd_threshold_cfg) WMI_SET_BITS(pd_threshold_cfg, 30, 1, 1)
- #define WMI_PDEV_SRG_SEP_PD_THRESH_CTRL_FRAME_DISABLE(pd_threshold_cfg) WMI_SET_BITS(pd_threshold_cfg, 30, 1, 0)
- #define WMI_PDEV_SRG_SEP_PD_THRESH_CTRL_FRAME_SET(pd_threshold_cfg, value) WMI_SET_BITS(pd_threshold_cfg, 8, 8, value)
- #define WMI_PDEV_SRG_SEP_PD_THRESH_CTRL_FRAME_GET(pd_threshold_cfg) WMI_GET_BITS(pd_threshold_cfg, 8, 8)
- #define WMI_PDEV_UPPER_CAP_NSS_GET(value) WMI_GET_BITS(value, 0, 8)
- #define WMI_PDEV_UPPER_CAP_NSS_SET(_value, value) WMI_SET_BITS(_value, 0, 8, value)
- #define WMI_PDEV_UPPER_CAP_MCS_GET(value) WMI_GET_BITS(value, 8, 8)
- #define WMI_PDEV_UPPER_CAP_MCS_SET(_value, value) WMI_SET_BITS(_value, 8, 8, value)
- #define WMI_PDEV_UPPER_CAP_NSS_VALID_GET(value) WMI_GET_BITS(value, 16, 1)
- #define WMI_PDEV_UPPER_CAP_NSS_VALID_SET(_value, value) WMI_SET_BITS(_value, 16, 1, value)
- #define WMI_PDEV_UPPER_CAP_MCS_VALID_GET(value) WMI_GET_BITS(value, 17, 1)
- #define WMI_PDEV_UPPER_CAP_MCS_VALID_SET(_value, value) WMI_SET_BITS(_value, 17, 1, value)
- #define WMI_PDEV_UPPER_CAP_DL_DIR_GET(value) WMI_GET_BITS(value, 18, 1)
- #define WMI_PDEV_UPPER_CAP_DL_DIR_SET(_value, value) WMI_SET_BITS(_value, 18, 1, value)
- #define WMI_PDEV_UPPER_CAP_UL_DIR_GET(value) WMI_GET_BITS(value, 19, 1)
- #define WMI_PDEV_UPPER_CAP_UL_DIR_SET(_value, value) WMI_SET_BITS(_value, 19, 1, value)
- #define WMI_PDEV_RATE_DROP_NUM_MCS_GET(value) WMI_GET_BITS(value, 0, 8)
- #define WMI_PDEV_RATE_DROP_NUM_MCS_SET(_value, value) WMI_SET_BITS(_value, 0, 8, value)
- #define WMI_PDEV_RATE_DROP_RETRY_THRSH_GET(value) WMI_GET_BITS(value, 8, 8)
- #define WMI_PDEV_RATE_DROP_RETRY_THRSH_SET(_value, value) WMI_SET_BITS(_value, 8, 8, value)
- #define WMI_PDEV_RATE_DROP_NUM_MCS_VALID_GET(value) WMI_GET_BITS(value, 16, 1)
- #define WMI_PDEV_RATE_DROP_NUM_MCS_VALID_SET(_value, value) WMI_SET_BITS(_value, 16, 1, value)
- #define WMI_PDEV_RATE_DROP_RETRY_THRSH_VALID_GET(value) WMI_GET_BITS(value, 17, 1)
- #define WMI_PDEV_RATE_DROP_RETRY_THRSH_VALID_SET(_value, value) WMI_SET_BITS(_value, 17, 1, value)
- #define WMI_PDEV_RATE_MIN_MCS_PROBE_INTERVAL_GET(value) WMI_GET_BITS(value, 0, 16)
- #define WMI_PDEV_RATE_MIN_MCS_PROBE_INTERVAL_SET(_value, value) WMI_SET_BITS(_value, 0, 16, value)
- #define WMI_PDEV_RATE_MAX_MCS_PROBE_INTERVAL_GET(value) WMI_GET_BITS(value, 16, 16)
- #define WMI_PDEV_RATE_MAX_MCS_PROBE_INTERVAL_SET(_value, value) WMI_SET_BITS(_value, 16, 16, value)
- #define WMI_PDEV_RATE_MIN_NSS_PROBE_INTERVAL_GET(value) WMI_GET_BITS(value, 0, 16)
- #define WMI_PDEV_RATE_MIN_NSS_PROBE_INTERVAL_SET(_value, value) WMI_SET_BITS(_value, 0, 16, value)
- #define WMI_PDEV_RATE_MAX_NSS_PROBE_INTERVAL_GET(value) WMI_GET_BITS(value, 16, 16)
- #define WMI_PDEV_RATE_MAX_NSS_PROBE_INTERVAL_SET(_value, value) WMI_SET_BITS(_value, 16, 16, value)
- #define WMI_MBSSID_CTRL_FRAME_BASIC_TRIGGER ((A_UINT32) 1 << 0)
- #define WMI_MBSSID_CTRL_FRAME_BSR_TRIGGER ((A_UINT32) 1 << 1)
- #define WMI_MBSSID_CTRL_FRAME_MU_RTS_TRIGGER ((A_UINT32) 1 << 2)
- #define WMI_MBSSID_CTRL_FRAME_UL_MU_MIMO_TRIGGER ((A_UINT32) 1 << 3)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_param_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** parameter id */
- A_UINT32 param_id; /* WMI_PDEV_PARAM */
- /** parameter value */
- A_UINT32 param_value;
- } wmi_pdev_set_param_cmd_fixed_param;
- /* param values for WMI_PDEV_PARAM_SET_TBTT_CTRL's TBTT_CTRL_CFG bit-field */
- typedef enum {
- WMI_TBTT_CTRL_HW_TRUNCATE = 0,
- WMI_TBTT_CTRL_SW_TRUNCATE,
- WMI_TBTT_CTRL_IGNORE_TBTT,
- WMI_TBTT_CTRL_MAX = 0x7,
- } WMI_TBTT_CTRL_CFG;
- /** MACRO to set / get TBTT_CTRL_CFG bit-field within
- * WMI_PDEV_PARAM_SET_TBTT_CTRL:
- * bits 0~2 : TBTT_CTRL_CFG
- * bits 3~31: Reserved (set to 0x0)
- */
- #define WMI_PDEV_PARAM_TBTT_CTRL_CFG_S 0
- #define WMI_PDEV_PARAM_TBTT_CTRL_CFG 0x00000007
- #define WMI_PDEV_PARAM_GET_TBTT_CTRL_CFG(word32) \
- WMI_F_MS(word32, WMI_PDEV_PARAM_TBTT_CTRL_CFG)
- #define WMI_PDEV_PARAM_SET_TBTT_CTRL_CFG(word32, value) \
- WMI_F_RMW(word32,value,WMI_PDEV_PARAM_TBTT_CTRL_CFG)
- /** MACRO define to set / get 11b and 11ag mode TX chain number:
- * bit 0~15 : 11b mode TX chain number.
- * bit 16~31: 11ag mode TX chain number.
- */
- #define WMI_PDEV_PARAM_11B_TX_CHAIN_NUM_S 0
- #define WMI_PDEV_PARAM_11B_TX_CHAIN_NUM 0x0000FFFF
- #define WMI_PDEV_PARAM_11AG_TX_CHAIN_NUM_S 16
- #define WMI_PDEV_PARAM_11AG_TX_CHAIN_NUM 0xFFFF0000
- #define WMI_PDEV_PARAM_GET_11B_TX_CHAIN_NUM(word32) WMI_F_MS(word32, WMI_PDEV_PARAM_11B_TX_CHAIN_NUM)
- #define WMI_PDEV_PARAM_SET_11B_TX_CHAIN_NUM(word32, value) WMI_F_RMW(word32,value,WMI_PDEV_PARAM_11B_TX_CHAIN_NUM)
- #define WMI_PDEV_PARAM_GET_11AG_TX_CHAIN_NUM(word32) WMI_F_MS(word32, WMI_PDEV_PARAM_11AG_TX_CHAIN_NUM)
- #define WMI_PDEV_PARAM_SET_11AG_TX_CHAIN_NUM(word32, value) WMI_F_RMW(word32,value,WMI_PDEV_PARAM_11AG_TX_CHAIN_NUM)
- /* param_value for param_id WMI_PDEV_PARAM_CTS_CBW */
- typedef enum {
- WMI_CTS_CBW_INVALID = 0,
- WMI_CTS_CBW_20,
- WMI_CTS_CBW_40,
- WMI_CTS_CBW_80,
- WMI_CTS_CBW_80_80,
- WMI_CTS_CBW_160,
- } WMI_CTS_CBW;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_tpc_config_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** parameter */
- A_UINT32 param;
- } wmi_pdev_get_tpc_config_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* WMITLV_TAG_STRUC_wmi_pdev_div_get_rssi_antid_fixed_param */
- /** pdev_id for identifying the MAC */
- A_UINT32 pdev_id;
- /** RSSI (rssi_chain_x_pri20) on each chain (units: dB above noise floor) */
- A_UINT32 chain_rssi[WMI_MAX_CHAINS];
- /** index of the last-used antenna for each chain */
- A_UINT32 ant_id[WMI_MAX_CHAINS];
- /** mac address of diversity peer */
- wmi_mac_addr macaddr;
- } wmi_pdev_div_get_rssi_antid_fixed_param;
- typedef enum {
- WMI_TPC_STATS_EVENT_SEND_REG = 0x00000001,
- WMI_TPC_STATS_EVENT_SEND_RATE = 0x00000002,
- WMI_TPC_STATS_EVENT_SEND_CTL = 0x00000004,
- WMI_TPC_STATS_EVENT_SEND_REG_RATE_CTL = 0x00000007, /* REG | RATE | CTL */
- } WMI_PDEV_TPC_STATS_PARAMS;
- typedef enum {
- WMI_HALPHY_TPC_STATS_SUPPORT_160 = 0,
- WMI_HALPHY_TPC_STATS_SUPPORT_320,
- WMI_HALPHY_TPC_STATS_SUPPORT_AX,
- WMI_HALPHY_TPC_STATS_SUPPORT_AX_EXTRA_MCS,
- WMI_HALPHY_TPC_STATS_SUPPORT_BE,
- WMI_HALPHY_TPC_STATS_SUPPORT_BE_PUNC,
- WMI_HALPHY_TPC_STATS_SUPPORT_CTL_DESIGN_1,
- } WMI_HALPHY_TPC_STATS_SUPPORT_BITF; /* support bit fields */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_tpc_stats_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** parameter -
- * This is to specify whether we want only the target power
- * information (rates array) or the CTL power or the regulatory
- * power information. At present, we send all of them.
- */
- A_UINT32 param; /* Currently expect WMI_TPC_STATS_EVENT_SEND_REG_RATE_CTL
- * as a host specification that rates array, regulatory
- * power array, and ctl power array are all to be sent.
- * See WMI_PDEV_TPC_STATS_PARAMS.
- */
- } wmi_pdev_get_tpc_stats_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_tpc_stats_event_fixed_param */
- A_UINT32 pdev_id; /* pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values */
- A_UINT32 end_of_event; /* The total response to the WMI command will be split into multiple event chunks to fit into the WMI svc msg size limit: 0 indicates more events to follow: 1 indicates end of event */
- A_UINT32 event_count; /* Incremented for every event chunk for Host to know the sequence */
- /* wmi_tpc_configs TLV to optionally follow */
- /* wmi_max_reg_power_allowed TLVs to optionally follow */
- /* wmi_tpc_rates_array TLVs to optionally follow */
- /* wmi_tpc_ctl_pwr_table TLVs to optionally follow */
- } wmi_pdev_get_tpc_stats_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tpc_configs */
- A_UINT32 regDomain;
- A_UINT32 chanFreq; /* current channel in MHz */
- A_UINT32 phyMode; /* current phy mode - See WLAN_PHY_MODE for the different phy modes */
- A_UINT32 maxAntennaGain; /* Maximum antenna gain for the current regulatory in 0.25 dBm steps */
- A_UINT32 twiceMaxRDPower; /* Maximum transmit power allowed in the regulatory domain in 0.25 dBm steps */
- A_INT32 userAntennaGain; /* User specified antenna gain in 0.25 dBm steps */
- A_UINT32 powerLimit; /* The overall power limit in 0.25 dBm steps */
- A_UINT32 rateMax; /* The total number of rates supported */
- A_UINT32 numTxChain; /* The total number of active chains */
- A_UINT32 ctl; /* See CONFORMANCE_TEST_LIMITS enumeration */
- A_UINT32 flags; /* See WMI_TPC_CONFIG_EVENT_FLAG */
- /* support_bits:
- * Tells info about BE, HE, HE_EXTRA_MCS, 160, 320, 11BE PUNC.
- * Refer to enum WMI_HALPHY_TPC_STATS_SUPPORT_BITF.
- */
- A_UINT32 support_bits;
- A_UINT32 nss; /* target specific NUM_SPATIAL_STREAM flag */
- } wmi_tpc_configs;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_max_reg_power_allowed */
- A_UINT32 reg_power_type; /* 0: maxRegAllowedPower (1D array),
- * 1: maxRegAllowedPowerAGCDD (2D array),
- * 2: maxRegAllowedPowerAGSTBC (2D array),
- * 3: maxRegAllowedPowerAGTXBF (2D array)
- */
- A_UINT32 reg_power_array_len; /* Length of the regulatory power array being sent in bytes */
- A_UINT32 d1; /* the length of 1st (innermost) dimension array */
- A_UINT32 d2; /* the length of 2nd dimension array */
- A_UINT32 d3; /* the length of 3rd dimension array (for future use) */
- A_UINT32 d4; /* the length of 4th dimension array (for future use) */
- /*
- * This TLV is followed by an A_INT16 TLV-array that will carry
- * one of the four types of regulatory power arrays.
- *
- * The multi-dimensional regulatory power array will be communicated
- * as a flat array: Host to stitch it back as 2D array.
- * For an array[a][b][c][d], d1 = d, d2 = c, d3 = b, d4 = a
- * For a 2D array, array[a][b], d1 = b, d2 = a, d3 = 1, d4 = 1
- * The possible types of following A_INT16 TLV arrays are
- * 1. A_INT16 maxRegAllowedPower[WHAL_TPC_TX_NUM_CHAIN];
- * 2. A_INT16 maxRegAllowedPowerAGCDD[WHAL_TPC_TX_NUM_CHAIN - 1][WHAL_TPC_TX_NUM_CHAIN - 1];
- * 3. A_INT16 maxRegAllowedPowerAGSTBC[WHAL_TPC_TX_NUM_CHAIN - 1][WHAL_TPC_TX_NUM_CHAIN - 1];
- * 4. A_INT16 maxRegAllowedPowerAGTXBF[WHAL_TPC_TX_NUM_CHAIN - 1][WHAL_TPC_TX_NUM_CHAIN - 1];
- * where WHAL_TPC_TX_NUM_CHAIN=2 for CYP and 8 for HK.
- */
- } wmi_max_reg_power_allowed;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tpc_rates_array */
- A_UINT32 rate_array_type; /* 0: ratesArray,
- * 1: ratesArray2 (for chain > 4),
- * 2: dl_ofdma rate array
- */
- A_UINT32 rate_array_len;
- /* This TLV will be followed by an A_UINT16 TLV array that will
- * carry one of the types of TPC rate arrays.
- * All the rates arrays are 1D arrays.
- * The possible types of following A_UINT16 TLV arrays are
- * 1. A_UINT16 ratesArray[WHAL_TPC_RATE_MAX];
- * This array has to be referred when number of active chains is < 4
- * 2. A_UINT16 ratesArray2[WHAL_TPC_RATE_MAX];
- * This array has to be referred when number of active chains is > 4
- * 3. A_UINT16 ratesArray_DL_OFDMA[72];
- * WHAL_TPC_RATE_MAX is 748 for HK (considering PHY A0 8x8)
- * WHAL_TPC_RATE_MAX is 188 for CYP (considering PHY A0 2x2)
- * Each 16 bit value in the rates array carries both SU and MU
- * target power information.
- * Bits 0:7 contained the SU target power (signed value, 0.25 dBm units),
- * bits 8:15 denote the MU target power (signed value, 0.25 dBm units).
- */
- } wmi_tpc_rates_array;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tpc_ctl_pwr_table */
- A_UINT32 ctl_array_type; /* 0: ctl_array,
- * 1: ctl_160 array,
- * 2: ctl_dlOfdma array,
- * 3: ctl_ulOfdma array
- */
- A_UINT32 ctl_array_len; /* Length of the CTL array being sent in bytes */
- A_UINT32 end_of_ctl_pwr; /* Message MAY be split into smaller chunks
- * to fit in the WMI svc msg size limit:
- * 0 indicates more chunks of CTL info to follow,
- * 1 indicates end of CTL info.
- */
- A_UINT32 ctl_pwr_count; /* Incremented for every CTL info chunk
- * for Host to know the sequence.
- */
- A_UINT32 d1; /* the length of 1st (innermost) dimension array */
- A_UINT32 d2; /* the length of 2nd dimension array */
- A_UINT32 d3; /* the length of 3rd dimension array */
- A_UINT32 d4; /* the length of 4th dimension array */
- /* This TLV will be followed by an A_INT8 TLV-array that will
- * carry one the types of CTL power arrays.
- * The CTL array will be multi-dimensional, but will be communicated as
- * a flat array; the host has to stitch it back into a 4D array.
- * The possible types of following A_INT8 arrays are
- * 1. A_INT8 ctlEdgePwrBF[WHAL_MAX_NUM_CHAINS][2][10][8];
- * 2. A_INT8 ctlEdgePwr160[WHAL_MAX_NUM_CHAINS/2][2][2][4];
- * 3. A_INT8 ctlEdgePwrBF_dlOFDMA[WHAL_MAX_NUM_CHAINS][2][3][8];
- * For e.g., in ctlEdgePwrBF
- * D4 = WHAL_MAX_NUM_CHAINS = 8 for HK, 2 for CYP, 4 for Pine
- * D3 = BF on/off = 2
- * D2 = 10 which the number of different tx modes,
- * like cck, legacy, HT20, HT40, VHT80, etc.
- * D1 = NSS = 8, number of spatial streams
- * Total number of elements = D4*D3*D2*D1
- * The same will apply for ctl_dlOfdma array, except that the values
- * of d1,d2,d3,d4 will be different.
- */
- } wmi_tpc_ctl_pwr_table;
- typedef struct {
- A_UINT32 tlv_header; /* WMITLV_TAG_STRUC_wmi_pdev_bss_chan_info_request_fixed_param */
- A_UINT32 param; /* 1 = read only, 2= read and clear */
- A_UINT32 pdev_id; /* pdev_id for identifying mac */
- } wmi_pdev_bss_chan_info_request_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* WMITLV_TAG_STRUC_wmi_pdev_update_ctltable_request_fixed_param */
- A_UINT32 total_len; /* the total number of ctl table bytes to be transferred */
- A_UINT32 len; /* the number of ctltable bytes in current payload */
- A_UINT32 seq; /* the number of current transfers */
- /*
- * This TLV is followed by the following additional TLVs:
- * ARRAY_BYTE TLV of ctltable_data
- */
- } wmi_pdev_update_ctltable_request_fixed_param;
- #define WMI_ESP_ESTIMATE_GET_BE(airtime) WMI_GET_BITS(airtime, 0, 8)
- #define WMI_ESP_ESTIMATE_SET_BE(airtime, value) WMI_SET_BITS(airtime, 0, 8, value)
- #define WMI_ESP_ESTIMATE_GET_BK(airtime) WMI_GET_BITS(airtime, 8, 8)
- #define WMI_ESP_ESTIMATE_SET_BK(airtime, value) WMI_SET_BITS(airtime, 8, 8, value)
- #define WMI_ESP_ESTIMATE_GET_VI(airtime) WMI_GET_BITS(airtime, 16, 8)
- #define WMI_ESP_ESTIMATE_SET_VI(airtime, value) WMI_SET_BITS(airtime, 16, 8, value)
- #define WMI_ESP_ESTIMATE_GET_VO(airtime) WMI_GET_BITS(airtime, 24, 8)
- #define WMI_ESP_ESTIMATE_SET_VO(airtime, value) WMI_SET_BITS(airtime, 24, 8, value)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_esp_estimate_event_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /*
- * Percentage of air time available for each AC
- * BIT[0-7] : AC_BE
- * BIT[8-15] : AC_BK
- * BIT[16-23] : AC_VI
- * BIT[24-31] : AC_VO
- */
- A_UINT32 ac_airtime_percentage;
- } wmi_esp_estimate_event_fixed_param;
- #define WMI_FAST_DIVERSITY_BIT_OFFSET 0
- #define WMI_SLOW_DIVERSITY_BIT_OFFSET 1
- #define WMI_SLOW_DIVERSITY_CH0_WEIGHT_SHIFT 2
- #define WMI_SLOW_DIVERSITY_CH0_WEIGHT_MASK (0xf << WMI_SLOW_DIVERSITY_CH0_WEIGHT_SHIFT)
- #define WMI_SLOW_DIVERSITY_CH0_WEIGHT_GET_BITS(word32) \
- (((word32) & WMI_SLOW_DIVERSITY_CH0_WEIGHT_MASK) >> WMI_SLOW_DIVERSITY_CH0_WEIGHT_SHIFT)
- #define WMI_SLOW_DIVERSITY_CH0_WEIGHT_SET_BITS(word32, value) \
- do { \
- (word32) &= ~WMI_SLOW_DIVERSITY_CH0_WEIGHT_MASK; \
- (word32) |= ((value) << WMI_SLOW_DIVERSITY_CH0_WEIGHT_SHIFT) & \
- WMI_SLOW_DIVERSITY_CH0_WEIGHT_MASK; \
- } while (0)
- #define WMI_SLOW_DIVERSITY_CH1_WEIGHT_SHIFT 6
- #define WMI_SLOW_DIVERSITY_CH1_WEIGHT_MASK (0xf << WMI_SLOW_DIVERSITY_CH1_WEIGHT_SHIFT)
- #define WMI_SLOW_DIVERSITY_CH1_WEIGHT_GET_BITS(word32) \
- (((word32) & WMI_SLOW_DIVERSITY_CH1_WEIGHT_MASK) >> WMI_SLOW_DIVERSITY_CH1_WEIGHT_SHIFT)
- #define WMI_SLOW_DIVERSITY_CH1_WEIGHT_SET_BITS(word32, value) \
- do { \
- (word32) &= ~WMI_SLOW_DIVERSITY_CH1_WEIGHT_MASK; \
- (word32) |= ((value) << WMI_SLOW_DIVERSITY_CH1_WEIGHT_SHIFT) & \
- WMI_SLOW_DIVERSITY_CH1_WEIGHT_MASK; \
- } while (0)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_antenna_diversity_cmd_fixed_param */
- union {
- A_UINT32 mac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- };
- /**
- * The following "value" field is divided into bit fields as follows:
- * bits | purpose
- * -----+---------------------------------------
- * 0 | enable/disable FAST diversity
- * 1 | enable/disable SLOW diversity
- * 5:2 | chain0 slow-diversity weighting factor
- * 9:6 | chain1 slow-diversity weighting factor
- * 31:10| currently unused (set to 0x0)
- * Refer to the above WMI_[FAST/SLOW]_DIVERSITY constants.
- */
- A_UINT32 value;
- } wmi_pdev_set_antenna_diversity_cmd_fixed_param;
- #define WMI_MAX_RSSI_THRESHOLD_SUPPORTED 3
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rssi_breach_monitor_config_cmd_fixed_param */
- A_UINT32 vdev_id; /* vdev_id, where RSSI monitoring will take place */
- A_UINT32 request_id; /* host will configure request_id and firmware echo this id in RSSI_BREACH_EVENT */
- A_UINT32 enabled_bitmap; /* bit [0-2] = low_rssi_breach_enabled[0-2] enabled, bit [3-5] = hi_rssi_breach_enabled[0-2] */
- A_UINT32 low_rssi_breach_threshold[WMI_MAX_RSSI_THRESHOLD_SUPPORTED]; /* unit dBm. host driver to make sure [0] > [1] > [2] */
- A_UINT32 hi_rssi_breach_threshold[WMI_MAX_RSSI_THRESHOLD_SUPPORTED]; /* unit dBm. host driver to make sure [0] < [1] < [2] */
- A_UINT32 lo_rssi_reenable_hysteresis; /* unit dBm. once low rssi[] breached, same event bitmap will be generated only after signal gets better than this level. This value is adopted for all low_rssi_breach_threshold[3] */
- A_UINT32 hi_rssi_reenable_histeresis;/* unit dBm. once hi rssi[] breached, same event bitmap will be generated only after signal gets worse than this level. This value is adopted for all hi_rssi_breach_threshold[3] */
- A_UINT32 min_report_interval; /* After last event is generated, we wait until this interval to generate next event */
- A_UINT32 max_num_report; /* this is to suppress number of event to be generated */
- } wmi_rssi_breach_monitor_config_fixed_param;
- typedef struct {
- /** parameter */
- A_UINT32 param;
- } wmi_pdev_dump_cmd;
- typedef enum {
- PAUSE_TYPE_CHOP = 0x1, /** for MCC (switch channel), only vdev_map is valid */
- PAUSE_TYPE_PS = 0x2, /** for peer station sleep in sap mode, only peer_id is valid */
- PAUSE_TYPE_UAPSD = 0x3, /** for uapsd, only peer_id and tid_map are valid. */
- PAUSE_TYPE_P2P_CLIENT_NOA = 0x4, /** only vdev_map is valid, actually only one vdev id is set at one time */
- PAUSE_TYPE_P2P_GO_PS = 0x5, /** only vdev_map is valid, actually only one vdev id is set at one time */
- PAUSE_TYPE_STA_ADD_BA = 0x6, /** only peer_id and tid_map are valid, actually only one tid is set at one time */
- PAUSE_TYPE_AP_PS = 0x7, /** for pausing AP vdev when all the connected clients are in PS. only vdev_map is valid */
- PAUSE_TYPE_IBSS_PS = 0x8, /** for pausing IBSS vdev when all the peers are in PS. only vdev_map is valid */
- PAUSE_TYPE_CHOP_TDLS_OFFCHAN = 0x9, /** for TDLS offchannel MCC (switch channel), only vdev_map is valid, TDLS connection tracker needs to be notified */
- PAUSE_TYPE_HOST = 0x15, /* host is requesting vdev pause */
- } wmi_tx_pause_type;
- typedef enum {
- ACTION_PAUSE = 0x0,
- ACTION_UNPAUSE = 0x1,
- } wmi_tx_pause_action;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 pause_type;
- A_UINT32 action;
- A_UINT32 vdev_map;
- A_UINT32 peer_id;
- A_UINT32 tid_map;
- } wmi_tx_pause_event_fixed_param;
- typedef enum {
- WMI_MGMT_TX_COMP_TYPE_COMPLETE_OK = 0,
- WMI_MGMT_TX_COMP_TYPE_DISCARD,
- WMI_MGMT_TX_COMP_TYPE_INSPECT,
- WMI_MGMT_TX_COMP_TYPE_COMPLETE_NO_ACK,
- WMI_MGMT_TX_COMP_TYPE_MAX,
- } WMI_MGMT_TX_COMP_STATUS_TYPE;
- #define WMI_VDEV_ID_VALID_FROM_INFO_GET(info) \
- WMI_GET_BITS(info, 3, 1)
- #define WMI_VDEV_ID_VALID_FROM_INFO_SET(info,val) \
- WMI_SET_BITS(info, 3, 1, val)
- #define WMI_VDEV_ID_FROM_INFO_GET(info) \
- WMI_GET_BITS(info, 4, 8)
- #define WMI_VDEV_ID_FROM_INFO_SET(info,val) \
- WMI_SET_BITS(info, 4, 8, val)
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 desc_id; /* from tx_send_cmd */
- A_UINT32 status; /* WMI_MGMT_TX_COMP_STATUS_TYPE */
- /** pdev_id for identifying the MAC that transmitted the mgmt frame
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /* ppdu_id
- * Hardware PPDU ID for tracking the completion stats
- * A ppdu_id value of 0x0 is invalid, and should be ignored.
- */
- A_UINT32 ppdu_id;
- /* ack_rssi
- * TX mgmt ack RSSI report to host.
- * Only valid when status == COMPLETE_OK and the ACK_RSSI report is enabled
- * ACK RSSI is reported as SNR dB, i.e. how many dB the RSSI is above
- * the noise floor.
- */
- A_UINT32 ack_rssi;
- /* xmit rate in kbps */
- A_UINT32 tx_rate;
- /* phy mode WLAN_PHY_MODE of the channel defined in wlan_defs.h */
- A_UINT32 peer_phymode;
- A_UINT32 retries_count;
- /* current 64 bit TSF timestamp */
- A_UINT32 tx_tsf_l32;
- A_UINT32 tx_tsf_u32;
- /* info:
- * Bit[0:2] - band on which frame is sent, band value will be
- * one of the wmi_mlo_band_info_t enum constants.
- * Macros WMI_ROAM_BTM_RESP_MLO_BAND_INFO_GET,SET
- * can be reused for setting mlo band info.
- * Bit[3] - set when vdev_id_info is populated in Bit[4:11]
- * macros WMI_VDEV_ID_VALID_FROM_INFO_GET,SET can be used
- * Bit[4:11] - vdev_id on which frame is sent,
- * Macros WMI_VDEV_ID_FROM_INFO_GET,SET can be used
- * Bit[12:31] - reserved
- */
- A_UINT32 info;
- } wmi_mgmt_tx_compl_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_offchan_data_tx_compl_event_fixed_param */
- A_UINT32 desc_id; /* from tx_send_cmd */
- A_UINT32 status; /* same status as WMI_MGMT_TX_COMP_STATUS_TYPE */
- /** pdev_id for identifying the MAC that transmitted the mgmt frame
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /* ppdu_id
- * Hardware PPDU ID for tracking the completion stats
- * A ppdu_id value of 0x0 is invalid, and should be ignored.
- */
- A_UINT32 ppdu_id;
- } wmi_offchan_data_tx_compl_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_qos_null_frame_tx_compl_event_fixed_param */
- A_UINT32 desc_id; /* echoed from tx_send_cmd */
- A_UINT32 status; /* same status as WMI_MGMT_TX_COMP_STATUS_TYPE */
- /** pdev_id for identifying the MAC that transmitted the QoS NULL frame
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /* ppdu_id
- * Hardware PPDU ID for tracking the completion stats
- * A ppdu_id value of 0x0 is invalid, and should be ignored.
- */
- A_UINT32 ppdu_id;
- /* ack_rssi
- * TX mgmt ack RSSI report to host.
- * Only valid when status == COMPLETE_OK and the ACK_RSSI report is enabled
- * ack_rssi is reported in dBm.
- */
- A_INT32 ack_rssi;
- } wmi_qos_null_frame_tx_compl_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 num_reports;
- /* tlv for completion
- * A_UINT32 desc_ids[num_reports]; <- from tx_send_cmd
- * A_UINT32 status[num_reports]; <- WMI_MGMT_TX_COMP_STATUS_TYPE
- * A_UINT32 ppdu_id[num_reports]; <- list of PPDU IDs
- * A_UINT32 ack_rssi[num_reports]; <- list of ack RSSI
- * RSSI units = dB w.r.t. noise floor
- */
- } wmi_mgmt_tx_compl_bundle_event_fixed_param;
- #define WMI_TPC_RATE_MAX 160
- /* WMI_TPC_TX_NUM_CHAIN macro can't be changed without breaking the WMI compatibility */
- #define WMI_TPC_TX_NUM_CHAIN 4
- typedef enum {
- /* bits 0-7 for table flags */
- WMI_TPC_CONFIG_EVENT_FLAG_TABLE_CDD = 0x1,
- WMI_TPC_CONFIG_EVENT_FLAG_TABLE_STBC = 0x2,
- WMI_TPC_CONFIG_EVENT_FLAG_TABLE_TXBF = 0x4,
- /* bits 8-11 for interface version flags */
- WMI_TPC_CONFIG_EVENT_FLAG_IF_MASK = 0x0F00,
- WMI_TPC_CONFIG_EVENT_FLAG_IF_V1 = 0x0100,
- } WMI_TPC_CONFIG_EVENT_FLAG;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_tpc_config_event_fixed_param */
- A_UINT32 regDomain;
- A_UINT32 chanFreq;
- A_UINT32 phyMode;
- A_UINT32 twiceAntennaReduction;
- A_UINT32 twiceMaxRDPower;
- A_INT32 twiceAntennaGain;
- A_UINT32 powerLimit;
- A_UINT32 rateMax;
- A_UINT32 numTxChain;
- A_UINT32 ctl;
- A_UINT32 flags;
- /* WMI_TPC_TX_NUM_CHAIN macro can't be changed without breaking the WMI compatibility */
- A_INT8 maxRegAllowedPower[WMI_TPC_TX_NUM_CHAIN];
- A_INT8 maxRegAllowedPowerAGCDD[WMI_TPC_TX_NUM_CHAIN][WMI_TPC_TX_NUM_CHAIN];
- A_INT8 maxRegAllowedPowerAGSTBC[WMI_TPC_TX_NUM_CHAIN][WMI_TPC_TX_NUM_CHAIN];
- A_INT8 maxRegAllowedPowerAGTXBF[WMI_TPC_TX_NUM_CHAIN][WMI_TPC_TX_NUM_CHAIN];
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /* This TLV is followed by further TLVs:
- * 1. byte array:
- * A_UINT8 ratesArray[];
- * 2a. multi-dimensional array dimension spec:
- * wmi_tlv_arrays_len_param ctlPwrTbl_param[0 or 1]
- *
- * 2b. ctl power table
- * A_UINT8 ctlPwrTbl_buf[bf][modes][nss], i.e.
- * A_UINT8 ctlPwrTbl_buf[d3_len * d2_len * d1_len]
- * bf is [0 or 1] for [on or off].
- * For 2G, modes is [0, 1, 2, or 3] for
- * [cck, legacy, (v)ht20, or (v)ht40]
- * For 5G, modes is [0, 1, 2, or 3] for
- * [legacy, (v)ht20, (v)ht40, or vht80]
- * nss is [0, 1, 2, or 3] for the number of streams 1~4.
- */
- } wmi_pdev_tpc_config_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_div_rssi_antid_event_fixed_param */
- A_UINT32 tlv_header;
- /** how many elements in the MAX_CHAINS arrays below contain valid info */
- A_UINT32 num_chains_valid;
- /** RSSI (rssi_chain_x_pri20) on each chain (units: dB above noise floor) */
- A_UINT32 chain_rssi[WMI_MAX_CHAINS];
- /** index of the last-used antenna for each chain */
- A_UINT32 ant_id[WMI_MAX_CHAINS];
- /** mac address of diversity peer */
- wmi_mac_addr macaddr;
- /* EVM value for stream0 and stream1 20Mhz, dB units */
- A_INT32 chain_evm[WMI_MAX_CHAINS];
- } wmi_pdev_div_rssi_antid_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* WMITLV_TAG_STRUC_wmi_pdev_bss_chan_info_event_fixed_param */
- A_UINT32 freq; /* Units in MHz */
- A_INT32 noise_floor; /* units are dBm */
- /* rx clear - how often the channel was unused */
- A_UINT32 rx_clear_count_low; /* low 31 bits of rx_clear cnt in 64bits format */
- A_UINT32 rx_clear_count_high; /* high 31 bits of rx_clear cnt in 64bits format */
- /* cycle count - elapsed time during the measured period, in clock ticks */
- A_UINT32 cycle_count_low; /* low 31 bits of cycle cnt in 64bits format */
- A_UINT32 cycle_count_high; /* high 31 bits of cycle cnt in 64bits format */
- /* tx cycle count - elapsed time spent in tx, in clock ticks */
- A_UINT32 tx_cycle_count_low; /* low 31 bits of tx_cycle cnt in 64bits format */
- A_UINT32 tx_cycle_count_high; /* high 31 bits of tx_cycle cnt in 64bits format */
- /* rx cycle count - elapsed time spent in rx, in clock ticks */
- A_UINT32 rx_cycle_count_low; /* low 31 bits of rx_cycle cnt in 64bits format */
- A_UINT32 rx_cycle_count_high; /* high 31 bits of rx_cycle cnt in 64bits format */
- A_UINT32 rx_bss_cycle_count_low; /* low 31 bits of rx cycle cnt for my bss in 64bits format */
- A_UINT32 rx_bss_cycle_count_high; /* high 31 bits of rx_cycle cnt for my bss in 64bits format */
- A_UINT32 pdev_id; /* pdev_id for identifying the MAC */
- } wmi_pdev_bss_chan_info_event_fixed_param;
- typedef struct {
- /* WMI event response update ctltable request to host */
- A_UINT32 tlv_header; /* WMITLV_TAG_STRUC_wmi_pdev_update_ctltable_event_fixed_param */
- A_UINT32 total_len; /* the total number of bytes to be transferred */
- A_UINT32 len; /* the number of FW received bytes from host */
- A_UINT32 seq; /* the number of current transfers */
- } wmi_pdev_update_ctltable_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_l1ss_track_event_fixed_param */
- A_UINT32 periodCnt;
- A_UINT32 L1Cnt;
- A_UINT32 L11Cnt;
- A_UINT32 L12Cnt;
- A_UINT32 L1Entry;
- A_UINT32 L11Entry;
- A_UINT32 L12Entry;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_pdev_l1ss_track_event_fixed_param;
- typedef struct {
- A_UINT32 len;
- A_UINT32 msgref;
- A_UINT32 segmentInfo;
- } wmi_pdev_seg_hdr_info;
- /*
- * Transmit power scale factor.
- *
- */
- typedef enum {
- WMI_TP_SCALE_MAX = 0, /* no scaling (default) */
- WMI_TP_SCALE_50 = 1, /* 50% of max (-3 dBm) */
- WMI_TP_SCALE_25 = 2, /* 25% of max (-6 dBm) */
- WMI_TP_SCALE_12 = 3, /* 12% of max (-9 dBm) */
- WMI_TP_SCALE_MIN = 4, /* min, but still on */
- WMI_TP_SCALE_SIZE = 5, /* max num of enum */
- } WMI_TP_SCALE;
- #define WMI_MAX_DEBUG_MESG (sizeof(A_UINT32) * 32)
- typedef struct {
- /** message buffer, NULL terminated */
- char bufp[WMI_MAX_DEBUG_MESG];
- } wmi_debug_mesg_event;
- enum {
- /** P2P device */
- VDEV_SUBTYPE_P2PDEV = 0,
- /** P2P client */
- VDEV_SUBTYPE_P2PCLI,
- /** P2P GO */
- VDEV_SUBTYPE_P2PGO,
- /** BT3.0 HS */
- VDEV_SUBTYPE_BT,
- };
- typedef struct {
- /** idnore power , only use flags , mode and freq */
- wmi_channel chan;
- } wmi_pdev_set_channel_cmd;
- typedef struct {
- A_UINT32 tlv_header;
- /* DBW puncture bitmap */
- A_UINT32 dbw_puncture_20mhz_bitmap;
- } wmi_dbw_chan_info;
- typedef enum {
- WMI_PKTLOG_EVENT_RX = 0x00000001,
- WMI_PKTLOG_EVENT_TX = 0x00000002,
- WMI_PKTLOG_EVENT_RCF = 0x00000004, /* Rate Control Find */
- WMI_PKTLOG_EVENT_RCU = 0x00000008, /* Rate Control Update */
- /* 0x10 used by deprecated DBG_PRINT */
- WMI_PKTLOG_EVENT_SMART_ANTENNA = 0x00000020, /* To support Smart Antenna */
- WMI_PKTLOG_EVENT_SW = 0x00000040, /* To support SW defined events */
- WMI_PKTLOG_EVENT_PHY = 0x00000080, /* To support PHY stats */
- WMI_PKTLOG_EVENT_CBF = 0x00000100, /* To support CBF's filter in */
- /* To support hybrid of events from FW and tx monitor status ring */
- WMI_PKTLOG_EVENT_HYBRID_TX = 0x00000200,
- } WMI_PKTLOG_EVENT;
- typedef enum {
- WMI_PKTLOG_ENABLE_AUTO = 0, /* (default) FW will decide under what conditions to enable pktlog */
- WMI_PKTLOG_ENABLE_FORCE = 1, /* pktlog unconditionally enabled */
- } WMI_PKTLOG_ENABLE;
- typedef enum {
- WMI_PKTLOG_FILTER_IN = 0, /* capture only for the MAC addresses in pktlog_mac_addr_list*/
- WMI_PKTLOG_FILTER_OUT = 1, /* capture for all MAC addresses except those in pktlog_mac_addr_list */
- } WMI_PKTLOG_FILTER_TYPE;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_pktlog_enable_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- A_UINT32 evlist; /* WMI_PKTLOG_EVENT */
- A_UINT32 enable; /* WMI_PKTLOG_ENABLE */
- } wmi_pdev_pktlog_enable_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_pktlog_disable_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_pdev_pktlog_disable_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_pktlog_filter_info */
- A_UINT32 tlv_header;
- /** mac addr of the peer to be filtered */
- wmi_mac_addr peer_mac_address;
- } wmi_pdev_pktlog_filter_info;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_pktlog_filter_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** 0 - disable filtering, 1 - enable filtering */
- A_UINT32 enable;
- A_UINT32 filter_type; /* WMI_PKTLOG_FILTER_TYPE */
- A_UINT32 num_of_mac_addresses;
- /* This TLV is followed by another TLV of array of structs
- * wmi_pdev_pktlog_filter_info pdev_pktlog_filter_info[];
- */
- } wmi_pdev_pktlog_filter_cmd_fixed_param;
- /**
- * WMI event to send packet log decode information to Host.
- * This sends the metadata which will be embedded by Host in the file-level
- * header of the pktlog trace file (i.e. the ath_pktlog_bufhdr struct).
- * This will be later used by the pktlog post-processing scripts to get
- * prerequisite pktlog_defs*.JSON files for decoding the trace.
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_pktlog_decode_info_evt_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** Forty byte field for storing software image as null terminated string */
- A_UINT8 software_image[40];
- /** Forty byte field for storing chip info as null terminated string */
- A_UINT8 chip_info[40];
- /** Four byte field for storing JSON version */
- A_UINT32 pktlog_defs_json_version;
- } wmi_pdev_pktlog_decode_info_evt_fixed_param;
- typedef enum {
- WMI_ROGUE_AP_ON_STA_PS = 1, /* rogue ap on sta ps module */
- } WMI_ROGUE_AP_TYPE;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_rap_config_fixed_param */
- /** pdev_id for identifying the MAC, the default value is WMI_PDEV_ID_SOC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** rogue ap type, see WMI_ROGUE_AP_TYPE */
- A_UINT32 type;
- /** Enable detection of rogue ap in the ps module
- *
- * 0 -> disabled
- * 1 -> enabled (default)
- */
- A_UINT32 sta_ps_detection_enabled;
- /* This TLV is followed by rap_param for each rogue ap:
- * wmi_pdev_set_rap_config_on_sta_ps_tlv_param rap_param[];
- */
- } wmi_pdev_set_rap_config_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_rap_config_on_sta_ps_tlv_param */
- /** bssid of rogue ap */
- wmi_mac_addr bssid;
- } wmi_pdev_set_rap_config_on_sta_ps_tlv_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mib_stats_enable_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- A_UINT32 enable_Mib; /** enable for mib stats collection. Stats are delivered to host in wmi_mib_stats structure.
- * If enable_Mib=1, stats collection is enabled. If enable_Mib=0, stats collection does not happen */
- } wmi_mib_stats_enable_cmd_fixed_param;
- /** Customize the DSCP (bit) to TID (0-7) mapping for QOS.
- * NOTE: This constant cannot be changed without breaking
- * WMI Compatibility. */
- #define WMI_DSCP_MAP_MAX (64)
- /*
- * @brief dscp_tid_map_cmdid - command to send the dscp to tid map to the target
- * @details
- * Create an API for sending the custom DSCP-to-TID map to the target
- * If this is a request from the user space or from above the UMAC
- * then the best place to implement this is in the umac_if_offload of the OL path.
- * Provide a place holder for this API in the ieee80211com (ic).
- *
- * This API will be a function pointer in the ieee80211com (ic). Any user space calls for manually setting the DSCP-to-TID mapping
- * in the target should be directed to the function pointer in the ic.
- *
- * Implementation details of the API to send the map to the target are as described-
- *
- * 1. The function will have 2 arguments- struct ieee80211com, DSCP-to-TID map.
- * DSCP-to-TID map is a one dimensional u_int32_t array of length 64 to
- * accommodate 64 TID values for 2^6 (64) DSCP ids.
- * Example:
- * A_UINT32 dscp_tid_map[WMI_DSCP_MAP_MAX] = {
- * 0, 0, 0, 0, 0, 0, 0, 0,
- * 1, 1, 1, 1, 1, 1, 1, 1,
- * 2, 2, 2, 2, 2, 2, 2, 2,
- * 3, 3, 3, 3, 3, 3, 3, 3,
- * 4, 4, 4, 4, 4, 4, 4, 4,
- * 5, 5, 5, 5, 5, 5, 5, 5,
- * 6, 6, 6, 6, 6, 6, 6, 6,
- * 7, 7, 7, 7, 7, 7, 7, 7,
- * };
- *
- * 2. Request for the WMI buffer of size equal to the size of the DSCP-to-TID map.
- *
- * 3. Copy the DSCP-to-TID map into the WMI buffer.
- *
- * 4. Invoke the wmi_unified_cmd_send to send the cmd buffer to the target with the
- * WMI_PDEV_SET_DSCP_TID_MAP_CMDID. Arguments to the wmi send cmd API
- * (wmi_unified_send_cmd) are wmi handle, cmd buffer, length of the cmd buffer and
- * the WMI_PDEV_SET_DSCP_TID_MAP_CMDID id.
- *
- */
- /* DEPRECATED - use VDEV level command instead
- * (wmi_vdev_set_dscp_tid_map_cmd_fixed_param)
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_dscp_tid_map_cmd_fixed_param */
- A_UINT32 reserved0; /** placeholder for pdev_id of future multiple MAC products. Init. to 0. */
- /* map indicating DSCP to TID conversion */
- A_UINT32 dscp_to_tid_map[WMI_DSCP_MAP_MAX];
- } wmi_pdev_set_dscp_tid_map_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_dscp_tid_map_cmd_fixed_param */
- A_UINT32 vdev_id;
- /** map indicating DSCP to TID conversion */
- A_UINT32 dscp_to_tid_map[WMI_DSCP_MAP_MAX];
- A_UINT32 enable_override;
- } wmi_vdev_set_dscp_tid_map_cmd_fixed_param;
- enum WMI_WAKE_GPIO_TYPE {
- WMI_WAKE_GPIO_LOW = 1,
- WMI_WAKE_GPIO_HIGH = 2,
- WMI_WAKE_GPIO_RISING_EDGE = 3,
- WMI_WAKE_GPIO_FALLING_EDGE = 4,
- };
- /**
- * Set GPIO numbers used to wakeup host and wakeup target.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_PDEV_SET_WAKEUP_CONFIG_CMDID_fixed_param */
- A_UINT32 host_wakeup_gpio; /* gpio num used to wakeup host, 0xff disable wakeup gpio */
- A_UINT32 host_wakeup_type; /* refer to WMI_WAKE_GPIO_TYPE */
- A_UINT32 target_wakeup_gpio; /* gpio num used to wakeup target, 0xff disable wakeup gpio */
- A_UINT32 target_wakeup_type; /* refer to WMI_WAKE_GPIO_TYPE */
- } WMI_PDEV_SET_WAKEUP_CONFIG_CMDID_fixed_param;
- /** Fixed rate (rate-code) for broadcast/ multicast data frames */
- /* @brief bcast_mcast_data_rate - set the rates for the bcast/ mcast frames
- * @details
- * Create an API for setting the custom rate for the MCAST and BCAST frames
- * in the target. If this is a request from the user space or from above the UMAC
- * then the best place to implement this is in the umac_if_offload of the OL path.
- * Provide a place holder for this API in the ieee80211com (ic).
- *
- * Implementation details of the API to set custom rates for MCAST and BCAST in
- * the target are as described-
- *
- * 1. The function will have 3 arguments-
- * vap structure,
- * MCAST/ BCAST identifier code,
- * 8 bit rate code
- *
- * The rate-code is a 1-byte field in which:for given rate, nss and preamble
- * b'7-b-6 indicate the preamble (0 OFDM, 1 CCK, 2, HT, 3 VHT)
- * b'5-b'4 indicate the NSS (0 - 1x1, 1 - 2x2, 2 - 3x3)
- * b'3-b'0 indicate the rate, which is indicated as follows:
- * OFDM : 0: OFDM 48 Mbps
- * 1: OFDM 24 Mbps
- * 2: OFDM 12 Mbps
- * 3: OFDM 6 Mbps
- * 4: OFDM 54 Mbps
- * 5: OFDM 36 Mbps
- * 6: OFDM 18 Mbps
- * 7: OFDM 9 Mbps
- * CCK (pream == 1)
- * 0: CCK 11 Mbps Long
- * 1: CCK 5.5 Mbps Long
- * 2: CCK 2 Mbps Long
- * 3: CCK 1 Mbps Long
- * 4: CCK 11 Mbps Short
- * 5: CCK 5.5 Mbps Short
- * 6: CCK 2 Mbps Short
- * HT/VHT (pream == 2/3)
- * 0..7: MCS0..MCS7 (HT)
- * 0..9: MCS0..MCS9 (VHT)
- *
- * 2. Invoke the wmi_unified_vdev_set_param_send to send the rate value
- * to the target.
- * Arguments to the API are-
- * wmi handle,
- * VAP interface id (av_if_id) defined in ol_ath_vap_net80211,
- * WMI_VDEV_PARAM_BCAST_DATA_RATE/ WMI_VDEV_PARAM_MCAST_DATA_RATE,
- * rate value.
- */
- typedef enum {
- WMI_SET_MCAST_RATE,
- WMI_SET_BCAST_RATE
- } MCAST_BCAST_RATE_ID;
- typedef struct {
- MCAST_BCAST_RATE_ID rate_id;
- A_UINT32 rate;
- } mcast_bcast_rate;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wmm_params */
- A_UINT32 cwmin;
- A_UINT32 cwmax;
- A_UINT32 aifs;
- A_UINT32 txoplimit;
- A_UINT32 acm;
- A_UINT32 no_ack;
- } wmi_wmm_params;
- /* DEPRECATED - use VDEV level command instead
- * (wmi_vdev_set_wmm_params_cmd_fixed_param)
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_wmm_params_cmd_fixed_param */
- A_UINT32 reserved0; /** placeholder for pdev_id of future multiple MAC products. Init. to 0. */
- A_UINT32 dg_type;
- /* The TLVs for the 4 AC follows:
- * wmi_wmm_params wmm_params_ac_be;
- * wmi_wmm_params wmm_params_ac_bk;
- * wmi_wmm_params wmm_params_ac_vi;
- * wmi_wmm_params wmm_params_ac_vo;
- */
- } wmi_pdev_set_wmm_params_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pifs_params */
- /* The unit of this offset is PIFS slot time */
- A_UINT32 sap_pifs_offset;
- A_UINT32 leb_pifs_offset;
- A_UINT32 reb_pifs_offset;
- } wmi_pifs_params;
- typedef enum {
- WMI_EDCA_PARAM_TYPE_AGGRESSIVE = 0,
- WMI_EDCA_PARAM_TYPE_PIFS = 1,
- } WMI_EDCA_PARAM_TYPE;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_twt_edca_params_cmd_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 type; /* contains a WMI_EDCA_PARAM_TYPE value */
- /*
- * This TLV is (optionally) followed by other TLVs as below:
- * wmi_wmm_params wmm_params[0/1];
- * present if type is WMI_EDCA_PARAM_TYPE_AGGRESSIVE
- * wmi_pifs_params pifs_params[0/1];
- * present if type is WMI_EDCA_PARAM_TYPE_PIFS
- */
- } wmi_vdev_set_twt_edca_params_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_twt_session_stats_info_cmd_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- } wmi_vdev_get_twt_session_stats_info_cmd_fixed_param;
- typedef enum {
- WMI_REQUEST_PEER_STAT = 0x00001,
- WMI_REQUEST_AP_STAT = 0x00002,
- WMI_REQUEST_PDEV_STAT = 0x00004,
- WMI_REQUEST_VDEV_STAT = 0x00008,
- WMI_REQUEST_BCNFLT_STAT = 0x00010,
- WMI_REQUEST_VDEV_RATE_STAT = 0x00020,
- WMI_REQUEST_INST_STAT = 0x00040,
- WMI_REQUEST_MIB_STAT = 0x00080,
- WMI_REQUEST_RSSI_PER_CHAIN_STAT = 0x00100,
- WMI_REQUEST_CONGESTION_STAT = 0x00200,
- WMI_REQUEST_PEER_EXTD_STAT = 0x00400,
- WMI_REQUEST_BCN_STAT = 0x00800,
- WMI_REQUEST_BCN_STAT_RESET = 0x01000,
- WMI_REQUEST_PEER_EXTD2_STAT = 0x02000,
- WMI_REQUEST_MIB_EXTD_STAT = 0x04000,
- WMI_REQUEST_PMF_BCN_PROTECT_STAT = 0x08000,
- WMI_REQUEST_VDEV_EXTD_STAT = 0x10000,
- WMI_REQUEST_PDEV_EXTD_STAT = 0x20000,
- WMI_REQUEST_PDEV_TELEMETRY_STAT = 0x40000,
- } wmi_stats_id;
- /*
- * cfg_retry_count is set to max number of times the AP should try sending
- * QoS Null frames to the STA for measuring the instantaneous RSSI
- *
- * retry_count is used to maintain the number of times the AP has tried sending
- * QoS Null frames to the STA for measuring the instantaneous RSSI
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_request_stats_cmd_sub_struc_param */
- A_UINT32 cfg_retry_count;
- A_UINT32 retry_count;
- } wmi_inst_rssi_stats_params;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_request_stats_cmd_fixed_param */
- wmi_stats_id stats_id;
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- A_UINT32 pdev_id; /** pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. In non-DBDC case host should set it to 0. */
- /*
- * This TLV is (optionally) followed by other TLVs:
- * wmi_inst_rssi_stats_params inst_rssi_params;
- * A_UINT32 vdev_id_bitmap[];
- * This array is present and non-zero length in MLO case, stats should
- * only be provided from the vdev_id_bitmap in the bitmap when it is
- * present.
- * wmi_mac_addr mld_macaddr[];
- * This array is present and non-zero length in MLO case, stats should
- * only be provided from the peers with the MLD MAC addresses specified
- * in the array.
- */
- } wmi_request_stats_cmd_fixed_param;
- /* stats type bitmap */
- #define WMI_LINK_STATS_RADIO 0x00000001
- #define WMI_LINK_STATS_IFACE 0x00000002
- #define WMI_LINK_STATS_ALL_PEER 0x00000004
- #define WMI_LINK_STATS_PER_PEER 0x00000008
- #define WMI_LINK_STATS_IPA 0x00000010
- /* wifi clear statistics bitmap */
- #define WIFI_STATS_RADIO 0x00000001 /** all radio statistics */
- #define WIFI_STATS_RADIO_CCA 0x00000002 /** cca_busy_time (within radio statistics) */
- #define WIFI_STATS_RADIO_CHANNELS 0x00000004 /** all channel statistics (within radio statistics) */
- #define WIFI_STATS_RADIO_SCAN 0x00000008 /** all scan statistics (within radio statistics) */
- #define WIFI_STATS_IFACE 0x00000010 /** all interface statistics */
- #define WIFI_STATS_IFACE_TXRATE 0x00000020 /** all tx rate statistics (within interface statistics) */
- #define WIFI_STATS_IFACE_AC 0x00000040 /** all ac statistics (within interface statistics) */
- #define WIFI_STATS_IFACE_CONTENTION 0x00000080 /** all contention (min, max, avg) statistics (within ac statisctics) */
- #define WMI_STATS_IFACE_ALL_PEER 0x00000100 /** All peer stats on this interface */
- #define WMI_STATS_IFACE_PER_PEER 0x00000200 /** Clear particular peer stats depending on the peer_mac */
- /** Default value for stats if the stats collection has not started */
- #define WMI_STATS_VALUE_INVALID 0xffffffff
- #define WMI_DIAG_ID_GET(diag_events_logs) WMI_GET_BITS(diag_events_logs, 0, 16)
- #define WMI_DIAG_ID_SET(diag_events_logs, value) WMI_SET_BITS(diag_events_logs, 0, 16, value)
- #define WMI_DIAG_TYPE_GET(diag_events_logs) WMI_GET_BITS(diag_events_logs, 16, 1)
- #define WMI_DIAG_TYPE_SET(diag_events_logs, value) WMI_SET_BITS(diag_events_logs, 16, 1, value)
- #define WMI_DIAG_ID_ENABLED_DISABLED_GET(diag_events_logs) WMI_GET_BITS(diag_events_logs, 17, 1)
- #define WMI_DIAG_ID_ENABLED_DISABLED_SET(diag_events_logs, value) WMI_SET_BITS(diag_events_logs, 17, 1, value)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_diag_event_log_config_fixed_param */
- A_UINT32 num_of_diag_events_logs;
- /* The TLVs will follow.
- * A_UINT32 diag_events_logs_list[]; 0-15 Bits Diag EVENT/LOG ID,
- * Bit 16 - DIAG type EVENT/LOG, 0 - Event, 1 - LOG
- * Bit 17 Indicate if the DIAG type is Enabled/Disabled.
- */
- } wmi_diag_event_log_config_fixed_param;
- #define WMI_DIAG_FREQUENCY_GET(diag_events_logs) WMI_GET_BITS(diag_events_logs, 17, 1)
- #define WMI_DIAG_FREQUENCY_SET(diag_events_logs, value) WMI_SET_BITS(diag_events_logs, 17, 1, value)
- #define WMI_DIAG_EXT_FEATURE_GET(diag_events_logs) WMI_GET_BITS(diag_events_logs, 18, 1)
- #define WMI_DIAG_EXT_FEATURE_SET(diag_events_logs, value) WMI_SET_BITS(diag_events_logs, 18, 1, value)
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 num_of_diag_events_logs;
- /* The TLVs will follow.
- * A_UINT32 diag_events_logs_list[]; 0-15 Bits Diag EVENT/LOG ID,
- * Bit 16 - DIAG type EVENT/LOG, 0 - Event, 1 - LOG
- * Bit 17 - Frequency of the DIAG EVENT/LOG High Frequency -1, Low Frequency - 0
- * Bit 18 - Set if the EVENTS/LOGs are used for EXT DEBUG Framework
- */
- } wmi_diag_event_log_supported_event_fixed_params;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_debug_mesg_flush_fixed_param*/
- A_UINT32 reserved0; /** placeholder for future */
- } wmi_debug_mesg_flush_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_debug_mesg_fw_data_stall_param */
- A_UINT32 vdev_id_bitmap; /** bitmap representation for vdev_id's where data stall happened */
- A_UINT32 data_stall_type; /** wlan_dbg_data_stall_type_e */
- /** reason_code1:
- * The information stored in reason_code1 varies based on the data stally
- * type values:
- * data_stall_type | reason_code1
- * -----------------------------------------------------
- * HWSCHED_CMD_FLUSH | flush req reason (0-40)
- * RX_REFILL_FAILED | ring_id (0-7)
- * RX_FCS_LEN_ERROR | exact error type
- */
- A_UINT32 reason_code1;
- A_UINT32 reason_code2; /** on which tid/hwq stall happened */
- A_UINT32 recovery_type; /** wlan_dbg_data_stall_recovery_type_e */
- } wmi_debug_mesg_fw_data_stall_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_debug_mesg_fw_cal_failure_param */
- A_UINT32 tlv_header;
- /* wmi_ctrl_path_stats_cal_type_ids enum defines possible cal type IDs */
- A_UINT32 cal_type;
- /* wmi_cal_failure_reason_code enum defines possible failure reason codes */
- A_UINT32 cal_failure_reason_code;
- } wmi_debug_mesg_fw_cal_failure_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_debug_mesg_flush_complete_fixed_param*/
- A_UINT32 reserved0; /** placeholder for future */
- } wmi_debug_mesg_flush_complete_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rssi_breach_fixed_param */
- /* vdev_id, where RSSI breach event occurred */
- A_UINT32 vdev_id;
- /* request id */
- A_UINT32 request_id;
- /* bitmap[0-2] is corresponding to low_rssi[0-2]. bitmap[3-5] is corresponding to hi_rssi[0-2]*/
- A_UINT32 event_bitmap;
- /* rssi at the time of RSSI breach. Unit dBm */
- A_UINT32 rssi;
- /* bssid of the monitored AP's */
- wmi_mac_addr bssid;
- } wmi_rssi_breach_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_fw_mem_dump */
- /** unique id identifying the segment */
- A_UINT32 seg_id;
- /** Start address of the segment to be read */
- A_UINT32 seg_start_addr_lo;
- A_UINT32 seg_start_addr_hi;
- /** Length of the segment to be read */
- A_UINT32 seg_length;
- /** Host bufeer address to which the segment will be read and dumped */
- A_UINT32 dest_addr_lo;
- A_UINT32 dest_addr_hi;
- } wmi_fw_mem_dump;
- /* Command to get firmware memory dump*/
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_get_fw_mem_dump_fixed_param */
- /** unique id identifying the request */
- A_UINT32 request_id;
- /** number of memory dump segments */
- A_UINT32 num_fw_mem_dump_segs;
- /**
- * This TLV is followed by another TLV
- * wmi_fw_mem_dump fw_mem_dump[];
- */
- } wmi_get_fw_mem_dump_fixed_param;
- /** Event to indicate the completion of fw mem dump */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_update_fw_mem_dump_fixed_param */
- /** unique id identifying the request, given in the request stats command */
- A_UINT32 request_id;
- /*In case of Firmware memory dump */
- A_UINT32 fw_mem_dump_complete;
- } wmi_update_fw_mem_dump_fixed_param;
- typedef enum {
- WMI_ROAMING_IDLE = 0,
- WMI_ROAMING_ACTIVE = 1,
- } wmi_roam_state;
- /* access categories */
- typedef enum {
- WMI_AC_VO = 0,
- WMI_AC_VI = 1,
- WMI_AC_BE = 2,
- WMI_AC_BK = 3,
- WMI_AC_MAX = 4,
- } wmi_traffic_ac;
- typedef enum {
- WMI_STA_STATS = 0,
- WMI_SOFTAP_STATS = 1,
- WMI_IBSS_STATS = 2,
- WMI_P2P_CLIENT_STATS = 3,
- WMI_P2P_GO_STATS = 4,
- WMI_NAN_STATS = 5,
- WMI_MESH_STATS = 6,
- } wmi_link_iface_type;
- /* channel operating width */
- typedef enum {
- WMI_CHAN_WIDTH_20 = 0,
- WMI_CHAN_WIDTH_40 = 1,
- WMI_CHAN_WIDTH_80 = 2,
- WMI_CHAN_WIDTH_160 = 3,
- WMI_CHAN_WIDTH_80P80 = 4,
- WMI_CHAN_WIDTH_5 = 5,
- WMI_CHAN_WIDTH_10 = 6,
- WMI_CHAN_WIDTH_165 = 7,
- WMI_CHAN_WIDTH_160P160 = 8,
- WMI_CHAN_WIDTH_320 = 9,
- WMI_CHAN_WIDTH_MAX,
- } wmi_channel_width;
- /* Clear stats */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_clear_link_stats_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** stop_stats_collection_req = 1 will imply stop the statistics collection */
- A_UINT32 stop_stats_collection_req;
- /** identifies what stats to be cleared */
- A_UINT32 stats_clear_req_mask;
- /** identifies which peer stats to be cleared. Valid only while clearing PER_REER */
- wmi_mac_addr peer_macaddr;
- /*
- * This TLV is (optionally) followed by other TLVs:
- * A_UINT32 vdev_id_bitmap[];
- * This array is present and non-zero length in MLO case, stats should
- * only be cleared for the VDEVs in vdev_id_bitmap in the bitmap when
- * it is present.
- * wmi_mac_addr mld_macaddr[];
- * This array is present and non-zero length in MLO case, stats should
- * only be cleared for the peers with the MLD MAC addresses specified
- * in the array.
- */
- } wmi_clear_link_stats_cmd_fixed_param;
- /* Link Stats configuration params. Trigger the link layer statistics collection*/
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_start_link_stats_cmd_fixed_param */
- /** threshold to classify the pkts as short or long */
- A_UINT32 mpdu_size_threshold;
- /** set for field debug mode. Driver should collect all statistics regardless of performance impact.*/
- A_UINT32 aggressive_statistics_gathering;
- } wmi_start_link_stats_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_request_link_stats_cmd_fixed_param */
- /** Type of stats required. This is a bitmask WMI_LINK_STATS_RADIO, WMI_LINK_STATS_IFACE */
- A_UINT32 stats_type;
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** unique id identifying the request, generated by the caller */
- A_UINT32 request_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /*
- * This TLV is (optionally) followed by other TLVs:
- * A_UINT32 vdev_id_bitmap[];
- * This array is present and non-zero length in MLO case, stats should only
- * be provided from the vdev_id_bitmap in the bitmap when it is present.
- * wmi_mac_addr mld_macaddr[];
- * This array is present and non-zero length in MLO case, stats should only
- * be provided from the peers with the MLD MAC addresses specified
- * in the array.
- */
- } wmi_request_link_stats_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_unified_request_ll_get_sta_cmd_fixed_param */
- /** Type of stats required. This is a bitmask of WMI_LINK_STATS_RADIO, WMI_LINK_STATS_IFACE */
- A_UINT32 link_stats_type;
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** unique id identifying the request, generated by the caller */
- A_UINT32 request_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** Type of stats required for get station cmd (see wmi_stats_id enum) */
- A_UINT32 get_sta_stats_id;
- /** pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. In non-DBDC case host should set it to 0. */
- A_UINT32 pdev_id;
- /*
- * This TLV is (optionally) followed by other TLVs:
- * A_UINT32 vdev_id_bitmap[];
- * This array is present and non-zero length in MLO case, stats should only
- * be provided from the vdev_id_bitmap in the bitmap when it is present.
- * wmi_mac_addr mld_macaddr[];
- * This array is present and non-zero length in MLO case, stats should only
- * be provided from the peers with the MLD MAC addresses specified
- * in the array.
- */
- } wmi_request_unified_ll_get_sta_cmd_fixed_param;
- #define WLM_STATS_REQ_LINK 0x00000001
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_request_wlm_stats_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** WLM event request bitmask
- * Used by host to customize the wlm stats report.
- * Filled with a combination of WLM_STATS_xxx values.
- */
- A_UINT32 request_bitmask;
- } wmi_request_wlm_stats_cmd_fixed_param;
- /* channel statistics */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_channel_stats */
- /** Channel width (20, 40, 80, 80+80, 160) enum wmi_channel_width*/
- A_UINT32 channel_width;
- /** Primary 20 MHz channel */
- A_UINT32 center_freq;
- /** center frequency (MHz) first segment */
- A_UINT32 center_freq0;
- /** center frequency (MHz) second segment */
- A_UINT32 center_freq1;
- /** msecs the radio is awake (32 bits number accruing over time) */
- A_UINT32 radio_awake_time;
- /** msecs the CCA register is busy (32 bits number accruing over time)
- * Includes rx_time but not tx_time.
- */
- A_UINT32 cca_busy_time;
- /** msecs the radio is transmitting (32 bits number accruing over time) */
- A_UINT32 tx_time;
- /** msecs the radio is in active receive (32 bits number accruing over time) */
- A_UINT32 rx_time;
- /*** NOTE ***
- * Be cautious about adding new fields in wmi_channel_stats.
- * STA-centric targets may instantiate many instances of per-channel
- * stats, and consequently may consume a non-trivial amount of on-chip
- * memory for storing the channel stats.
- */
- } wmi_channel_stats;
- /* this structure used for pass vdev id in stats events */
- typedef struct {
- union {
- struct {
- A_UINT32 id : 31, /* the vdev ID */
- validate: 1; /* validate bit, the vdev ID is only valid if this bit set as 1 */
- };
- A_UINT32 vdev_id;
- };
- } wmi_vdev_id_info;
- #define WMI_VDEV_ID_INFO_GET_VDEV_ID(vdev_id_info) WMI_GET_BITS(vdev_id_info, 0, 31)
- #define WMI_VDEV_ID_INFO_SET_VDEV_ID(vdev_id_info, value) WMI_SET_BITS(vdev_id_info, 0, 31, value)
- #define WMI_VDEV_ID_INFO_GET_VALIDATE(vdev_id_info) WMI_GET_BITS(vdev_id_info, 31, 1)
- #define WMI_VDEV_ID_INFO_SET_VALIDATE(vdev_id_info, value) WMI_SET_BITS(vdev_id_info, 31, 1, value)
- typedef struct {
- union {
- struct {
- A_UINT32
- id: 8, /* the vdev ID */
- /* validate:
- * validate bit, the vdev ID (id and link_status) is only valid
- * if this bit set as 1.
- */
- validate: 1,
- /* link_status:
- * 0 -> link inactive
- * 1 -> link active
- */
- link_status: 1,
- reserved:22;
- };
- A_UINT32 vdev_info_word0;
- };
- } wmi_vdev_id_info_v2;
- #define WMI_VDEV_ID_INFO_V2_GET_VDEV_ID(vdev_id_info_v2) WMI_GET_BITS(vdev_id_info_v2, 0, 8)
- #define WMI_VDEV_ID_INFO_V2_SET_VDEV_ID(vdev_id_info_v2, value) WMI_SET_BITS(vdev_id_info_v2, 0, 8, value)
- #define WMI_VDEV_ID_INFO_V2_GET_VALIDATE(vdev_id_info_v2) WMI_GET_BITS(vdev_id_info_v2, 8, 1)
- #define WMI_VDEV_ID_INFO_V2_SET_VALIDATE(vdev_id_info_v2, value) WMI_SET_BITS(vdev_id_info_v2, 8, 1, value)
- #define WMI_VDEV_ID_INFO_V2_GET_LINK_STATUS(vdev_id_info_v2) WMI_GET_BITS(vdev_id_info_v2, 9, 1)
- #define WMI_VDEV_ID_INFO_V2_SET_LINK_STATUS(vdev_id_info_v2, value) WMI_SET_BITS(vdev_id_info_v2, 9, 1, value)
- /*
- * Each step represents 0.5 dB. The starting value is 0 dBm.
- * Thus the TPC levels cover 0 dBm to 31.5 dBm inclusive in 0.5 dB steps.
- */
- #define MAX_TPC_LEVELS 64
- /* radio statistics */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_radio_link_stats */
- /** Wifi radio (if multiple radio supported) */
- A_UINT32 radio_id;
- /** msecs the radio is awake (32 bits number accruing over time) */
- A_UINT32 on_time;
- /** msecs the radio is transmitting (32 bits number accruing over time) */
- A_UINT32 tx_time;
- /** msecs the radio is in active receive (32 bits number accruing over time) */
- A_UINT32 rx_time;
- /** msecs the radio is awake due to all scan (32 bits number accruing over time) */
- A_UINT32 on_time_scan;
- /** msecs the radio is awake due to NAN (32 bits number accruing over time) */
- A_UINT32 on_time_nbd;
- /** msecs the radio is awake due to G?scan (32 bits number accruing over time) */
- A_UINT32 on_time_gscan;
- /** msecs the radio is awake due to roam?scan (32 bits number accruing over time) */
- A_UINT32 on_time_roam_scan;
- /** msecs the radio is awake due to PNO scan (32 bits number accruing over time) */
- A_UINT32 on_time_pno_scan;
- /** msecs the radio is awake due to HS2.0 scans and GAS exchange (32 bits number accruing over time) */
- A_UINT32 on_time_hs20;
- /** number of channels */
- A_UINT32 num_channels;
- /** tx time per TPC level - DEPRECATED
- * This field is deprecated.
- * It is superseded by the WMI_RADIO_TX_POWER_LEVEL_STATS_EVENTID message.
- */
- A_UINT32 tx_time_per_tpc[MAX_TPC_LEVELS];
- /** msecs the radio is awake due to Host initiated scan (accruing over time) */
- A_UINT32 on_time_host_scan;
- /** msecs the radio is awake due to LPI scan (accruing over time) */
- A_UINT32 on_time_lpi_scan;
- } wmi_radio_link_stats;
- /** tx time per power level statistics */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tx_power_level_stats_evt_fixed_param */
- /** total number of tx power levels */
- A_UINT32 total_num_tx_power_levels;
- /** number of tx power levels that are carried in this event */
- A_UINT32 num_tx_power_levels;
- /** offset of current stats
- * If ((num_tx_power_levels + power_level_offset)) ==
- * total_num_tx_power_levels)
- * this message completes the report of tx time per power levels.
- * Otherwise, additional WMI_RADIO_TX_POWER_LEVEL_STATS_EVENTID messages
- * will be sent by the target to deliver the remainder of the tx time
- * per power level stats.
- */
- A_UINT32 power_level_offset;
- /* radio id for this tx time per power level statistics (if multiple radio supported) */
- A_UINT32 radio_id;
- /** Indicates the vdev id of the stats for MLO stats query */
- wmi_vdev_id_info vdev_id_info;
- /*
- * This TLV will be followed by a TLV containing a variable-length array of
- * A_UINT32 with tx time per power level data
- * A_UINT32 tx_time_per_power_level[num_tx_power_levels]
- * The tx time is in units of milliseconds.
- * The power levels are board-specific values; a board-specific translation
- * has to be applied to determine what actual power corresponds to each
- * power level.
- * Just as the host has a BDF file available, the host should also have
- * a data file available that provides the power level to power translations.
- */
- } wmi_tx_power_level_stats_evt_fixed_param;
- /** Radio statistics (once started) do not stop or get reset unless wifi_clear_link_stats is invoked */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_radio_link_stats_event_fixed_param */
- /** unique id identifying the request, given in the request stats command */
- A_UINT32 request_id;
- /** Number of radios*/
- A_UINT32 num_radio;
- /** more_data will be set depending on the number of radios */
- A_UINT32 more_radio_events;
- /*
- * For the event WMI_RADIO_LINK_STATS_EVENTID = 0x16004,
- * FW may not be able to send all the channels (2 GHz, 5 GHz & 6 GHz)
- * together in one event message, due to buffer size limitations.
- * To avoid this limitation, FW will send multiple events to HOST
- * depending upon the number of channels.
- * If more_channels is set to 0 means FW has indicated all the
- * channels for this radio.
- * If more_channels is set to 1, it indicates FW will send another
- * event having additional channels for the same radio.
- */
- A_UINT32 more_channels;
- /** Indicates the vdev id of the stats for MLO stats query */
- wmi_vdev_id_info vdev_id_info;
- /*
- * This TLV is followed by another TLV of array of bytes
- * size of(struct wmi_radio_link_stats);
- *
- * This TLV is followed by another TLV of array of bytes
- * num_channels * size of(struct wmi_channel_stats)
- */
- } wmi_radio_link_stats_event_fixed_param;
- /* per rate statistics */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rate_stats */
- /** rate information
- * The rate-code is a 1-byte field in which:for given rate, nss and preamble
- * b'7-b-6 indicate the preamble (0 OFDM, 1 CCK, 2, HT, 3 VHT)
- * b'5-b'4 indicate the NSS (0 - 1x1, 1 - 2x2, 2 - 3x3)
- * b'3-b'0 indicate the rate, which is indicated as follows:
- * OFDM : 0: OFDM 48 Mbps
- * 1: OFDM 24 Mbps
- * 2: OFDM 12 Mbps
- * 3: OFDM 6 Mbps
- * 4: OFDM 54 Mbps
- * 5: OFDM 36 Mbps
- * 6: OFDM 18 Mbps
- * 7: OFDM 9 Mbps
- * CCK (pream == 1)
- * 0: CCK 11 Mbps Long
- * 1: CCK 5.5 Mbps Long
- * 2: CCK 2 Mbps Long
- * 3: CCK 1 Mbps Long
- * 4: CCK 11 Mbps Short
- * 5: CCK 5.5 Mbps Short
- * 6: CCK 2 Mbps Short
- * HT/VHT (pream == 2/3)
- * 0..7: MCS0..MCS7 (HT)
- * 0..9: MCS0..MCS9 (VHT)
- */
- A_UINT32 rate;
- /** units of 100 Kbps */
- A_UINT32 bitrate;
- /** number of successfully transmitted data pkts (ACK rcvd) */
- A_UINT32 tx_mpdu;
- /** number of received data pkts */
- A_UINT32 rx_mpdu;
- /** number of data packet losses (no ACK) */
- A_UINT32 mpdu_lost;
- /** total number of data pkt retries */
- A_UINT32 retries;
- /** number of short data pkt retries */
- A_UINT32 retries_short;
- /** number of long data pkt retries */
- A_UINT32 retries_long;
- } wmi_rate_stats;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_link_stats */
- /** peer type (AP, TDLS, GO etc.) enum wmi_peer_type*/
- A_UINT32 peer_type;
- /** mac address */
- wmi_mac_addr peer_mac_address;
- /** peer wmi_CAPABILITY_XXX */
- A_UINT32 capabilities;
- /** number of rates */
- A_UINT32 num_rates;
- } wmi_peer_link_stats;
- /** PEER statistics (once started) reset and start afresh after each connection */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_stats_event_fixed_param */
- /** unique id identifying the request, given in the request stats command */
- A_UINT32 request_id;
- /** number of peers accomidated in this particular event */
- A_UINT32 num_peers;
- /** Indicates the fragment number */
- A_UINT32 peer_event_number;
- /** Indicates if there are more peers which will be sent as separate peer_stats event */
- A_UINT32 more_data;
- /** Indicates the vdev id of the stats for MLO stats query */
- wmi_vdev_id_info vdev_id_info;
- /**
- * This TLV is followed by another TLV
- * num_peers * size of(struct wmi_peer_stats)
- * num_rates * size of(struct wmi_rate_stats). num_rates is the sum of the rates of all the peers.
- */
- } wmi_peer_stats_event_fixed_param;
- /* per access category statistics */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wmm_ac_stats */
- /** access category (VI, VO, BE, BK) enum wmi_traffic_ac*/
- A_UINT32 ac_type;
- /** number of successfully transmitted unicast data pkts (ACK rcvd) */
- A_UINT32 tx_mpdu;
- /** number of received unicast mpdus */
- A_UINT32 rx_mpdu;
- /** number of successfully transmitted multicast data packets */
- /** STA case: implies ACK received from AP for the unicast packet in which mcast pkt was sent */
- A_UINT32 tx_mcast;
- /** number of received multicast data packets */
- A_UINT32 rx_mcast;
- /** number of received unicast a-mpdus */
- A_UINT32 rx_ampdu;
- /** number of transmitted unicast a-mpdus */
- A_UINT32 tx_ampdu;
- /** number of data pkt losses (no ACK) */
- A_UINT32 mpdu_lost;
- /** total number of data pkt retries */
- A_UINT32 retries;
- /** number of short data pkt retries */
- A_UINT32 retries_short;
- /** number of long data pkt retries */
- A_UINT32 retries_long;
- /** data pkt min contention time (usecs) */
- A_UINT32 contention_time_min;
- /** data pkt max contention time (usecs) */
- A_UINT32 contention_time_max;
- /** data pkt avg contention time (usecs) */
- A_UINT32 contention_time_avg;
- /** num of data pkts used for contention statistics */
- A_UINT32 contention_num_samples;
- /** number of pending pkts */
- A_UINT32 tx_pending_msdu;
- } wmi_wmm_ac_stats;
- /* interface statistics */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_iface_link_stats */
- /** access point beacon received count from connected AP */
- A_UINT32 beacon_rx;
- /** access point mgmt frames received count from connected AP (including Beacon) */
- A_UINT32 mgmt_rx;
- /** action frames received count */
- A_UINT32 mgmt_action_rx;
- /** action frames transmit count */
- A_UINT32 mgmt_action_tx;
- /** access Point Beacon and Management frames RSSI (averaged) */
- A_UINT32 rssi_mgmt;
- /** access Point Data Frames RSSI (averaged) from connected AP */
- A_UINT32 rssi_data;
- /** access Point ACK RSSI (averaged) from connected AP */
- A_UINT32 rssi_ack;
- /** number of peers */
- A_UINT32 num_peers;
- /** Indicates how many peer_stats events will be sent depending on the num_peers. */
- A_UINT32 num_peer_events;
- /** number of ac */
- A_UINT32 num_ac;
- /** Roaming Stat */
- A_UINT32 roam_state;
- /** Average Beacon spread offset is the averaged time delay between TBTT and beacon TSF */
- /** Upper 32 bits of averaged 64 bit beacon spread offset */
- A_UINT32 avg_bcn_spread_offset_high;
- /** Lower 32 bits of averaged 64 bit beacon spread offset */
- A_UINT32 avg_bcn_spread_offset_low;
- /** Takes value of 1 if AP leaks packets after sending an ACK for PM=1 otherwise 0 */
- A_UINT32 is_leaky_ap;
- /** Average number of frames received from AP after receiving the ACK for a frame with PM=1 */
- A_UINT32 avg_rx_frms_leaked;
- /** Rx leak watch window currently in force to minimize data loss because of leaky AP. Rx leak window is the
- time driver waits before shutting down the radio or switching the channel and after receiving an ACK for
- a data frame with PM bit set) */
- A_UINT32 rx_leak_window;
- A_UINT32 tx_rts_succ_cnt;
- A_UINT32 tx_rts_fail_cnt;
- A_UINT32 tx_ppdu_succ_cnt;
- A_UINT32 tx_ppdu_fail_cnt;
- /** msecs the interface is in Connected state (accruing over time) */
- A_UINT32 connected_duration;
- /** msecs the interface is in DisConnected state (accruing over time) */
- A_UINT32 disconnected_duration;
- /** msecs the interface is doing RTT ranging (accruing over time) */
- A_UINT32 rtt_ranging_duration;
- /** msecs the interface is in RTT responder mode (accruing over time) */
- A_UINT32 rtt_responder_duration;
- /** Number of Probes (Tx) sent on the interface (accruing over time) */
- A_UINT32 num_probes_tx;
- /** Number of Beacon misses on this interface (accruing over time) */
- A_UINT32 num_beacon_miss;
- /** time slice duty cycle percentage of this interface */
- A_UINT32 time_slice_duty_cycle;
- /**
- * Current home channel noise floor value report to host
- * Units are dBm, values 0x0000ffff and 0x0 are invalid.
- */
- A_INT32 nf_cal_val;
- } wmi_iface_link_stats;
- typedef enum {
- WMI_OFFLOAD_STATS_TYPE_SOC_BCAST = 0,
- WMI_OFFLOAD_STATS_TYPE_SOC_MCAST = 1,
- WMI_OFFLOAD_STATS_TYPE_SOC_UCAST = 2,
- WMI_OFFLOAD_STATS_TYPE_ARP = 3,
- WMI_OFFLOAD_STATS_TYPE_NS = 4,
- WMI_OFFLOAD_STATS_TYPE_APF_BCAST = 5,
- WMI_OFFLOAD_STATS_TYPE_APF_MCAST = 6,
- WMI_OFFLOAD_STATS_TYPE_APF_UCAST = 7,
- /* Add New offload stat type here */
- WMI_OFFLOAD_STATS_TYPE_MAX,
- } wmi_offload_stats_type;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_iface_offload_stats */
- /** Type of offload stat. enum wmi_offload_stats_type **/
- A_UINT32 type;
- /** Number of (MSDUs) frames Received **/
- A_UINT32 rx_count;
- /** Number of frames Dropped **/
- A_UINT32 drp_count;
- /** Number of frames for which FW Responded (Valid for ARP and NS only). (or)
- * Number of frames forwarded to Host (Valid for stats type except ARP and NS). **/
- A_UINT32 fwd_count;
- } wmi_iface_offload_stats;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_iface_powersave_stats */
- /** Total TIM beacon event that wlan ps received **/
- A_UINT32 tot_tim_bcn;
- /** Total error TIM beacon found by wlan ps including no rx in TIM wakeup and TIM event in active state **/
- A_UINT32 tot_err_tim_bcn;
- } wmi_iface_powersave_stats;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ipa_link_stats */
- /** IPA tx channel 0 buffer hp/tp */
- A_UINT32 wbm2sw_ring_ch0_hp;
- A_UINT32 wbm2sw_ring_ch0_tp;
- /** IPA tx channel 1 buffer hp/tp */
- A_UINT32 wbm2sw_ring_ch1_hp;
- A_UINT32 wbm2sw_ring_ch1_tp;
- /** IPA rx channel 0 buffer hp/tp */
- A_UINT32 reo2sw_ring_ch0_hp;
- A_UINT32 reo2sw_ring_ch0_tp;
- /** IPA rx channel 1 buffer hp/tp */
- A_UINT32 reo2sw_ring_ch1_hp;
- A_UINT32 reo2sw_ring_ch1_tp;
- /** IPA rx channel 0 ring full counter */
- A_UINT32 reo2sw_ch0_producer_full_cnt;
- /** IPA rx channel 1 ring full counter */
- A_UINT32 reo2sw_ch1_producer_full_cnt;
- /** IPA rx path drop feature enable */
- A_UINT32 ipa_drop_enabled;
- /** Counter for IPA rx path switch to drop-enabled state */
- A_UINT32 ipa_switch_to_drop_cnt;
- /** Counter for IPA rx path switch from drop-enabled state to normal state */
- A_UINT32 ipa_switch_from_drop_cnt;
- } wmi_ipa_link_stats;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ipa_per_mac_stats */
- /** TCL total enqueued packet number */
- A_UINT32 tcl_enqueue_packets;
- /** TCL total discarded packet number during enqueue */
- A_UINT32 tcl_enqueue_discard;
- /** Total tx duration time, usec */
- A_UINT32 total_ppdu_duration_us;
- /** IPA rx no resource debug counter */
- A_UINT32 wmac_no_resource_drop_ppdu_cnt_ix0;
- A_UINT32 wmac_no_resource_drop_ppdu_cnt_ix1;
- A_UINT32 wmac_no_resource_drop_mpdu_cnt_ix0;
- A_UINT32 wmac_no_resource_drop_mpdu_cnt_ix1;
- A_UINT32 wmac_rxdma2reo_producer_full_cnt;
- } wmi_ipa_per_mac_stats;
- /** IPA statistics (once started) reset and start afresh after each connection */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ipa_link_stats_event_fixed_param */
- /** unique id identifying the request, given in the request stats command */
- A_UINT32 request_id;
- /** number of MACs */
- A_UINT32 num_macs;
- /*
- * This TLV is followed by other TLVs:
- * wmi_ipa_link_stats ipa_link_stats;
- * wmi_ipa_per_mac_stats ipa_per_mac_stats[num_macs];
- */
- } wmi_ipa_link_stats_event_fixed_param;
- /** Interface statistics (once started) reset and start afresh after each connection */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_iface_link_stats_event_fixed_param */
- /** unique id identifying the request, given in the request stats command */
- A_UINT32 request_id;
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** Number of offload stats **/
- A_UINT32 num_offload_stats;
- /*
- * This TLV is followed by other TLVs:
- * wmi_iface_link_stats iface_link_stats;
- * num_ac * size of(struct wmi_wmm_ac_stats)
- * wmi_iface_offload_stats iface_offload_stats[num_offload_stats]
- * wmi_iface_powersave_stats iface_powersave_stats[]
- */
- } wmi_iface_link_stats_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wlm_stats_event_fixed_param */
- /** bitmask listing which WLM stats are provided.
- * Copied from wlm_stats_cmd_fixed_param.
- * (This field is provided for convenience rather than necessity, since
- * the recipient can directly check which TLV arrays have non-zero length.)
- */
- A_UINT32 request_bitmask;
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /**
- * timestamp of event report, in microseconds units
- * This timestamp is for debugging purposes only.
- * It can be used to correlate this WLM stats event data with
- * other WLM information uploaded through other means.
- */
- A_UINT32 timestamp;
- /**
- * Interval between two consecutive WLM stats query requests,
- * in microseconds units.
- * This interval is used for converting the scan_period and pwr_on_period
- * values from within wmi_wlm_link_stats from percentage units to time
- * units.
- */
- A_UINT32 req_interval;
- /*
- * This TLV is followed by an A_UINT32 array TLV carrying an opaque payload.
- */
- } wmi_wlm_stats_event_fixed_param;
- /** Suspend option */
- enum {
- WMI_PDEV_SUSPEND, /* suspend */
- WMI_PDEV_SUSPEND_AND_DISABLE_INTR, /* suspend and disable all interrupts */
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_suspend_cmd_fixed_param */
- /* suspend option sent to target */
- A_UINT32 pdev_id; /** pdev_id for identifying the MAC, See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 suspend_opt;
- } wmi_pdev_suspend_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_resume_cmd_fixed_param */
- A_UINT32 pdev_id; /** pdev_id for identifying the MAC, See macros starting with WMI_PDEV_ID_ for values. */
- } wmi_pdev_resume_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_rate_stats_event_fixed_param, */
- A_UINT32 num_vdev_stats; /* number of vdevs */
- } wmi_vdev_rate_stats_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len, tag equals WMITLV_TAG_STRUC_wmi_vdev_rate_ht_info*/
- A_UINT32 vdevid; /* Id of the wlan vdev*/
- A_UINT32 tx_nss; /* Bit 28 of tx_rate_kbps has this info - based on last data packet transmitted*/
- A_UINT32 rx_nss; /* Bit 24 of rx_rate_kbps - same as above*/
- A_UINT32 tx_preamble; /* Bits 30-29 from tx_rate_kbps */
- A_UINT32 rx_preamble; /* Bits 26-25 from rx_rate_kbps */
- } wmi_vdev_rate_ht_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len, tag equals WMITLV_TAG_STRUC_wmi_rx_aggr_failure_event_fixed_param */
- A_UINT32 num_failure_info; /* How many holes on rx aggregation */
- } wmi_rx_aggr_failure_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len, tag equals WMITLV_wmi_rx_aggr_failure_info */
- A_UINT32 start_seq; /* start sequence number of the hole */
- A_UINT32 end_seq; /* end sequence number of the hole */
- } wmi_rx_aggr_failure_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tx_pn_request_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- A_UINT32 key_type; /* use standard cipher types - see WMI_CIPHER_ defs */
- /** key index **/
- A_UINT32 key_ix;
- } wmi_peer_tx_pn_request_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rx_pn_request_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- A_UINT32 key_type; /* use standard cipher types - see WMI_CIPHER_ defs */
- /** key index **/
- A_UINT32 key_ix;
- } wmi_peer_rx_pn_request_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tx_pn_response_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- A_UINT32 key_type; /* use standard cipher types - see WMI_CIPHER_ defs */
- /** Packet Number
- * The PN is provided in little endian order, with bits 7:0 of the PN
- * residing in pn[0].
- * The key_type indirectly specifies the packet number length, and thus
- * how many bytes within pn[] are filled with valid data.
- */
- A_UINT8 pn[16];
- /** key index **/
- A_UINT32 key_ix;
- } wmi_peer_tx_pn_response_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rx_pn_response_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- A_UINT32 key_type; /* use standard cipher types - see WMI_CIPHER_ defs */
- A_UINT32 key_idx;
- /** Packet Number
- * The PN is provided in little endian order, with bits 7:0 of the PN
- * residing in pn[0].
- * The key_type indirectly specifies the packet number length, and thus
- * how many bytes within pn[] are filled with valid data.
- */
- A_UINT8 pn[WMI_MAX_PN_LEN];
- } wmi_peer_rx_pn_response_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_stats_event_fixed_param */
- wmi_stats_id stats_id;
- /** number of pdev stats event structures (wmi_pdev_stats) 0 or 1 */
- A_UINT32 num_pdev_stats;
- /** number of vdev stats event structures (wmi_vdev_stats) 0 or max vdevs */
- A_UINT32 num_vdev_stats;
- /** number of peer stats event structures (wmi_peer_stats) 0 or max peers */
- A_UINT32 num_peer_stats;
- A_UINT32 num_bcnflt_stats;
- /** number of chan stats event structures (wmi_chan_stats) 0 to MAX MCC CHANS */
- A_UINT32 num_chan_stats;
- /** number of MIB stats event structures (wmi_mib_stats) */
- A_UINT32 num_mib_stats;
- A_UINT32 pdev_id; /** pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. In non-DBDC case host should set it to 0. */
- /** number of beacon stats event structures (wmi_bcn_stats) */
- A_UINT32 num_bcn_stats;
- /** number of extended peer stats event structures (wmi_peer_extd_stats) */
- A_UINT32 num_peer_extd_stats;
- /** number of extd2 peer stats event structures (wmi_peer_extd2_stats) */
- A_UINT32 num_peer_extd2_stats;
- /** last_event
- * The most significant bit is set to 1 to indicate whether the last_event
- * field contains valid data. The least significant bit is set to 1 to
- * indicate this is the final WMI_STATS_EVENT in a series.
- */
- A_UINT32 last_event;
- /** number of extended MIB stats event structures (wmi_mib_extd_stats) */
- A_UINT32 num_mib_extd_stats;
- /** Indicates the vdev id of the stats for MLO stats query */
- wmi_vdev_id_info vdev_id_info;
- /** Indicates the vdev id of the stats for MLO stats query v2 */
- wmi_vdev_id_info_v2 vdev_id_info_v2;
- /* This TLV is followed by another TLV of array of bytes
- * A_UINT8 data[];
- * This data array contains
- * num_pdev_stats * size of(struct wmi_pdev_stats)
- * num_vdev_stats * size of(struct wmi_vdev_stats)
- * num_peer_stats * size of(struct wmi_peer_stats)
- * num_bcnflt_stats * size_of()
- * num_chan_stats * size of(struct wmi_chan_stats)
- * num_mib_stats * size of(struct wmi_mib_stats)
- * num_bcn_stats * size of(struct wmi_bcn_stats)
- */
- /* If WMI_REQUEST_PEER_EXTD_STAT is set in stats_id,
- * the data[] array also contains num_peer_stats * size of wmi_peer_extd_stats
- * following the information elements listed above.
- */
- /* If WMI_REQUEST_MIB_EXTD_STAT is set in stats_id,
- * the data[] array also contains
- * num_mib_extd_stats * size of(struct wmi_mib_extd_stats)
- * following the information elements listed above.
- */
- /* If WMI_REQUEST_PMF_BCN_PROTECT_STAT is set in stats_id, then TLV
- * wmi_pmf_bcn_protect_stats pmf_bcn_protect_stats[]
- * follows the other TLVs
- */
- /* If WMI_REQUEST_VDEV_EXTD_STAT is set in stats_id, then TLV
- * wmi_vdev_extd_stats wmi_vdev_extd_stats[]
- * follows the other TLVs
- */
- /* If WMI_REQUEST_PDEV_EXTD_STAT is set in stats_id, then TLV
- * wmi_pdev_extd_stats wmi_pdev_extd_stats[]
- * follows the other TLVs
- */
- /* If WMI_REQUEST_PDEV_TELEMETRY_STAT is set in stats_id, then TLV
- * wmi_pdev_telemetry_stats wmi_pdev_telemetry_stats[]
- * follows the other TLVs
- */
- } wmi_stats_event_fixed_param;
- /* WLAN channel CCA stats bitmap */
- #define WLAN_STATS_IDLE_TIME_SHIFT 0
- #define WLAN_STATS_IDLE_TIME_TIME 0x00000001
- #define WLAN_STATS_TX_TIME_SHIFT 1
- #define WLAN_STATS_TX_TIME_MASK 0x00000002
- #define WLAN_STATS_RX_IN_BSS_TIME_SHIFT 2
- #define WLAN_STATS_RX_IN_BSS_TIME_MASK 0x00000004
- #define WLAN_STATS_RX_OUT_BSS_TIME_SHIFT 3
- #define WLAN_STATS_RX_OUT_BSS_TIME_MASK 0x00000008
- #define WLAN_STATS_RX_BUSY_TIME_SHIFT 4
- #define WLAN_STATS_RX_BUSY_TIME_MASK 0x00000010
- #define WLAN_STATS_RX_IN_BAD_COND_TIME_SHIFT 5
- #define WLAN_STATS_RX_IN_BAD_COND_TIME_MASK 0x00000020
- #define WLAN_STATS_TX_IN_BAD_COND_TIME_SHIFT 6
- #define WLAN_STATS_TX_IN_BAD_COND_TIME_MASK 0x00000040
- #define WLAN_STATS_WLAN_NOT_AVAIL_TIME_SHIFT 7
- #define WLAN_STATS_WLAN_NOT_AVAIL_TIME_MASK 0x00000080
- /* WLAN peer signal stats bitmap */
- #define WLAN_STATS_PER_CHAIN_SNR_SHIFT 0
- #define WLAN_STATS_PER_CHAIN_SNR_MASK 0x00000001
- #define WLAN_STATS_PER_CHAIN_NF_SHIFT 1
- #define WLAN_STATS_PER_CHAIN_NF_MASK 0x00000002
- /* WLAN TX stats bitmap */
- #define WLAN_STATS_TX_MSDU_CNT_SHIFT 0
- #define WLAN_STATS_TX_MSDU_CNT_MASK 0x00000001
- #define WLAN_STATS_TX_MPDU_CNT_SHIFT 1
- #define WLAN_STATS_TX_MPDU_CNT_MASK 0x00000002
- #define WLAN_STATS_TX_PPDU_CNT_SHIFT 2
- #define WLAN_STATS_TX_PPDU_CNT_MASK 0x00000004
- #define WLAN_STATS_TX_BYTES_SHIFT 3
- #define WLAN_STATS_TX_BYTES_MASK 0x00000008
- #define WLAN_STATS_TX_MSDU_DROP_CNT_SHIFT 4
- #define WLAN_STATS_TX_MSDU_DROP_CNT_MASK 0x00000010
- #define WLAN_STATS_TX_DROP_BYTES_SHIFT 5
- #define WLAN_STATS_TX_DROP_BYTES_MASK 0x00000020
- #define WLAN_STATS_TX_MPDU_RETRY_CNT_SHIFT 6
- #define WLAN_STATS_TX_MPDU_RETRY_CNT_MASK 0x00000040
- #define WLAN_STATS_TX_MPDU_FAIL_CNT_SHIFT 7
- #define WLAN_STATS_TX_MPDU_FAIL_CNT_MASK 0x00000080
- #define WLAN_STATS_TX_PPDU_FAIL_CNT_SHIFT 8
- #define WLAN_STATS_TX_PPDU_FAIL_CNT_MASK 0x00000100
- #define WLAN_STATS_TX_MPDU_AGGR_SHIFT 9
- #define WLAN_STATS_TX_MPDU_AGGR_MASK 0x00000200
- #define WLAN_STATS_TX_SUCC_MCS_SHIFT 10
- #define WLAN_STATS_TX_SUCC_MCS_MASK 0x00000400
- #define WLAN_STATS_TX_FAIL_MCS_SHIFT 11
- #define WLAN_STATS_TX_FAIL_MCS_MASK 0x00000800
- #define WLAN_STATS_TX_PPDU_DELAY_SHIFT 12
- #define WLAN_STATS_TX_PPDU_DELAY_MASK 0x00001000
- /* WLAN RX stats bitmap */
- #define WLAN_STATS_MAC_RX_MPDU_CNT_SHIFT 0
- #define WLAN_STATS_MAC_RX_MPDU_CNT_MASK 0x00000001
- #define WLAN_STATS_MAC_RX_BYTES_SHIFT 1
- #define WLAN_STATS_MAC_RX_BYTES_MASK 0x00000002
- #define WLAN_STATS_PHY_RX_PPDU_CNT_SHIFT 2
- #define WLAN_STATS_PHY_RX_PPDU_CNT_MASK 0x00000004
- #define WLAN_STATS_PHY_RX_BYTES_SHIFT 3
- #define WLAN_STATS_PHY_RX_BYTES_MASK 0x00000008
- #define WLAN_STATS_RX_DISORDER_CNT_SHIFT 4
- #define WLAN_STATS_RX_DISORDER_CNT_MASK 0x00000010
- #define WLAN_STATS_RX_MPDU_RETRY_CNT_SHIFT 5
- #define WLAN_STATS_RX_MPDU_RETRY_CNT_MASK 0x00000020
- #define WLAN_STATS_RX_MPDU_DUP_CNT_SHIFT 6
- #define WLAN_STATS_RX_MPDU_DUP_CNT_MASK 0x00000040
- #define WLAN_STATS_RX_MPDU_DISCARD_CNT_SHIFT 7
- #define WLAN_STATS_RX_MPDU_DISCARD_CNT_MASK 0x00000080
- #define WLAN_STATS_RX_MPDU_AGGR_SHIFT 8
- #define WLAN_STATS_RX_MPDU_AGGR_MASK 0x00000100
- #define WLAN_STATS_RX_MCS_SHIFT 9
- #define WLAN_STATS_RX_MCS_MASK 0x00000200
- #define WLAN_STATS_STA_PS_INDS_SHIFT 10
- #define WLAN_STATS_STA_PS_INDS_MASK 0x00000400
- #define WLAN_STATS_STA_PS_DURS_SHIFT 11
- #define WLAN_STATS_STA_PS_DURS_MASK 0x00000800
- #define WLAN_STATS_RX_PROBE_REQS_SHIFT 12
- #define WLAN_STATS_RX_PROBE_REQS_MASK 0x00001000
- #define WLAN_STATS_RX_OTH_MGMTS_SHIFT 13
- #define WLAN_STATS_RX_OTH_MGMTS_MASK 0x00002000
- typedef struct
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_chan_cca_stats */
- A_UINT32 vdev_id;
- /** Percentage of idle time, no TX, no RX, no interference */
- A_UINT32 idle_time;
- /** Percentage of time transmitting packets */
- A_UINT32 tx_time;
- /** Percentage of time receiving packets in current BSSs */
- A_UINT32 rx_in_bss_time;
- /** Percentage of time receiving packets not in current BSSs */
- A_UINT32 rx_out_bss_time;
- /** Percentage of time interference detected. */
- A_UINT32 rx_busy_time;
- /** Percentage of time receiving packets with errors
- * or packets flagged as retransmission or seqnum discontinued. */
- A_UINT32 rx_in_bad_cond_time;
- /** Percentage of time the device transmitted packets that haven't been ACKed. */
- A_UINT32 tx_in_bad_cond_time;
- /** Percentage of time the chip is unable to work in normal conditions. */
- A_UINT32 wlan_not_avail_time;
- } wmi_chan_cca_stats;
- /** Thresholds of cca stats, stands for percentages of stats variation.
- * Check wmi_chan_cca_stats for each stats's meaning.
- */
- typedef struct
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_chan_cca_stats_thresh */
- A_UINT32 idle_time; /* units = percent */
- A_UINT32 tx_time; /* units = percent */
- A_UINT32 rx_in_bss_time; /* units = percent */
- A_UINT32 rx_out_bss_time; /* units = percent */
- A_UINT32 rx_busy_time; /* units = percent */
- A_UINT32 rx_in_bad_cond_time; /* units = percent */
- A_UINT32 tx_in_bad_cond_time; /* units = percent */
- A_UINT32 wlan_not_avail_time; /* units = percent */
- } wmi_chan_cca_stats_thresh;
- typedef struct
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_signal_stats */
- A_UINT32 vdev_id;
- A_UINT32 peer_id;
- /** per chain SNR in current bss, units are dB */
- A_INT32 per_chain_snr[WMI_MAX_CHAINS];
- /** per chain background noise, units are dBm */
- A_INT32 per_chain_nf[WMI_MAX_CHAINS];
- /** per antenna rx MPDUs */
- A_UINT32 per_antenna_rx_mpdus[WMI_MAX_CHAINS];
- /** per antenna tx MPDUs */
- A_UINT32 per_antenna_tx_mpdus[WMI_MAX_CHAINS];
- /** num of valid chains for per antenna rx/tx MPDU cnts*/
- A_UINT32 num_chains_valid;
- } wmi_peer_signal_stats;
- /** Thresholds of signal stats, stand for percentage of stats variation.
- * Check wmi_peer_signal_stats for each stats's meaning.
- */
- typedef struct
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_signal_stats_thresh */
- A_UINT32 per_chain_snr; /* units = dB */
- A_UINT32 per_chain_nf; /* units = dBm */
- } wmi_peer_signal_stats_thresh;
- typedef struct
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tx_stats */
- /** Number of total TX MSDUs on MAC layer in the period */
- A_UINT32 tx_msdu_cnt;
- /** Number of total TX MPDUs on MAC layer in the period */
- A_UINT32 tx_mpdu_cnt;
- /** Number of total TX PPDUs on MAC layer in the period */
- A_UINT32 tx_ppdu_cnt;
- /** Bytes of tx data on MAC layer in the period */
- A_UINT32 tx_bytes;
- /** Number of TX MSDUs cancelled due to any reason in the period,
- * such as WMM limitation/bandwidth limitation/radio congestion */
- A_UINT32 tx_msdu_drop_cnt;
- /** Bytes of dropped TX packets in the period */
- A_UINT32 tx_drop_bytes;
- /** Number of unacked transmissions of MPDUs */
- A_UINT32 tx_mpdu_retry_cnt;
- /** Number of MPDUs have not been ACKed despite retried */
- A_UINT32 tx_mpdu_fail_cnt;
- /** Number of PPDUs which received no block ack */
- A_UINT32 tx_ppdu_fail_cnt;
- /* This TLV is followed by TLVs below: :
- * A_UINT32 tx_mpdu_aggr[tx_mpdu_aggr_array_len];
- * A_UINT32 tx_succ_mcs[tx_succ_mcs_array_len];
- * A_UINT32 tx_fail_mcs[tx_fail_mcs_array_len];
- * A_UINT32 tx_ppdu_delay[tx_ppdu_delay_array_len];
- */
- } wmi_tx_stats;
- /** Thresholds of tx stats, stand for percentage of stats variation.
- * Check wmi_tx_stats for each stats's meaning.
- */
- typedef struct
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tx_stats_thresh */
- A_UINT32 tx_msdu_cnt;
- A_UINT32 tx_mpdu_cnt;
- A_UINT32 tx_ppdu_cnt;
- A_UINT32 tx_bytes;
- A_UINT32 tx_msdu_drop_cnt;
- A_UINT32 tx_drop_bytes;
- A_UINT32 tx_mpdu_retry_cnt;
- A_UINT32 tx_mpdu_fail_cnt;
- A_UINT32 tx_ppdu_fail_cnt;
- A_UINT32 tx_mpdu_aggr;
- A_UINT32 tx_succ_mcs;
- A_UINT32 tx_fail_mcs;
- A_UINT32 tx_ppdu_delay;
- } wmi_tx_stats_thresh;
- typedef struct
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_ac_tx_stats */
- A_UINT32 vdev_id;
- A_UINT32 peer_id;
- /* The TLVs for the 4 AC follows:
- * wmi_tx_stats tx_stats[]; wmi_tx_stats for BE/BK/VI/VO
- */
- } wmi_peer_ac_tx_stats;
- typedef struct
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rx_stats */
- /** Number of RX MPDUs on MAC layer */
- A_UINT32 mac_rx_mpdu_cnt;
- /** Bytes of RX packets on MAC layer */
- A_UINT32 mac_rx_bytes;
- /** Number of RX PPDU on PHY layer */
- A_UINT32 phy_rx_ppdu_cnt;
- /** Bytes of RX packets on PHY layer */
- A_UINT32 phy_rx_bytes;
- /** Number of discontinuity in seqnum */
- A_UINT32 rx_disorder_cnt;
- /** Number of RX MPDUs flagged as retransmissions */
- A_UINT32 rx_mpdu_retry_cnt;
- /** Number of RX MPDUs identified as duplicates */
- A_UINT32 rx_mpdu_dup_cnt;
- /** Number of RX MPDUs discarded */
- A_UINT32 rx_mpdu_discard_cnt;
- /* This TLV is followed by TLVs below:
- * A_UINT32 rx_mpdu_aggr[rx_mpdu_aggr_array_len];
- * A_UINT32 rx_mcs[rx_mcs_array_len];
- */
- } wmi_rx_stats;
- /** Thresholds of rx stats, stands for percentage of stats variation.
- * Check wmi_rx_stats for each stats's meaning.
- */
- typedef struct
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rx_stats_thresh */
- A_UINT32 mac_rx_mpdu_cnt;
- A_UINT32 mac_rx_bytes;
- A_UINT32 phy_rx_ppdu_cnt;
- A_UINT32 phy_rx_bytes;
- A_UINT32 rx_disorder_cnt;
- A_UINT32 rx_mpdu_retry_cnt;
- A_UINT32 rx_mpdu_dup_cnt;
- A_UINT32 rx_mpdu_discard_cnt;
- A_UINT32 rx_mpdu_aggr;
- A_UINT32 rx_mcs;
- A_UINT32 sta_ps_inds;
- A_UINT32 sta_ps_durs;
- A_UINT32 rx_probe_reqs;
- A_UINT32 rx_oth_mgmts;
- } wmi_rx_stats_thresh;
- typedef struct
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_ac_rx_stats */
- A_UINT32 vdev_id;
- A_UINT32 peer_id;
- /** How many times STAs go to sleep */
- A_UINT32 sta_ps_inds;
- /** Total sleep time of STAs, milliseconds units */
- A_UINT32 sta_ps_durs;
- /** Number of probe requests received */
- A_UINT32 rx_probe_reqs;
- /** Number of other management frames received, not including probe requests */
- A_UINT32 rx_oth_mgmts;
- /* The TLVs for the 4 AC follows:
- * wmi_rx_stats rx_stats[]; wmi_rx_stats for BE/BK/VI/VO
- */
- } wmi_peer_ac_rx_stats;
- typedef struct
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_stats_period */
- /*
- * This struct provides the timestamps from a low-frequency timer
- * for the start and end of a stats period.
- * Each timestamp is reported twice, with different units.
- * The _msec timestamp is in millisecond units.
- * The _count timestamp is in clock tick units.
- * The timestamp is reported in clock ticks as well as in milliseconds
- * so that if the stats start and end times fall within the same
- * millisecond, the clock tick timestamps can still be used to
- * determine what fraction of a millisecond the stats period occupied.
- */
- A_UINT32 start_low_freq_msec;
- A_UINT32 start_low_freq_count;
- A_UINT32 end_low_freq_msec;
- A_UINT32 end_low_freq_count;
- } wmi_stats_period;
- typedef enum {
- /** Periodic timer timed out, based on the period specified
- * by WMI_PDEV_PARAM_STATS_OBSERVATION_PERIOD
- */
- TRIGGER_COND_ID_TIMER_TIMED_OUT = 0x1,
- /** Any of the (enabled) stats thresholds specified
- * in the WMI_PDEV_SET_STATS_THRESHOLD_CMD message is exceeded
- * within the current stats period.
- */
- TRIGGER_COND_ID_THRESH_EXCEEDED = 0x2,
- /** In Response to the one-time wlan stats request of
- * WMI_REQUEST_WLAN_STATS_CMDID from host.
- */
- TRIGGER_COND_ID_ONE_TIME_REQUEST = 0x3,
- } wmi_report_stats_event_trigger_cond_id;
- typedef struct
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_stats_interference */
- /** For cases where a single rx chain has options to be connected to
- * different rx antennas, show which rx antennas were in use during
- * receipt of a given PPDU.
- * This sa_ant_matrix provides a bitmask of the antennas used while
- * receiving this frame.
- */
- A_UINT32 sa_ant_matrix;
- /** Count how many times the hal_rxerr_phy is marked, in this time period.
- * The counter value is reset each period. The host specifies the period
- * via WMI_PDEV_PARAM_STATS_OBSERVATION_PERIOD.
- */
- A_UINT32 phyerr_count;
- /** The timestamp at which the WMI event is reported.
- * In targets that have a WBTIMER_1 timer, this timestamp is taken
- * from WBTIMER_1.
- */
- A_UINT32 timestamp;
- } wmi_stats_interference;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_report_stats_event_fixed_param */
- /** Indicate what triggered this event, check wmi_report_stats_event_trigger_cond_id for details */
- A_UINT32 trigger_cond_id;
- /** Bitmap to indicate changed channel CCA stats which exceeded the thresholds */
- A_UINT32 cca_chgd_bitmap;
- /** Bitmap to indicate changed peer signal stats which exceeded the thresholds */
- A_UINT32 sig_chgd_bitmap;
- /** Bitmap to indicate changed TX counters which exceeded the thresholds */
- A_UINT32 tx_chgd_bitmap;
- /** Bitmap to indicate changed RX counters which exceeded the thresholds */
- A_UINT32 rx_chgd_bitmap;
- /** number of per channel CCA stats structures (wmi_chan_cca_stats), 0 to max vdevs*/
- A_UINT32 num_chan_cca_stats;
- /** number of per peer signal stats structures (wmi_peer_signal_stats), 0 to max peers*/
- A_UINT32 num_peer_signal_stats;
- /** number of per peer ac TX stats structures (wmi_peer_ac_tx_stats), 0 to max peers*/
- A_UINT32 num_peer_ac_tx_stats;
- /** Array length of tx_mpdu_aggr[] which is histogram of MPDU aggregation size(1 to 7 and 8+).
- * The array indicates number of MPDUs sent on specified aggregation size
- * (per number of MPDUs per AMPDUs / 1 to 7 and 8+).
- * Array length can be set per WMI_PDEV_PARAM_TX_MPDU_AGGR_ARRAY_LEN */
- A_UINT32 tx_mpdu_aggr_array_len;
- /** Array length of tx_succ_mcs[] which is histogram of encoding rate.
- * The array indicates number of acked PPDUs sent at a specific rate */
- A_UINT32 tx_succ_mcs_array_len;
- /** Array length of tx_fail_mcs[] which is histogram of encoding rate.
- * The array indicates number of unacked PPDUs sent at a specific rate */
- A_UINT32 tx_fail_mcs_array_len;
- /** tx_ppdu_delay[]is a histogram of delays on MAC layer.
- * The array counts numbers of PPDUs encountering different TX time delays.
- * TX delay here means time interval between the time a PPDU is queued
- * to the MAC HW for transmission and the time the lower layers of
- * tx FW return a tx status.
- *
- * The bin size tx_ppdu_delay_bin_size_ms specifies how many milliseconds
- * each bin of the tx_ppdu_delay histogram represents.
- * By default the bin size is 10ms.
- * tx_ppdu_delay[0] -> delays between 0-9 ms
- * tx_ppdu_delay[1] -> delays between 10-19 ms
- * ...
- * tx_ppdu_delay[9] -> delays between 90-99 ms
- * tx_ppdu_delay[10] -> delays >= 100 ms
- * Bin size can be set per WMI_PDEV_PARAM_TX_PPDU_DELAY_BIN_SIZE_MS.
- */
- A_UINT32 tx_ppdu_delay_bin_size_ms;
- /** Array length of tx_ppdu_delay[]. It can be set per WMI_PDEV_PARAM_TX_PPDU_DELAY_ARRAY_LEN */
- A_UINT32 tx_ppdu_delay_array_len;
- /** number of per peer ac RX stats structures (wmi_peer_ac_rx_stats), 0 to max peers*/
- A_UINT32 num_peer_ac_rx_stats;
- /** Array length of rx_mpdu_aggr[] which is histogram of MPDU aggregation size(1 to 7 and 8+).
- * It can be set per WMI_PDEV_PARAM_RX_MPDU_AGGR_ARRAY_LEN */
- A_UINT32 rx_mpdu_aggr_array_len;
- /** Array size of rx_mcs[] which is histogram of encoding rate.
- * The array indicates number of PPDUs received at a specific rate */
- A_UINT32 rx_mcs_array_len;
- /** Array size of stats_period[] which contains several stats periods. */
- A_UINT32 stats_period_array_len;
- /** Indicates the vdev id for MLO case */
- wmi_vdev_id_info vdev_id_info;
- /**
- * This TLV is followed by TLVs below:
- * wmi_chan_cca_stats chan_cca_stats[]; Array length is specified by num_chan_cca_stats
- * wmi_peer_signal_stats peer_signal_stats[]; Array length is specified by num_peer_signal_stats
- * wmi_peer_ac_tx_stats peer_ac_tx_stats[]; Array length is specified by num_peer_ac_tx_stats
- * wmi_tx_stats tx_stats[][]; Array length is num_peer_ac_tx_stats * WLAN_MAX_AC, array index is (peer_index * WLAN_MAX_AC + ac_index)
- * A_UINT32 tx_mpdu_aggr[][][]; Array length is num_peer_ac_tx_stats * WLAN_MAX_AC * tx_mpdu_aggr_array_len,
- * array index is (peer_index * WLAN_MAX_AC + ac_index) * tx_mpdu_aggr_array_len + A-MPDU aggregation index
- * A_UINT32 tx_succ_mcs[][][]; Array length is num_peer_ac_tx_stats * WLAN_MAX_AC * tx_succ_mcs_array_len,
- * array index is (peer_index * WLAN_MAX_AC + ac_index) * tx_succ_mcs_array_len + MCS index
- * A_UINT32 tx_fail_mcs[][][]; Array length is num_peer_ac_tx_stats * WLAN_MAX_AC * tx_fail_mcs_array_len,
- * array index is (peer_index * WLAN_MAX_AC + ac_index) * tx_fail_mcs_array_len + MCS index
- * A_UINT32 tx_ppdu_delay[][][]; Array length is num_peer_ac_tx_stats * WLAN_MAX_AC * tx_ppdu_delay_array_len,
- * array index is (peer_index * WLAN_MAX_AC + ac_index) * tx_ppdu_delay_array_len + tx delay index
- * wmi_peer_ac_rx_stats peer_ac_rx_stats[]; Array length is specified by num_peer_ac_rx_stats
- * wmi_rx_stats rx_stats[][]; Array length is num_peer_ac_rx_stats * WLAN_MAX_AC, array index is (peer_index * WLAN_MAX_AC + ac_index)
- * A_UINT32 rx_mpdu_aggr[][][]; Array length is num_peer_ac_rx_stats * WLAN_MAX_AC * rx_mpdu_aggr_array_len,
- * array index is (peer_index * WLAN_MAX_AC + ac_index) * rx_mpdu_aggr_array_len + A-MPDU aggregation index
- * A_UINT32 rx_mcs[][][]; Array length is (num_peer_ac_rx_stats * WLAN_MAX_AC) * rx_mcs_array_len,
- * array index is (peer_index * WLAN_MAX_AC + ac_index) * rx_mcs_array_len + MCS index
- * wmi_stats_period stats_period[]; Array length is specified by stats_period_array_len
- * wmi_stats_interference stats_interference[]; Array length is determied by dividing array level TLV header's length value by array-element TLV header's length value.
- **/
- } wmi_report_stats_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_stats_info */
- A_UINT32 tlv_header;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** bytes (size of MPDUs) transmitted to this peer */
- struct {
- /* lower 32 bits of the tx_bytes value */
- A_UINT32 low_32;
- /* upper 32 bits of the tx_bytes value */
- A_UINT32 high_32;
- } tx_bytes;
- /** packets (MSDUs) transmitted to this peer */
- struct {
- /* lower 32 bits of the tx_packets value */
- A_UINT32 low_32;
- /* upper 32 bits of the tx_packets value */
- A_UINT32 high_32;
- } tx_packets;
- /** bytes (size of MPDUs) received from this peer */
- struct {
- /* lower 32 bits of the rx_bytes value */
- A_UINT32 low_32;
- /* upper 32 bits of the rx_bytes value */
- A_UINT32 high_32;
- } rx_bytes;
- /** packets (MSDUs) received from this peer */
- struct {
- /* lower 32 bits of the rx_packets value */
- A_UINT32 low_32;
- /* upper 32 bits of the rx_packets value */
- A_UINT32 high_32;
- } rx_packets;
- /** cumulative retry counts (MPDUs) */
- A_UINT32 tx_retries;
- /** number of failed transmissions (MPDUs) (retries exceeded, no ACK) */
- A_UINT32 tx_failed;
- /** rate information, it is output of WMI_ASSEMBLE_RATECODE_V1
- * (in format of 0x1000RRRR)
- * The rate-code is a 4-bytes field in which,
- * for given rate, nss and preamble
- *
- * b'31-b'29 unused / reserved
- * b'28 indicate the version of rate-code (1 = RATECODE_V1)
- * b'27-b'11 unused / reserved
- * b'10-b'8 indicate the preamble (0 OFDM, 1 CCK, 2 HT, 3 VHT)
- * b'7-b'5 indicate the NSS (0 - 1x1, 1 - 2x2, 2 - 3x3, 3 - 4x4)
- * b'4-b'0 indicate the rate, which is indicated as follows:
- * OFDM : 0: OFDM 48 Mbps
- * 1: OFDM 24 Mbps
- * 2: OFDM 12 Mbps
- * 3: OFDM 6 Mbps
- * 4: OFDM 54 Mbps
- * 5: OFDM 36 Mbps
- * 6: OFDM 18 Mbps
- * 7: OFDM 9 Mbps
- * CCK (pream == 1)
- * 0: CCK 11 Mbps Long
- * 1: CCK 5.5 Mbps Long
- * 2: CCK 2 Mbps Long
- * 3: CCK 1 Mbps Long
- * 4: CCK 11 Mbps Short
- * 5: CCK 5.5 Mbps Short
- * 6: CCK 2 Mbps Short
- * HT/VHT (pream == 2/3)
- * 0..7: MCS0..MCS7 (HT)
- * 0..9: MCS0..MCS9 (11AC VHT)
- * 0..11: MCS0..MCS11 (11AX VHT)
- */
- /** rate-code of the last transmission */
- A_UINT32 last_tx_rate_code;
- /** rate-code of the last received PPDU */
- A_UINT32 last_rx_rate_code;
- /** bitrate of the last transmission, in units of kbps */
- A_UINT32 last_tx_bitrate_kbps;
- /** bitrate of the last received PPDU, in units of kbps */
- A_UINT32 last_rx_bitrate_kbps;
- /** combined RSSI of the last received PPDU, in unit of dBm */
- A_INT32 peer_rssi;
- /** number of succeed transmissions (MPDUs) (ACK) */
- A_UINT32 tx_succeed;
- /**
- * The RSSI values are in dBm units, and are exponentially time-averaged.
- * The averaging is performed on the dB values (rather than the linear
- * values).
- */
- A_INT32 peer_rssi_per_chain[WMI_MAX_CHAINS];
- /* show how many elements in the tx_rate_counts array belong to this peer */
- A_UINT32 num_tx_rate_counts;
- /* show how many elements in the rx_rate_counts array belong to this peer */
- A_UINT32 num_rx_rate_counts;
- /* This TLV array is followed by other TLVs:
- * A_UINT32 tx_rate_counts[sum(num_tx_rate_counts)];
- * The above num_tx_rate_counts field shows which elements
- * within the tx_rate_counts array belong to a given peer.
- * Elements tx_rate_counts[0] to tx_rate_counts[N0-1] belong to
- * peer 0, where N0 = peer_stats_info[0].num_tx_rate_counts.
- * Elements tx_rate_counts[N0] to tx_rate_counts[N0+N1-1] belong to
- * peer 1, where N1 = peer_stats_info[1].num_tx_rate_counts.
- * etc.
- * A_UINT32 rx_rate_counts[sum(num_rx_rate_counts)];
- * The above num_rx_rate_counts field shows which elements
- * within the rx_rate_counts array belong to a given peer.
- * Elements rx_rate_counts[0] to rx_rate_counts[N0-1] belong to
- * peer 0, where N0 = peer_stats_info[0].num_rx_rate_counts.
- * Elements rx_rate_counts[N0] to rx_rate_counts[N0+N1-1] belong to
- * peer 1, where N1 = peer_stats_info[1].num_rx_rate_counts.
- * etc.
- */
- } wmi_peer_stats_info;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_stats_info_event_fixed_param */
- A_UINT32 tlv_header;
- /** VDEV to which the peers belong to */
- A_UINT32 vdev_id;
- /** number of peers in peer_stats_info[] */
- A_UINT32 num_peers;
- /** flag to indicate if there are more peers which will
- * be sent a following separate peer_stats_info event */
- A_UINT32 more_data;
- /* This TLV is followed by another TLV of array of structs
- * wmi_peer_stats_info peer_stats_info[];
- */
- } wmi_peer_stats_info_event_fixed_param;
- /**
- * WMI arrays of length WMI_MGMT_FRAME_SUBTYPE_MAX use the
- * IEEE802.11 standard's enumeration of mgmt frame subtypes:
- * 0 -> IEEE80211_FC0_SUBTYPE_ASSOC_REQ
- * 1 -> IEEE80211_FC0_SUBTYPE_ASSOC_RESP
- * 2 -> IEEE80211_FC0_SUBTYPE_REASSOC_REQ
- * 3 -> IEEE80211_FC0_SUBTYPE_REASSOC_RESP
- * 4 -> IEEE80211_FC0_SUBTYPE_PROBE_REQ
- * 5 -> IEEE80211_FC0_SUBTYPE_PROBE_RESP
- * 6 -> Reserved
- * 7 -> Reserved
- * 8 -> IEEE80211_FC0_SUBTYPE_BEACON
- * 9 -> IEEE80211_FC0_SUBTYPE_ATIM
- * 10 -> IEEE80211_FC0_SUBTYPE_DISASSOC
- * 11 -> IEEE80211_FC0_SUBTYPE_AUTH
- * 12 -> IEEE80211_FC0_SUBTYPE_DEAUTH
- * 13 -> IEEE80211_FCO_SUBTYPE_ACTION
- * 14 -> IEEE80211_FC0_SUBTYPE_ACTION_NOACK
- * 15 -> IEEE80211_FC0_SUBTYPE_RESERVED
- */
- #define WMI_MGMT_FRAME_SUBTYPE_MAX 16
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ctrl_path_pdev_stats_struct*/
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC */
- A_UINT32 pdev_id;
- /** counter of how many times this pdev has
- * transmitted each management frame sub-type */
- A_UINT32 tx_mgmt_subtype[WMI_MGMT_FRAME_SUBTYPE_MAX];
- /** counter of how many times this pdev has
- * received each management frame sub-type */
- A_UINT32 rx_mgmt_subtype[WMI_MGMT_FRAME_SUBTYPE_MAX];
- /** scan fail dfs violation time in ms */
- A_UINT32 scan_fail_dfs_violation_time_ms;
- /** NOL check failed latest channel frequency in MHz */
- A_UINT32 nol_check_fail_last_chan_freq;
- /** NOL check failed timestamp in ms */
- A_UINT32 nol_check_fail_time_stamp_ms;
- /** total peer create count */
- A_UINT32 total_peer_create_cnt;
- /** total peer delete count */
- A_UINT32 total_peer_delete_cnt;
- /** total peer delete response count */
- A_UINT32 total_peer_delete_resp_cnt;
- /** sched algo FIFO full count */
- A_UINT32 vdev_pause_fail_rt_to_sched_algo_fifo_full_cnt;
- /** total number of qos null tx frame queued over WMI */
- A_UINT32 qos_null_tx_over_wmi;
- /** total qos null tx frame completion received count */
- A_UINT32 qos_null_tx_send_compl_over_wmi;
- /** total event alloc failure count for qos null tx send */
- A_UINT32 qos_null_tx_send_event_alloc_failed;
- /** wlan_pdev fields num_macs, vdev_up_count and vdev_active_count
- * num_macs_phy_vdev_up_active:
- * This word contains the following bitfields:
- * number of macs from wlan_pdev
- * (WMI_PDEV_STATS_NUM_MACS_SET,GET)
- * number of vdev up count
- * (WMI_PDEV_STATS_VDEV_UP_CNT_SET,GET)
- * number of vdev active count
- * (WMI_PDEV_STATS_VDEV_UP_CNT_SET,GET)
- */
- A_UINT32 opaque_debug_num_macs_phy_vdev_up_active;
- /** refer wlan_pdev ic flags */
- A_UINT32 opaque_debug_ic_flags;
- /** vdev_id that are paused per pdev */
- A_UINT32 opaque_debug_paused_ap_vdev_bitmap;
- /** opaque_debug_flags:
- * refer to WLAN_PS_DESC_BIN_HWM_HIT or WLAN_PS_DESC_BIN_LWM_HIT
- */
- A_UINT32 opaque_debug_flags;
- /** wlan_pdev fields remote_peer_cnt, max_rf_chains_2G and max_rf_chains_5G
- * remote_peer_cnt_max_rf_chains_2G_5G:
- * This word contains the following bitfields:
- * max chains supported in the 2.4 GHz band
- * (WMI_PDEV_STATS_MAX_RF_CHAIN_2G_SET,GET)
- * max chains supported in the 5 GHz band,
- * (WMI_PDEV_STATS_MAX_RF_CHAIN_5G_SET,GET)
- * number of remote peers
- * (WMI_PDEV_STATS_REMOTE_PEER_CNT_SET,GET)
- */
- A_UINT32 opaque_debug_remote_peer_cnt_max_rf_chains_2G_5G;
- /** wlan_pdev max HT Capability info, WMI_HT_CAP defines */
- A_UINT32 opaque_debug_max_ht_cap_info;
- /** wlan_pdev max VHT capability info, WMI_VHT_CAP defines */
- A_UINT32 opaque_debug_max_vht_cap_info;
- /** opaque_debug_max_vht_supp_mcs:
- * wlan_pdev max VHT Supported MCS which is
- * vht_supp_mcs_2G or vht_supp_mcs_5G
- */
- A_UINT32 opaque_debug_max_vht_supp_mcs;
- /** wlan_pdev max HE capability info, WMI_HE_CAP defines */
- A_UINT32 opaque_debug_max_he_cap_info;
- A_UINT32 opaque_debug_max_he_cap_info_ext;
- /** the nominal chain mask for transmit */
- A_UINT32 opaque_debug_tx_chain_mask;
- /** the nominal chain mask for receive */
- A_UINT32 opaque_debug_rx_chain_mask;
- /** opaque_debug_ema_flags:
- * This word contains the following bitfields:
- * ema_flags: ema_max_vap_cnt and ema_max_profile_period from wlan_pdev
- * ema_max_vap_cnt- number of maximum EMA Tx vaps (VAPs having both
- * VDEV_FLAGS_EMA_MODE and VDEV_FLAGS_TRANSMIT_AP set)
- * (WMI_PDEV_STATS_EMA_MAX_VAP_CNT_SET,GET)
- * ema_max_profile_period - maximum profile periodicity
- * (maximum number of beacons after which VAP profiles repeat)
- * for any EMA VAP on any pdev.
- * (WMI_PDEV_STATS_EMA_MAX_PROFILE_PERIOD_SET,GET)
- */
- A_UINT32 opaque_debug_ema_flags;
- /** wlan_pdev - maximum ML peers supported */
- A_UINT32 opaque_debug_num_ml_peer_entries;
- /** This word contains the following bitfields:
- * wlan_pdev fields - num_max_hw_links, current_chip_id and max_num_chips
- * (related to MLO)
- * Max number of HW links
- * (WMI_PDEV_STATS_NUM_MAX_HW_LINKS_SET,GET)
- * Current Chip Id
- * (WMI_PDEV_STATS_CURRENT_CHIP_ID_SET,GET)
- * Max number of chips
- * (WMI_PDEV_STATS_MAX_NUM_CHIPS_SET,GET)
- */
- A_UINT32 opaque_debug_mlo_flags;
- /** Indicate beacon size in bytes */
- A_UINT32 opaque_debug_large_bcn_size;
- /** proposed by the host value of MSDUQs per each LinkView peer's TID */
- A_UINT32 opaque_debug_num_of_linkview_msduqs_per_tid;
- /** bcn_filter_context variables */
- A_UINT32 opaque_debug_bcns_dropped;
- A_UINT32 opaque_debug_bcns_recvd;
- A_UINT32 opaque_debug_bcns_delivered;
- /** Tids that are paused/unpaused based on module_id */
- A_UINT32 opaque_debug_vdev_all_tid_pause_bitmap;
- /** Tids that are blocked/unblocked based on module_id */
- A_UINT32 opaque_debug_vdev_all_tid_block_bitmap;
- /** wal_pdev rx filter, WAL_RX_FILTER_FLAGS defines */
- A_UINT32 opaque_debug_rx_filter;
- /** This word contains the following bitfields:
- * aggr_nonaggr_retry_th:
- * wal_pdev fields - agg_retry_th and non_agg_retry_th
- * This value holds max retry threshold up to which a Data packet
- * will be retried when ack is not received.
- * agg_retry_th - Threshold value used when aggregation is enabled
- * (WMI_PDEV_STATS_AGG_RETRY_TH_SET,GET)
- * non_agg_retry_th - Threshold value used for non-aggregation.
- * (WMI_PDEV_STATS_NON_AGG_RETRY_TH_SET)
- */
- A_UINT32 opaque_debug_aggr_nonaggr_retry_th;
- /** This word contains the following bitfields:
- * num_max_rx_ba_sessions:
- * Number of rx BA session establised
- * (WMI_PDEV_STATS_NUM_RX_BA_SESSIONS_SET,GET)
- * Max number of rx BA session from wal_pdev
- * (WMI_PDEV_STATS_MAX_RX_BA_SESSIONS_SET,GET)
- */
- A_UINT32 opaque_debug_num_max_rx_ba_sessions;
- /** It holds WHAL_CHANNEL_SWITCH_FLAGS values */
- A_UINT32 opaque_debug_chan_switch_flags;
- /** reset_cause holds PDEV_RESET_CONSEC_FAILURE or PDEV_RESET_TXQ_TIMEOUT */
- A_UINT32 opaque_debug_consecutive_failure_reset_cause;
- /** PPDU duration limit, in us */
- A_UINT32 opaque_debug_mu_ppdu_dur_limit_us;
- /** pdev reset in progress */
- A_UINT32 opaque_debug_reset_in_progress;
- /** wal_dev - vdev_migrate_state refer to WAL_VDEV_MIGRATE_STATE */
- A_UINT32 opaque_debug_vdev_migrate_state;
- /** opaque_debug_rts_rc_flag:
- * wal_pdev rts ratecode - this value reflects whatever
- * WMI_PDEV_PARAM_RTS_FIXED_RATE value the host has specified for the pdev.
- */
- A_UINT32 opaque_debug_rts_rc_flag;
- /* Num of peer delete in progress */
- A_UINT32 opaque_debug_num_of_peer_delete_in_progress;
- /** wal_pdev total number of active vdev count */
- A_UINT32 opaque_debug_total_active_vdev_cnt;
- /** wal_pdev - max number of vdevs per pdev */
- A_UINT32 opaque_debug_max_vdevs;
- /* NonOccupancyList(NOL) context */
- A_UINT32 opaque_debug_dfs_nol_count;
- /** NOL timeout in seconds */
- A_UINT32 opaque_debug_dfs_nol_timeout;
- A_UINT32 opaque_debug_dfs_use_nol;
- /** channel availability check mode, refer enum WMI_ADFS_OCAC_MODE */
- A_UINT32 opaque_debug_cac_mode;
- A_UINT32 opaque_debug_dyn_ppdu_dur; /* in ms */
- /** This word contains the following bitfields:
- * wal_pdev home channel info
- * home_chan_mhz_flags:
- * primary channel frequency in mhz
- * (WMI_PDEV_STATS_HOME_CHAN_MHZ_SET,GET)
- * flags to specify other channel attributes
- * (WMI_PDEV_STATS_HOME_CHAN_FLAGS_SET, GET)
- */
- A_UINT32 opaque_debug_home_chan_mhz_flags;
- /** home channel center frequency in MHz */
- A_UINT32 opaque_debug_home_band_center_freq;
- /** home channel phy_mode, refer enum WLAN_PHY_MODE */
- A_UINT32 opaque_debug_home_phy_mode;
- /** This word contains the following bitfields:
- * wal_pdev current channel info
- * cur_chan_mhz_flags:
- * primary channel frequency in mhz
- * (WMI_PDEV_STATS_CUR_CHAN_MHZ_SET,GET)
- * flags to specify other channel attributes
- * (WMI_PDEV_STATS_CUR_CHAN_FLAGS_SET,GET)
- */
- A_UINT32 opaque_debug_cur_chan_mhz_flags;
- /** current channel center frequency in MHz */
- A_UINT32 opaque_debug_cur_band_center_freq;
- /** current channel phy_mode, refer enum WLAN_PHY_MODE */
- A_UINT32 opaque_debug_cur_phy_mode;
- /* Beacon context info */
- A_UINT32 opaque_debug_bcn_q_num_bcns_queued_to_hw;
- /** beacon queue AIFS */
- A_UINT32 opaque_debug_aifs;
- /** beacon queue cwmin */
- A_UINT32 opaque_debug_cwmin;
- /** beacon queue cwmax */
- A_UINT32 opaque_debug_cwmax;
- /** FILS discovery period in TU */
- A_UINT32 opaque_debug_fils_period;
- /** Beacon interval in TU */
- A_UINT32 opaque_debug_beacon_period;
- A_UINT32 opaque_debug_staggered_beacon_intvl;
- /** wal_pdev tx context, refer enum WAL_TX_CTXT_FLAGS */
- A_UINT32 opaque_debug_tx_ctxt_flags;
- /** opaque_debug_burst_mode_pending_isr
- * wal_pdev tx_ctxt fields - burst_mode refer enum WAL_TX_BURST_MODE
- * and pending_isr_status count
- */
- A_UINT32 opaque_debug_burst_mode_pending_isr;
- /** max burst duration from ppdu duration in us */
- A_UINT32 opaque_debug_burst_dur;
- /** counter for tx hw stuck */
- A_UINT32 opaque_debug_tx_hw_stuck_cnt;
- /** counter for tx consecutive lifetime expiry */
- A_UINT32 opaque_debug_consecutive_lifetime_expiries;
- /** wal_pdev rx context, refer enum WAL_RX_CTXT_FLAGS */
- A_UINT32 opaque_debug_rx_ctxt_flags;
- /** wal_pdev fields in rx context for rx_suspend or resume count */
- A_UINT32 opaque_debug_rx_suspend_cnt;
- A_UINT32 opaque_debug_rx_resume_cnt;
- A_UINT32 opaque_debug_rx_pcie_suspend_cnt;
- A_UINT32 opaque_debug_rx_pcie_resume_cnt;
- /** This word contains the following bitfields:
- * wal_pdev fields
- * pdev paused - WMI_PDEV_STATS_PAUSED_SET,GET
- * pdev suspend - WMI_PDEV_STATS_SUSPENDED_SET,GET
- * cac_enabed - MI_PDEV_STATS_CAC_ENABLED_SET,GET
- * monitor VAP present - WMI_PDEV_STATS_IS_MONITOR_TYPE_PRESENT_SET,GET
- * beacon tx mode - WMI_PDEV_STATS_BCN_TX_MODE_SET,GET
- * isTXsuspended - WMI_PDEV_STATS_IS_TXSUSPENDED_SET,GET
- * isSCHEDsuspended - WMI_PDEV_STATS_IS_SCHEDSUSPENDED_SET,GET
- * sched_algo_resume_needed -
- * WMI_PDEV_STATS_SCHED_ALGO_RESUME_NEEDED_SET,GET
- * abort_reason - WMI_PDEV_STATS_ABORT_REASON_SET,GET
- * atf_cfg - WMI_PDEV_STATS_ATF_CONFIG_SET,GET
- * Green AP TX chainmask valid - WMI_PDEV_STATS_GAP_TX_CH_MASK_VALID_SET,GET
- * Green AP RX chainmask valid - WMI_PDEV_STATS_GAP_RX_CH_MASK_VALID_SET,GET
- * Green AP Phy mode valid - WMI_PDEV_STATS_GAP_PHY_MODE_VALID_SET,GET
- * burst_enable - WMI_PDEV_STATS_BURST_ENABLE_SET,GET
- */
- A_UINT32 opaque_debug_wal_pdev_bitfield;
- /** This word contains the following bitfields:
- * gap_phy_mode_freq:
- * When GreenAP is enabled, phy_mode (WMI_PDEV_STATS_GAP_PHY_MODE_SET,GET)
- * and center freq(MHz) (WMI_PDEV_STATS_GAP_BAND_CENTER_FREQ1_SET,GET)
- * in GAP context is displayed
- */
- A_UINT32 opaque_debug_gap_phy_mode_freq;
- /**
- * The following 5 opaque_debug_reserved_field variables are provided
- * purely for debugging by technicians who have outside knowledge of
- * what kind of values the target has placed into these fields.
- */
- A_UINT32 opaque_debug_reserved_field_1;
- A_UINT32 opaque_debug_reserved_field_2;
- A_UINT32 opaque_debug_reserved_field_3;
- A_UINT32 opaque_debug_reserved_field_4;
- A_UINT32 opaque_debug_reserved_field_5;
- } wmi_ctrl_path_pdev_stats_struct;
- #define WMI_PDEV_STATS_NUM_MACS_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_PDEV_STATS_NUM_MACS_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_PDEV_STATS_NUM_PHY_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_PDEV_STATS_NUM_PHY_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_PDEV_STATS_VDEV_UP_CNT_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_PDEV_STATS_VDEV_UP_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_PDEV_STATS_VDEV_ACTIVE_CNT_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_PDEV_STATS_VDEV_ACTIVE_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_PDEV_STATS_REMOTE_PEER_CNT_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PDEV_STATS_REMOTE_PEER_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PDEV_STATS_MAX_RF_CHAIN_2G_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_PDEV_STATS_MAX_RF_CHAIN_2G_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_PDEV_STATS_MAX_RF_CHAIN_5G_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_PDEV_STATS_MAX_RF_CHAIN_5G_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_PDEV_STATS_EMA_MAX_VAP_CNT_GET(flag) \
- WMI_GET_BITS(flag, 0, 8 )
- #define WMI_PDEV_STATS_EMA_MAX_VAP_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8 , val)
- #define WMI_PDEV_STATS_EMA_MAX_PROFILE_PERIOD_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_PDEV_STATS_EMA_MAX_PROFILE_PERIOD_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_PDEV_STATS_NUM_SELF_PEERS_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_PDEV_STATS_NUM_SELF_PEERS_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_PDEV_STATS_MAX_ACTIVE_VDEVS_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_PDEV_STATS_MAX_ACTIVE_VDEVS_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_PDEV_STATS_NUM_MAX_HW_LINKS_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_PDEV_STATS_NUM_MAX_HW_LINKS_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_PDEV_STATS_CURRENT_CHIP_ID_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_PDEV_STATS_CURRENT_CHIP_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_PDEV_STATS_MAX_NUM_CHIPS_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_PDEV_STATS_MAX_NUM_CHIPS_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_PDEV_STATS_NUM_HOME_CHANS_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_PDEV_STATS_NUM_HOME_CHANS_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_PDEV_STATS_AGG_RETRY_TH_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_PDEV_STATS_AGG_RETRY_TH_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_PDEV_STATS_NON_AGG_RETRY_TH_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_PDEV_STATS_NON_AGG_RETRY_TH_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_PDEV_STATS_MAX_NON_DATA_RETRY_TH_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_PDEV_STATS_MAX_NON_DATA_RETRY_TH_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_PDEV_STATS_NUM_CONSECUTIVE_BCN_TX_FILT_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_PDEV_STATS_NUM_CONSECUTIVE_BCN_TX_FILT_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_PDEV_STATS_NUM_RX_BA_SESSIONS_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PDEV_STATS_NUM_RX_BA_SESSIONS_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PDEV_STATS_MAX_RX_BA_SESSIONS_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PDEV_STATS_MAX_RX_BA_SESSIONS_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PDEV_STATS_PPDU_DUR_LIMIT_US_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PDEV_STATS_PPDU_DUR_LIMIT_US_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PDEV_STATS_MU_PPDU_DUR_LIMIT_US_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PDEV_STATS_MU_PPDU_DUR_LIMIT_US_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PDEV_STATS_RTS_RC_FLAGS_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_PDEV_STATS_RTS_RC_FLAGS_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_PDEV_STATS_RTS_RC_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_PDEV_STATS_RTS_RC_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_PDEV_STATS_GAP_TX_CH_MASK_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_PDEV_STATS_GAP_TX_CH_MASK_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_PDEV_STATS_GAP_RX_CH_MASK_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_PDEV_STATS_GAP_RX_CH_MASK_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_PDEV_STATS_GAP_PHY_MODE_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PDEV_STATS_GAP_PHY_MODE_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PDEV_STATS_GAP_BAND_CENTER_FREQ1_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PDEV_STATS_GAP_BAND_CENTER_FREQ1_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PDEV_STATS_CONSECUTIVE_FAILURE_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PDEV_STATS_CONSECUTIVE_FAILURE_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PDEV_STATS_NUM_FILS_DISC_ENQD_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_PDEV_STATS_NUM_FILS_DISC_ENQD_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_PDEV_STATS_RESET_CAUSE_BITMAP_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_PDEV_STATS_RESET_CAUSE_BITMAP_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_PDEV_STATS_SWBA_NUM_OF_VDEVS_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_PDEV_STATS_SWBA_NUM_OF_VDEVS_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_PDEV_STATS_HOME_CHAN_MHZ_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PDEV_STATS_HOME_CHAN_MHZ_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PDEV_STATS_HOME_CHAN_FLAGS_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PDEV_STATS_HOME_CHAN_FLAGS_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PDEV_STATS_HOME_CHAN_BAND_FREQ_1_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PDEV_STATS_HOME_CHAN_BAND_FREQ_1_SET(flag,val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PDEV_STATS_HOME_CHAN_BAND_FREQ_2_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PDEV_STATS_HOME_CHAN_BAND_FREQ_2_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PDEV_STATS_CUR_CHAN_MHZ_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PDEV_STATS_CUR_CHAN_MHZ_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PDEV_STATS_CUR_CHAN_FLAGS_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PDEV_STATS_CUR_CHAN_FLAGS_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PDEV_STATS_CUR_CHAN_BAND_FREQ_1_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PDEV_STATS_CUR_CHAN_BAND_FREQ_1_SET(flag,val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PDEV_STATS_CUR_CHAN_BAND_FREQ_2_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PDEV_STATS_CUR_CHAN_BAND_FREQ_2_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PDEV_STATS_BURST_MODE_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_PDEV_STATS_BURST_MODE_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_PDEV_STATS_PENDING_ISR_STATUS_GET(flag) \
- WMI_GET_BITS(flag, 8, 16)
- #define WMI_PDEV_STATS_PENDING_ISR_STATUS_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 16, val)
- #define WMI_PDEV_STATS_BCN_Q_NUM_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_PDEV_STATS_BCN_Q_NUM_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_PDEV_STATS_NUM_BCNS_QUEUED_TO_HW_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_PDEV_STATS_NUM_BCNS_QUEUED_TO_HW_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_PDEV_STATS_SWFDA_VDEV_ID_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_PDEV_STATS_SWFDA_VDEV_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_PDEV_STATS_ABORT_RESULT_GET(flag) \
- WMI_GET_BITS(flag, 0, 1)
- #define WMI_PDEV_STATS_ABORT_RESULT_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 1, val)
- #define WMI_PDEV_STATS_SCHED_ALGO_RESUME_NEEDED_GET(flag) \
- WMI_GET_BITS(flag, 1, 1)
- #define WMI_PDEV_STATS_SCHED_ALGO_RESUME_NEEDED_SET(flag, val) \
- WMI_SET_BITS(flag, 1, 1, val)
- #define WMI_PDEV_STATS_ABORT_REASON_GET(flag) \
- WMI_GET_BITS(flag, 2, 3)
- #define WMI_PDEV_STATS_ABORT_REASON_SET(flag, val) \
- WMI_SET_BITS(flag, 2, 3, val)
- #define WMI_PDEV_STATS_IS_TXSUSPENDED_GET(flag) \
- WMI_GET_BITS(flag, 5, 1)
- #define WMI_PDEV_STATS_IS_TXSUSPENDED_SET(flag, val) \
- WMI_SET_BITS(flag, 5, 1, val)
- #define WMI_PDEV_STATS_IS_SCHEDSUSPENDED_GET(flag) \
- WMI_GET_BITS(flag, 6, 1)
- #define WMI_PDEV_STATS_IS_SCHEDSUSPENDED_SET(flag, val) \
- WMI_SET_BITS(flag, 6, 1, val)
- #define WMI_PDEV_STATS_IS_TXSUSPENDED_WITH_AFC_GET(flag) \
- WMI_GET_BITS(flag, 7, 1)
- #define WMI_PDEV_STATS_IS_TXSUSPENDED_WITH_AFC_SET(flag, val) \
- WMI_SET_BITS(flag, 7, 1, val)
- #define WMI_PDEV_STATS_IS_SCHEDSUSPENDED_WITH_AFC_GET(flag) \
- WMI_GET_BITS(flag, 8, 1)
- #define WMI_PDEV_STATS_IS_SCHEDSUSPENDED_WITH_AFC_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 1, val)
- #define WMI_PDEV_STATS_SW_RETRY_MPDU_COUNT_TH_GET(flag) \
- WMI_GET_BITS(flag, 9, 1)
- #define WMI_PDEV_STATS_SW_RETRY_MPDU_COUNT_TH_SET(flag, val) \
- WMI_SET_BITS(flag, 9, 1, val)
- #define WMI_PDEV_STATS_SENDBAR_COMPL_IN_PROGRESS_GET(flag) \
- WMI_GET_BITS(flag, 10, 1)
- #define WMI_PDEV_STATS_SENDBAR_COMPL_IN_PROGRESS_SET(flag, val) \
- WMI_SET_BITS(flag, 10, 1, val)
- #define WMI_PDEV_STATS_CAC_ENABLED_GET(flag) \
- WMI_GET_BITS(flag, 11, 1)
- #define WMI_PDEV_STATS_CAC_ENABLED_SET(flag, val) \
- WMI_SET_BITS(flag, 11, 1, val)
- #define WMI_PDEV_STATS_PAUSED_GET(flag) \
- WMI_GET_BITS(flag, 12, 1)
- #define WMI_PDEV_STATS_PAUSED_SET(flag, val) \
- WMI_SET_BITS(flag, 12, 1, val)
- #define WMI_PDEV_STATS_SUSPENDED_GET(flag) \
- WMI_GET_BITS(flag, 13, 1)
- #define WMI_PDEV_STATS_SUSPENDED_SET(flag, val) \
- WMI_SET_BITS(flag, 13, 1, val)
- #define WMI_PDEV_STATS_MAC_COLD_RESET_GET(flag) \
- WMI_GET_BITS(flag, 14, 1)
- #define WMI_PDEV_STATS_MAC_COLD_RESET_SET(flag, val) \
- WMI_SET_BITS(flag, 14, 1, val)
- #define WMI_PDEV_STATS_SAFE_TO_ACCESS_HW_GET(flag) \
- WMI_GET_BITS(flag, 15, 1)
- #define WMI_PDEV_STATS_SAFE_TO_ACCESS_HW_SET(flag, val) \
- WMI_SET_BITS(flag, 15, 1, val)
- #define WMI_PDEV_STATS_STA_PS_STATECHG_ENABLE_GET(flag) \
- WMI_GET_BITS(flag, 16, 1)
- #define WMI_PDEV_STATS_STA_PS_STATECHG_ENABLE_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 1, val)
- #define WMI_PDEV_STATS_WAL_HOST_SCAN_IN_PROGRESS_GET(flag) \
- WMI_GET_BITS(flag, 17, 1)
- #define WMI_PDEV_STATS_WAL_HOST_SCAN_IN_PROGRESS_SET(flag, val) \
- WMI_SET_BITS(flag, 17, 1, val)
- #define WMI_PDEV_STATS_ATF_CONFIG_GET(flag) \
- WMI_GET_BITS(flag, 18, 1)
- #define WMI_PDEV_STATS_ATF_CONFIG_SET(flag, val) \
- WMI_SET_BITS(flag, 18, 1, val)
- #define WMI_PDEV_STATS_EAPOL_AC_OVERRIDE_GET(flag) \
- WMI_GET_BITS(flag, 19, 1)
- #define WMI_PDEV_STATS_EAPOL_AC_OVERRIDE_SET(flag, val) \
- WMI_SET_BITS(flag, 19, 1, val)
- #define WMI_PDEV_STATS_CALC_NEXT_DTIM_CNT_GET(flag) \
- WMI_GET_BITS(flag, 20, 1)
- #define WMI_PDEV_STATS_CALC_NEXT_DTIM_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 20, 1, val)
- #define WMI_PDEV_STATS_ATF_STRICT_SCH_GET(flag) \
- WMI_GET_BITS(flag, 21, 1)
- #define WMI_PDEV_STATS_ATF_STRICT_SCH_SET(flag, val) \
- WMI_SET_BITS(flag, 21, 1, val)
- #define WMI_PDEV_STATS_BCN_TX_MODE_GET(flag) \
- WMI_GET_BITS(flag, 22, 2)
- #define WMI_PDEV_STATS_BCN_TX_MODE_SET(flag, val) \
- WMI_SET_BITS(flag, 22, 2, val)
- #define WMI_PDEV_STATS_IS_MONITOR_TYPE_PRESENT_GET(flag) \
- WMI_GET_BITS(flag, 24, 1)
- #define WMI_PDEV_STATS_IS_MONITOR_TYPE_PRESENT_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 1, val)
- #define WMI_PDEV_STATS_DYN_BW_GET(flag) \
- WMI_GET_BITS(flag, 25, 1)
- #define WMI_PDEV_STATS_DYN_BW_SET(flag, val) \
- WMI_SET_BITS(flag, 25, 1, val)
- #define WMI_PDEV_STATS_IS_MLO_SUPPORTED_GET(flag) \
- WMI_GET_BITS(flag, 26, 1)
- #define WMI_PDEV_STATS_IS_MLO_SUPPORTED_SET(flag, val) \
- WMI_SET_BITS(flag, 26, 1, val)
- #define WMI_PDEV_STATS_GAP_TX_CH_MASK_VALID_GET(flag) \
- WMI_GET_BITS(flag, 27, 1)
- #define WMI_PDEV_STATS_GAP_TX_CH_MASK_VALID_SET(flag, val) \
- WMI_SET_BITS(flag, 27, 1, val)
- #define WMI_PDEV_STATS_GAP_RX_CH_MASK_VALID_GET(flag) \
- WMI_GET_BITS(flag, 28, 1)
- #define WMI_PDEV_STATS_GAP_RX_CH_MASK_VALID_SET(flag, val) \
- WMI_SET_BITS(flag, 28, 1, val)
- #define WMI_PDEV_STATS_GAP_PHY_MODE_VALID_GET(flag) \
- WMI_GET_BITS(flag, 29, 1)
- #define WMI_PDEV_STATS_GAP_PHY_MODE_VALID_SET(flag, val) \
- WMI_SET_BITS(flag, 29, 1, val)
- #define WMI_PDEV_STATS_GAP_CLKGATE_VALID_GET(flag) \
- WMI_GET_BITS(flag, 30, 1)
- #define WMI_PDEV_STATS_GAP_CLKGATE_VALID_SET(flag, val) \
- WMI_SET_BITS(flag, 30, 1, val)
- #define WMI_PDEV_STATS_BURST_ENABLE_GET(flag) \
- WMI_GET_BITS(flag, 31, 1)
- #define WMI_PDEV_STATS_BURST_ENABLE_SET(flag, val) \
- WMI_SET_BITS(flag, 31, 1, val)
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ctrl_path_btcoex_stats_struct*/
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC */
- A_UINT32 pdev_id;
- /** Counts the number of BT TX requests */
- A_UINT32 bt_tx_req_cntr;
- /** Counts the number of BT RX requests */
- A_UINT32 bt_rx_req_cntr;
- /** Counts the number of BT requests that got NACKed */
- A_UINT32 bt_req_nack_cntr;
- /** Counts the number of WLAN TX request denied due to scheduled BT activity */
- A_UINT32 wl_tx_req_nack_schd_bt_reason_cntr;
- /** Counts the number of WLAN TX request denied due to current BT activity */
- A_UINT32 wl_tx_req_nack_current_bt_reason_cntr;
- /** Counts the number of WLAN TX request denied due to other WLAN in TX reason */
- A_UINT32 wl_tx_req_nack_other_wlan_tx_reason_cntr;
- /** Counts the number of times the WLAN in TX is aborted after getting ACKed */
- A_UINT32 wl_in_tx_abort_cntr;
- /** Counts the number of Auto Response WLAN TX requests */
- A_UINT32 wl_tx_auto_resp_req_cntr;
- /** Counts the number of ACKed WLAN TX requests */
- A_UINT32 wl_tx_req_ack_cntr;
- /** Counts the number of WLAN TX requests */
- A_UINT32 wl_tx_req_cntr;
- } wmi_ctrl_path_btcoex_stats_struct;
- /* Send diag event based on trigger reasons */
- typedef enum {
- WMI_DIAG_TRIGGER_MIN = 0x1000,
- WMI_DIAG_TRIGGER_HOST_REQUESTED = WMI_DIAG_TRIGGER_MIN,
- WMI_DIAG_TRIGGER_BEACON_MISS,
- WMI_DIAG_TRIGGER_SCAN_FAIL,
- WMI_DIAG_TRIGGER_DISCONNECT,
- WMI_DIAG_TRIGGER_ENTER_BMPS_IMPS_FAIL,
- WMI_DIAG_TRIGGER_BUFFER_FULL,
- WMI_DIAG_TRIGGER_DATA_STALL,
- WMI_DIAG_TRIGGER_TIMER_TRIGGERED,
- WMI_DIAG_TRIGGER_REMOTE_COPY,
- WMI_DIAG_TRIGGER_CAL_FAILURE,
- WMI_DIAG_TRIGGER_FES_BKPRESS_DEV_RESET_IND,
- WMI_DIAG_TRIGGER_MAX,
- } wmi_diag_trigger_e;
- typedef enum {
- WMI_CTRL_PATH_STATS_ARENA_HRAM,
- WMI_CTRL_PATH_STATS_ARENA_HCRAM,
- WMI_CTRL_PATH_STATS_ARENA_HREMOTE,
- WMI_CTRL_PATH_STATS_ARENA_HCREMOTE,
- WMI_CTRL_PATH_STATS_ARENA_REMOTE,
- WMI_CTRL_PATH_STATS_ARENA_SRAM,
- WMI_CTRL_PATH_STATS_ARENA_SRAM_AUX,
- WMI_CTRL_PATH_STATS_ARENA_PAGEABLE,
- WMI_CTRL_PATH_STATS_ARENA_CMEM,
- WMI_CTRL_PATH_STATS_ARENA_TRAM,
- WMI_CTRL_PATH_STATS_ARENA_HWIO,
- WMI_CTRL_PATH_STATS_ARENA_CALDB,
- WMI_CTRL_PATH_STATS_ARENA_M3,
- WMI_CTRL_PATH_STATS_ARENA_ETMREMOTE,
- WMI_CTRL_PATH_STATS_ARENA_M3_DUMP,
- WMI_CTRL_PATH_STATS_ARENA_EMUPHY,
- WMI_CTRL_PATH_STATS_ARENA_DBG_SRAM,
- WMI_CTRL_PATH_STATS_ARENA_DBG_SRAM_AUX,
- WMI_CTRL_PATH_STATS_ARENA_SRAM_AUX_OVERFLOW,
- WMI_CTRL_PATH_STATS_ARENA_AMSS,
- WMI_CTRL_PATH_STATS_ARENA_MLO_SHMEM,
- WMI_CTRL_PATH_STATS_ARENA_MLO_H_SHMEM,
- WMI_CTRL_PATH_STATS_ARENA_MLO_HC_SHMEM,
- WMI_CTRL_PATH_STATS_ARENA_RRI_CMD,
- WMI_CTRL_PATH_STATS_ARENA_SRAM_CLADE,
- WMI_CTRL_PATH_STATS_ARENA_MAX,
- } wmi_ctrl_path_fw_arena_ids;
- /*
- * Used by some hosts to print names of arenas, based on
- * wmi_ctrl_path_fw_arena_ids values specified in
- * wmi_ctrl_path_mem_stats_struct in ctrl_path_stats event msg.
- */
- static INLINE A_UINT8 *wmi_ctrl_path_fw_arena_id_to_name(A_UINT32 arena_id)
- {
- switch(arena_id)
- {
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_HRAM);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_HCRAM);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_HREMOTE);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_HCREMOTE);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_REMOTE);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_SRAM);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_SRAM_AUX);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_PAGEABLE);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_CMEM);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_TRAM);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_HWIO);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_CALDB);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_M3);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_ETMREMOTE);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_M3_DUMP);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_EMUPHY);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_DBG_SRAM);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_DBG_SRAM_AUX);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_SRAM_AUX_OVERFLOW);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_AMSS);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_MLO_SHMEM);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_MLO_H_SHMEM);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_MLO_HC_SHMEM);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_RRI_CMD);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_ARENA_SRAM_CLADE);
- }
- return (A_UINT8 *) "WMI_CTRL_PATH_STATS_ARENA_UNKNOWN";
- }
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ctrl_path_mem_stats_struct */
- A_UINT32 tlv_header;
- A_UINT32 arena_id; /* see wmi_ctrl_path_fw_arena_ids */
- A_UINT32 total_bytes; /* total bytes in each arena */
- A_UINT32 allocated_bytes; /* allocated bytes in each arena */
- } wmi_ctrl_path_mem_stats_struct;
- /* status code of Get stats TWT dialog */
- typedef enum _WMI_GET_STATS_TWT_STATUS_T {
- WMI_GET_STATS_TWT_STATUS_OK, /* Get status TWT dialog successfully completed */
- WMI_GET_STATS_TWT_STATUS_DIALOG_ID_NOT_EXIST,/* TWT dialog ID does not exist */
- WMI_GET_STATS_TWT_STATUS_INVALID_PARAM, /* invalid parameters */
- } WMI_GET_STATS_TWT_STATUS_T;
- /* Resp type of ODD command operation */
- typedef enum _WMI_ODD_ADDR_READ_OPTION_TYPE_T {
- WMI_ODD_ADDR_READ_OPTION_TYPE_ADD_ADDR_COMMAND, /* Resp for the command to add/configure address space */
- WMI_ODD_ADDR_READ_OPTION_TYPE_DEL_ADDR_COMMAND, /* Resp for the command to del/reset address space */
- WMI_ODD_ADDR_READ_OPTION_TYPE_DISP_ADDR_COMMAND, /* Resp for the command to display address space */
- WMI_ODD_ADDR_READ_OPTION_TYPE_DISP_VAL_COMMAND, /* Resp for the command to display value at address space */
- } WMI_ODD_ADDR_READ_OPTION_TYPE_T;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ctrl_path_twt_stats_struct */
- A_UINT32 tlv_header;
- A_UINT32 dialog_id; /* TWT dialog ID */
- A_UINT32 status; /* refer to WMI_GET_STATS_TWT_STATUS_T */
- A_UINT32 num_sp_cycles; /* Number of TWT SP's*/
- A_UINT32 avg_sp_dur_us; /* Average SP time */
- A_UINT32 min_sp_dur_us; /* Minimum SP time */
- A_UINT32 max_sp_dur_us; /* Maximum SP time */
- A_UINT32 tx_mpdu_per_sp; /* Average pkts tx per SP */
- A_UINT32 rx_mpdu_per_sp; /* Average pkts rx per SP */
- A_UINT32 tx_bytes_per_sp; /* Average tx bytes per SP */
- A_UINT32 rx_bytes_per_sp; /* Average rx bytes per SP */
- } wmi_ctrl_path_twt_stats_struct;
- #define BMISS_STATS_RSSI_SAMPLE_MAX 10
- typedef struct {
- A_INT32 rssi; /* dBm units */
- A_UINT32 sample_time; /* timestamp from host/target shared qtimer */
- } bmiss_stats_rssi_samples_t;
- typedef struct {
- A_UINT32 num_of_bmiss_sequences; /* number of consecutive bmiss > 2 */
- A_UINT32 num_bitmask_wraparound; /* number of times bitmask wrapped around */
- A_UINT32 num_bcn_hist_lost; /* number of beacons history we have lost */
- } consecutive_bmiss_stats_t;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ctrl_path_bmiss_stats_struct */
- A_UINT32 tlv_header;
- A_UINT32 num_pre_bmiss; /* number of pre_bmiss */
- bmiss_stats_rssi_samples_t rssi_samples[BMISS_STATS_RSSI_SAMPLE_MAX]; /* RSSI samples at pre bmiss*/
- /* rssi_sample_curr_index:
- * index of the element in rssi_samples array containing the oldest sample
- */
- A_UINT32 rssi_sample_curr_index;
- A_UINT32 num_first_bmiss; /* number of first bmiss */
- A_UINT32 num_final_bmiss; /* number of final bmiss */
- A_UINT32 num_null_sent_in_first_bmiss; /* number of null frames sent in first bmiss */
- A_UINT32 num_null_failed_in_first_bmiss; /* number of failed null frames in first bmiss */
- A_UINT32 num_null_sent_in_final_bmiss; /* number of null frames sent in final bmiss */
- A_UINT32 num_null_failed_in_final_bmiss; /* number of failed null frames in final bmiss */
- consecutive_bmiss_stats_t cons_bmiss_stats;
- } wmi_ctrl_path_bmiss_stats_struct;
- typedef enum {
- WMI_CTRL_PATH_STATS_CAL_PROFILE_COLD_BOOT_CAL = 0x0,
- WMI_CTRL_PATH_STATS_CAL_PROFILE_FULL_CHAN_SWITCH = 0x1,
- WMI_CTRL_PATH_STATS_CAL_PROFILE_SCAN_CHAN_SWITCH = 0x2,
- WMI_CTRL_PATH_STATS_CAL_PROFILE_DPD_SPLIT_CAL = 0x3,
- WMI_CTRL_PATH_STATS_CAL_PROFILE_TEMP_TRIGEER_CAL = 0x4,
- WMI_CTRL_PATH_STATS_CAL_PROFILE_POWER_SAVE_WAKE_UP = 0x5,
- WMI_CTRL_PATH_STATS_CAL_PROFILE_TIMER_TRIGGER_CAL = 0x6,
- WMI_CTRL_PATH_STATS_CAL_PROFILE_FTM_TRIGGER_CAL = 0x7,
- WMI_CTRL_PATH_STATS_CAL_PROFILE_AGILE_OR_POWER_DOWN_DTIM = 0x8,
- WMI_CTRL_PATH_STATS_CAL_PROFILE_NOISY_ENV_RXDO = 0x9,
- /* add new cal profiles above this line */
- WMI_CTRL_PATH_STATS_CAL_PROFILE_INVALID = 0x1F
- } wmi_ctrl_path_stats_cal_profile_ids;
- typedef enum {
- WMI_CTRL_PATH_STATS_CAL_TYPE_ADC = 0x0,
- WMI_CTRL_PATH_STATS_CAL_TYPE_DAC = 0x1,
- WMI_CTRL_PATH_STATS_CAL_TYPE_PROCESS = 0x2,
- WMI_CTRL_PATH_STATS_CAL_TYPE_NOISE_FLOOR = 0x3,
- WMI_CTRL_PATH_STATS_CAL_TYPE_RXDCO = 0x4,
- WMI_CTRL_PATH_STATS_CAL_TYPE_COMB_TXLO_TXIQ_RXIQ = 0x5,
- WMI_CTRL_PATH_STATS_CAL_TYPE_TXLO = 0x6,
- WMI_CTRL_PATH_STATS_CAL_TYPE_TXIQ = 0x7,
- WMI_CTRL_PATH_STATS_CAL_TYPE_RXIQ = 0x8,
- WMI_CTRL_PATH_STATS_CAL_TYPE_IM2 = 0x9,
- WMI_CTRL_PATH_STATS_CAL_TYPE_LNA = 0xa,
- WMI_CTRL_PATH_STATS_CAL_TYPE_DPD_LP_RXDCO = 0xb,
- WMI_CTRL_PATH_STATS_CAL_TYPE_DPD_LP_RXIQ = 0xc,
- WMI_CTRL_PATH_STATS_CAL_TYPE_DPD_MEMORYLESS = 0xd,
- WMI_CTRL_PATH_STATS_CAL_TYPE_DPD_MEMORY = 0xe,
- WMI_CTRL_PATH_STATS_CAL_TYPE_IBF = 0xf,
- WMI_CTRL_PATH_STATS_CAL_TYPE_PDET_AND_PAL = 0x10,
- WMI_CTRL_PATH_STATS_CAL_TYPE_RXDCO_IQ = 0x11,
- WMI_CTRL_PATH_STATS_CAL_TYPE_RXDCO_DTIM = 0x12,
- WMI_CTRL_PATH_STATS_CAL_TYPE_TPC_CAL = 0x13,
- WMI_CTRL_PATH_STATS_CAL_TYPE_DPD_TIMEREQ = 0x14,
- WMI_CTRL_PATH_STATS_CAL_TYPE_BWFILTER = 0x15,
- WMI_CTRL_PATH_STATS_CAL_TYPE_PEF = 0x16,
- WMI_CTRL_PATH_STATS_CAL_TYPE_PADROOP = 0x17,
- WMI_CTRL_PATH_STATS_CAL_TYPE_SELFCALTPC = 0x18,
- WMI_CTRL_PATH_STATS_CAL_TYPE_RXSPUR = 0x19,
- /* add new cal types above this line */
- WMI_CTRL_PATH_STATS_CAL_TYPE_INVALID = 0xFF
- } wmi_ctrl_path_stats_cal_type_ids;
- typedef enum {
- WMI_CTRL_PATH_STATS_PERIODIC_CAL_TYPE_NOISE_FLOOR = 0x0,
- WMI_CTRL_PATH_STATS_PERIODIC_CAL_TYPE_DPD_MEMORYLESS = 0x1,
- WMI_CTRL_PATH_STATS_PERIODIC_CAL_TYPE_DPD_MEMORY = 0x2,
- /* add new periodic cal types above this line */
- WMI_CTRL_PATH_STATS_PERIODIC_CAL_TYPE_INVALID = 0xFF
- } wmi_ctrl_path_stats_periodic_cal_type_ids;
- typedef enum {
- WMI_CAL_FAILURE_REASON_ERROR_MIN = 0x0,
- /* DPD failure reasons */
- WMI_CAL_FAILURE_REASON_DPD_NMSE_FAIL = 0x1,
- WMI_CAL_FAILURE_REASON_DPD_SQ_FAIL = 0x2,
- WMI_CAL_FAILURE_REASON_DPD_HW_FAIL = 0x3,
- WMI_CAL_FAILURE_REASON_DPD_EXCESSIVE_RETRY = 0x4,
- /* RXDCO failure reasons */
- WMI_CAL_FAILURE_REASON_RXDCO_HW_CAL_EXCESSIVE_RETRY = 0x5,
- WMI_CAL_FAILURE_REASON_RXDCO_INVALID_HW_CAL = 0x6,
- WMI_CAL_FAILURE_REASON_RXDCO_HW_AND_SWPP_FAILURE = 0x7,
- /* ADC failure reasons */
- WMI_CAL_FAILURE_REASON_TIADC_INVALID_BAND = 0x8,
- /* BWFILTER failure reasons */
- WMI_CAL_FAILURE_REASON_TXBBF = 0x9,
- WMI_CAL_FAILURE_REASON_RXBBF = 0xa,
- /* PKDET failure reasons */
- WMI_CAL_FAILURE_REASON_PKDET = 0xb,
- /* COMBCAL failure reasons */
- WMI_CAL_FAILURE_REASON_COMB = 0xc,
- /* add new cal failure error reasons above this line */
- WMI_CAL_FAILURE_REASON_ERROR_MAX = 0xff,
- } wmi_cal_failure_reason_code;
- /*
- * Used by some hosts to print names of cal profile, based on
- * wmi_ctrl_path_cal_profile_ids values specified in
- * wmi_ctrl_path_calibration_stats_struct in ctrl_path_stats event msg.
- */
- static INLINE
- A_UINT8 *wmi_ctrl_path_cal_profile_id_to_name(A_UINT32 cal_profile_id)
- {
- switch (cal_profile_id)
- {
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_PROFILE_COLD_BOOT_CAL);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_PROFILE_FULL_CHAN_SWITCH);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_PROFILE_SCAN_CHAN_SWITCH);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_PROFILE_DPD_SPLIT_CAL);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_PROFILE_TEMP_TRIGEER_CAL);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_PROFILE_POWER_SAVE_WAKE_UP);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_PROFILE_TIMER_TRIGGER_CAL);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_PROFILE_FTM_TRIGGER_CAL);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_PROFILE_AGILE_OR_POWER_DOWN_DTIM);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_PROFILE_NOISY_ENV_RXDO);
- }
- return (A_UINT8 *) "WMI_CTRL_PATH_STATS_CAL_PROFILE_UNKNOWN";
- }
- /*
- * Used by some hosts to print names of cal type, based on
- * wmi_ctrl_path_cal_type_ids values specified in
- * wmi_ctrl_path_calibration_stats_struct in ctrl_path_stats event msg.
- */
- static INLINE A_UINT8 *wmi_ctrl_path_cal_type_id_to_name(A_UINT32 cal_type_id)
- {
- switch (cal_type_id)
- {
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_ADC);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_DAC);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_PROCESS);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_NOISE_FLOOR);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_RXDCO);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_COMB_TXLO_TXIQ_RXIQ);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_TXLO);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_TXIQ);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_RXIQ);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_IM2);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_LNA);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_DPD_LP_RXDCO);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_DPD_LP_RXIQ);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_DPD_MEMORYLESS);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_DPD_MEMORY);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_IBF);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_PDET_AND_PAL);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_RXDCO_IQ);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_RXDCO_DTIM);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_TPC_CAL);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_DPD_TIMEREQ);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_BWFILTER);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_PEF);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_PADROOP);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_SELFCALTPC);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_CAL_TYPE_RXSPUR);
- }
- return (A_UINT8 *) "WMI_CTRL_PATH_STATS_CAL_TYPE_UNKNOWN";
- }
- /*
- * Used by some hosts to print names of peridodic cal type, based on
- * wmi_ctrl_path_periodic_cal_type_ids values specified in
- * wmi_ctrl_path_calibration_stats_struct in ctrl_path_stats event msg.
- */
- static INLINE A_UINT8 *wmi_ctrl_path_periodic_cal_type_id_to_name(A_UINT32 periodic_cal_type_id)
- {
- switch (periodic_cal_type_id)
- {
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_PERIODIC_CAL_TYPE_NOISE_FLOOR);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_PERIODIC_CAL_TYPE_DPD_MEMORYLESS);
- WMI_RETURN_STRING(WMI_CTRL_PATH_STATS_PERIODIC_CAL_TYPE_DPD_MEMORY);
- }
- return (A_UINT8 *) "WMI_CTRL_PATH_STATS_PERIODIC_CAL_TYPE_UNKNOWN";
- }
- /*
- * Used by some hosts to print names of cal failure reason code, based on
- * wmi_ctrl_path_cal_failure_reason_codes values specified in cal fail event msg
- */
- static INLINE A_UINT8 *wmi_cal_failure_reason_code_to_name(A_UINT32 cal_failure_reason_code)
- {
- switch (cal_failure_reason_code)
- {
- WMI_RETURN_STRING(WMI_CAL_FAILURE_REASON_ERROR_MIN);
- WMI_RETURN_STRING(WMI_CAL_FAILURE_REASON_DPD_NMSE_FAIL);
- WMI_RETURN_STRING(WMI_CAL_FAILURE_REASON_DPD_SQ_FAIL);
- WMI_RETURN_STRING(WMI_CAL_FAILURE_REASON_DPD_HW_FAIL);
- WMI_RETURN_STRING(WMI_CAL_FAILURE_REASON_DPD_EXCESSIVE_RETRY);
- WMI_RETURN_STRING(WMI_CAL_FAILURE_REASON_RXDCO_HW_CAL_EXCESSIVE_RETRY);
- WMI_RETURN_STRING(WMI_CAL_FAILURE_REASON_RXDCO_INVALID_HW_CAL);
- WMI_RETURN_STRING(WMI_CAL_FAILURE_REASON_RXDCO_HW_AND_SWPP_FAILURE);
- WMI_RETURN_STRING(WMI_CAL_FAILURE_REASON_TIADC_INVALID_BAND);
- WMI_RETURN_STRING(WMI_CAL_FAILURE_REASON_TXBBF);
- WMI_RETURN_STRING(WMI_CAL_FAILURE_REASON_RXBBF);
- WMI_RETURN_STRING(WMI_CAL_FAILURE_REASON_PKDET);
- WMI_RETURN_STRING(WMI_CAL_FAILURE_REASON_COMB);
- }
- return (A_UINT8 *) "WMI_CAL_FAILURE_REASON_UNKNOWN";
- }
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ctrl_path_calibration_stats_struct*/
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC/PHY */
- A_UINT32 pdev_id;
- /** Bit 0 - 7 : cal type / periodic cal type
- * These bits hold either a wmi_ctrl_path_stats_cal_type_ids
- * value for generic cal (if bit 13 is cleared) or a
- * wmi_ctrl_path_stats_periodic_cal_type_ids value for
- * periodic cal (if bit 13 is set).
- * Signifies the type of calibration
- * cal_type : 8
- * Bit 8 - 12 : These bits hold a wmi_ctrl_path_stats_cal_profile_ids value.
- * Signifies the type of cal profile
- * cal_profile : 5
- * Bit 13 : Signifies whether stats is for generic cal or periodic cal
- * is_cal_periodic : 1
- * 0 -> generic cal
- * 1 -> periodic cal
- * Bit 14 - 31: Reserved for future
- */
- A_UINT32 cal_info;
- A_UINT32 cal_triggered_cnt; /* Count of number of times calibration triggered */
- A_UINT32 cal_fail_cnt; /* Count of number of times calibration failed */
- A_UINT32 cal_fcs_cnt; /* Count of number of times FCS done for cal */
- A_UINT32 cal_fcs_fail_cnt; /* Count of number of times FCS failed for cal */
- } wmi_ctrl_path_calibration_stats_struct;
- #define WMI_CTRL_PATH_CALIBRATION_STATS_CAL_TYPE_GET(cal_info) WMI_GET_BITS(cal_info, 0, 8)
- #define WMI_CTRL_PATH_CALIBRATION_STATS_CAL_TYPE_SET(cal_info, cal_type) WMI_SET_BITS(cal_info, 0, 8, cal_type)
- #define WMI_CTRL_PATH_CALIBRATION_STATS_CAL_PROFILE_GET(cal_info) WMI_GET_BITS(cal_info, 8, 5)
- #define WMI_CTRL_PATH_CALIBRATION_STATS_CAL_PROFILE_SET(cal_info, cal_profile) WMI_SET_BITS(cal_info, 8, 5, cal_profile)
- #define WMI_CTRL_PATH_CALIBRATION_STATS_IS_PERIODIC_CAL_GET(cal_info) WMI_GET_BITS(cal_info, 13, 1)
- #define WMI_CTRL_PATH_CALIBRATION_STATS_IS_PERIODIC_CAL_SET(cal_info, is_periodic) WMI_SET_BITS(cal_info, 13, 1, is_periodic)
- /* 0=20MHz, 1=40MHz, 2=80MHz, 3=160MHz, 4=240MHz, 5=320MHz */
- #define WMI_AWGN_MAX_BW 6
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ctrl_path_awgn_stats_struct
- * For 6G FCC test we have to monitor channel interference and switch
- * to non-interference channel.
- * Additive White Gaussian Noise (AWGN) interference detection logic
- * is used to detect interference based upon CCA / BW drop / packet drop.
- * Once AWGN interference is detected, the target sends
- * WMI_DCS_INTERFERENCE_EVENTID to host for channel change/BW change.
- * This stats struct is used to get info about how many times these
- * CCA_Interference/BW_Drop/Pkt_Drop indicators of AWGN occur.
- */
- A_UINT32 tlv_header;
- /*
- * AWGN WMI event sent count
- * This is used to inform how many WMI_DCS_INTERFERENCE_EVENTID have been
- * sent to the host.
- * WMI_DCS_INTERFERENCE_EVENTID is sent whenever one or more of
- * CCA_Int/BW_Drop/Channel_Change(Pkt_Drop) happen.
- */
- A_UINT32 awgn_send_evt_cnt;
- /* AWGN primary int count */
- A_UINT32 awgn_pri_int_cnt;
- /* AWGN secondary int count */
- A_UINT32 awgn_sec_int_cnt;
- /*
- * AWGN pkt drop trigger count
- * This shows how many times the presence of interference on the
- * primary BW has been inferred due to pkt drops.
- * WMI_DCS_INTERFERENCE_EVENTID will be sent whenever there is
- * interference on Primary Channel.
- */
- A_UINT32 awgn_pkt_drop_trigger_cnt;
- /* awgn pkt drop trigger reset count */
- A_UINT32 awgn_pkt_drop_trigger_reset_cnt;
- /*
- * AWGN bandwidth drop count
- * This is used to inform count for any frame transmitted on lower BW
- * than configured BW.
- * WMI_DCS_INTERFERENCE_EVENTID will be sent whenever there is BW drop.
- */
- A_UINT32 awgn_bw_drop_cnt;
- /* AWGN bandwidth drop reset count */
- A_UINT32 awgn_bw_drop_reset_cnt;
- /*
- * AWGN CCA int count
- * This is used to inform the interference based on CCA registers.
- * WMI_DCS_INTERFERENCE_EVENTID will be sent whenever there is CCA
- * interference.
- */
- A_UINT32 awgn_cca_int_cnt;
- /* AWGN cca int reset count */
- A_UINT32 awgn_cca_int_reset_cnt;
- /* AWGN cca ack blk count */
- A_UINT32 awgn_cca_ack_blk_cnt;
- /* AWGN cca ack blk reset count */
- A_UINT32 awgn_cca_ack_reset_cnt;
- /*
- * AWGN int BW cnt used to store interference occurred at 20/40/80/160MHz
- * awgn_int_bw_cnt[0] counts interference detections in 20 MHz BW,
- * awgn_int_bw_cnt[1] counts interference detections in 40 MHz BW,
- * awgn_int_bw_cnt[2] counts interference detections in 80 MHz BW,
- * awgn_int_bw_cnt[3] counts interference detections in 160 MHz BW,
- * awgn_int_bw_cnt[4] is reserved for 240 MHz BW,
- * awgn_int_bw_cnt[5] counts interference detections in 320 MHz BW.
- */
- A_UINT32 awgn_int_bw_cnt[WMI_AWGN_MAX_BW];
- /* Number of OBSS interference occurred */
- A_UINT32 obss_int_cnt;
- /* Number of OBSS interference Sent to host */
- A_UINT32 obss_int_evt_sent_host_cnt;
- /* Number of OBSS interference skiped due to AWGN as high priority */
- A_UINT32 obss_int_evt_skip_awgn_cnt;
- /* Number of OBSS interference skiped due to duplicate OBSS interference */
- A_UINT32 obss_int_evt_skip_dup_cnt;
- /* Current OBSS interference segment details
- * chan_bw_interference_bitmap:
- * Indicates which 20MHz segments contain interference
- * 320 MHz: bits 0-15
- * 160 MHz: bits 0-7
- * 80 MHz: bits 0-3
- * Within the bitmap, Bit-0 represents lowest 20Mhz, Bit-1 represents
- * second lowest 20Mhz and so on.
- * Each bit position will indicate 20MHz in which interference is seen.
- * (Valid 16 bits out of 32 bit integer)
- */
- A_UINT32 obss_int_cur_int_seg;
- /* Previous OBSS Int Segment details
- * chan_bw_interference_bitmap:
- * Indicates which 20MHz segments contain interference
- * 320 MHz: bits 0-15
- * 160 MHz: bits 0-7
- * 80 MHz: bits 0-3
- * Within the bitmap, Bit-0 represents lowest 20Mhz, Bit-1 represents
- * second lowest 20Mhz and so on.
- * Each bit position will indicate 20MHz in which interference is seen.
- * (Valid 16 bits out of 32 bit integer)
- */
- A_UINT32 obss_int_prv_int_seg;
- /*
- * OBSS int BW cnt used to store interference occurred at 20/40/80/160MHz
- * obss_int_bw_cnt[0] counts interference detections in 20 MHz BW,
- * obss_int_bw_cnt[1] counts interference detections in 40 MHz BW,
- * obss_int_bw_cnt[2] counts interference detections in 80 MHz BW,
- * obss_int_bw_cnt[3] counts interference detections in 160 MHz BW,
- * obss_int_bw_cnt[4] counts interference detections in 240 MHz BW,
- * obss_int_bw_cnt[5] counts interference detections in 320 MHz BW,
- */
- A_UINT32 obss_int_bw_cnt[WMI_AWGN_MAX_BW];
- } wmi_ctrl_path_awgn_stats_struct;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ctrl_path_dfs_channel_stats_struct*/
- A_UINT32 tlv_header;
- /** pdev_id for identifying the PHY */
- A_UINT32 pdev_id;
- /** nol element num */
- A_UINT32 nol;
- /** Channel in MHz */
- A_UINT32 channel;
- /** Channel width in MHz */
- A_UINT32 chwidth;
- /** Time left for the channel to remain in NOL list (in seconds) */
- A_UINT32 timeleft;
- } wmi_ctrl_path_dfs_channel_stats_struct;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ctrl_path_odd_addr_read_struct*/
- A_UINT32 tlv_header;
- /* resp_type:
- * Response type for each sub option:
- * Add address space, display address, display data, delete address space.
- * Refer to WMI_ODD_ADDR_READ_OPTION_TYPE_T.
- */
- A_UINT32 resp_type;
- /* User configured Entry id */
- A_UINT32 entry_id;
- /* address:
- * User configured Address Space.
- * Any unused elements will be filled with 0x0.
- */
- A_UINT32 address[WMI_MAX_ADDRESS_SPACE];
- /* data
- * Data/Value at the User configured Address Space.
- * Any unused elements will be filled with 0x0.
- */
- A_UINT32 data[WMI_MAX_ADDRESS_SPACE];
- /* Status of the operation performed: 0 = failure, 1 = success */
- A_UINT32 is_success;
- } wmi_ctrl_path_odd_addr_read_struct;
- /*
- * The wmi_ctrl_path_afc_stats_struct is used to send AFC stats within
- * the WMI_CTRL_PATH_STATS_EVENT message, in response to a
- * WMI_REQUEST_CTRL_PATH_STATS_CMD message for the stat type
- * WMI_REQUEST_CTRL_PATH_AFC_STAT.
- */
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ctrl_path_afc_stats_struct */
- A_UINT32 tlv_header;
- A_UINT32 pdev_id; /* pdev_id for identifying the MAC/PHY */
- /* Count of new request ID every time it is generated */
- A_UINT32 request_id_count;
- /* Count of total number of AFC payload received */
- A_UINT32 response_count;
- /* Count of total number of invalid AFC response */
- A_UINT32 invalid_response_count;
- /* Count of total number of AFC resets received */
- A_UINT32 reset_count;
- /* AFC Response error counters*/
- /*
- * Count of total number of incorrect payload received due to
- * request ID and response
- * Increments when request ID doesn't match with response.
- */
- A_UINT32 id_mismatch_count;
- /*
- * Count of total number of "local_error_code" success event
- * received as part of the AFC response payload in the below struct
- * "afc_spectrum_inquiry_resp_bin_type"
- */
- A_UINT32 local_err_code_success;
- /*
- * Count of total number of "local_error_code" failure event
- * received as part of the AFC response payload in the below struct
- * "afc_spectrum_inquiry_resp_bin_type"
- */
- A_UINT32 local_err_code_failure;
- /*
- * The below fields are used to denote the count of
- * different server response code received in "afc_serv_resp_code"
- * received as part of "afc_spectrum_inquiry_resp_bin_type"
- * These resp codes are as per the WFA spec
- */
- /* afc_serv_resp_code = version not supported */
- A_UINT32 serv_resp_code_100;
- /* afc_serv_resp_code = Device disallowed */
- A_UINT32 serv_resp_code_101;
- /* afc_serv_resp_code = Missing param */
- A_UINT32 serv_resp_code_102;
- /* afc_serv_resp_code = invalid value */
- A_UINT32 serv_resp_code_103;
- /* afc_serv_resp_code = unexpected param */
- A_UINT32 serv_resp_code_106;
- /* afc_serv_resp_code = unsupported spectrum */
- A_UINT32 serv_resp_code_300;
- /*
- * AFC Compliance tracker
- */
- /* proxy_standalone_0
- * This field displays the value of Request ID check disable received
- * as part of the INI knob
- */
- A_UINT32 proxy_standalone_0;
- /* proxy_standalone_1
- * This field displays the value of Timer check disable received
- * as part of the INI knob
- */
- A_UINT32 proxy_standalone_1;
- /* Count of successful power events sent to host */
- A_UINT32 power_event_counter;
- /* Count of total force LPI power mode switch when grace count expires */
- A_UINT32 force_LPI_counter;
- /*
- * Count of total number of successful host set
- * TPC command received within the compliance timer
- */
- A_UINT32 tpc_wmi_success_count;
- /*
- * Count of total number of failed host set
- * TPC command. This is incremented when compliance timer expires
- */
- A_UINT32 tpc_wmi_failure_count;
- /*
- * These counters are incremented as part of the
- * Regulatory Compliance check done on the AFC payload
- * received from server
- */
- /* Incorrect PSD value received in freq Obj */
- A_UINT32 psd_failure_count;
- /* Incorrect End freq received in freq Obj */
- A_UINT32 psd_end_freq_failure_count;
- /* Incorrect Start freq received in freq Obj */
- A_UINT32 psd_start_freq_failure_count;
- /* Incorrect EIRP received in channel obj */
- A_UINT32 eirp_failure_count;
- /* Incorrect centre freq channel received in channel obj */
- A_UINT32 cfreq_failure_count;
- /*
- * AFC Current status
- */
- /* Current Request ID */
- A_UINT32 request_id;
- /* grace_timer_count
- * This grace counter increments only after TTL expiry.
- * Cleared to zero once valid payload is received.
- */
- A_UINT32 grace_timer_count;
- /* Current TTL Time in seconds from last valid payload response */
- A_UINT32 cur_ttl_timer;
- /* deployment_mode
- * 6G AP deployment mode denoting indoor or outdoor
- * Indoor = 1, Outdoor = 2
- */
- A_UINT32 deployment_mode;
- /*
- * Proxy mode AFC-Response payload clear count
- */
- A_UINT32 payload_clear_count;
- } wmi_ctrl_path_afc_stats_struct;
- /* AT - Airtime */
- /* AA - Available Airtime */
- #define WMI_PMLO_UL_DL_INBSS_AT_GET_BE(airtime) WMI_GET_BITS(airtime, 0, 8)
- #define WMI_PMLO_UL_DL_INBSS_AT_SET_BE(airtime, value) WMI_SET_BITS(airtime, 0, 8, value)
- #define WMI_PMLO_UL_DL_INBSS_AT_GET_BK(airtime) WMI_GET_BITS(airtime, 8, 8)
- #define WMI_PMLO_UL_DL_INBSS_AT_SET_BK(airtime, value) WMI_SET_BITS(airtime, 8, 8, value)
- #define WMI_PMLO_UL_DL_INBSS_AT_GET_VI(airtime) WMI_GET_BITS(airtime, 16, 8)
- #define WMI_PMLO_UL_DL_INBSS_AT_SET_VI(airtime, value) WMI_SET_BITS(airtime, 16, 8, value)
- #define WMI_PMLO_UL_DL_INBSS_AT_GET_VO(airtime) WMI_GET_BITS(airtime, 24, 8)
- #define WMI_PMLO_UL_DL_INBSS_AT_SET_VO(airtime, value) WMI_SET_BITS(airtime, 24, 8, value)
- #define WMI_PMLO_LINK_OBSS_AT_GET(airtime) WMI_GET_BITS(airtime, 0, 8)
- #define WMI_PMLO_LINK_OBSS_AT_SET(airtime, value) WMI_SET_BITS(airtime, 0, 8, value)
- #define WMI_PMLO_LINK_AA_GET(airtime) WMI_GET_BITS(airtime, 8, 8)
- #define WMI_PMLO_LINK_AA_SET(airtime, value) WMI_SET_BITS(airtime, 8, 8, value)
- #define WMI_PMLO_UL_AIRTIME_NON_AC_GET(airtime) WMI_GET_BITS(airtime, 16, 8)
- #define WMI_PMLO_UL_AIRTIME_NON_AC_SET(airtime, value) WMI_SET_BITS(airtime, 16, 8, value)
- #define WMI_PMLO_DL_AIRTIME_NON_AC_GET(airtime) WMI_GET_BITS(airtime, 24, 8)
- #define WMI_PMLO_DL_AIRTIME_NON_AC_SET(airtime, value) WMI_SET_BITS(airtime, 24, 8, value)
- #define WMI_PMLO_UL_DL_PAYLOAD_RATIO_GET_BE(airtime) WMI_GET_BITS(airtime, 0, 8)
- #define WMI_PMLO_UL_DL_PAYLOAD_RATIO_SET_BE(airtime, value) WMI_SET_BITS(airtime, 0, 8, value)
- #define WMI_PMLO_UL_DL_PAYLOAD_RATIO_GET_BK(airtime) WMI_GET_BITS(airtime, 8, 8)
- #define WMI_PMLO_UL_DL_PAYLOAD_RATIO_SET_BK(airtime, value) WMI_SET_BITS(airtime, 8, 8, value)
- #define WMI_PMLO_UL_DL_PAYLOAD_RATIO_GET_VI(airtime) WMI_GET_BITS(airtime, 16, 8)
- #define WMI_PMLO_UL_DL_PAYLOAD_RATIO_SET_VI(airtime, value) WMI_SET_BITS(airtime, 16, 8, value)
- #define WMI_PMLO_UL_DL_PAYLOAD_RATIO_GET_VO(airtime) WMI_GET_BITS(airtime, 24, 8)
- #define WMI_PMLO_UL_DL_PAYLOAD_RATIO_SET_VO(airtime, value) WMI_SET_BITS(airtime, 24, 8, value)
- /** Traffic condition used in estimating the available airtime value */
- typedef enum {
- WMI_PDEV_TRAFFIC_LIGHT = 0,
- WMI_PDEV_TRAFFIC_MEDIUM = 1,
- WMI_PDEV_TRAFFIC_HEAVY = 2,
- WMI_PDEV_TRAFFIC_SATURATION = 3,
- WMI_PDEV_TRAFFIC_MEDIUM_AND_OBSS = 4,
- } wmi_pdev_traffic_condition;
- /*
- * The wmi_ctrl_path_pmlo_stats_struct is used to send Provisional MLO stats
- * the WMI_CTRL_PATH_STATS_EVENT message, in response to a
- * WMI_REQUEST_CTRL_PATH_STATS_CMD message for the stat type
- * WMI_REQUEST_CTRL_PATH_PMLO_STAT.
- */
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ctrl_path_pmlo_stats_struct */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the PHY */
- A_UINT32 pdev_id;
- /*
- * Percentage of downlink air time used in each access category
- * calculated InBSS, units in percentage.
- * BIT[0-7] : AC_BE
- * BIT[8-15] : AC_BK
- * BIT[16-23] : AC_VI
- * BIT[24-31] : AC_VO
- * Please refer to WMI_PMLO_UL_DL_INBSS_AT_* macros
- * to retrieve values for each access category in dl_inbss_airtime_per_ac.
- */
- union {
- struct {
- A_UINT32
- dl_inbss_airtime_ac_be: 8,
- dl_inbss_airtime_ac_bk: 8,
- dl_inbss_airtime_ac_vi: 8,
- dl_inbss_airtime_ac_vo: 8;
- };
- A_UINT32 dl_inbss_airtime_per_ac;
- };
- /*
- * Percentage of uplink air time used in each access category
- * calculated InBSS, units in percentage.
- * BIT[0-7] : AC_BE
- * BIT[8-15] : AC_BK
- * BIT[16-23] : AC_VI
- * BIT[24-31] : AC_VO
- * Please refer to WMI_PMLO_UL_DL_INBSS_AT_* macros
- * to set/get values for each access category in ul_inbss_airtime_per_ac.
- */
- union {
- struct {
- A_UINT32
- ul_inbss_airtime_ac_be: 8,
- ul_inbss_airtime_ac_bk: 8,
- ul_inbss_airtime_ac_vi: 8,
- ul_inbss_airtime_ac_vo: 8;
- };
- A_UINT32 ul_inbss_airtime_per_ac;
- };
- /*
- * Percentage of air time available for each AC, units in percentage.
- * BIT[0-7] : AC_BE
- * BIT[8-15] : AC_BK
- * BIT[16-23] : AC_VI
- * BIT[24-31] : AC_VO
- * Please refer to WMI_ESP_ESTIMATE_GET_* and WMI_ESP_ESTIMATE_SET_* macros
- * to retrieve values for each access category in estimated_air_time_per_ac.
- */
- union {
- struct {
- A_UINT32
- estimated_air_time_ac_be: 8,
- estimated_air_time_ac_bk: 8,
- estimated_air_time_ac_vi: 8,
- estimated_air_time_ac_vo: 8;
- };
- A_UINT32 estimated_air_time_per_ac;
- };
- /*
- * Average channel latency per AC, units in micro seconds.
- * avg_chan_lat_per_ac[0] : AC_VO
- * avg_chan_lat_per_ac[1] : AC_VI
- * avg_chan_lat_per_ac[2] : AC_BE
- * avg_chan_lat_per_ac[3] : AC_BK
- */
- A_UINT32 avg_chan_lat_per_ac[WMI_AC_MAX];
- /*
- * link_obss_airtime: Percentage of OBSS used air time per link,
- * units in percentage.
- * Refer to WMI_PMLO_LINK_OBSS_AT_* Macro to set/get values.
- * link_idle_airtime: Idle/free airtime per link, units in percentage.
- * Refer to WMI_PMLO_LINK_AA_* macro to set/get values.
- * ul_inbss_airtime_non_ac: ul inBSS airtime occupied by non-AC traffic,
- * units in percentage.
- * Refer to WMI_PMLO_UL_AIRTIME_NON_AC_* macro to set/get values.
- * dl_inbss_airtime_non_ac: dl inBSS airtime occupied by non-AC traffic,
- * units in percentage.
- * Refer to WMI_PMLO_DL_AIRTIME_NON_AC_* macro to set/get values.
- */
- union {
- struct {
- A_UINT32 link_obss_airtime: 8,
- link_idle_airtime: 8,
- ul_inbss_airtime_non_ac: 8,
- dl_inbss_airtime_non_ac: 8;
- };
- A_UINT32 ul_dl_obss_free_aa_word32;
- };
- /*
- * Traffic condition used in estimating the available airtime value.
- * Refer to enum wmi_pdev_traffic_condition
- * traffic_condition_used_per_ac[0] : AC_VO
- * traffic_condition_used_per_ac[1] : AC_VI
- * traffic_condition_used_per_ac[2] : AC_BE
- * traffic_condition_used_per_ac[3] : AC_BK
- * Saturation Traffic condition is evaluated to true when the number
- * of associated stations and the number of active TIDs per access
- * category crosses a threshold.
- * Light Traffic condition is evaluated to true when the obss_rx_airtime
- * is less than a threshold and the free channel is greater than the sum
- * of DL and UL airtime per client.
- * Heavy Traffic condition is evaluated to true when the free channel is
- * less than a particular threshold and the number of active TIDs per
- * access category crosses a threshold.
- * OBSS (Medium) Traffic condition is evaluated to true when the
- * obss_rx_airtime crosses a threshold.
- * Medium Traffic case is carried out if all the above mentioned
- * conditions evaluate to false.
- */
- A_UINT32 traffic_condition_used_per_ac[WMI_AC_MAX];
- /*
- * Every PPDU has an associated txop overhead value in its PPDU duration.
- * In order to consider only the duration taken to transfer the actual
- * data, we estimate the payload ratio.
- * The packet overhead is accumulated for each PPDU, where it is recorded
- * for each access category separately.
- * The payload_ratio_dl values indicate the percentage of actual data
- * packets' duration in the entire TX duration by omitting the overhead
- * (units are percentage).
- * By estimating the payload ratio, we would be able to further measure
- * the free channel with increased accuracy.
- *
- * BIT[0-7] : AC_BE
- * BIT[8-15] : AC_BK
- * BIT[16-23] : AC_VI
- * BIT[24-31] : AC_VO
- * Please refer to WMI_PMLO_UL_DL_PAYLOAD_RATIO_* macros
- * to retrieve values for each access category in payload_ratio_dl_per_ac.
- */
- union {
- struct {
- A_UINT32
- payload_ratio_dl_ac_be: 8,
- payload_ratio_dl_ac_bk: 8,
- payload_ratio_dl_ac_vi: 8,
- payload_ratio_dl_ac_vo: 8;
- };
- A_UINT32 payload_ratio_dl_per_ac;
- };
- /*
- * Every PPDU has an associated txop overhead value in its PPDU duration.
- * In order to consider only the duration taken to transfer the actual
- * data, we estimate the payload ratio.
- * The packet overhead is accumulated for each PPDU, where it is recorded
- * for each access category separately.
- * The payload_ratio_ul values indicate the percentage of actual data
- * packets' duration in the entire RX duration by omitting the overhead
- * (Units are percentage).
- * By estimating the payload ratio, we would be able to further measure
- * the free channel with increased accuracy.
- *
- * BIT[0-7] : AC_BE
- * BIT[8-15] : AC_BK
- * BIT[16-23] : AC_VI
- * BIT[24-31] : AC_VO
- * Please refer to WMI_PMLO_UL_DL_PAYLOAD_RATIO_* macros
- * to retrieve values for each access category in payload_ratio_ul_per_ac.
- */
- union {
- struct {
- A_UINT32
- payload_ratio_ul_ac_be: 8,
- payload_ratio_ul_ac_bk: 8,
- payload_ratio_ul_ac_vi: 8,
- payload_ratio_ul_ac_vo: 8;
- };
- A_UINT32 payload_ratio_ul_per_ac;
- };
- /*
- * Error margin of the estimated available airtime per AC,
- * units are percentage.
- * error_margin_per_ac[0] : AC_VO
- * error_margin_per_ac[1] : AC_VI
- * error_margin_per_ac[2] : AC_BE
- * error_margin_per_ac[3] : AC_BK
- */
- A_UINT32 error_margin_per_ac[WMI_AC_MAX];
- /*
- * This parameter indicates the number of clients which would be
- * considered to estimate the available airtime value during
- * imbalanced traffic scenarios
- * Value 0 indicates that we do not have imbalanced traffic.
- * num_of_ul/dl_asymmetric_clients_per_ac[0] : AC_VO
- * num_of_ul/dl_asymmetric_clients_per_ac[1] : AC_VI
- * num_of_ul/dl_asymmetric_clients_per_ac[2] : AC_BE
- * num_of_ul/dl_asymmetric_clients_per_ac[3] : AC_BK
- */
- A_UINT32 num_of_ul_asymmetric_clients_per_ac[WMI_AC_MAX];
- A_UINT32 num_of_dl_asymmetric_clients_per_ac[WMI_AC_MAX];
- } wmi_ctrl_path_pmlo_stats_struct;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ctrl_path_cfr_stats_struct */
- A_UINT32 tlv_header;
- /*
- * This index is used for formatting the printout of this stats TLV.
- * A stats header is added when the index=0.
- */
- A_UINT32 index;
- wmi_mac_addr cfr_peer_mac_addr;
- A_UINT32 peer_in_use;
- A_UINT32 capture_in_progress;
- /* capture_method: 0 means oneshot request, otherwise periodic request */
- A_UINT32 capture_method;
- A_UINT32 periodicity; /* Time in ms */
- A_UINT32 latest_req_timestamp; /* Time in ms */
- A_UINT32 latest_resp_timestamp; /* Time in ms */
- A_UINT32 cfr_req_count;
- A_UINT32 cfr_resp_success_count;
- A_UINT32 cfr_resp_failure_count;
- } wmi_ctrl_path_cfr_stats_struct;
- #define WMI_MAX_MLO_LINKS 5
- #define WMI_HE_MAP_COUNT 3
- #define WMI_EHT_MAP_COUNT 3
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ctrl_path_peer_stats_struct
- */
- A_UINT32 tlv_header;
- /* mac address - part of wlan_peer */
- wmi_mac_addr mac_addr;
- /* wlan_peer flags - refer to IEEE80211_NODE_* flags in wlan_peer.h */
- A_UINT32 opaque_debug_flags;
- /* opaque_debug_vht_caps:
- * Negotiated VHT capabilities in the wlan_peer struct
- * Refer to ieee80211_defs.h.
- */
- A_UINT32 opaque_debug_vht_caps;
- /* opaque_debug_flags_ext:
- * Extended flags in the wlan_peer struct
- * Refer to IEEE80211_NODE_* flags in wlan_peer.h.
- */
- A_UINT32 opaque_debug_flags_ext;
- /* TID queues marked for TWT flush, present in wlan_peer */
- A_UINT32 opaque_debug_twt_flush_tidmap;
- /* Number of TWT SPs to be expired, present in wlan_peer */
- A_UINT32 opaque_debug_n_TWT_SPs_to_expire;
- /* opaque_debug_rc_flags:
- * Peer rate information, part of struct rate_node
- * Refer to whal_rate_api.h for complete RC_FLAGS details.
- */
- A_UINT32 opaque_debug_rc_flags;
- /* opaque_debug_sm_event_mask_eosp_cnt:
- * This word contains the following bitfields:
- * - Power save state machine event mask,
- * part of wal_ps_buf_peer_handle_t.
- * Refer to enum wal_ps_buf_peer_reg_ev_handlers.
- * Use WMI_PEER_STATS_SM_MASK_SET,GET macros.
- * - End of service period (EOSP) sent retry counter,
- * part of wal_ps_buf_peer_handle_t.
- * Use WMI_PEER_STATS_EOSP_RETRY_CNT_SET,GET macros.
- */
- A_UINT32 opaque_debug_sm_event_mask_eosp_cnt;
- /* opaque_debug_ps_buf_peer_flag1:
- * Power save related send_n, ps_poll, unscheduled service period
- * related fields;
- * Part of wal_ps_buf_peer_handle_t.
- * Refer to wal_ps_buf_peer_ctx struct definition.
- */
- A_UINT32 opaque_debug_ps_buf_peer_flag1;
- /* opaque_debug_ps_buf_peer_flag2:
- * Power save related trigger/delivery tid related fields.
- * part of wal_ps_buf_peer_handle_t.
- * Refer to wal_ps_buf_peer_ctx struct definition.
- */
- A_UINT32 opaque_debug_ps_buf_peer_flag2;
- /* opaque_debug_ps_buf_peer_flag3:
- * Power save related last trigger related information,
- * part of wal_ps_buf_peer_handle_t.
- * Refer to wal_ps_buf_peer_ctx struct definition.
- */
- A_UINT32 opaque_debug_ps_buf_peer_flag3;
- /* opaque_debug_last_rx_trigger_time:
- * Time of the most recently received uplink trigger frame,
- * part of wal_ps_buf_peer_handle_t - in microseconds units.
- */
- A_UINT32 opaque_debug_last_rx_trigger_time;
- /* opaque_debug_last_poll_time:
- * TSF of the most recently received uplink PS-Poll,
- * part of wal_ps_buf_peer_handle_t - in TU
- */
- A_UINT32 opaque_debug_last_poll_time;
- /* opaque_debug_oldest_tx_buffered_waiting_ms:
- * Enqueue time of most recent MSDU that AP has buffered for
- * sleeping station, part of wal_ps_buf_peer_handle_t, in ms units.
- */
- A_UINT32 opaque_debug_oldest_tx_buffered_waiting_ms;
- /* opaque_debug_last_rxtx_activity:
- * The last time when there was a rx or tx traffic from a client,
- * part of wal_ps_buf_peer_handle_t, in ms units.
- */
- A_UINT32 opaque_debug_last_rxtx_activity;
- /* opaque_debug_twt_flush_expiry_timestamp:
- * Peer's TWT flush expiry timestamp in us,
- * part of peer_twt_flush struct.
- */
- A_UINT32 opaque_debug_twt_flush_expiry_timestamp;
- /* opaque_debug_hw_link_id:
- * Unique link id across SOCs, determined during QMI handshake,
- * part of wlan_peer_ml_info_t.
- */
- A_UINT32 opaque_debug_hw_link_id;
- /* opaque_debug_ml_partner_hw_link_id_bitmap:
- * Hardware link id of the of partner links that are to be cleaned up.
- * This is filled by host during peer delete cmd.
- * It it part of wlan_peer_ml_info_t.
- */
- A_UINT32 opaque_debug_ml_partner_hw_link_id_bitmap;
- /* opaque_debug_link_flags:
- * MLO link flags: related to assoc, anchor, master and primary UMAC links.
- * Refer to resmgr_mlo_link_flags.
- * Part of wlan_peer_ml_info_t.
- */
- A_UINT32 opaque_debug_link_flags;
- /* MLO peer id - part of wlan_ml_peer_t */
- A_UINT32 opaque_debug_ml_peer_id;
- /* MLD mac address - part of wlan_ml_peer_t */
- wmi_mac_addr opaque_debug_mld_mac_addr;
- /* opaque_debug_assoc_id_usage_cnt:
- * Part of wlan_peer.
- * This word contains the following bitfields:
- * - assoc id of the peer
- * Use WMI_PEER_STATS_ASSOCIATE_ID_SET,GET macros.
- * - peer usage count to track if peer alloc command is sent
- * for new or existing peer,
- * Use WMI_PEER_STATS_USAGE_CNT_SET,GET macros.
- */
- A_UINT32 opaque_debug_assoc_id_usage_cnt;
- /* opaque_debug_default_ht_caps:
- * Part of wlan_peer.
- * This word contains the following bitfields:
- * - default peer capabilities of the peer - refer ieee80211_defs.h
- * Use WMI_PEER_STATS_DEF_CAPS_SET,GET macros.
- * - HT capabilities of the peer - refer ieee80211_defs.h
- * Use WMI_PEER_STATS_HT_CAPS_SET,GET macros.
- */
- A_UINT32 opaque_debug_default_ht_caps;
- /* opaque_debug_inact_gen:
- * Part of wlan_peer.
- * This word contains the following bitfields:
- * - Overall tx/rx inactivity time of the peer in seconds
- * Use WMI_PEER_STATS_INACT_GEN_SET,GET macros.
- * - Data tx/rx inactivity time of the peer in seconds.
- * Use WMI_PEER_STATS_DATA_INACT_GEN_SET,GET macros.
- */
- A_UINT32 opaque_debug_inact_gen;
- /* opaque_debug_id_type:
- * Part of wlan_peer.
- * This word contains the following bitfields:
- * - Type of peer whether it is bss,self or remote peer.
- * Refer to enum wmi_peer_type.
- * Use WMI_PEER_STATS_TYPE_SET,GET macros.
- * - MAC ID that the peer belongs to
- * Use WMI_PEER_STATS_MAC_ID_SET,GET macros.
- * - sw peer id of the peer
- * Use WMI_PEER_STATS_ID_SET,GET macros.
- */
- A_UINT32 opaque_debug_id_type;
- /* Deleted tids bitmask within the peer - part of wal_peer */
- A_UINT32 opaque_debug_deleted_tidmask;
- /* number of local pending frames for completions - part of wal_peer */
- A_UINT32 opaque_debug_num_of_local_frames_pending;
- /* flags part of wal_peer - refer to wal_peer_flags_t */
- A_UINT32 opaque_debug_wal_peer_flags;
- /* opaque_debug_keyid0_ast_index:
- * The AST index for key id 0 which is always allocated,
- * part of wal_peer.
- */
- A_UINT32 opaque_debug_keyid0_ast_index;
- /* opaque_debug_all_tids_block_module_bitmap:
- * Bitmap of block IDs requesting block of all TIDs,
- * part of wal_peer.
- * Refer to enum WLAN_PAUSE_ID.
- * This block/pause ID can be mapped to a WLAN_MODULE_ID module ID.
- */
- A_UINT32 opaque_debug_all_tids_block_module_bitmap;
- /* opaque_debug_all_tids_pause_module_bitmap:
- * Bitmap of pause IDs requesting block of all TIDs,
- * part of wal_peer.
- * Refer to enum WLAN_PAUSE_ID.
- * This pause ID can be mapped to a WLAN_MODULE_ID module ID.
- */
- A_UINT32 opaque_debug_all_tids_pause_module_bitmap;
- /* opaque_debug_data_tids_block_module_bitmap:
- * Bitmap of block ids requesting block of data tids,
- * part of wal_peer.
- * Refer to enum WLAN_PAUSE_ID.
- * This block/pause ID can be mapped to a WLAN_MODULE_ID module ID.
- */
- A_UINT32 opaque_debug_data_tids_block_module_bitmap;
- /* opaque_debug_data_tids_pause_module_bitmap:
- * Bitmap of pause ids requesting block of data tids,
- * part of wal_peer.
- * Refer to enum WLAN_PAUSE_ID.
- * This pause ID can be mapped to a WLAN_MODULE_ID module ID.
- */
- A_UINT32 opaque_debug_data_tids_pause_module_bitmap;
- /* The time stamp when first ppdu fails in us, part of wal_peer */
- A_UINT32 opaque_debug_ppdu_fail_time;
- /* opaque_debug_rate_params:
- * This word contains the following bitfields:
- * - Non data rate code of the peer - part of wal_peer
- * Use WMI_PEER_STATS_BSS_NON_DATA_RC_SET,GET macros.
- * - channel bandwidth supported by the peer, part of wal_peer.
- * The mapping is as follows:
- * 0 = 20 MHz, 1 = 40 MHz, 2 = 80 MHz, 3 = 160 MHz, 4 = 320 MHz
- * Use WMI_PEER_STATS_CH_WIDTH_SET,GET macros.
- * - MCS used for the last PPDU received from the peer, part of wal_peer
- * Use WMI_PEER_STATS_RX_MCS_SET,GET macros.
- */
- A_UINT32 opaque_debug_rate_params;
- /* consecutive QOS null frame tx fail count, part of wal_peer */
- A_UINT32 opaque_debug_consecutive_null_failure;
- /* peer delete state refer enum PEER_DELETE_SM_STATE, part of wal_peer */
- A_UINT32 opaque_debug_peer_delete_sm_state;
- /* opaque_debug_cache_rate_info_low32,_high32:
- * Lower/upper 32 bits respectively of cached rate info variable
- * updated by the HTT metadata.
- * This rate_info is based on the values from struct
- * htt_tx_msdu_desc_ext2_t .
- * If htt_tx_desc_ext2->update_peer_cache is set to 1 and
- * HTT_TX_TCL_METADATA_PEER_ID_GET(tcl_cmd_num) returns valid peer ID
- * then rate_info cache of the peer is updated.
- * Part of wal_peer.
- */
- A_UINT32 opaque_debug_cache_rate_info_low32;
- A_UINT32 opaque_debug_cache_rate_info_high32;
- /* opaque_debug_peer_delete_rc4_rekey:
- * This word contains the following bitfields:
- * - Flag that denotes if Peer delete all is in progress or not,
- * part of wal_peer.
- * Use WMI_PEER_STATS_DELETE_ALL_FLAG_SET,GET macros.
- * - RC4 rekey counter, part of wal_peer.
- * Use WMI_PEER_STATS_RC4_REKEY_CNT_SET,GET macros.
- */
- A_UINT32 opaque_debug_peer_delete_rc4_rekey;
- /* opaque_debug_mcbc_tids_pause_bitmap:
- * Bitmap containing Multicast and broadcast tids that are paused,
- * part of wal_peer.
- */
- A_UINT32 opaque_debug_mcbc_tids_pause_bitmap;
- /* opaque_debug_next_to_last_pn_low32,_high32:
- * Lower/upper 32 bits respectively of last used PN value received,
- * part of wal_peer.
- */
- A_UINT32 opaque_debug_next_to_last_pn_low32;
- A_UINT32 opaque_debug_next_to_last_pn_high32;
- /* opaque_debug_last_pn_low32,_high32:
- * Lower/upper 32 bits respectively of current PN value received,
- * part of wal_peer.
- */
- A_UINT32 opaque_debug_last_pn_low32;
- A_UINT32 opaque_debug_last_pn_high32;
- /* opaque_debug_twt_ap_peer_ctx_flags:
- * This word contains the following bitfields:
- * - TWT AP peer's context flags, part of twt_ap_peer_handle_t struct.
- * Refer twt_ap_twt_session_t definition.
- * Use WMI_PEER_STATS_TWT_AP_FLAGS_SET,GET macros.
- * - TWT session counter, part of twt_ap_peer_handle_t struct.
- * Use WMI_PEER_STATS_TWT_AP_SESSION_CNT_SET,GET macros.
- * - TWT frame retry counter, part of twt_ap_peer_handle_t struct.
- * Use WMI_PEER_STATS_TWT_FRM_RETRY_SET,GET macros.
- */
- A_UINT32 opaque_debug_twt_ap_peer_ctx_flags;
- /* opaque_debug_twt_ap_counters:
- * This word contains the following bitfields:
- * - TWT UL trigger counter, part of twt_ap_peer_handle_t struct.
- * Use WMI_PEER_STATS_TWT_UL_TRIGGER_SET,GET macros.
- * - TWT Broadcast session counter, part of twt_ap_peer_handle_t struct.
- * Use WMI_PEER_STATS_TWT_BC_SESSION_SET,GET macros.
- * - TWT pending report counter, part of twt_ap_peer_handle_t struct.
- * Use WMI_PEER_STATS_TWT_PENDING_REPORT_SET,GET macros.
- * - TWT flow IDs, part of twt_ap_peer_handle_t struct.
- * Use WMI_PEER_STATS_TWT_FLOW_IDS_SET,GET macros.
- */
- A_UINT32 opaque_debug_twt_ap_counters;
- /* opaque_debug_tx_state_bmap_low32,_high32:
- * Lower/upper 32 bits respectively of list of currently running
- * BA Tx states for tids in this peer, part of wal_ba_peer_handle_t.
- */
- A_UINT32 opaque_debug_tx_state_bmap_low32;
- A_UINT32 opaque_debug_tx_state_bmap_high32;
- /* opaque_debug_addba_mode:
- * This word contains the following bitfields:
- * - ADDBA mode whether its automatic or manual,
- * WAL_BA_ADDBA_MODE_AUTO = 0 and WAL_BA_ADDBA_MODE_MANUAL = 1
- * Part of wal_ba_peer_handle_t.
- * Use WMI_PEER_STATS_ADDBBA_TX_MODE_SET,GET macros.
- * - ADDBA request's response code, part of wal_ba_peer_handle_t.
- * Use WMI_PEER_STATS_ADDBBA_RESP_MODE_SET,GET macros.
- */
- A_UINT32 opaque_debug_addba_mode;
- /* opaque_debug_tx_retry_bmap:
- * Bitmap of tids and their TX BlockAck retry counters.
- * Each TID uses 2 bits for its BA retry counter.
- * Part of wal_ba_peer_handle_t.
- */
- A_UINT32 opaque_debug_tx_retry_bmap;
- /* opaque_debug_rx_state_bmap:
- * Bitmap of tids and their RX BlockAck retry counters.
- * 00 - BA not setup
- * 01 - BA in progress
- * 10 - reserved
- * 11 - BA setup.
- * Each TID uses 2 bits for its BA RX state;
- * for instance TID 0's BA info occupies bits 1:0 and so on.
- * Part of wal_ba_peer_handle_t.
- */
- A_UINT32 opaque_debug_rx_state_bmap;
- /* opaque_debug_tx_pending_delba_tid_bmap:
- * TID bitmap containaing information DELBA tx pending,
- * part of wal_ba_peer_handle_t.
- */
- A_UINT32 opaque_debug_tx_pending_delba_tid_bmap;
- /* opaque_debug_link_monitor_tid_num:
- * link monitor tid num in bss_peer ba_peer_handle,
- * part of wal_ba_peer_handle_t.
- */
- A_UINT32 opaque_debug_link_monitor_tid_num;
- /* opaque_debug_rc4_eapol_key_complete:
- * Flag that denotes rc4 eapol key exchange is complete,
- * part of wal_peer_ext.
- */
- A_UINT32 opaque_debug_rc4_eapol_key_complete;
- /* qcache peer flags, refer to qpeer_flags_t */
- A_UINT32 opaque_debug_qpeer_flags;
- /* bitmap of TIDs requested for flush, part of wal_qcache_peer */
- A_UINT32 opaque_debug_delete_requested_tidmask;
- /* bitmap of created TIDs, part of wal_qcache_peer */
- A_UINT32 opaque_debug_tid_created_tidmask;
- /* opaque_debug_qpeer_rt_flags0,_flags1,_flags2:
- * RT thread related fields in qpeer, refer to _wal_qcache_peer.
- */
- A_UINT32 opaque_debug_qpeer_rt_flags0;
- A_UINT32 opaque_debug_qpeer_rt_flags1;
- A_UINT32 opaque_debug_qpeer_rt_flags2;
- /* opaque_debug_qpeer_sa_flags0,_flags1:
- * SA thread related fields in qpeer, refer to _wal_qcache_peer.
- */
- A_UINT32 opaque_debug_qpeer_sa_flags0;
- A_UINT32 opaque_debug_qpeer_sa_flags1;
- /* BE thread related fields in qpeer, refer to _wal_qcache_peer */
- A_UINT32 opaque_debug_qpeer_be_flags;
- /* qpeer event bitmap, refer to wal_peer_event_type */
- A_UINT32 opaque_debug_event_bitmap;
- /* tx fail count for a peer, part of dcache peer */
- A_UINT32 opaque_debug_seq_no_tx_fail_cnt;
- /* Last transmission rate in kbps for a peer, part of dcache peer */
- A_UINT32 opaque_debug_last_tx_rate_kbps;
- /* opaque_debug_amsdu_size:
- * This word contains the following bitfields:
- * - MAX AMSDU size of the peer, part of dcache peer.
- * Use WMI_PEER_STATS_MAX_AMSDU_SIZE_SET,GET macros.
- */
- A_UINT32 opaque_debug_amsdu_size;
- /* opaque_debug_fake_sleep_time:
- * Time elapsed in ms after entering into fake sleep after xretry failure,
- * part of dcache peer.
- */
- A_UINT32 opaque_debug_fake_sleep_time;
- /* opaque_debug_tx_frame_qos_ctrl:
- * This word contains the following bitfields:
- * - Tx frame control FC flags in ieee80211_defs.h, part of dcache peer.
- * Use WMI_PEER_STATS_TX_FRAME_CTRL_SET,GET macros.
- * - Tx QOS control FC flags in ieee80211_defs.h, part of dcache peer.
- * Use WMI_PEER_STATS_TX_QOS_CTRL_SET,GET macros.
- */
- A_UINT32 opaque_debug_tx_frame_qos_ctrl;
- /* opaque_debug_consec_fail_subfrm_sz:
- * This word contains the following bitfields:
- * - Consecutive tx fail count for the peer, part of dcache peer.
- * Use WMI_PEER_STATS_CONSEC_FAIL_SET,GET macros.
- * - subframe size configured for the peer, part of dcache peer.
- * Use WMI_PEER_STATS_SUBFRAME_SIZE_SET,GET macros.
- */
- A_UINT32 opaque_debug_consec_fail_subfrm_sz;
- /* opaque_debug_tx_fail_partial_aid:
- * This word contains the following bitfields:
- * - tx fail count for the peer, part of dcache peer.
- * Use WMI_PEER_STATS_TX_FAIL_CNT_SET,GET macros.
- * - Partial AID of the peer, part of dcache peer.
- * Use WMI_PEER_STATS_TX_PARTIAL_AID_SET,GET macros.
- */
- A_UINT32 opaque_debug_tx_fail_partial_aid;
- /* opaque_debug_max_nss:
- * Part of dcache peer.
- * This word contains the following bitfields:
- * - Peer NSS value sent by host during WMI_PEER_ASSOC cmd.
- * Use WMI_PEER_STATS_MAX_NSS_SET,GET macros.
- */
- A_UINT32 opaque_debug_max_nss;
- /* opaque_debug_he_cap_info:
- * Peer HE capabilities info sent during peer assoc cmd.
- * Refer to WMI_HECAP_* macros in wmi_unified.h.
- * Part of dcache peer.
- */
- A_UINT32 opaque_debug_he_cap_info;
- /* opaque_debug_he_cap_info_ext:
- * Peer extended HE capabilities info sent during peer assoc cmd.
- * Refer to WMI_HECAP_* macros in wmi_unified.h.
- * Part of dcache peer.
- */
- A_UINT32 opaque_debug_he_cap_info_ext;
- /* opaque_debug_eht_cap_info:
- * Peer EHT capabilities info.
- * Refer to ieee80211_defs.h, part of dcache peer.
- */
- A_UINT32 opaque_debug_eht_cap_info;
- /* TAC thread related fields in dcache peer refer wal_dcache_peer_t */
- A_UINT32 opaque_debug_dcache_tac_flags;
- /* RT thread related fields in dcache peer refer wal_dcache_peer_t */
- A_UINT32 opaque_debug_dcache_rt_flags;
- /* Supported RC modes for the peer refer enum RC_MODE, part of dcache */
- A_UINT32 opaque_debug_rc_mode_supported_mask;
- /* opaque_debug_wlan_peer_bitfield_mask:
- * Part of wlan peer. This word contains the following bitfields:
- * - Flag that denotes whether peer delete response is being sent
- * to host or not.
- * Use WMI_PEER_STATS_DEL_RESP_TO_HOST_SET,GET macros.
- * - Flag that denotes if peer delete is in progress or not.
- * Use WMI_PEER_STATS_DELETE_IN_PROGRESS_SET,GET macros.
- * - Flag that denotes if peer migration is in progress or not.
- * Use WMI_PEER_STATS_MIGRATION_IN_PROGRESS_SET,GET macros.
- * - Flag that denotes peer's connection/authorized state.
- * Refer WAL_PEER_STATE_* macros in wal_peer.h.
- * Use WMI_PEER_STATS_CONN_STATE_SET,GET macros.
- * - TX chain mask at 160MHz of the peer set during peer assoc command.
- * Use WMI_PEER_STATS_TX_CHAIN_MASK_160_SET,GET macros.
- * - Tx chain mask set during peer assoc command.
- * Use WMI_PEER_STATS_TX_CHAIN_MASK_SET,GET macros.
- * - copy of tx chain mask of peer saved for AP MIMO PS.
- * Use WMI_PEER_STATS_ASSOC_CHAIN_MASK_SET,GET macros.
- */
- A_UINT32 opaque_debug_wlan_peer_bitfield_mask;
- /* opaque_debug_wal_peer_bitfields:
- * Part of wal_peer. This word contains the following bitfields:
- * - Flag that denotes if QOS null is sent over WMI or not.
- * Use WMI_PEER_STATS_QOS_NULL_OVER_WMI_SET,GET macros.
- * - Flag that denotes whether peer assoc is received
- * for the first time or not.
- * Use WMI_PEER_STATS_NEW_ASSOC_SET,GET macros.
- * - Flag that denotes whether TWT filter is enabled or not.
- * Use WMI_PEER_STATS_TWT_FILT_FLAG_SET,GET macros.
- * - Flag that denotes whether TWT is registered or not.
- * Use WMI_PEER_STATS_TWT_REG_FLAG_SET,GET macros.
- * - Flag that denotes whether WMM txQ uplink trigger is disabled or not.
- * Use WMI_PEER_STATS_WMM_UL_TRIG_FLAG_SET,GET macros.
- * - Number of active TIDs that do not have BA setup.
- * Use WMI_PEER_STATS_ACTIVE_NOT_BA_TID_SET,GET macros.
- */
- A_UINT32 opaque_debug_wal_peer_bitfields;
- /* flags in RT context refer wal_peer_ext_t */
- A_UINT32 opaque_debug_wal_peer_rt_flags;
- /* opaque_debug_ml_attributes:
- * Part of wal_ml_peer. This word contains the following bitfields:
- * - Num of MLO links
- * Use WMI_PEER_STATS_NUM_LINKS_SET,GET macros.
- * - ML peer id
- * Use WMI_PEER_STATS_ML_PEER_ID_SET,GET macros.
- * - Primary link ID
- * Use WMI_PEER_STATS_PRI_LINK_ID_SET,GET macros.
- * - Primary chip ID
- * Use WMI_PEER_STATS_PRI_CHIP_ID_SET,GET macros.
- * - Initial link count
- * Use WMI_PEER_STATS_LINK_INIT_CNT_SET,GET macros.
- * - Number of local links
- * Use WMI_PEER_STATS_NUM_LOCAL_LINKS_SET,GET macros.
- * - Bitmap of participating chips
- * Use WMI_PEER_STATS_CHIPS_BITMAP_SET,GET macros.
- */
- A_UINT32 opaque_debug_ml_attributes;
- /* wal peer MLO flags refer ml_peer_flags_t */
- A_UINT32 opaque_debug_ml_flags;
- /* opaque_debug_ml_link_info_flags:
- * Part of link_info in wlan_peer_ml_info_t.
- * This word contains the following bitfields:
- * - flag denoting if MLO-link is valid or not
- * Use WMI_PEER_STATS_ML_PEER_LINK_INFO_VALID_SET,GET macros.
- * - flag denoting if MLO-link is active or not
- * Use WMI_PEER_STATS_ML_PEER_LINK_INFO_ACTIVE_SET,GET macros.
- * - flag denoting if MLO-link is primary or not
- * Use WMI_PEER_STATS_ML_PEER_LINK_INFO_PRI_SET,GET macros.
- * - flag denoting if MLO-link is assoc link or not
- * Use WMI_PEER_STATS_ML_PEER_LINK_INFO_ASSOC_LINK_SET,GET macros.
- * - Chip ID of the MLO-link
- * Use WMI_PEER_STATS_ML_PEER_LINK_INFO_CHIP_ID_SET,GET macros.
- * - IEEE link ID of the MLO-link
- * Use WMI_PEER_STATS_ML_PEER_LINK_INFO_IEEE_LINK_SET,GET macros.
- * - HW link ID of the MLO-link
- * Use WMI_PEER_STATS_ML_PEER_LINK_INFO_HW_LINK_SET,GET macros.
- * - logical link ID of the MLO-link
- * Use WMI_PEER_STATS_ML_PEER_LINK_INFO_LOGICAL_LINK_SET,GET macros.
- * - flag denoting if MLO-link is master link or not
- * Use WMI_PEER_STATS_ML_PEER_LINK_INFO_MASTER_LINK_SET,GET macros.
- * - flag denoting if MLO-link is anchor link or not
- * Use WMI_PEER_STATS_ML_PEER_LINK_INFO_ANCHOR_LINK_SET,GET macros.
- * - flag denoting if MLO-link is initialized or not
- * Use WMI_PEER_STATS_ML_PEER_LINK_INFO_INIT_SET,GET macros.
- */
- A_UINT32 opaque_debug_ml_link_info_flags[WMI_MAX_MLO_LINKS];
- /* opaque_debug_ml_link_info_id:
- * Part of link_info in wlan_peer_ml_info_t.
- * This word contains the following bitfields:
- * - sw_peer_id corresponding to the link
- * Use WMI_PEER_STATS_ML_PEER_LINK_INFO_PEER_ID_SET,GET macros.
- * - vdev id corresponding to the link
- * Use WMI_PEER_STATS_ML_PEER_LINK_INFO_VDEV_ID_SET,GET macros.
- */
- A_UINT32 opaque_debug_ml_link_info_id[WMI_MAX_MLO_LINKS];
- /* MLO link info primary tid mask, part of link_info in wlan_peer_ml_info_t */
- A_UINT32 opaque_debug_ml_link_info_pri_tidmask[WMI_MAX_MLO_LINKS];
- /* opaque_debug_rc_node_params:
- * Part of struct TX_PEER_PARAMS.
- * This word contains the following bitfields:
- * - NSS of the peer in 160MHZ
- * Use WMI_PEER_STATS_NSS_160_SET,GET macros.
- * - phymode of the peer - refer enum WLAN_PHY_MODE
- * Use WMI_PEER_STATS_RC_PHYMODE_SET,GET macros.
- * - legacy rate set for the peer
- * Use WMI_PEER_STATS_LEGACY_RATE_SET,GET macros.
- */
- A_UINT32 opaque_debug_rc_node_params;
- /* opaque_debug_rc_vht_mcs_set:
- * Rate node param - negotiated VHT MCS map,
- * part of struct TX_PEER_PARAMS
- */
- A_UINT32 opaque_debug_rc_vht_mcs_set;
- /* opaque_debug_rc_node_params1:
- * Part of link_info in wlan_peer_ml_info_t.
- * This word contains the following bitfields:
- * - Minimum data rate set for the peer in Mbps
- * Use WMI_PEER_STATS_MIN_DATA_RATE_SET,GET macros.
- * - Max VHT rate set for the peer
- * Use WMI_PEER_STATS_VHT_MAX_RATE_SET,GET macros.
- * - Max VHT streams set for the peer
- * Use WMI_PEER_STATS_VHT_MAX_STREAMS_SET,GET macros.
- * - BSS - Channel frequency set for the peer in MHz
- * Use WMI_PEER_STATS_RC_CHAN_FREQ_SET,GET macros.
- */
- A_UINT32 opaque_debug_rc_node_params1;
- /* opaque_debug_he_mcs_nss_set_tx,_rx:
- * Rate node param - negotiated HE MCS tx+rx maps,
- * part of struct TX_PEER_PARAMS.
- * The lower 8 bits (bits 23:16) within the upper 16 bits indicate
- * MCS 12/13 enablement for BW <= 80MHz; the upper 8 bits (bits 31:24)
- * within the 16 bits indicate MCS 12/13 enablement for BW > 80MHz.
- * The 16 bits for the index values are within the upper bits (bits 31:16)
- * of a 32-bit word. and WMI_HE_MAP_COUNT is based on HE_MCS_MAP_CNT
- * in ieee80211_defs.h.
- */
- A_UINT32 opaque_debug_he_mcs_nss_set_tx[WMI_HE_MAP_COUNT];
- A_UINT32 opaque_debug_he_mcs_nss_set_rx[WMI_HE_MAP_COUNT];
- /* opaque_debug_eht_mcs_nss_set_tx,_rx:
- * Rate node param - negotiated EHT MCS tx+rx maps,
- * part of struct TX_PEER_PARAMS.
- * B0-B3 indicates max NSS that supports mcs 0-7
- * B4-B7 indicates max NSS that supports mcs 8-9
- * B8-B11 indicates max NSS that supports mcs 10-11
- * B12-B15 indicates max NSS that supports mcs 12-13
- * B16-B31 reserved.
- * WMI_EHT_MAP_COUNT is based on EHT_MCS_MAP_CNT in ieee80211_defs.h.
- */
- A_UINT32 opaque_debug_eht_mcs_nss_set_tx[WMI_EHT_MAP_COUNT];
- A_UINT32 opaque_debug_eht_mcs_nss_set_rx[WMI_EHT_MAP_COUNT];
- /* opaque_debug_rc_user_start_mcs_rate:
- * Rate node user_start_rate is MCS value set based on phymode.
- * For possible values refer "INITIAL_" macros in ratectrl.h.
- * Part of struct TX_PEER_PARAMS.
- * This is the starting value of MCS that was used by rate control
- * for the first transmissions to the peer, until PER information
- * from the peer allowed the rate control algorithm to determine
- * the suitable MCS.
- */
- A_UINT32 opaque_debug_rc_user_start_mcs_rate;
- /*
- * The following 4 opaque_debug_field variables are provided purely
- * for debugging by technicians who have outside knowledge of what
- * kind of values the target has placed into these fields.
- * They are not to be interpreted by the host driver in any manner.
- */
- A_UINT32 opaque_debug_field_1;
- A_UINT32 opaque_debug_field_2;
- A_UINT32 opaque_debug_field_3;
- A_UINT32 opaque_debug_field_4;
- } wmi_ctrl_path_peer_stats_struct;
- #define WMI_PEER_STATS_SM_MASK_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PEER_STATS_SM_MASK_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PEER_STATS_EOSP_RETRY_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_PEER_STATS_EOSP_RETRY_CNT_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- /* bits 31:24 unused/reserved */
- #define WMI_PEER_STATS_ASSOCIATE_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PEER_STATS_ASSOCIATE_ID_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PEER_STATS_USAGE_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PEER_STATS_USAGE_CNT_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PEER_STATS_DEF_CAPS_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PEER_STATS_DEF_CAPS_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PEER_STATS_HT_CAPS_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PEER_STATS_HT_CAPS_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PEER_STATS_INACT_GEN_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PEER_STATS_INACT_GEN_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PEER_STATS_DATA_INACT_GEN_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PEER_STATS_DATA_INACT_GEN_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PEER_STATS_PEER_TYPE_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_PEER_STATS_PEER_TYPE_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_PEER_STATS_MAC_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_PEER_STATS_MAC_ID_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_PEER_STATS_PEER_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PEER_STATS_PEER_ID_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PEER_STATS_BSS_NON_DATA_RC_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_PEER_STATS_BSS_NON_DATA_RC_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_PEER_STATS_CH_WIDTH_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_PEER_STATS_CH_WIDTH_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_PEER_STATS_RX_MCS_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_PEER_STATS_RX_MCS_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- /* bits 31:24 unused/reserved */
- #define WMI_PEER_STATS_DELETE_ALL_FLAG_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_PEER_STATS_DELETE_ALL_FLAG_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_PEER_STATS_RC4_REKEY_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_PEER_STATS_RC4_REKEY_CNT_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- /* bits 31:16 unused/reserved */
- #define WMI_PEER_STATS_TWT_AP_FLAGS_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PEER_STATS_TWT_AP_FLAGS_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PEER_STATS_TWT_AP_SESSION_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_PEER_STATS_TWT_AP_SESSION_CNT_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_PEER_STATS_TWT_FRM_RETRY_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_PEER_STATS_TWT_FRM_RETRY_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_PEER_STATS_TWT_UL_TRIGGER_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_PEER_STATS_TWT_UL_TRIGGER_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_PEER_STATS_TWT_BC_SESSION_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_PEER_STATS_TWT_BC_SESSION_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_PEER_STATS_TWT_PENDING_REPORT_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_PEER_STATS_TWT_PENDING_REPORT_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_PEER_STATS_TWT_FLOW_IDS_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_PEER_STATS_TWT_FLOW_IDS_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_PEER_STATS_ADDBBA_TX_MODE_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PEER_STATS_ADDBBA_TX_MODE_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PEER_STATS_ADDBBA_RESP_MODE_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PEER_STATS_ADDBBA_RESP_MODE_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PEER_STATS_MAX_AMSDU_SIZE_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PEER_STATS_MAX_AMSDU_SIZE_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- /* bits 31:16 unused/reserved */
- #define WMI_PEER_STATS_TX_FRAME_CTRL_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PEER_STATS_TX_FRAME_CTRL_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PEER_STATS_TX_QOS_CTRL_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PEER_STATS_TX_QOS_CTRL_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PEER_STATS_CONSEC_FAIL_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PEER_STATS_CONSEC_FAIL_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PEER_STATS_SUBFRAME_SIZE_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PEER_STATS_SUBFRAME_SIZE_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PEER_STATS_TX_FAIL_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PEER_STATS_TX_FAIL_CNT_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PEER_STATS_TX_PARTIAL_AID_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PEER_STATS_TX_PARTIAL_AID_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PEER_STATS_MAX_NSS_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_PEER_STATS_MAX_NSS_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- /* bits 31:8 unused/reserved */
- #define WMI_PEER_STATS_DEL_RESP_TO_HOST_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 1, val)
- #define WMI_PEER_STATS_DEL_RESP_TO_HOST_GET(flag) \
- WMI_GET_BITS(flag, 0, 1)
- #define WMI_PEER_STATS_DELETE_IN_PROGRESS_SET(flag, val) \
- WMI_SET_BITS(flag, 1, 1, val)
- #define WMI_PEER_STATS_DELETE_IN_PROGRESS_GET(flag) \
- WMI_GET_BITS(flag, 1, 1)
- #define WMI_PEER_STATS_MIGRATION_IN_PROGRESS_SET(flag, val) \
- WMI_SET_BITS(flag, 2, 1, val)
- #define WMI_PEER_STATS_MIGRATION_IN_PROGRESS_GET(flag) \
- WMI_GET_BITS(flag, 2, 1)
- #define WMI_PEER_STATS_CONN_STATE_SET(flag, val) \
- WMI_SET_BITS(flag, 3, 4, val)
- #define WMI_PEER_STATS_CONN_STATE_GET(flag) \
- WMI_GET_BITS(flag, 3, 4)
- #define WMI_PEER_STATS_TX_CHAIN_MASK_160_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_PEER_STATS_TX_CHAIN_MASK_160_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_PEER_STATS_TX_CHAIN_MASK_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_PEER_STATS_TX_CHAIN_MASK_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_PEER_STATS_ASSOC_CHAIN_MASK_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_PEER_STATS_ASSOC_CHAIN_MASK_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_PEER_STATS_QOS_NULL_OVER_WMI_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 1, val)
- #define WMI_PEER_STATS_QOS_NULL_OVER_WMI_GET(flag) \
- WMI_GET_BITS(flag, 0, 1)
- #define WMI_PEER_STATS_NEW_ASSOC_SET(flag, val) \
- WMI_SET_BITS(flag, 1, 1, val)
- #define WMI_PEER_STATS_NEW_ASSOC_GET(flag) \
- WMI_GET_BITS(flag, 1, 1)
- #define WMI_PEER_STATS_TWT_FILT_FLAG_SET(flag, val) \
- WMI_SET_BITS(flag, 2, 1, val)
- #define WMI_PEER_STATS_TWT_FILT_FLAG_GET(flag) \
- WMI_GET_BITS(flag, 2, 1)
- #define WMI_PEER_STATS_TWT_REG_FLAG_SET(flag, val) \
- WMI_SET_BITS(flag, 3, 1, val)
- #define WMI_PEER_STATS_TWT_REG_FLAG_GET(flag) \
- WMI_GET_BITS(flag, 3, 1)
- #define WMI_PEER_STATS_WMM_UL_TRIG_FLAG_SET(flag, val) \
- WMI_SET_BITS(flag, 4, 1, val)
- #define WMI_PEER_STATS_WMM_UL_TRIG_FLAG_GET(flag) \
- WMI_GET_BITS(flag, 4, 1)
- #define WMI_PEER_STATS_ACTIVE_NOT_BA_TID_SET(flag, val) \
- WMI_SET_BITS(flag, 5, 4, val)
- #define WMI_PEER_STATS_ACTIVE_NOT_BA_TID_GET(flag) \
- WMI_GET_BITS(flag, 5, 4)
- /* bits 31:10 unused/reserved */
- #define WMI_PEER_STATS_NUM_LINKS_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 2, val)
- #define WMI_PEER_STATS_NUM_LINKS_GET(flag) \
- WMI_GET_BITS(flag, 0, 2)
- #define WMI_PEER_STATS_ML_PEER_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 2, 12, val)
- #define WMI_PEER_STATS_ML_PEER_ID_GET(flag) \
- WMI_GET_BITS(flag, 2, 12)
- #define WMI_PEER_STATS_PRI_LINK_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 14, 3, val)
- #define WMI_PEER_STATS_PRI_LINK_ID_GET(flag) \
- WMI_GET_BITS(flag, 14, 3)
- #define WMI_PEER_STATS_PRI_CHIP_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 17, 2, val)
- #define WMI_PEER_STATS_PRI_CHIP_ID_GET(flag) \
- WMI_GET_BITS(flag, 17, 2)
- #define WMI_PEER_STATS_LINK_INIT_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 19, 3, val)
- #define WMI_PEER_STATS_LINK_INIT_CNT_GET(flag) \
- WMI_GET_BITS(flag, 19, 3)
- #define WMI_PEER_STATS_NUM_LOCAL_LINKS_SET(flag, val) \
- WMI_SET_BITS(flag, 22, 2, val)
- #define WMI_PEER_STATS_NUM_LOCAL_LINKS_GET(flag) \
- WMI_GET_BITS(flag, 22, 2)
- #define WMI_PEER_STATS_CHIPS_BITMAP_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_PEER_STATS_CHIPS_BITMAP_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_VALID_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 1, val)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_VALID_GET(flag) \
- WMI_GET_BITS(flag, 0, 1)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_ACTIVE_SET(flag, val) \
- WMI_SET_BITS(flag, 1, 1, val)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_ACTIVE_GET(flag) \
- WMI_GET_BITS(flag, 1, 1)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_PRI_SET(flag, val) \
- WMI_SET_BITS(flag, 2, 1, val)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_PRI_GET(flag) \
- WMI_GET_BITS(flag, 2, 1)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_ASSOC_LINK_SET(flag, val) \
- WMI_SET_BITS(flag, 3, 1, val)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_ASSOC_LINK_GET(flag) \
- WMI_GET_BITS(flag, 3, 1)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_CHIP_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 4, 3, val)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_CHIP_ID_GET(flag) \
- WMI_GET_BITS(flag, 4, 3)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_IEEE_LINK_SET(flag, val) \
- WMI_SET_BITS(flag, 7, 8, val)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_IEEE_LINK_GET(flag) \
- WMI_GET_BITS(flag, 7, 8)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_HW_LINK_SET(flag, val) \
- WMI_SET_BITS(flag, 15, 3, val)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_HW_LINK_GET(flag) \
- WMI_GET_BITS(flag, 15, 3)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_LOGICAL_LINK_SET(flag, val) \
- WMI_SET_BITS(flag, 18, 2, val)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_LOGICAL_LINK_GET(flag) \
- WMI_GET_BITS(flag, 18, 2)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_MASTER_LINK_SET(flag, val) \
- WMI_SET_BITS(flag, 20, 1, val)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_MASTER_LINK_GET(flag) \
- WMI_GET_BITS(flag, 20, 1)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_ANCHOR_LINK_SET(flag, val) \
- WMI_SET_BITS(flag, 21, 1, val)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_ANCHOR_LINK_GET(flag) \
- WMI_GET_BITS(flag, 21, 1)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_INIT_SET(flag, val) \
- WMI_SET_BITS(flag, 22, 1, val)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_INIT_GET(flag) \
- WMI_GET_BITS(flag, 22, 1)
- /* bits 31:23 unused/reserved */
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_PEER_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_PEER_ID_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_VDEV_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_PEER_STATS_ML_PEER_LINK_INFO_VDEV_ID_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- /* bits 31:24 unused/reserved */
- #define WMI_PEER_STATS_NSS_160_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_PEER_STATS_NSS_160_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_PEER_STATS_RC_PHYMODE_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_PEER_STATS_RC_PHYMODE_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_PEER_STATS_LEGACY_RATE_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PEER_STATS_LEGACY_RATE_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_PEER_STATS_MIN_DATA_RATE_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_PEER_STATS_MIN_DATA_RATE_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_PEER_STATS_VHT_MAX_RATE_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 4, val)
- #define WMI_PEER_STATS_VHT_MAX_RATE_GET(flag) \
- WMI_GET_BITS(flag, 8, 4)
- #define WMI_PEER_STATS_VHT_MAX_STREAMS_SET(flag, val) \
- WMI_SET_BITS(flag, 12, 4, val)
- #define WMI_PEER_STATS_VHT_MAX_STREAMS_GET(flag) \
- WMI_GET_BITS(flag, 12, 4)
- #define WMI_PEER_STATS_RC_CHAN_FREQ_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_PEER_STATS_RC_CHAN_FREQ_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ctrl_path_cfr_stats_struct */
- A_UINT32 tlv_header;
- /* blanking_mode:
- * blanking configuration. Refer to WMI_SCAN_BLANKING_MODE
- */
- A_UINT32 blanking_mode;
- /* is_blanking_enabled:
- * current blanking status. 0 = disabled, 1 = enabled
- */
- A_UINT32 is_blanking_enabled;
- A_UINT32 gate_2g_enabled; /* 2.4GHZ gate pin state */
- A_UINT32 gate_5g_enabled; /* 5GHz gate pin state */
- A_UINT32 gate_6g_enabled; /* 6GHz gate pin state */
- A_UINT32 blanking_count; /* scan radio blanking count */
- A_UINT32 blanking_duration; /* scan radio blanking duration in us */
- } wmi_ctrl_path_blanking_stats_struct;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ctrl_path_stats_event_fixed_param */
- A_UINT32 tlv_header;
- /** Request ID */
- A_UINT32 request_id;
- /** more flag
- * 1 - More events sent after this event.
- * 0 - no more events after this event.
- */
- A_UINT32 more;
- /** status:
- * The status field's value shows whether the WMI_REQUEST_CTRL_PATH_STATS
- * request was completed successfully,
- * 0 - status is success
- * 1 - status is failure
- */
- A_UINT32 status;
- /** This TLV is (optionally) followed by TLV arrays containing
- * different types of stats:
- * 1. wmi_ctrl_path_pdev_stats_struct ctrl_path_pdev_stats[];
- * This TLV array contains zero or more pdev stats instances.
- * 2. wmi_vdev_extd_stats vdev_extd_stats[];
- * This TLV array contains zero or more vdev_extd_stats instances.
- */
- } wmi_ctrl_path_stats_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_halphy_ctrl_path_stats_event_fixed_param
- */
- A_UINT32 tlv_header;
- /** Process id requested */
- A_UINT32 request_id;
- /* end_of_event - single event or Multiple Event */
- A_UINT32 end_of_event;
- /*
- * event_count - If Multiple Events are send, this is to identify
- * particular event out of Multiple Events that are send to host
- */
- A_UINT32 event_count;
- /** Pdev id requested */
- A_UINT32 pdev_id;
- } wmi_halphy_ctrl_path_stats_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_radio_chan_stats */
- A_UINT32 tlv_header;
- /** primary channel freq of the channel whose stats is sent */
- A_UINT32 chan_mhz;
- /** accumulation of time the radio is tuned to this channel,
- * in units of microseconds */
- A_UINT32 on_chan_us;
- /** accumulation of the TX PPDU duration over the measurement period,
- * in units of microseconds */
- A_UINT32 tx_duration_us;
- /** accumulation of the RX PPDU duration over the measurement period,
- * in units of microseconds */
- A_UINT32 rx_duration_us;
- /** ratio of channel busy time to on_chan_us, in units of percent */
- A_UINT32 chan_busy_ratio;
- /** ratio of on_chan_us to the measurement period, in units of percent */
- A_UINT32 on_chan_ratio;
- /** measurement period, in units of microseconds */
- A_UINT32 measurement_period_us;
- /** MPDUs transmitted on this channel */
- A_UINT32 tx_mpdus;
- /** MSDUs transmitted on this channel */
- A_UINT32 tx_msdus;
- /** MPDUS successfully received on this channel */
- A_UINT32 rx_succ_mpdus;
- /** Failed MPDUs (CRC failures) received on this channel */
- A_UINT32 rx_fail_mpdus;
- } wmi_radio_chan_stats;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_radio_chan_stats_event_fixed_param */
- A_UINT32 tlv_header;
- /** number of channel stats in radio_chan_stats[] */
- A_UINT32 num_chans;
- /* This TLV is followed by another TLV of array of structs
- * wmi_radio_chan_stats radio_chan_stats[];
- */
- } wmi_radio_chan_stats_event_fixed_param;
- /**
- * PDEV statistics
- *
- * This struct incorporates the wlan_dbg_stats struct, which is
- * conditionally defined, based on the AR900B flag.
- * The below _v1 struct variant is the unconditional definition
- * that matches what would be conditionally defined by builds that
- * don't use the AR900B flag. The _v2 struct variant is the
- * unconditional definition that matches what would be conditionally
- * defined by builds that use the AR900B flag.
- * The _v2 struct def can be used within host or target builds
- * that don't use the AR900B flag, but needs to interoperate with a
- * target or host build that does use the AR900B flag.
- * Similarly, the _v1 struct def can be used by a host or target build
- * that does use the AR900B flag, but needs to interoperate with a
- * target or host build that doesn't use the AR900B flag.
- *
- * For backwards compatibility, wmi_pdev_stats is still (conditionally)
- * defined, as an alias for either the _v1 or _v2 variant.
- */
- typedef struct {
- /** Channel noise floor */
- A_INT32 chan_nf;
- /** TX frame count */
- A_UINT32 tx_frame_count;
- /** RX frame count */
- A_UINT32 rx_frame_count;
- /** rx clear count */
- A_UINT32 rx_clear_count;
- /** cycle count */
- A_UINT32 cycle_count;
- /** Phy error count */
- A_UINT32 phy_err_count;
- /** Channel Tx Power */
- A_UINT32 chan_tx_pwr;
- /** WAL dbg stats */
- struct wlan_dbg_stats_v1 pdev_stats;
- } wmi_pdev_stats_v1;
- typedef struct {
- /** Channel noise floor */
- A_INT32 chan_nf;
- /** TX frame count */
- A_UINT32 tx_frame_count;
- /** RX frame count */
- A_UINT32 rx_frame_count;
- /** rx clear count */
- A_UINT32 rx_clear_count;
- /** cycle count */
- A_UINT32 cycle_count;
- /** Phy error count */
- A_UINT32 phy_err_count;
- /** Channel Tx Power */
- A_UINT32 chan_tx_pwr;
- /** WAL dbg stats */
- struct wlan_dbg_stats_v2 pdev_stats;
- } wmi_pdev_stats_v2;
- #if defined(AR900B)
- #define wmi_pdev_stats wmi_pdev_stats_v2
- #else
- #define wmi_pdev_stats wmi_pdev_stats_v1
- #endif
- /**
- * pdev extension statistics
- */
- typedef struct {
- A_UINT32 tlv_header;
- /* pdev id */
- A_UINT32 pdev_id;
- /** my_rx_count
- * What portion of time, as measured by the MAC HW clock was occupied
- * by receiving PPDUs addressed to one of the vdevs within this pdev.
- */
- A_UINT32 my_rx_count;
- /** rx_matched_11ax_msdu_cnt
- * number of Rx 11ax MSDUs with matching BSS color counter
- * updated at EOP (end of packet)
- */
- A_UINT32 rx_matched_11ax_msdu_cnt;
- /** rx_other_11ax_msdu_cnt
- * number of Rx 11ax MSDUs with other BSS color counter updated at EOP
- * (end of packet)
- */
- A_UINT32 rx_other_11ax_msdu_cnt;
- } wmi_pdev_extd_stats;
- /**
- * pdev telemetry statistics
- */
- typedef struct{
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_telemetry_stats */
- A_UINT32 pdev_id;
- /*
- * Average channel latency per AC, units in micro seconds.
- * avg_chan_lat_per_ac[0] : AC_VO
- * avg_chan_lat_per_ac[1] : AC_VI
- * avg_chan_lat_per_ac[2] : AC_BE
- * avg_chan_lat_per_ac[3] : AC_BK
- */
- A_UINT32 avg_chan_lat_per_ac[WMI_AC_MAX];
- /*
- * Percentage of air time available for each AC, units in percentage.
- * BIT[0-7] : AC_BE
- * BIT[8-15] : AC_BK
- * BIT[16-23] : AC_VI
- * BIT[24-31] : AC_VO
- * Please refer to WMI_ESP_ESTIMATE_GET_* and WMI_ESP_ESTIMATE_SET_* macros
- * to retrieve values for each access category in estimated_air_time_per_ac.
- */
- A_UINT32 estimated_air_time_per_ac;
- } wmi_pdev_telemetry_stats;
- /**
- * VDEV statistics
- * @todo
- * add all VDEV stats here
- */
- typedef struct {
- A_INT32 bcn_snr;
- A_INT32 dat_snr;
- } wmi_snr_info;
- typedef struct {
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- wmi_snr_info vdev_snr;
- A_UINT32 tx_frm_cnt[WLAN_MAX_AC]; /* Total number of packets(per AC) that were successfully transmitted(with and without retries, including multi-cast, broadcast) */
- A_UINT32 rx_frm_cnt; /* Total number of packets that were successfully received (after appropriate filter rules including multi-cast, broadcast) */
- A_UINT32 multiple_retry_cnt[WLAN_MAX_AC]; /* The number of MSDU packets and MMPDU frames per AC
- that the 802.11 station successfully transmitted after more than one retransmission attempt */
- A_UINT32 fail_cnt[WLAN_MAX_AC]; /* Total number packets(per AC) failed to transmit */
- A_UINT32 rts_fail_cnt; /* Total number of RTS/CTS sequence failures for transmission of a packet */
- A_UINT32 rts_succ_cnt; /* Total number of RTS/CTS sequence success for transmission of a packet */
- A_UINT32 rx_err_cnt; /* The receive error count. HAL will provide the RxP FCS error global */
- A_UINT32 rx_discard_cnt; /* The sum of the receive error count and dropped-receive-buffer error count. (FCS error) */
- A_UINT32 ack_fail_cnt; /* Total number packets failed transmit because of no ACK from the remote entity */
- A_UINT32 tx_rate_history[MAX_TX_RATE_VALUES];/*History of last ten transmit rate, in units of 500 kbit/sec */
- A_UINT32 bcn_rssi_history[MAX_RSSI_VALUES];/*History of last ten Beacon RSSI of the connected Bss */
- } wmi_vdev_stats;
- /*
- * vdev ext stats with additional bcn stats
- * (Due to backward compatibility requirements, these new stats fields cannot be
- * added inside wmi_vdev_stats.)
- */
- typedef struct {
- A_UINT32 vdev_id;
- A_UINT32 tx_bcn_succ_cnt; /* Total number of beacon frame transmitted successfully */
- A_UINT32 tx_bcn_outage_cnt; /* Total number of failed beacons */
- } wmi_bcn_stats;
- #define WMI_VDEV_STATS_FLAGS_LINK_ACTIVE_FLAG_IS_VALID_BIT 0
- #define WMI_VDEV_STATS_FLAGS_LINK_ACTIVE_FLAG_IS_VALID_MASK \
- (1 << WMI_VDEV_STATS_FLAGS_LINK_ACTIVE_FLAG_IS_VALID_BIT)
- #define WMI_VDEV_STATS_FLAGS_IS_LINK_ACTIVE_BIT 1
- #define WMI_VDEV_STATS_FLAGS_IS_LINK_ACTIVE_MASK \
- (1 << WMI_VDEV_STATS_FLAGS_IS_LINK_ACTIVE_BIT)
- /**
- * vdev extension statistics
- */
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ctrl_vdev_extd_stats */
- A_UINT32 tlv_header;
- /* vdev id */
- A_UINT32 vdev_id;
- /* Total number of Fils Discovery frames transmitted successfully */
- A_UINT32 fd_succ_cnt;
- /* Total number of Fils Discovery frames failed */
- A_UINT32 fd_fail_cnt;
- /* Total number of unsolicited probe response frames transmitted successfully */
- A_UINT32 unsolicited_prb_succ_cnt;
- /* Total number of unsolicited probe response frames failed */
- A_UINT32 unsolicited_prb_fail_cnt;
- /* vdev info flags:
- * bit 0: WMI_VDEV_STATS_FLAGS_LINK_ACTIVE_FLAG_IS_VALID,
- * 0: the "is link active" flag is not valid
- * 1: the "is link active" flag is valid
- * bit 1: WMI_VDEV_STATS_FLAGS_IS_LINK_ACTIVE,
- * 1:link_active; 0:link_inactive
- * Refer to WMI_VDEV_STATS_FLAGS_ defs.
- */
- A_UINT32 flags;
- A_INT32 vdev_tx_power; /* dBm units */
- } wmi_vdev_extd_stats;
- /**
- * Vdev debug stats to be used for wmi control path stats.
- * This is an extension to vdev_extd_stats,
- * vdev_extd_stats display is part of apstats.
- */
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ctrl_path_vdev_stats_struct */
- A_UINT32 tlv_header;
- /* vdev id */
- A_UINT32 vdev_id;
- /** opaque_debug_wal_vdev_flags:
- * This will contain the value from wal_vdev wal vdev flags for vdev state
- */
- A_UINT32 opaque_debug_wal_vdev_flags;
- /** control flags for this vdev */
- A_UINT32 opaque_debug_vdev_flags;
- /** vdevid of transmitted AP (mbssid case) */
- A_UINT32 opaque_debug_vdevid_trans;
- /** opaque_debug_profile_idx:
- * the profile index of the connected non-trans ap (mbssid case).
- * 0 means invalid.
- */
- A_UINT32 opaque_debug_profile_idx;
- /** opaque_debug_profile_num:
- * the total profile numbers of non-trans aps (mbssid case).
- * 0 means legacy AP.
- */
- A_UINT32 opaque_debug_profile_num;
- /* Contains the value of multi_vdev_restart status */
- A_UINT32 opaque_debug_multi_vdev_restart;
- /* Contains the value of created mac_id from wal_vdev */
- A_UINT32 opaque_debug_created_mac_id;
- /* Contains the value of consecutive count of the leaky AP */
- A_UINT32 opaque_debug_consec_detect_leaky_ap_cnt;
- /* Contains the value of Vdev manager debug flags */
- A_UINT32 opaque_debug_vdev_mgr_dbg_flags;
- /* Contains the value of max vdev pause delay in microseconds */
- A_UINT32 opaque_debug_max_pause_delay_us;
- /* opaque_debug_sta_offset:
- * Contains the value of the offset of vdev TSF with BI (vdev_tsf%BI)
- * for STA vdev.
- */
- A_UINT32 opaque_debug_sta_offset;
- /* Contains the value of vdev pn sequence receive filter */
- A_UINT32 opaque_debug_vdev_pn_rx_filter;
- /* Contains the value of config params */
- A_UINT32 opaque_debug_traffic_config;
- /* opaque_debug_he_bss_rts_thld_tu:
- * Contains Period of time in units for a non-AP STA to reserve the medium.
- */
- A_UINT32 opaque_debug_he_bss_rts_thld_tu;
- /* opaque_debug_rts_threshold:
- * Contains the value of Request to Send (RTS) Threshold of the packet size.
- */
- A_UINT32 opaque_debug_rts_threshold; /* dot11RTSThreshold */
- /* Contains the value of Tx failure count threshold */
- A_UINT32 opaque_debug_tx_fail_cnt_thres;
- /* Contains the value of ratio = HI_WORD/LO_WORD */
- A_UINT32 opaque_debug_mu_edca_sifs_ratio;
- /* opaque_debug_kickout_th:
- * Contains the value of kickout threshold that denotes units of
- * lost block acks of consecutive tx failure threshold.
- */
- A_UINT32 opaque_debug_kickout_th;
- /* opaque_debug_rate_dd_bmap:
- * Contains the value of per vap config related to VAP aggregation
- * of ratectrl drop-down limits.
- */
- A_UINT32 opaque_debug_rate_dd_bmap;
- /* Contains the value of Maximum Transmission Unit frame size */
- A_UINT32 opaque_debug_mtu_size;
- /* Contains the value of vdev event bitmap from wal_vdev */
- A_UINT32 opaque_debug_event_bitmap;
- /* Contains the value of peer event bitmap from wal_vdev */
- A_UINT32 opaque_debug_peer_event_bitmap;
- /* Contains the value of Sched config of vdev allowed time during ATF */
- A_UINT32 opaque_debug_atf_vdev_allowed_time;
- /* opaque_debug_atf_vdev_used_unallocated_time:
- * Contains the value of Sched config of vdev used unallocated time
- * during ATF.
- */
- A_UINT32 opaque_debug_atf_vdev_used_unallocated_time;
- /* Contains the value of Sched config of vdev unused time during ATF */
- A_UINT32 opaque_debug_atf_vdev_unused_time;
- /* Contains the value of Carrier frequency offset last programmed time */
- A_UINT32 opaque_debug_last_prog_time;
- /* Contains the value of Carrier frequency offset last receive time */
- A_UINT32 opaque_debug_last_recv_time;
- /* Contains the value of Packet count of received frames on the channel */
- A_UINT32 opaque_debug_rx_pkt_on_channel;
- /* Contains the value of Target beacon transmission time offset value */
- A_UINT32 opaque_debug_tbtt_offset;
- /* Contains the value of tid pause bitmap of the peer from wal_vdev */
- A_UINT32 opaque_debug_peer_all_tid_pause_bitmap;
- /* Contains the value of tid block bitmap of the peer from wal_vdev */
- A_UINT32 opaque_debug_peer_all_tid_block_bitmap;
- /* Contains the value of tdls peer kickout threshold */
- A_UINT32 opaque_debug_tdls_peer_kickout_th;
- /* opaque_debug_num_of_remote_peers_connected:
- * Contains the value of num_of_remote_peers_connected;
- * Below field is valid only for AP vap.
- */
- A_UINT32 opaque_debug_num_of_remote_peers_connected;
- /* Contains the value of num of Multi group key support */
- A_UINT32 opaque_debug_num_group_key_enabled;
- /* Contains the value of delete all peer command flags */
- A_UINT32 opaque_debug_delete_all_peer_flags;
- /* Contains the value of Keepalive ARP sender address time */
- A_UINT32 opaque_debug_keepalive_arp_sender_ipv4;
- /* Contains the value of Keepalive ARP Target address time */
- A_UINT32 opaque_debug_keepalive_arp_target_ipv4;
- /* Contains the value of Keepalive interval duration time */
- A_UINT32 opaque_debug_keepalive_interval;
- /* Contains the value of Keepalive start timer timestamp */
- A_UINT32 opaque_debug_keepalive_timer_start_timestamp;
- /* Contains the value of max idle interval and status of STA */
- A_UINT32 opaque_debug_sta_maxidle_interval;
- A_UINT32 opaque_debug_sta_maxidle_method;
- /* Contains the value of Timing synchronization function (TSF) time diff */
- A_UINT32 opaque_debug_tsf_curr_time_diff;
- /* opaque_debug_sleep_duration_us:
- * Contains the value of Time in microsends to detect sleep duration
- * of the client.
- */
- A_UINT32 opaque_debug_sleep_duration_us;
- /* Contains the value of pause start time and to calculate pause delay */
- A_UINT32 opaque_debug_pause_start_time_us;
- A_UINT32 opaque_debug_pause_delay_us;
- /* Contains the value of number of supported group key */
- A_UINT32 opaque_debug_num_supported_group_key;
- /* opaque_debug_avg_data_null_tx_delay:
- * Contains the value of Average time taken to calculate data frame
- * tx delay.
- */
- A_UINT32 opaque_debug_avg_data_null_tx_delay;
- /* opaque_debug_avg_rx_leak_window:
- * Contains the value of Average time taken to calculate data frame
- * in receive window.
- */
- A_UINT32 opaque_debug_avg_rx_leak_window;
- /* Contains the value of count for number of received deauth frames */
- A_UINT32 opaque_debug_num_recv_deauth;
- /* Contains the value of Beacon interval in microseconds */
- A_UINT32 opaque_debug_bcn_intval_us;
- /* opaque_debug_fils_period
- * Contains the value of us, period configured through
- * WMI_ENABLE_FILS_CMDID.
- */
- A_UINT32 opaque_debug_fils_period;
- /* Contains the value of previous Timing synchronization function (TSF) */
- A_UINT32 opaque_debug_prev_tsf;
- /* Contains the value of time taken during client sleep */
- A_UINT32 opaque_debug_sleep_entry_time;
- /* Contains the value of Total sleep duration from wal_vdev */
- A_UINT32 opaque_debug_tot_sleep_dur;
- /* Contains the value of Vdev pause bitmap from wal_vdev */
- A_UINT32 opaque_debug_pause_bitmap;
- /* opaque_debug_last_send_to_host_deauth_tsf:
- * Contains the value of Last TSF time last_send_to_host_deauth_tsf
- * from wlan_vdev.
- */
- A_UINT32 opaque_debug_last_send_to_host_deauth_tsf;
- /* Contains the value of debug_short_ssid from wlan_vdev */
- A_UINT32 opaque_debug_short_ssid;
- /* Bitfield macro's expansion variables */
- /* opaque_debug_vdev_amsdu_bitfield:
- * bit 7:0 - Contains the value of dis_dyn_bw_rts from wlan_vdev,
- * 15:8 - max_amsdu,
- * 23:16 - def_amsdu,
- * 31:24 - he_bss_color
- */
- A_UINT32 opaque_debug_vdev_amsdu_bitfield;
- /* opaque_debug_vdev_ac_failure_configs:
- * bit 7:0 - Contains the value of dhe_def_pe_duratio from wal_vdev,
- * 15:8 - minimum_allowed_mcs,
- * 23:16 - max_11ac_to_leg_rts_fallback_th,
- * 31:24 - max_11ac_rts_consec_failure_th
- */
- A_UINT32 opaque_debug_vdev_ac_failure_configs;
- /* opaque_debug_vdev_pkt_type_info:
- * bit 7:0 - Contains the value of input_pkt_type from wal_vdev,
- * 15:8 - recv_pkt_type,
- * 23:16 - disable_intra_fwd,
- * 31:24 - ps_awake
- */
- A_UINT32 opaque_debug_vdev_pkt_type_info;
- /* opaque_debug_vdev_ba_param_bitfield:
- * bit 7:0 - Contains the value of snr_cal_count from wal_vdev,
- * 15:8 - amsdu_auto_enable,
- * 23:16 - param_ba_timeout,
- * 31:24 - param_ba_buffer_size
- */
- A_UINT32 opaque_debug_vdev_ba_param_bitfield;
- /* opaque_debug_vdev_aggr_bitfield:
- * bit 7:0 - Contains the value of param_amsdu_support from wal_vdev,
- * 15:8 - param_ba_retry_max,
- * 23:16 - tx_aggr_size,
- * 31:24 - rx_aggr_size
- */
- A_UINT32 opaque_debug_vdev_aggr_bitfield;
- /* opaque_debug_vdev_event_delivery:
- * bit 7:0 - Contains the value of tqm_bypass_enabled from wal_vdev,
- * 15:8 - wmmac_timer_vote_cnt,
- * 23:16 - peer_event_delivery_in_progress,
- * 31:24 - vdev_event_delivery_in_progress
- */
- A_UINT32 opaque_debug_vdev_event_delivery;
- /* opaque_debug_vdev_cap_slot_bitfield:
- * bit 7:0 - Contains the value of bcn_max_slot from wal_vdev,
- * 15:8 - bcn_curr_slot,
- * 23:16 - mgmt_tx_power,
- * 31:24 - mbssid_capable_association
- */
- A_UINT32 opaque_debug_vdev_cap_slot_bitfield;
- /* opaque_debug_vdev_bcn_configs:
- * bit 7:0 - Contains the value of mbssid_txbssid_association from
- * wal_vdev,
- * 15:8 - consec_beacon_skip,
- * 23:16 - consec_beacon_skip_cnt,
- * 31:24 - max_consec_beacon_skip
- */
- A_UINT32 opaque_debug_vdev_bcn_configs;
- /* Contains the value of opaque_debug_vdev_cmd_info */
- A_UINT32 opaque_debug_vdev_cmd_info;
- /* opaque_debug_vdev_mac_configs:
- * bit 7:0 - Contains the value of pause_cnt from wlan_vdev,
- * 15:8 - e_mac_id,
- * 23:16 - is_transmit_bssid,
- * 31:24 - rts_rc_flag
- */
- A_UINT32 opaque_debug_vdev_mac_configs;
- /* opaque_debug_vdev_mode_configs:
- * bit 7:0 - Contains the value of ic_opmode from wlan_vdev,
- * 15:8 - ic_subopmode,
- * 23:16 - ic_curmode,
- * 31:24 - vdev_up_cmd_cnt
- */
- A_UINT32 opaque_debug_vdev_mode_configs;
- /* opaque_debug_vdev_keepalive_bitfields:
- * bit 7:0 - keepalive_method
- * 15:8 - keepalive_prohibit_data_mgmt
- * 23:16 - resp_type
- * 31:24 - ap_detect_out_of_sync_sleeping_sta_time_secs
- */
- A_UINT32 opaque_debug_vdev_keepalive_bitfields;
- /* opaque_debug_vdev_bcn_drift_info:
- * bit 7:0 - bcn_drift_cnt
- * 15:8 - bcn_drift_calibration
- * 23:16 - rts_cts_default
- * 31:24 - vdev_down_cmd_cnt
- */
- A_UINT32 opaque_debug_vdev_bcn_drift_info;
- /* opaque_debug_vdev_arp_configs:
- * bit 7:0 - Contains the value of tbtt_link_type from wlan_vdev,
- * 15:8 - is_arp_in_air,
- * 23:16 - is_ns_in_air,
- * 31:24 - num_of_keepalive_attempts
- */
- A_UINT32 opaque_debug_vdev_arp_configs;
- /* opaque_debug_vdev_streams_configs:
- * bit 7:0 - n_beacons_since_last_rssi_report
- * 15:8 - num_ofld_peer_alloced
- * 23:16 - preferred_tx_streams
- * 31:24 - preferred_rx_streams
- */
- A_UINT32 opaque_debug_vdev_streams_configs;
- /* opaque_debug_vdev_chains_configs:
- * bit 7:0 - Contains the value of preferred_tx_streams_160 from
- * wlan_vdev,
- * 15:8 - preferred_rx_streams_160,
- * 23:16 - tx_chains_num_11b,
- * 31:24 - tx_chains_num_11ag
- */
- A_UINT32 opaque_debug_vdev_chains_configs;
- /* opaque_debug_vdev_power_cap_configs:
- * bit 7:0 - Contains the value of supp_op_cls_ie_len from wlan_vdev,
- * 15:8 - rm_en_cap_ie_len,
- * 23:16 - power_cap_ie_len,
- * 31:24 - supp_channel_ie_len
- */
- A_UINT32 opaque_debug_vdev_power_cap_configs;
- /* opaque_debug_vdev_wmm_mbo_configs:
- * bit 7:0 - Contains the value of wmm_tspec_ie_len from wlan_vdev,
- * 15:8 - ccx_version_ie_len,
- * 23:16 - extn_dh_ie_len,
- * 31:24 - mbo_ie_len
- */
- A_UINT32 opaque_debug_vdev_wmm_mbo_configs;
- /* opaque_debug_vdev_remote_configs:
- * bit 7:0 - Contains the value of rsnxe_ie_len from wlan_vdev,
- * 15:8 - remote_peer_cnt
- * 23:16 - p2p_cli_pause_type
- * 31:24 - mu_edca_update_count
- */
- A_UINT32 opaque_debug_vdev_remote_configs;
- /* opaque_debug_vdev_stats_id_configs:
- * bit 7:0 - vdev_stats_id
- * 15:8 - vdev_stats_id_valid
- * 23:16 - preferred_tx_streams_320
- * 31:24 - preferred_rx_streams_320
- */
- A_UINT32 opaque_debug_vdev_stats_id_configs;
- /* opaque_debug_vdev_assoc_peer_configs:
- * bit 7:0 - unused / reserved
- * 15:8 - group_cipher
- * 31:16 - assoc_id
- */
- A_UINT32 opaque_debug_vdev_assoc_peer_configs;
- /* opaque_debug_vdev_mhz_fils_configs:
- * bit 15:0 - Contains the value of bss_channel_mhz from wal_vdev,
- * 31:16 - config_fils_period
- */
- A_UINT32 opaque_debug_vdev_mhz_fils_configs;
- /* opaque_debug_vdev_fils_period:
- * bit 15:0 - Contains the value of calc_fils_period from wal_vdev,
- * 31:16 - ic_txseqs_cmn
- */
- A_UINT32 opaque_debug_vdev_fils_period;
- /* opaque_debug_vdev_inactive_time:
- * bit 15:0 - Contains the value of
- * ap_keepalive_min_idle_inactive_time_secs from wlan_vdev,
- * 31:16 - ap_keepalive_max_idle_inactive_time_secs
- */
- A_UINT32 opaque_debug_vdev_inactive_time;
- /* opaque_debug_vdev_chain_mask_configs:
- * bit 15:0 - Contains the value of
- * ap_keepalive_max_unresponsive_time_secs from wlan_vdev,
- * 31:16 - chain_mask
- */
- A_UINT32 opaque_debug_vdev_chain_mask_configs;
- /* opaque_debug_vdev_ie_len_configs:
- * bit 15:0 - num_mcast_filters
- * 31:16 - ext_cap_ie_len
- */
- A_UINT32 opaque_debug_vdev_ie_len_configs;
- /* opaque_debug_vdev_fils_configs:
- * bit 15:0 - Contains the value of fils_channel_guard_time from wlan_vdev,
- * 31:16 - fd_tmpl_len
- */
- A_UINT32 opaque_debug_vdev_fils_configs;
- /* opaque_debug_vdev_chan_configs:
- * bit 15:0 - Contains the value of common_rsn_caps from wlan_vdev,
- * 31:16 - off_ch_active_dwell_time
- */
- A_UINT32 opaque_debug_vdev_chan_configs;
- /* opaque_debug_vdev_dwell_configs:
- * bit 15:0 - Contains the value of off_ch_passive_dwell_time from
- * wlan_vdev,
- * 31:16 - current_pause_request_id
- */
- A_UINT32 opaque_debug_vdev_dwell_configs;
- /* opaque_debug_vdev_wmi_configs:
- * bit 0 - Contains the value of hide_ssid_enable from wlan_vdev,
- * 1 - b_none_protocol_paused
- * 2 - dpd_cal_state
- * 4 - req_bcn_q_unpause
- * 5 - bt_coex_enable_cts2s
- * 6 - dpd_delay_n_beacon
- * 8 - b_need_check_first_beacon
- * 9 - ap_peer_keepalive_max_idle_time_reached
- * 10 - leakyap_cts2s_enable
- * 11 - stasapscc_in_mcc
- * 12 - stasapscc_in_mcc_cts2s_enable
- * 13 - is_vdev_stopping
- * 14 - is_wmi_vdev_down
- * 15 - is_vdev_down_pending
- * 16 - vdev_delete_in_progress
- * 17 - cac_enabled
- * 18 - is_quaterrate
- * 19 - is_halfrate
- * 20 - stop_resp_event_blocked
- * 21 - use_enhanced_mcast_filter
- * 22 - is_start_pending_on_asm
- * 23 - no_null_to_ap_for_roaming
- * 24 - is_loopback_cal_pending
- * 25 - vdev_delete_acked
- * 26 - bc_proberesp_enable
- * 27 - is_wmm_param
- * 28 - is_connect_in_progress
- * 29 - is_mu_edca_param
- * 30 - send_del_resp_tohost
- * 31 - is_restart_different_ch
- */
- A_UINT32 opaque_debug_vdev_wmi_configs;
- /* opaque_debug_vdev_hu_mu_configs:
- * bit 0 - Contains the value of proto_ps_status from wlan_vdev,
- * 1 - smps_intolerant
- * 2 - is_offload_registered_for_connection
- * 3 - is_bss_beacon_offload_registered
- * 4 - is_prob_resp_offload_registered
- * 5 - is_ibss_beacon_offload_registered
- * 6 - is_keepalive_attempts_exhausted
- * 7 - is_bcn_tx_ie_changed_log
- * 8 - he_su_bfee
- * 9 - he_su_bfer
- * 10 - he_mu_bfee
- * 11 - he_mu_bfer
- * 12 - he_dl_ofdma
- * 13 - he_ul_ofdma
- * 14 - he_ul_mumimo
- * 15 - ul_mu_resp
- * 23:16 - alt_rssi_non_srg
- * 31:24 - alt_rssi_srg
- */
- A_UINT32 opaque_debug_vdev_hu_mu_configs;
- /* opaque_debug_vdev_sm_chan_configs:
- * bit 0 - Contains the value of he_bss_color_en from wlan_vdev,
- * 1 - he_txbf_ofdma
- * 2 - non_srg_enable
- * 3 - srg_enable
- * 4 - srp_enable
- * 5 - sr_initialized
- * 6 - sr_rings_initialized
- * 10:7 - per_ac_obss_pd_enable
- * 11 - ifup
- * 12 - ifactive
- * 13 - ifpaused
- * 14 - ifoutofsync
- * 15 - is_free
- * 16 - is_nawds
- * 17 - hw_flag
- * 18 - ch_req_flag
- * 20 - restart_resp
- * 21 - first_beacon_recv_wait
- * 22 - erpenabled
- * 23 - start_responded
- * 24 - bcn_sync_crit_req_act
- * 25 - recal_notif_registered
- * 26 - bcn_tx_paused
- * 27 - he_bss_color_en_bypass
- * 28 - default_ba_mode
- * 29 - ba_256_bitmap_enable
- * 30 - ba_256_bitmap_tx_disable
- * 31 - is_multi_group_key_enabled
- */
- A_UINT32 opaque_debug_vdev_sm_chan_configs;
- /*
- * The following 4 opaque_debug variables are provided purely for
- * debugging by technicians who have outside knowledge of what kind of
- * values the target has placed into these fields.
- * The host must not interpret the values of these fields, since the
- * meaning of the values provided in these fields may change without
- * regard for backwards compatibility or interoperability.
- */
- A_UINT32 opaque_debug_field_1;
- A_UINT32 opaque_debug_field_2;
- A_UINT32 opaque_debug_field_3;
- A_UINT32 opaque_debug_field_4;
- } wmi_ctrl_path_vdev_stats_struct;
- #define WMI_VDEV_STATS_DIS_DYN_BW_RTS_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_DIS_DYN_BW_RTS_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_MAX_AMSDU_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_MAX_AMSDU_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_DEF_AMSDU_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_DEF_AMSDU_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_HW_BSS_COLOR_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_HW_BSS_COLOR_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_HE_DEF_PE_DURATION_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_HE_DEF_PE_DURATION_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_MINIMUM_ALLOWED_MCS_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_MINIMUM_ALLOWED_MCS_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_MAX_11AC_TO_LEG_RTS_FALLBACK_TH_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_MAX_11AC_TO_LEG_RTS_FALLBACK_TH_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_MAX_11AC_RTS_CONSEC_FAILURE_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_MAX_11AC_RTS_CONSEC_FAILURE_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_INPUT_PKT_TYPE_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_INPUT_PKT_TYPE_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_RECV_PKT_TYPE_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_RECV_PKT_TYPE_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_DISABLE_INTRA_FWD_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_DISABLE_INTRA_FWD_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_PS_AWAKE_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_PS_AWAKE_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_SNR_CAL_COUNT_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_SNR_CAL_COUNT_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_AMSDU_AUTO_ENABLE_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_AMSDU_AUTO_ENABLE_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_PARAM_BA_TIMEOUT_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_PARAM_BA_TIMEOUT_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_PARAM_BA_BUFFER_SIZE_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_PARAM_BA_BUFFER_SIZE_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_PARAM_AMSDU_SUPPORT_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_PARAM_AMSDU_SUPPORT_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_PARAM_BA_RETRY_MAX_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_PARAM_BA_RETRY_MAX_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_TX_AGGR_SIZE_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_TX_AGGR_SIZE_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_RX_AGGR_SIZE_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_RX_AGGR_SIZE_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_TQM_BYPASS_ENABLED_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_TQM_BYPASS_ENABLED_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_WMMAC_TIMER_VOTE_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_WMMAC_TIMER_VOTE_CNT_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_PEER_EVENT_DELIVERY_IN_PROGRESS_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_PEER_EVENT_DELIVERY_IN_PROGRESS_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_VDEV_EVENT_DELIVERY_IN_PROGRESS_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_VDEV_EVENT_DELIVERY_IN_PROGRESS_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_BCN_MAX_SLOT_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_BCN_MAX_SLOT_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_BCN_CURR_SLOT_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_BCN_CURR_SLOT_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_MGMT_TX_POWER_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_MGMT_TX_POWER_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_MBSSID_CAPABLE_ASSOCIATION_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_MBSSID_CAPABLE_ASSOCIATION_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_MBSSID_TXBSSID_ASSOCIATION_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_MBSSID_TXBSSID_ASSOCIATION_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_CONSEC_BEACON_SKIP_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_CONSEC_BEACON_SKIP_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_CONSEC_BEACON_SKIP_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_CONSEC_BEACON_SKIP_CNT_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_MAX_CONSEC_BEACON_SKIP_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_MAX_CONSEC_BEACON_SKIP_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_BCN_DRIFT_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_BCN_DRIFT_CNT_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_BCN_DRIFT_CALIBRATION_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_BCN_DRIFT_CALIBRATION_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_VDEV_DOWN_CMD_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_VDEV_DOWN_CMD_CNT_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_RTS_CTS_DEFAULT_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_RTS_CTS_DEFAULT_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_PAUSE_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_PAUSE_CNT_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_E_MAC_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_E_MAC_ID_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_IS_TRANSMIT_BSSID_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_IS_TRANSMIT_BSSID_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_RTS_RC_FLAG_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_RTS_RC_FLAG_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_IC_OPMODE_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_IC_OPMODE_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_IC_SUBOPMODE_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_IC_SUBOPMODE_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_IC_CURMODE_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_IC_CURMODE_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_VDEV_UP_CMD_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_VDEV_UP_CMD_CNT_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_KEEPALIVE_METHOD_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_KEEPALIVE_METHOD_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_KEEPALIVE_PROHIBIT_DATA_MGMT_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_KEEPALIVE_PROHIBIT_DATA_MGMT_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_RESP_TYPE_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_RESP_TYPE_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_AP_DETECT_OUT_OF_SYNC_SLEEPING_STA_TIME_SECS_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_AP_DETECT_OUT_OF_SYNC_SLEEPING_STA_TIME_SECS_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_BCN_DRIFT_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_BCN_DRIFT_CNT_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_BCN_DRIFT_CALIBRATION_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_BCN_DRIFT_CALIBRATION_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_VDEV_DOWN_CMD_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_VDEV_DOWN_CMD_CNT_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_RTS_CTS_DEFAULT_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_RTS_CTS_DEFAULT_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_TBTT_LINK_TYPE_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_TBTT_LINK_TYPE_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_IS_ARP_IN_AIR_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_IS_ARP_IN_AIR_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_IS_NS_IN_AIR_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_IS_NS_IN_AIR_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_NUM_OF_KEEPALIVE_ATTEMPTS_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_NUM_OF_KEEPALIVE_ATTEMPTS_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_N_BEACONS_SINCE_LAST_RSSI_REPORT_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_N_BEACONS_SINCE_LAST_RSSI_REPORT_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_NUM_OFLD_PEER_ALLOCED_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_NUM_OFLD_PEER_ALLOCED_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_PREFERRED_TX_STREAMS_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_PREFERRED_TX_STREAMS_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_PREFERRED_RX_STREAMS_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_PREFERRED_RX_STREAMS_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_PREFERRED_TX_STREAMS_160_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_PREFERRED_TX_STREAMS_160_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_PREFERRED_RX_STREAMS_160_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_PREFERRED_RX_STREAMS_160_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_TX_CHAINS_NUM_11B_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_TX_CHAINS_NUM_11B_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_TX_CHAINS_NUM_11AG_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_TX_CHAINS_NUM_11AG_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_SUPP_OP_CLS_IE_LEN_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_SUPP_OP_CLS_IE_LEN_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_RM_EN_CAP_IE_LEN_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_RM_EN_CAP_IE_LEN_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_POWER_CAP_IE_LEN_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_POWER_CAP_IE_LEN_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_SUPP_CHANNEL_IE_LEN_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_SUPP_CHANNEL_IE_LEN_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_WMM_TSPEC_IE_LEN_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_WMM_TSPEC_IE_LEN_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_CCX_VERSION_IE_LEN_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_CCX_VERSION_IE_LEN_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_EXTN_DH_IE_LEN_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_EXTN_DH_IE_LEN_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_MBO_IE_LEN_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_MBO_IE_LEN_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_RSNXE_IE_LEN_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_RSNXE_IE_LEN_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_REMOTE_PEER_CNT_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_REMOTE_PEER_CNT_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_P2P_CLI_PAUSE_TYPE_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_P2P_CLI_PAUSE_TYPE_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_MU_EDCA_UPDATE_COUNT_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_MU_EDCA_UPDATE_COUNT_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 8, val)
- #define WMI_VDEV_STATS_ID_GET(flag) \
- WMI_GET_BITS(flag, 0, 8)
- #define WMI_VDEV_STATS_ID_VALID_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_ID_VALID_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_PREFERRED_TX_STREAMS_320_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_PREFERRED_TX_STREAMS_320_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_PREFERRED_RX_STREAMS_320_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_PREFERRED_RX_STREAMS_320_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- /* bits 7:0 unused / reserved */
- #define WMI_VDEV_STATS_GROUP_CIPHER_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 8, val)
- #define WMI_VDEV_STATS_GROUP_CIPHER_GET(flag) \
- WMI_GET_BITS(flag, 8, 8)
- #define WMI_VDEV_STATS_ASSOC_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_VDEV_STATS_ASSOC_ID_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_VDEV_STATS_BSS_CHANNEL_MHZ_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_VDEV_STATS_BSS_CHANNEL_MHZ_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_VDEV_STATS_CONFIG_FILS_PERIOD_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_VDEV_STATS_CONFIG_FILS_PERIOD_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_VDEV_STATS_CALC_FILS_PERIOD_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_VDEV_STATS_CALC_FILS_PERIOD_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_VDEV_STATS_IC_TXSEQS_CMN_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_VDEV_STATS_IC_TXSEQS_CMN_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_VDEV_STATS_AP_KEEPALIVE_MIN_IDLE_INACTIVE_TIME_SECS_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_VDEV_STATS_AP_KEEPALIVE_MIN_IDLE_INACTIVE_TIME_SECS_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_VDEV_STATS_AP_KEEPALIVE_MAX_IDLE_INACTIVE_TIME_SECS_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_VDEV_STATS_AP_KEEPALIVE_MAX_IDLE_INACTIVE_TIME_SECS_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_VDEV_STATS_AP_KEEPALIVE_MAX_UNRESPONSIVE_TIME_SECS_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_VDEV_STATS_AP_KEEPALIVE_MAX_UNRESPONSIVE_TIME_SECS_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_VDEV_STATS_CHAIN_MASK_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_VDEV_STATS_CHAIN_MASK_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_VDEV_STATS_NUM_MCAST_FILTERS_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_VDEV_STATS_NUM_MCAST_FILTERS_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_VDEV_STATS_EXT_CAP_IE_LEN_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_VDEV_STATS_EXT_CAP_IE_LEN_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_VDEV_STATS_FILS_CHANNEL_GUARD_TIME_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_VDEV_STATS_FILS_CHANNEL_GUARD_TIME_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_VDEV_STATS_FD_TMPL_LEN_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_VDEV_STATS_FD_TMPL_LEN_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_VDEV_STATS_COMMON_RSN_CAPS_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_VDEV_STATS_COMMON_RSN_CAPS_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_VDEV_STATS_OFF_CH_ACTIVE_DWELL_TIME_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_VDEV_STATS_OFF_CH_ACTIVE_DWELL_TIME_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_VDEV_STATS_OFF_CH_PASSIVE_DWELL_TIME_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 16, val)
- #define WMI_VDEV_STATS_OFF_CH_PASSIVE_DWELL_TIME_GET(flag) \
- WMI_GET_BITS(flag, 0, 16)
- #define WMI_VDEV_STATS_CURRENT_PAUSE_REQUEST_ID_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 16, val)
- #define WMI_VDEV_STATS_CURRENT_PAUSE_REQUEST_ID_GET(flag) \
- WMI_GET_BITS(flag, 16, 16)
- #define WMI_VDEV_STATS_HIDE_SSID_ENABLE_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 1, val)
- #define WMI_VDEV_STATS_HIDE_SSID_ENABLE_GET(flag) \
- WMI_GET_BITS(flag, 0, 1)
- #define WMI_VDEV_STATS_B_NONE_PROTOCOL_PAUSED_SET(flag, val) \
- WMI_SET_BITS(flag, 1, 1, val)
- #define WMI_VDEV_STATS_B_NONE_PROTOCOL_PAUSED_GET(flag) \
- WMI_GET_BITS(flag, 1, 1)
- #define WMI_VDEV_STATS_DPD_CAL_STATE_SET(flag, val) \
- WMI_SET_BITS(flag, 2, 2, val)
- #define WMI_VDEV_STATS_DPD_CAL_STATE_GET(flag) \
- WMI_GET_BITS(flag, 2, 2)
- #define WMI_VDEV_STATS_REQ_BCN_Q_UNPAUSE_SET(flag, val) \
- WMI_SET_BITS(flag, 4, 1, val)
- #define WMI_VDEV_STATS_REQ_BCN_Q_UNPAUSE_GET(flag) \
- WMI_GET_BITS(flag, 4, 1)
- #define WMI_VDEV_STATS_BT_COEX_ENABLE_CTS2S_SET(flag, val) \
- WMI_SET_BITS(flag, 5, 1, val)
- #define WMI_VDEV_STATS_BT_COEX_ENABLE_CTS2S_GET(flag) \
- WMI_GET_BITS(flag, 5, 1)
- #define WMI_VDEV_STATS_DPD_DELAY_N_BEACON_SET(flag, val) \
- WMI_SET_BITS(flag, 6, 2, val)
- #define WMI_VDEV_STATS_DPD_DELAY_N_BEACON_GET(flag) \
- WMI_GET_BITS(flag, 6, 2)
- #define WMI_VDEV_STATS_B_NEED_CHECK_FIRST_BEACON_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 1, val)
- #define WMI_VDEV_STATS_B_NEED_CHECK_FIRST_BEACON_GET(flag) \
- WMI_GET_BITS(flag, 8, 1)
- #define WMI_VDEV_STATS_AP_PEER_KEEPALIVE_MAX_IDLE_TIME_REACHED_SET(flag, val) \
- WMI_SET_BITS(flag, 9, 1, val)
- #define WMI_VDEV_STATS_AP_PEER_KEEPALIVE_MAX_IDLE_TIME_REACHED_GET(flag) \
- WMI_GET_BITS(flag, 9, 1)
- #define WMI_VDEV_STATS_LEAKYAP_CTS2S_ENABLE_SET(flag, val) \
- WMI_SET_BITS(flag, 10, 1, val)
- #define WMI_VDEV_STATS_LEAKYAP_CTS2S_ENABLE_GET(flag) \
- WMI_GET_BITS(flag, 10, 1)
- #define WMI_VDEV_STATS_STASAPSCC_IN_MCC_SET(flag, val) \
- WMI_SET_BITS(flag, 11, 1, val)
- #define WMI_VDEV_STATS_STASAPSCC_IN_MCC_GET(flag) \
- WMI_GET_BITS(flag, 11, 1)
- #define WMI_VDEV_STATS_STASAPSCC_IN_MCC_CTS2S_ENABLE_SET(flag, val) \
- WMI_SET_BITS(flag, 12, 1, val)
- #define WMI_VDEV_STATS_STASAPSCC_IN_MCC_CTS2S_ENABLE_GET(flag) \
- WMI_GET_BITS(flag, 12, 1)
- #define WMI_VDEV_STATS_IS_VDEV_STOPPING_SET(flag, val) \
- WMI_SET_BITS(flag, 13, 1, val)
- #define WMI_VDEV_STATS_IS_VDEV_STOPPING_GET(flag) \
- WMI_GET_BITS(flag, 13, 1)
- #define WMI_VDEV_STATS_IS_WMI_VDEV_DOWN_SET(flag, val) \
- WMI_SET_BITS(flag, 14, 1, val)
- #define WMI_VDEV_STATS_IS_WMI_VDEV_DOWN_GET(flag) \
- WMI_GET_BITS(flag, 14, 1)
- #define WMI_VDEV_STATS_IS_VDEV_DOWN_PENDING_SET(flag, val) \
- WMI_SET_BITS(flag, 15, 1, val)
- #define WMI_VDEV_STATS_IS_VDEV_DOWN_PENDING_GET(flag) \
- WMI_GET_BITS(flag, 15, 1)
- #define WMI_VDEV_STATS_VDEV_DELETE_IN_PROGRESS_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 1, val)
- #define WMI_VDEV_STATS_VDEV_DELETE_IN_PROGRESS_GET(flag) \
- WMI_GET_BITS(flag, 16, 1)
- #define WMI_VDEV_STATS_CAC_ENABLED_SET(flag, val) \
- WMI_SET_BITS(flag, 17, 1, val)
- #define WMI_VDEV_STATS_CAC_ENABLED_GET(flag) \
- WMI_GET_BITS(flag, 17, 1)
- #define WMI_VDEV_STATS_IS_QUATERRATE_SET(flag, val) \
- WMI_SET_BITS(flag, 18, 1, val)
- #define WMI_VDEV_STATS_IS_QUATERRATE_GET(flag) \
- WMI_GET_BITS(flag, 18, 1)
- #define WMI_VDEV_STATS_IS_HALFRATE_SET(flag, val) \
- WMI_SET_BITS(flag, 19, 1, val)
- #define WMI_VDEV_STATS_IS_HALFRATE_GET(flag) \
- WMI_GET_BITS(flag, 19, 1)
- #define WMI_VDEV_STATS_STOP_RESP_EVENT_BLOCKED_SET(flag, val) \
- WMI_SET_BITS(flag, 20, 1, val)
- #define WMI_VDEV_STATS_STOP_RESP_EVENT_BLOCKED_GET(flag) \
- WMI_GET_BITS(flag, 20, 1)
- #define WMI_VDEV_STATS_USE_ENHANCED_MCAST_FILTER_SET(flag, val) \
- WMI_SET_BITS(flag, 21, 1, val)
- #define WMI_VDEV_STATS_USE_ENHANCED_MCAST_FILTER_GET(flag) \
- WMI_GET_BITS(flag, 21, 1)
- #define WMI_VDEV_STATS_IS_START_PENDING_ON_ASM_SET(flag, val) \
- WMI_SET_BITS(flag, 22, 1, val)
- #define WMI_VDEV_STATS_IS_START_PENDING_ON_ASM_GET(flag) \
- WMI_GET_BITS(flag, 22, 1)
- #define WMI_VDEV_STATS_NO_NULL_TO_AP_FOR_ROAMING_SET(flag, val) \
- WMI_SET_BITS(flag, 23, 1, val)
- #define WMI_VDEV_STATS_NO_NULL_TO_AP_FOR_ROAMING_GET(flag) \
- WMI_GET_BITS(flag, 23, 1)
- #define WMI_VDEV_STATS_IS_LOOPBACK_CAL_PENDING_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 1, val)
- #define WMI_VDEV_STATS_IS_LOOPBACK_CAL_PENDING_GET(flag) \
- WMI_GET_BITS(flag, 24, 1)
- #define WMI_VDEV_STATS_VDEV_DELETE_ACKED_SET(flag, val) \
- WMI_SET_BITS(flag, 25, 1, val)
- #define WMI_VDEV_STATS_VDEV_DELETE_ACKED_GET(flag) \
- WMI_GET_BITS(flag, 25, 1)
- #define WMI_VDEV_STATS_BC_PROBERESP_ENABLE_SET(flag, val) \
- WMI_SET_BITS(flag, 26, 1, val)
- #define WMI_VDEV_STATS_BC_PROBERESP_ENABLE_GET(flag) \
- WMI_GET_BITS(flag, 26, 1)
- #define WMI_VDEV_STATS_IS_WMM_PARAM_SET_SET(flag, val) \
- WMI_SET_BITS(flag, 27, 1, val)
- #define WMI_VDEV_STATS_IS_WMM_PARAM_SET_GET(flag) \
- WMI_GET_BITS(flag, 27, 1)
- #define WMI_VDEV_STATS_IS_CONNECT_IN_PROGRESS_SET(flag, val) \
- WMI_SET_BITS(flag, 28, 1, val)
- #define WMI_VDEV_STATS_IS_CONNECT_IN_PROGRESS_GET(flag) \
- WMI_GET_BITS(flag, 28, 1)
- #define WMI_VDEV_STATS_IS_MU_EDCA_PARAM_SET_SET(flag, val) \
- WMI_SET_BITS(flag, 29, 1, val)
- #define WMI_VDEV_STATS_IS_MU_EDCA_PARAM_SET_GET(flag) \
- WMI_GET_BITS(flag, 29, 1)
- #define WMI_VDEV_STATS_SEND_DEL_RESP_TOHOST_SET(flag, val) \
- WMI_SET_BITS(flag, 30, 1, val)
- #define WMI_VDEV_STATS_SEND_DEL_RESP_TOHOST_GET(flag) \
- WMI_GET_BITS(flag, 30, 1)
- #define WMI_VDEV_STATS_IS_RESTART_DIFFERENT_CH_SET(flag, val) \
- WMI_SET_BITS(flag, 31, 1, val)
- #define WMI_VDEV_STATS_IS_RESTART_DIFFERENT_CH_GET(flag) \
- WMI_GET_BITS(flag, 31, 1)
- #define WMI_VDEV_STATS_PROTO_PS_STATUS_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 1, val)
- #define WMI_VDEV_STATS_PROTO_PS_STATUS_GET(flag) \
- WMI_GET_BITS(flag, 0, 1)
- #define WMI_VDEV_STATS_SMPS_INTOLERANT_SET(flag, val) \
- WMI_SET_BITS(flag, 1, 1, val)
- #define WMI_VDEV_STATS_SMPS_INTOLERANT_GET(flag) \
- WMI_GET_BITS(flag, 1, 1)
- #define WMI_VDEV_STATS_IS_OFFLOAD_REGISTERED_FOR_CONNECTION_SET(flag, val) \
- WMI_SET_BITS(flag, 2, 1, val)
- #define WMI_VDEV_STATS_IS_OFFLOAD_REGISTERED_FOR_CONNECTION_GET(flag) \
- WMI_GET_BITS(flag, 2, 1)
- #define WMI_VDEV_STATS_IS_BSS_BEACON_OFFLOAD_REGISTERED_SET(flag, val) \
- WMI_SET_BITS(flag, 3, 1, val)
- #define WMI_VDEV_STATS_IS_BSS_BEACON_OFFLOAD_REGISTERED_GET(flag) \
- WMI_GET_BITS(flag, 3, 1)
- #define WMI_VDEV_STATS_IS_PROB_RESP_OFFLOAD_REGISTERED_SET(flag, val) \
- WMI_SET_BITS(flag, 4, 1, val)
- #define WMI_VDEV_STATS_IS_PROB_RESP_OFFLOAD_REGISTERED_GET(flag) \
- WMI_GET_BITS(flag, 4, 1)
- #define WMI_VDEV_STATS_IS_IBSS_BEACON_OFFLOAD_REGISTERED_SET(flag, val) \
- WMI_SET_BITS(flag, 5, 1, val)
- #define WMI_VDEV_STATS_IS_IBSS_BEACON_OFFLOAD_REGISTERED_GET(flag) \
- WMI_GET_BITS(flag, 5, 1)
- #define WMI_VDEV_STATS_IS_KEEPALIVE_ATTEMPTS_EXHAUSTED_SET(flag, val) \
- WMI_SET_BITS(flag, 6, 1, val)
- #define WMI_VDEV_STATS_IS_KEEPALIVE_ATTEMPTS_EXHAUSTED_GET(flag) \
- WMI_GET_BITS(flag, 6, 1)
- #define WMI_VDEV_STATS_IS_BCN_TX_IE_CHANGED_LOG_SET(flag, val) \
- WMI_SET_BITS(flag, 7, 1, val)
- #define WMI_VDEV_STATS_IS_BCN_TX_IE_CHANGED_LOG_GET(flag) \
- WMI_GET_BITS(flag, 7, 1)
- #define WMI_VDEV_STATS_HE_SU_BFEE_SET(flag, val) \
- WMI_SET_BITS(flag, 8, 1, val)
- #define WMI_VDEV_STATS_HE_SU_BFEE_GET(flag) \
- WMI_GET_BITS(flag, 8, 1)
- #define WMI_VDEV_STATS_HE_SU_BFER_SET(flag, val) \
- WMI_SET_BITS(flag, 9, 1, val)
- #define WMI_VDEV_STATS_HE_SU_BFER_GET(flag) \
- WMI_GET_BITS(flag, 9, 1)
- #define WMI_VDEV_STATS_HE_MU_BFEE_SET(flag, val) \
- WMI_SET_BITS(flag, 10, 1, val)
- #define WMI_VDEV_STATS_HE_MU_BFEE_GET(flag) \
- WMI_GET_BITS(flag, 10, 1)
- #define WMI_VDEV_STATS_HE_MU_BFER_SET(flag, val) \
- WMI_SET_BITS(flag, 11, 1, val)
- #define WMI_VDEV_STATS_HE_MU_BFER_GET(flag) \
- WMI_GET_BITS(flag, 11, 1)
- #define WMI_VDEV_STATS_HE_DL_OFDMA_SET(flag, val) \
- WMI_SET_BITS(flag, 12, 1, val)
- #define WMI_VDEV_STATS_HE_DL_OFDMA_GET(flag) \
- WMI_GET_BITS(flag, 12, 1)
- #define WMI_VDEV_STATS_HE_UL_OFDMA_SET(flag, val) \
- WMI_SET_BITS(flag, 13, 1, val)
- #define WMI_VDEV_STATS_HE_UL_OFDMA_GET(flag) \
- WMI_GET_BITS(flag, 13, 1)
- #define WMI_VDEV_STATS_HE_UL_MUMIMO_SET(flag, val) \
- WMI_SET_BITS(flag, 14, 1, val)
- #define WMI_VDEV_STATS_HE_UL_MUMIMO_GET(flag) \
- WMI_GET_BITS(flag, 14, 1)
- #define WMI_VDEV_STATS_UL_MU_RESP_SET(flag, val) \
- WMI_SET_BITS(flag, 15, 1, val)
- #define WMI_VDEV_STATS_UL_MU_RESP_GET(flag) \
- WMI_GET_BITS(flag, 15, 1)
- #define WMI_VDEV_STATS_ALT_RSSI_NON_SRG_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 8, val)
- #define WMI_VDEV_STATS_ALT_RSSI_NON_SRG_GET(flag) \
- WMI_GET_BITS(flag, 16, 8)
- #define WMI_VDEV_STATS_ALT_RSSI_SRG_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 8, val)
- #define WMI_VDEV_STATS_ALT_RSSI_SRG_GET(flag) \
- WMI_GET_BITS(flag, 24, 8)
- #define WMI_VDEV_STATS_HE_BSS_COLOR_EN_SET(flag, val) \
- WMI_SET_BITS(flag, 0, 1, val)
- #define WMI_VDEV_STATS_HE_BSS_COLOR_EN_GET(flag) \
- WMI_GET_BITS(flag, 0, 1)
- #define WMI_VDEV_STATS_HE_TXBF_OFDMA_SET(flag, val) \
- WMI_SET_BITS(flag, 1, 1, val)
- #define WMI_VDEV_STATS_HE_TXBF_OFDMA_GET(flag) \
- WMI_GET_BITS(flag, 1, 1)
- #define WMI_VDEV_STATS_NON_SRG_ENABLE_SET(flag, val) \
- WMI_SET_BITS(flag, 2, 1, val)
- #define WMI_VDEV_STATS_NON_SRG_ENABLE_GET(flag) \
- WMI_GET_BITS(flag, 2, 1)
- #define WMI_VDEV_STATS_SRG_ENABLE_SET(flag, val) \
- WMI_SET_BITS(flag, 3, 1, val)
- #define WMI_VDEV_STATS_SRG_ENABLE_GET(flag) \
- WMI_GET_BITS(flag, 3, 1)
- #define WMI_VDEV_STATS_SRP_ENABLE_SET(flag, val) \
- WMI_SET_BITS(flag, 4, 1, val)
- #define WMI_VDEV_STATS_SRP_ENABLE_GET(flag) \
- WMI_GET_BITS(flag, 4, 1)
- #define WMI_VDEV_STATS_SR_INITIALIZED_SET(flag, val) \
- WMI_SET_BITS(flag, 5, 1, val)
- #define WMI_VDEV_STATS_SR_INITIALIZED_GET(flag) \
- WMI_GET_BITS(flag, 5, 1)
- #define WMI_VDEV_STATS_SR_RINGS_INITIALIZED_SET(flag, val) \
- WMI_SET_BITS(flag, 6, 1, val)
- #define WMI_VDEV_STATS_SR_RINGS_INITIALIZED_GET(flag) \
- WMI_GET_BITS(flag, 6, 1)
- #define WMI_VDEV_STATS_PER_AC_OBSS_PD_ENABLE_SET(flag, val) \
- WMI_SET_BITS(flag, 7, 4, val)
- #define WMI_VDEV_STATS_PER_AC_OBSS_PD_ENABLE_GET(flag) \
- WMI_GET_BITS(flag, 7, 4)
- #define WMI_VDEV_STATS_IFUP_SET(flag, val) \
- WMI_SET_BITS(flag, 11, 1, val)
- #define WMI_VDEV_STATS_IFUP_GET(flag) \
- WMI_GET_BITS(flag, 11, 1)
- #define WMI_VDEV_STATS_IFACTIVE_SET(flag, val) \
- WMI_SET_BITS(flag, 12, 1, val)
- #define WMI_VDEV_STATS_IFACTIVE_GET(flag) \
- WMI_GET_BITS(flag, 12, 1)
- #define WMI_VDEV_STATS_IFPAUSED_SET(flag, val) \
- WMI_SET_BITS(flag, 13, 1, val)
- #define WMI_VDEV_STATS_IFPAUSED_GET(flag) \
- WMI_GET_BITS(flag, 13, 1)
- #define WMI_VDEV_STATS_IFOUTOFSYNC_SET(flag, val) \
- WMI_SET_BITS(flag, 14, 1, val)
- #define WMI_VDEV_STATS_IFOUTOFSYNC_GET(flag) \
- WMI_GET_BITS(flag, 14, 1)
- #define WMI_VDEV_STATS_IS_FREE_SET(flag, val) \
- WMI_SET_BITS(flag, 15, 1, val)
- #define WMI_VDEV_STATS_IS_FREE_GET(flag) \
- WMI_GET_BITS(flag, 15, 1)
- #define WMI_VDEV_STATS_IS_NAWDS_SET(flag, val) \
- WMI_SET_BITS(flag, 16, 1, val)
- #define WMI_VDEV_STATS_IS_NAWDS_GET(flag) \
- WMI_GET_BITS(flag, 16, 1)
- #define WMI_VDEV_STATS_HW_FLAG_SET(flag, val) \
- WMI_SET_BITS(flag, 17, 1, val)
- #define WMI_VDEV_STATS_HW_FLAG_GET(flag) \
- WMI_GET_BITS(flag, 17, 1)
- #define WMI_VDEV_STATS_CH_REQ_FLAG_SET(flag, val) \
- WMI_SET_BITS(flag, 18, 2, val)
- #define WMI_VDEV_STATS_CH_REQ_FLAG_GET(flag) \
- WMI_GET_BITS(flag, 18, 2)
- #define WMI_VDEV_STATS_RESTART_RESP_SET(flag, val) \
- WMI_SET_BITS(flag, 20, 1, val)
- #define WMI_VDEV_STATS_RESTART_RESP_GET(flag) \
- WMI_GET_BITS(flag, 20, 1)
- #define WMI_VDEV_STATS_FIRST_BEACON_RECV_WAIT_SET(flag, val) \
- WMI_SET_BITS(flag, 21, 1, val)
- #define WMI_VDEV_STATS_FIRST_BEACON_RECV_WAIT_GET(flag) \
- WMI_GET_BITS(flag, 21, 1)
- #define WMI_VDEV_STATS_ERPENABLED_SET(flag, val) \
- WMI_SET_BITS(flag, 22, 1, val)
- #define WMI_VDEV_STATS_ERPENABLED_GET(flag) \
- WMI_GET_BITS(flag, 22, 1)
- #define WMI_VDEV_STATS_START_RESPONDED_SET(flag, val) \
- WMI_SET_BITS(flag, 23, 1, val)
- #define WMI_VDEV_STATS_START_RESPONDED_GET(flag) \
- WMI_GET_BITS(flag, 23, 1)
- #define WMI_VDEV_STATS_BCN_SYNC_CRIT_REQ_ACT_SET(flag, val) \
- WMI_SET_BITS(flag, 24, 1, val)
- #define WMI_VDEV_STATS_BCN_SYNC_CRIT_REQ_ACT_GET(flag) \
- WMI_GET_BITS(flag, 24, 1)
- #define WMI_VDEV_STATS_RECAL_NOTIF_REGISTERED_SET(flag, val) \
- WMI_SET_BITS(flag, 25, 1, val)
- #define WMI_VDEV_STATS_RECAL_NOTIF_REGISTERED_GET(flag) \
- WMI_GET_BITS(flag, 25, 1)
- #define WMI_VDEV_STATS_BCN_TX_PAUSED_SET(flag, val) \
- WMI_SET_BITS(flag, 26, 1, val)
- #define WMI_VDEV_STATS_BCN_TX_PAUSED_GET(flag) \
- WMI_GET_BITS(flag, 26, 1)
- #define WMI_VDEV_STATS_HE_BSS_COLOR_EN_BYPASS_SET(flag, val) \
- WMI_SET_BITS(flag, 27, 1, val)
- #define WMI_VDEV_STATS_HE_BSS_COLOR_EN_BYPASS_GET(flag) \
- WMI_GET_BITS(flag, 27, 1)
- #define WMI_VDEV_STATS_DEFAULT_BA_MODE_SET(flag, val) \
- WMI_SET_BITS(flag, 28, 1, val)
- #define WMI_VDEV_STATS_DEFAULT_BA_MODE_GET(flag) \
- WMI_GET_BITS(flag, 28, 1)
- #define WMI_VDEV_STATS_BA_256_BITMAP_ENABLE_SET(flag, val) \
- WMI_SET_BITS(flag, 29, 1, val)
- #define WMI_VDEV_STATS_BA_256_BITMAP_ENABLE_GET(flag) \
- WMI_GET_BITS(flag, 29, 1)
- #define WMI_VDEV_STATS_BA_256_BITMAP_TX_DISABLE_SET(flag, val) \
- WMI_SET_BITS(flag, 30, 1, val)
- #define WMI_VDEV_STATS_BA_256_BITMAP_TX_DISABLE_GET(flag) \
- WMI_GET_BITS(flag, 30, 1)
- #define WMI_VDEV_STATS_IS_MULTI_GROUP_KEY_ENABLED_SET(flag, val) \
- WMI_SET_BITS(flag, 31, 1, val)
- #define WMI_VDEV_STATS_IS_MULTI_GROUP_KEY_ENABLED_GET(flag) \
- WMI_GET_BITS(flag, 31, 1)
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ctrl_path_sta_rrm_stats_struct */
- A_UINT32 tlv_header;
- A_UINT32 dot11GroupTransmittedFrameCount;
- A_UINT32 dot11GroupReceivedFrameCount;
- A_UINT32 dot11TransmittedFrameCount;
- A_UINT32 dot11AckFailureCount;
- A_UINT32 dot11FailedCount;
- A_UINT32 dot11FCSErrorCount;
- A_UINT32 dot11RTSSuccessCount;
- A_UINT32 dot11RTSFailureCount;
- } wmi_ctrl_path_sta_rrm_stats_struct;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ctrl_path_vdev_bcn_stats_struct */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 beacon_succ_cnt;
- A_UINT32 beacon_outage_cnt;
- A_UINT32 beacon_cons_miss_cnt;
- A_UINT32 beacon_curr_miss_cnt;
- A_UINT32 beacon_sw_abort_cnt;
- A_UINT32 beacon_tx_filter_cnt;
- A_UINT32 beacon_tx_xretry_cnt;
- A_UINT32 beacon_tx_drop_cnt;
- A_UINT32 beacon_tx_abort_cnt;
- A_UINT32 beacon_tx_tid_del_cnt;
- A_UINT32 beacon_tx_mig_drop_cnt;
- A_UINT32 beacon_fail_others_cnt;
- A_UINT32 beacon_stuck_cnt;
- A_UINT32 beacon_tbtt_skip_cnt;
- A_UINT32 beacon_swba_cnt;
- A_UINT32 beacon_enque_fail;
- A_UINT32 scan_time_exceed_cnt;
- A_UINT32 beacon_miss_systime_gap_us;
- A_UINT32 beacon_last_miss_time_low_us;
- A_UINT32 beacon_last_miss_time_high_us;
- A_UINT32 last_tbtt_time_low_us;
- A_UINT32 last_tbtt_time_high_us;
- A_UINT32 last_tbtt_update_low_us;
- A_UINT32 last_tbtt_update_high_us;
- } wmi_ctrl_path_vdev_bcn_tx_stats_struct;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ctrl_path_pdev_bcn_stats_struct */
- A_UINT32 tlv_header;
- A_UINT32 pdev_id;
- A_UINT32 beacon_succ_cnt;
- A_UINT32 beacon_outage_cnt;
- A_UINT32 beacon_sw_abort_cnt;
- A_UINT32 beacon_tx_filter_cnt;
- A_UINT32 beacon_tx_xretry_cnt;
- A_UINT32 beacon_tx_drop_cnt;
- A_UINT32 beacon_tx_abort_cnt;
- A_UINT32 beacon_tx_tid_del_cnt;
- A_UINT32 beacon_tx_mig_drop_cnt;
- A_UINT32 beacon_fail_others_cnt;
- A_UINT32 beacon_stuck_cnt;
- A_UINT32 beacon_swba_cnt;
- A_UINT32 beacon_enque_fail;
- } wmi_ctrl_path_pdev_bcn_tx_stats_struct;
- /**
- * peer statistics.
- */
- typedef struct {
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** RSSI */
- A_UINT32 peer_rssi;
- /** last tx data rate used for peer */
- A_UINT32 peer_tx_rate;
- /** last rx data rate used for peer */
- A_UINT32 peer_rx_rate;
- } wmi_peer_stats;
- /**
- * Peer extension statistics
- */
- typedef struct {
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /* lower 32 bits of rx duration in microseconds */
- A_UINT32 rx_duration;
- /** Total TX bytes (including dot11 header) sent to peer */
- A_UINT32 peer_tx_bytes;
- /** Total RX bytes (including dot11 header) received from peer */
- A_UINT32 peer_rx_bytes;
- /** last TX ratecode */
- A_UINT32 last_tx_rate_code;
- /** TX power used by peer - units are 0.5 dBm */
- A_INT32 last_tx_power;
- /* Total number of received multicast & broadcast data frames corresponding to this peer */
- A_UINT32 rx_mc_bc_cnt; /* 1 in the MSB of rx_mc_bc_cnt represents a valid data */
- /* upper 32 bits of rx duration in microseconds */
- A_UINT32 rx_duration_u32; /* 1 in the most significant bit indicates this field contains valid data */
- A_UINT32 reserved[2]; /** for future use - add new peer stats here */
- } wmi_peer_extd_stats;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_extd2_stats */
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /*
- * The following rx_bytes field (lower/upper pair) counts only the
- * MSDU bytes (after 802.11 decap, if applicable), and thus doesn't
- * count the 802.11 header, unlike the wmi_peer_extd_stats.peer_rx_bytes
- * and wmi_peer_stats_info.rx_bytes fields.
- */
- /** Lower 32 bits of the rx_bytes (size of MSDUs) excluding dot11 header from this peer */
- A_UINT32 rx_bytes_l32;
- /** Upper 32 bits of the rx_bytes (size of MSDUs) excluding dot11 header from this peer */
- A_UINT32 rx_bytes_u32;
- /** Number of MPDUS received with FCS error from this peer */
- A_UINT32 rx_fcs_err;
- /** Number of MPDUs(both data and non data) received from this peer */
- A_UINT32 rx_mpdus;
- /** nss of last tx data to peer */
- A_UINT32 last_tx_nss;
- /** nss of last rx data from peer */
- A_UINT32 last_rx_nss;
- /** chain mask used for last tx data to peer */
- A_UINT32 last_tx_chain_mask;
- /** chain mask used for last rx data from peer */
- A_UINT32 last_rx_chain_mask;
- } wmi_peer_extd2_stats;
- typedef struct {
- /** Primary channel freq of the channel for which stats are sent */
- A_UINT32 chan_mhz;
- /** Time spent on the channel */
- A_UINT32 sampling_period_us;
- /** Aggregate duration over a sampling period for which channel activity was observed */
- A_UINT32 rx_clear_count;
- /** Accumalation of the TX PPDU duration over a sampling period */
- A_UINT32 tx_duration_us;
- /** Accumalation of the RX PPDU duration over a sampling period */
- A_UINT32 rx_duration_us;
- } wmi_chan_stats;
- /**
- * MIB statistics. See 802.11 spec for the meaning of each field.
- */
- typedef struct {
- A_UINT32 tx_mpdu_grp_frag_cnt; /*dot11TransmittedFragmentCount */
- A_UINT32 tx_msdu_grp_frm_cnt; /*dot11GroupTransmittedFrameCount */
- A_UINT32 tx_msdu_fail_cnt; /*dot11FailedCount*/
- A_UINT32 rx_mpdu_frag_cnt; /*dot11ReceivedFragmentCount*/
- A_UINT32 rx_msdu_grp_frm_cnt; /*dot11GroupReceivedFrameCount*/
- A_UINT32 rx_mpdu_fcs_err; /*dot11FCSErrorCount*/
- A_UINT32 tx_msdu_frm_cnt; /*dot11TransmittedFrameCount*/
- A_UINT32 tx_msdu_retry_cnt; /*dot11RetryCount*/
- A_UINT32 rx_frm_dup_cnt; /*dot11FrameDuplicateCount */
- A_UINT32 tx_rts_success_cnt; /*dot11RTSSuccessCount*/
- A_UINT32 tx_rts_fail_cnt; /*dot11RTSFailureCount*/
- A_UINT32 tx_Qos_mpdu_grp_frag_cnt; /*dot11QosTransmittedFragmentCount */
- A_UINT32 tx_Qos_msdu_fail_UP; /*dot11QosFailedCount */
- A_UINT32 tx_Qos_msdu_retry_UP; /*dot11QosRetryCount */
- A_UINT32 rx_Qos_frm_dup_cnt_UP; /*dot11QosFrameDuplicateCount*/
- A_UINT32 tx_Qos_rts_success_cnt_UP; /*dot11QosRTSSuccessCount*/
- A_UINT32 tx_Qos_rts_fail_cnt_UP; /*dot11QosRTSFailureCount*/
- A_UINT32 rx_Qos_mpdu_frag_cnt_UP; /*dot11QosReceivedFragmentCount*/
- A_UINT32 tx_Qos_msdu_frm_cnt_UP; /*dot11QosTransmittedFrameCount*/
- A_UINT32 rx_Qos_msdu_discard_cnt_UP; /*dot11QosDiscardedFrameCount*/
- A_UINT32 rx_Qos_mpdu_cnt; /*dot11QosMPDUsReceivedCount*/
- A_UINT32 rx_Qos_mpdu_retryBit_cnt; /*dot11QosRetriesReceivedCount*/
- A_UINT32 rsna_Mgmt_discard_CCMP_replay_err_cnt; /*dot11RSNAStatsRobustMgmtCCMPReplays*/
- A_UINT32 rsna_TKIP_icv_err_cnt; /*dot11RSNAStatsTKIPICVErrors*/
- A_UINT32 rsna_TKIP_replay_err_cnt; /*dot11RSNAStatsTKIPReplays*/
- A_UINT32 rsna_CCMP_decrypt_err_cnt; /*dot11RSNAStatsCCMPDecryptErrors*/
- A_UINT32 rsna_CCMP_replay_err_cnt; /*dot11RSNAStatsCCMPReplays*/
- A_UINT32 tx_ampdu_cnt; /*dot11TransmittedAMPDUCount*/
- A_UINT32 tx_mpdu_cnt_in_ampdu; /*dot11TransmittedMPDUsInAMPDUCount*/
- union {
- A_UINT64 counter; /* for use by target only */
- struct {
- A_UINT32 low;
- A_UINT32 high;
- } upload; /* for use by host */
- } tx_octets_in_ampdu; /*dot11TransmittedOctetsInAMPDUCount*/
- A_UINT32 rx_ampdu_cnt; /*dot11AMPDUReceivedCount*/
- A_UINT32 rx_mpdu_cnt_in_ampdu; /*dot11MPDUInReceivedAMPDUCount*/
- union {
- A_UINT64 counter; /* for use by target only */
- struct {
- A_UINT32 rx_octets_in_ampdu_low;
- A_UINT32 rx_octets_in_ampdu_high;
- } upload; /* for use by host */
- } rx_octets_in_ampdu; /*dot11ReceivedOctetsInAMPDUCount*/
- A_UINT32 reserved_1;
- A_UINT32 reserved_2;
- A_UINT32 reserved_3;
- A_UINT32 reserved_4;
- } wmi_mib_stats;
- /**
- * MIB extension statistics.
- */
- typedef struct {
- A_UINT32 tx_msdu_multi_retry_cnt; /*dot11MultipleRetryCount*/
- A_UINT32 tx_ack_fail_cnt; /*dot11ACKFailureCount*/
- A_UINT32 tx_qos_msdu_multi_retry_up; /*dot11QosMultipleRetryCount*/
- A_UINT32 tx_qos_ack_fail_cnt_up; /*dot11QosACKFailureCount*/
- A_UINT32 rsna_cmac_icv_err_cnt; /*dot11RSNAStatsCMACICVErrors*/
- A_UINT32 rsna_cmac_replay_err_cnt; /*dot11RSNAStatsCMACReplays*/
- A_UINT32 rx_ampdu_deli_crc_err_cnt; /*dot11AMPDUDelimiterCRCErrorCount*/
- A_UINT32 reserved[8]; /* Reserve more fields for future extension */
- } wmi_mib_extd_stats;
- /**
- * Beacon protection statistics.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pmf_bcn_protect_stats */
- A_UINT32 igtk_mic_fail_cnt; /* MIC failure count of management packets using IGTK */
- A_UINT32 igtk_replay_cnt; /* Replay detection count of management packets using IGTK */
- A_UINT32 bcn_mic_fail_cnt; /* MIC failure count of beacon packets using BIGTK */
- A_UINT32 bcn_replay_cnt; /* Replay detection count of beacon packets using BIGTK */
- } wmi_pmf_bcn_protect_stats;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rssi_stats */
- A_UINT32 vdev_id;
- A_INT32 rssi_avg_beacon[WMI_MAX_CHAINS];
- A_INT32 rssi_avg_data[WMI_MAX_CHAINS];
- wmi_mac_addr peer_macaddr;
- } wmi_rssi_stats;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_congestion_stats */
- A_UINT32 vdev_id;
- /* congestion -
- * This field holds the congestion percentage = (busy_time/total_time)*100
- * for the interval from when the vdev was started to the current time
- * (or the time at which the vdev was stopped).
- */
- A_UINT32 congestion;
- } wmi_congestion_stats;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_per_chain_rssi_stats */
- A_UINT32 num_per_chain_rssi_stats;
- /* This TLV is followed by another TLV of array of structs:
- * wmi_rssi_stats rssi_stats[num_per_chain_rssi_stats];
- */
- } wmi_per_chain_rssi_stats;
- /* vdev control flags (per bits) */
- #define VDEV_FLAGS_NON_MBSSID_AP 0x00000001 /* legacy AP */
- #define VDEV_FLAGS_TRANSMIT_AP 0x00000002 /* indicate if this vdev is transmitting AP */
- #define VDEV_FLAGS_NON_TRANSMIT_AP 0x00000004 /* explicitly indicate this vdev is non-transmitting AP */
- #define VDEV_FLAGS_EMA_MODE 0x00000008 /* vdev is EMA and supports multiple beacon profiles.
- * Once this flag set, flags VDEV_FLAGS_TRANSMIT_AP and
- * VDEV_FLAGS_NON_TRANSMIT_AP classify it as either Tx vap
- * or non Tx vap.
- */
- #define VDEV_FLAGS_SCAN_MODE_VAP 0x00000010 /* for Scan Radio vdev will be special vap.
- * There will not be WMI_VDEV_UP_CMD, there will be only WMI_VDEV_CREATE_CMD
- * and WMI_VDEV_START_REQUEST_CMD. Based on this parameter need to make decision like
- * vdev Pause/Unpause at WMI_VDEV_START_REQUEST_CMD.
- */
- /* get/set/check macros for VDEV_FLAGS_SCAN_MODE_VAP flag */
- #define WMI_SCAN_MODE_VDEV_FLAG_GET(flag) WMI_GET_BITS(flag, 4, 1)
- #define WMI_SCAN_MODE_VDEV_FLAG_SET(flag, val) WMI_SET_BITS(flag, 4, 1, val)
- #define WMI_SCAN_MODE_VDEV_FLAG_ENABLED(flag) ((flag & VDEV_FLAGS_SCAN_MODE_VAP) ? 1 : 0)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_create_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** VDEV type (AP,STA,IBSS,MONITOR) */
- A_UINT32 vdev_type;
- /** VDEV subtype (P2PDEV, P2PCLI, P2PGO, BT3.0, BRIDGE) */
- A_UINT32 vdev_subtype;
- /** VDEV MAC address */
- wmi_mac_addr vdev_macaddr;
- /** Number of configured txrx streams */
- A_UINT32 num_cfg_txrx_streams;
- /**
- * pdev_id for identifying the MAC,
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** control flags for this vdev (DEPRECATED)
- * Use @mbss_capability_flags in vdev start instead.
- */
- A_UINT32 flags;
- /** vdevid of transmitted AP (mbssid case) (DEPRECATED)
- * Use @vdevid_trans in vdev start instead.
- */
- A_UINT32 vdevid_trans;
- /* vdev_stats_id_valid indicates whether vdev_stats_id is valid */
- A_UINT32 vdev_stats_id_valid;
- /**
- * vdev_stats_id indicates the ID for the REO Rx stats collection
- * For Beryllium: 0-47 is the valid range and >=48 is invalid
- * This vdev_stats_id field should be ignored unless the
- * vdev_stats_id_valid field is non-zero.
- */
- A_UINT32 vdev_stats_id;
- /* This TLV is followed by another TLV of array of structures
- * wmi_vdev_txrx_streams cfg_txrx_streams[];
- * wmi_vdev_create_mlo_params mlo_params[0,1];
- * optional TLV, only present for MLO vdev;
- * if the vdev is not MLO the array length should be 0.
- */
- } wmi_vdev_create_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_txrx_streams */
- /* band - Should take values from wmi_channel_band_mask */
- A_UINT32 band;
- /* max supported tx streams per given band for this vdev */
- A_UINT32 supported_tx_streams;
- /* max supported rx streams per given band for this vdev */
- A_UINT32 supported_rx_streams;
- } wmi_vdev_txrx_streams;
- /* wmi_p2p_noa_descriptor structure can't be modified without breaking the compatibility for WMI_HOST_SWBA_EVENTID */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_p2p_noa_descriptor */
- A_UINT32 type_count; /** 255: continuous schedule, 0: reserved */
- A_UINT32 duration; /** Absent period duration in micro seconds */
- A_UINT32 interval; /** Absent period interval in micro seconds */
- A_UINT32 start_time; /** 32 bit tsf time when in starts */
- } wmi_p2p_noa_descriptor;
- /*
- * mlo_flags sub-fields:
- * bits 0 - mlo enable flag;
- * bits 1 - assoc link flag;
- * bits 2 - primary_umac flag;
- * bits 3 - is logical link index valid
- * bits 4 - is mlo peer id valid
- */
- #define WMI_MLO_FLAGS_GET_ENABLED(mlo_flags) WMI_GET_BITS(mlo_flags, 0, 1)
- #define WMI_MLO_FLAGS_SET_ENABLED(mlo_flags, value) WMI_SET_BITS(mlo_flags, 0, 1, value)
- #define WMI_MLO_FLAGS_GET_ASSOC_LINK(mlo_flags) WMI_GET_BITS(mlo_flags, 1, 1)
- #define WMI_MLO_FLAGS_SET_ASSOC_LINK(mlo_flags, value) WMI_SET_BITS(mlo_flags, 1, 1, value)
- #define WMI_MLO_FLAGS_GET_PRIMARY_UMAC(mlo_flags) WMI_GET_BITS(mlo_flags, 2, 1)
- #define WMI_MLO_FLAGS_SET_PRIMARY_UMAC(mlo_flags, value) WMI_SET_BITS(mlo_flags, 2, 1, value)
- #define WMI_MLO_FLAGS_GET_LINK_INDEX_VALID(mlo_flags) WMI_GET_BITS(mlo_flags, 3, 1)
- #define WMI_MLO_FLAGS_SET_LINK_INDEX_VALID(mlo_flags, value) WMI_SET_BITS(mlo_flags, 3, 1, value)
- #define WMI_MLO_FLAGS_GET_PEER_ID_VALID(mlo_flags) WMI_GET_BITS(mlo_flags, 4, 1)
- #define WMI_MLO_FLAGS_SET_PEER_ID_VALID(mlo_flags, value) WMI_SET_BITS(mlo_flags, 4, 1, value)
- #define WMI_MLO_FLAGS_GET_MCAST_VDEV(mlo_flags) WMI_GET_BITS(mlo_flags, 5, 1)
- #define WMI_MLO_FLAGS_SET_MCAST_VDEV(mlo_flags, value) WMI_SET_BITS(mlo_flags, 5, 1, value)
- #define WMI_MLO_FLAGS_GET_EMLSR_SUPPORT(mlo_flags) WMI_GET_BITS(mlo_flags, 6, 1)
- #define WMI_MLO_FLAGS_SET_EMLSR_SUPPORT(mlo_flags, value) WMI_SET_BITS(mlo_flags, 6, 1, value)
- #define WMI_MLO_FLAGS_GET_FORCE_LINK_INACTIVE(mlo_flags) WMI_GET_BITS(mlo_flags, 7, 1)
- #define WMI_MLO_FLAGS_SET_FORCE_LINK_INACTIVE(mlo_flags, value) WMI_SET_BITS(mlo_flags, 7, 1, value)
- #define WMI_MLO_FLAGS_GET_LINK_ADD(mlo_flags) WMI_GET_BITS(mlo_flags, 8, 1)
- #define WMI_MLO_FLAGS_SET_LINK_ADD(mlo_flags, value) WMI_SET_BITS(mlo_flags, 8, 1, value)
- #define WMI_MLO_FLAGS_GET_LINK_DEL(mlo_flags) WMI_GET_BITS(mlo_flags, 9, 1)
- #define WMI_MLO_FLAGS_SET_LINK_DEL(mlo_flags, value) WMI_SET_BITS(mlo_flags, 9, 1, value)
- #define WMI_MLO_FLAGS_GET_BRIDGE_PEER(mlo_flags) WMI_GET_BITS(mlo_flags, 10, 1)
- #define WMI_MLO_FLAGS_SET_BRIDGE_PEER(mlo_flags, value) WMI_SET_BITS(mlo_flags, 10, 1, value)
- #define WMI_MLO_FLAGS_GET_NSTR_BITMAP_PRESENT(mlo_flags) WMI_GET_BITS(mlo_flags, 11, 1)
- #define WMI_MLO_FLAGS_SET_NSTR_BITMAP_PRESENT(mlo_flags, value) WMI_SET_BITS(mlo_flags, 11, 1, value)
- #define WMI_MLO_FLAGS_GET_NSTR_BITMAP_SIZE(mlo_flags) WMI_GET_BITS(mlo_flags, 12, 1)
- #define WMI_MLO_FLAGS_SET_NSTR_BITMAP_SIZE(mlo_flags, value) WMI_SET_BITS(mlo_flags, 12, 1, value)
- #define WMI_MLO_FLAGS_GET_MLO_LINK_SWITCH(mlo_flags) WMI_GET_BITS(mlo_flags, 13, 1)
- #define WMI_MLO_FLAGS_SET_MLO_LINK_SWITCH(mlo_flags, value) WMI_SET_BITS(mlo_flags, 13, 1, value)
- #define WMI_MLO_FLAGS_GET_MLO_BRIDGE_LINK(mlo_flags) WMI_GET_BITS(mlo_flags, 14, 1)
- #define WMI_MLO_FLAGS_SET_MLO_BRIDGE_LINK(mlo_flags, value) WMI_SET_BITS(mlo_flags, 14, 1, value)
- /* this structure used for pass mlo flags*/
- typedef struct {
- union {
- struct {
- A_UINT32 mlo_enabled:1, /* indicate is MLO enabled */
- mlo_assoc_link:1, /* indicate is the link used to initialize the association of mlo connection */
- mlo_primary_umac:1, /* indicate is the link on primary UMAC, WIN only flag */
- mlo_logical_link_index_valid:1, /* indicate if the logial link index in wmi_peer_assoc_mlo_params is valid */
- mlo_peer_id_valid:1, /* indicate if the mlo peer id in wmi_peer_assoc_mlo_params is valid */
- mlo_mcast_vdev:1, /* indicate this is the MLO mcast primary vdev */
- emlsr_support:1, /* indicate that eMLSR is supported */
- mlo_force_link_inactive:1, /* indicate this link is forced inactive */
- mlo_link_add:1, /* Indicate dynamic link addition in an MLD VAP */
- mlo_link_del:1, /* Indicate dynamic link deletion in an MLD VAP */
- mlo_bridge_peer:1, /* Indicate if this link has bridge_peer */
- nstr_bitmap_present:1, /* Indicate if at least one NSTR link pair is present in the MLD */
- /* nstr_bitmap_size:
- * Set to 1 if the length of the corresponding NSTR
- * Indication Bitmap subfield is equal to 2 octets.
- * Set to 0 if the length of the corresponding NSTR
- * Indication Bitmap subfield is equal to 1 octet.
- */
- nstr_bitmap_size:1,
- mlo_link_switch: 1, /* indicate the command is a part of link switch procedure */
- mlo_bridge_link:1, /* indicate link is bridge link */
- unused: 17;
- };
- A_UINT32 mlo_flags;
- };
- /* NOTE:
- * Since this struct is embedded inside WMI TLV structs, it cannot
- * have any fields added, as expanding this struct would break
- * backwards-compatibility by changing the offsets of the subsequent
- * fields in the structs that contain this struct.
- */
- } wmi_mlo_flags;
- typedef struct {
- A_UINT32 tlv_header;/** TLV tag (WMITLV_TAG_STRUC_wmi_partner_link_params) and len;*/
- A_UINT32 vdev_id; /** partner vdev_id */
- A_UINT32 hw_link_id; /** hw_link_id: Unique link id across SOCs, got as part of QMI handshake */
- wmi_mac_addr vdev_macaddr; /** VDEV MAC address */
- wmi_mlo_flags mlo_flags;
- } wmi_partner_link_params;
- /* this TLV structure used for pass mlo parameters on vdev create*/
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; */
- /** MLD MAC address */
- wmi_mac_addr mld_macaddr;
- } wmi_vdev_create_mlo_params;
- /* this TLV structure used for pass mlo parameters on vdev start*/
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; */
- wmi_mlo_flags mlo_flags; /*only mlo enable and assoc link flag need by vdev start*/
- } wmi_vdev_start_mlo_params;
- /* this TLV structure used for passing mlo parameters on vdev stop */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; */
- wmi_mlo_flags mlo_flags; /* only mlo_link_switch flag needed by vdev stop */
- } wmi_vdev_stop_mlo_params;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_update_mac_addr_cmd_fixed_param */
- /** Unique id identifying the VDEV to update mac addr */
- A_UINT32 vdev_id;
- /** New VDEV MAC address to configure */
- wmi_mac_addr vdev_macaddr;
- /** New MLD MAC address to configure */
- wmi_mac_addr mld_macaddr;
- } wmi_vdev_update_mac_addr_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_update_mac_addr_conf_event_fixed_param */
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /*
- * Status of mac address update request.
- * Refer to wmi_vdev_update_mac_addr_conf_status.
- */
- A_UINT32 status;
- } wmi_vdev_update_mac_addr_conf_event_fixed_param;
- /** VDEV update mac address event response status codes */
- typedef enum {
- /** VDEV mac address updated successfully */
- WMI_VDEV_UPDATE_MAC_ADDR_CONF_STATUS_SUCCESS = 0,
- /** Requested VDEV not found */
- WMI_VDEV_UPDATE_MAC_ADDR_CONF_STATUS_INVALID_VDEVID = 1,
- /** Unsupported VDEV combination.eg: received cmd in VDEV connected state */
- WMI_VDEV_UPDATE_MAC_ADDR_CONF_STATUS_NOT_SUPPORTED = 2,
- /** FW internal failure to update mac address */
- WMI_VDEV_UPDATE_MAC_ADDR_CONF_STATUS_INTERNAL_FAIL = 3,
- } wmi_vdev_update_mac_addr_conf_status;
- /** values for vdev_type */
- #define WMI_VDEV_TYPE_AP 0x1
- #define WMI_VDEV_TYPE_STA 0x2
- #define WMI_VDEV_TYPE_IBSS 0x3
- #define WMI_VDEV_TYPE_MONITOR 0x4
- /** VDEV type is for social wifi interface.This VDEV is Currently mainly needed
- * by FW to execute the NAN specific WMI commands and also implement NAN specific
- * operations like Network discovery, service provisioning and service
- * subscription ..etc. If FW needs NAN VDEV then Host should issue VDEV create
- * WMI command to create this VDEV once during initialization and host is not
- * expected to use any VDEV specific WMI commands on this VDEV.
- **/
- #define WMI_VDEV_TYPE_NAN 0x5
- #define WMI_VDEV_TYPE_OCB 0x6
- /* NAN Data Interface */
- #define WMI_VDEV_TYPE_NDI 0x7
- #define WMI_VDEV_TYPE_MESH_POINT 0x8
- /*
- * Param values to be sent for WMI_VDEV_PARAM_SGI command
- * which are used in 11ax, 11be systems
- */
- #define WMI_SGI_LEGACY 0x1 /* for HT and VHT */
- #define WMI_SGI_HE_400_NS 0x2 /* for HE 400 nsec */
- #define WMI_SGI_HE_800_NS 0x4 /* for HE 800 nsec */
- #define WMI_SGI_HE_1600_NS 0x8 /* for HE 1600 nsec */
- #define WMI_SGI_HE_3200_NS 0x10 /* for HE 3200 nsec */
- #define WMI_SGI_EHT_800_NS 0x20 /* for EHT 800 nsec */
- #define WMI_SGI_EHT_1600_NS 0x40 /* for EHT 1600 nsec */
- #define WMI_SGI_EHT_3200_NS 0x80 /* for EHT 3200 nsec */
- /*
- * Param values to be sent for WMI_VDEV_PARAM_HE_LTF command
- * which are used in 11ax systems
- */
- #define WMI_HE_LTF_DEFAULT 0x0
- #define WMI_HE_LTF_1X 0x1
- #define WMI_HE_LTF_2X 0x2
- #define WMI_HE_LTF_4X 0x3
- /*
- * Param values to be sent for WMI_VDEV_EHT_PARAM_LTF command
- * which are used in 11be systems
- */
- #define WMI_EHT_LTF_DEFAULT 0x4
- #define WMI_EHT_LTF_1X 0x5
- #define WMI_EHT_LTF_2X 0x6
- #define WMI_EHT_LTF_4X 0x7
- /** values for vdev_subtype */
- #define WMI_UNIFIED_VDEV_SUBTYPE_P2P_DEVICE 0x1
- #define WMI_UNIFIED_VDEV_SUBTYPE_P2P_CLIENT 0x2
- #define WMI_UNIFIED_VDEV_SUBTYPE_P2P_GO 0x3
- #define WMI_UNIFIED_VDEV_SUBTYPE_PROXY_STA 0x4
- #define WMI_UNIFIED_VDEV_SUBTYPE_MESH 0x5
- /* new subtype for 11S mesh is required as 11S functionality differs
- * in many ways from proprietary mesh
- * 11S uses 6-addr frame format and supports peering between mesh
- * stations and dynamic best path selection between mesh stations.
- * While in proprietary mesh, neighboring mesh station MAC is manually
- * added to AST table for traffic flow between mesh stations
- */
- #define WMI_UNIFIED_VDEV_SUBTYPE_MESH_11S 0x6
- /* Subtype to indicate that the AP VAP is in smart monitor mode
- * This is needed to differentiate in firmware between normal AP mode
- * with smart monitor AP mode
- */
- #define WMI_UNIFIED_VDEV_SUBTYPE_SMART_MON 0x7
- /* Subtype to indicate that the VDEV is in Bridge mode.
- * Bridge VDEV is dummy VDEV required for 4 chip MLO scenario.
- * Bridge Peer will be connected to Bridge VDEV.
- * Bridge VDEV/PEER will be required to seamlessly transmit
- * to diagonal links in 4 chip MLO.
- */
- #define WMI_UNIFIED_VDEV_SUBTYPE_BRIDGE 0x8
- /** values for vdev_start_request flags */
- /** Indicates that AP VDEV uses hidden ssid. only valid for
- * AP/GO */
- #define WMI_UNIFIED_VDEV_START_HIDDEN_SSID (1<<0)
- /** Indicates if robust management frame/management frame
- * protection is enabled. For GO/AP vdevs, it indicates that
- * it may support station/client associations with RMF enabled.
- * For STA/client vdevs, it indicates that sta will
- * associate with AP with RMF enabled. */
- #define WMI_UNIFIED_VDEV_START_PMF_ENABLED (1<<1)
- /*
- * Host is sending bcn_tx_rate to override the beacon tx rates.
- */
- #define WMI_UNIFIED_VDEV_START_BCN_TX_RATE_PRESENT (1<<2)
- /** Indicates if LDPC RX will be advertized inside HT/VHT Capabilities IE
- * of assoc request/response
- */
- #define WMI_UNIFIED_VDEV_START_LDPC_RX_ENABLED (1<<3)
- /** Indicates HW encryption is disabled, and SW encryption is enabled.
- * If This flag is set, indicates that HW encryption will be disabled
- * and SW encryption will be enabled.
- * If SW encryption is enabled, key plumbing will not happen in FW.
- */
- #define WMI_UNIFIED_VDEV_START_HW_ENCRYPTION_DISABLED (1<<4)
- /** Indicates VAP is used for MLO repurpose.
- * This Indicates that vap can be brought up as 11ax or 11be and can be
- * repurposed based on the above stack on the fly to change from MLO to
- * non MLO, currently we support only 11ax and 11be transition.
- */
- #define WMI_UNIFIED_VDEV_START_MLO_REPURPOSE_VAP (1<<5)
- /* BSS color 0-6 */
- #define WMI_HEOPS_COLOR_GET_D2(he_ops) WMI_GET_BITS(he_ops, 0, 6)
- #define WMI_HEOPS_COLOR_SET_D2(he_ops, value) WMI_SET_BITS(he_ops, 0, 6, value)
- /* Default PE Duration subfield indicates the PE duration in units of 4 us */
- #define WMI_HEOPS_DEFPE_GET_D2(he_ops) WMI_GET_BITS(he_ops, 6, 3)
- #define WMI_HEOPS_DEFPE_SET_D2(he_ops, value) WMI_SET_BITS(he_ops, 6, 3, value)
- /* TWT required */
- #define WMI_HEOPS_TWT_REQUIRED_GET_D2(he_ops) WMI_GET_BITS(he_ops, 9, 1)
- #define WMI_HEOPS_TWT_REQUIRED_SET_D2(he_ops, value) WMI_SET_BITS(he_ops, 9, 1, value)
- /* DEPRECATED, use WMI_HEOPS_TWT_REQUIRED_GET instead */
- #define WMI_HEOPS_TWT_GET_D2(he_ops) \
- WMI_HEOPS_TWT_REQUIRED_GET_D2(he_ops)
- /* DEPRECATED, use WMI_HEOPS_TWT_REQUIRED_SET instead */
- #define WMI_HEOPS_TWT_SET_D2(he_ops, value) \
- WMI_HEOPS_TWT_REQUIRED_SET_D2(he_ops, value)
- /* RTS threshold in units of 32 us,0 - always use RTS 1023 - this is disabled */
- #define WMI_HEOPS_RTSTHLD_GET_D2(he_ops) WMI_GET_BITS(he_ops, 10, 10)
- #define WMI_HEOPS_RTSTHLD_SET_D2(he_ops, value) WMI_SET_BITS(he_ops, 10, 10, value)
- /* Partial BSS Color field indicates whether BSS applies an AID assignment rule using partial BSS color bits */
- #define WMI_HEOPS_PARTBSSCOLOR_GET_D2(he_ops) WMI_GET_BITS(he_ops, 20, 1)
- #define WMI_HEOPS_PARTBSSCOLOR_SET_D2(he_ops, value) WMI_SET_BITS(he_ops, 20, 1, value)
- /* MAX BSS supported by MultiBSS element */
- #define WMI_HEOPS_MAXBSSID_GET_D2(he_ops) WMI_GET_BITS(he_ops, 21, 8)
- #define WMI_HEOPS_MAXBSSID_SET_D2(he_ops, value) WMI_SET_BITS(he_ops, 21, 8, value)
- /* Tx BSSID Indicator indicates whether HE AP corresponds to transmitted BSSID */
- #define WMI_HEOPS_TXBSSID_GET_D2(he_ops) WMI_GET_BITS(he_ops, 29, 1)
- #define WMI_HEOPS_TXBSSID_SET_D2(he_ops, value) WMI_SET_BITS(he_ops, 29, 1, value)
- /* when set to 1 disables use of BSS color */
- #define WMI_HEOPS_BSSCOLORDISABLE_GET_D2(he_ops) WMI_GET_BITS(he_ops, 30, 1)
- #define WMI_HEOPS_BSSCOLORDISABLE_SET_D2(he_ops, value) WMI_SET_BITS(he_ops, 30, 1, value)
- /**--- HEOPS_DUALBEACON: DO NOT USE - DEPRECATED ---*/
- /* When set to 1 HE AP transmits beacons using two PHY formats,
- * one in non-HE format and other in an HE_EXT_SU PHY format
- */
- #define WMI_HEOPS_DUALBEACON_GET_D2(he_ops) (0)
- #define WMI_HEOPS_DUALBEACON_SET_D2(he_ops, value) {;}
- #define WMI_MAX_HECAP_PHY_SIZE (3)
- /* Dual Band both 2.4 GHz and 5 GHz Supported */
- #define WMI_HECAP_PHY_DB_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 0, 1)
- #define WMI_HECAP_PHY_DB_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 0, 1, value)
- /*
- * B0: Indicates STA support 40 MHz channel width in 2.4 GHz
- * B1: Indicates STA support 40 MHz and 80 MHz channel width in 5 GHz
- * B2: Indicates STA supports 160 MHz channel width in 5 GHz
- * B3: Indicates STA supports 160/80+80 MHz channel width in 5 GHz
- * B4: If B1 is set to 0, then B5 indicates support of 242/106/52/26-tone
- * RU mapping in 40 MHz channel width in 2.4 GHz. Otherwise Reserved.
- * B5: If B2, B3, and B4 are set to 0, then B6 indicates support of
- * 242-tone RU mapping in 40 MHz and 80
- * MHz channel width in 5 GHz. Otherwise Reserved.
- * B6: Reserved
- */
- #define WMI_HECAP_PHY_CBW_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 1, 7)
- #define WMI_HECAP_PHY_CBW_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 1, 7, value)
- /*
- * B0: Indicates STA supports reception of preamble puncturing in 80 MHz,
- * where in the preamble only the secondary 20 MHz is punctured
- * B1: Indicates STA supports reception of preamble puncturing in 80 MHz,
- * where in the preamble only one of the two 20 MHz sub-channels in the
- * secondary 40 MHz is punctured
- * B2: Indicates STA supports reception of preamble puncturing in 160 MHz
- * or 80+80 MHz, where in the primary 80 MHz of the preamble only the
- * secondary 20 MHz is punctured
- * B3: Indicates STA supports reception of preamble puncturing in 160 MHz
- * or 80+80 MHz, where in the primary 80 MHz of the preamble, the
- * primary 40 MHz is present
- */
- #define WMI_HECAP_PHY_PREAMBLEPUNCRX_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 8, 4)
- #define WMI_HECAP_PHY_PREAMBLEPUNCRX_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 8, 4, value)
- /* Indicates transmitting STA is a Class A (1) or a Class B (0) device */
- #define WMI_HECAP_PHY_COD_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 12, 1)
- #define WMI_HECAP_PHY_COD_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 12, 1, value)
- /* Indicates support of transmission and reception of LDPC encoded packets */
- #define WMI_HECAP_PHY_LDPC_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 13, 1)
- #define WMI_HECAP_PHY_LDPC_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 13, 1, value)
- /* Below 2 macros are for maintaining backward compatibility - Deprecated use WMI_HECAP_PHY_LDPC instead */
- #define WMI_HECAP_PHY_TXLDPC_GET_D2(he_cap_phy) WMI_HECAP_PHY_LDPC_GET_D2(he_cap_phy)
- #define WMI_HECAP_PHY_TXLDPC_SET_D2(he_cap_phy, value) WMI_HECAP_PHY_LDPC_SET_D2(he_cap_phy, value)
- /* Below 2 macros are for maintaining backward compatibility - Deprecated use WMI_HECAP_PHY_LDPC instead */
- #define WMI_HECAP_PHY_RXLDPC_GET_D2(he_cap_phy) WMI_HECAP_PHY_LDPC_GET_D2(he_cap_phy)
- #define WMI_HECAP_PHY_RXLDPC_SET_D2(he_cap_phy, value) WMI_HECAP_PHY_LDPC_SET_D2(he_cap_phy, value)
- /*
- * B0: Indicates support of reception of 1x LTF and 0.8us guard interval duration for HE SU PPDUs.
- */
- #define WMI_HECAP_PHY_LTFGIFORHE_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 14, 1)
- #define WMI_HECAP_PHY_LTFGIFORHE_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 14, 1, value)
- /*
- * When the Doppler Rx subfield is 1, indicates the maximum number of space-
- * time streams supported for reception when midamble is used in the Data field.
- */
- #define WMI_HECAP_PHY_MIDAMBLERXMAXNSTS_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 15, 2)
- #define WMI_HECAP_PHY_MIDAMBLERXMAXNSTS_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 15, 2, value)
- /*
- * B0: For a transmitting STA acting as beamformee, it indicates support of
- * NDP reception using 4x LTF and 3.2 us guard interval duration
- */
- #define WMI_HECAP_PHY_LTFGIFORNDP_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 17, 1)
- #define WMI_HECAP_PHY_LTFGIFORNDP_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 17, 1, value)
- /* indicates support for the transmission of HE PPDUs using STBC with one spatial stream for <= 80MHz Tx*/
- #define WMI_HECAP_PHY_TXSTBC_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 18, 1)
- #define WMI_HECAP_PHY_TXSTBC_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 18, 1, value)
- /* indicates support for the reception of HE PPDUs using STBC with one spatial stream for <= 80MHz Tx*/
- #define WMI_HECAP_PHY_RXSTBC_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 19, 1)
- #define WMI_HECAP_PHY_RXSTBC_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 19, 1, value)
- /* indicates transmitting STA supports transmitting HE PPDUs with Doppler procedure */
- #define WMI_HECAP_PHY_TXDOPPLER_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 20, 1)
- #define WMI_HECAP_PHY_TXDOPPLER_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 20, 1, value)
- /* indicates transmitting STA supports receiving HE PPDUs with Doppler procedure */
- #define WMI_HECAP_PHY_RXDOPPLER_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 21, 1)
- #define WMI_HECAP_PHY_RXDOPPLER_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 21, 1, value)
- /*
- * If the transmitting STA is an AP:
- * indicates STA supports of reception of full bandwidth UL MU-MIMO
- * transmission.
- * If the transmitting STA is a non-AP STA:
- * indicates STA supports of transmission of full bandwidth UL MU-MIMO
- * transmission.
- */
- #define WMI_HECAP_PHY_UL_MU_MIMO_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 22, 1)
- #define WMI_HECAP_PHY_UL_MU_MIMO_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 22, 1, value)
- /*
- * If the transmitting STA is an AP:
- * indicates STA supports of reception of UL MUMIMO transmission on an
- * RU in an HE MU PPDU where the RU does not span the entire PPDU bandwidth.
- * If the transmitting STA is a non-AP STA:
- * indicates STA supports of transmission of UL MU-MIMO transmission on an
- * RU in an HE MU PPDU where the RU does not span the entire PPDU bandwidth.
- */
- #define WMI_HECAP_PHY_ULMUMIMOOFDMA_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 23, 1)
- #define WMI_HECAP_PHY_ULMUMIMOOFDMA_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 23, 1, value)
- /* Tx DCM
- * B0:B1
- * 00: Does not support DCM
- * 01: BPSK
- * 10: QPSK
- * 11: 16-QAM
- * B2 signals maximum number of spatial streams with DCM
- * 0: 1 spatial stream
- * 1: 2 spatial streams
- */
- #define WMI_HECAP_PHY_DCMTX_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 24, 3)
- #define WMI_HECAP_PHY_DCMTX_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 24, 3, value)
- /* Rx DCM
- * B0:B1
- * 00: Does not support DCM
- * 01: BPSK
- * 10: QPSK
- * 11: 16-QAM
- * B2 signals maximum number of spatial streams with DCM
- * 0: 1 spatial stream
- * 1: 2 spatial streams
- */
- #define WMI_HECAP_PHY_DCMRX_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 27, 3)
- #define WMI_HECAP_PHY_DCMRX_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 27, 3, value)
- /*
- * Indicates that the STA supports the reception of an HE MU PPDU payload
- * over full bandwidth and partial bandwidth (106-tone RU within 20 MHz).
- */
- #define WMI_HECAP_PHY_ULHEMU_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 30, 1)
- #define WMI_HECAP_PHY_ULHEMU_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 30, 1, value)
- /* Indicates support for operation as an SU beamformer */
- #define WMI_HECAP_PHY_SUBFMR_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 31, 1)
- #define WMI_HECAP_PHY_SUBFMR_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 31, 1, value)
- /* Indicates support for operation as an SU beamformee */
- #define WMI_HECAP_PHY_SUBFME_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 0, 1)
- #define WMI_HECAP_PHY_SUBFME_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 0, 1, value)
- /* Indicates support for operation as an MU Beamformer */
- #define WMI_HECAP_PHY_MUBFMR_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 1, 1)
- #define WMI_HECAP_PHY_MUBFMR_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 1, 1, value)
- /*
- * Num STS -1 for <= 80MHz (min val 3)
- * The maximum number of space-time streams minus 1 that the STA can
- * receive in an HE NDP
- */
- #define WMI_HECAP_PHY_BFMESTSLT80MHZ_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 2, 3)
- #define WMI_HECAP_PHY_BFMESTSLT80MHZ_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 2, 3, value)
- /*
- * Num STS -1 for > 80MHz (min val 3)
- * The maximum number of space-time streams minus 1 that the STA can
- * receive in an HE NDP
- */
- #define WMI_HECAP_PHY_BFMESTSGT80MHZ_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 5, 3)
- #define WMI_HECAP_PHY_BFMESTSGT80MHZ_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 5, 3, value)
- /*
- * Number Of Sounding Dimensions For <= 80 MHz
- * If SU beamformer capable, set to the maximum supported value of the
- * TXVECTOR parameter NUM_STS minus 1.
- * Otherwise, reserved.
- */
- #define WMI_HECAP_PHY_NUMSOUNDLT80MHZ_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 8, 3)
- #define WMI_HECAP_PHY_NUMSOUNDLT80MHZ_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 8, 3, value)
- /*
- * Number Of Sounding Dimensions For > 80 MHz
- * If SU beamformer capable, set to the maximum supported value of the
- * TXVECTOR parameter NUM_STS minus 1.
- * Otherwise, reserved.
- */
- #define WMI_HECAP_PHY_NUMSOUNDGT80MHZ_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 11, 3)
- #define WMI_HECAP_PHY_NUMSOUNDGT80MHZ_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 11, 3, value)
- /*
- * Indicates if the HE beamformee is capable of feedback with tone
- * grouping of 16 in the HE Compressed Beamforming Report field for
- * a SU-type feedback.
- */
- #define WMI_HECAP_PHY_NG16SUFEEDBACKLT80_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 14, 1)
- #define WMI_HECAP_PHY_NG16SUFEEDBACKLT80_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 14, 1, value)
- /*
- * Indicates if the HE beamformee is capable of feedback with tone
- * grouping of 16 in the HE Compressed Beamforming Report field for
- * a MU-type feedback.
- */
- #define WMI_HECAP_PHY_NG16MUFEEDBACKGT80_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 15, 1)
- #define WMI_HECAP_PHY_NG16MUFEEDBACKGT80_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 15, 1, value)
- /*
- * Indicates if HE beamformee is capable of feedback with codebook
- * size {4, 2} in the HECompressed Beamforming Report field for
- * a SU-type feedback.
- */
- #define WMI_HECAP_PHY_CODBK42SU_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 16, 1)
- #define WMI_HECAP_PHY_CODBK42SU_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 16, 1, value)
- /*
- * Indicates if HE beamformee is capable of feedback with codebook
- * size {7, 5} in the HE Compressed Beamforming Report field for
- * a MU-type feedback.
- */
- #define WMI_HECAP_PHY_CODBK75MU_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 17, 1)
- #define WMI_HECAP_PHY_CODBK75MU_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 17, 1, value)
- /*
- * Beamforming Feedback With Trigger Frame
- * If the transmitting STA is an AP STA:
- * B0: indicates support of reception of SU-Type partial(1) and full bandwidth feedback(0)
- * B1: indicates support of reception of MU-Type partial(1) bandwidth feedback
- * B2: indicates support of reception of CQI-Only partial and full bandwidth feedback
- * If the transmitting STA is a non-AP STA:
- * B0: indicates support of transmission of SU-Type partial(1) and full bandwidth(0) feedback
- * B1: indicates support of transmission of MU-Type partial(1) bandwidth feedback
- * B2: indicates support of transmission of CQI-Onlypartial (1)and full bandwidth feedback
- */
- #define WMI_HECAP_PHY_BFFEEDBACKTRIG_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 18, 3)
- #define WMI_HECAP_PHY_BFFEEDBACKTRIG_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 18, 3, value)
- /* Indicates the support of transmission and reception of an HE extended range SU PPDU payload transmitted
- * over the right 106-tone RU or partial BW ER
- */
- #define WMI_HECAP_PHY_HEERSU_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 21, 1)
- #define WMI_HECAP_PHY_HEERSU_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 21, 1, value)
- /* Indicates that the non-AP STA supports reception of a DL MU-MIMO transmission on an RU in an HE MU PPDU
- * where the RU does not span the entire PPDU bandwidth.
- */
- #define WMI_HECAP_PHY_DLMUMIMOPARTIALBW_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 22, 1)
- #define WMI_HECAP_PHY_DLMUMIMOPARTIALBW_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 22, 1, value)
- /* Indicates whether or not the PPE Threshold field is present */
- #define WMI_HECAP_PHY_PETHRESPRESENT_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 23, 1)
- #define WMI_HECAP_PHY_PETHRESPRESENT_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 23, 1, value)
- /* Indicates that the STA supports SRP-based SR operation */
- #define WMI_HECAP_PHY_SRPSPRESENT_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 24, 1)
- #define WMI_HECAP_PHY_SRPPRESENT_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 24, 1, value)
- /* Indicates that the STA supports a power boost factor ar for the r-th RU in the range [0.5, 2] */
- #define WMI_HECAP_PHY_PWRBOOSTAR_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 25, 1)
- #define WMI_HECAP_PHY_PWRBOOSTAR_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 25, 1, value)
- /* Indicates support for the reception of 4x LTF and 0.8us guard interval duration for HE SU PPDUs. */
- #define WMI_HECAP_PHY_4XLTFAND800NSECSGI_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 26, 1)
- #define WMI_HECAP_PHY_4XLTFAND800NSECSGI_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 26, 1, value)
- /* For a transmitting STA acting as a beamformee, it indicates the maximum Nc for beamforming sounding
- * feedback supported If SU beamformee capable, then set to the maximum Nc for beamforming sounding feedback
- * minus 1. Otherwise, reserved.
- */
- #define WMI_HECAP_PHY_MAXNC_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 27, 3)
- #define WMI_HECAP_PHY_MAXNC_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 27, 3, value)
- /* Indicates support for the transmission of an HE PPDU that has a bandwidth greater than 80 MHz and is using
- * STBC with one spatial stream
- */
- #define WMI_HECAP_PHY_STBCTXGT80_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 30, 1)
- #define WMI_HECAP_PHY_STBCTXGT80_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 30, 1, value)
- /* Indicates support for the reception of an HE PPDU that has a bandwidth greater than 80 MHz and is using
- * STBC with one spatial stream
- */
- #define WMI_HECAP_PHY_STBCRXGT80_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 31, 1)
- #define WMI_HECAP_PHY_STBCRXGT80_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 31, 1, value)
- /* Indicates support for the reception of an HE ER SU PPDU with 4x LTF and 0.8 us guard interval duration */
- #define WMI_HECAP_PHY_ERSU4X800NSECGI_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 0, 1)
- #define WMI_HECAP_PHY_ERSU4X800NSECGI_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 0, 1, value)
- /*
- * Indicates support of 26-, 52-, and 106-tone mapping for a 20 MHz operating non-AP HE STA that is the
- * receiver of a 40 MHz HE MU PPDU in 2.4 GHz band, or the transmitter of a 40 MHz HE TB PPDU in 2.4GHz band.
- */
- #define WMI_HECAP_PHY_HEPPDU20IN40MHZ2G_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 1, 1)
- #define WMI_HECAP_PHY_HEPPDU20IN40MHZ2G_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 1, 1, value)
- /*
- * Indicates support of 26-, 52-, and 106-tone mapping for a 20 MHz operating non-AP HE STA that is the
- * receiver of a 80+80 MHz or a 160 MHz HE MU PPDU, or the transmitter of a 80+80 MHz or 160 MHz HE TB PPDU.
- */
- #define WMI_HECAP_PHY_HEPPDU20IN160OR80P80MHZ_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 2, 1)
- #define WMI_HECAP_PHY_HEPPDU20IN160OR80P80MHZ_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 2, 1, value)
- /*
- * Indicates supports of 160 MHz OFDMA for a non-AP HE STA that sets bit B1 of Channel Width Set to 1, and
- * sets B2 and B3 of Channel Width Set each to 0, when operating with 80 MHz channel width. The capability
- * bit is applicable while receiving a 80+80 MHz or a 160 MHz HE MU PPDU, or transmitting a 80+80 MHz or a
- * 160 MHz HE TB PPDU.
- */
- #define WMI_HECAP_PHY_HEPPDU80IN160OR80P80MHZ_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 3, 1)
- #define WMI_HECAP_PHY_HEPPDU80IN160OR80P80MHZ_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 3, 1, value)
- /* Indicates support for the reception of an HE ER SU PPDU with 1x LTF and 0.8 us guard interval duration */
- #define WMI_HECAP_PHY_ERSU1X800NSECGI_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 4, 1)
- #define WMI_HECAP_PHY_ERSU1X800NSECGI_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 4, 1, value)
- /*
- * When the Doppler Rx subfield is 1, indicates support for receiving midambles with 2x HE-LTF, 1x HE-LTF
- * in HE SU PPDU if the HE SU PPDU With 1x HE-LTF And 0.8 s GI subfield is set to 1, and 1x HE-LTF in
- * HE ER SU PPDU if the HE ER SU PPDU With 1x HELTF And 0.8 s GI subfield is set to 1.
- */
- #define WMI_HECAP_PHY_MIDAMBLERX2XAND1XHELTF_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 5, 1)
- #define WMI_HECAP_PHY_MIDAMBLERX2XAND1XHELTF_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 5, 1, value)
- /*HTC + HE Support Set to 1 if STA supports reception of HE Variant HT control Field*/
- #define WMI_HECAP_MAC_HECTRL_GET_D2(he_cap) WMI_GET_BITS(he_cap, 0, 1)
- #define WMI_HECAP_MAC_HECTRL_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 0, 1, value)
- /* set to 1 to for TWT Requestor support*/
- #define WMI_HECAP_MAC_TWTREQ_GET_D2(he_cap) WMI_GET_BITS(he_cap, 1, 1)
- #define WMI_HECAP_MAC_TWTREQ_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 1, 1, value)
- /* set to 1 to for TWT Responder support*/
- #define WMI_HECAP_MAC_TWTRSP_GET_D2(he_cap) WMI_GET_BITS(he_cap, 2, 1)
- #define WMI_HECAP_MAC_TWTRSP_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 2, 1, value)
- /* Level of frag support
- Set to 0 for no support for dynamic fragmentation.
- Set to 1 for support for dynamic fragments that are contained within a S-MPDU
- Set to 2 for support for dynamic fragments that are contained within a Single MPDU and support for up to
- one dynamic fragment for each MSDU and each MMPDU within an A-MPDU or multi-TID A-MPDU.
- Set to 3 for support for dynamic fragments that are contained within a Single MPDU and support for multiple
- dynamic fragments for each MSDU within an AMPDU or multi-TID AMPDU and up to one dynamic fragment
- for each MMPDU in a multi-TID A-MPDU that is not a Single MPDU
- */
- #define WMI_HECAP_MAC_HEFRAG_GET_D2(he_cap) WMI_GET_BITS(he_cap, 3, 2)
- #define WMI_HECAP_MAC_HEFRAG_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 3, 2, value)
- /* The maximum number of fragmented MSDUs, Nmax,defined by this field is Nmax = 2 Maximum Number Of FMPDUs*/
- #define WMI_HECAP_MAC_MAXFRAGMSDU_GET_D2(he_cap) WMI_GET_BITS(he_cap, 5, 3)
- #define WMI_HECAP_MAC_MAXFRAGMSDU_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 5, 3, value)
- /* 0 = no restriction on the minimum payload , 1 = 128 octets min, 2 = 256 octets min, 3 = 512 octets min */
- #define WMI_HECAP_MAC_MINFRAGSZ_GET_D2(he_cap) WMI_GET_BITS(he_cap, 8, 2)
- #define WMI_HECAP_MAC_MINFRAGSZ_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 8, 2, value)
- /*0 = no additional processing time, 1 = 8us,2 = 16us */
- #define WMI_HECAP_MAC_TRIGPADDUR_GET_D2(he_cap) WMI_GET_BITS(he_cap, 10, 2)
- #define WMI_HECAP_MAC_TRIGPADDUR_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 10, 2, value)
- /*number of TIDs minus 1 of QoS Data frames that HE STA can aggregate in multi-TID AMPDU*/
- #define WMI_HECAP_MAC_MTID_GET_D2(he_cap) WMI_GET_BITS(he_cap, 12, 3)
- #define WMI_HECAP_MAC_MTID_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 12, 3, value)
- /*
- * Indicates support by a STA to receive an ack-enabled A-MPDU in which an A-MSDU is carried in
- * a QoS Data frame for which no block ack agreement exists.
- */
- #define WMI_HECAP_MAC_AMSDUINAMPDU_GET_D2(he_cap) WMI_GET_BITS(he_cap, 15, 1)
- #define WMI_HECAP_MAC_AMSDUINAMPDU_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 15, 1, value)
- /*--- HECAP_MAC_HELKAD: DO NOT USE - DEPRECATED ---*/
- /*0=No Feedback,2=Unsolicited,3=Both*/
- #define WMI_HECAP_MAC_HELKAD_GET_D2(he_cap) (0)
- #define WMI_HECAP_MAC_HELKAD_SET_D2(he_cap, value) {;}
- /* bit 16 reserved. */
- /*Set to 1 for reception of AllAck support*/
- #define WMI_HECAP_MAC_AACK_GET_D2(he_cap) WMI_GET_BITS(he_cap, 17, 1)
- #define WMI_HECAP_MAC_AACK_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 17, 1, value)
- /*Set to 1 if the STA supports reception of the UL MU Response Scheduling A-Control field*/
- #define WMI_HECAP_MAC_ULMURSP_GET_D2(he_cap) WMI_GET_BITS(he_cap, 18, 1)
- #define WMI_HECAP_MAC_ULMURSP_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 18, 1, value)
- /*Set to 1 if the STA supports the BSR A-Control field functionality.*/
- #define WMI_HECAP_MAC_BSR_GET_D2(he_cap) WMI_GET_BITS(he_cap, 19, 1)
- #define WMI_HECAP_MAC_BSR_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 19, 1, value)
- /*Set to 1 when the STA supports broadcast TWT functionality.*/
- #define WMI_HECAP_MAC_BCSTTWT_GET_D2(he_cap) WMI_GET_BITS(he_cap, 20, 1)
- #define WMI_HECAP_MAC_BCSTTWT_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 20, 1, value)
- /*Set to 1 if STA supports rx of Multi-STA BA that has 32-bit Block Ack Bitmap*/
- #define WMI_HECAP_MAC_32BITBA_GET_D2(he_cap) WMI_GET_BITS(he_cap, 21, 1)
- #define WMI_HECAP_MAC_32BITBA_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 21, 1, value)
- /*Set to 1 if the STA supports MU cascading operation*/
- #define WMI_HECAP_MAC_MUCASCADE_GET_D2(he_cap) WMI_GET_BITS(he_cap, 22, 1)
- #define WMI_HECAP_MAC_MUCASCADE_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 22, 1, value)
- /*Set to 1 when the STA supports reception of this multi-TID A-MPDU format*/
- #define WMI_HECAP_MAC_ACKMTIDAMPDU_GET_D2(he_cap) WMI_GET_BITS(he_cap, 23, 1)
- #define WMI_HECAP_MAC_ACKMTIDAMPDU_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 23, 1, value)
- /*Set to 1 when the STA supports its reception*/
- #define WMI_HECAP_MAC_GROUPMSTABA_GET_D2(he_cap) WMI_GET_BITS(he_cap, 24, 1)
- #define WMI_HECAP_MAC_GROUPMSTABA_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 24, 1, value)
- /*Set to 1 if the STA supports reception of the OMI A-Control field*/
- #define WMI_HECAP_MAC_OMI_GET_D2(he_cap) WMI_GET_BITS(he_cap, 25, 1)
- #define WMI_HECAP_MAC_OMI_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 25, 1, value)
- /*1 if OFDMA Random Access Supported*/
- #define WMI_HECAP_MAC_OFDMARA_GET_D2(he_cap) WMI_GET_BITS(he_cap, 26, 1)
- #define WMI_HECAP_MAC_OFDMARA_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 26, 1, value)
- /* Maximum AMPDU Length Exponent.
- * If the HE STA includes a VHT Capabilities element, the Maximum A-MPDU Length Exponent subfield in
- * HE Capabilities element combined with the Maximum A-MPDU Length Exponent subfield in VHT
- * Capabilities element indicate the maximum length of A-MPDU that the STA can Receive where EOF
- * padding is not included in this limit.
- */
- #define WMI_HECAP_MAC_MAXAMPDULEN_EXP_GET_D2(he_cap) WMI_GET_BITS(he_cap, 27, 2)
- #define WMI_HECAP_MAC_MAXAMPDULEN_EXP_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 27, 2, value)
- /*A-MSDU Fragmentation Support*/
- #define WMI_HECAP_MAC_AMSDUFRAG_GET_D2(he_cap) WMI_GET_BITS(he_cap, 29, 1)
- #define WMI_HECAP_MAC_AMSDUFRAG_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 29, 1, value)
- /*Flexible TWT Schedule Support*/
- #define WMI_HECAP_MAC_FLEXTWT_GET_D2(he_cap) WMI_GET_BITS(he_cap, 30, 1)
- #define WMI_HECAP_MAC_FLEXTWT_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 30, 1, value)
- /*Rx Control Frame to MultiBSS*/
- #define WMI_HECAP_MAC_MBSS_GET_D2(he_cap) WMI_GET_BITS(he_cap, 31, 1)
- #define WMI_HECAP_MAC_MBSS_SET_D2(he_cap, value) WMI_SET_BITS(he_cap, 31, 1, value)
- /* BSRP A-MPDU Aggregation
- * maintaining compatibility since we don't support this now so not wasting memory
- */
- #define WMI_HECAP_MAC_BSRPAMPDU_GET_D2(he_cap) (0)
- #define WMI_HECAP_MAC_BSRPAMPDU_SET_D2(he_cap, value) {;}
- /* Quiet Time Period (QTP) operation
- * maintaining compatibility since we don't support this now so not wasting memory
- */
- #define WMI_HECAP_MAC_QTP_GET_D2(he_cap) (0)
- #define WMI_HECAP_MAC_QTP_SET_D2(he_cap, value) {;}
- /* support by an AP for receiving an (A-)MPDU that contains a BQR in the
- * A-Control subfield and support by a non-AP STA for generating an (A-)MPDU
- * that contains a BQR in the A-Control subfield
- * maintaining compatibility since we don't support this now so not wasting memory
- */
- #define WMI_HECAP_MAC_ABQR_GET_D2(he_cap) (0)
- #define WMI_HECAP_MAC_ABQR_SET_D2(he_cap, value) {;}
- /*Indicates support by the STA for the role of SR Responder.*/
- #define WMI_HECAP_MAC_SRRESP_GET_D2(he_cap) (0)
- #define WMI_HECAP_MAC_SRRESP_SET_D2(he_cap, value) {;}
- /* Indicates support for an AP to encode OPS information to TIM element of the FILS Discovery
- * frames or TIM frames as described in AP operation for opportunistic power save.
- * Indicates support for a non-AP STA to receive the opportunistic power save encoded TIM elements
- */
- #define WMI_HECAP_MAC_OPS_GET_D2(he_cap) (0)
- #define WMI_HECAP_MAC_OPS_SET_D2(he_cap, value) {;}
- /* Indicates support for a non-AP STA to follow the NDP feedback report procedure and respond to
- * the NDP Feedback Report Poll Trigger frame.
- */
- #define WMI_HECAP_MAC_NDPFDBKRPT_GET_D2(he_cap) (0)
- #define WMI_HECAP_MAC_NDPFDBKRPT_SET_D2(he_cap, value) {;}
- /* BELOW MACROS ARE DEPRECATED Also we are not defining bits for capabilities
- * beyond bit 31 we donot support as it adds additional dword to our struct which may be later
- * removed by standard
- */
- #define WMI_HECAP_MAC_MBAHECTRL_GET_D2(he_cap) (0) /* DO NOT USE - DEPRECATED*/
- #define WMI_HECAP_MAC_MBAHECTRL_SET_D2(he_cap, value) {;} /* DO NOT USE - DEPRECATED*/
- #define WMI_HECAP_MAC_MURTS_GET_D2(he_cap) (0) /* DO NOT USE - DEPRECATED*/
- #define WMI_HECAP_MAC_MURTS_SET_D2(he_cap, value) {;} /* DO NOT USE - DEPRECATED*/
- /*Deprecate use WMI_HECAP_PHY_PREAMBLEPUNCRX instead*/
- #define WMI_HECAP_PHY_CBMODE_GET_D2(he_cap_phy) WMI_HECAP_PHY_CBMODE_GET_D2(he_cap_phy)
- #define WMI_HECAP_PHY_CBMODE_SET_D2(he_cap_phy, value) WMI_HECAP_PHY_CBMODE_SET_D2(he_cap_phy, value)
- /* Below 2 macros are for maintaining backward compatibility - Deprecated use WMI_HECAP_PHY_LTFGIFORHE_GET instead */
- #define WMI_HECAP_PHY_OLTF_GET_D2(he_cap_phy) WMI_HECAP_PHY_LTFGIFORHE_GET_D2(he_cap_phy)
- #define WMI_HECAP_PHY_OLTF_SET_D2(he_cap_phy, value) WMI_HECAP_PHY_LTFGIFORHE_SET_D2(he_cap_phy, value)
- /*DEPRECATED - USE WMI_HECAP_PHY_BFMENLTSGT80MHZ*/
- #define WMI_HECAP_PHY_SUBFMESTS_GET_D2(he_cap_phy) WMI_HECAP_PHY_BFMESTSLT80MHZ_GET_D2(he_cap_phy)
- #define WMI_HECAP_PHY_SUBFMESTS_SET_D2(he_cap_phy, value) WMI_HECAP_PHY_BFMESTSLT80MHZ_SET_D2(he_cap_phy, value)
- /*DEPRECATED - use WMI_HECAP_PHY_PETHRESPRESENT**/
- #define WMI_HECAP_PHY_PADDING_GET_D2(he_cap_phy) WMI_HECAP_PHY_PETHRESPRESENT_GET_D2(he_cap_phy)
- #define WMI_HECAP_PHY_PADDING_SET_D2(he_cap_phy, value) WMI_HECAP_PHY_PETHRESPRESENT_SET_D2(he_cap_phy, value)
- /**DO NOT USE - DEPRECATED*/
- #define WMI_HECAP_PHY_DLOFMAMUMIMO_GET_D2(he_cap_phy) (0)
- #define WMI_HECAP_PHY_DLOFDMAMUMIO_SET_D2(he_cap_phy, value) {;}
- /*DO NOT USE - DEPRECATED**/
- #define WMI_HECAP_PHY_32GI_GET_D2(he_cap_phy) (0)
- #define WMI_HECAP_PHY_32GI_SET_D2(he_cap_phy, value) {;}
- /*DO NOT USE - DEPRECATED**/
- #define WMI_HECAP_PHY_NOSUNDIMENS_GET_D2(he_cap_phy) (0)
- #define WMI_HECAP_PHY_NOSUNDIMENS_SET_D2(he_cap_phy, value) {;}
- /*DO NOT USE - DEPRECATED**/
- #define WMI_HECAP_PHY_40MHZNSS_GET_D2(he_cap_phy)(0)
- #define WMI_HECAP_PHY_40MHZNSS_SET_D2(he_cap_phy, value) {;}
- /* START TEMPORARY WORKAROUND -
- * Leave legacy names as aliases for new names, until all references to the
- * legacy names have been removed.
- */
- #define WMI_HECAP_PHY_ULOFDMA_GET_D2 WMI_HECAP_PHY_ULMUMIMOOFDMA_GET_D2
- #define WMI_HECAP_PHY_ULOFDMA_SET_D2 WMI_HECAP_PHY_ULMUMIMOOFDMA_SET_D2
- /* END TEMPORARY WORKAROUND */
- /* DEPRECATED - use WMI_HECAP_PHY_DCMRX or WMI_HECAP_PHY_DCMTX */
- #define WMI_HECAP_PHY_DCM_GET_D2(he_cap_phy) WMI_HECAP_PHY_DCMRX_GET_D2(he_cap_phy)
- #define WMI_HECAP_PHY_DCM_SET_D2(he_cap_phy, value) WMI_HECAP_PHY_DCMRX_SET_D2(he_cap_phy, value)
- /*
- * The maximum value for NSTS-1<=80MHz,(min val 3)total that can be sent
- * to the STA in a DL MU-MIMO transmission on full or partial bandwidth
- */
- #define WMI_HECAP_PHY_NSTSLT80MHZ_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 5, 3)
- #define WMI_HECAP_PHY_NSTSLT80MHZ_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 5, 3, value)
- /*
- * The maximum value for NSTS-1 > 80MHz (min val 3) total that can be sent
- * to the STA in a DL MU-MIMO transmission on full or partial bandwidth
- */
- #define WMI_HECAP_PHY_NSTSGT80MHZ_GET_D2(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 8, 3)
- #define WMI_HECAP_PHY_NSTSGT80MHZ_SET_D2(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 8, 3, value)
- /*
- * Indicates the spatial multiplexing power save mode after receiving a
- * Trigger frame that is in operation immediately after (re)association.
- */
- #define WMI_HECAP_MAC_DYNSMPWRSAVE_GET_D2(he_cap2) (0)
- #define WMI_HECAP_MAC_DYNSMPWRSAVE_SET_D2(he_cap2, value) {;}
- /* Indicates support for Punctured Sounding */
- #define WMI_HECAP_MAC_PUNCSOUNDING_GET_D2(he_cap2) (0)
- #define WMI_HECAP_MAC_PUNCSOUNDING_SET_D2(he_cap2, value) {;}
- /*
- * Indicates support for receiving a Trigger frame in an HT PPDU and
- * receiving a Trigger frame in a VHT PPDU
- */
- #define WMI_HECAP_MAC_HTVHTTRIGRX_GET_D2(he_cap2) (0)
- #define WMI_HECAP_MAC_HTVHTTRIGRX_SET_D2(he_cap2, value) {;}
- #define WMI_GET_HW_RATECODE_PREAM_V1(_rcode) (((_rcode) >> 8) & 0x7)
- #define WMI_GET_HW_RATECODE_NSS_V1(_rcode) (((_rcode) >> 5) & 0x7)
- #define WMI_GET_HW_RATECODE_RATE_V1(_rcode) (((_rcode) >> 0) & 0x1F)
- #define WMI_ASSEMBLE_RATECODE_V1(_rate, _nss, _pream) \
- (((1) << 28) | ((_pream) << 8) | ((_nss) << 5) | (_rate))
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_start_request_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** requestor id identifying the caller module */
- A_UINT32 requestor_id;
- /** beacon interval from received beacon */
- A_UINT32 beacon_interval;
- /** DTIM Period from the received beacon */
- A_UINT32 dtim_period;
- /** Flags */
- A_UINT32 flags;
- /** ssid field. Only valid for AP/GO/IBSS/BTAmp VDEV type. */
- wmi_ssid ssid;
- /** beacon/probe response xmit rate. Applicable for SoftAP. */
- /** This field will be invalid and ignored unless the */
- /** flags field has the WMI_UNIFIED_VDEV_START_BCN_TX_RATE_PRESENT bit. */
- /** When valid, this field contains the fixed tx rate for the beacon */
- /** and probe response frames send by the GO or SoftAP */
- A_UINT32 bcn_tx_rate;
- /** beacon/probe response xmit power. Applicable for SoftAP. */
- A_UINT32 bcn_txPower;
- /** number of p2p NOA descriptor(s) from scan entry */
- A_UINT32 num_noa_descriptors;
- /** Disable H/W ack. This used by WMI_VDEV_RESTART_REQUEST_CMDID.
- During CAC, Our HW shouldn't ack ditected frames */
- A_UINT32 disable_hw_ack;
- /** This field will be invalid unless the Dual Band Simultaneous (DBS) feature is enabled. */
- /** The DBS policy manager indicates the preferred number of transmit streams. */
- A_UINT32 preferred_tx_streams;
- /** This field will be invalid unless the Dual Band Simultaneous (DBS) feature is enabled. */
- /** the DBS policy manager indicates the preferred number of receive streams. */
- A_UINT32 preferred_rx_streams;
- A_UINT32 he_ops; /* refer to WMI_HEOPS_xxx macros */
- A_UINT32 cac_duration_ms; /* in milliseconds */
- A_UINT32 regdomain;
- /* min data rate to be used in BSS in Mbps */
- A_UINT32 min_data_rate;
- /** @mbss_capability_flags: Bitmap of vdev's MBSS/EMA capability.
- * Capabilities are combination of below flags:
- * VDEV_FLAGS_NON_MBSSID_AP
- * VDEV_FLAGS_TRANSMIT_AP
- * VDEV_FLAGS_NON_TRANSMIT_AP
- * VDEV_FLAGS_EMA_MODE
- * VDEV_FLAGS_SCAN_MODE_VAP - if the vdev is used for scan radio
- */
- A_UINT32 mbss_capability_flags;
- /** vdevid of transmitting VAP (mbssid case). Ignored for non mbssid case */
- A_UINT32 vdevid_trans;
- A_UINT32 eht_ops;
- A_UINT32 puncture_20mhz_bitmap; /* each bit indicates one 20 MHz BW punctured */
- A_UINT32 mbssid_multi_group_flag; /* Flag to identify whether multi group mbssid is supported */
- A_UINT32 mbssid_multi_group_id; /* Group id of current vdev only valid when multi group mbssid is supported */
- /* Target TSF value by which VDEV restart procedure should be completed in FW */
- A_UINT32 target_tsf_us_lo; /* bits 31:0 */
- A_UINT32 target_tsf_us_hi; /* bits 63:32 */
- /* The TLVs follows this structure:
- * wmi_channel chan; <-- WMI channel
- * wmi_p2p_noa_descriptor noa_descriptors[]; <-- actual p2p NOA descriptor from scan entry
- * wmi_vdev_start_mlo_params mlo_params[0,1]; <-- vdev start MLO parameters
- * optional TLV, only present for MLO vdevs,
- * If the vdev is non-MLO the array length should be 0.
- * wmi_partner_link_info link_info[]; <-- partner link info
- * optional TLV, only present for MLO vdevs,
- * If the vdev is non-MLO the array length should be 0.
- * wmi_channel dbw_chan; <-- WMI channel
- * optional TLV for dbw_chan
- * wmi_dbw_chan_info dbw_chan_info
- * optional TLV used for dbw_chan_info
- */
- } wmi_vdev_start_request_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_delete_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- } wmi_vdev_delete_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_p2p_go_dfs_ap_config_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** "set" field:
- * HOST to specify a non-zero value if DFS master AP config is to be added,
- * or a zero value if it is to be removed.
- */
- A_UINT32 set;
- /* The TLVs follows this structure:
- * wmi_mac_addr bssid; <-- bssid for P2P GO's STA's connected AP,
- * STA's connected AP is DFS master
- * optional TLV used for bssid
- * wmi_mac_addr non_tx_bssid; <-- bssid for P2P GO's STA's connected AP,
- * if connected to non TX VAP
- * optional TLV used for bssid
- */
- } wmi_p2p_go_dfs_ap_config_fixed_param;
- enum WMI_VDEV_UP_FLAGS {
- /** EMA_MBSSID_AP
- * Valid only for STA VDEV.
- * This flag will be set when STA connected MBSSID AP is EMA capable.
- * EMA - Enhanced Multiple BSS Advertisemet.
- */
- WMI_VDEV_UP_FLAG_EMA_MBSSID_AP = 0x00000001,
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_up_cmdid_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** aid (assoc id) received in association response for STA VDEV */
- A_UINT32 vdev_assoc_id;
- /** bssid of the BSS the VDEV is joining */
- wmi_mac_addr vdev_bssid;
- /** bssid of transmitted AP (mbssid case) */
- wmi_mac_addr trans_bssid;
- /** the profile index of the connected non-trans ap (mbssid case). 0 means invalid */
- A_UINT32 profile_idx;
- /** the total profile numbers of non-trans aps (mbssid case). 0 means legacy AP */
- A_UINT32 profile_num;
- /** flags - this is a bitwise-or combination of WMI_VDEV_UP_FLAGS values */
- A_UINT32 flags;
- } wmi_vdev_up_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_stop_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* The TLVs follows this structure:
- * - wmi_vdev_stop_mlo_params mlo_params[0/1];
- * optional TLV, host may provide this TLV to indicate the vdev stop
- * is done for link switch.
- */
- } wmi_vdev_stop_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_down_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- } wmi_vdev_down_cmd_fixed_param;
- typedef struct {
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- } wmi_vdev_standby_response_cmd;
- typedef struct {
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- } wmi_vdev_resume_response_cmd;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_param_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** parameter id */
- A_UINT32 param_id;
- /** parameter value */
- A_UINT32 param_value;
- } wmi_vdev_set_param_cmd_fixed_param;
- typedef struct {
- A_UINT32 key_seq_counter_l;
- A_UINT32 key_seq_counter_h;
- } wmi_key_seq_counter;
- #define WMI_CIPHER_NONE 0x0 /* clear key */
- #define WMI_CIPHER_WEP 0x1
- #define WMI_CIPHER_TKIP 0x2
- #define WMI_CIPHER_AES_OCB 0x3
- #define WMI_CIPHER_AES_CCM 0x4
- #define WMI_CIPHER_WAPI 0x5
- #define WMI_CIPHER_CKIP 0x6
- #define WMI_CIPHER_AES_CMAC 0x7
- #define WMI_CIPHER_ANY 0x8
- #define WMI_CIPHER_AES_GCM 0x9
- #define WMI_CIPHER_AES_GMAC 0xa
- #define WMI_CIPHER_WAPI_GCM_SM4 0xb
- #define WMI_CIPHER_BIP_CMAC_128 0xc
- #define WMI_CIPHER_BIP_CMAC_256 0xd
- #define WMI_CIPHER_BIP_GMAC_128 0xe
- #define WMI_CIPHER_BIP_GMAC_256 0xf
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_install_key_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** MAC address used for installing */
- wmi_mac_addr peer_macaddr;
- /** key index */
- A_UINT32 key_ix;
- /** key flags */
- A_UINT32 key_flags;
- /** key cipher, defined above */
- A_UINT32 key_cipher;
- /** key rsc counter */
- wmi_key_seq_counter key_rsc_counter;
- /** global key rsc counter */
- wmi_key_seq_counter key_global_rsc_counter;
- /** global key tsc counter */
- wmi_key_seq_counter key_tsc_counter;
- /** WAPI key rsc counter */
- A_UINT8 wpi_key_rsc_counter[16];
- /** WAPI key tsc counter */
- A_UINT8 wpi_key_tsc_counter[16];
- /** key length */
- A_UINT32 key_len;
- /** key tx mic length */
- A_UINT32 key_txmic_len;
- /** key rx mic length */
- A_UINT32 key_rxmic_len;
- /** specifies if the group_key_ix is valid, filled by the sender */
- A_UINT32 is_group_key_ix_valid;
- /** Multi group key ID */
- A_UINT32 group_key_ix;
- /*
- * Following this struct are this TLV.
- * A_UINT8 key_data[]; <-- actual key data; contains key followed by tx mic followed by rx mic
- */
- } wmi_vdev_install_key_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_ltf_key_seed_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** MAC address used for deriving */
- wmi_mac_addr peer_macaddr;
- /** authentication mode */
- A_UINT32 rsn_authmode;
- /** LTF key seed length */
- A_UINT32 key_seed_len;
- /*
- * Following this struct are this TLV.
- * A_UINT8 key_seed[key_seed_len]; <-- actual LTF key seed;
- */
- } wmi_vdev_set_ltf_key_seed_cmd_fixed_param;
- /** Preamble types to be used with VDEV fixed rate configuration */
- typedef enum {
- WMI_RATE_PREAMBLE_OFDM,
- WMI_RATE_PREAMBLE_CCK,
- WMI_RATE_PREAMBLE_HT,
- WMI_RATE_PREAMBLE_VHT,
- WMI_RATE_PREAMBLE_HE,
- WMI_RATE_PREAMBLE_EHT,
- } WMI_RATE_PREAMBLE;
- /** Value to disable fixed rate setting */
- #define WMI_FIXED_RATE_NONE (0xff)
- #define WMI_GI_400_NS 1
- #define WMI_GI_800_NS 0
- #define WMI_GI_1600_NS 2
- #define WMI_GI_3200_NS 3
- /** OCE(Optimized Connectivity_Experience) Feature flags */
- #define WMI_VDEV_OCE_PROBE_REQUEST_RATE_FEATURE_BITMAP 0x1
- #define WMI_VDEV_OCE_PROBE_RESPONSE_RATE_FEATURE_BITMAP 0x2
- #define WMI_VDEV_OCE_BEACON_RATE_FEATURE_BITMAP 0x4
- #define WMI_VDEV_OCE_PROBE_REQUEST_DEFERRAL_FEATURE_BITMAP 0x8
- #define WMI_VDEV_OCE_FILS_DISCOVERY_FRAME_FEATURE_BITMAP 0x10
- #define WMI_VDEV_OCE_ESP_FEATURE_BITMAP 0x20
- #define WMI_VDEV_OCE_REASSOC_REJECT_FEATURE_BITMAP 0x40
- /** 6 GHZ params **/
- /* Control to enable/disable beacon tx in non-HT duplicate */
- #define WMI_VDEV_6GHZ_BITMAP_NON_HT_DUPLICATE_BEACON 0x1
- /* Control to enable/disable broadcast probe response tx in non-HT duplicate */
- #define WMI_VDEV_6GHZ_BITMAP_NON_HT_DUPLICATE_BCAST_PROBE_RSP 0x2
- /* Control to enable/disable FILS discovery frame tx in non-HT duplicate */
- #define WMI_VDEV_6GHZ_BITMAP_NON_HT_DUPLICATE_FD_FRAME 0x4
- /* Control to enable/disable periodic FILS discovery frame transmission */
- #define WMI_VDEV_6GHZ_BITMAP_FD_FRAME 0x8 /* deprecated */
- /* Control to enable/disable periodic broadcast probe response transmission */
- #define WMI_VDEV_6GHZ_BITMAP_BCAST_PROBE_RSP 0x10 /* deprecated */
- /** ROAM_11KV control params */
- /* WMI_VDEV_ROAM_11KV_CTRL_DISABLE_FW_TRIGGER_ROAMING:
- * Disable all FW-triggered roaming (e.g. low RSSI/final bmiss/BTM/PER)
- * while still allowing host-invoked roaming.
- */
- #define WMI_VDEV_ROAM_11KV_CTRL_DISABLE_FW_TRIGGER_ROAMING 0x1
- /* WMI_VDEV_ROAM_11KV_CTRL_KEEP_CONN_RECV_BTM_REQ:
- * DUT do not scan or roaming when receiving BTM req frame
- */
- #define WMI_VDEV_ROAM_11KV_CTRL_KEEP_CONN_RECV_BTM_REQ 0x2
- /* WMI_VDEV_ROAM_11KV_CTRL_DONOT_SEND_DISASSOC_ON_BTM_DI_SET:
- * DUT do not send disasoc frame to AP when receiving BTM req with
- * Disassoc Imminent bit set to 1.
- */
- #define WMI_VDEV_ROAM_11KV_CTRL_DONOT_SEND_DISASSOC_ON_BTM_DI_SET 0x4
- /** NAN vdev config Feature flags */
- #define WMI_VDEV_NAN_ALLOW_DW_CONFIG_CHANGE_IN_SYNC_ROLE 0x1
- #define WMI_VDEV_NAN_FORCE_CONGIG_WOW_DB_INTERVAL 0x2
- /** the definition of different VDEV parameters */
- typedef enum {
- /** RTS Threshold */
- WMI_VDEV_PARAM_RTS_THRESHOLD = 0x1,
- /** Fragmentation threshold */
- WMI_VDEV_PARAM_FRAGMENTATION_THRESHOLD, /* 0x2 */
- /** beacon interval in TUs */
- WMI_VDEV_PARAM_BEACON_INTERVAL, /* 0x3 */
- /** Listen interval in TUs */
- WMI_VDEV_PARAM_LISTEN_INTERVAL, /* 0x4 */
- /** multicast rate in Mbps */
- WMI_VDEV_PARAM_MULTICAST_RATE, /* 0x5 */
- /** management frame rate in Mbps */
- WMI_VDEV_PARAM_MGMT_TX_RATE, /* 0x6 */
- /** slot time (long vs short) */
- WMI_VDEV_PARAM_SLOT_TIME, /* 0x7 */
- /** preamble (long vs short) */
- WMI_VDEV_PARAM_PREAMBLE, /* 0x8 */
- /** SWBA time (time before tbtt in msec) */
- WMI_VDEV_PARAM_SWBA_TIME, /* 0x9 */
- /** time period for updating VDEV stats */
- WMI_VDEV_STATS_UPDATE_PERIOD, /* 0xa */
- /** age out time in msec for frames queued for station in power save*/
- WMI_VDEV_PWRSAVE_AGEOUT_TIME, /* 0xb */
- /** Host SWBA interval (time in msec before tbtt for SWBA event generation) */
- WMI_VDEV_HOST_SWBA_INTERVAL, /* 0xc */
- /** DTIM period (specified in units of num beacon intervals) */
- WMI_VDEV_PARAM_DTIM_PERIOD, /* 0xd */
- /** scheduler air time limit for this VDEV. used by off chan scheduler */
- WMI_VDEV_OC_SCHEDULER_AIR_TIME_LIMIT, /* 0xe */
- /** enable/disable WDS for this VDEV */
- WMI_VDEV_PARAM_WDS, /* 0xf */
- /** ATIM Window */
- WMI_VDEV_PARAM_ATIM_WINDOW, /* 0x10 */
- /** BMISS max */
- WMI_VDEV_PARAM_BMISS_COUNT_MAX, /* 0x11 */
- /** BMISS first time */
- WMI_VDEV_PARAM_BMISS_FIRST_BCNT, /* 0x12 */
- /** BMISS final time */
- WMI_VDEV_PARAM_BMISS_FINAL_BCNT, /* 0x13 */
- /** WMM enables/disabled */
- WMI_VDEV_PARAM_FEATURE_WMM, /* 0x14 */
- /** Channel width */
- WMI_VDEV_PARAM_CHWIDTH, /* 0x15 */
- /** Channel Offset */
- WMI_VDEV_PARAM_CHEXTOFFSET, /* 0x16 */
- /** Disable HT Protection */
- WMI_VDEV_PARAM_DISABLE_HTPROTECTION, /* 0x17 */
- /** Quick STA Kickout */
- WMI_VDEV_PARAM_STA_QUICKKICKOUT, /* 0x18 */
- /** Rate to be used with Management frames */
- WMI_VDEV_PARAM_MGMT_RATE, /* 0x19 */
- /** Protection Mode */
- WMI_VDEV_PARAM_PROTECTION_MODE, /* 0x1a */
- /** Fixed rate setting
- * The top nibble is used to select which format to use for encoding
- * the rate specification: 0xVXXXXXXX
- * If V == 0b0000: format is same as before: 0x000000RR
- * If V == 0b0001: format is: 0x1000RRRR.
- * This will be output of WMI_ASSEMBLE_RATECODE_V1
- * The host shall use the new V1 format (and set V = 0x1) if the target
- * indicates 802.11ax support via the WMI_SERVICE_11AX flag, or if the
- * system is configured with Nss > 4 (either at compile time within the
- * host driver, or through WMI_SERVICE_READY PHY capabilities provided
- * by the target).
- */
- WMI_VDEV_PARAM_FIXED_RATE, /* 0x1b */
- /**
- * 11AX: GI =
- * WMI_GI_400_NS, WMI_GI_800_NS, WMI_GI_1600_NS, or WMI_GI_3200_NS
- * 11N: SGI=WMI_GI_400_NS
- */
- WMI_VDEV_PARAM_SGI, /* 0x1c */
- /** Enable LDPC */
- WMI_VDEV_PARAM_LDPC, /* 0x1d */
- /** Enable Tx STBC */
- WMI_VDEV_PARAM_TX_STBC, /* 0x1e */
- /** Enable Rx STBC */
- WMI_VDEV_PARAM_RX_STBC, /* 0x1f */
- /** Intra BSS forwarding */
- WMI_VDEV_PARAM_INTRA_BSS_FWD, /* 0x20 */
- /** Setting Default xmit key for Vdev */
- WMI_VDEV_PARAM_DEF_KEYID, /* 0x21 */
- /** NSS width */
- WMI_VDEV_PARAM_NSS, /* 0x22 */
- /** Set the custom rate for the broadcast data frames */
- WMI_VDEV_PARAM_BCAST_DATA_RATE, /* 0x23 */
- /** Set the custom rate (rate-code) for multicast data frames */
- WMI_VDEV_PARAM_MCAST_DATA_RATE, /* 0x24 */
- /** Tx multicast packet indicate Enable/Disable */
- WMI_VDEV_PARAM_MCAST_INDICATE, /* 0x25 */
- /** Tx DHCP packet indicate Enable/Disable */
- WMI_VDEV_PARAM_DHCP_INDICATE, /* 0x26 */
- /** Enable host inspection of Tx unicast packet to unknown destination */
- WMI_VDEV_PARAM_UNKNOWN_DEST_INDICATE, /* 0x27 */
- /* The minimum amount of time AP begins to consider STA inactive */
- WMI_VDEV_PARAM_AP_KEEPALIVE_MIN_IDLE_INACTIVE_TIME_SECS, /* 0x28 */
- /* An associated STA is considered inactive when there is no recent TX/RX
- * activity and no downlink frames are buffered for it. Once a STA exceeds
- * the maximum idle inactive time, the AP will send an 802.11 data-null as
- * a keep alive to verify the STA is still associated. If the STA does ACK
- * the data-null, or if the data-null is buffered and the STA does not
- * retrieve it, the STA will be considered unresponsive (see
- * WMI_VDEV_AP_KEEPALIVE_MAX_UNRESPONSIVE_TIME_SECS). */
- WMI_VDEV_PARAM_AP_KEEPALIVE_MAX_IDLE_INACTIVE_TIME_SECS, /* 0x29 */
- /* An associated STA is considered unresponsive if there is no recent
- * TX/RX activity and downlink frames are buffered for it. Once a STA
- * exceeds the maximum unresponsive time, the AP will send a
- * WMI_STA_KICKOUT event to the host so the STA can be deleted. */
- WMI_VDEV_PARAM_AP_KEEPALIVE_MAX_UNRESPONSIVE_TIME_SECS, /* 0x2a */
- /* Enable NAWDS : MCAST INSPECT Enable, NAWDS Flag set */
- WMI_VDEV_PARAM_AP_ENABLE_NAWDS, /* 0x2b */
- /** Enable/Disable RTS-CTS */
- WMI_VDEV_PARAM_ENABLE_RTSCTS, /* 0x2c */
- /* Enable TXBFee/er */
- WMI_VDEV_PARAM_TXBF, /* 0x2d */
- /**Set packet power save */
- WMI_VDEV_PARAM_PACKET_POWERSAVE, /* 0x2e */
- /**Drops un-encrypted packets if any received in an encryted connection
- * otherwise forwards to host
- */
- WMI_VDEV_PARAM_DROP_UNENCRY, /* 0x2f */
- /*
- * Set TX encap type.
- *
- * enum wmi_pkt_type is to be used as the parameter
- * specifying the encap type.
- */
- WMI_VDEV_PARAM_TX_ENCAP_TYPE, /* 0x30 */
- /*
- * Try to detect stations that woke-up and exited power save but did not
- * successfully transmit data-null with PM=0 to AP. When this happens,
- * STA and AP power save state are out-of-sync. Use buffered but
- * undelivered MSDU to the STA as a hint that the STA is really awake
- * and expecting normal ASAP delivery, rather than retrieving BU with
- * PS-Poll, U-APSD trigger, etc.
- *
- * 0 disables out-of-sync detection. Maximum time is 255 seconds.
- */
- WMI_VDEV_PARAM_AP_DETECT_OUT_OF_SYNC_SLEEPING_STA_TIME_SECS, /* 0x31 */
- /* Enable/Disable early rx dynamic adjust feature.
- * Early-rx dynamic adjust is a advance power save feature.
- * Early-rx is a wakeup duration before exact TBTT,which is deemed necessary to provide a cushion for various
- * timing discrepancies in the system.
- * In current code branch, the duration is set to a very conservative fix value to make sure the drift impact is minimum.
- * The fix early-tx will result in the unnessary power consume, so a dynamic early-rx adjust algorithm can be designed
- * properly to minimum the power consume.*/
- WMI_VDEV_PARAM_EARLY_RX_ADJUST_ENABLE, /* 0x32 */
- /* set target bmiss number per sample cycle if bmiss adjust was chosen.
- * In this adjust policy,early-rx is adjusted by comparing the current bmiss rate to target bmiss rate
- * which can be set by user through WMI command.
- */
- WMI_VDEV_PARAM_EARLY_RX_TGT_BMISS_NUM, /* 0x33 */
- /* set sample cycle(in the unit of beacon interval) if bmiss adjust was chosen */
- WMI_VDEV_PARAM_EARLY_RX_BMISS_SAMPLE_CYCLE, /* 0x34 */
- /* set slop_step */
- WMI_VDEV_PARAM_EARLY_RX_SLOP_STEP, /* 0x35 */
- /* set init slop */
- WMI_VDEV_PARAM_EARLY_RX_INIT_SLOP, /* 0x36 */
- /* pause adjust enable/disable */
- WMI_VDEV_PARAM_EARLY_RX_ADJUST_PAUSE, /* 0x37 */
- /* Set channel pwr limit value of the vdev the minimal value of all
- * vdevs operating on this channel will be set as channel tx power
- * limit, which is used to configure ratearray
- */
- WMI_VDEV_PARAM_TX_PWRLIMIT, /* 0x38 */
- /* set the count of snr value for calculation in snr monitor */
- WMI_VDEV_PARAM_SNR_NUM_FOR_CAL, /* 0x39 */
- /** Roaming offload */
- WMI_VDEV_PARAM_ROAM_FW_OFFLOAD, /* 0x3a */
- /** Enable Leader request RX functionality for RMC */
- WMI_VDEV_PARAM_ENABLE_RMC, /* 0x3b */
- /* IBSS does not have deauth/disassoc, vdev has to detect peer gone event
- * by himself. If the beacon lost time exceed this threshold, the peer is
- * thought to be gone. */
- WMI_VDEV_PARAM_IBSS_MAX_BCN_LOST_MS, /* 0x3c */
- /** max rate in kpbs, transmit rate can't go beyond it */
- WMI_VDEV_PARAM_MAX_RATE, /* 0x3d */
- /* enable/disable drift sample. 0: disable; 1: clk_drift; 2: ap_drift; 3 both clk and ap drift*/
- WMI_VDEV_PARAM_EARLY_RX_DRIFT_SAMPLE, /* 0x3e */
- /* set Tx failure count threshold for the vdev */
- WMI_VDEV_PARAM_SET_IBSS_TX_FAIL_CNT_THR, /* 0x3f */
- /* set ebt resync timeout value, in the unit of TU */
- WMI_VDEV_PARAM_EBT_RESYNC_TIMEOUT, /* 0x40 */
- /* Enable Aggregation State Trigger Event */
- WMI_VDEV_PARAM_AGGR_TRIG_EVENT_ENABLE, /* 0x41 */
- /* This parameter indicates whether IBSS station can enter into power save
- * mode by sending Null frame (with PM=1). When not allowed, IBSS station has to stay
- * awake all the time and should never set PM=1 in its transmitted frames.
- * This parameter is meaningful/valid only when WMI_VDEV_PARAM_ATIM_WINDOW_LENGTH
- * is non-zero. */
- WMI_VDEV_PARAM_IS_IBSS_POWER_SAVE_ALLOWED, /* 0x42 */
- /* This parameter indicates if this station can enter into power collapse
- * for the remaining beacon interval after the ATIM window.
- * This parameter is meaningful/valid only when WMI_VDEV_PARAM_IS_IBSS_POWER_SAVE_ALLOWED
- * is set to TRUE. */
- WMI_VDEV_PARAM_IS_POWER_COLLAPSE_ALLOWED, /* 0x43 */
- /* This parameter indicates whether IBSS station exit power save mode and
- * enter power active state (by sending Null frame with PM=0 in the immediate ATIM Window)
- * whenever there is a TX/RX activity. */
- WMI_VDEV_PARAM_IS_AWAKE_ON_TXRX_ENABLED, /* 0x44 */
- /* If Awake on TX/RX activity is enabled, this parameter indicates
- * the data inactivity time in number of beacon intervals after which
- * IBSS station reenters power save by sending Null frame with PM=1. */
- WMI_VDEV_PARAM_INACTIVITY_CNT, /* 0x45 */
- /* Inactivity time in msec after which TX Service Period (SP) is
- * terminated by sending a Qos Null frame with EOSP.
- * If value is 0, TX SP is terminated with the last buffered packet itself
- * instead of waiting for the inactivity timeout. */
- WMI_VDEV_PARAM_TXSP_END_INACTIVITY_TIME_MS, /* 0x46 */
- /** DTIM policy */
- WMI_VDEV_PARAM_DTIM_POLICY, /* 0x47 */
- /* When IBSS network is initialized, PS-supporting device
- * does not enter protocol sleep state during first
- * WMI_VDEV_PARAM_IBSS_PS_WARMUP_TIME_SECS seconds. */
- WMI_VDEV_PARAM_IBSS_PS_WARMUP_TIME_SECS, /* 0x48 */
- /* Enable/Disable 1 RX chain usage during the ATIM window */
- WMI_VDEV_PARAM_IBSS_PS_1RX_CHAIN_IN_ATIM_WINDOW_ENABLE, /* 0x49 */
- /* RX Leak window is the time driver waits before shutting down
- * the radio or switching the channel and after receiving an ACK
- * for a data frame with PM bit set) */
- WMI_VDEV_PARAM_RX_LEAK_WINDOW, /* 0x4a */
- /** Averaging factor(16 bit value) is used in the calculations to
- * perform averaging of different link level statistics like average
- * beacon spread or average number of frames leaked */
- WMI_VDEV_PARAM_STATS_AVG_FACTOR, /* 0x4b */
- /** disconnect threshold, once the consecutive error for specific peer
- * exceed this threshold, FW will send kickout event to host */
- WMI_VDEV_PARAM_DISCONNECT_TH, /* 0x4c */
- /** The rate_code of RTS_CTS changed by host. Now FW can support
- * more non-HT rates rather than 1Mbps or 6Mbps */
- WMI_VDEV_PARAM_RTSCTS_RATE, /* 0x4d */
- /** This parameter indicates whether using a long duration RTS-CTS
- * protection when a SAP goes off channel in MCC mode */
- WMI_VDEV_PARAM_MCC_RTSCTS_PROTECTION_ENABLE, /* 0x4e */
- /** This parameter indicates whether using a broadcast probe response
- * to increase the detectability of SAP in MCC mode */
- WMI_VDEV_PARAM_MCC_BROADCAST_PROBE_ENABLE, /* 0x4f */
- /** This parameter indicates the power backoff in percentage
- * currently supports 100%, 50%, 25%, 12.5%, and minimum
- * Host passes 0, 1, 2, 3, 4 to Firmware
- * 0 --> 100% --> no changes, 1 --> 50% --> -3dB,
- * 2 --> 25% --> -6dB, 3 --> 12.5% --> -9dB, 4 --> minimum --> -32dB
- */
- WMI_VDEV_PARAM_TXPOWER_SCALE, /* 0x50 */
- /** TX power backoff in dB: tx power -= param value
- * Host passes values(DB) to Halphy, Halphy reduces the power table
- * by the values. Safety check will happen in Halphy.
- */
- WMI_VDEV_PARAM_TXPOWER_SCALE_DECR_DB, /* 0x51 */
- /** Multicast to Unicast conversion setting */
- WMI_VDEV_PARAM_MCAST2UCAST_SET, /* 0x52 */
- /** Total number of HW retries */
- WMI_VDEV_PARAM_RC_NUM_RETRIES, /* 0x53 */
- /** Max tx percentage for cabq */
- WMI_VDEV_PARAM_CABQ_MAXDUR, /* 0x54 */
- /** MFPTEST settings */
- WMI_VDEV_PARAM_MFPTEST_SET, /* 0x55 */
- /** RTS Fixed rate setting */
- WMI_VDEV_PARAM_RTS_FIXED_RATE, /* 0x56 */
- /** VHT SGI MASK */
- WMI_VDEV_PARAM_VHT_SGIMASK, /* 0x57 */
- /** VHT80 Auto Rate MASK */
- WMI_VDEV_PARAM_VHT80_RATEMASK, /* 0x58 */
- /** set Proxy STA features for this vap */
- WMI_VDEV_PARAM_PROXY_STA, /* 0x59 */
- /** set virtual cell mode - enable/disable */
- WMI_VDEV_PARAM_VIRTUAL_CELL_MODE, /* 0x5a */
- /** Set receive packet type */
- WMI_VDEV_PARAM_RX_DECAP_TYPE, /* 0x5b */
- /** Set ratemask with specific Bandwidth and NSS */
- WMI_VDEV_PARAM_BW_NSS_RATEMASK, /* 0x5c */
- /** Set SENSOR Support */
- WMI_VDEV_PARAM_SENSOR_AP, /* 0x5d */
- /** Set beacon rate */
- WMI_VDEV_PARAM_BEACON_RATE, /* 0x5e */
- /** Enable CTS to self for DTIM beacon */
- WMI_VDEV_PARAM_DTIM_ENABLE_CTS, /* 0x5f */
- /** Disable station kickout at Vap level */
- WMI_VDEV_PARAM_STA_KICKOUT, /* 0x60 */
- /* VDEV capabilities */
- WMI_VDEV_PARAM_CAPABILITIES, /* see capabilities defs below */ /* 0x61 */
- /**
- * Increment TSF in micro seconds to avoid beacon collision on mesh VAP.
- * The host must ensure that either no other vdevs share the TSF with
- * this vdev, or else that it is acceptable to apply this TSF adjustment
- * to all vdevs sharing the TSF.
- */
- WMI_VDEV_PARAM_TSF_INCREMENT, /* 0x62 */
- /** Disable/Enable AMPDU of vdev per AC:
- * bit | AC
- * --------
- * 0 | VO
- * 1 | VI
- * 2 | BE
- * 3 | BK
- * A value of 0 in a given bit disables A-MPDU aggregation for
- * that AC; a value of 1 enables A-MPDU aggregation
- */
- WMI_VDEV_PARAM_AMPDU_PER_AC, /* 0x63 */
- /**
- * Vdev level rx filter of from-ds / to-ds / no-ds / ta / ra frames.
- * Used mainly for mesh-vap.
- * The parameter value delivered with the RX_FILTER vdev param contains
- * a bit-or mask of wmi_vdev_param_filter enum values.
- */
- WMI_VDEV_PARAM_RX_FILTER, /* 0x64 */
- /** vdev-specific mgmt tx power in dBm units (signed integer value) */
- WMI_VDEV_PARAM_MGMT_TX_POWER, /* 0x65 */
- /** Vdev level non aggregration/11g sw retry threshold. 0-disable, min:0, max:31, default:15 */
- WMI_VDEV_PARAM_NON_AGG_SW_RETRY_TH, /* 0x66 */
- /** Vdev level aggregration sw retry threshold. 0-disable, min:0, max:31, default:15 */
- WMI_VDEV_PARAM_AGG_SW_RETRY_TH, /* 0x67 */
- /** disable dynamic bw RTS **/
- WMI_VDEV_PARAM_DISABLE_DYN_BW_RTS, /* 0x68 */
- /** per ssid (vdev) based ATF strict/fair scheduling policy
- * param values are WMI_ATF_SSID_FAIR_SCHED, WMI_ATF_SSID_STRICT_SCHED,
- * or WMI_ATF_SSID_FAIR_SCHED_WITH_UB
- */
- WMI_VDEV_PARAM_ATF_SSID_SCHED_POLICY, /* 0x69 */
- /** Enable or disable Dual carrier modulation
- * valid values: 0-Disable DCM, 1-Enable DCM.
- */
- WMI_VDEV_PARAM_HE_DCM, /* 0x6a */
- /** Enable or disable Extended range
- * valid values: 0-Disable ER, 1-Enable ER.
- */
- WMI_VDEV_PARAM_HE_RANGE_EXT, /* 0x6b */
- /* enable or disable BCAST probe response feature */
- WMI_VDEV_PARAM_ENABLE_BCAST_PROBE_RESPONSE, /* 0x6c */
- /* param to specify probe request Tx delay during Fast Initial Link Setup */
- WMI_VDEV_PARAM_FILS_MAX_CHANNEL_GUARD_TIME, /* units = milliseconds */ /* 0x6d */
- /* enable or disable NOA for P2P GO */
- WMI_VDEV_PARAM_DISABLE_NOA_P2P_GO, /* 0x6e */
- /** Per band user management frame fix rate setting
- * BIT 31: enable (1) or disable (0) mgmt fix rate for 5G
- * BIT 30: enable (1) or disable (0) mgmt fix rate for 2G
- *
- * BIT 23: 11ax (1) or legacy (0) rate code
- * BITS [22..12]: rate code for 5G
- *
- * BIT 11: 11ax (1) or legacy (0) rate code
- * BITS [10..0]: rate code for 2G
- */
- WMI_VDEV_PARAM_PER_BAND_MGMT_TX_RATE, /* 0x6f */
- /* This should be called before WMI_VDEV_PARAM_TXBF */
- WMI_VDEV_PARAM_11AX_TXBF, /* 0x70 */
- /** This parameter indicates whether VDEV is SMPS intolerant.
- * I.e. - SMPS action frame cannot be transmitted by the VDEV to
- * dynamically change the RX NSS.
- *
- * valid values: 1 - VDEV is SMPS intolerant, 0 - VDEV is SMPS tolerant
- */
- WMI_VDEV_PARAM_SMPS_INTOLERANT, /* 0x71 */
- /** specify probe request Tx delay for scans triggered on this VDEV */
- WMI_VDEV_PARAM_PROBE_DELAY, /* units = milliseconds */ /* 0x72 */
- /** specify the time gap between each set of probe request transmissions.
- * The number of probe requests in each set depends on the ssid_list and
- * bssid_list in the scan request.
- * This parameter will be applied only for scans triggered on this VDEV.
- */
- WMI_VDEV_PARAM_REPEAT_PROBE_TIME, /* units = milliseconds */ /* 0x73 */
- /** specify the HE LTF setting that should be used for fixed rate
- * transmissions.
- *
- * Expects values of WMI_HE_LTF_DEFAULT, WMI_HE_LTF_1X, WMI_HE_LTF_2X,
- * or WMI_HE_LTF_4X.
- */
- WMI_VDEV_PARAM_HE_LTF, /* 0x74 */
- /** VDEV parameter to configure the number of TX chains to use for
- * a/b/g rates.
- * bit 0~15 : 11b mode TX chain number.
- * bit 16~31 : 11ag mode TX chain number.
- *
- * valid values:
- * Should not exceed the maximum number of supported TX Chains
- * 0 - Used to reset the vote. Acts as Don't Care
- */
- WMI_VDEV_PARAM_ABG_MODE_TX_CHAIN_NUM, /* 0x75 */
- /**
- * Enable or disable the multi group key feature on this VDEV.
- * used for NAN APP and VLAN Tagging
- */
- WMI_VDEV_PARAM_ENABLE_MULTI_GROUP_KEY, /* 0x76 */
- /*
- * Specify the total number of multi group key on this VDEV.
- */
- WMI_VDEV_PARAM_NUM_GROUP_KEYS, /* 0x77 */
- /** VDEV parameter to enable or disable various OCE features */
- WMI_VDEV_PARAM_ENABLE_DISABLE_OCE_FEATURES, /* 0x78 */
- /*
- * Set/Clear 3 least-significant bits to
- * Disable or Enable rate drop down for MGMT, SU data and MU data pkts
- *
- * bit 0 -> If set MGMT Pkt rate drop down is enabled else disabled
- * bit 1 -> If set SU data Pkt rate drop down is enabled else disabled
- * bit 2 -> If set MU data Pkt rate drop down is enabled else disabled
- * bits 31:3 -> Reserved bits. should be set to zero.
- */
- WMI_VDEV_PARAM_RATE_DROPDOWN_BMAP, /* 0x79 */
- /** VDEV parameter to config modulated DTIM count */
- WMI_VDEV_PARAM_MODDTIM_CNT, /* 0x7a */
- /**
- * VDEV parameter to config max listen interval,
- * when modulated DTIM is enabled.
- * Units are 100TU.
- */
- WMI_VDEV_PARAM_MAX_LI_OF_MODDTIM, /* 0x7b */
- /** VDEV parameter to config dynamic DTIM count */
- WMI_VDEV_PARAM_DYNDTIM_CNT, /* 0x7c */
- /** VDEV parameter to enable or disable RTT responder role
- * A value of 0 in a given bit disables corresponding mode.
- * bit | Responder mode support
- * -----------------------------------------
- * 0 | responder mode for 11MC ranging
- * 1 | responder mode for 11AZ NTB ranging
- * 2 | responder mode for 11AZ TB ranging
- */
- WMI_VDEV_PARAM_ENABLE_DISABLE_RTT_RESPONDER_ROLE, /* 0x7d */
- /** Parameter to configure BA mode.
- * Valid values: 0- Auto mode,
- * 1- Manual mode(addba req not sent).
- * 2- buffer size 64
- * 3- buffer size 256
- * 4- buffer size 128 // placeholder, not valid
- * 5- buffer size 512
- * 6- buffer size 1024
- */
- WMI_VDEV_PARAM_BA_MODE, /* 0x7e */
- /**
- * VDEV parameter to force to set modulate DTIM count as listen interval,
- * no matter whether WoW is enabled
- * Default: Disabled.
- * Valid values: 0- Disabled,
- * 1- Enabled.
- */
- WMI_VDEV_PARAM_FORCED_MODDTIM_ENABLE, /* 0x7f */
- /** specify the setting that are valid for auto rate transmissions.
- * bits 7:0 (LTF): When bitmask is set, then corresponding LTF value is
- * used for auto rate.
- * BIT0 = 1 (WMI_HE_LTF_1X or WMI_EHT_LTF_1X depending on
- * current rate’s preamble type HE or EHT)
- * BIT1 = 1 (WMI_HE_LTF_2X or WMI_EHT_LTF_2X)
- * BIT2 = 1 (WMI_HE_LTF_4X or WMI_EHT_LTF_4X)
- * BIT3-7 = Reserved bits.
- * bits 15:8 (SGI): When bitmask is set, then corresponding SGI value is
- * used for auto rate.
- * BIT8 = 1 (400 NS)
- * BIT9 = 1 (800 NS)
- * BIT10 = 1 (1600 NS)
- * BIT11 = 1 (3200 NS)
- * BIT12-15 = Reserved bits.
- * bits 31:16: Reserved bits. should be set to zero.
- */
- WMI_VDEV_PARAM_AUTORATE_MISC_CFG, /* 0x80 */
- /** VDEV parameter to enable or disable RTT initiator mac address
- * randomization.
- * Default: Disabled.
- * valid values: 0-Disable random mac 1-Enable random mac
- */
- WMI_VDEV_PARAM_ENABLE_DISABLE_RTT_INITIATOR_RANDOM_MAC, /* 0x81 */
- /**
- * For each AC, configure how many tx retries to send without RTS
- * before enabling RTS
- * bits 0:7 :BE
- * bits 8:15 :BK
- * bits 16:23 :VI
- * bits 24:31 :VO
- * A value of 0 in specific AC means default configuration for that AC.
- */
- WMI_VDEV_PARAM_TX_RETRIES_BEFORE_RTS_PER_AC, /* 0x82 */
- /**
- * Parameter to enable/disable AMSDU aggregation size auto-selection logic.
- * We have logic where AMSDU aggregation size is dynamically decided
- * based on MCS. That logic is enabled by default.
- * For certain tests, we need a method to disable this optimization,
- * and base AMSDU size only on the peer's capability rather than our logic.
- * A value of 0 means disable internal optimization,
- * 1 means enable internal optimzation.
- */
- WMI_VDEV_PARAM_AMSDU_AGGREGATION_SIZE_OPTIMIZATION, /* 0x83 */
- /**
- * In RAW mode, FW will not know whether the encryption is enabled
- * on this vdev or not.
- * Because of this, FW will not program the right info into the
- * RawNwifi TLV resulting in the connection failure in RAW mode.
- * So to program the right info, FW should know whether the security
- * is enabled on this VDEV.
- * Host will send this VDEV param command (With Value = 1) in case of
- * RAW secure mode.
- */
- WMI_VDEV_PARAM_RAW_IS_ENCRYPTED, /* 0x84 */
- /**
- * Dynamically enable/disable green tx (GTX) on supported rates.
- * Host will set this param to 1 for enabling GTX & 0 for disabling it.
- * Note: If GTX was already running (since the global GTX control
- * resides with default BDF setting) & host wants to disable GTX,
- * the VDEV does not exercise any more TPC changes on the GTX supported
- * rates & goes to a default GTX SM where all PPDU's sent on default TPC.
- * Whenever, host wants to re-enable GTX, the enable command resumes the
- * GTX functionality & TPC convergence to lower power levels can be
- * attained as long as PER on GTX supported rates is within the pre-defined
- * PER margin configured through the BDF.
- */
- WMI_VDEV_PARAM_GTX_ENABLE, /* 0x85 */
- /*
- * Enable/Disable multicast buffer.
- * A FLAG to enable & disable buffering of multicast frames at AP
- * when stations are in Power Save mode.
- * Once AP disables buffering of multicast frame,
- * clients which goes into Power save mode will not receive these frames.
- * by default MCAST buffering will be enabled.
- * (CABQ = Content After Beacon Queue = multicast queue)
- * Host will send this VDEV param command,
- * With Value = 1 means fw will disable the MCAST buffering
- * With Value = 0 means fw will enable the MCAST buffering.
- */
- WMI_VDEV_PARAM_DISABLE_CABQ, /* 0x86 */
- /**
- * For SU and MU sounding
- * switch between su ac/ax sounding and mu ac/ax sounding
- * switch between triggered/ non-triggered on ax sounding enabled.
- * each bit toggles the corresponding modes by enabling/disabling
- *
- * Bit 1 doesn't carry any operation for now and may change later,
- * so reserved.
- *
- *-----------------------
- * bit(0) | mode
- *-----------------------
- * 0 | AC
- * 1 | AX
- *-----------------------
- *
- * bit(1) | Reserved
- *
- *-----------------------
- * bit(2) | mode
- *-----------------------
- * 0 | SU
- * 1 | MU
- *-----------------------
- * bit(3) | mode
- *-----------------------
- * 0 | non -triggered
- * 1 | triggered
- */
- WMI_VDEV_PARAM_SET_HE_SOUNDING_MODE, /* 0x87 */
- /** Fixed rate setting used in UL Trigger
- * The top nibble is used to select which format to use for encoding
- * the rate specification: 0xVXXXXXXX, V must be 1 for the UL
- * format.
- * If V == 0b0001: format is: 0x1000RRRR.
- * ("RRRR" ratecode already has those preamble bits,
- * which can specify HE or EHT)
- * This will be output of WMI_ASSEMBLE_RATECODE_V1
- *
- * This parameter controls the UL OFDMA and UL MU-MIMO vdev fixed rate.
- */
- WMI_VDEV_PARAM_UL_FIXED_RATE, /* 0x88 */
- /**
- * Uplink MU-MIMO & OFDMA GI configuration used in UL Trigger
- * 11AX: GI =
- * WMI_GI_400_NS, WMI_GI_800_NS, WMI_GI_1600_NS, or WMI_GI_3200_NS
- * 11N: SGI=WMI_GI_400_NS
- */
- /** Top nibble can be used to distinguish between HE and EHT: 0xVXXXXXXX
- * If V == 0b0000: format is HE.
- * If V == 0b0001: format is EHT.
- */
- WMI_VDEV_PARAM_UL_GI, /* 0x89 */
- /** Enable/Disable LDPC in UL Trigger */
- /** Top nibble can be used to distinguish between HE and EHT: 0xVXXXXXXX
- * If V == 0b0000: format is HE.
- * If V == 0b0001: format is EHT.
- */
- WMI_VDEV_PARAM_UL_LDPC, /* 0x8A */
- /** Max NSS allowed in UL Trigger */
- /** Top nibble can be used to distinguish between HE and EHT: 0xVXXXXXXX
- * If V == 0b0000: format is HE.
- * If V == 0b0001: format is EHT.
- */
- WMI_VDEV_PARAM_UL_NSS, /* 0x8B */
- /** Enable/Disable STBC in UL Trigger */
- /** Top nibble can be used to distinguish between HE and EHT: 0xVXXXXXXX
- * If V == 0b0000: format is HE.
- * If V == 0b0001: format is EHT.
- */
- WMI_VDEV_PARAM_UL_STBC, /* 0x8C */
- /** specify the HE LTF setting that should be used for fixed rate
- * uplink transmissions.
- *
- * Expects values of WMI_HE_LTF_DEFAULT, WMI_HE_LTF_1X, WMI_HE_LTF_2X,
- * or WMI_HE_LTF_4X.
- */
- WMI_VDEV_PARAM_UL_HE_LTF, /* 0x8D */
- /** Uplink OFDMA PPDU bandwidth */
- /** Top nibble can be used to distinguish between HE and EHT: 0xVXXXXXXX
- * If V == 0b0000: format is HE.
- * (0: 20MHz, 1: 40MHz, 2: 80Mhz, 3: 160MHz)
- * If V == 0b0001: format is EHT.
- * (0: 20MHz, 1: 40MHz, 2: 80Mhz, 3: 160MHz, 4: 320MHz)
- */
- WMI_VDEV_PARAM_UL_PPDU_BW, /* 0x8E */
- /** Enable/Disable FW handling MU EDCA change from AP (1: En, 0:Dis) */
- WMI_VDEV_PARAM_MU_EDCA_FW_UPDATE_EN, /* 0x8F */
- /** Update dot11ObssNbruToleranceTime in fw. Param value: seconds */
- WMI_VDEV_PARAM_UPDATE_OBSS_RU_TOLERANCE_TIME, /* 0x90 */
- /** Parameter used when MTU size is sent by the host
- * In particular, this configuration message is used for cases where the
- * encapsulation header results in a larger max frame size than the
- * typical 802.3 + SNAP/LLC frame.
- */
- WMI_VDEV_PARAM_MAX_MTU_SIZE, /* 0x91 */
- /** Send every nth beacon to host
- * if value of n is 0, it means this Nth beacon upload is disabled
- */
- WMI_VDEV_PARAM_NTH_BEACON_TO_HOST, /* 0x92 */
- /**
- * To capture the MGMT OR DATA OR BOTH packets.
- * Refer to enum WMI_PKT_CAPTURE_MODE_CONFIG for specifications of
- * which parameter value enables which kind of packet captures.
- */
- WMI_VDEV_PARAM_PACKET_CAPTURE_MODE, /* 0x93 */
- /**
- * To configure duration of how many seconds without tx unicast traffic is
- * considered stale for mcast rate adaptation
- */
- WMI_VDEV_PARAM_MCAST_RC_STALE_PERIOD, /* 0x94 */
- /*
- * Bits 3:0 - AST0_FLOW_MASK(4)
- * Bits 7:4 - AST1_FLOW_MASK(4)
- * Bits 11:8 - AST2_FLOW_MASK(4)
- * Bits 15:12 - AST3_FLOW_MASK(4)
- * Bits 23:16 - TID_VALID_HI_PRI(8)
- * Bits 31:24 - TID_VALID_LOW_PRI(8)
- *
- * The below macros can be used to set/get the relevant fields.
- * WMI_MSDU_FLOW_ASTX_MSDU_FLOW_MASKS_GET(msdu_flow_config1, ast_x)
- * WMI_MSDU_FLOW_ASTX_MSDU_FLOW_MASKS_SET(msdu_flow_config1, ast_x, mask)
- * WMI_MSDU_FLOW_TID_VALID_HI_MASKS_GET(msdu_flow_config1)
- * WMI_MSDU_FLOW_TID_VALID_HI_MASKS_SET(msdu_flow_config1, mask)
- * WMI_MSDU_FLOW_TID_VALID_LOW_MASKS_GET(msdu_flow_config1)
- * WMI_MSDU_FLOW_TID_VALID_LOW_MASKS_SET(msdu_flow_config1, mask)
- */
- WMI_VDEV_PARAM_MSDU_FLOW_OVERRIDE_CONFIG, /* 0x95 */
- /* Enable/Disable using NULL frame for leaky AP */
- WMI_VDEV_PARAM_ENABLE_NULL_FOR_LEAKY_AP, /* 0x96 */
- /**
- * To configure duration of how many seconds without TX/RX data traffic,
- * NDI vdev can kickout the connected peer (i.e. NDP Termination).
- */
- WMI_VDEV_PARAM_NDP_INACTIVITY_TIMEOUT, /* 0x97 */
- /* To enable/disable multicast rate adaptation feature at vdev level */
- WMI_VDEV_PARAM_ENABLE_MCAST_RC, /* 0x98 */
- /*
- * Params related to 6 GHz operation
- * The parameter value is formed from WMI_VDEV_6GHZ_BITMAP flags.
- */
- WMI_VDEV_PARAM_6GHZ_PARAMS, /* 0x99 */
- /**
- * VDEV parameter to enable or disable RTT initiator role
- * Default : Enabled
- * valid values: 0-Disable initiator role, 1-Enable initiator role.
- */
- WMI_VDEV_PARAM_ENABLE_DISABLE_RTT_INITIATOR_ROLE, /* 0x9A */
- /**
- * To configure duration of how many seconds to wait to kickout peer
- * if peer is not reachable
- */
- WMI_VDEV_PARAM_NDP_KEEPALIVE_TIMEOUT, /* 0x9B*/
- /**
- * To support discovery of NAN cluster with Master Preference (MP) as 0
- * when a new device is enabling NAN
- */
- WMI_VDEV_PARAM_ALLOW_NAN_INITIAL_DISCOVERY_OF_MP0_CLUSTER, /* 0x9C */
- /**
- * VDEV parameter to enable or disable roaming reason VSIE in
- * re-association request
- *
- * Default : Disabled
- * valid values: 0 - Disable 1 - Enable
- */
- WMI_VDEV_PARAM_ENABLE_DISABLE_ROAM_REASON_VSIE, /* 0x9D */
- /* Parameter used to configure OBSS Packet Detect threshold
- * for Non-SRG / SRG based Spatial Reuse feature.
- * (SRG = Spatial Reuse Group)
- * The accepted values are in between 0x00 and 0xFF, inclusive.
- * The parameter value is programmed into the appropriate spatial reuse
- * register, to specify how low the background signal strength from
- * neighboring BSS cells must be, for this AP to employ spatial reuse.
- *
- * The value of the parameter is compared against the OBSS RSSI in dB.
- * It is a 8-bit value whose
- * range is -128 to 127 (after two's complement operation).
- * For example, if the parameter value is 0xF5, the target will
- * allow spatial reuse if the RSSI detected from other BSS
- * is below -10 dB.
- * Similarly, if the parameter value is 0x0A, the target will
- * allow spatial reuse only if the RSSI detected from neighboring
- * BSS cells is no more than 10 dB.
- *
- * If Bit 29 is set, then input value will be in dBm. This is used
- * for chipsets that use dBm for comparison across MAC/Phy blocks.
- * Older chipsets support input in dB units. For newer chipsets, dBm
- * units will be used.
- * The host will use the WMI_SERVICE_SRG_SRP_SPATIAL_REUSE_SUPPORT
- * service ready bit to differentiate between providing input as dB or dBm.
- *
- * bit | purpose
- * -----------------
- * 0 - 7 | Param Value for non-SRG based Spatial Reuse
- * 8 - 15| Param value for SRG based Spatial Reuse
- * 16 - 28| Reserved
- * 29 | Param value is in dBm units rather than dB units
- * 30 | Enable/Disable SRG based spatial reuse.
- * | If set to 0, ignore bits 8-15.
- * 31 | Enable/Disable Non-SRG based spatial reuse.
- * | If set to 0, ignore bits 0-7.
- *
- * The WMI_VDEV_PARAM_SET_CMD_OBSS_PD_THRESHOLD setting will only
- * take effect if the WMI_PDEV_PARAM_SET_CMD_OBSS_PD_THRESHOLD
- * setting is also set for the pdev that the vdev belongs to.
- */
- WMI_VDEV_PARAM_SET_CMD_OBSS_PD_THRESHOLD, /* 0x9E */
- /* Parameter used to configure OBSS Packet Detection per Access Category
- * for SRP based and OBSS_PD based spatial reuse feature.
- * (SRP = Spatial Reuse Parameter)
- * Based on the bits set, the corresponding Access Category Queues will have
- * spatial reuse enabled / disabled.
- * bit | AC
- * ------------
- * 0 | BK for SRG/Non-SRG
- * 1 | BE for SRG/Non-SRG
- * 2 | VI for SRG/Non-SRG
- * 3 | VO for SRG/Non-SRG
- * 4 - 15 | Reserved
- * 16 | BK for SRP
- * 17 | BE for SRP
- * 18 | VI for SRP
- * 19 | VO for SRP
- * 20 - 31 | Reserved
- *
- * The WMI_VDEV_PARAM_SET_CMD_OBSS_PD_PER_AC setting will only take effect
- * if the WMI_PDEV_PARAM_SET_CMD_OBSS_PD_PER_AC setting is also set for
- * the pdev that the vdev belongs to.
- */
- WMI_VDEV_PARAM_SET_CMD_OBSS_PD_PER_AC, /* 0x9F */
- /**
- * VDEV parameter to indicate RSN (Robust Security Network) capability.
- * This value will be intersection of the local vdev's (STA's)
- * RSN capability and the peer's (AP's) RSN capability.
- */
- WMI_VDEV_PARAM_RSN_CAPABILITY, /* 0xA0 */
- /* Parameter used to enable/disable SRP feature */
- WMI_VDEV_PARAM_ENABLE_SRP, /* 0xA1 */
- /*
- * Parameter used to control roaming/11kv (BTM) / etc. behavior
- * bit | purpose
- * -----------------
- * 0 | Disable any FW side roaming except host invoke roaming
- * 1 | Do not trans away on receiving BTM req
- * 2 | Do not send disassoc to AP when receiving BTM req with
- * | Disassoc Imminent bit set to 1
- * 3 - 31 | Reserved
- */
- WMI_VDEV_PARAM_ROAM_11KV_CTRL, /* 0xA2 */
- /* vdev param to enable or disable various NAN config features
- * param value bitmap set to 1 for enable and 0 for disable respectively
- */
- WMI_VDEV_PARAM_ENABLE_DISABLE_NAN_CONFIG_FEATURES, /* 0xA3 */
- /* vdev param to enable the SAP HW offload
- * Bit : 0 - enable/disable SHO
- * Bit : 1 - enable for Sta connected state as well.
- * Bit : 2-31 - reserved
- */
- WMI_VDEV_PARAM_SHO_CONFIG, /* 0xA4 */
- /** Enable or disable Non-data HE Extended range
- * valid values: 0-Disable ER, 1-Enable ER.
- */
- WMI_VDEV_PARAM_NON_DATA_HE_RANGE_EXT, /* 0xA5 */
- /** Prohibit data & mgmt except keepalive pkt */
- WMI_VDEV_PARAM_PROHIBIT_DATA_MGMT, /* 0xA6 */
- /** Enable or disable Txop requirement feature
- * 0 - Disable feature
- * 1 - Enable feature
- */
- WMI_VDEV_PARAM_WMM_TXOP_ENABLE, /* 0xA7 */
- /** Value of DTIM to be applied in Suspend mode
- */
- WMI_VDEV_PARAM_FORCE_DTIM_CNT, /* 0xA8 */
- /* vdev param to configure the Smart Monitor features
- * Bit : 0 - enable/disable Trigger frames
- * Bit : 1 - enable/disable QOS frames
- * Bit : 2-4 - if 1, fwd beacon frames from connected AP
- * - if 2, fwd beacon frames from unconnected AP
- * during roam scan/host scan
- * - if 3, fwd beacons from unconnected AP during
- * roam scan/host scan and from connected AP
- * - if 4, don't fwd any beacon frame
- * Bit : 5-31 - reserved
- */
- WMI_VDEV_PARAM_SMART_MONITOR_CONFIG, /* 0xA9 */
- /** Value of MAX modulated DTIM in ms to be applied
- * in Suspend mode. This parameter will override
- * the value of WMI_VDEV_PARAM_MAX_LI_OF_MODDTIM
- */
- WMI_VDEV_PARAM_MAX_LI_OF_MODDTIM_MS, /* 0xAA */
- /*
- * Security config advertised in beacons
- * bit 0: URNM_MFPR in RSNXE
- * bit 1: MFPC in RSN CAP
- * bit 2: MFPR in RSN CAP
- * bit 3: URNM_MFPR_X20 in RSNXE
- * bit 4: RSTA_EXTCAP_I2R_LMR_FB
- * bit 31:5 Reserved
- */
- WMI_VDEV_PARAM_11AZ_SECURITY_CONFIG, /* 0xAB */
- /*
- * Latency Level Flags
- */
- WMI_VDEV_PARAM_NORMAL_LATENCY_FLAGS_CONFIGURATION, /* 0xAC */
- WMI_VDEV_PARAM_XR_LATENCY_FLAGS_CONFIGURATION, /* 0xAD */
- WMI_VDEV_PARAM_LOW_LATENCY_FLAGS_CONFIGURATION, /* 0xAE */
- WMI_VDEV_PARAM_ULTRA_LOW_LATENCY_FLAGS_CONFIGURATION, /* 0xAF */
- /*
- * Latency level UL/DL
- * 0-15 bits: UL
- * 16-31 bits: DL
- */
- WMI_VDEV_PARAM_NORMAL_LATENCY_UL_DL_CONFIGURATION, /* 0xB0 */
- WMI_VDEV_PARAM_XR_LATENCY_UL_DL_CONFIGURATION, /* 0xB1 */
- WMI_VDEV_PARAM_LOW_LATENCY_UL_DL_CONFIGURATION, /* 0xB2 */
- WMI_VDEV_PARAM_ULTRA_LOW_LATENCY_UL_DL_CONFIGURATION, /* 0xB3 */
- /*
- * Ini to
- * Configure default latency level for all clients
- */
- WMI_VDEV_PARAM_DEFAULT_LATENCY_LEVEL_CONFIGURATION, /* 0xB4 */
- /*
- * Ini to
- * Configure multi client Low latency Feature
- */
- WMI_VDEV_PARAM_MULTI_CLIENT_LL_FEATURE_CONFIGURATION, /* 0xB5 */
- /*
- * traffic config for per vdev
- * bit 0: low latency vdev
- * bit 1: high tput vdev
- * bit 31:2 Reserved
- */
- WMI_VDEV_PARAM_VDEV_TRAFFIC_CONFIG, /* 0xB6 */
- /* Final bmiss time for Non WOW mode in sec */
- WMI_VDEV_PARAM_FINAL_BMISS_TIME_SEC, /* 0xB7 */
- /* Final bmiss time for WOW mode in sec */
- WMI_VDEV_PARAM_FINAL_BMISS_TIME_WOW_SEC, /* 0xB8 */
- /*
- * Param to disable LPI antenna optimizations at Vdev level.
- * In 6G LPI mode, additional antenna optimizations are done to
- * improve range. Param is provided to disable the added
- * optimizations.
- */
- WMI_VDEV_PARAM_DISABLE_LPI_ANT_OPTIMIZATION, /* 0xB9 */
- /*
- * Param to update connected VDEV channel bandwidth.
- * Target firmware should take care of notifying associated peers
- * (except TDLS) about change in bandwidth, through OMN/OMI notification
- * before performing bandwidth update internally.
- * Please note incase of STA VDEV only BSS peer gets updated,
- * associated TDLS peer bandwidth won't be impacted.
- *
- * The updated bandwidth is specified with a wmi_channel_width value.
- */
- WMI_VDEV_PARAM_CHWIDTH_WITH_NOTIFY, /* 0xBA */
- /*
- * Min time between measurment for 11AZ NTB ranging
- * in units of 100 microseconds
- */
- WMI_VDEV_PARAM_RTT_11AZ_NTB_MIN_TIME_BW_MEAS, /* 0xBB */
- /*
- * Max time between measurment for 11AZ NTB ranging
- * in units of 10 milliseconds
- */
- WMI_VDEV_PARAM_RTT_11AZ_NTB_MAX_TIME_BW_MEAS, /* 0xBC */
- /*
- * Max session expiry for 11AZ TB ranging.
- * Session expiry value is computed as 2^(Max Session Exp + 8) ms.
- */
- WMI_VDEV_PARAM_RTT_11AZ_TB_MAX_SESSION_EXPIRY, /* 0xBD */
- /*
- * WiFi Standard version to be supported.
- * Value is from enum WMI_WIFI_STANDARD
- */
- WMI_VDEV_PARAM_WIFI_STANDARD_VERSION, /* 0xBE */
- /*
- * Allow to disable TWT on 2G channel
- * if corresponding INI is set
- */
- WMI_VDEV_PARAM_DISABLE_2G_TWT, /* 0xBF */
- /*
- * Disable FW initiated Information frame for TWT
- */
- WMI_VDEV_PARAM_DISABLE_TWT_INFO_FRAME, /* 0xC0 */
- /*
- * Set the Recommended Max allowed active links
- */
- WMI_VDEV_PARAM_MLO_MAX_RECOM_ACTIVE_LINKS, /* 0xC1 */
- /* DCS stats enable configuration at VDEV level */
- WMI_VDEV_PARAM_DCS, /* 0xC2 */
- /* VDEV parameter to configure Telescopic DTIM count */
- WMI_VDEV_PARAM_TELESDTIM_CNT, /* 0xC3 */
- /* Configure minimum DTIM level used by Telescopic DTIM */
- WMI_VDEV_PARAM_MIN_TELES_DTIM_LVL, /* 0xC4 */
- /* Set HW CTS2SELF before DL OFDMA Sequence */
- WMI_VDEV_PARAM_HWCTS2SELF_OFDMA, /* 0xC5 */
- /* Update TWT_UNAVAIL_MODE */
- WMI_VDEV_PARAM_TWT_UNAVAIL_MODE, /* 0xC6 */
- /*=== ADD NEW VDEV PARAM TYPES ABOVE THIS LINE ===
- * The below vdev param types are used for prototyping, and are
- * prone to change.
- */
- WMI_VDEV_PARAM_PROTOTYPE = 0x8000,
- /* 11AX SPECIFIC defines */
- /* USE this for BSS color change */
- WMI_VDEV_PARAM_BSS_COLOR, /* 0x8001 */
- /*
- * Enable / disable trigger access for a AP vdev's peers.
- * For a STA mode vdev this will enable/disable triggered access
- * and enable/disable Multi User mode of operation.
- * A value of 0 in a given bit disables corresponding mode.
- * bit | hemu mode
- * ---------------
- * 0 | HE SUBFEE
- * 1 | HE SUBFER
- * 2 | HE MUBFEE
- * 3 | HE MUBFER
- * 4 | DL OFDMA, for AP its DL Tx OFDMA for Sta its Rx OFDMA
- * 5 | UL OFDMA, for AP its Tx OFDMA trigger for Sta its Rx OFDMA
- * | trigger receive & UL response
- * 6 | UL MUMIMO
- * 7 | TXBF+OFDMA
- */
- WMI_VDEV_PARAM_SET_HEMU_MODE, /* 0x8002 */
- WMI_VDEV_PARAM_HEOPS_0_31, /* 0x8003 */
- WMI_VDEV_PARAM_OBSSPD, /* 0x8004 */
- /*
- * Enable / disable trigger access for a AP vdev's peers.
- * For a STA mode vdev this will enable/disable triggered access
- * and enable/disable Multi User mode of operation.
- * A value of 0 in a given bit disables corresponding mode.
- * bit | EHT mu mode
- * ---------------
- * 0 | EHT SUBFEE
- * 1 | EHT SUBFER
- * 2 | EHT MUBFEE
- * 3 | EHT MUBFER
- * 4 | EHT DL OFDMA, for AP its DL Tx OFDMA for Sta its Rx OFDMA
- * 5 | EHT UL OFDMA, for AP its Tx OFDMA trigger for Sta its Rx OFDMA
- * | trigger receive & UL response
- * 6 | EHT MUMIMO
- * 7 | EHT DL OFDMA + TXBF
- * 8 | EHT DL OFDMA + MU-MIMO
- * 9 | EHT UL OFDMA + MU-MIMO
- */
- WMI_VDEV_PARAM_SET_EHT_MU_MODE, /* 0x8005 */
- /**
- * Specify the EHT LTF setting that should be used for fixed rate
- * transmissions.
- *
- * Expects values of WMI_EHT_LTF_DEFAULT, WMI_EHT_LTF_1X,
- * WMI_EHT_LTF_2X, or WMI_EHT_LTF_4X.
- */
- WMI_VDEV_PARAM_EHT_LTF, /* 0x8006 */
- /**
- * Expects values of WMI_EHT_LTF_DEFAULT, WMI_EHT_LTF_1X,
- * WMI_EHT_LTF_2X, or WMI_EHT_LTF_4X.
- */
- WMI_VDEV_PARAM_UL_EHT_LTF, /* 0x8007 */
- /**
- * Enable or disable Dual Carrier Modulation
- * valid values: 0-Disable EHT DCM, 1-Enable EHT DCM.
- */
- WMI_VDEV_PARAM_EHT_DCM, /* 0x8008 */
- /**
- * Enable or disable Extended range
- * valid values: 0-Disable ER, 1-Enable ER.
- */
- WMI_VDEV_PARAM_EHT_RANGE_EXT, /* 0x8009 */
- /**
- * Enable or disable Non-data EHT Extended range
- * valid values: 0-Disable ER, 1-Enable ER.
- */
- WMI_VDEV_PARAM_NON_DATA_EHT_RANGE_EXT, /* 0x800A */
- /*
- * 0 - fixed pattern disable,
- * 1 - Fixed pattern enable and value pointed by
- * WMI_VDEV_PARAM_FIXED_PUNCTURE_PATTERN
- * punctured mode for 11be systems
- */
- WMI_VDEV_PARAM_FIXED_PUNCTURE_PATTERN, /* 0x800B */
- WMI_VDEV_PARAM_EHTOPS_0_31, /* 0x800C */
- /*
- * 0 - eht 11be puncturing disable,
- * 1 - eht 11be puncturing enable
- */
- WMI_VDEV_PARAM_SET_EHT_PUNCTURING_MODE, /* 0x800D */
- /*
- * 0 - Disable MCAST Beamforming
- * 1 - Enable MCAST Beamforming
- */
- WMI_VDEV_PARAM_MCAST_STEERING, /* 0x800E */
- /*
- * bit 0: 0 - XR SAP profile disabled
- * 1 - XR SAP profile enabled
- * bit 1: 0 - XPAN profile disabled
- * 1 - XPAN profile enabled
- * bits 31:2 - reserved
- */
- WMI_VDEV_PARAM_SET_PROFILE, /* 0x800F */
- /*
- * for valid vdev id
- * for vdev offload stats
- */
- WMI_VDEV_PARAM_VDEV_STATS_ID_UPDATE, /* 0x8010 */
- /*
- * Enable or disable Extra LTF capability in Auto rate and
- * Fixed rate EHT data packet transmissions.
- * Even when this vdev param is enabled, Extra LTF may not be
- * enabled for all rates in auto rate mode based on other conditions.
- * valid values: 0 - Disable Extra LTF, 1- Enable Extra LTF.
- */
- WMI_VDEV_PARAM_EXTRA_EHT_LTF, /* 0x8011 */
- /*
- * Disable the indicated DL and UL scheduler for the VDEV.
- *
- * This command is not supported in STA mode.
- *
- * A value of 1 in a given bit position disables the corresponding
- * mode, and a value of 0 enables the mode. The WMI_SCHED_MODE_FLAGS
- * enum defines the bit positions for each mode.
- *
- * A single 32 bit value is used to store the following configuration
- * bitmap.
- *
- * This command differs from WMI_VDEV_PARAM_SET_HEMU_MODE and
- * WMI_VDEV_PARAM_SET_EHT_MU_MODE in that it is intended for use during
- * normal AP operation, and will never cause a VAP restart or other
- * capability bit modification. It simply controls the scheduler
- * behavior.
- *
- * bit | sched mode
- * ---------------
- * 0 | DL MU-MIMO
- * 1 | UL MU-MIMO
- * 2 | DL OFDMA
- * 3 | UL OFDMA
- * 4..31 | RESERVED
- */
- WMI_VDEV_PARAM_SET_DISABLED_SCHED_MODES, /* 0x8012 */
- /*
- * SAP Power save with TWT vdev param command
- * 0 - Disable SAP Power save TWT
- * 1 - Enable SAP Power save TWT
- */
- WMI_VDEV_PARAM_SET_SAP_PS_WITH_TWT, /* 0x8013 */
- /*=== END VDEV_PARAM_PROTOTYPE SECTION ===*/
- } WMI_VDEV_PARAM;
- /* EHT Modes */
- #define WMI_VDEV_EHT_SUBFEE_IS_ENABLED(eht_mu_mode) WMI_GET_BITS((eht_mu_mode), 0, 1)
- #define WMI_VDEV_EHT_SUBFEE_ENABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 0, 1, 1)
- #define WMI_VDEV_EHT_SUBFEE_DISABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 0, 1, 0)
- #define WMI_VDEV_EHT_SUBFER_IS_ENABLED(eht_mu_mode) WMI_GET_BITS((eht_mu_mode), 1, 1)
- #define WMI_VDEV_EHT_SUBFER_ENABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 1, 1, 1)
- #define WMI_VDEV_EHT_SUBFER_DISABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 1, 1, 0)
- #define WMI_VDEV_EHT_MUBFEE_IS_ENABLED(eht_mu_mode) WMI_GET_BITS((eht_mu_mode), 2, 1)
- #define WMI_VDEV_EHT_MUBFEE_ENABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 2, 1, 1)
- #define WMI_VDEV_EHT_MUBFEE_DISABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 2, 1, 0)
- #define WMI_VDEV_EHT_MUBFER_IS_ENABLED(eht_mu_mode) WMI_GET_BITS((eht_mu_mode), 3, 1)
- #define WMI_VDEV_EHT_MUBFER_ENABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 3, 1, 1)
- #define WMI_VDEV_EHT_MUBFER_DISABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 3, 1, 0)
- #define WMI_VDEV_EHT_DLOFDMA_IS_ENABLED(eht_mu_mode) WMI_GET_BITS((eht_mu_mode), 4, 1)
- #define WMI_VDEV_EHT_DLOFDMA_ENABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 4, 1, 1)
- #define WMI_VDEV_EHT_DLOFDMA_DISABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 4, 1, 0)
- #define WMI_VDEV_EHT_ULOFDMA_IS_ENABLED(eht_mu_mode) WMI_GET_BITS((eht_mu_mode), 5, 1)
- #define WMI_VDEV_EHT_ULOFDMA_ENABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 5, 1, 1)
- #define WMI_VDEV_EHT_ULOFDMA_DISABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 5, 1, 0)
- #define WMI_VDEV_EHT_ULMUMIMO_IS_ENABLED(eht_mu_mode) WMI_GET_BITS((eht_mu_mode), 6, 1)
- #define WMI_VDEV_EHT_ULMUMIMO_ENABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 6, 1, 1)
- #define WMI_VDEV_EHT_ULMUMIMO_DISABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 6, 1, 0)
- #define WMI_VDEV_EHT_TXBF_OFDMA_IS_ENABLED(eht_mu_mode) WMI_GET_BITS((eht_mu_mode), 7, 1)
- #define WMI_VDEV_EHT_TXBF_OFDMA_ENABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 7, 1, 1)
- #define WMI_VDEV_EHT_TXBF_OFDMA_DISABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 7, 1, 0)
- #define WMI_VDEV_EHT_DLOFDMA_W_MUMIMO_IS_ENABLED(eht_mu_mode) WMI_GET_BITS((eht_mu_mode), 8, 1)
- #define WMI_VDEV_EHT_DLOFDMA_W_MUMIMO_ENABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 8, 1, 1)
- #define WMI_VDEV_EHT_DLOFDMA_W_MUMIMO_DISABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 8, 1, 0)
- #define WMI_VDEV_EHT_ULOFDMA_W_MUMIMO_IS_ENABLED(eht_mu_mode) WMI_GET_BITS((eht_mu_mode), 9, 1)
- #define WMI_VDEV_EHT_ULOFDMA_W_MUMIMO_ENABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 9, 1, 1)
- #define WMI_VDEV_EHT_ULOFDMA_W_MUMIMO_DISABLE(eht_mu_mode) WMI_SET_BITS((eht_mu_mode), 9, 1, 0)
- /* HE Modes */
- #define WMI_VDEV_HE_SUBFEE_IS_ENABLED(hemu_mode) WMI_GET_BITS(hemu_mode, 0, 1)
- #define WMI_VDEV_HE_SUBFEE_ENABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 0, 1, 1)
- #define WMI_VDEV_HE_SUBFEE_DISABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 0, 1, 0)
- #define WMI_VDEV_HE_SUBFER_IS_ENABLED(hemu_mode) WMI_GET_BITS(hemu_mode, 1, 1)
- #define WMI_VDEV_HE_SUBFER_ENABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 1, 1, 1)
- #define WMI_VDEV_HE_SUBFER_DISABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 1, 1, 0)
- #define WMI_VDEV_HE_MUBFEE_IS_ENABLED(hemu_mode) WMI_GET_BITS(hemu_mode, 2, 1)
- #define WMI_VDEV_HE_MUBFEE_ENABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 2, 1, 1)
- #define WMI_VDEV_HE_MUBFEE_DISABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 2, 1, 0)
- #define WMI_VDEV_HE_MUBFER_IS_ENABLED(hemu_mode) WMI_GET_BITS(hemu_mode, 3, 1)
- #define WMI_VDEV_HE_MUBFER_ENABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 3, 1, 1)
- #define WMI_VDEV_HE_MUBFER_DISABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 3, 1, 0)
- #define WMI_VDEV_HE_DLOFDMA_IS_ENABLED(hemu_mode) WMI_GET_BITS(hemu_mode, 4, 1)
- #define WMI_VDEV_HE_DLOFDMA_ENABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 4, 1, 1)
- #define WMI_VDEV_HE_DLOFDMA_DISABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 4, 1, 0)
- #define WMI_VDEV_HE_ULOFDMA_IS_ENABLED(hemu_mode) WMI_GET_BITS(hemu_mode, 5, 1)
- #define WMI_VDEV_HE_ULOFDMA_ENABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 5, 1, 1)
- #define WMI_VDEV_HE_ULOFDMA_DISABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 5, 1, 0)
- #define WMI_VDEV_HE_ULMUMIMO_IS_ENABLED(hemu_mode) WMI_GET_BITS(hemu_mode, 6, 1)
- #define WMI_VDEV_HE_ULMUMIMO_ENABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 6, 1, 1)
- #define WMI_VDEV_HE_ULMUMIMO_DISABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 6, 1, 0)
- #define WMI_VDEV_HE_TXBF_OFDMA_IS_ENABLED(hemu_mode) WMI_GET_BITS(hemu_mode, 7, 1)
- #define WMI_VDEV_HE_TXBF_OFDMA_ENABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 7, 1, 1)
- #define WMI_VDEV_HE_TXBF_OFDMA_DISABLE(hemu_mode) WMI_SET_BITS(hemu_mode, 7, 1, 0)
- #define WMI_VDEV_HE_AX_SOUNDING_IS_ENABLED(mode) WMI_GET_BITS(mode, 0, 1)
- #define WMI_VDEV_HE_MU_SOUNDING_IS_ENABLED(mode) WMI_GET_BITS(mode, 2, 1)
- #define WMI_VDEV_HE_AX_TRIG_SOUNDING_IS_ENABLED(mode) WMI_GET_BITS(mode, 3, 1)
- /* Indicates RTT Responder mode support for 11MC, 11AZ NTB, 11AZ TB ranging */
- #define WMI_VDEV_11MC_RESP_ENABLED(param) WMI_GET_BITS(param, 0, 1)
- #define WMI_VDEV_11AZ_NTB_RESP_ENABLED(param) WMI_GET_BITS(param, 1, 1)
- #define WMI_VDEV_11AZ_TB_RESP_ENABLED(param) WMI_GET_BITS(param, 2, 1)
- /* vdev capabilities bit mask */
- #define WMI_VDEV_BEACON_SUPPORT 0x1
- #define WMI_VDEV_WDS_LRN_ENABLED 0x2
- #define WMI_VDEV_VOW_ENABLED 0x4
- #define WMI_VDEV_IS_BEACON_SUPPORTED(param) ((param) & WMI_VDEV_BEACON_SUPPORT)
- #define WMI_VDEV_IS_WDS_LRN_ENABLED(param) ((param) & WMI_VDEV_WDS_LRN_ENABLED)
- #define WMI_VDEV_IS_VOW_ENABLED(param) ((param) & WMI_VDEV_VOW_ENABLED)
- /* Per VAP rate dropdown masks */
- #define WMI_VDEV_MGMT_RATE_DROPDOWN_M 0x01
- #define WMI_VDEV_MGMT_RATE_DROPDOWN_S 0
- #define WMI_VDEV_MGMT_RATE_DROPDOWN (WMI_VDEV_MGMT_RATE_DROPDOWN_M << WMI_VDEV_MGMT_RATE_DROPDOWN_S)
- #define WMI_VDEV_MGMT_RATE_DROPDOWN_GET(x) WMI_F_MS(x, WMI_VDEV_MGMT_RATE_DROPDOWN)
- #define WMI_VDEV_MGMT_RATE_DROPDOWN_SET(x,z) WMI_F_RMW(x, z, WMI_VDEV_MGMT_RATE_DROPDOWN)
- #define WMI_VDEV_SU_DATA_RATE_DROPDOWN_M 0x01
- #define WMI_VDEV_SU_DATA_RATE_DROPDOWN_S 1
- #define WMI_VDEV_SU_DATA_RATE_DROPDOWN (WMI_VDEV_SU_DATA_RATE_DROPDOWN_M << WMI_VDEV_SU_DATA_RATE_DROPDOWN_S)
- #define WMI_VDEV_SU_DATA_RATE_DROPDOWN_GET(x) WMI_F_MS(x, WMI_VDEV_SU_DATA_RATE_DROPDOWN)
- #define WMI_VDEV_SU_DATA_RATE_DROPDOWN_SET(x,z) WMI_F_RMW(x, z, WMI_VDEV_SU_DATA_RATE_DROPDOWN)
- #define WMI_VDEV_MU_DATA_RATE_DROPDOWN_M 0x01
- #define WMI_VDEV_MU_DATA_RATE_DROPDOWN_S 2
- #define WMI_VDEV_MU_DATA_RATE_DROPDOWN (WMI_VDEV_MU_DATA_RATE_DROPDOWN_M << WMI_VDEV_MU_DATA_RATE_DROPDOWN_S)
- #define WMI_VDEV_MU_DATA_RATE_DROPDOWN_GET(x) WMI_F_MS(x, WMI_VDEV_MU_DATA_RATE_DROPDOWN)
- #define WMI_VDEV_MU_DATA_RATE_DROPDOWN_SET(x,z) WMI_F_RMW(x, z, WMI_VDEV_MU_DATA_RATE_DROPDOWN)
- /* TXBF capabilities masks */
- #define WMI_TXBF_CONF_SU_TX_BFEE_S 0
- #define WMI_TXBF_CONF_SU_TX_BFEE_M 0x1
- #define WMI_TXBF_CONF_SU_TX_BFEE (WMI_TXBF_CONF_SU_TX_BFEE_M << WMI_TXBF_CONF_SU_TX_BFEE_S)
- #define WMI_TXBF_CONF_SU_TX_BFEE_GET(x) WMI_F_MS(x,WMI_TXBF_CONF_SU_TX_BFEE)
- #define WMI_TXBF_CONF_SU_TX_BFEE_SET(x,z) WMI_F_RMW(x,z,WMI_TXBF_CONF_SU_TX_BFEE)
- #define WMI_TXBF_CONF_MU_TX_BFEE_S 1
- #define WMI_TXBF_CONF_MU_TX_BFEE_M 0x1
- #define WMI_TXBF_CONF_MU_TX_BFEE (WMI_TXBF_CONF_MU_TX_BFEE_M << WMI_TXBF_CONF_MU_TX_BFEE_S)
- #define WMI_TXBF_CONF_MU_TX_BFEE_GET(x) WMI_F_MS(x,WMI_TXBF_CONF_MU_TX_BFEE)
- #define WMI_TXBF_CONF_MU_TX_BFEE_SET(x,z) WMI_F_RMW(x,z,WMI_TXBF_CONF_MU_TX_BFEE)
- #define WMI_TXBF_CONF_SU_TX_BFER_S 2
- #define WMI_TXBF_CONF_SU_TX_BFER_M 0x1
- #define WMI_TXBF_CONF_SU_TX_BFER (WMI_TXBF_CONF_SU_TX_BFER_M << WMI_TXBF_CONF_SU_TX_BFER_S)
- #define WMI_TXBF_CONF_SU_TX_BFER_GET(x) WMI_F_MS(x,WMI_TXBF_CONF_SU_TX_BFER)
- #define WMI_TXBF_CONF_SU_TX_BFER_SET(x,z) WMI_F_RMW(x,z,WMI_TXBF_CONF_SU_TX_BFER)
- #define WMI_TXBF_CONF_MU_TX_BFER_S 3
- #define WMI_TXBF_CONF_MU_TX_BFER_M 0x1
- #define WMI_TXBF_CONF_MU_TX_BFER (WMI_TXBF_CONF_MU_TX_BFER_M << WMI_TXBF_CONF_MU_TX_BFER_S)
- #define WMI_TXBF_CONF_MU_TX_BFER_GET(x) WMI_F_MS(x,WMI_TXBF_CONF_MU_TX_BFER)
- #define WMI_TXBF_CONF_MU_TX_BFER_SET(x,z) WMI_F_RMW(x,z,WMI_TXBF_CONF_MU_TX_BFER)
- #define WMI_TXBF_CONF_STS_CAP_S 4
- #define WMI_TXBF_CONF_STS_CAP_M 0x7
- #define WMI_TXBF_CONF_STS_CAP (WMI_TXBF_CONF_STS_CAP_M << WMI_TXBF_CONF_STS_CAP_S)
- #define WMI_TXBF_CONF_STS_CAP_GET(x) WMI_F_MS(x,WMI_TXBF_CONF_STS_CAP);
- #define WMI_TXBF_CONF_STS_CAP_SET(x,z) WMI_F_RMW(x,z,WMI_TXBF_CONF_STS_CAP)
- #define WMI_TXBF_CONF_IMPLICIT_BF_S 7
- #define WMI_TXBF_CONF_IMPLICIT_BF_M 0x1
- #define WMI_TXBF_CONF_IMPLICIT_BF (WMI_TXBF_CONF_IMPLICIT_BF_M << WMI_TXBF_CONF_IMPLICIT_BF_S)
- #define WMI_TXBF_CONF_IMPLICIT_BF_GET(x) WMI_F_MS(x,WMI_TXBF_CONF_IMPLICIT_BF)
- #define WMI_TXBF_CONF_IMPLICIT_BF_SET(x,z) WMI_F_RMW(x,z,WMI_TXBF_CONF_IMPLICIT_BF)
- #define WMI_TXBF_CONF_BF_SND_DIM_S 8
- #define WMI_TXBF_CONF_BF_SND_DIM_M 0x7
- #define WMI_TXBF_CONF_BF_SND_DIM (WMI_TXBF_CONF_BF_SND_DIM_M << WMI_TXBF_CONF_BF_SND_DIM_S)
- #define WMI_TXBF_CONF_BF_SND_DIM_GET(x) WMI_F_MS(x,WMI_TXBF_CONF_BF_SND_DIM)
- #define WMI_TXBF_CONF_BF_SND_DIM_SET(x,z) WMI_F_RMW(x,z,WMI_TXBF_CONF_BF_SND_DIM)
- /* commands for 11ax TXBF capabilities */
- #define WMI_TXBF_CONF_11AX_SU_TX_BFER_GET(x) WMI_GET_BITS((x,0,1)
- #define WMI_TXBF_CONF_11AX_SU_TX_BFER_SET(x,z) WMI_SET_BITS(x,0,1,z)
- #define WMI_TXBF_CONF_11AX_SU_TX_BFEE_GET(x) WMI_GET_BITS((x,1,1)
- #define WMI_TXBF_CONF_11AX_SU_TX_BFEE_SET(x,z) WMI_SET_BITS(x,1,1,z)
- #define WMI_TXBF_CONF_11AX_MU_TX_BFER_GET(x) WMI_GET_BITS((x,2,1)
- #define WMI_TXBF_CONF_11AX_MU_TX_BFER_SET(x,z) WMI_SET_BITS(x,2,1,z)
- #define WMI_TXBF_CONF_11AX_BFEE_NDP_STS_LT_EQ_80_GET(x) WMI_GET_BITS((x,3,3)
- #define WMI_TXBF_CONF_11AX_BFEE_NDP_STS_LT_EQ_80_SET(x,z) WMI_SET_BITS(x,3,3,z)
- #define WMI_TXBF_CONF_11AX_NSTS_LT_EQ_80_GET(x) WMI_GET_BITS((x,6,3)
- #define WMI_TXBF_CONF_11AX_NSTS_LT_EQ_80_SET(x,z) WMI_SET_BITS(x,6,3,z)
- #define WMI_TXBF_CONF_11AX_TX_BFEE_NDP_STS_GT_80_GET(x) WMI_GET_BITS((x,9,3)
- #define WMI_TXBF_CONF_11AX_TX_BFEE_NDP_STS_GT_80_SET(x,z) WMI_SET_BITS(x,9,3,z)
- #define WMI_TXBF_CONF_11AX_NSTS_GT_80_GET(x) WMI_GET_BITS((x,12,3)
- #define WMI_TXBF_CONF_11AX_NSTS_GT_80_SET(x,z) WMI_SET_BITS(x,12,3,z)
- #define WMI_TXBF_CONF_AX_BFER_SND_DIM_LT_EQ_80_SND_DIM_GET(x) WMI_GET_BITS((x,15,3)
- #define WMI_TXBF_CONF_AX_BFER_SND_DIM_LT_EQ_80_SND_DIM_SET(x,z) WMI_SET_BITS(x,15,3,z)
- #define WMI_TXBF_CONF_AX_BFER_SND_DIM_GT_80_SND_DIM_GET(x) WMI_GET_BITS((x,18,3)
- #define WMI_TXBF_CONF_AX_BFER_SND_DIM_GT_80_SND_DIM_SET(x,z) WMI_SET_BITS(x,18,3,z)
- #define WMI_TXBF_CONF_AX_SU_BFEE_NG16_FDBK_GET(x) WMI_GET_BITS((x,21,1)
- #define WMI_TXBF_CONF_AX_SU_BFEE_NG16_FDBK_SET(x,z) WMI_SET_BITS(x,21,1,z)
- #define WMI_TXBF_CONF_AX_MU_BFEE_NG16_FDBK_GET(x) WMI_GET_BITS((x,22,1)
- #define WMI_TXBF_CONF_AX_MU_BFEE_NG16_FDBK_SET(x,z) WMI_SET_BITS(x,22,1,z)
- #define WMI_TXBF_CONF_AX_SU_BFEE_CDBK_4_2_GET(x) WMI_GET_BITS((x,23,1)
- #define WMI_TXBF_CONF_AX_SU_BFEE_CDBK_4_2_SET(x,z) WMI_SET_BITS(x,23,1,z)
- #define WMI_TXBF_CONF_AX_MU_BFEE_CDBK_7_5_GET(x) WMI_GET_BITS((x,24,1)
- #define WMI_TXBF_CONF_AX_MU_BFEE_CDBK_7_5_SET(x,z) WMI_SET_BITS(x,24,1,z)
- #define WMI_TXBF_CONF_AX_FDBK_TRIG_GET(x) WMI_GET_BITS((x,25,1)
- #define WMI_TXBF_CONF_AX_FDBK_TRIG_SET(x,z) WMI_SET_BITS(x,25,1,z)
- /* TXBF capabilities */
- typedef struct {
- A_UINT32 txbf_cap;
- } wmi_vdev_txbf_cap;
- /* vdev rx filters (for mesh) */
- typedef enum {
- WMI_VDEV_RX_ALLOW_ALL_FRAMES = 0x0, /* Don't drop any frames - Default */
- WMI_VDEV_RX_FILTER_OUT_FROMDS = 0x1, /* Drop FromDS frames */
- WMI_VDEV_RX_FILTER_OUT_TODS = 0x2, /* Drop ToDS frames */
- WMI_VDEV_RX_FILTER_OUT_NODS = 0x4, /* Drop NODS frames */
- WMI_VDEV_RX_FILTER_OUT_RA = 0x8, /* Drop RA frames */
- WMI_VDEV_RX_FILTER_OUT_TA = 0x10, /* Drop TA frames */
- } wmi_vdev_param_filter;
- /* Length of ATIM Window in TU */
- #define WMI_VDEV_PARAM_ATIM_WINDOW_LENGTH WMI_VDEV_PARAM_ATIM_WINDOW
- enum wmi_pkt_type {
- WMI_PKT_TYPE_RAW = 0,
- WMI_PKT_TYPE_NATIVE_WIFI = 1,
- WMI_PKT_TYPE_ETHERNET = 2,
- };
- /*******************************************************************
- * wmi_vdev_txbf_en is DEPRECATED in favor of wmi_vdev_txbf_cap
- * Do not use it!
- *******************************************************************/
- typedef struct {
- A_UINT8 sutxbfee : 1,
- mutxbfee : 1,
- sutxbfer : 1,
- mutxbfer : 1,
- txb_sts_cap : 3,
- implicit_bf : 1;
- } wmi_vdev_txbf_en;
- /** Upto 8 bits are available for Roaming module to be sent along with
- WMI_VDEV_PARAM_ROAM_FW_OFFLOAD WMI_VDEV_PARAM **/
- /* Bit 0: Enable Roaming FW offload LFR1.5/LFR2.0 implementation */
- #define WMI_ROAM_FW_OFFLOAD_ENABLE_FLAG 0x1
- /* Bit 1: Enable Roaming module in FW to do scan based on Final BMISS */
- #define WMI_ROAM_BMISS_FINAL_SCAN_ENABLE_FLAG 0x2
- /* Bit 2:
- * To enable/disable EAPOL_4WAY_HANDSHAKE process while roaming.
- * param value = 0 --> Enable EAPOL 4way handshake
- * param value = 1 --> Skip EAPOL 4way handshake
- */
- #define WMI_VDEV_PARAM_SKIP_ROAM_EAPOL_4WAY_HANDSHAKE 0x4
- /* Bit 3:
- * Scan type when WMI_ROAM_BMISS_FINAL_SCAN_ENABLE_FLAG is set:
- * value = 0 --> Chanmap scan followed by one full scan if no candidate found.
- * value = 1 --> Chanmap scan only
- */
- #define WMI_ROAM_BMISS_FINAL_SCAN_TYPE_FLAG 0x8
- /* Bit 4:
- * To enable/disable feature: EAPOL offload to FW while SAE roaming.
- * param value = 0 --> Enable EAPOL offload to FW for SAE roaming
- * param value = 1 --> Disable EAPOL offload to FW for SAE roaming
- */
- #define WMI_VDEV_PARAM_SKIP_SAE_ROAM_4WAY_HANDSHAKE 0x10
- /** slot time long */
- #define WMI_VDEV_SLOT_TIME_LONG 0x1
- /** slot time short */
- #define WMI_VDEV_SLOT_TIME_SHORT 0x2
- /** preablbe long */
- #define WMI_VDEV_PREAMBLE_LONG 0x1
- /** preablbe short */
- #define WMI_VDEV_PREAMBLE_SHORT 0x2
- /** the definition of different START/RESTART Event response */
- typedef enum {
- /* Event response of START CMD */
- WMI_VDEV_START_RESP_EVENT = 0,
- /* Event response of RESTART CMD */
- WMI_VDEV_RESTART_RESP_EVENT,
- } WMI_START_EVENT_PARAM;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_start_response_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** requestor id that requested the VDEV start request */
- A_UINT32 requestor_id;
- /* Respose of Event type START/RESTART */
- WMI_START_EVENT_PARAM resp_type;
- /** status of the response */
- A_UINT32 status;
- /** Vdev chain mask */
- A_UINT32 chain_mask;
- /** Vdev mimo power save mode */
- A_UINT32 smps_mode;
- union {
- A_UINT32 mac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- };
- /** Configured Transmit Streams **/
- A_UINT32 cfgd_tx_streams;
- /** Configured Receive Streams **/
- A_UINT32 cfgd_rx_streams;
- /**
- * maximum allowed Tx power (in dBm) for this connection.
- * max_allowed_tx_power = 0 dBm means value is not specified.
- */
- A_INT32 max_allowed_tx_power;
- /** unique id to identify mac's TSF register */
- A_UINT32 mac_tsf_id;
- /** ignore mac_tsf_id unless mac_tsf_id_valid is set */
- A_UINT32 mac_tsf_id_valid;
- /** min_device_tx_pwr_valid = 0 means value is not specified. */
- A_UINT32 min_device_tx_pwr_valid;
- /** minimum allowed device Tx power (in dBm) for this connection. */
- A_INT32 min_device_tx_pwr;
- } wmi_vdev_start_response_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_stopped_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- } wmi_vdev_stopped_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_delete_resp_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- } wmi_vdev_delete_resp_event_fixed_param;
- /** common structure used for simple events (stopped, resume_req, standby response) */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag would be equivalent to actual event */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- } wmi_vdev_simple_event_fixed_param;
- /* Commands for getting and setting protected bit : bss max idle time */
- #define WMI_BSS_MAX_IDLE_TIME_PROTECTED_GET(idle_options) \
- WMI_GET_BITS(idle_options, 0, 1)
- #define WMI_BSS_MAX_IDLE_TIME_PROTECTED_SET(idle_options, val) \
- WMI_SET_BITS(idle_options, 0, 1, val)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_VDEV_BSS_MAX_IDLE_TIME_fixed_param */
- A_UINT32 vdev_id; /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 max_idle_period; /* time interval in seconds */
- /* idle_options:
- * bit 0 - Protected bit
- * Refer to WMI_BSS_MAX_IDLE_TIME_PROTECTED_GET,SET macros.
- * bit 31:1 - Reserved bits
- */
- A_UINT32 idle_options;
- } wmi_vdev_bss_max_idle_time_cmd_fixed_param;
- /** VDEV start response status codes */
- #define WMI_VDEV_START_RESPONSE_STATUS_SUCCESS 0x0 /** VDEV successfully started */
- #define WMI_VDEV_START_RESPONSE_INVALID_VDEVID 0x1 /** requested VDEV not found */
- #define WMI_VDEV_START_RESPONSE_NOT_SUPPORTED 0x2 /** unsupported VDEV combination */
- #define WMI_VDEV_START_RESPONSE_DFS_VIOLATION 0x3 /** DFS_VIOLATION since channel in the NOL is selected */
- #define WMI_VDEV_START_RESPONSE_INVALID_REGDOMAIN 0x4 /** Invalid regulatory domain in VDEV start */
- #define WMI_VDEV_START_RESPONSE_INVALID_BAND 0x5 /** Band unsupported by current hw mode in VDEV start */
- #define WMI_VDEV_START_RESPONSE_INVALID_PREFERRED_TX_RX_STREAMS 0x6 /** Invalid preferred tx/rx streams */
- #define WMI_VDEV_START_RESPONSE_INVALID_TX_VAP_CONFIG 0x7 /** Invalid tx_vap config in VDEV start */
- /** Beacon processing related command and event structures */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_bcn_tx_hdr */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** xmit rate */
- A_UINT32 tx_rate;
- /** xmit power */
- A_UINT32 txPower;
- /** beacon buffer length in bytes */
- A_UINT32 buf_len;
- /* This TLV is followed by array of bytes:
- * A_UINT8 bufp[]; <-- beacon frame buffer
- */
- } wmi_bcn_tx_hdr;
- /* Beacon filter */
- #define WMI_BCN_FILTER_ALL 0 /* Filter all beacons */
- #define WMI_BCN_FILTER_NONE 1 /* Pass all beacons */
- #define WMI_BCN_FILTER_RSSI 2 /* Pass Beacons RSSI >= RSSI threshold */
- #define WMI_BCN_FILTER_BSSID 3 /* Pass Beacons with matching BSSID */
- #define WMI_BCN_FILTER_SSID 4 /* Pass Beacons with matching SSID */
- typedef struct {
- /** Filter ID */
- A_UINT32 bcn_filter_id;
- /** Filter type - wmi_bcn_filter */
- A_UINT32 bcn_filter;
- /** Buffer len */
- A_UINT32 bcn_filter_len;
- /** Filter info (threshold, BSSID, RSSI) */
- A_UINT8 *bcn_filter_buf;
- } wmi_bcn_filter_rx_cmd;
- /** Capabilities and IEs to be passed to firmware */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_bcn_prb_info */
- /** Capabilities */
- A_UINT32 caps;
- /** ERP info */
- A_UINT32 erp;
- /** Advanced capabilities */
- /** HT capabilities */
- /** HT Info */
- /** ibss_dfs */
- /** wpa Info */
- /** rsn Info */
- /** rrm info */
- /** ath_ext */
- /** app IE */
- } wmi_bcn_prb_info;
- enum wmi_frame_inject_type {
- /* Transmit QoS null frame each period */
- WMI_FRAME_INJECT_TYPE_QOS_NULL,
- /* Transmit CTS to self each period */
- WMI_FRAME_INJECT_TYPE_CTS_TO_SELF,
- /* Transmit HOST provided buffer instead of forming frame in FW */
- WMI_FRAME_INJECT_TYPE_HOST_BUFFER,
- /* Max valid frame inject type for sanity checks*/
- WMI_FRAME_INJECT_TYPE_MAX,
- };
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_frame_inject_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** unique id identifying the VDEV, generated by the caller.
- * At any time only one vdev per mac can have this feature enabled.
- * Two consecutive enable commands on same mac will result in previous
- * command being disabled and new one being enabled.
- */
- A_UINT32 vdev_id;
- /** enable or disable injection */
- A_UINT32 enable;
- /** frame type to be used for frame injection. possible values are
- * defined in enum wmi_frame_inject_type.
- */
- A_UINT32 frame_type;
- /** periodicity of frame injection in milliseconds */
- A_UINT32 frame_inject_period;
- /** Destination address of frame */
- wmi_mac_addr frame_addr1;
- /** Frame control duration field to be set in CTS_TO_SELF.
- * Applicable to frame_type WMI_FRAME_INJECT_TYPE_CTS_TO_SELF only.
- */
- A_UINT32 fc_duration;
- /** variable buffer length. Can be used for frame template.
- * data is in TLV data[]
- */
- A_UINT32 buf_len;
- /** bw:
- * Bandwidth to use for the injected frame, of type wmi_channel_width.
- * This bw spec shall be ignored unless the bw_valid flag is set.
- */
- A_UINT32 bw;
- /*
- * The TLVs follows:
- * A_UINT8 data[]; <-- Variable length data
- */
- } wmi_frame_inject_cmd_fixed_param;
- #define WMI_BEACON_TMPLT_PROFILE_PERIOD_BITPOS (0)
- #define WMI_BEACON_TMPLT_PROFILE_PERIOD_MASK (0xff << WMI_BEACON_TMPLT_PROFILE_PERIOD_BITPOS)
- #define WMI_BEACON_TMPLT_SET_PROFILE_PERIOD(_ema_param, _val) \
- WMI_SET_BITS(_ema_param, WMI_BEACON_TMPLT_PROFILE_PERIOD_BITPOS, 8, _val)
- #define WMI_BEACON_TMPLT_GET_PROFILE_PERIOD(_ema_param) \
- WMI_GET_BITS(_ema_param, WMI_BEACON_TMPLT_PROFILE_PERIOD_BITPOS, 8)
- #define WMI_BEACON_TMPLT_TEMPLATE_INDEX_BITPOS (8)
- #define WMI_BEACON_TMPLT_TEMPLATE_INDEX_MASK (0xff << WMI_BEACON_TMPLT_TEMPLATE_INDEX_BITPOS)
- #define WMI_BEACON_TMPLT_SET_TEMPLATE_INDEX(_ema_param, _val) \
- WMI_SET_BITS(_ema_param, WMI_BEACON_TMPLT_TEMPLATE_INDEX_BITPOS, 8, _val)
- #define WMI_BEACON_TMPLT_GET_TEMPLATE_INDEX(_ema_param) \
- WMI_GET_BITS(_ema_param, WMI_BEACON_TMPLT_TEMPLATE_INDEX_BITPOS, 8)
- #define WMI_BEACON_TMPLT_FIRST_TEMPLATE_BITPOS (16)
- #define WMI_BEACON_TMPLT_FIRST_TEMPLATE_MASK (0xff << WMI_BEACON_TMPLT_FIRST_TEMPLATE_BITPOS)
- #define WMI_BEACON_TMPLT_SET_FIRST_TEMPLATE(_ema_param, _val) \
- WMI_SET_BITS(_ema_param, WMI_BEACON_TMPLT_FIRST_TEMPLATE_BITPOS, 8, _val)
- #define WMI_BEACON_TMPLT_GET_FIRST_TEMPLATE(_ema_param) \
- WMI_GET_BITS(_ema_param, WMI_BEACON_TMPLT_FIRST_TEMPLATE_BITPOS, 8)
- #define WMI_BEACON_TMPLT_LAST_TEMPLATE_BITPOS (24)
- #define WMI_BEACON_TMPLT_LAST_TEMPLATE_MASK (0xff << WMI_BEACON_TMPLT_LAST_TEMPLATE_BITPOS)
- #define WMI_BEACON_TMPLT_SET_LAST_TEMPLATE(_ema_param, _val) \
- WMI_SET_BITS(_ema_param, WMI_BEACON_TMPLT_LAST_TEMPLATE_BITPOS, 8, _val)
- #define WMI_BEACON_TMPLT_GET_LAST_TEMPLATE(_ema_param) \
- WMI_GET_BITS(_ema_param, WMI_BEACON_TMPLT_LAST_TEMPLATE_BITPOS, 8)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_bcn_tmpl_ml_info */
- /** hw_link_id:
- * Unique link id across SOCs, got as part of QMI handshake
- */
- A_UINT32 hw_link_id;
- /**
- * CU vdev map for the Critical update category-1
- * (Inclusion of CU IES)
- */
- A_UINT32 cu_vdev_map_cat1_lo; /* bits 31:0 */
- A_UINT32 cu_vdev_map_cat1_hi; /* bits 63:32 */
- /**
- * CU vdev map for the Critical update category-2
- * (modification of CU IES)
- */
- A_UINT32 cu_vdev_map_cat2_lo; /* bits 31:0 */
- A_UINT32 cu_vdev_map_cat2_hi; /* bits 63:32 */
- } wmi_bcn_tmpl_ml_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_bcn_tmpl_ml_params */
- A_UINT32 vdev_id; /* partner vdev_id */
- A_UINT32 hw_link_id; /* hw_link_id: Unique link id across SOCs, got as part of QMI handshake */
- A_UINT32 beacon_interval; /* beacon interval in TU from received beacon of the partner link */
- /** CSA IE switch count offset from the beginning of data[]
- * Value 0 indicates CSA IE is not present in beacon template.
- */
- A_UINT32 csa_switch_count_offset; /* units = bytes */
- /** Extended CSA IE switch count offset from the beginning of data[]
- * Value 0 indicates ECSA IE is not present in beacon template.
- */
- A_UINT32 ext_csa_switch_count_offset; /* units = bytes */
- /** Per-STA profile Subelement offset from the beginning of the template. */
- A_UINT32 per_sta_profile_offset;
- /** Quiet IE offset from the beginning of the template. */
- A_UINT32 quiet_ie_offset;
- /** Flag to check if other IEs are present in per-sta profile */
- A_UINT32 is_other_ie_present;
- } wmi_bcn_tmpl_ml_params;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_bcn_tmpl_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** TIM IE offset from the beginning of the template. */
- A_UINT32 tim_ie_offset;
- /** beacon buffer length. data is in TLV data[] */
- A_UINT32 buf_len;
- /** CSA IE switch count offset from the beginning of data[]
- * Value 0 indicates CSA IE is not present in beacon template.
- */
- A_UINT32 csa_switch_count_offset; /* units = bytes */
- /** Extended CSA IE switch count offset from the beginning of data[]
- * Value 0 indicates CSA IE is not present in beacon template.
- */
- A_UINT32 ext_csa_switch_count_offset; /* units = bytes */
- /** Specify when to send the CSA switch count status from FW to host.
- * See WMI_CSA_EVENT_BMAP* below for more information.
- * E.g. if CSA switch count event is needed to be sent when the switch count
- * is 0, 1, 4 and 5, set the bitmap to (0X80000033)
- */
- A_UINT32 csa_event_bitmap;
- /** offset (in octets/bytes) of MBSSID IE in beacon frame */
- A_UINT32 mbssid_ie_offset;
- /** offset (in octets/bytes) of ESP IE in beacon frame */
- A_UINT32 esp_ie_offset;
- /** CSC IE color switch count offset from the beginning of data[]
- * Value 0 indicates CSC IE is not present in beacon template.
- */
- A_UINT32 csc_switch_count_offset; /* units = bytes */
- /** Specify when to send the CSC switch count status from FW to host.
- * See WMI_CSC_EVENT_BMAP* below for more information.
- * E.g. if CSA switch count event is needed to be sent when the switch count
- * is 0, 1, 4 and 5, set the bitmap to (0X80000033)
- */
- A_UINT32 csc_event_bitmap;
- /** Specify offset for FW to overwrite MU EDCA parameters in the beacon.
- * This is done during FW tuning of EDCA parameters.
- * Based on number of HE and Legacy stations.
- * If mu_edca_ie_offset == 0, it is ignored.
- * Only non-zero values are considered.
- */
- A_UINT32 mu_edca_ie_offset;
- /** Specify features that need to be enabled/disabled for the beacon.
- *
- * Bit 0:
- * Beacon Protection feature enable/disable indication.
- * Refer to WMI_BEACON_PROTECTION_EN_SET/GET macros.
- *
- * More features can be added to this bitmap.
- */
- A_UINT32 feature_enable_bitmap;
- /**
- * @ema_params: Applicable only for EMA tx VAPs (VAPs having both flags
- * VDEV_FLAGS_EMA_MODE and VDEV_FLAGS_TRANSMIT_AP set) and should
- * remain 0 otherwise. For EMA vaps it carries below information
- * encoded in each byte:
- * Byte 0: (@ema_beacon_profile_periodicity) - beacon profile periodicity
- * (number of beacons) after which nontransmitted MBSS info repeats.
- * Assumes values [1, N] inclusive.
- * Refer to WMI_BEACON_TMPLT_[SET,GET]_PROFILE_PERIOD macros.
- * Byte 1: (@ema_beacon_tmpl_idx) - Specifies the position of beacon
- * templates within profile periodicity.
- * Assumes values [0, ema_beacon_profile_periodicity-1] inclusive.
- * Multiple templates having same @ema_beacon_max_tmpl_idx will
- * overwrite previous template.
- * Refer to WMI_BEACON_TMPLT_[SET,GET]_TEMPLATE_INDEX macros.
- * Byte 2: (@ema_first_tmpl) - Specifies whether it's a last template in
- * sequence of @ema_beacon_profile_periodicity templates
- * (end of new template update exchange).
- * If this template is the only template being updated,
- * @ema_first_tmpl and @ema_last_tmpl both shall be set to 1.
- * Refer to WMI_BEACON_TMPLT_[SET,GET]_FIRST_TEMPLATE macros.
- * Byte 3: (@ema_last_tmpl) - pecifies whether it's a last template in
- * sequence of @ema_beacon_profile_periodicity templates
- * (end of new template update exchange).
- * If this template is the only template being updated,
- * @ema_first_tmpl and @ema_last_tmpl both shall be set to 1.
- * Refer to WMI_BEACON_TMPLT_[SET,GET]_LAST_TEMPLATE macros.
- */
- A_UINT32 ema_params;
- /*
- * The TLVs follows:
- * wmi_bcn_prb_info bcn_prb_info; <-- beacon probe capabilities and IEs
- * A_UINT8 data[]; <-- Variable length data
- * wmi_bcn_tmpl_ml_params ml_bcn_param[]; <-- per-MLO-link beacon data
- * wmi_bcn_tmpl_ml_params will have multiple instances equal to
- * the number of links in an AP MLD
- */
- } wmi_bcn_tmpl_cmd_fixed_param;
- #define WMI_CSA_EVENT_BMAP_VALID_MASK 0X80000000 /* Follow bitmap for sending the CSA switch count event */
- #define WMI_CSA_EVENT_BMAP_SWITCH_COUNT_ZERO 0 /* Send only when the switch count becomes zero, added for backward compatibility
- Same can also be achieved by setting bitmap to 0X80000001 */
- #define WMI_CSA_EVENT_BMAP_ALL 0XFFFFFFFF /* Send CSA switch count event for every update to switch count */
- #define WMI_CSC_EVENT_BMAP_VALID_MASK 0X80000000 /* Follow bitmap for sending the CSC switch count event */
- #define WMI_CSC_EVENT_BMAP_SWITCH_COUNT_ZERO 0 /* Send only when the switch count becomes zero, added for backward compatibility
- Same can also be achieved by setting bitmap to 0X80000001 */
- #define WMI_CSC_EVENT_BMAP_ALL 0XFFFFFFFF /* Send CSC switch count event for every update to switch count */
- #define WMI_BEACON_PROTECTION_BIT_POS 0 /* Beacon Protection enable/disable indication */
- #define WMI_BEACON_PROTECTION_EN_SET(param, value) \
- WMI_SET_BITS(param, WMI_BEACON_PROTECTION_BIT_POS, 1, value)
- #define WMI_BEACON_PROTECTION_EN_GET(param) \
- WMI_GET_BITS(param, WMI_BEACON_PROTECTION_BIT_POS, 1)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_prb_resp_tmpl_ml_info */
- /** hw_link_id:
- * Unique link id across SOCs, got as part of QMI handshake
- */
- A_UINT32 hw_link_id;
- /**
- * CU vdev map for the Critical update category-1
- * (Inclusion of CU IES)
- */
- A_UINT32 cu_vdev_map_cat1_lo; /* bits 31:0 */
- A_UINT32 cu_vdev_map_cat1_hi; /* bits 63:32 */
- /**
- * CU vdev map for the Critical update category-2
- * (modification of CU IES)
- */
- A_UINT32 cu_vdev_map_cat2_lo; /* bits 31:0 */
- A_UINT32 cu_vdev_map_cat2_hi; /* bits 63:32 */
- } wmi_prb_resp_tmpl_ml_info;
- /** indicates P2P GO only case not replay probe req */
- #define WMI_PRB_TMPL_IGNORE_NONP2P_PRB_REQ 0x1
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_prb_tmpl_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** beacon buffer length. data is in TLV data[] */
- A_UINT32 buf_len;
- /** flags to control probe tmpl:
- * Bit 0: If set, FW should ignore non-P2P probe req
- * Bits 31-1: Reserved
- */
- A_UINT32 flags;
- /*
- * The TLVs follows:
- * wmi_bcn_prb_info bcn_prb_info; <-- beacon probe capabilities and IEs
- * A_UINT8 data[]; <-- Variable length data
- */
- } wmi_prb_tmpl_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_fd_tmpl_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** fd frame buffer length. data is in TLV data[] */
- A_UINT32 buf_len;
- /*
- * The TLVs follows:
- * A_UINT8 data[]; <-- Variable length data
- */
- } wmi_fd_tmpl_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_offload_bcn_tx_status_event_fixed_param */
- A_UINT32 tlv_header;
- /** unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** bcn tx status, values defined in enum WMI_FRAME_TX_STATUS */
- A_UINT32 tx_status;
- } wmi_offload_bcn_tx_status_event_fixed_param;
- enum wmi_sta_ps_mode {
- /** enable power save for the given STA VDEV */
- WMI_STA_PS_MODE_DISABLED = 0,
- /** disable power save for a given STA VDEV */
- WMI_STA_PS_MODE_ENABLED = 1,
- };
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sta_powersave_mode_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** Power save mode
- *
- * (see enum wmi_sta_ps_mode)
- */
- A_UINT32 sta_ps_mode;
- } wmi_sta_powersave_mode_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sta_tdcc_config_cmd_fixed_param */
- /** Set a max tx period: percentage of one beacon interval. range: 0 - 100 */
- A_UINT32 tx_cycle_percentage;
- /** Enable/disable TX Duty Cycle Control powersave */
- A_UINT32 enabled;
- } wmi_sta_tdcc_config_cmd_fixed_param;
- enum wmi_csa_offload_en {
- WMI_CSA_OFFLOAD_DISABLE = 0,
- WMI_CSA_OFFLOAD_ENABLE = 1,
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_csa_offload_enable_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 csa_offload_enable;
- } wmi_csa_offload_enable_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_csa_offload_chanswitch_cmd_fixed_param */
- A_UINT32 vdev_id;
- /*
- * The TLVs follows:
- * wmi_channel chan;
- */
- } wmi_csa_offload_chanswitch_cmd_fixed_param;
- /**
- * This parameter controls the policy for retrieving frames from AP while the
- * STA is in sleep state.
- *
- * Only takes affect if the sta_ps_mode is enabled
- */
- enum wmi_sta_ps_param_rx_wake_policy {
- /* Wake up when ever there is an RX activity on the VDEV. In this mode
- * the Power save SM(state machine) will come out of sleep by either
- * sending null frame (or) a data frame (with PS==0) in response to TIM
- * bit set in the received beacon frame from AP.
- */
- WMI_STA_PS_RX_WAKE_POLICY_WAKE = 0,
- /* Here the power save state machine will not wakeup in response to TIM
- * bit, instead it will send a PSPOLL (or) UASPD trigger based on UAPSD
- * configuration setup by WMISET_PS_SET_UAPSD WMI command. When all
- * access categories are delivery-enabled, the station will send a UAPSD
- * trigger frame, otherwise it will send a PS-Poll.
- */
- WMI_STA_PS_RX_WAKE_POLICY_POLL_UAPSD = 1,
- };
- /** Number of tx frames/beacon that cause the power save SM to wake up.
- *
- * Value 1 causes the SM to wake up for every TX. Value 0 has a special
- * meaning, It will cause the SM to never wake up. This is useful if you want
- * to keep the system to sleep all the time for some kind of test mode . host
- * can change this parameter any time. It will affect at the next tx frame.
- */
- enum wmi_sta_ps_param_tx_wake_threshold {
- WMI_STA_PS_TX_WAKE_THRESHOLD_NEVER = 0,
- WMI_STA_PS_TX_WAKE_THRESHOLD_ALWAYS = 1,
- /* Values greater than one indicate that many TX attempts per beacon
- * interval before the STA will wake up
- */
- };
- /**
- * The maximum number of PS-Poll frames the FW will send in response to
- * traffic advertised in TIM before waking up (by sending a null frame with PS
- * = 0). Value 0 has a special meaning: there is no maximum count and the FW
- * will send as many PS-Poll as are necessary to retrieve buffered BU. This
- * parameter is used when the RX wake policy is
- * WMI_STA_PS_RX_WAKE_POLICY_POLL_UAPSD and ignored when the RX wake
- * policy is WMI_STA_PS_RX_WAKE_POLICY_WAKE.
- */
- enum wmi_sta_ps_param_pspoll_count {
- WMI_STA_PS_PSPOLL_COUNT_NO_MAX = 0,
- /* Values greater than 0 indicate the maximum number of PS-Poll frames FW
- * will send before waking up.
- */
- };
- /*
- * This will include the delivery and trigger enabled state for every AC.
- * This is the negotiated state with AP. The host MLME needs to set this based
- * on AP capability and the state Set in the association request by the
- * station MLME.Lower 8 bits of the value specify the UAPSD configuration.
- */
- #define WMI_UAPSD_AC_TYPE_DELI 0
- #define WMI_UAPSD_AC_TYPE_TRIG 1
- #define WMI_UAPSD_AC_BIT_MASK(ac,type) \
- ((type == WMI_UAPSD_AC_TYPE_DELI) ? \
- (1 << (ac<<1)) : \
- (1 << ((ac<<1)+1)))
- enum wmi_sta_ps_param_uapsd {
- WMI_STA_PS_UAPSD_AC0_DELIVERY_EN = (1 << 0),
- WMI_STA_PS_UAPSD_AC0_TRIGGER_EN = (1 << 1),
- WMI_STA_PS_UAPSD_AC1_DELIVERY_EN = (1 << 2),
- WMI_STA_PS_UAPSD_AC1_TRIGGER_EN = (1 << 3),
- WMI_STA_PS_UAPSD_AC2_DELIVERY_EN = (1 << 4),
- WMI_STA_PS_UAPSD_AC2_TRIGGER_EN = (1 << 5),
- WMI_STA_PS_UAPSD_AC3_DELIVERY_EN = (1 << 6),
- WMI_STA_PS_UAPSD_AC3_TRIGGER_EN = (1 << 7),
- };
- enum wmi_sta_ps_scheme_cfg {
- WMI_STA_PS_OPM_CONSERVATIVE = 0,
- WMI_STA_PS_OPM_AGGRESSIVE = 1,
- WMI_STA_PS_USER_DEF = 2,
- };
- enum wmi_sta_powersave_param {
- /**
- * Controls how frames are retrievd from AP while STA is sleeping
- *
- * (see enum wmi_sta_ps_param_rx_wake_policy)
- */
- WMI_STA_PS_PARAM_RX_WAKE_POLICY = 0,
- /**
- * The STA will go active after this many TX
- *
- * (see enum wmi_sta_ps_param_tx_wake_threshold)
- */
- WMI_STA_PS_PARAM_TX_WAKE_THRESHOLD = 1,
- /**
- * Number of PS-Poll to send before STA wakes up
- *
- * (see enum wmi_sta_ps_param_pspoll_count)
- *
- */
- WMI_STA_PS_PARAM_PSPOLL_COUNT = 2,
- /**
- * TX/RX inactivity time in msec before going to sleep.
- *
- * The power save SM will monitor tx/rx activity on the VDEV, if no
- * activity for the specified msec of the parameter the Power save SM will
- * go to sleep.
- */
- WMI_STA_PS_PARAM_INACTIVITY_TIME = 3,
- /**
- * Set uapsd configuration.
- *
- * (see enum wmi_sta_ps_param_uapsd)
- */
- WMI_STA_PS_PARAM_UAPSD = 4,
- /**
- * Number of PS-Poll to send before STA wakes up in QPower Mode
- */
- WMI_STA_PS_PARAM_QPOWER_PSPOLL_COUNT = 5,
- /**
- * Enable OPM
- */
- WMI_STA_PS_ENABLE_QPOWER = 6,
- WMI_STA_PS_ENABLE_OPM = WMI_STA_PS_ENABLE_QPOWER, /* alias */
- /**
- * Number of TX frames before the entering the Active state
- */
- WMI_STA_PS_PARAM_QPOWER_MAX_TX_BEFORE_WAKE = 7,
- /**
- * QPower SPEC PSPOLL interval
- */
- WMI_STA_PS_PARAM_QPOWER_SPEC_PSPOLL_WAKE_INTERVAL = 8,
- /**
- * Max SPEC PSPOLL to be sent when the PSPOLL response has
- * no-data bit set
- */
- WMI_STA_PS_PARAM_QPOWER_SPEC_MAX_SPEC_NODATA_PSPOLL = 9,
- /**
- * Max value of ITO reset when there is no tx-rx
- * after AP has set the TIM bit
- */
- WMI_STA_PS_PARAM_MAX_RESET_ITO_COUNT_ON_TIM_NO_TXRX = 10,
- /**
- * Flag to enable/disable Powersave Optimization
- * in WOW
- */
- WMI_STA_PS_PARAM_ENABLE_PS_OPT_IN_WOW = 11,
- /**
- * Speculative interval in ms
- */
- WMI_STA_PS_PARAM_SPEC_WAKE_INTERVAL = 12,
- };
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sta_powersave_param_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** station power save parameter (see enum wmi_sta_powersave_param) */
- A_UINT32 param;
- A_UINT32 value;
- } wmi_sta_powersave_param_cmd_fixed_param;
- /** No MIMO power save */
- #define WMI_STA_MIMO_PS_MODE_DISABLE
- /** mimo powersave mode static*/
- #define WMI_STA_MIMO_PS_MODE_STATIC
- /** mimo powersave mode dynamic */
- #define WMI_STA_MIMO_PS_MODE_DYNAMI
- typedef struct {
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** mimo powersave mode as defined above */
- A_UINT32 mimo_pwrsave_mode;
- } wmi_sta_mimo_ps_mode_cmd;
- /** U-APSD configuration of peer station from (re)assoc request and TSPECs */
- enum wmi_ap_ps_param_uapsd {
- WMI_AP_PS_UAPSD_AC0_DELIVERY_EN = (1 << 0),
- WMI_AP_PS_UAPSD_AC0_TRIGGER_EN = (1 << 1),
- WMI_AP_PS_UAPSD_AC1_DELIVERY_EN = (1 << 2),
- WMI_AP_PS_UAPSD_AC1_TRIGGER_EN = (1 << 3),
- WMI_AP_PS_UAPSD_AC2_DELIVERY_EN = (1 << 4),
- WMI_AP_PS_UAPSD_AC2_TRIGGER_EN = (1 << 5),
- WMI_AP_PS_UAPSD_AC3_DELIVERY_EN = (1 << 6),
- WMI_AP_PS_UAPSD_AC3_TRIGGER_EN = (1 << 7),
- };
- /** U-APSD maximum service period of peer station */
- enum wmi_ap_ps_peer_param_max_sp {
- WMI_AP_PS_PEER_PARAM_MAX_SP_UNLIMITED = 0,
- WMI_AP_PS_PEER_PARAM_MAX_SP_2 = 1,
- WMI_AP_PS_PEER_PARAM_MAX_SP_4 = 2,
- WMI_AP_PS_PEER_PARAM_MAX_SP_6 = 3,
- /* keep last! */
- MAX_WMI_AP_PS_PEER_PARAM_MAX_SP,
- };
- /** param values for WMI_AP_PS_PEER_PARAM_SIFS_RESP_FRMTYPE */
- enum wmi_ap_ps_param_sifs_resp_frmtype {
- WMI_SIFS_RESP_PSPOLL = (1 << 0),
- WMI_SIFS_RESP_UAPSD = (1 << 1),
- WMI_SIFS_RESP_QBST_EXP = (1 << 2),
- WMI_SIFS_RESP_QBST_DATA = (1 << 3),
- WMI_SIFS_RESP_QBST_BAR = (1 << 4),
- };
- /**
- * AP power save parameter
- * Set a power save specific parameter for a peer station
- */
- enum wmi_ap_ps_peer_param {
- /** Set uapsd configuration for a given peer.
- *
- * This will include the delivery and trigger enabled state for every AC.
- * The host MLME needs to set this based on AP capability and stations
- * request Set in the association request received from the station.
- *
- * Lower 8 bits of the value specify the UAPSD configuration.
- *
- * (see enum wmi_ap_ps_param_uapsd)
- * The default value is 0.
- */
- WMI_AP_PS_PEER_PARAM_UAPSD = 0,
- /**
- * Set the service period for a UAPSD capable station
- *
- * The service period from wme ie in the (re)assoc request frame.
- *
- * (see enum wmi_ap_ps_peer_param_max_sp)
- */
- WMI_AP_PS_PEER_PARAM_MAX_SP = 1,
- /** Time in seconds for aging out buffered frames for STA in power save */
- WMI_AP_PS_PEER_PARAM_AGEOUT_TIME = 2,
- /**
- * Specify frame types that are considered SIFS RESP trigger frame
- * (see enum wmi_ap_ps_param_sifs_resp_frmtype)
- */
- WMI_AP_PS_PEER_PARAM_SIFS_RESP_FRMTYPE = 3,
- /** Specifies the trigger state of TID. Valid only for UAPSD frame type */
- WMI_AP_PS_PEER_PARAM_SIFS_RESP_UAPSD = 4,
- /** Specifies the WNM sleep state of a STA */
- WMI_AP_PS_PEER_PARAM_WNM_SLEEP = 5,
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ap_ps_peer_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** AP powersave param (see enum wmi_ap_ps_peer_param) */
- A_UINT32 param;
- /** AP powersave param value (see defines) */
- A_UINT32 value;
- } wmi_ap_ps_peer_cmd_fixed_param;
- /** Configure peer station 11v U-APSD coexistence
- *
- * Two parameters from uaspd coexistence ie info (as specified in 11v) are
- * sent down to FW along with this command.
- *
- * The semantics of these fields are described in the following text extracted
- * from 802.11v.
- *
- * --- If the non-AP STA specified a non-zero TSF 0 Offset value in the
- * U-APSD Coexistence element, the AP should not transmit frames to the
- * non-AP STA outside of the U-APSD Coexistence Service Period, which
- * begins when the AP receives the U-APSD trigger frame and ends after
- * the transmission period specified by the result of the following
- * calculation:
- *
- * End of transmission period = T + (Interval . ((T . TSF 0 Offset) mod Interval))
- *
- * Where T is the time the U-APSD trigger frame was received at the AP
- * Interval is the UAPSD Coexistence element Duration/Interval field
- * value (see 7.3.2.91) or upon the successful transmission of a frame
- * with EOSP bit set to 1, whichever is earlier.
- *
- *
- * --- If the non-AP STA specified a zero TSF 0 Offset value in the U-APSD
- * Coexistence element, the AP should not transmit frames to the non-AP
- * STA outside of the U-APSD Coexistence Service Period, which begins
- * when the AP receives a U-APSD trigger frame and ends after the
- * transmission period specified by the result of the following
- * calculation: End of transmission period = T + Duration
- */
- typedef struct {
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** Enable U-APSD coexistence support for this peer
- *
- * 0 -> disabled (default)
- * 1 -> enabled
- */
- A_UINT32 enabled;
- /** Duration/Interval as defined by 11v U-ASPD coexistence */
- A_UINT32 duration_interval;
- /** Upper 32 bits of 64-bit TSF offset */
- A_UINT32 tsf_offset_high;
- /** Lower 32 bits of 64-bit TSF offset */
- A_UINT32 tsf_offset_low;
- } wmi_ap_powersave_peer_uapsd_coex_cmd;
- typedef enum {
- WMI_AP_PS_EGAP_F_ENABLE_PHYERR_DETECTION = 0x0001,
- WMI_AP_PS_EGAP_F_ENABLE_PWRSAVE_BY_PS_STATE = 0x0002,
- WMI_AP_PS_EGAP_F_ENABLE_PWRSAVE_BY_INACTIVITY = 0x0004,
- WMI_AP_PS_EGAP_FLAG_MAX = 0x8000
- } wmi_ap_ps_egap_flag_type;
- #define WMI_EGAP_GET_REDUCED_2G_TX_CHM(txrx_chm) WMI_GET_BITS(txrx_chm, 0, 8)
- #define WMI_EGAP_GET_REDUCED_2G_RX_CHM(txrx_chm) WMI_GET_BITS(txrx_chm, 8, 8)
- #define WMI_EGAP_GET_REDUCED_5G_TX_CHM(txrx_chm) WMI_GET_BITS(txrx_chm, 16, 8)
- #define WMI_EGAP_GET_REDUCED_5G_RX_CHM(txrx_chm) WMI_GET_BITS(txrx_chm, 24, 8)
- #define WMI_EGAP_SET_REDUCED_2G_TX_CHM(txrx_chm, val) WMI_SET_BITS(txrx_chm, 0, 8, val)
- #define WMI_EGAP_SET_REDUCED_2G_RX_CHM(txrx_chm, val) WMI_SET_BITS(txrx_chm, 8, 8, val)
- #define WMI_EGAP_SET_REDUCED_5G_TX_CHM(txrx_chm, val) WMI_SET_BITS(txrx_chm, 16, 8, val)
- #define WMI_EGAP_SET_REDUCED_5G_RX_CHM(txrx_chm, val) WMI_SET_BITS(txrx_chm, 24, 8, val)
- /**
- * configure enhanced green ap parameters
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals wmi_ap_powersave_egap_param_cmd_fixed_param */
- /** Enable enhanced green ap
- * 0 -> disabled
- * 1 -> enabled
- */
- A_UINT32 enable;
- /** The param indicates a duration that all STAs connected
- * to S-AP have no traffic.
- */
- A_UINT32 inactivity_time; /* in unit of milliseconds */
- /** The param indicates a duration that all STAs connected
- * to S-AP have no traffic, after all STAs have entered powersave.
- */
- A_UINT32 wait_time; /* in unit of milliseconds */
- /** The param is used to turn on/off some functions within E-GAP.
- */
- A_UINT32 flags; /* wmi_ap_ps_egap_flag_type bitmap */
- /** Reduced_txrx_chainmask
- * [7:0] - 2G band tx chain mask
- * [15:8] - 2G band rx chain mask
- * [23:16] - 5G band tx chain mask
- * [31:24] - 5G band rx chain mask
- */
- A_UINT32 reduced_txrx_chainmask;
- } wmi_ap_ps_egap_param_cmd_fixed_param;
- typedef enum {
- WMI_AP_PS_EGAP_STATUS_IDLE = 1,
- WMI_AP_PS_EGAP_STATUS_PWRSAVE_OFF = 2,
- WMI_AP_PS_EGAP_STATUS_PWRSAVE_ON = 3,
- WMI_AP_PS_EGAP_STATUS_MAX = 15
- } wmi_ap_ps_egap_status_type;
- /**
- * send enhanced green ap status to host
- */
- typedef struct
- {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ap_ps_egap_info_chainmask_list */
- A_UINT32 tlv_header;
- union {
- A_UINT32 mac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- };
- /** The param indicates the current tx chainmask with the mac id. */
- A_UINT32 tx_chainmask;
- /** The param indicates the current rx chainmask with the mac id. */
- A_UINT32 rx_chainmask;
- } wmi_ap_ps_egap_info_chainmask_list;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals wmi_ap_powersave_egap_param_cmd_fixed_param */
- /** Enhanced green ap status (WMI_AP_PS_EGAP_STATUS). */
- A_UINT32 status;
- /* This TLV is followed by
- * wmi_ap_ps_egap_info_chainmask_list chainmask_list[];
- */
- } wmi_ap_ps_egap_info_event_fixed_param;
- /* 128 clients = 4 words */
- /* WMI_TIM_BITMAP_ARRAY_SIZE can't be modified without breaking the compatibility */
- #define WMI_TIM_BITMAP_ARRAY_SIZE 4
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tim_info */
- /** TIM bitmap len (in bytes) */
- A_UINT32 tim_len;
- /** TIM Partial Virtual Bitmap */
- A_UINT32 tim_mcast;
- A_UINT32 tim_bitmap[WMI_TIM_BITMAP_ARRAY_SIZE];
- A_UINT32 tim_changed;
- A_UINT32 tim_num_ps_pending;
- /** Use the vdev_id only if vdev_id_valid is set */
- A_UINT32 vdev_id_valid;
- /** unique id identifying the VDEV */
- A_UINT32 vdev_id;
- } wmi_tim_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tim_info */
- /** TIM Partial Virtual Bitmap */
- A_UINT32 tim_mcast;
- A_UINT32 tim_changed;
- A_UINT32 tim_num_ps_pending;
- /** Use the vdev_id only if vdev_id_valid is set */
- A_UINT32 vdev_id_valid;
- /** unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** TIM bitmap len (in bytes) */
- A_UINT32 tim_len;
- /* followed by WMITLV_TAG_ARRAY_BYTE holding the TIM bitmap */
- } wmi_tim_info_v2;
- typedef struct {
- /** Flag to enable quiet period IE support */
- A_UINT32 is_enabled;
- /** Quiet start */
- A_UINT32 tbttcount;
- /** Beacon intervals between quiets*/
- A_UINT32 period;
- /** TUs of each quiet*/
- A_UINT32 duration;
- /** TUs of from TBTT of quiet start*/
- A_UINT32 offset;
- } wmi_quiet_info;
- /* WMI_P2P_MAX_NOA_DESCRIPTORS can't be modified without breaking the compatibility */
- #define WMI_P2P_MAX_NOA_DESCRIPTORS 4 /* Maximum number of NOA Descriptors supported */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_p2p_noa_info */
- /** Bit 0: Flag to indicate an update in NOA schedule
- * Bits 7-1: Reserved
- * Bits 15-8: Index (identifies the instance of NOA sub element)
- * Bit 16: Opp PS state of the AP
- * Bits 23-17: Ctwindow in TUs
- * Bits 31-24: Number of NOA descriptors
- */
- A_UINT32 noa_attributes;
- wmi_p2p_noa_descriptor noa_descriptors[WMI_P2P_MAX_NOA_DESCRIPTORS];
- /** Use the vdev_id only if vdev_id_valid is set */
- A_UINT32 vdev_id_valid;
- /** unique id identifying the VDEV */
- A_UINT32 vdev_id;
- } wmi_p2p_noa_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_quiet_offload_info */
- A_UINT32 vdev_id; /* unique id identifying the VDEV */
- A_UINT8 tbttcount; /* quiet start */
- A_UINT8 period; /* beacon intervals between quiets */
- A_UINT16 duration; /* TUs of each quiet */
- A_UINT16 offset; /* TUs of from TBTT of quiet start */
- } wmi_quiet_offload_info;
- #define WMI_UNIFIED_NOA_ATTR_MODIFIED 0x1
- #define WMI_UNIFIED_NOA_ATTR_MODIFIED_S 0
- #define WMI_UNIFIED_NOA_ATTR_IS_MODIFIED(hdr) \
- WMI_F_MS((hdr)->noa_attributes, WMI_UNIFIED_NOA_ATTR_MODIFIED)
- #define WMI_UNIFIED_NOA_ATTR_MODIFIED_SET(hdr) \
- WMI_F_RMW((hdr)->noa_attributes, 0x1, \
- WMI_UNIFIED_NOA_ATTR_MODIFIED);
- #define WMI_UNIFIED_NOA_ATTR_INDEX 0xff00
- #define WMI_UNIFIED_NOA_ATTR_INDEX_S 8
- #define WMI_UNIFIED_NOA_ATTR_INDEX_GET(hdr) \
- WMI_F_MS((hdr)->noa_attributes, WMI_UNIFIED_NOA_ATTR_INDEX)
- #define WMI_UNIFIED_NOA_ATTR_INDEX_SET(hdr, v) \
- WMI_F_RMW((hdr)->noa_attributes, (v) & 0xff, \
- WMI_UNIFIED_NOA_ATTR_INDEX);
- #define WMI_UNIFIED_NOA_ATTR_OPP_PS 0x10000
- #define WMI_UNIFIED_NOA_ATTR_OPP_PS_S 16
- #define WMI_UNIFIED_NOA_ATTR_OPP_PS_GET(hdr) \
- WMI_F_MS((hdr)->noa_attributes, WMI_UNIFIED_NOA_ATTR_OPP_PS)
- #define WMI_UNIFIED_NOA_ATTR_OPP_PS_SET(hdr) \
- WMI_F_RMW((hdr)->noa_attributes, 0x1, \
- WMI_UNIFIED_NOA_ATTR_OPP_PS);
- #define WMI_UNIFIED_NOA_ATTR_CTWIN 0xfe0000
- #define WMI_UNIFIED_NOA_ATTR_CTWIN_S 17
- #define WMI_UNIFIED_NOA_ATTR_CTWIN_GET(hdr) \
- WMI_F_MS((hdr)->noa_attributes, WMI_UNIFIED_NOA_ATTR_CTWIN)
- #define WMI_UNIFIED_NOA_ATTR_CTWIN_SET(hdr, v) \
- WMI_F_RMW((hdr)->noa_attributes, (v) & 0x7f, \
- WMI_UNIFIED_NOA_ATTR_CTWIN);
- #define WMI_UNIFIED_NOA_ATTR_NUM_DESC 0xff000000
- #define WMI_UNIFIED_NOA_ATTR_NUM_DESC_S 24
- #define WMI_UNIFIED_NOA_ATTR_NUM_DESC_GET(hdr) \
- WMI_F_MS((hdr)->noa_attributes, WMI_UNIFIED_NOA_ATTR_NUM_DESC)
- #define WMI_UNIFIED_NOA_ATTR_NUM_DESC_SET(hdr, v) \
- WMI_F_RMW((hdr)->noa_attributes, (v) & 0xff, \
- WMI_UNIFIED_NOA_ATTR_NUM_DESC);
- typedef struct {
- /** TIM info */
- wmi_tim_info tim_info;
- /** P2P NOA info */
- wmi_p2p_noa_info p2p_noa_info;
- /* TBD: More info elements to be added later */
- } wmi_bcn_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_host_swba_event_fixed_param */
- /** bitmap identifying the VDEVs, generated by the caller */
- A_UINT32 vdev_map;
- /** how many vdev's info is included in this message
- * If this field is zero, then the number of vdevs is specified by
- * the number of bits set in the vdev_map bitmap.
- */
- A_UINT32 num_vdevs;
- /* This TLV is followed by tim_info and p2p_noa_info for each vdev:
- * wmi_tim_info tim_info[];
- * wmi_p2p_noa_info p2p_noa_info[];
- * wmi_quiet_offload_info quiet_offload_info[0/1];
- *
- */
- } wmi_host_swba_event_fixed_param;
- #define WMI_MAX_AP_VDEV 16
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_host_swfda_event_fixed_param */
- /** vdev_id identifying the VDEV for which FILS should be generated */
- A_UINT32 vdev_id;
- /** time (in TU) at which current FILS Discovery frame is scheduled for Tx */
- A_UINT32 fils_tt;
- /** next TBTT time (in TU) for this vdev */
- A_UINT32 tbtt;
- } wmi_host_swfda_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tbtt_offset_event_fixed_param */
- /** bimtap of VDEVs that has tbtt offset updated */
- A_UINT32 vdev_map;
- /* The TLVs for tbttoffset_list, tbtt_qtime_low_us_list, and
- * tbtt_qtime_high_us_list will follow this TLV.
- * - tbtt offset list in the order of the LSb to MSb in the vdev_map bitmap
- * A_UINT32 tbttoffset_list[WMI_MAX_AP_VDEV];
- * - tbtt qtime_low_us list(Lower 32 bit of qtime us) in the order of the
- * LSb to MSb in the vdev_map bitmap
- * A_UINT32 tbtt_qtime_low_us_list[WMI_MAX_AP_VDEV];
- * - tbtt qtime_high_us list(Higher 32 bit of qtime us) in the order of the
- * LSb to MSb in the vdev_map bitmap
- * A_UINT32 tbtt_qtime_high_us_list[WMI_MAX_AP_VDEV];
- */
- } wmi_tbtt_offset_event_fixed_param;
- #define WMI_TBTT_OFFSET_INVALID 0xffffffff /* tbttoffset is not updated by FW */
- typedef struct {
- A_UINT32 tlv_header;/* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tbtt_offset_info */
- /** unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** tbttoffset in TUs */
- A_UINT32 tbttoffset;
- /** absolute tbtt time in qtime us */
- A_UINT32 tbtt_qtime_low_us; /* bits 31:0 of qtime */
- A_UINT32 tbtt_qtime_high_us; /* bits 63:32 of qtime */
- } wmi_tbtt_offset_info;
- /** Use this event if number of vdevs > 32 */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tbtt_offset_ext_event_fixed_param */
- A_UINT32 num_vdevs;
- /*
- * The TLVs for tbttoffset will follow this TLV.
- * Of size num_vdevs * wmi_tbtt_offset_info
- */
- } wmi_tbtt_offset_ext_event_fixed_param;
- /* Peer Specific commands and events */
- typedef struct {
- A_UINT32 percentage; /* in unit of 12.5% */
- A_UINT32 min_delta; /* in unit of Mbps */
- } rate_delta_t;
- #define PEER_RATE_REPORT_COND_FLAG_DELTA 0x01
- #define PEER_RATE_REPORT_COND_FLAG_THRESHOLD 0x02
- #define MAX_NUM_OF_RATE_THRESH 4
- typedef struct {
- A_UINT32 val_cond_flags; /* PEER_RATE_REPORT_COND_FLAG_DELTA, PEER_RATE_REPORT_COND_FLAG_THRESHOLD
- Any of these two conditions or both of them can be set. */
- rate_delta_t rate_delta;
- A_UINT32 rate_threshold[MAX_NUM_OF_RATE_THRESH]; /* In unit of Mbps. There are at most 4 thresholds.
- If the threshold count is less than 4, set zero to
- the one following the last threshold */
- } report_cond_per_phy_t;
- enum peer_rate_report_cond_phy_type {
- PEER_RATE_REPORT_COND_11B = 0,
- PEER_RATE_REPORT_COND_11A_G,
- PEER_RATE_REPORT_COND_11N,
- PEER_RATE_REPORT_COND_11AC,
- PEER_RATE_REPORT_COND_MAX_NUM
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_rate_report_condition_fixed_param */
- A_UINT32 enable_rate_report; /* 1= enable, 0=disable */
- A_UINT32 report_backoff_time; /* in unit of msecond */
- A_UINT32 report_timer_period; /* in unit of msecond */
- /* In the following field, the array index means the phy type,
- * please see enum peer_rate_report_cond_phy_type for detail */
- report_cond_per_phy_t cond_per_phy[PEER_RATE_REPORT_COND_MAX_NUM];
- } wmi_peer_set_rate_report_condition_fixed_param;
- /* Peer Type:
- * NB: This can be left DEFAULT for the normal case, and f/w will determine BSS type based
- * on address and vdev opmode. This is largely here to allow host to indicate that
- * peer is explicitly a TDLS peer
- */
- enum wmi_peer_type {
- WMI_PEER_TYPE_DEFAULT = 0, /* Generic/Non-BSS/Self Peer */
- WMI_PEER_TYPE_BSS = 1, /* Peer is BSS Peer entry */
- WMI_PEER_TYPE_TDLS = 2, /* Peer is a TDLS Peer */
- WMI_PEER_TYPE_OCB = 3, /* Peer is a OCB Peer */
- WMI_PEER_TYPE_NAN_DATA = 4, /* Peer is NAN DATA */
- WMI_PEER_TYPE_TRANS_BSS = 5, /* For creating BSS peer when connecting with non-transmit AP */
- WMI_PEER_TYPE_PASN = 6, /* Peer is used for Pre-Association Security Negotiation */
- WMI_PEER_TYPE_BRIDGE = 7, /* For creating Dummy Peer in case of 4 Link MLO */
- WMI_PEER_TYPE_HOST_MAX = 127, /* Host <-> Target Peer type is assigned up to 127 */
- /* Reserved from 128 - 255 for target internal use.*/
- WMI_PEER_TYPE_ROAMOFFLOAD_TEMP = 128, /* Temporarily created during offload roam */
- };
- /* this TLV structure used for providing mlo parameters on peer create */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len */
- wmi_mlo_flags mlo_flags; /* only mlo enable flag need by STA mode peer create */
- } wmi_peer_create_mlo_params;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_create_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** peer type: see enum values above */
- A_UINT32 peer_type;
- /* The TLVs follows this structure:
- * wmi_peer_create_mlo_params mlo_params[]; <-- MLO flags on peer_create
- * Optional TLV, only present for MLO peers.
- * If the peer is non-MLO, the array length should be 0.
- * Only mlo_enable flag required by MCC to decide MAC address to be used.
- */
- } wmi_peer_create_cmd_fixed_param;
- /* this TLV structure is used for providing MLO parameters on peer delete */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len */
- A_UINT32 mlo_hw_link_id_bitmap; /* Hardware link id of the link which has crashed or was not created in the first place */
- wmi_mlo_flags mlo_flags; /* to indicate whether peer delete is due to link switch */
- } wmi_peer_delete_mlo_params;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_delete_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /* The TLVs follows this structure:
- * wmi_peer_delete_mlo_params mlo_params[]; <-- MLO flags on peer_delete
- * Optional TLV, only present for MLO peers.
- * If the peer is non-MLO, the array length should be 0.
- * Used for Link peer deleted.
- */
- } wmi_peer_delete_cmd_fixed_param;
- #define WMI_VDEV_ALL_PEER_MAX_BITMAP_WORD32 ((WMI_PEER_TYPE_HOST_MAX+31) / 32)
- #define WMI_VDEV_DELETE_ALL_PEER_BITMAP_SET(param, peer_type) \
- WMI_SET_BITS(param[peer_type / 32], (peer_type % 32), 1, 1)
- #define WMI_VDEV_DELETE_ALL_PEER_BITMAP_GET(param, peer_type) \
- WMI_GET_BITS(param[peer_type / 32], (peer_type % 32), 1)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_delete_all_peer_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /**
- * Host can request for deletion of peers specific to wmi_peer_type
- * through below bitmap.
- * Macro's WMI_VDEV_DELETE_ALL_PEER_BITMAP_SET &
- * WMI_VDEV_DELETE_ALL_PEER_BITMAP_GET are used for accessing purpose.
- * And if bitmap array is filled with zeros, firmware needs to delete
- * all peers.
- */
- A_UINT32 peer_type_bitmap[WMI_VDEV_ALL_PEER_MAX_BITMAP_WORD32];
- } wmi_vdev_delete_all_peer_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_unmap_response_cmd_fixed_param */
- A_UINT32 tlv_header;
- /*
- * Following this struct is the TLV:
- * A_UINT32 peer_ids[]; <-- variable-length array of peer_ids
- * that have been unmapped by the host
- */
- } wmi_peer_unmap_response_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_set_rx_blocksize_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /**
- * maximum block ack window size to use during a rx block ack negotiation,
- * i.e. the maximum number of MPDUs per A-MPDU that will be received
- */
- A_UINT32 rx_block_ack_win_limit;
- } wmi_peer_set_rx_blocksize_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_flush_tids_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** tid bitmap identifying the tids to flush */
- A_UINT32 peer_tid_bitmap;
- } wmi_peer_flush_tids_cmd_fixed_param;
- typedef struct {
- /** rate mode . 0: disable fixed rate (auto rate)
- * 1: legacy (non 11n) rate specified as ieee rate 2*Mbps
- * 2: ht20 11n rate specified as mcs index
- * 3: ht40 11n rate specified as mcs index
- */
- A_UINT32 rate_mode;
- /** 4 rate values for 4 rate series. series 0 is stored in byte 0 (LSB)
- * and series 3 is stored at byte 3 (MSB) */
- A_UINT32 rate_series;
- /** 4 retry counts for 4 rate series. retry count for rate 0 is stored in byte 0 (LSB)
- * and retry count for rate 3 is stored at byte 3 (MSB) */
- A_UINT32 rate_retries;
- } wmi_fixed_rate;
- typedef struct {
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** fixed rate */
- wmi_fixed_rate peer_fixed_rate;
- } wmi_peer_fixed_rate_cmd;
- #define WMI_MGMT_TID 17
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_addba_clear_resp_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- } wmi_addba_clear_resp_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_addba_send_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** Tid number */
- A_UINT32 tid;
- /** Buffer/Window size*/
- A_UINT32 buffersize;
- } wmi_addba_send_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_delba_send_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** Tid number */
- A_UINT32 tid;
- /** Is Initiator */
- A_UINT32 initiator;
- /** Reason code */
- A_UINT32 reasoncode;
- } wmi_delba_send_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_addba_setresponse_cmd_fixed_param */
- /** unique id identifying the vdev, generated by the caller */
- A_UINT32 vdev_id;
- /** peer mac address */
- wmi_mac_addr peer_macaddr;
- /** Tid number */
- A_UINT32 tid;
- /** status code */
- A_UINT32 statuscode;
- } wmi_addba_setresponse_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_send_singleamsdu_cmd_fixed_param */
- /** unique id identifying the vdev, generated by the caller */
- A_UINT32 vdev_id;
- /** peer mac address */
- wmi_mac_addr peer_macaddr;
- /** Tid number */
- A_UINT32 tid;
- } wmi_send_singleamsdu_cmd_fixed_param;
- /* Type of Station DTIM Power Save method */
- enum {
- /* For NORMAL DTIM, the parameter is the number of beacon intervals and
- * also the same value as the listen interval. For this method, the
- * station will wake up based on the listen interval. If this
- * listen interval is not equal to DTIM, then the station may
- * miss certain DTIM beacons. If this value is 1, then the
- * station will wake up for every beacon.
- */
- WMI_STA_DTIM_PS_NORMAL_DTIM = 0x01,
- /* For MODULATED_DTIM, parameter is a multiple of DTIM beacons to skip.
- * When this value is 1, then the station will wake at every DTIM beacon.
- * If this value is >1, then the station will skip certain DTIM beacons.
- * This value is the multiple of DTIM intervals that the station will
- * wake up to receive the DTIM beacons.
- */
- WMI_STA_DTIM_PS_MODULATED_DTIM = 0x02,
- };
- /* Parameter structure for the WMI_STA_DTIM_PS_METHOD_CMDID */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sta_dtim_ps_method_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** Station DTIM Power Save method as defined above */
- A_UINT32 dtim_pwrsave_method;
- /** DTIM PS value. Contents depends on the method */
- A_UINT32 value;
- /** Modulated DTIM value */
- A_UINT32 MaxLIModulatedDTIM;
- } wmi_sta_dtim_ps_method_cmd_fixed_param;
- /*
- * For Station UAPSD Auto Trigger feature, the Firmware monitors the
- * uAPSD uplink and downlink traffic for each uAPSD enabled WMM ACs.
- * If there is no uplink/download for the specified service interval (field service_interval),
- * firmware will auto generate a QOS-NULL trigger for that WMM-AP with the TID value
- * specified in the UP (field user_priority).
- * Firmware also monitors the responses for these QOS-NULL triggers.
- * If the peer does not have any delivery frames, it will respond with
- * QOS-NULL (EOSP=1). This feature of only using service interval is assumed to be mandatory for all
- * firmware implementation. For this basic implementation, the suspend_interval and delay_interval
- * are unused and should be set to 0.
- * When service_interval is 0, then the firmware will not send any trigger frames. This is for
- * certain host-based implementations that don't want this firmware offload.
- * Note that the per-AC intervals are required for some usage scenarios. This is why the intervals
- * are given in the array of ac_param[]. For example, Voice service interval may defaults to 20 ms
- * and rest of the AC default to 300 ms.
- *
- * The service bit, WMI_STA_UAPSD_VAR_AUTO_TRIG, will indicate that the more advanced feature
- * of variable auto trigger is supported. The suspend_interval and delay_interval is used in
- * the more advanced monitoring method.
- * If the PEER does not have any delivery enabled data frames (non QOS-NULL) for the
- * suspend interval (field suspend_interval), firmware will change its auto trigger interval
- * to delay interval (field delay_interval). This way, when there is no traffic, the station
- * will save more power by waking up less and sending less trigger frames.
- * The (service_interval < suspend_interval) and (service_interval < delay_interval).
- * If this variable auto trigger is not required, then the suspend_interval and delay_interval
- * should be 0.
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sta_uapsd_auto_trig_param */
- /** WMM Access category from 0 to 3 */
- A_UINT32 wmm_ac;
- /** User priority to use in trigger frames. It is the TID
- * value. This field needs to be specified and may not be
- * equivalent to AC since some implementation may use the TSPEC
- * to enable UAPSD and negotiate a particular user priority. */
- A_UINT32 user_priority;
- /** service interval in ms */
- A_UINT32 service_interval;
- /** Suspend interval in ms */
- A_UINT32 suspend_interval;
- /** delay interval in ms */
- A_UINT32 delay_interval;
- } wmi_sta_uapsd_auto_trig_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sta_uapsd_auto_trig_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer mac address */
- wmi_mac_addr peer_macaddr;
- /** Number of AC to specify */
- A_UINT32 num_ac;
- /*
- * Following this struct is the TLV:
- * wmi_sta_uapsd_auto_trig_param ac_param[]; <-- Variable number of AC parameters (defined by field num_ac)
- */
- } wmi_sta_uapsd_auto_trig_cmd_fixed_param;
- /** mimo powersave state */
- #define WMI_PEER_MIMO_PS_STATE 0x1
- /** enable/disable AMPDU . initial value (enabled) */
- #define WMI_PEER_AMPDU 0x2
- /** authorize/unauthorize peer. initial value is unauthorized (0) */
- #define WMI_PEER_AUTHORIZE 0x3
- /** peer channel bandwidth */
- #define WMI_PEER_CHWIDTH 0x4
- /** peer NSS */
- #define WMI_PEER_NSS 0x5
- /** USE 4 ADDR */
- #define WMI_PEER_USE_4ADDR 0x6
- /* set group membership status */
- #define WMI_PEER_MEMBERSHIP 0x7
- #define WMI_PEER_USERPOS 0x8
- /*
- * A critical high-level protocol is being used with this peer. Target
- * should take appropriate measures (if possible) to ensure more
- * reliable link with minimal latency. This *may* include modifying the
- * station power save policy, enabling more RX chains, increased
- * priority of channel scheduling, etc.
- *
- * NOTE: This parameter should only be considered a hint as specific
- * behavior will depend on many factors including current network load
- * and vdev/peer configuration.
- *
- * For STA VDEV this peer corresponds to the AP's BSS peer.
- * For AP VDEV this peer corresponds to the remote peer STA.
- */
- #define WMI_PEER_CRIT_PROTO_HINT_ENABLED 0x9
- /* set Tx failure count threshold for the peer - Currently unused */
- #define WMI_PEER_TX_FAIL_CNT_THR 0xA
- /* Enable H/W retry and Enable H/W Send CTS2S before Data */
- #define WMI_PEER_SET_HW_RETRY_CTS2S 0xB
- /* Set peer advertised IBSS atim window length */
- #define WMI_PEER_IBSS_ATIM_WINDOW_LENGTH 0xC
- /** peer phy mode */
- #define WMI_PEER_PHYMODE 0xD
- /** Use FIXED Pwr */
- #define WMI_PEER_USE_FIXED_PWR 0xE
- /** Set peer fixed rate
- * The top nibble is used to select which format to use for encoding
- * the rate specification: 0xVXXXXXXX
- * If V == 0b0000: format is same as before: 0x000000RR
- * If V == 0b0001: format is: 0x1000RRRR.
- * This will be output of WMI_ASSEMBLE_RATECODE_V1
- * The host shall use the new V1 format (and set V = 0x1) if the target
- * indicates 802.11ax support via the WMI_SERVICE_11AX flag, or if the
- * system is configured with Nss > 4 (either at compile time within the
- * host driver, or through WMI_SERVICE_READY PHY capabilities provided
- * by the target).
- */
- #define WMI_PEER_PARAM_FIXED_RATE 0xF
- /** Allowlist peer TIDs */
- #define WMI_PEER_SET_MU_ALLOWLIST 0x10
- /* retain definition of deprecated prior name, for backwards compatibility */
- #define WMI_PEER_SET_MU_WHITELIST WMI_PEER_SET_MU_ALLOWLIST
- /** Set peer max tx rate (MCS) in adaptive rate ctrl */
- #define WMI_PEER_SET_MAX_TX_RATE 0x11
- /** Set peer minimal tx rate (MCS) in adaptive rate ctrl */
- #define WMI_PEER_SET_MIN_TX_RATE 0x12
- /**
- * default ring routing for peer data packets,
- * param_value = bit 0 for hash based routing enabled or not
- * (value 1 is enabled, value 0 is disabled)
- * bits 1:5 are for ring 32 (i.e. ring id value
- * selected from 0 to 31 values)
- * bits 6:7 are for LMAC/peer based routing.
- * bit 8 for peer based ring selection enabled or not
- * (value 1 is enabled, value 0 is disabled
- * bits 9-15 are valid when bit 8 is set to 1)
- * bit 9 is for ring selection enabled for filter-pass
- * unicast or not (value 1 is enabled, value 0 is disabled)
- * bit 10 is for ring selection enabled for filter-pass
- * mcast or not (value 1 is enabled, value 0 is disabled)
- * bit 11 is for ring selection enabled for filter-pass
- * BAR or not (value 1 is enabled, value 0 is disabled)
- * bit 12-14 is for source ring selection value
- * (value 0 for wbm2rxdma buf ring,
- * value 1 for fw2rxdma buf ring,
- * value 2 for sw2rxdma buf ring,
- * value 3 for no buf ring,
- * value 4 for sw2rxdma_exception buf ring,
- * value 5 for fw2rxdma buf ring)
- * bit 15-17 is for destination ring selection value
- * (value 0 for wbm release ring,
- * value 1 for rxdma2fw ring,
- * value 2 for rxdma2sw ring,
- * value 3 for rxdma2reo ring,
- * value 4 for rxdma2fw_pmac1_ring,
- * value 5 for rxdma2reo_remote0_ring,
- * value 6 for rxdma2reo_remote1_ring)
- */
- #define WMI_PEER_HASH_BASED_ROUTING_GET(value32) WMI_GET_BITS(value32, 0x0, 1)
- #define WMI_PEER_ROUTING_RING_ID_GET(value32) WMI_GET_BITS(value32, 0x1, 5)
- #define WMI_PEER_LMAC_BASED_ROUTING_GET(value32) WMI_GET_BITS(value32, 0x6, 2)
- #define WMI_PEER_BASED_RING_SELECTION_GET(value32) WMI_GET_BITS(value32, 0x8, 1)
- #define WMI_PEER_FILTER_PASS_UNICAST_GET(value32) WMI_GET_BITS(value32, 0x9, 1)
- #define WMI_PEER_FILTER_PASS_MCAST_GET(value32) WMI_GET_BITS(value32, 0xA, 1)
- #define WMI_PEER_FILTER_PASS_BAR_GET(value32) WMI_GET_BITS(value32, 0xB, 1)
- #define WMI_PEER_FILTER_PASS_SRC_RING_VAL_GET(value32) WMI_GET_BITS(value32, 0xC, 3)
- #define WMI_PEER_FILTER_PASS_DEST_RING_VAL_GET(value32) WMI_GET_BITS(value32, 0xF, 3)
- #define WMI_PEER_SET_DEFAULT_ROUTING 0x13
- /* peer NSS for VHT160 - Extended NSS support */
- #define WMI_PEER_NSS_VHT160 0x14
- /* peer NSS for VHT160 - Extended NSS support */
- #define WMI_PEER_NSS_VHT80_80 0x15
- /* Peer SU TXBF sounding interval */
- #define WMI_PEER_PARAM_SU_TXBF_SOUNDING_INTERVAL 0x16
- /* Peer MU TXBF sounding interval */
- #define WMI_PEER_PARAM_MU_TXBF_SOUNDING_INTERVAL 0x17
- /* Peer TXBF sounding enable or disable */
- #define WMI_PEER_PARAM_TXBF_SOUNDING_ENABLE 0x18
- /* Per peer 11ax OFDMA enable or disable */
- #define WMI_PEER_PARAM_OFDMA_ENABLE 0x19
- /* Per peer 11ax/11ac MU enable or disable */
- #define WMI_PEER_PARAM_MU_ENABLE 0x1a
- /** Set peer fixed rate used in UL Trigger
- * The top nibble is used to select which format to use for encoding
- * the rate specification: 0xVXXXXXXX, V must be 1 for this parameter.
- * If V == 0b0001: format is: 0x1000RRRR.
- * ("RRRR" rate code already has those preamble bits,
- * which can specify EHT or HE)
- * This will be output of WMI_ASSEMBLE_RATECODE_V1
- *
- * This parameter controls the UL OFDMA and UL MU-MIMO peer fixed rate.
- */
- #define WMI_PEER_PARAM_UL_FIXED_RATE 0x1b
- /** send specific OMI to peer via QoS-null frame
- * param_value = follow 11ax spec definition
- * bit0:VHT(1), bit1:HE(1), bit2-31:A-Control
- */
- #define WMI_PEER_PARAM_XMIT_OMI 0x1c
- #define WMI_PEER_RARAM_XMIT_OMI WMI_PEER_PARAM_XMIT_OMI /* alias due to prior typo */
- /* Disable burst and assist */
- #define WMI_PEER_PARAM_DISABLE_AGGRESSIVE_TX 0x1d
- /* Enable 11r FT Roaming */
- #define WMI_PEER_PARAM_ENABLE_FT 0x1e
- /* update peer flag for ptk 4 way handshake */
- #define WMI_PEER_PARAM_NEED_PTK_4_WAY 0x1f
- /* update peer flag for gtk 2 way handshake */
- #define WMI_PEER_PARAM_NEED_GTK_2_WAY 0x20
- /* update peer flag for M4 sent */
- #define WMI_PEER_PARAM_M4_SENT 0x21
- /* Per peer MISC stats enable or disable */
- #define WMI_PEER_PARAM_MISC_STATS_ENABLE 0x22
- /* Per peer FW congestion enable or disable:
- * A parameter value of 1 will disable FW tx congestion control for the peer,
- * a parameter value 0f 0 will enable FW tx congestion control for the peer.
- */
- #define WMI_PEER_PARAM_FW_CONGESTION_DISABLE 0x23
- /* Per peer dynamically change max Nss limit in supported tx modes.
- * Whereas WMI_PEER_NSS cmd needs to reset PER tables and start peer rate
- * control again.
- * Currently supported only for 2x2 case, and also only supports setting
- * all NSS up to current NSS.
- * Mask is used so we can extend in future if needed.
- *
- * Expected values in bits:
- * 00: Use autorate
- * 01: Enable only 1SS
- * 10: Enable only 2SS
- * 11: Disable NSS clamp feature or Fallback to autorate
- */
- #define WMI_PEER_PARAM_DYN_NSS_EN_MASK 0x24
- /* Per peer enable/disable RTS/CTS for unicast management frames.
- * Enabling RTS/CTS only applicable after association process of the peer.
- * Currently supported for spruce(2x2) chipset.
- * Expected values:
- * 0 : Disable RTS/CTS for unicast management frames.
- * 1 : Enable RTS/CTS for unicast management frames.
- */
- #define WMI_PEER_PARAM_EN_RTSCTS_FOR_UNICAST_MGMT 0x25
- /** mimo ps values for the parameter WMI_PEER_MIMO_PS_STATE */
- #define WMI_PEER_MIMO_PS_NONE 0x0
- #define WMI_PEER_MIMO_PS_STATIC 0x1
- #define WMI_PEER_MIMO_PS_DYNAMIC 0x2
- /*
- * Each bit indicates one 20 MHz subchannel is punctured or not.
- * A bit in the bitmap is set to 1 to indicate that the corresponding 20 MHz
- * subchannel is not punctured and is set to 0 to indicate that it is punctured.
- */
- #define WMI_PEER_PUNCTURE_20MHZ_BITMAP 0x26
- #define WMI_PEER_CHWIDTH_PUNCTURE_BITMAP_GET_CHWIDTH(value32) WMI_GET_BITS(value32, 0x0, 8)
- #define WMI_PEER_CHWIDTH_PUNCTURE_BITMAP_GET_PUNCTURE_BMAP(value32) WMI_GET_BITS(value32, 0x8, 16)
- /*
- * peer channel bandwidth and puncture_bitmap
- * BIT 0-7 - Peer channel width
- * This bitfield holds a wmi_channel_width enum value.
- * BIT 8-23 - Peer Puncture bitmap where each bit indicates whether
- * a 20 MHz BW is punctured.
- * The variable should be read from left, LSb (bit 8) will
- * represent the lowest-frequency 20 MHz portion.
- * Bit value: 0 - 20 MHz channel is punctured, 1 - not punctured
- */
- #define WMI_PEER_CHWIDTH_PUNCTURE_20MHZ_BITMAP 0x27
- #define WMI_PEER_SET_TX_POWER 0x28
- #define WMI_PEER_FT_ROAMING_PEER_UPDATE 0x29
- #define WMI_PEER_PARAM_DMS_SUPPORT 0x2A
- #define WMI_PEER_PARAM_UL_OFDMA_RTD 0x2B
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_set_param_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** parameter id */
- A_UINT32 param_id;
- /** parameter value */
- A_UINT32 param_value;
- } wmi_peer_set_param_cmd_fixed_param;
- typedef union {
- /*
- * The A_UINT16 "mode" and "tx_rate" fields can only be directly used
- * by the target or a little-endian host.
- * A big-endian host needs to use the WMI_PEER_MAX_MIN_TX_xxx_GET/SET
- * macros on the A_UINT32 "value" field.
- */
- struct {
- A_UINT16 mode; /* 0:CCK, 1:OFDM, 2:HT, 3:VHT (see WMI_RATE_PREAMBLE) */
- A_UINT16 tx_rate; /* see per-mode specs below */
- };
- A_UINT32 value; /* for use by big-endian host */
- } wmi_peer_max_min_tx_rate;
- /*
- * Any access to the mode/tx_rate in an big endian system should use
- * the below Macros on the wmi_peer_max_min_tx_rate.value field.
- */
- #define WMI_PEER_MAX_MIN_TX_MODE_GET(value32) WMI_GET_BITS(value32, 0, 16)
- #define WMI_PEER_MAX_MIN_TX_MODE_SET(value32, tx_mode) WMI_SET_BITS(value32, 0, 16, tx_mode)
- #define WMI_PEER_MAX_MIN_TX_RATE_GET(value32) WMI_GET_BITS(value32, 16, 16)
- #define WMI_PEER_MAX_MIN_TX_RATE_SET(value32, tx_mode) WMI_SET_BITS(value32, 16, 16, tx_mode)
- /* CCK max/min tx Rate description
- * tx_rate = 0: 1 Mbps
- * tx_rate = 1: 2 Mbps
- * tx_rate = 2: 5.5 Mbps
- * tx_rate = 3: 11 Mbps
- * tx_rate = else: invalid
- */
- enum {
- WMI_MAX_CCK_TX_RATE_1M, /* up to 1M CCK Rate available */
- WMI_MAX_CCK_TX_RATE_2M, /* up to 2M CCK Rate available */
- WMI_MAX_CCK_TX_RATE_5_5M, /* up to 5.5M CCK Rate available */
- WMI_MAX_CCK_TX_RATE_11M, /* up to 11M CCK Rate available */
- WMI_MAX_CCK_TX_RATE = WMI_MAX_CCK_TX_RATE_11M,
- };
- /* OFDM max/min tx Rate description
- * tx_rate = 0: 6 Mbps
- * tx_rate = 1: 9 Mbps
- * tx_rate = 2: 12 Mbps
- * tx_rate = 3: 18 Mbps
- * tx_rate = 4: 24 Mbps
- * tx_rate = 5: 32 Mbps
- * tx_rate = 6: 48 Mbps
- * tx_rate = 7: 54 Mbps
- * tx_rate = else: invalid
- */
- enum {
- WMI_MAX_OFDM_TX_RATE_6M, /* up to 6M OFDM Rate available */
- WMI_MAX_OFDM_TX_RATE_9M, /* up to 9M OFDM Rate available */
- WMI_MAX_OFDM_TX_RATE_12M, /* up to 12M OFDM Rate available */
- WMI_MAX_OFDM_TX_RATE_18M, /* up to 18M OFDM Rate available */
- WMI_MAX_OFDM_TX_RATE_24M, /* up to 24M OFDM Rate available */
- WMI_MAX_OFDM_TX_RATE_36M, /* up to 36M OFDM Rate available */
- WMI_MAX_OFDM_TX_RATE_48M, /* up to 48M OFDM Rate available */
- WMI_MAX_OFDM_TX_RATE_54M, /* up to 54M OFDM Rate available */
- WMI_MAX_OFDM_TX_RATE = WMI_MAX_OFDM_TX_RATE_54M,
- };
- /* HT max/min tx rate description
- * tx_rate = 0~7 : MCS Rate 0~7
- * tx_rate=else : invalid.
- */
- #define WMI_MAX_HT_TX_MCS 0x07
- /* VHT max/min tx rate description
- * tx_rate = 0~9 : MCS Rate 0~9
- * tx_rate=else : invalid.
- */
- #define WMI_MAX_VHT_TX_MCS 0x09
- #define MAX_SUPPORTED_RATES 128
- typedef struct {
- /** total number of rates */
- A_UINT32 num_rates;
- /**
- * rates (each 8bit value) packed into a 32 bit word.
- * the rates are filled from least significant byte to most
- * significant byte.
- */
- A_UINT32 rates[(MAX_SUPPORTED_RATES / 4) + 1];
- } wmi_rate_set;
- /* NOTE: It would bea good idea to represent the Tx MCS
- * info in one word and Rx in another word. This is split
- * into multiple words for convenience
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vht_rate_set */
- A_UINT32 rx_max_rate; /* Max Rx data rate */
- A_UINT32 rx_mcs_set; /* Negotiated RX VHT rates */
- A_UINT32 tx_max_rate; /* Max Tx data rate */
- /*
- * bit [15:0] indicates MCS 0 to 9
- * bit [23:16] indicates MCS 10 & 11
- * bit [24] indicates whether MCS 10 & 11 is notified in bit [23:16]
- */
- A_UINT32 tx_mcs_set; /* Negotiated TX VHT rates */
- A_UINT32 tx_max_mcs_nss; /* b0-b3: max mcs idx; b4-b7: max nss */
- } wmi_vht_rate_set;
- /* NOTE: It would bea good idea to represent the Tx MCS
- * info in one word and Rx in another word. This is split
- * into multiple words for convenience
- * currently this is being defined in IEEE802.11ax so this is same as wmi_vht_rate_set and is sub change in future and may include BW as well
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_he_rate_set */
- /* HE Supported MCS Set field Rx
- * - 2 bits are used for each NSS chain.Max of 8 NSS can be encoded with
- * value 0 - MCS 0-7 enabled for this NSS
- * value 1 - MCS 0-9 enabled for this NSS
- * value 2 - MCS 0-11 enabled for this NSS
- * value 3 - NSS disabled
- * - WMI_HE_MAX_MCS_4_SS_MASK macro can be used for encoding this info
- */
- A_UINT32 rx_mcs_set; /* Negotiated RX HE rates (i.e. rate this node can RX from peer)*/
- /* HE Supported MCS Set field Tx
- * - 2 bits are used for each NSS chain.Max of 8 NSS can be encoded with
- * value 0 - MCS 0-7 enabled for this NSS
- * value 1 - MCS 0-9 enabled for this NSS
- * value 2 - MCS 0-11 enabled for this NSS
- * value 3 - NSS disabled
- * WMI_HE_MAX_MCS_4_SS_MASK macro can be used for encoding this info
- *
- * - 8 bits x 2 are used for each Nss value for 2 categories of bandwidths,
- * to indicate whether MCS 12 and 13 are enabled.
- * Bits [16:23] used for checking if MCS 12/13 is enabled for a
- * particular NSS (BW <= 80MHz)
- * Bits [24:31] used for checking if MCS 12/13 is enabled for a
- * particular NSS (BW > 80MHz)
- * The WMI_HE_EXTRA_MCS_SS_[GET,SET] macros can be used for accessing
- * these bit-fields.
- */
- A_UINT32 tx_mcs_set; /* Negotiated TX HE rates(i.e. rate this node can TX to peer) */
- } wmi_he_rate_set;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_eht_rate_set */
- /*
- * B0-B3 indicates max NSS that supports mcs 0-7
- * B4-B7 indicates max NSS that supports mcs 8-9
- * B8-B11 indicates max NSS that supports mcs 10-11
- * B12-B15 indicates max NSS that supports mcs 12-13
- * B16-B31 reserved
- */
- A_UINT32 rx_mcs_set; /* Rx max NSS set */
- A_UINT32 tx_mcs_set; /* Tx max NSS set */
- } wmi_eht_rate_set;
- /*
- * IMPORTANT: Make sure the bit definitions here are consistent
- * with the ni_flags definitions in wlan_peer.h
- */
- #define WMI_PEER_AUTH 0x00000001 /* Authorized for data */
- #define WMI_PEER_QOS 0x00000002 /* QoS enabled */
- #define WMI_PEER_NEED_PTK_4_WAY 0x00000004 /* Needs PTK 4 way handshake for authorization */
- #define WMI_PEER_GK_INST 0x00000008 /* group Key Installed */
- #define WMI_PEER_NEED_GTK_2_WAY 0x00000010 /* Needs GTK 2 way handshake after 4-way handshake */
- #define WMI_PEER_PRIV 0x00000020 /* Encryption Enabled */
- #define WMI_PEER_PK_INST 0x00000040 /* Pairwise Key Installed */
- #define WMI_PEER_TKIP_CM_ENABLED 0x00000080 /* TKIP CounterMeasures */
- #define WMI_PEER_SW_DEMIC_FRAG 0x00000100 /* S/W Demic of Frag Train */
- #define WMI_PEER_CCX_ENABLED 0x00000200 /* CCX enabled */
- #define WMI_PEER_HE 0x00000400 /* HE Enabled */
- #define WMI_PEER_APSD 0x00000800 /* U-APSD power save enabled */
- #define WMI_PEER_HT 0x00001000 /* HT enabled */
- #define WMI_PEER_40MHZ 0x00002000 /* 40MHz enabld */
- #define WMI_PEER_INTER_BSS_PEER 0x00004000 /* Inter BSS peer */
- #define WMI_PEER_STBC 0x00008000 /* STBC Enabled */
- #define WMI_PEER_LDPC 0x00010000 /* LDPC ENabled */
- #define WMI_PEER_DYN_MIMOPS 0x00020000 /* Dynamic MIMO PS Enabled */
- #define WMI_PEER_STATIC_MIMOPS 0x00040000 /* Static MIMO PS enabled */
- #define WMI_PEER_DIS_MIMOPS 0x00080000 /* MIMO PS DISABLED */
- #define WMI_PEER_SPATIAL_EXP 0x00100000 /* Enable spatial expansion for
- * single stream rates to avoid
- * unintentional beamforming */
- #define WMI_PEER_SPATIAL_MUX 0x00200000 /* SM Enabled */
- #define WMI_PEER_TWT_REQ 0x00400000 /* TWT Requester Support bit in Extended Capabilities element */
- #define WMI_PEER_TWT_RESP 0x00800000 /* TWT Responder Support bit in Extended Capabilities element */
- #define WMI_PEER_MULTI_BSSID 0x01000000 /* Multiple BSSID Support bit in Extended Capabilities element */
- #define WMI_PEER_VHT 0x02000000 /* VHT Enabled */
- #define WMI_PEER_80MHZ 0x04000000 /* 80MHz enabld */
- #define WMI_PEER_PMF 0x08000000 /* Robust Management Frame Protection enabled */
- #define WMI_PEER_F_PS_PRESEND_REQUIRED 0x10000000 /* Use this flag to avoid calling powersave API when STA is awake */
- #define WMI_PEER_IS_P2P_CAPABLE 0x20000000 /* P2P capable peer */
- #define WMI_PEER_160MHZ 0x40000000 /* 160 MHz enabled */
- #define WMI_PEER_SAFEMODE_EN 0x80000000 /* Fips Mode Enabled */
- /** define for peer_flags_ext */
- #define WMI_PEER_EXT_EHT 0x00000001 /* EHT enabled */
- #define WMI_PEER_EXT_320MHZ 0x00000002 /* 320Mhz enabled */
- #define WMI_PEER_EXT_DMS_CAPABLE 0x00000004
- #define WMI_PEER_EXT_HE_CAPS_6GHZ_VALID 0x00000008 /* param he_caps_6ghz is valid or not */
- #define WMI_PEER_EXT_IS_QUALCOMM_NODE 0x00000010 /* Indicates if the peer connecting is a qualcomm node */
- #define WMI_PEER_EXT_IS_MESH_NODE 0x00000020 /* Indicates if the peer connecting is a mesh node */
- #define WMI_PEER_EXT_F_CRIT_PROTO_HINT_ENABLED 0x40000000
- /**
- * Peer rate capabilities.
- *
- * This is of interest to the ratecontrol
- * module which resides in the firmware. The bit definitions are
- * consistent with that defined in if_athrate.c.
- *
- * @todo
- * Move this to a common header file later so there is no need to
- * duplicate the definitions or maintain consistency.
- */
- #define WMI_RC_DS_FLAG 0x01 /* Dual stream flag */
- #define WMI_RC_CW40_FLAG 0x02 /* CW 40 */
- #define WMI_RC_SGI_FLAG 0x04 /* Short Guard Interval */
- #define WMI_RC_HT_FLAG 0x08 /* HT */
- #define WMI_RC_RTSCTS_FLAG 0x10 /* RTS-CTS */
- #define WMI_RC_TX_STBC_FLAG 0x20 /* TX STBC */
- #define WMI_RC_TX_STBC_FLAG_S 5 /* TX STBC */
- #define WMI_RC_RX_STBC_FLAG 0xC0 /* RX STBC ,2 bits */
- #define WMI_RC_RX_STBC_FLAG_S 6 /* RX STBC ,2 bits */
- #define WMI_RC_WEP_TKIP_FLAG 0x100 /* WEP/TKIP encryption */
- #define WMI_RC_TS_FLAG 0x200 /* Three stream flag */
- #define WMI_RC_UAPSD_FLAG 0x400 /* UAPSD Rate Control */
- enum WMI_PEER_STA_TYPE {
- WMI_PEER_STA_TYPE_INVALID = 0, /* Invalid type*/
- WMI_PEER_STA_TYPE_ONLY_STAVDEV = 1, /* AP has only STAVDEV and APVDEV is not present on any radio */
- WMI_PEER_STA_TYPE_APVDEV_ON_OTHER_RADIO = 2, /* AP has STAVDEV on one radio and APVDEV on other radios */
- WMI_PEER_STA_TYPE_FH_APVDEV_ON_SAME_RADIO = 3, /* AP has STAVDEV and APVDEV on same radio. During STAVDEV connection,
- * no repeater client is connected with this repeater APVDEV
- */
- WMI_PEER_STA_TYPE_BH_APVDEV_ON_SAME_RADIO = 4, /* AP has STAVDEV and APVDEV on same radio. During STAVDEV connection,
- * at least one repeater client is connected with this repeater APVDEV
- * (daisy chain config)
- */
- };
- #define WMI_PEER_STA_TYPE_GET(dword) WMI_GET_BITS(dword, 0, 8)
- #define WMI_PEER_STA_TYPE_SET(dword, value) WMI_SET_BITS(dword, 0, 8, value)
- #define WMI_PEER_ASSOC_BSS_MAX_IDLE_OPTION_BITPOS (0)
- #define WMI_PEER_ASSOC_BSS_MAX_IDLE_OPTION_MASK (0x1 << WMI_PEER_ASSOC_BSS_MAX_IDLE_OPTION_BITPOS)
- #define WMI_PEER_ASSOC_SET_BSS_MAX_IDLE_OPTION(_dword, _val) \
- WMI_SET_BITS(_dword, WMI_PEER_ASSOC_BSS_MAX_IDLE_OPTION_BITPOS, 1, _val)
- #define WMI_PEER_ASSOC_GET_BSS_MAX_IDLE_OPTION(_dword) \
- WMI_GET_BITS(_dword, WMI_PEER_ASSOC_BSS_MAX_IDLE_OPTION_BITPOS, 1)
- #define WMI_PEER_ASSOC_BSS_MAX_IDLE_PERIOD_BITPOS (16)
- #define WMI_PEER_ASSOC_BSS_MAX_IDLE_PERIOD_MASK (0xFFFF << WMI_PEER_ASSOC_BSS_MAX_IDLE_PERIOD_BITPOS)
- #define WMI_PEER_ASSOC_SET_BSS_MAX_IDLE_PERIOD(_dword, _val) \
- WMI_SET_BITS(_dword, WMI_PEER_ASSOC_BSS_MAX_IDLE_PERIOD_BITPOS, 16, _val)
- #define WMI_PEER_ASSOC_GET_BSS_MAX_IDLE_PERIOD(_dword) \
- WMI_GET_BITS(_dword, WMI_PEER_ASSOC_BSS_MAX_IDLE_PERIOD_BITPOS, 16)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag (MITLV_TAG_STRUC_wmi_peer_assoc_mlo_partner_link_params) and len */
- A_UINT32 vdev_id; /** unique id identifying the VDEV, generated by the caller. Set to 0xFFFFFFFF if no vdev is allocated. */
- A_UINT32 hw_mld_link_id; /** Unique link id across SOCs, got as part of QMI handshake. */
- wmi_mlo_flags mlo_flags; /** MLO flags */
- A_UINT32 logical_link_index; /** Unique index for links of the mlo. Starts with Zero */
- A_UINT32 ieee_link_id; /*link id in the 802.11 frames*/
- wmi_mac_addr bss_id;
- wmi_channel wmi_chan;
- wmi_mac_addr self_mac;
- } wmi_peer_assoc_mlo_partner_link_params;
- /* This TLV structure used to pass mlo Parameters on peer assoc, only apply for mlo-peers */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; */
- /** MLO flags */
- wmi_mlo_flags mlo_flags;
- /** MLD MAC address */
- wmi_mac_addr mld_macaddr;
- /** Unique index for links of the mlo. Starts with Zero */
- A_UINT32 logical_link_index;
- /** ML Peer ID
- * In WIN systems, mld_peer_id is generated by Host.
- * In MCL systems, mld_peer_id will be set to invalid peer id.
- */
- A_UINT32 mld_peer_id;
- /** Link-ID of the AP to which STA is associated */
- A_UINT32 ieee_link_id;
- /** eMLSR transition timeout in microseconds */
- A_UINT32 emlsr_trans_timeout_us;
- /** eMLSR transition delay in microseconds */
- A_UINT32 emlsr_trans_delay_us;
- /** eMLSR padding delay in microseconds */
- A_UINT32 emlsr_padding_delay_us;
- union {
- /** Medium Synchronization Duration field in units of 32 microseconds */
- A_UINT32 msd_dur_subfield;
- /** DEPRECATED - DO NOT USE.
- * Medium Synchronization Duration in microseconds */
- A_UINT32 msd_dur_us;
- };
- /** Medium Synchronization OFDM ED Threshold */
- A_UINT32 msd_ofdm_ed_thr;
- /** Medium Synchronization Max Num of TXOPs */
- A_UINT32 msd_max_num_txops;
- /** max_num_simultaneous_links:
- * The maximum number of affiliated STAs in the non-AP MLD that
- * support simultaneous transmission or reception of frames.
- */
- A_UINT32 max_num_simultaneous_links;
- /** NSTR indication bitmap received in assoc req */
- A_UINT32 nstr_indication_bitmap;
- /** max num of active links recommended by AP or applications */
- A_UINT32 recommended_max_num_simultaneous_links;
- } wmi_peer_assoc_mlo_params;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_assoc_tid_to_link_map */
- A_UINT32 tlv_header;
- /**
- * A_UINT32
- * WMI_TID_TO_LINK_MAP_TID_NUM_GET / WMI_TID_TO_LINK_MAP_TID_NUM_SET
- * tid_num:5,
- *
- * WMI_TID_TO_LINK_MAP_DIR_GET / WMI_TID_TO_LINK_MAP_DIR_SET
- * dir:2, // 0 - DL, 1 - UL, 2 - BiDi
- *
- * WMI_TID_TO_LINK_MAP_DEFAULT_MAPPING_GET /
- * WMI_TID_TO_LINK_MAP_DEFAULT_MAPPING_SET
- * default_link_mapping:1, // If this is set to 1, ignore
- * // link_mapping_mask for the specific tid
- *
- * WMI_TID_TO_LINK_MAP_LINK_MASK_GET / WMI_TID_TO_LINK_MAP_LINK_MASK_SET
- * link_mapping_mask:16,
- *
- * rsvd:8;
- */
- A_UINT32 tid_to_link_map_info;
- } wmi_peer_assoc_tid_to_link_map;
- #define WMI_PDEV_MESH_RX_FILTER_GET(enable) WMI_GET_BITS(enable,0,1)
- #define WMI_PDEV_MESH_RX_FILTER_SET(enable,value) WMI_SET_BITS(enable,0,1,value)
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_mesh_rx_filter_enable_fixed_param **/
- A_UINT32 tlv_header;
- A_UINT32 pdev_id;
- union {
- struct {
- A_UINT32 enable: 1, /** denotes enable/disable mesh rx filter, refer to WMI_PDEV_MESH_RX_FILTER_GET/SET macros */
- reserved: 31;
- };
- A_UINT32 enable_word32;
- };
- /** Mac_Add for the RX filter **/
- wmi_mac_addr link_macaddr;
- } wmi_pdev_mesh_rx_filter_enable_fixed_param;
- /*
- * PEER assoc_flags for assoc complete:
- * Bit 0: Set for peer data flush
- */
- #define WMI_ASSOC_FLAG_FLUSH_PEER_DATA 0x00000001
- #define WMI_ASSOC_FLAG_FLUSH_PEER_DATA_GET(assoc_flags) WMI_GET_BITS(assoc_flags, 0, 1)
- #define WMI_ASSOC_FLAG_FLUSH_PEER_DATA_SET(assoc_flags, value) WMI_GET_BITS(assoc_flags, 0, 1, value)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_assoc_complete_cmd_fixed_param */
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** VDEV id */
- A_UINT32 vdev_id;
- /** assoc = 1 reassoc = 0 */
- A_UINT32 peer_new_assoc;
- /** peer associd (16 bits) */
- A_UINT32 peer_associd;
- /** peer station flags: see definition above */
- A_UINT32 peer_flags;
- /** negotiated capabilities (lower 16 bits)*/
- A_UINT32 peer_caps;
- /** Listen interval */
- A_UINT32 peer_listen_intval;
- /** HT capabilities of the peer */
- A_UINT32 peer_ht_caps;
- /** maximum rx A-MPDU length */
- A_UINT32 peer_max_mpdu;
- /** mpdu density of the peer in usec(0 to 16) */
- A_UINT32 peer_mpdu_density;
- /** peer rate capabilities see flags above */
- A_UINT32 peer_rate_caps;
- /** num spatial streams */
- A_UINT32 peer_nss;
- /** VHT capabilities of the peer */
- A_UINT32 peer_vht_caps;
- /** phy mode */
- A_UINT32 peer_phymode;
- /** HT Operation Element of the peer. Five bytes packed in 2
- * INT32 array and filled from lsb to msb.
- * Note that the size of array peer_ht_info[] cannotbe changed
- * without breaking WMI Compatibility. */
- A_UINT32 peer_ht_info[2];
- /** total number of negotiated legacy rate set. Also the sizeof
- * peer_legacy_rates[] */
- A_UINT32 num_peer_legacy_rates;
- /** total number of negotiated ht rate set. Also the sizeof
- * peer_ht_rates[] */
- A_UINT32 num_peer_ht_rates;
- /**
- * Bitmap providing the mapping of bandwidths to max Rx NSS for this peer
- * in VHT160 / VHT80+80 Mode.
- * As per the New IEEE 802.11 Update, the AP & Peer could advertise and
- * handshake with the Max Rx NSS differing for different bandwidths
- * instead of a single max Rx NSS Value.
- * Some QCA chipsets have to advertise a different max Rx NSS value for
- * 160 MHz and 80MHz.
- *
- * bit[2:0] : Represents value of Rx NSS for VHT 160 MHz
- * bit[5:3] : Represents value of Rx NSS for VHT 80_80 MHz -
- * Extended NSS support
- * bit[30:6]: Reserved
- * bit[31] : MSB(0/1): 1 in case of valid data sent from Host
- */
- A_UINT32 peer_bw_rxnss_override;
- /* 802.11ax capabilities */
- wmi_ppe_threshold peer_ppet;
- A_UINT32 peer_he_cap_info; /* protocol-defined HE / 11ax capability flags */
- A_UINT32 peer_he_ops; /* HE operation contains BSS color */
- A_UINT32 peer_he_cap_phy[WMI_MAX_HECAP_PHY_SIZE];
- A_UINT32 peer_he_mcs; /* Indicates number of HE MCS TLV present */
- /* 2nd DWORD of 11ax MAC Capabilities */
- A_UINT32 peer_he_cap_info_ext;
- /*
- * bit 0 : Indicated support for RX 1xLTF + 0.4us
- * bit 1 : Indicates support for RX 2xLTF + 0.4us
- * bit 2 : Indicates support for 2xLTF in 160/80+80 MHz HE PPDU
- * bit[4:3] : Indicates support for DL OFDMA
- * Refer to enum WMI_HE_RX_DL_OFDMA_SUPPORT_x
- * bit[6:5] : Indicates support for DL MU-MIMO
- * Refer to enum WMI_HE_RX_DL_MUMIMO_SUPPORT_x
- * bit[31:7] : Reserved
- * Refer to WMI_HE_CAP_xx_LTF_xxx_SUPPORT_GET/SET macros
- */
- A_UINT32 peer_he_cap_info_internal;
- /* min data rate to be used in Mbps */
- A_UINT32 min_data_rate;
- /** HE 6 GHz Band Capabilities of the peer.
- * (Defined in 9.4.2.261 HE 6 GHz Band Capabilities element in
- * 802.11ax_D5.0.)
- * valid when WMI_PEER_HE is set and WMI_PEER_VHT/HT are not set.
- */
- A_UINT32 peer_he_caps_6ghz;
- /* bit[0-7] : sta_type
- * bit[8-31]: reserved
- * Refer to enum WMI_PEER_STA_TYPE for sta_type values.
- * Refer to WMI_PEER_STA_TYPE_GET/SET macros.
- */
- A_UINT32 sta_type;
- /*
- * @bss_max_idle_option - Parameters exchanged for BSS Max Idle capability.
- * bit 0 : If set, only a protected frame indicates activity.
- * If cleared, either an unprotected or a protected frame
- * indicates activity.
- * Refer to the WMI_PEER_ASSOC_[SET,GET]_BSS_MAX_IDLE_OPTION
- * macros.
- * bit [1:15] : Reserved
- * bit [16:31] : Max idle period in units of 1000 TUs
- * Refer to the WMI_PEER_ASSOC_[SET,GET]_BSS_MAX_IDLE_PERIOD
- * macros.
- */
- A_UINT32 bss_max_idle_option;
- /*
- * Connected AP auth mode values are from WMI_AUTH_ enum.
- * The target shall ignore an auth_mode value of 0 / WMI_AUTH_NONE,
- * due to ambiguity whether a zero value was provided explicitly or
- * simply as a default.
- */
- A_UINT32 auth_mode;
- /* Refer to WMI_PEER_EXT_xxx defs */
- A_UINT32 peer_flags_ext;
- /* 802.11be capabilities and other params */
- A_UINT32 puncture_20mhz_bitmap; /* each bit indicates one 20Mhz bw puntured */
- /* EHT mac capabilities from BSS beacon EHT cap IE, total WMI_MAX_EHTCAP_MAC_SIZE*A_UINT32 bits */
- A_UINT32 peer_eht_cap_mac[WMI_MAX_EHTCAP_MAC_SIZE];
- /* EHT phy capabilities from BSS beacon EHT cap IE, total WMI_MAX_EHTCAP_PHY_SIZE*A_UINT32 bits */
- A_UINT32 peer_eht_cap_phy[WMI_MAX_EHTCAP_PHY_SIZE];
- A_UINT32 peer_eht_ops;
- wmi_ppe_threshold peer_eht_ppet;
- A_UINT32 assoc_flags;
- /* Following this struct are the TLV's:
- * A_UINT8 peer_legacy_rates[];
- * A_UINT8 peer_ht_rates[];
- * wmi_vht_rate_set peer_vht_rates; <-- VHT capabilities of the peer
- * WMI_he_rate_set_peer_he_rates; <-- HE capabilities of the peer
- * wmi_peer_assoc_mlo_params mlo_params[0,1]; <-- MLO parameters opt. TLV
- * Only present for MLO peers.
- * For non-MLO peers the array length should be 0.
- * wmi_eht_rate_set peer_eht_rates; <-- EHT capabilities of the peer
- * wmi_peer_assoc_mlo_partner_link_params link_info[] <-- partner link info
- * wmi_peer_assoc_tid_to_link_map[] <-- tid to link_map info
- */
- } wmi_peer_assoc_complete_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_ap_oper_bw_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 ap_phymode; /* contains a WLAN_PHY_MODE value */
- } wmi_vdev_report_ap_oper_bw_cmd_fixed_param;
- /* WDS Entry Flags */
- #define WMI_WDS_FLAG_STATIC 0x1 /* Disable aging & learning */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_add_wds_entry_cmd_fixed_param */
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** wds MAC addr */
- wmi_mac_addr wds_macaddr;
- /* Flags associated with WDS entry - see WMI_WDS_FLAG defs */
- A_UINT32 flags;
- A_UINT32 vdev_id;
- } wmi_peer_add_wds_entry_cmd_fixed_param;
- #define WMI_CHAN_INFO_START_RESP 0
- #define WMI_CHAN_INFO_END_RESP 1
- /* deprecated but maintained as aliases: old names containing typo */
- #define WMI_CHAN_InFO_START_RESP WMI_CHAN_INFO_START_RESP
- #define WMI_CHAN_InFO_END_RESP WMI_CHAN_INFO_END_RESP
- /* end deprecated */
- #define WMI_CHAN_INFO_ENTRY_RESP 2
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_remove_wds_entry_cmd_fixed_param */
- /** wds MAC addr */
- wmi_mac_addr wds_macaddr;
- A_UINT32 vdev_id;
- } wmi_peer_remove_wds_entry_cmd_fixed_param;
- typedef struct {
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- } wmi_peer_q_empty_callback_event;
- /*
- * Command to update an already existing WDS entry. Different address setting
- * combinations are possible.
- *
- * Valid wds and peer -> Associated WDS entry peer ptr & flags will be updated.
- * Valid wds and null peer -> Associated WDS entry flags will be updated.
- * Null wds and Valid peer -> Flags will be updated for all WDS entries behind the peer.
- * Null wds and peer -> Flags will be updated for all WDS entries.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_update_wds_entry_cmd_fixed_param */
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** wds MAC addr */
- wmi_mac_addr wds_macaddr;
- /* Flags associated with WDS entry */
- A_UINT32 flags;
- A_UINT32 vdev_id;
- } wmi_peer_update_wds_entry_cmd_fixed_param;
- /**
- * Channel info WMI event
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_chan_info_event_fixed_param */
- /** Error code */
- A_UINT32 err_code;
- /** Channel freq */
- A_UINT32 freq;
- /** Read flags */
- A_UINT32 cmd_flags;
- /** Noise Floor value */
- A_UINT32 noise_floor;
- /** rx clear count */
- A_UINT32 rx_clear_count;
- /** cycle count */
- A_UINT32 cycle_count;
- /** channel tx power per range in 0.5dBm steps */
- A_UINT32 chan_tx_pwr_range;
- /** channel tx power per throughput */
- A_UINT32 chan_tx_pwr_tp;
- /** rx frame count (cumulative) */
- A_UINT32 rx_frame_count;
- /** BSS rx cycle count */
- A_UINT32 my_bss_rx_cycle_count;
- /** b-mode data rx time (units are microseconds) */
- A_UINT32 rx_11b_mode_data_duration;
- /** tx frame count */
- A_UINT32 tx_frame_cnt;
- /** mac clock */
- A_UINT32 mac_clk_mhz;
- /** unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /**
- * Noise Floor value for all chain in dBm.
- * If per_chain_noise_floor value is 0 then it should be ignored.
- */
- A_UINT32 per_chain_noise_floor[WMI_MAX_CHAINS];
- /**
- * Following this structure is the optional TLV:
- * struct wmi_scan_blanking_params_info[0/1];
- * struct wmi_cca_busy_subband_info[];
- * Reporting subband CCA busy info in host requested manner.
- */
- } wmi_chan_info_event_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_cca_busy_subband_info */
- A_UINT32 tlv_header;
- /** rx clear count */
- A_UINT32 rx_clear_count;
- } wmi_cca_busy_subband_info;
- /**
- * The below structure contains parameters related to the scan radio
- * blanking feature
- */
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_scan_blanking_params_info */
- A_UINT32 tlv_header;
- /* scan_radio_blanking_duration:
- * Cumulative scan disabled duration which indicates the total time in
- * micro seconds where rx blanking was enabled on the scan radio due to
- * simultaneous transmissions on the same band in the serving radio.
- */
- A_UINT32 scan_radio_blanking_duration;
- /* scan_radio_blanking_count:
- * Count of the number of times rx blanking was enabled on the scan radio
- * due to simultaneous transmissions on the same band in the serving radio.
- */
- A_UINT32 scan_radio_blanking_count;
- } wmi_scan_blanking_params_info;
- typedef enum {
- /* Blanking feature will be disabled */
- WMI_SCAN_BLANKING_DISABLED = 0,
- /* Blanking enabled only on current operating band */
- WMI_SCAN_BLANKING_ENABLED,
- /*
- * Blanking enabled on both 5GHz and 6GHz bands when scan radio
- * home channel is on either 5GHz or 6GHz bands
- */
- WMI_SCAN_BLANKING_ENABLED_NO_ISOLATION,
- WMI_SCAN_BLANKING_MAX,
- } WMI_SCAN_BLANKING_MODE;
- /**
- * The below three structures are the params used for converting RSSI
- * from dB to dBm units.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rssi_dbm_conversion_params_info */
- /* Current operating bandwidth as per wmi_channel_width */
- A_UINT32 curr_bw;
- /* Current rx chainmask */
- A_UINT32 curr_rx_chainmask;
- /* 3 Bytes of xbar_config are used for RF to BB mapping*/
- /* Samples of xbar_config,
- * If xbar_config is 0xFAC688(hex):
- * RF chains 0-7 are connected to BB chains 0-7
- * here,
- * bits 0 to 2 = 0, maps BB chain 0 for RF chain 0
- * bits 3 to 5 = 1, maps BB chain 1 for RF chain 1
- * bits 6 to 8 = 2, maps BB chain 2 for RF chain 2
- * bits 9 to 11 = 3, maps BB chain 3 for RF chain 3
- * bits 12 to 14 = 4, maps BB chain 4 for RF chain 4
- * bits 15 to 17 = 5, maps BB chain 5 for RF chain 5
- * bits 18 to 20 = 6, maps BB chain 6 for RF chain 6
- * bits 21 to 23 = 7, maps BB chain 7 for RF chain 7
- *
- * If xbar_config is 0x688FAC(hex):
- * RF chains 0-3 are connected to BB chains 4-7
- * RF chains 4-7 are connected to BB chains 0-3
- * here,
- * bits 0 to 2 = 4, maps BB chain 4 for RF chain 0
- * bits 3 to 5 = 5, maps BB chain 5 for RF chain 1
- * bits 6 to 8 = 6, maps BB chain 6 for RF chain 2
- * bits 9 to 11 = 7, maps BB chain 7 for RF chain 3
- * bits 12 to 14 = 0, maps BB chain 0 for RF chain 4
- * bits 15 to 17 = 1, maps BB chain 1 for RF chain 5
- * bits 18 to 20 = 2, maps BB chain 2 for RF chain 6
- * bits 21 to 23 = 3, maps BB chain 3 for RF chain 7
- */
- A_UINT32 xbar_config;
- /* The below xlna_bypass params needed in old target architecture
- * generation, not applicable for current target architecture generation.
- * Values will be zero for current target architectures. */
- /* Low noise amplifier bypass offset; signed integer; units are in dB */
- A_INT32 xlna_bypass_offset;
- /* Low noise amplifier bypass threshold; signed integer; units are in dB */
- A_INT32 xlna_bypass_threshold;
- /* nf_hw_dbm:
- * 2D byte array of HW noise floor in dBm per chain, per 20MHz subband
- * This array is filled in little endian format.
- * for big-endian hosts, manual endian conversion is needed to obtain
- * correct sequence of values.
- */
- A_INT8 nf_hw_dbm[MAX_ANTENNA_EIGHT][MAX_20MHZ_SEGMENTS];
- } wmi_rssi_dbm_conversion_params_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rssi_dbm_conversion_temp_offset_info */
- /**
- * RSSI offset based on the current temperature, signed integer,
- * units are in dB
- */
- A_INT32 rssi_temp_offset;
- } wmi_rssi_dbm_conversion_temp_offset_info;
- /**
- * RSSI dB to dBm conversion params event to host
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rssi_dbm_conversion_fixed_param */
- /* PDEV id */
- A_UINT32 pdev_id;
- /**
- * Followed by these TLVs below.
- * wmi_rssi_dbm_conversion_params_info rssi_dbm_conversion_param[0 or 1]
- * wmi_rssi_dbm_conversion_params_info will be sent in case of
- * channel, BW, rx_chainmask change.
- * wmi_rssi_dbm_conversion_temp_offset_info rssi_temp_offset[0 or 1]
- * wmi_rssi_dbm_conversion_temp_offset_info will be sent when the
- * RSSI temp offset changes.
- */
- } wmi_rssi_dbm_conversion_params_info_event_fixed_param;
- /**
- * Non wlan interference event
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wlan_dcs_cw_int */
- A_UINT32 channel; /* either number or freq in mhz*/
- } wlan_dcs_cw_int;
- #define ath_dcs_cw_int /* DEPRECATED */ wlan_dcs_cw_int /* alias */
- /**
- * wlan_dcs_im_tgt_stats
- *
- */
- typedef struct _wlan_dcs_im_tgt_stats {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wlan_dcs_im_tgt_stats_t */
- /** current running TSF from the TSF-1 */
- A_UINT32 reg_tsf32;
- /** Known last frame RSSI, in case of multiple stations, if
- * and at different ranges, this would not guarantee that
- * this is the least RSSI.
- */
- A_UINT32 last_ack_rssi;
- /** Sum of all the failed durations in the last one second interval.
- */
- A_UINT32 tx_waste_time;
- /** count how many times the hal_rxerr_phy is marked, in this
- * time period
- */
- A_UINT32 rx_time;
- A_UINT32 phyerr_cnt;
- /**
- * WLAN IM stats from target to host
- *
- * Below statistics are sent from target to host periodically.
- * These are collected at target as long as target is running
- * and target chip is not in sleep.
- *
- */
- /** listen time from ANI */
- A_INT32 listen_time;
- /** tx frame count, MAC_PCU_TX_FRAME_CNT_ADDRESS */
- A_UINT32 reg_tx_frame_cnt;
- /** rx frame count, MAC_PCU_RX_FRAME_CNT_ADDRESS */
- A_UINT32 reg_rx_frame_cnt;
- /** rx clear count, MAC_PCU_RX_CLEAR_CNT_ADDRESS */
- A_UINT32 reg_rxclr_cnt;
- /** total cycle counts MAC_PCU_CYCLE_CNT_ADDRESS */
- A_UINT32 reg_cycle_cnt; /* delta cycle count */
- /** extension channel rx clear count */
- A_UINT32 reg_rxclr_ext_cnt;
- /** OFDM phy error counts, MAC_PCU_PHY_ERR_CNT_1_ADDRESS */
- A_UINT32 reg_ofdm_phyerr_cnt;
- /** CCK phy error count, MAC_PCU_PHY_ERR_CNT_2_ADDRESS */
- A_UINT32 reg_cck_phyerr_cnt; /* CCK err count since last reset, read from register */
- /** Channel noise floor (units are dBm) */
- A_INT32 chan_nf;
- /** BSS rx cycle count */
- A_UINT32 my_bss_rx_cycle_count;
- } wlan_dcs_im_tgt_stats_t;
- typedef struct wlan_dcs_awgn_info {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_dcs_awgn_int_t */
- A_UINT32 tlv_header;
- /** Channel width (20, 40, 80, 80+80, 160, 320 ) enum wmi_channel_width */
- A_UINT32 channel_width;
- /** Primary channel frequency (MHz) */
- A_UINT32 chan_freq;
- /** center frequency (MHz) first segment */
- A_UINT32 center_freq0;
- /** center frequency (MHz) second segment */
- A_UINT32 center_freq1;
- /*
- * Indicates which 20MHz segments contain interference
- * 320 MHz: bits 0-15
- * 160 MHz: bits 0-7
- * 80 MHz: bits 0-3
- * Bitmap - Each bit position will indicate 20MHz in which
- * interference is seen. (Valid 16 bits out of 32 bit integer)
- * Note: for 11be, the interference present 20MHz can be punctured
- * for better channel utilization.
- */
- A_UINT32 chan_bw_interference_bitmap;
- } wmi_dcs_awgn_int_t;
- typedef struct wlan_dcs_obss_info {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_dcs_obss_int_t */
- A_UINT32 tlv_header;
- /** Channel width (20, 40, 80, 80+80, 160, 320) enum wmi_channel_width */
- A_UINT32 channel_width;
- /** Primary channel frequency (MHz) */
- A_UINT32 chan_freq;
- /** center frequency (MHz) first segment */
- A_UINT32 center_freq0;
- /** center frequency (MHz) second segment */
- A_UINT32 center_freq1;
- /* chan_bw_interference_bitmap:
- * Indicates which 20MHz segments contain interference
- * 320 MHz: bits 0-15
- * 160 MHz: bits 0-7
- * 80 MHz: bits 0-3
- * Within the bitmap, Bit-0 represents lowest 20Mhz, Bit-1 represents
- * second lowest 20Mhz and so on.
- * Each bit position will indicate 20MHz in which interference is seen.
- * (Valid 16 bits out of 32 bit integer)
- * Note: for 11be, the interference present 20MHz can be punctured
- * for better channel utilization.
- */
- A_UINT32 chan_bw_interference_bitmap;
- } wmi_dcs_obss_int_t;
- /**
- * wmi_dcs_interference_event_t
- *
- * Right now this is event and stats together. Partly this is
- * because cw interference is handled in target now. This
- * can be done at host itself, if we can carry the NF alone
- * as a stats event. In future this would be done and this
- * event would carry only stats.
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_dcs_interference_event_fixed_param */
- /**
- * Type of the event present, either the cw interference event, or the wlan_im stats, or AWGN int
- * ATH_CAP_DCS_CWIM 0x01
- * ATH_CAP_DCS_WLANIM 0x02
- * ATH_CAP_DCS_AGWNIM 0x04
- * reserved (AFC) 0x08
- * ATH_CAP_DCS_OBSSIM 0x10
- */
- A_UINT32 interference_type; /* type of interference, wlan, cw, or AWGN */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** VDEV ID for identifying DCS stats reported at VDEV level.
- * Should be interpreted only when WMI_SERVICE_VDEV_DCS_STATS_SUPPORT
- * service cap is advertized by target.
- * And value would be 0xFF if DCS stats is still configured at PDEV level.
- */
- A_UINT32 vdev_id;
- /*
- * Following this struct are these TLVs. Note that they are both array of structures
- * but can have at most one element. Which TLV is empty or has one element depends
- * on the field interference_type. This is to emulate an union with cw_int and wlan_stat
- * elements (not arrays). union { wlan_dcs_cw_int cw_int; wlan_dcs_im_tgt_stats_t wlan_stat; } int_event;
- *
- * wlan_dcs_cw_int cw_int[]; <-- cw_interference event
- * wlan_dcs_im_tgt_stats_t wlan_stat[]; <-- wlan im interference stats
- * wmi_dcs_awgn_int_t awgn_int[]; <-- Additive white Gaussian noise (AWGN) interference
- * wmi_dcs_obss_int_t obss_int[]; <-- Overlapping Basic Service Set (OBSS) interference
- */
- } wmi_dcs_interference_event_fixed_param;
- enum wmi_peer_mcast_group_action {
- wmi_peer_mcast_group_action_add = 0,
- wmi_peer_mcast_group_action_del = 1
- };
- #define WMI_PEER_MCAST_GROUP_FLAG_ACTION_M 0x1
- #define WMI_PEER_MCAST_GROUP_FLAG_ACTION_S 0
- #define WMI_PEER_MCAST_GROUP_FLAG_WILDCARD_M 0x2
- #define WMI_PEER_MCAST_GROUP_FLAG_WILDCARD_S 1
- #define WMI_PEER_MCAST_GROUP_FLAG_SRC_FILTER_EXCLUDE_M 0x4 /* flag to exclude an ip while filtering. set to exclude */
- #define WMI_PEER_MCAST_GROUP_FLAG_SRC_FILTER_EXCLUDE_S 2
- #define WMI_PEER_MCAST_GROUP_FLAG_IPV6_M 0x8 /* flag to say ipv4/ipv6. Will be set for ipv6 */
- #define WMI_PEER_MCAST_GROUP_FLAG_IPV6_S 3
- #define WMI_PEER_MCAST_GROUP_FLAG_DELETEALL_M 0x10 /* delete all mcast table entries. */
- #define WMI_PEER_MCAST_GROUP_FLAG_DELETEALL_S 4
- /* multicast group membership commands */
- /* TODO: Converting this will be tricky since it uses an union.
- Also, the mac_addr is not aligned. We will convert to the wmi_mac_addr */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_mcast_group_cmd_fixed_param */
- A_UINT32 flags;
- wmi_mac_addr ucast_mac_addr;
- /* in network byte order */
- /* for ipv4, bytes (12-15) should contain ip address and other lower bytes 0. ipv6 should have all bytes valid */
- A_UINT8 mcast_ip_addr[16];
- /* for ipv6, all 16 bytes has to be valid; for ipv4 last 4 bytes(12-15) has to be valid, rest all 0s */
- A_UINT8 mcast_ip_mask[16];/* zero out lower bytes if ipv4*/
- /* number of address filters - irrespective of ipv4/ipv6 addresses */
- A_UINT32 num_filter_addr;
- /* this array should contain the src IPs that are to be filtered during find
- The array should be packed.
- If there are 2 ipv4 addresses, there should be 8 bytes and rest all 0s */
- A_UINT8 filter_addr[64]; /* 16 ipv4 addresses or 4 ipv6 addresses */
- A_UINT8 vdev_id; /* vdev of this mcast group */
- } wmi_peer_mcast_group_cmd_fixed_param;
- /** Offload Scan and Roaming related commands */
- /** The FW performs 2 different kinds of offload scans independent
- * of host. One is Roam scan which is primarily performed on a
- * station VDEV after association to look for a better AP that
- * the station VDEV can roam to. The second scan is connect scan
- * which is mainly performed when the station is not associated
- * and to look for a matching AP profile from a list of
- * configured profiles. */
- /* flags for roam_scan_mode_cmd
- * indicate the status (success/fail) of wmi_roam_scan_mode cmd through WMI_ROAM_EVENTID */
- #define WMI_ROAM_SCAN_MODE_FLAG_REPORT_STATUS 0x1
- /**
- * WMI_ROAM_SCAN_MODE: Set Roam Scan mode
- * the roam scan mode is one of the periodic, RSSI change, both, none.
- * None : Disable Roam scan. No Roam scan at all.
- * Periodic : Scan periodically with a configurable period.
- * Rssi change : Scan when ever RSSI to current AP changes by the threshold value
- * set by WMI_ROAM_SCAN_RSSI_CHANGE_THRESHOLD command.
- * Both : Both of the above (scan when either period expires or rss to current AP changes by X amount)
- *
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_scan_mode_fixed_param */
- A_UINT32 roam_scan_mode;
- A_UINT32 vdev_id;
- A_UINT32 flags; /* see WMI_ROAM_SCAN_MODE_FLAG defs */
- /*
- * Minimum duration allowed between two consecutive roam scans.
- * Roam scan is not allowed, if duration between two consecutive
- * roam scans is less than this time.
- */
- A_UINT32 min_delay_btw_scans; /* In msec */
- /*
- * Bitmask (with enum WMI_ROAM_TRIGGER_REASON_ID identifying the bit
- * positions) showing for which roam_trigger_reasons the
- * min_delay_btw_scans constraint should be applied.
- * 0x0 means there is no time restrictions between successive roam scans.
- */
- A_UINT32 min_delay_roam_trigger_reason_bitmask;
- } wmi_roam_scan_mode_fixed_param;
- #define WMI_ROAM_SCAN_MODE_NONE 0x0
- #define WMI_ROAM_SCAN_MODE_PERIODIC 0x1
- #define WMI_ROAM_SCAN_MODE_RSSI_CHANGE 0x2
- #define WMI_ROAM_SCAN_MODE_BOTH 0x3
- /* Note: WMI_ROAM_SCAN_MODE_ROAMOFFLOAD is one bit not conflict with LFR2.0 SCAN_MODE. */
- #define WMI_ROAM_SCAN_MODE_ROAMOFFLOAD 0x4
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_scan_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 command_arg;
- } wmi_roam_scan_cmd_fixed_param;
- #define WMI_ROAM_SCAN_STOP_CMD 0x1
- /** flags for WMI_ROAM_SCAN_RSSI_THRESHOLD command:
- * BIT 0 -> Indicate High RSSI Trigger support is enabled for roaming
- * from 5 GHz to 6 GHz Band
- * BIT 1-31 -> Reserved
- */
- #define WMI_ROAM_SCAN_RSSI_THRESHOLD_FLAG_ROAM_HI_RSSI_EN_ON_5G 0x1
- /**
- * WMI_ROAM_SCAN_RSSI_THRESHOLD : set scan RSSI threshold
- * scan RSSI threshold is the RSSI threshold below which the FW will start running Roam scans.
- * Applicable when WMI_ROAM_SCAN_MODE is not set to none.
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_scan_rssi_threshold_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** roam scan RSSI threshold */
- A_UINT32 roam_scan_rssi_thresh;
- /** When using Hw generated beacon RSSI interrupts */
- A_UINT32 roam_rssi_thresh_diff;
- /** 5G scan max count */
- A_UINT32 hirssi_scan_max_count;
- /** 5G scan RSSI change threshold value */
- A_UINT32 hirssi_scan_delta;
- /** 5G scan upper bound */
- A_UINT32 hirssi_upper_bound;
- /** roam scan RSSI threshold for 5G band.
- * offset from roam_scan_rssi_thres, in dB units
- */
- A_INT32 rssi_thresh_offset_5g;
- /** flags for WMI_ROAM_SCAN_RSSI_THRESHOLD Command */
- A_UINT32 flags; /* see WMI_ROAM_SCAN_RSSI_THRESHOLD_FLAG defs */
- /* The TLVs will follow.
- * wmi_roam_scan_extended_threshold_param extended_param;
- * wmi_roam_earlystop_rssi_thres_param earlystop_param;
- * wmi_roam_dense_thres_param dense_param;
- * wmi_roam_bg_scan_roaming_param bg_scan_param;
- * wmi_roam_data_rssi_roaming_param data_rssi_param;
- */
- } wmi_roam_scan_rssi_threshold_fixed_param;
- /**
- * WMI_ROAM_BTM_CONFIG_CMDID : set BTM (BSS Transition Management. 802.11v) offload config
- * Applicable only when WMI_ROAM_SCAN_MODE is enabled with WMI_ROAM_SCAN_MODE_ROAMOFFLOAD
- */
- /**
- * btm_config.flags
- * BIT 0 : Enable/Disable the BTM offload.
- * BIT 1-2 : Action on non matching candidate with cache. Used WMI_ROAM_BTM_OFLD_NON_MATCHING_CND_XXX
- * BIT 3-5 : Roaming handoff decisions. Use WMI_ROAM_BTM_OFLD_CNDS_MATCH_XXX
- * BIT 6 : Enable/Disable solicited BTM
- * BIT 7 : Roam BTM candidates based on the roam score instead of BTM preferred value
- * BIT 8 : BTM query preference over 11k neighbor report request
- * BIT 9 : Send BTM query with preferred candidates list
- * BIT 10 : Forward MBO BTM Request to Host if MBO ASSOC RETRY attribute is set
- * BIT 11-31 : Reserved
- */
- #define WMI_ROAM_BTM_SET_ENABLE(flags, val) WMI_SET_BITS(flags, 0, 1, val)
- #define WMI_ROAM_BTM_GET_ENABLE(flags) WMI_GET_BITS(flags, 0, 1)
- #define WMI_ROAM_BTM_SET_NON_MATCHING_CND_ACTION(flags, val) WMI_SET_BITS(flags, 1, 2, val)
- #define WMI_ROAM_BTM_GET_NON_MATCHING_CND_ACTION(flags) WMI_GET_BITS(flags, 1, 2)
- #define WMI_ROAM_BTM_SET_CNDS_MATCH_CONDITION(flags, val) WMI_SET_BITS(flags, 3, 3, val)
- #define WMI_ROAM_BTM_GET_CNDS_MATCH_CONDITION(flags) WMI_GET_BITS(flags, 3, 3)
- #define WMI_ROAM_BTM_SET_SOLICITED_BTM_ENABLE(flags, val) WMI_SET_BITS(flags, 6, 1, val)
- #define WMI_ROAM_BTM_GET_SOLICITED_BTM_ENABLE(flags) WMI_GET_BITS(flags, 6, 1)
- #define WMI_ROAM_BTM_SET_CNDS_SELECT_BASED_ON_SCORE(flags, val) WMI_SET_BITS(flags, 7, 1, val)
- #define WMI_ROAM_BTM_GET_CNDS_SELECT_BASED_ON_SCORE(flags) WMI_GET_BITS(flags, 7, 1)
- #define WMI_ROAM_BTM_SET_BTM_QUERY_PREFERENCE_OVER_11K(flags, val) WMI_SET_BITS(flags, 8, 1, val)
- #define WMI_ROAM_BTM_GET_BTM_QUERY_PREFERENCE_OVER_11K(flags) WMI_GET_BITS(flags, 8, 1)
- #define WMI_ROAM_BTM_SET_BTM_QUERY_WITH_CANDIDATE_LIST(flags, val) WMI_SET_BITS(flags, 9, 1, val)
- #define WMI_ROAM_BTM_GET_BTM_QUERY_WITH_CANDIDATE_LIST(flags) WMI_GET_BITS(flags, 9, 1)
- #define WMI_ROAM_BTM_SET_FORWARD_MBO_ASSOC_RETRY_BTM_REQUEST_TO_HOST(flags, val) WMI_SET_BITS(flags, 10, 1, val)
- #define WMI_ROAM_BTM_GET_FORWARD_MBO_ASSOC_RETRY_BTM_REQUEST_TO_HOST(flags) WMI_GET_BITS(flags, 10, 1)
- /** WMI_ROAM_BTM_SET_NON_MATCHING_CNDS_ACTION definition: When BTM candidate is not matched with cache by WMI_ROAM_BTM_SET_CNDS_MATCH_CONDITION, determine what to do */
- #define WMI_ROAM_BTM_NON_MATCHING_CNDS_SCAN_CONSUME 0 /** Invoke roam scan and consume within firmware. Applicable only when ROAM_SCAN_MODE is enabled. If ROAM_SCAN_MODE is disabled, firmware won't scan and forward it to host */
- #define WMI_ROAM_BTM_NON_MATCHING_CNDS_NO_SCAN_FORWARD 1 /** Does not allow roam scan and forward BTM frame to host */
- /** reserved upto 3 */
- /** WMI_ROAM_BTM_SET_CNDS_MATCH_CONDITION definition: This is used to invoke WMI_ROAM_BTM_SET_NON_MATCHING_CND_ACTION when compared with cache. i.e this condition is not applied with fresh scan result */
- #define WMI_ROAM_BTM_CNDS_MATCH_EXACT 0 /** Exactly matched with roam candidate list to BTM candidates */
- #define WMI_ROAM_BTM_CNDS_MATCH_AT_LEAST_TOP 1 /** At least one or more top priority bssid matched */
- /** reserved upto 7 */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_btm_config_fixed_param */
- A_UINT32 tlv_header;
- /** unique id identifying the VDEV on which BTM is enabled/disabled */
- A_UINT32 vdev_id;
- /** BTM configuration control flags */
- A_UINT32 flags;
- /* BTM query timeout, unit: milliseconds
- * valid value range: 1-10000,
- * default value: 100 will be set if invalid value is given
- */
- A_UINT32 solicited_timeout_ms;
- /* Maximum attempt of solicited BTM
- * If continuous failure reach to this value, solicited BTM to current
- * ESS will be disabled.
- * valid value range: 1 - (2^32-1). (2^32)-1 means sending forever
- * Default value: 3 will be set if invalid value is given
- */
- A_UINT32 max_attempt_cnt;
- /* Time to stick to current AP after BTM, unit: seconds
- * valid value range: 0 -(2^16-1).
- * Either 0 or (2^16)-1 means stick to AP forever.
- * Default value: 300 will be set if invalid value is given
- */
- A_UINT32 stick_time_seconds;
- /* Disassoc time threshold in milliseconds
- * This time threshold allows the target to judge whether the STA
- * should can move to another AP immediately, or if the STA has time
- * to calculate roaming candidates.
- * If the disassoc_timer_threshold value is 0x0, the field should be
- * disregarded.
- */
- A_UINT32 disassoc_timer_threshold;
- /*
- * Bitmask (with enum WMI_ROAM_TRIGGER_REASON_ID identifying the bit
- * positions) showing for which roam_trigger_reasons the
- * btm query needs to be sent.
- * If roam trigger reasons are unspecified, btm_bitmap will be 0x0.
- */
- A_UINT32 btm_bitmap;
- /*
- * Consider AP as roam candidate only if AP score is better than
- * btm_candidate_min_score for BTM roam trigger
- */
- A_UINT32 btm_candidate_min_score;
- } wmi_btm_config_fixed_param;
- #define WMI_ROAM_5G_BOOST_PENALIZE_ALGO_FIXED 0x0
- #define WMI_ROAM_5G_BOOST_PENALIZE_ALGO_LINEAR 0x1
- #define WMI_ROAM_5G_BOOST_PENALIZE_ALGO_LOG 0x2
- #define WMI_ROAM_5G_BOOST_PENALIZE_ALGO_EXP 0x3
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_scan_extended_threshold_param */
- A_UINT32 boost_threshold_5g; /** RSSI threshold above which 5GHz RSSI is favored */
- A_UINT32 penalty_threshold_5g; /** RSSI threshold below which 5GHz RSSI is penalized */
- A_UINT32 boost_algorithm_5g; /** 0 == fixed, 1 == linear, 2 == logarithm ..etc */
- A_UINT32 boost_factor_5g; /** factor by which 5GHz RSSI is boosted */
- A_UINT32 penalty_algorithm_5g; /** 0 == fixed, 1 == linear, 2 == logarithm ..etc */
- A_UINT32 penalty_factor_5g; /** factor by which 5GHz RSSI is penalized */
- A_UINT32 max_boost_5g; /** maximum boost that can be applied to a 5GHz RSSI */
- A_UINT32 max_penalty_5g; /** maximum penalty that can be applied to a 5GHz RSSI */
- A_UINT32 good_rssi_threshold; /** RSSI below which roam is kicked in by background scan, although RSSI is still good */
- } wmi_roam_scan_extended_threshold_param;
- /**
- * WMI_ROAM_SCAN_PERIOD: period for roam scan.
- * Applicable when the scan mode is Periodic or both.
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_scan_period_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** roam scan period value */
- A_UINT32 roam_scan_period; /* units = milliseconds */
- /** Aging for Roam scans */
- A_UINT32 roam_scan_age;
- /** Inactivity monitoring time to consider device is in inactive state with data count is less than roam_inactive_count */
- A_UINT32 inactivity_time_period; /* units = milliseconds */
- /** Maximum allowed data packets count during inactivity_time_period */
- A_UINT32 roam_inactive_count;
- /** New roam scan period after device is in inactivity state */
- A_UINT32 roam_scan_period_after_inactivity; /* units = milliseconds */
- /** roam full scan period value */
- A_UINT32 roam_full_scan_period; /* units = milliseconds */
- } wmi_roam_scan_period_fixed_param;
- /**
- * WMI_ROAM_SCAN_RSSI_CHANGE_THRESHOLD : RSSI delta to trigger the roam scan.
- * Rssi change threshold used when mode is Rssi change (or) Both.
- * The FW will run the roam scan when ever the RSSI changes (up or down) by the value set by this parameter.
- * Note scan is triggered based on the RSSI threshold condition set by WMI_ROAM_SCAN_RSSI_THRESHOLD
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_scan_rssi_change_threshold_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** roam scan RSSI change threshold value */
- A_UINT32 roam_scan_rssi_change_thresh;
- /** When using Hw generated beacon RSSI interrupts */
- A_UINT32 bcn_rssi_weight;
- /** Minimum delay between two 5G scans */
- A_UINT32 hirssi_delay_btw_scans;
- } wmi_roam_scan_rssi_change_threshold_fixed_param;
- #define WMI_ROAM_SCAN_CHAN_LIST_TYPE_NONE 0x1
- #define WMI_ROAM_SCAN_CHAN_LIST_TYPE_STATIC 0x2
- #define WMI_ROAM_SCAN_CHAN_LIST_TYPE_DYNAMIC 0x3
- #define WMI_ROAM_SCAN_LIST_FLAG_FLUSH_STATIC 0x1 /* Flush static roam scan channel list in FW */
- #define WMI_ROAM_SCAN_LIST_FLAG_FLUSH_DYNAMIC 0x2 /* Flush dynamic roam scan channel list in FW */
- /**
- * TLV for roaming channel list
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_chan_list_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** WMI_CHAN_LIST_TAG */
- A_UINT32 chan_list_type;
- /** # if channels to scan */
- A_UINT32 num_chan;
- A_UINT32 flags; /* refer to WMI_ROAM_SCAN_LIST_FLAG_xxx defs */
- /**
- * TLV (tag length value) parameters follow the wmi_roam_chan_list
- * structure. The TLV's are:
- * A_UINT32 channel_list[]; // in MHz
- **/
- } wmi_roam_chan_list_fixed_param;
- /** Authentication modes */
- enum {
- WMI_AUTH_NONE, /* no upper level auth */
- WMI_AUTH_OPEN, /* open */
- WMI_AUTH_SHARED, /* shared-key */
- WMI_AUTH_8021X, /* 802.1x */
- WMI_AUTH_AUTO, /* Auto */
- WMI_AUTH_WPA, /* WPA */
- WMI_AUTH_RSNA, /* WPA2/RSNA */
- WMI_AUTH_CCKM, /* CCKM */
- WMI_AUTH_WAPI, /* WAPI */
- WMI_AUTH_AUTO_PSK,
- WMI_AUTH_WPA_PSK,
- WMI_AUTH_RSNA_PSK,
- WMI_AUTH_WAPI_PSK,
- WMI_AUTH_FT_RSNA, /* 11r FT */
- WMI_AUTH_FT_RSNA_PSK,
- WMI_AUTH_RSNA_PSK_SHA256,
- WMI_AUTH_RSNA_8021X_SHA256,
- WMI_AUTH_CCKM_WPA,
- WMI_AUTH_CCKM_RSNA,
- WMI_AUTH_RSNA_FILS_SHA256,
- WMI_AUTH_RSNA_FILS_SHA384,
- WMI_AUTH_RSNA_SUITE_B_8021X_SHA256,
- WMI_AUTH_RSNA_SUITE_B_8021X_SHA384,
- WMI_AUTH_FT_RSNA_SAE,
- WMI_AUTH_FT_RSNA_SUITE_B_8021X_SHA384,
- WMI_AUTH_FT_RSNA_FILS_SHA256,
- WMI_AUTH_FT_RSNA_FILS_SHA384,
- WMI_AUTH_WPA3_SAE,
- WMI_AUTH_WPA3_OWE,
- WMI_AUTH_PASN,
- WMI_AUTH_RSNA_8021X_SHA384,
- WMI_AUTH_WPA3_SAE_SHA384,
- WMI_AUTH_FT_RSNA_SAE_SHA384,
- };
- typedef enum {
- WMI_SCAN_CLIENT_NLO = 0x1, /* 1 */
- WMI_SCAN_CLIENT_EXTSCAN, /* 2 */
- WMI_SCAN_CLIENT_ROAM, /* 3 */
- WMI_SCAN_CLIENT_P2P, /* 4 */
- WMI_SCAN_CLIENT_LPI, /* 5 */
- WMI_SCAN_CLIENT_NAN, /* 6 */
- WMI_SCAN_CLIENT_ANQP, /* 7 */
- WMI_SCAN_CLIENT_OBSS, /* 8 */
- WMI_SCAN_CLIENT_PLM, /* 9 */
- WMI_SCAN_CLIENT_HOST, /* 10 */
- } WMI_SCAN_CLIENT_ID;
- typedef struct {
- /** authentication mode (defined above) */
- A_UINT32 rsn_authmode;
- /** unicast cipher set */
- A_UINT32 rsn_ucastcipherset;
- /** mcast/group cipher set */
- A_UINT32 rsn_mcastcipherset;
- /** mcast/group management frames cipher set */
- A_UINT32 rsn_mcastmgmtcipherset;
- } wmi_rsn_params;
- /** looking for a wps enabled AP */
- #define WMI_AP_PROFILE_FLAG_WPS 0x1
- /** looking for a secure AP */
- #define WMI_AP_PROFILE_FLAG_CRYPTO 0x2
- /** looking for a PMF enabled AP */
- #define WMI_AP_PROFILE_FLAG_PMF 0x4
- /** If this flag is set roam to SAE_H2E (Hash to Element) enabled APs only */
- #define WMI_AP_PROFILE_FLAG_SAE_H2E 0x8
- /* the value used in wmi_roam_cnd_scoring_param->disable_bitmap */
- #define WLAN_ROAM_SCORING_RSSI_DISABLE 0x00000001
- #define WLAN_ROAM_SCORING_HT_DISABLE 0x00000002
- #define WLAN_ROAM_SCORING_VHT_DISABLE 0x00000004
- #define WLAN_ROAM_SCORING_BW_DISABLE 0x00000008
- #define WLAN_ROAM_SCORING_BAND_DISABLE 0x00000010
- #define WLAN_ROAM_SCORING_NSS_DISABLE 0x00000020
- #define WLAN_ROAM_SCORING_CHAN_CONGESTION_DISABLE 0x00000040
- #define WLAN_ROAM_SCORING_BEAMFORMING_DISABLE 0x00000080
- #define WLAN_ROAM_SCORING_PCL_DISABLE 0x00000100
- #define WLAN_ROAM_SCORING_HE_DISABLE 0x00000200
- #define WLAN_ROAM_SCORING_OCE_WAN_DISABLE 0x00000400
- #define WLAN_ROAM_SCORING_ETH_DISABLE 0x00000800
- #define WLAN_ROAM_SCORING_MLO_DISABLE 0x00001000
- #define WLAN_ROAM_SCORING_DISABLE_ALL 0xFFFFFFFF
- #define WLAN_ROAM_SCORING_DEFAULT_PARAM_ALLOW 0x0
- #define WLAN_ROAM_MAX_SELECTION_SCORE 10000
- #define WLAN_ROAM_SCORE_20MHZ_BW_INDEX 0
- #define WLAN_ROAM_SCORE_40MHZ_BW_INDEX 1
- #define WLAN_ROAM_SCORE_80MHZ_BW_INDEX 2
- #define WLAN_ROAM_SCORE_160MHZ_BW_INDEX 3
- #define WLAN_ROAM_SCORE_MAX_BW_INDEX 4
- #define WMI_ROAM_GET_BW_SCORE_PERCENTAGE(value32, bw_index) WMI_GET_BITS(value32, (8 * (bw_index)), 8)
- #define WMI_ROAM_SET_BW_SCORE_PERCENTAGE(value32, score_pcnt, bw_index) WMI_SET_BITS(value32, (8 * (bw_index)), 8, score_pcnt)
- #define WLAN_ROAM_SCORE_NSS_1x1_INDEX 0
- #define WLAN_ROAM_SCORE_NSS_2x2_INDEX 1
- #define WLAN_ROAM_SCORE_NSS_3x3_INDEX 2
- #define WLAN_ROAM_SCORE_NSS_4x4_INDEX 3
- #define WLAN_ROAM_SCORE_MAX_NSS_INDEX 4
- #define WMI_ROAM_GET_NSS_SCORE_PERCENTAGE(value32, nss_index) WMI_GET_BITS(value32, (8 * (nss_index)), 8)
- #define WMI_ROAM_SET_NSS_SCORE_PERCENTAGE(value32, score_pcnt, nss_index) WMI_SET_BITS(value32, (8 * (nss_index)), 8, score_pcnt)
- #define WLAN_ROAM_SCORE_BAND_2G_INDEX 0
- #define WLAN_ROAM_SCORE_BAND_5G_INDEX 1
- #define WLAN_ROAM_SCORE_BAND_6G_INDEX 2
- /* 3 is reserved */
- #define WLAN_ROAM_SCORE_MAX_BAND_NUM_INDICES 4
- #define WLAN_ROAM_SCORE_MAX_BAND_INDEX WLAN_ROAM_SCORE_MAX_BAND_NUM_INDICES
- #define WLAN_ROAM_SCORE_SECURITY_WPA_INDEX 0
- #define WLAN_ROAM_SCORE_SECURITY_WPA2_INDEX 1
- #define WLAN_ROAM_SCORE_SECURITY_WPA3_INDEX 2
- /* 3 is reserved */
- #define WLAN_ROAM_SCORE_SECURITY_MAX_NUM_INDICES 4
- #define WMI_ROAM_GET_BAND_SCORE_PERCENTAGE(value32, band_index) WMI_GET_BITS(value32, (8 * (band_index)), 8)
- #define WMI_ROAM_SET_BAND_SCORE_PERCENTAGE(value32, score_pcnt, band_index) WMI_SET_BITS(value32, (8 * (band_index)), 8, score_pcnt)
- #define WLAN_ROAM_SCORE_MAX_CHAN_CONGESTION_SLOT 16
- #define WLAN_ROAM_SCORE_DEFAULT_CONGESTION_SLOT 0
- #define WLAN_ROAM_SCORE_MAX_OCE_WAN_SLOT 16
- #define WLAN_ROAM_SCORE_DEFAULT_OCE_WAN_SLOT 0
- #define WLAN_ROAM_SCORE_320MHZ_BW_EXT_INDEX 0
- #define WLAN_ROAM_SCORE_MAX_BW_EXT_INDEX 4
- #define WLAN_ROAM_SCORE_MLSR_INDEX 0
- #define WLAN_ROAM_SCORE_MLMR_INDEX 1
- #define WLAN_ROAM_SCORE_EMLSR_INDEX 2
- #define WLAN_ROAM_SCORE_EMLMR_INDEX 3
- #define WLAN_ROAM_SCORE_MLO_INDEX 4
- #define WMI_ROAM_GET_MLO_SCORE_PERCENTAGE(value32, mlo_index) WMI_GET_BITS(value32, (8 * (mlo_index)), 8)
- #define WMI_ROAM_SET_MLO_SCORE_PERCENTAGE(value32, score_pcnt, mlo_index) WMI_SET_BITS(value32, (8 * (mlo_index)), 8, score_pcnt)
- #define WMI_ROAM_GET_SECURITY_SCORE_PERCENTAGE(value32, security_index) \
- WMI_GET_BITS(value32, (8 * (security_index)), 8)
- #define WMI_ROAM_SET_SECURITY_SCORE_PERCENTAGE(value32, score_pcnt, security_index) \
- WMI_SET_BITS(value32, (8 * (security_index)), 8, score_pcnt)
- /**
- best_rssi_threshold: Roamable AP RSSI equal or better than this threshold, full RSSI score 100. Units in dBm.
- good_rssi_threshold: Below this threshold, scoring linear percentage between rssi_good_pcnt and 100. Units in dBm.
- bad_rssi_threshold: Between good and bad RSSI threshold, scoring linear percentage between rssi_bad_pcnt and rssi_good_pcnt. Units in dBm.
- good_rssi_pcnt: Used to assigned scoring percentage of each slot between best to good RSSI threshold. Units in percentage.
- bad_rssi_pcnt: Used to assigned scoring percentage of each slot between good to bad RSSI threshold. Units in percentage.
- good_bucket_size : bucket size of slot in good zone. Units in dB.
- bad_bucket_size : bucket size of slot in bad zone. Units in dB.
- rssi_pref_5g_rssi_thresh: Below RSSI threshold, 5G AP have given preference of band percentage. Units in dBm.
- */
- /**
- The graph below explains how RSSI scoring percentage is calculated
- as the RSSI improves. In the graph, the derived parameters good_buckets
- and bad_buckets are used. These derived parameters are related to the
- specified parameters as follows:
- good_buckets =
- (best_rssi_threshold - good_rssi_threshold) / good_bucket_size
- bad_buckets =
- (good_rssi_threshold - bad_rssi_threshold) / bad_bucket_size
- | (x0,y0) (x0 = best_rssi, y0 = 100)
- p 100 |-------o
- e | |<--------- (100 - good_rssi_pct)/good_buckets
- r | |___ ,---- good_bucket_size
- c | | |
- e | |_V_
- n | |
- t | |___o (x1,y1) (x1 = good_rssi, y1 = good_rssi_pcnt)
- 80 | |
- % | |<------ (good_rssi_pcnt - bad_rssi_pcnt)/bad_buckets
- | |_____
- | | ,-- bad_bucket_size
- | | |
- | |__v__
- | |
- | |
- 40 | o------------
- | (x2,y2) (x2 = bad_rssi, y2 = bad_rssi_pcnt)
- +------o------------o-----------o------------->
- -50 -70 -80 RSSI dBm
- | excellent | good | bad | poor
- | zone | zone | zone | zone
- V V V
- BEST_THRES GOOD_THRES BAD_THRES
- */
- typedef struct {
- A_INT32 best_rssi_threshold;
- A_INT32 good_rssi_threshold;
- A_INT32 bad_rssi_threshold;
- A_UINT32 good_rssi_pcnt;
- A_UINT32 bad_rssi_pcnt;
- A_UINT32 good_bucket_size;
- A_UINT32 bad_bucket_size;
- A_INT32 rssi_pref_5g_rssi_thresh;
- } wmi_roam_cnd_rssi_scoring;
- /**
- Use macro WMI_ROAM_CND_GET/SET_BW_SCORE_PERCENTAGE to get and set the
- value respectively of bw_scoring
- BITS 0-7 :- It contains scoring percentage of 20MHz BW
- BITS 8-15 :- It contains scoring percentage of 40MHz BW
- BITS 16-23 :- It contains scoring percentage of 80MHz BW
- BITS 24-31 :- It contains scoring percentage of 160MHz BW
- Use macro WMI_ROAM_CND_GET/SET_BW_SCORE_PERCENTAGE to get and set the
- value respectively of ext_bw_scoring:
- BITS 0-7 :- It contains scoring percentage of 320MHz BW
- BITS 8-15 :- reserved
- BITS 16-23 :- reserved
- BITS 24-31 :- reserved
- The value of each index must be 0-100
- */
- typedef struct {
- A_UINT32 score_pcnt;
- } wmi_roam_cnd_bw_scoring;
- /**
- Use macro WMI_ROAM_CND_GET/SET_BAND_SCORE_PERCENTAGE to get and set the value respectively.
- BITS 0-7 :- It contains scoring percentage of 2G
- BITS 8-15 :- It contains scoring percentage of 5G
- BITS 16-23 :- reserved
- BITS 24-31 :- reserved
- The value of each index must be 0-100
- */
- typedef struct {
- A_UINT32 score_pcnt;
- } wmi_roam_cnd_band_scoring;
- /**
- Use macro WMI_ROAM_CND_GET/SET_NSS_SCORE_PERCENTAGE to get and set the value respectively.
- BITS 0-7 :- It contains scoring percentage of 1x1
- BITS 8-15 :- It contains scoring percentage of 2x2
- BITS 16-23 :- It contains scoring percentage of 3x3
- BITS 24-31 :- It contains scoring percentage of 4x4
- The value of each index must be 0-100
- */
- typedef struct {
- A_UINT32 score_pcnt;
- } wmi_roam_cnd_nss_scoring;
- /**
- score_pcnt: Contains roam score percentage of each slot of respective channel_congestion_pcnt.It is also used same BITS for slot(0-3)
- BITS 0-7 :- the scoring pcnt when AP is not advertise QBSS/ESP info
- BITS 8-15 :- SLOT_1
- BITS 16-23 :- SLOT_2
- BITS 24-31 :- SLOT_3
- BITS 32- ...
- num_slot will equally divide 100. e.g, if num_slot = 4
- slot 0 = 0-25%, slot 1 = 26-50% slot 2 = 51-75%, slot 3 = 76-100%
- */
- typedef struct {
- A_UINT32 num_slot; /* max 15 */
- A_UINT32 score_pcnt3_to_0;
- A_UINT32 score_pcnt7_to_4;
- A_UINT32 score_pcnt11_to_8;
- A_UINT32 score_pcnt15_to_12;
- } wmi_roam_cnd_esp_qbss_scoring;
- /**
- score_pcnt: Contains roam score percentage of each slot of respective channel_congestion_pcnt.It is also used same BITS for slot(0-3)
- BITS 0-7 :- the scoring pcnt when AP is not advertise QBSS/ESP info
- BITS 8-15 :- SLOT_1
- BITS 16-23 :- SLOT_2
- BITS 24-31 :- SLOT_3
- BITS 32- ...
- num_slot will equally divide 100. e.g, if num_slot = 4
- slot 0 = 0-25%, slot 1 = 26-50% slot 2 = 51-75%, slot 3 = 76-100%
- */
- typedef struct {
- A_UINT32 num_slot; /* max 15 */
- A_UINT32 score_pcnt3_to_0;
- A_UINT32 score_pcnt7_to_4;
- A_UINT32 score_pcnt11_to_8;
- A_UINT32 score_pcnt15_to_12;
- } wmi_roam_cnd_oce_wan_scoring;
- /**
- * Use macro WMI_ROAM_CND_GET/SET_SECURITY_SCORE_PERCENTAGE
- * to get and set the value respectively.
- * BITS 0-7 :- It contains scoring percentage of WPA security
- * BITS 8-15 :- It contains scoring percentage of WPA2 security
- * BITS 16-23 :- It contains scoring percentage of WPA3 security
- * BITS 24-31 :- reserved
- *
- * The value of each score must be 0-100
- */
- typedef struct {
- A_UINT32 score_pcnt;
- } wmi_roam_cnd_security_scoring;
- typedef enum {
- WMI_VENDOR_ROAM_SCORE_ALGORITHM_ID_NONE = 0, /* Legacy roam score algorithm */
- WMI_VENDOR_ROAM_SCORE_ALGORITHM_ID_RSSI_CU_BASED = 1, /* Roam score algorithm based on RSSI and CU */
- } WMI_VENDOR_ROAM_SCORE_ALGORITHM_ID;
- /**
- disable_bitmap :- Each bit will be either allow(0)/disallow(1) to considered the roam score param.
- rssi_weightage_pcnt :- RSSI weightage out of total score in percentage
- ht_weightage_pcnt :- HT weightage out of total score in percentage.
- vht_weightage_pcnt :- VHT weightage out of total score in percentage.
- he_weightage_pcnt :- 11ax weightage out of total score in percentage.
- bw_weightage_pcnt :- Bandwidth weightage out of total score in percentage.
- band_weightage_pcnt :- Band(2G/5G) weightage out of total score in percentage.
- nss_weightage_pcnt:- NSS(1x1 / 2x2) weightage out of total score in percentage.
- esp_qbss_weightage_pcnt: ESP/QBSS weightage out of total score in percentage.
- beamforming_weightage_pcnt :- Beamforming weightage out of total score in percentage.
- pcl_weightage_pcnt :- PCL weightage out of total score in percentage.
- oce_wan_weightage_pcnt :- OCE WAN metrics weightage out of total score in percentage.
- rssi_scoring :- RSSI scoring information.
- bw_scoring :- channel BW scoring percentage information.
- band_scoring : - band scording percentage information.
- nss_scoring :- NSS scoring percentage information.
- esp_qbss_scoring :- ESP/QBSS scoring percentage information
- oce_wan_scoring : OCE WAN metrics percentage information
- roam_score_delta_pcnt :- consider scanned AP as roam eligible candidate only if scanned AP score is at least roam_score_delta % better than connected AP score
- roam_score_delta_mask :- roam trigger bitmap for which roam_score_delta needs to apply. The WMI_ROAM_TRIGGER_REASON_ID enum values identify which bit within the mask is used for which roam trigger cause.
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_cnd_scoring_param */
- A_UINT32 disable_bitmap;
- A_INT32 rssi_weightage_pcnt;
- A_INT32 ht_weightage_pcnt;
- A_INT32 vht_weightage_pcnt;
- A_INT32 he_weightage_pcnt;
- A_INT32 bw_weightage_pcnt;
- A_INT32 band_weightage_pcnt;
- A_INT32 nss_weightage_pcnt;
- A_INT32 esp_qbss_weightage_pcnt;
- A_INT32 beamforming_weightage_pcnt;
- A_INT32 pcl_weightage_pcnt;
- A_INT32 oce_wan_weightage_pcnt;
- wmi_roam_cnd_rssi_scoring rssi_scoring;
- wmi_roam_cnd_bw_scoring bw_scoring;
- wmi_roam_cnd_band_scoring band_scoring;
- wmi_roam_cnd_nss_scoring nss_scoring;
- wmi_roam_cnd_esp_qbss_scoring esp_qbss_scoring;
- wmi_roam_cnd_oce_wan_scoring oce_wan_scoring;
- A_UINT32 roam_score_delta_pcnt;
- A_UINT32 roam_score_delta_mask;
- /* Vendor specific roam score algorithm ID from WMI_VENDOR_ROAM_SCORE_ALGORITHM_ID enum */
- A_UINT32 vendor_roam_score_algorithm_id;
- /*
- * During CU and low RSSI based roam triggers, consider AP as
- * roam candidate only if its roam score is better than connected AP score
- * by at least candidate_min_roam_score_delta.
- */
- A_UINT32 candidate_min_roam_score_delta;
- /*
- * For OCE Release 2, give weightage to roam candidate tx power if
- * oce_ap_tx_pwr_weightage_pcnt != 0.
- */
- A_UINT32 oce_ap_tx_pwr_weightage_pcnt;
- /*
- * For OCE Release 2, give weightage to roam candidate based on
- * advertised subnet id.
- * Only used if oce_ap_subnet_id_weightage_pcnt != 0.
- */
- A_UINT32 oce_ap_subnet_id_weightage_pcnt;
- /*
- * Give weightage to SAE-PK (Simultaneous Authentication of Equals -
- * Public Key) enabled network APs.
- * Only used if sae_pk_ap_weightage_pcnt != 0.
- */
- A_UINT32 sae_pk_ap_weightage_pcnt;
- /*
- * Give weightage to bandwidth which is greater than 160Mhz.
- */
- wmi_roam_cnd_bw_scoring ext_bw_scoring;
- /*
- * eht_weightage_pcnt :- 11be weightage out of total score in percentage.
- */
- A_UINT32 eht_weightage_pcnt;
- /*
- * mlo_weightage_pcnt :- give weightage to candidate based on MLO support.
- */
- A_UINT32 mlo_weightage_pcnt;
- /*
- * btc_score_factor :- Scale down 2.4GHz AP total score by btc_score_factor
- * during BT coex.
- * Value 0 should be ignored
- */
- A_UINT32 btc_score_factor;
- /*
- * btc_etp_factor :- Scale down 2.4GHz AP total etp value by btc_etp_factor
- * during BT coex.
- * Value 0 should be ignored
- */
- A_UINT32 btc_etp_factor;
- /* Scoring for security mode */
- A_INT32 security_weightage_pcnt;
- wmi_roam_cnd_security_scoring security_scoring;
- /* mlo_etp_weightage_pcnt:
- * Give etp weightage to candidate based on MLO support.
- * In host INI configuration, it will give boost(+) or reduction(-)
- * percentage value and host will deliver actual weighted number
- * based on 100. For example:
- * If percentage value in INI is 20, then host will give 120 (100 * 1.2)
- * as mlo_etp_weightage_pcnt.
- * If percentage value in INI is -20, then host will give 80 (100 * 0.8)
- * as mlo_etp_weightage_pcnt.
- */
- A_UINT32 mlo_etp_weightage_pcnt;
- } wmi_roam_cnd_scoring_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_score_delta_param */
- /* Roam trigger reason ID from WMI_ROAM_TRIGGER_REASON_ID */
- A_UINT32 roam_trigger_reason;
- /* Roam score delta in %.
- * Consider AP as roam candidate only if AP score is at least
- * roam_score_delta % better than connected AP score.
- * Ex: roam_score_delta = 20, and connected AP score is 4000,
- * then consider candidate AP only if its score is at least
- * 4800 (= 4000 * 120%)
- */
- A_UINT32 roam_score_delta;
- } wmi_roam_score_delta_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_cnd_min_rssi_param */
- /* Roam trigger reason ID from WMI_ROAM_TRIGGER_REASON_ID */
- A_UINT32 roam_trigger_reason;
- /*
- * Consider AP as roam candidate only if AP RSSI is better than
- * candidate_min_rssi
- */
- A_UINT32 candidate_min_rssi; /* units = dBm */
- } wmi_roam_cnd_min_rssi_param;
- /** To match an open AP, the rs_authmode should be set to WMI_AUTH_NONE
- * and WMI_AP_PROFILE_FLAG_CRYPTO should be clear.
- * To match a WEP enabled AP, the rs_authmode should be set to WMI_AUTH_NONE
- * and WMI_AP_PROFILE_FLAG_CRYPTO should be set .
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ap_profile */
- /** flags as defined above */
- A_UINT32 flags;
- /**
- * RSSI threshold value in dB: the value of the candidate AP should
- * higher by this threshold than the RSSI of the currently associated AP.
- */
- A_UINT32 rssi_threshold;
- /**
- * ssid value to be matched.
- */
- wmi_ssid ssid;
- /**
- * security params to be matched.
- */
- /** authentication mode (defined above) */
- A_UINT32 rsn_authmode;
- /** unicast cipher set */
- A_UINT32 rsn_ucastcipherset;
- /** mcast/group cipher set */
- A_UINT32 rsn_mcastcipherset;
- /** mcast/group management frames cipher set */
- A_UINT32 rsn_mcastmgmtcipherset;
- /**
- * rssi_abs_threshold value: the value of the candidate AP should
- * higher than this absolute RSSI threshold.
- * Zero means no absolute minimum RSSI is required.
- * units are the offset from the noise floor in dB.
- */
- A_UINT32 rssi_abs_thresh;
- /**
- * bg_rssi_threshold value in dB: For background scan the value of
- * the candidate AP should be higher by this threshold than the RSSI
- * of the currently associated AP.
- */
- A_UINT32 bg_rssi_threshold;
- } wmi_ap_profile;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_owe_ap_profile */
- /* OPEN SSID value when STA is connected to OWE transition AP in OWE security */
- wmi_ssid open_ssid_for_owe_transition;
- } wmi_owe_ap_profile;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_cnd_vendor_scoring_param */
- A_UINT32 tlv_header;
- /** Indicates the channel band for which these vendor scoring params needs to be applied.
- * Refer WLAN_ROAM_SCORE_MAX_BAND_INDEX for possible band_idx values.
- */
- A_UINT32 band_idx;
- /** Below RSSI/CU factor_value & factor_score param values are configured by vendor */
- A_UINT32 rssi_factor_value1;
- A_UINT32 rssi_factor_value2;
- A_UINT32 rssi_factor_value3;
- A_UINT32 rssi_factor_value4;
- A_UINT32 rssi_factor_value5;
- A_UINT32 rssi_factor_score1;
- A_UINT32 rssi_factor_score2;
- A_UINT32 rssi_factor_score3;
- A_UINT32 rssi_factor_score4;
- A_UINT32 rssi_factor_score5;
- A_UINT32 cu_factor_value1;
- A_UINT32 cu_factor_value2;
- A_UINT32 cu_factor_score1;
- A_UINT32 cu_factor_score2;
- } wmi_roam_cnd_vendor_scoring_param;
- /** Support early stop roaming scanning when finding a strong candidate AP
- * A 'strong' candidate is
- * 1) Is eligible candidate
- * (all conditions are met in existing candidate selection).
- * 2) Its RSSI is better than earlystop threshold.
- * Earlystop threshold will be relaxed as each channel is scanned.
- */
- typedef struct {
- A_UINT32 tlv_header;
- /* Minimum RSSI threshold value for early stop, unit is dB above NF. */
- A_UINT32 roam_earlystop_thres_min;
- /* Maminum RSSI threshold value for early stop, unit is dB above NF. */
- A_UINT32 roam_earlystop_thres_max;
- } wmi_roam_earlystop_rssi_thres_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_dense_thres_param */
- A_UINT32 tlv_header;
- /** RSSI threshold offset under trffic and dense env */
- A_UINT32 roam_dense_rssi_thres_offset;
- /** minimum number of APs to determine dense env */
- A_UINT32 roam_dense_min_aps;
- /** initial dense status detected by host at the time of initial connection */
- A_UINT32 roam_dense_status;
- /* traffic threshold to enable aggressive roaming in dense env; units are percent of medium occupancy, 0 - 100 */
- A_UINT32 roam_dense_traffic_thres;
- } wmi_roam_dense_thres_param;
- /* Definition for flags in wmi_roam_bg_scan_roaming_param
- * Bit 0: BG roaming enabled when we connect to 2G AP only and roaming to 5G AP only.
- * Bit 1-31: Reserved
- */
- #define WMI_ROAM_BG_SCAN_FLAGS_2G_TO_5G_ONLY 1
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_bg_scan_roaming_param */
- A_UINT32 tlv_header;
- /** RSSI threshold in dBm below which roaming will be triggered during background scan(non-roam scan). 0 will disable this threshold */
- A_UINT32 roam_bg_scan_bad_rssi_thresh;
- /** bitmap for which scan client will enable/disable background roaming. bit position is mapped to the enum WMI_SCAN_CLIENT_ID. 1 = enable, 0 = disable */
- A_UINT32 roam_bg_scan_client_bitmap;
- /** roam scan RSSI threshold for 2 GHz band.
- * offset from roam_bg_scan_bad_rssi_thresh, in dB units
- */
- A_INT32 bad_rssi_thresh_offset_2g;
- /* flags for background roaming */
- A_UINT32 flags;
- } wmi_roam_bg_scan_roaming_param;
- /*
- * If there's rx activity during rx_inactivity_ms and avg of data_rssi
- * is better than roam_data_rssi_thres, then suppress low rssi roaming.
- */
- #define WMI_ROAM_DATA_RSSI_FLAG_LOW_RSSI 0x00000001
- /*
- * If there's no rx activity during rx_inactivity_ms or avg of data_rssi
- * is better than roam_data_rssi_thres, then suppress this background roaming.
- */
- #define WMI_ROAM_DATA_RSSI_FLAG_BACKGROUND 0x00000002
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_data_rssi_roaming_param */
- A_UINT32 tlv_header;
- /* flags for when consider data_rssi,
- * valid values are OR operation of WMI_ROAM_DATA_RSSI_FLAG_ .
- * value 0 to disable the feature.
- */
- A_UINT32 flags;
- /**
- * RSSI threshold in dBm above which roaming scan will be suppressed
- * during some roaming trigger.
- */
- A_INT32 roam_data_rssi_thres;
- /** rx inactivity time, in unit of milliseconds. */
- A_UINT32 rx_inactivity_ms;
- } wmi_roam_data_rssi_roaming_param;
- /** Beacon filter wmi command info */
- #define BCN_FLT_MAX_SUPPORTED_IES 256
- #define BCN_FLT_MAX_ELEMS_IE_LIST (BCN_FLT_MAX_SUPPORTED_IES/32)
- typedef struct bss_bcn_stats {
- A_UINT32 vdev_id;
- A_UINT32 bss_bcnsdropped;
- A_UINT32 bss_bcnsdelivered;
- } wmi_bss_bcn_stats_t;
- typedef struct bcn_filter_stats {
- A_UINT32 bcns_dropped;
- A_UINT32 bcns_delivered;
- A_UINT32 activefilters;
- wmi_bss_bcn_stats_t bss_stats;
- } wmi_bcnfilter_stats_t;
- typedef struct wmi_add_bcn_filter_cmd {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_add_bcn_filter_cmd_fixed_param */
- A_UINT32 vdev_id;
- /*
- * Following this structure is the TLV:
- * A_UINT32 ie_map[BCN_FLT_MAX_ELEMS_IE_LIST];
- */
- } wmi_add_bcn_filter_cmd_fixed_param;
- typedef struct wmi_rmv_bcn_filter_cmd {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rmv_bcn_filter_cmd_fixed_param */
- A_UINT32 vdev_id;
- } wmi_rmv_bcn_filter_cmd_fixed_param;
- #define WMI_BCN_SEND_DTIM_ZERO 1
- #define WMI_BCN_SEND_DTIM_BITCTL_SET 2
- typedef struct wmi_bcn_send_from_host {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_bcn_send_from_host_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 data_len;
- union {
- A_UINT32 frag_ptr; /* Physical address of the frame */
- A_UINT32 frag_ptr_lo; /* LSBs of physical address of the frame */
- };
- A_UINT32 frame_ctrl; /* farme ctrl to setup PPDU desc */
- A_UINT32 dtim_flag; /* to control CABQ traffic */
- A_UINT32 bcn_antenna; /* Antenna for beacon transmission */
- A_UINT32 frag_ptr_hi; /* MSBs of physical address of the frame */
- } wmi_bcn_send_from_host_cmd_fixed_param;
- /* cmd to support bcn snd for all vaps at once */
- typedef struct wmi_pdev_send_bcn {
- A_UINT32 num_vdevs;
- WMI_VAR_LEN_ARRAY1(wmi_bcn_send_from_host_cmd_fixed_param, bcn_cmd);
- } wmi_pdev_send_bcn_cmd_t;
- typedef struct wmi_fd_send_from_host {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_fd_send_from_host_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 data_len;
- union {
- A_UINT32 frag_ptr; /* Physical address of the frame */
- A_UINT32 frag_ptr_lo; /* LSBs of physical address of the frame */
- };
- A_UINT32 frag_ptr_hi; /* MSBs of physical address of the frame */
- A_UINT32 frame_ctrl; /* frame ctrl to setup PPDU desc */
- } wmi_fd_send_from_host_cmd_fixed_param;
- /*
- * Control to send broadcast probe response instead of FD frames.
- * When this flag is not set then FD frame will be transmitted when
- * fd_period is non-zero
- */
- #define WMI_FILS_FLAGS_BITMAP_BCAST_PROBE_RSP 0x1
- /*
- * WMI command structure for FILS feature enable/disable
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_enable_fils_cmd_fixed_param */
- /* VDEV identifier */
- A_UINT32 vdev_id;
- A_UINT32 fd_period; /* non-zero - enable Fils Discovery frames or broadcast probe response with this period (in TU),
- * 0 - disable FD and broadcast probe response frames */
- A_UINT32 flags; /* WMI_FILS_FLAGS_BITMAP flags */
- } wmi_enable_fils_cmd_fixed_param;
- /*
- * WMI_ROAM_AP_PROFILE: AP profile of connected AP for roaming.
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_ap_profile_fixed_param */
- /** id of AP criteria */
- A_UINT32 id;
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /*
- * Following this structure are the TLVs:
- * wmi_ap_profile ap_profile; <-- AP profile info
- * wmi_roam_cnd_scoring_param roam_cnd_scoring_param
- * wmi_roam_score_delta_param roam_score_delta_param_list[]
- * wmi_roam_cnd_min_rssi_param roam_cnd_min_rssi_param_list[]
- * wmi_roam_cnd_vendor_scoring_param roam_cnd_vendor_scoring_param[]
- * wmi_owe_ap_profile owe_ap_profile[]
- * A_UINT32 authmode_list[] <-- List of authmode allowed for roaming.
- * Refer WMI_AUTH_ for authmode values.
- */
- } wmi_roam_ap_profile_fixed_param;
- /**
- * WMI_OFL_SCAN_ADD_AP_PROFILE: add an AP profile.
- */
- typedef struct {
- /** id of AP criteria */
- A_UINT32 id;
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** AP profile info */
- wmi_ap_profile ap_profile;
- } wmi_ofl_scan_add_ap_profile;
- /**
- * WMI_OFL_SCAN_REMOVE_AP_CRITERIA: remove an ap profile.
- */
- typedef struct {
- /** id of AP criteria */
- A_UINT32 id;
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- } wmi_ofl_scan_remove_ap_profile;
- /**
- * WMI_OFL_SCAN_PERIOD: period in msec for offload scan.
- * 0 will disable ofload scan and a very low value will perform a continuous
- * scan.
- */
- typedef struct {
- /** offload scan period value, used for scans used when not connected */
- A_UINT32 ofl_scan_period;
- } wmi_ofl_scan_period;
- /* Do not modify XXX_BYTES or XXX_LEN below as it is fixed by standard */
- #define ROAM_OFFLOAD_PMK_BYTES (32)
- #define ROAM_OFFLOAD_PSK_MSK_BYTES (32)
- #define ROAM_OFFLOAD_KRK_BYTES (16)
- #define ROAM_OFFLOAD_BTK_BYTES (32)
- #define ROAM_OFFLOAD_R0KH_ID_MAX_LEN (48)
- #define ROAM_OFFLOAD_NUM_MCS_SET (16)
- /* This TLV will be filled only in case roam offload for wpa2-psk/okc/ese/11r is enabled */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_offload_fixed_param */
- A_UINT32 rssi_cat_gap; /* gap for every category bucket */
- A_UINT32 prefer_5g; /* prefer select 5G candidate */
- A_UINT32 select_5g_margin;
- A_UINT32 reassoc_failure_timeout; /* reassoc failure timeout */
- A_UINT32 capability;
- A_UINT32 ht_caps_info;
- A_UINT32 ampdu_param;
- A_UINT32 ht_ext_cap;
- A_UINT32 ht_txbf;
- A_UINT32 asel_cap;
- A_UINT32 qos_enabled;
- A_UINT32 qos_caps;
- A_UINT32 wmm_caps;
- A_UINT32 mcsset[ROAM_OFFLOAD_NUM_MCS_SET>>2]; /* since this 4 byte aligned, we don't declare it as tlv array */
- A_UINT32 handoff_delay_for_rx; /* In msec. Delay Hand-Off by this duration to receive pending Rx frames from current BSS */
- A_UINT32 max_mlme_sw_retries; /* maximum number of software retries for preauth and reassoc req */
- A_UINT32 no_ack_timeout; /* In msec. duration to wait before another SW retry made if no ack seen for previous frame */
- A_UINT32 roam_candidate_validity_time; /* In msec. validity duration of each entry in roam cache. If the value is 0x0, this field should be disregarded. */
- A_UINT32 roam_to_current_bss_disable; /* Disable roaming to current bss */
- } wmi_roam_offload_tlv_param;
- /* flags for 11i offload */
- #define WMI_ROAM_OFFLOAD_FLAG_OKC_ENABLED 0 /* okc is enabled */
- #define WMI_ROAM_OFFLOAD_FLAG_PMK_CACHE_DISABLED 1 /* pmk caching is disabled */
- #define WMI_ROAM_OFFLOAD_FLAG_SAE_SAME_PMKID 2 /* Use same PMKID for WPA3 SAE roaming */
- /* from bit 3 to bit 31 are reserved */
- #define WMI_SET_ROAM_OFFLOAD_OKC_ENABLED(flag) do { \
- (flag) |= (1 << WMI_ROAM_OFFLOAD_FLAG_OKC_ENABLED); \
- } while (0)
- #define WMI_SET_ROAM_OFFLOAD_OKC_DISABLED(flag) do { \
- (flag) &= ~(1 << WMI_ROAM_OFFLOAD_FLAG_OKC_ENABLED); \
- } while (0)
- #define WMI_GET_ROAM_OFFLOAD_OKC_ENABLED(flag) \
- ((flag) & (1 << WMI_ROAM_OFFLOAD_FLAG_OKC_ENABLED))
- #define WMI_SET_ROAM_OFFLOAD_PMK_CACHE_ENABLED(flag) \
- do { \
- (flag) &= ~(1 << WMI_ROAM_OFFLOAD_FLAG_PMK_CACHE_DISABLED); \
- } while (0)
- #define WMI_SET_ROAM_OFFLOAD_PMK_CACHE_DISABLED(flag) \
- do { \
- (flag) |= (1 << WMI_ROAM_OFFLOAD_FLAG_PMK_CACHE_DISABLED); \
- } while (0)
- #define WMI_GET_ROAM_OFFLOAD_PMK_CACHE_DISABLED(flag) \
- ((flag) & (1 << WMI_ROAM_OFFLOAD_FLAG_PMK_CACHE_DISABLED))
- /* This TLV will be filled only in case of wpa-psk/wpa2-psk/wpa3 */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_11i_offload_fixed_param */
- A_UINT32 flags; /** flags. see WMI_ROAM_OFFLOAD_FLAG_ above */
- A_UINT32 pmk[ROAM_OFFLOAD_PMK_BYTES>>2]; /* pmk offload. As this 4 byte aligned, we don't declare it as tlv array */
- A_UINT32 pmk_len; /**the length of pmk. in normal case it should be 32, but for LEAP, is should be 16*/
- A_UINT32 pmk_ext_len; /** the length of extended pmk. in normal case it should be 0, but for suiteB, it should be 16*/
- A_UINT32 pmk_ext[ROAM_OFFLOAD_PMK_BYTES>>2]; /* pmk ext offload. 16 bytes for suiteB */
- } wmi_roam_11i_offload_tlv_param;
- /* This TLV will be filled only in case of 11R*/
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_11r_offload_fixed_param */
- A_UINT32 mdie_present;
- A_UINT32 mdid;
- A_UINT32 r0kh_id[ROAM_OFFLOAD_R0KH_ID_MAX_LEN>>2];
- A_UINT32 r0kh_id_len;
- A_UINT32 psk_msk[ROAM_OFFLOAD_PSK_MSK_BYTES>>2]; /* psk/msk offload. As this 4 byte aligned, we don't declare it as tlv array */
- A_UINT32 psk_msk_len; /**length of psk_msk*/
- A_UINT32 psk_msk_ext_len; /**length of psk_msk_ext*/
- A_UINT32 psk_msk_ext[ROAM_OFFLOAD_PSK_MSK_BYTES>>2];
- A_UINT32 adaptive_11r; /* FW needs to perform adaptive 11r roaming */
- /*
- * FW needs to perform FT initial moiblity association instead of
- * FT roaming for deauth roam trigger
- * 0 - To disable FT-IM
- * 1 - To enable FT-IM
- */
- A_UINT32 ft_im_for_deauth;
- /*
- * FW can prefer doing over-the-ds fast BSS transition instead of
- * over-the-air if associated and target AP are both capable of FT over DS.
- * 0 - To disable FT-over-DS
- * 1 - To enable FT-over-DS
- */
- A_UINT32 ft_over_ds_enable;
- } wmi_roam_11r_offload_tlv_param;
- /* This TLV will be filled only in case of ESE */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_ese_offload_fixed_param */
- A_UINT32 krk[ROAM_OFFLOAD_KRK_BYTES>>2]; /* KRK offload. As this 4 byte aligned, we don't declare it as tlv array */
- A_UINT32 btk[ROAM_OFFLOAD_BTK_BYTES>>2]; /* BTK offload. As this 4 byte aligned, we don't declare it as tlv array */
- } wmi_roam_ese_offload_tlv_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_sae_offload_tlv_param */
- /* SAE SPMK timeout value in seconds after which FW need to perform SAE full authentication to derive new SPMK */
- A_UINT32 spmk_timeout;
- } wmi_roam_sae_offload_tlv_param;
- typedef enum {
- WMI_BL_REASON_NUD_FAILURE = 1,
- WMI_BL_REASON_STA_KICKOUT,
- WMI_BL_REASON_ROAM_HO_FAILURE,
- /* Assoc resp with status code 71 - POOR RSSI CONDITIONS */
- WMI_BL_REASON_ASSOC_REJECT_POOR_RSSI,
- /* Assoc resp with status code 34 - DENIED_POOR_CHANNEL_CONDITIONS */
- WMI_BL_REASON_ASSOC_REJECT_OCE,
- WMI_BL_REASON_USERSPACE_BL,
- WMI_BL_REASON_USERSPACE_AVOID_LIST,
- WMI_BL_REASON_BTM_DIASSOC_IMMINENT,
- WMI_BL_REASON_BTM_BSS_TERMINATION,
- WMI_BL_REASON_BTM_MBO_RETRY,
- /* Reassoc resp with status code 34 - DENIED_POOR_CHANNEL_CONDITIONS */
- WMI_BL_REASON_REASSOC_RSSI_REJECT,
- /* Reassoc resp with status code 17 - DENIED_NO_MORE_STAS */
- WMI_BL_REASON_REASSOC_NO_MORE_STAS,
- WMI_BL_REASON_BASIC_RATES_MIS_MATCH, /* Status code 18 */
- WMI_BL_REASON_EHT_NOT_SUPPORTED, /* Status code 135 */
- WMI_BL_REASON_EXISTING_MLD_ASSOCIATION, /* Status code 130 */
- WMI_BL_REASON_LINK_TRANSMITTED_NOT_ACCEPTED, /* Status code 139 */
- WMI_BL_REASON_DENIED_OTHER_REASON,
- WMI_BL_REASON_BTM_LOAD_BALANCE,
- } WMI_BLACKLIST_REASON_ID;
- typedef enum {
- WMI_BL_SOURCE_HOST = 1,
- WMI_BL_SOURCE_FW,
- } WMI_BLACKLIST_SOURCE_ID;
- #define WMI_MAX_FAILED_LINK_COMBO_COUNT 10
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_blacklist_with_timeout_tlv_param */
- A_UINT32 tlv_header;
- /** Blaclisted AP mac address */
- wmi_mac_addr bssid;
- /** How much time in milliseconds to keep AP in blacklist */
- A_UINT32 timeout;
- /** RSSI (dBm units) when put in blacklist */
- A_INT32 rssi;
- /* Blacklist reason from WMI_BLACKLIST_REASON_ID */
- A_UINT32 reason;
- /* Source of adding AP to BL from WMI_BLACKLIST_SOURCE_ID */
- A_UINT32 source;
- /*
- * timestamp is the absolute time w.r.t host timer which is synchronized
- * between the host and target.
- * This timestamp indicates the time when AP added to blacklist.
- */
- A_UINT32 timestamp;
- /* Original timeout value in milli seconds when AP added to BL */
- A_UINT32 original_timeout;
- /*
- * The disallow link ID bitmap indicates links which should not be allowed
- * for any assoc or partner link combination.
- * If all links for MLD AP are disallowed, then the value shall be
- * 0xffffffff.
- */
- A_UINT32 disallow_linkid_bitmap;
- /* MLD address of AP */
- wmi_mac_addr mld;
- /* List of link combinations for which association is failed */
- A_UINT32 ml_failed_links_combo_bitmap[WMI_MAX_FAILED_LINK_COMBO_COUNT];
- /* Failed link combo count filled in ml_failed_links_combo_bitmap[] */
- A_UINT32 ml_failed_link_combo_count;
- } wmi_roam_blacklist_with_timeout_tlv_param;
- /** WMI_ROAM_BLACKLIST_EVENT: generated whenever STA needs to move AP to blacklist for a particluar time
- * Ex: AP which sends BTM request with disassoc imminent is set should be
- * moved to blacklist until disassociation timer expires
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_blacklist_event_fixed_param */
- A_UINT32 vdev_id;
- /* This TLV is followed by further TLVs:
- * wmi_roam_blacklist_with_timeout_tlv_param blacklist_with_timeout[]
- */
- } wmi_roam_blacklist_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- /** candidate AP mac address */
- wmi_mac_addr bssid;
- } wmi_roam_pmkid_request_tlv_param;
- /** WMI_ROAM_PMKID_REQUEST_EVENT: generated whenever FW needs the PMKID while roaming **/
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_pmkid_request_event_fixed_param */
- A_UINT32 vdev_id;
- /* This TLV is followed by further TLVs:
- * wmi_roam_pmkid_request_tlv_param pmkid_request[]
- */
- } wmi_roam_pmkid_request_event_fixed_param;
- /** WMI_ROAM_EVENT: roam event triggering the host roam logic.
- * generated when ever a better AP is found in the recent roam scan (or)
- * when beacon miss is detected (or) when a DEAUTH/DISASSOC is received
- * from the current AP.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** reason for roam event */
- A_UINT32 reason;
- /** associated AP's RSSI calculated by FW when reason code is WMI_ROAM_REASON_LOW_RSSI */
- A_UINT32 rssi;
- /** roam notification */
- A_UINT32 notif;
- /** roam notification param
- * Refer to WMI_ROAM_NOTIF_ defs to interpret the notif_params value.
- * notif_params contains roam invoke fail reason from
- * wmi_roam_invoke_error_t if reason is WMI_ROAM_REASON_INVOKE_ROAM_FAIL.
- */
- A_UINT32 notif_params;
- /** roam notification param1
- * Refer to WMI_ROAM_NOTIF_ defs to interpret the notif_params1 value.
- * notif_params1 is exact frame length of deauth or disassoc if reason
- * is WMI_ROAM_REASON_DEAUTH.
- */
- A_UINT32 notif_params1;
- } wmi_roam_event_fixed_param;
- #define WMI_ROAM_BSS_INFO_FLAG_IS_MLD 0
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_bss_info_param */
- /*
- * bit0: WMI_ROAM_BSS_INFO_FLAG_IS_MLD
- */
- A_UINT32 flags;
- /*
- * mld score if WMI_ROAM_BSS_INFO_FLAG_IS_MLD set, otherwise link score
- */
- A_UINT32 score;
- /*
- * mld address if WMI_ROAM_BSS_INFO_FLAG_IS_MLD set, otherwise link address
- */
- wmi_mac_addr mac_addr;
- } wmi_roam_bss_info_param;
- /* roam_reason: bits 0-3 */
- #define WMI_ROAM_REASON_INVALID 0x0 /** invalid reason. Do not interpret reason field */
- #define WMI_ROAM_REASON_BETTER_AP 0x1 /** found a better AP */
- #define WMI_ROAM_REASON_BMISS 0x2 /** beacon miss detected */
- #define WMI_ROAM_REASON_LOW_RSSI 0x3 /** connected AP's low RSSI condition detected */
- #define WMI_ROAM_REASON_SUITABLE_AP 0x4 /** found another AP that matches
- SSID and Security profile in
- WMI_ROAM_AP_PROFILE, found during scan
- triggered upon FINAL_BMISS **/
- #define WMI_ROAM_REASON_HO_FAILED 0x5 /** LFR3.0 roaming failed, indicate the disconnection to host */
- /** WMI_ROAM_REASON_INVOKE_ROAM_FAIL:
- * Result code of WMI_ROAM_INVOKE_CMDID.
- * Any roaming failure before reassociation will be indicated to host
- * with this reason.
- * Any roaming failure after reassociation will be indicated to host with
- * WMI_ROAM_REASON_HO_FAILED no matter WMI_ROAM_INVOKE_CMDID is called or not.
- */
- #define WMI_ROAM_REASON_INVOKE_ROAM_FAIL 0x6
- #define WMI_ROAM_REASON_RSO_STATUS 0x7
- #define WMI_ROAM_REASON_BTM 0x8 /** Roaming because of BTM request received */
- #define WMI_ROAM_REASON_DEAUTH 0x9 /** deauth/disassoc received */
- /* reserved up through 0xF */
- /* subnet status: bits 4-5 */
- typedef enum
- {
- WMI_ROAM_SUBNET_CHANGE_STATUS_UNKNOWN = 0,
- WMI_ROAM_SUBNET_CHANGE_STATUS_UNCHANGED,
- WMI_ROAM_SUBNET_CHANGE_STATUS_CHANGED,
- } wmi_roam_subnet_change_status;
- #define WMI_ROAM_SUBNET_CHANGE_STATUS_MASK 0x30
- #define WMI_ROAM_SUBNET_CHANGE_STATUS_SHIFT 4
- #define WMI_SET_ROAM_SUBNET_CHANGE_STATUS(roam_reason, status) \
- do { \
- (roam_reason) |= \
- (((status) << WMI_ROAM_SUBNET_CHANGE_STATUS_SHIFT) & \
- WMI_ROAM_SUBNET_CHANGE_STATUS_MASK); \
- } while (0)
- #define WMI_GET_ROAM_SUBNET_CHANGE_STATUS(roam_reason) \
- (((roam_reason) & WMI_ROAM_SUBNET_CHANGE_STATUS_MASK) >> \
- WMI_ROAM_SUBNET_CHANGE_STATUS_SHIFT)
- #define WMI_ROAM_REQUEST_HOST_HW_MODE_CHANGE_MASK 0x40
- #define WMI_ROAM_REQUEST_HOST_HW_MODE_CHANGE_SHIFT 6
- #define WMI_SET_ROAM_REQUEST_HOST_HW_MODE_CHANGE(roam_reason, status) \
- do { \
- (roam_reason) |= \
- (((status) << WMI_ROAM_REQUEST_HOST_HW_MODE_CHANGE_SHIFT) & \
- WMI_ROAM_REQUEST_HOST_HW_MODE_CHANGE_MASK); \
- } while (0)
- #define WMI_GET_ROAM_REQUEST_HOST_HW_MODE_CHANGE(roam_reason) \
- (((roam_reason) & WMI_ROAM_REQUEST_HOST_HW_MODE_CHANGE_MASK) >> \
- WMI_ROAM_REQUEST_HOST_HW_MODE_CHANGE_SHIFT)
- /* Bits 0-3: stores 4 LSbs of trigger reason.
- * Old host will get trigger reasons <= 15 from this bitfield.
- * Bit 7 will be 1 always to indicate that bits 8-15 are valid.
- * Bits 8-15: full trigger_reason, including values > 15.
- * New host will gett full trigger_reason from this bitfield.
- * Bits 8-11 and bits 0-3 store matching values.
- */
- #define WMI_SET_ROAM_EXT_TRIGGER_REASON(roam_reason, trigger_reason) \
- do { \
- (roam_reason) |= (trigger_reason & 0xf); \
- (roam_reason) |= 0x80; \
- (roam_reason) |= ((trigger_reason & 0xff) << 8); \
- } while (0)
- /* roaming notification */
- #define WMI_ROAM_NOTIF_INVALID 0x0 /** invalid notification. Do not interpret notif field */
- #define WMI_ROAM_NOTIF_ROAM_START 0x1 /** indicate that roaming is started. sent only in non WOW state */
- #define WMI_ROAM_NOTIF_ROAM_ABORT 0x2 /** indicate that roaming is aborted. sent only in non WOW state */
- #define WMI_ROAM_NOTIF_ROAM_REASSOC 0x3 /** indicate that reassociation is done. sent only in non WOW state */
- #define WMI_ROAM_NOTIF_SCAN_MODE_SUCCESS 0x4 /** indicate that roaming scan mode is successful */
- #define WMI_ROAM_NOTIF_SCAN_MODE_FAIL 0x5 /** indicate that roaming scan mode is failed due to internal roaming state */
- #define WMI_ROAM_NOTIF_DISCONNECT 0x6 /** indicate that roaming not allowed due BTM req */
- #define WMI_ROAM_NOTIF_SUBNET_CHANGED 0x7 /** indicate that subnet has changed */
- #define WMI_ROAM_NOTIF_SCAN_START 0x8 /** indicate roam scan start, notif_params to be sent as WMI_ROAM_TRIGGER_REASON_ID */
- #define WMI_ROAM_NOTIF_DEAUTH_RECV 0x9 /** indicate deauth received, notif_params to be sent as reason code, notif_params1 to be sent as frame length */
- #define WMI_ROAM_NOTIF_DISASSOC_RECV 0xa /** indicate disassoc received, notif_params to be sent as reason code, notif_params1 to be sent as frame length */
- #define WMI_ROAM_NOTIF_SCAN_MODE_SUCCESS_WITH_HO_FAIL 0xb /** indicate that roaming scan mode is successful but cause disconnection and subsequent
- ** WMI_ROAM_REASON_HO_FAILED is event expected */
- #define WMI_ROAM_NOTIF_SCAN_END 0xc /** indicate roam scan end, notif_params to be sent as WMI_ROAM_TRIGGER_REASON_ID */
- /**whenever RIC request information change, host driver should pass all ric related information to firmware (now only support tsepc)
- * Once, 11r roaming happens, firmware can generate RIC request in reassoc request based on this information
- */
- typedef struct
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ric_request_fixed_param */
- A_UINT32 vdev_id; /**unique id identifying the VDEV, generated by the caller*/
- A_UINT32 num_ric_request; /**number of ric request ie send to firmware.(max value is 2 now)*/
- A_UINT32 is_add_ric; /**support add ric or delete ric*/
- } wmi_ric_request_fixed_param;
- /** tspec element: refer to 8.4.2.32 of 802.11 2012 spec
- * these elements are used to construct tspec field in RIC request, which allow station to require specific TS when 11r roaming
- */
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 ts_info; /** bits value of TS Info field.*/
- A_UINT32 nominal_msdu_size; /**Nominal MSDU Size field*/
- A_UINT32 maximum_msdu_size; /**The Maximum MSDU Size field*/
- A_UINT32 min_service_interval; /**The Minimum Service Interval field*/
- A_UINT32 max_service_interval; /**The Maximum Service Interval field*/
- A_UINT32 inactivity_interval; /**The Inactivity Interval field*/
- A_UINT32 suspension_interval; /**The Suspension Interval field*/
- A_UINT32 svc_start_time; /**The Service Start Time field*/
- A_UINT32 min_data_rate; /**The Minimum Data Rate field*/
- A_UINT32 mean_data_rate; /**The Mean Data Rate field*/
- A_UINT32 peak_data_rate; /**The Peak Data Rate field*/
- A_UINT32 max_burst_size; /**The Burst Size field*/
- A_UINT32 delay_bound; /**The Delay Bound field*/
- A_UINT32 min_phy_rate; /**The Minimum PHY Rate field*/
- A_UINT32 surplus_bw_allowance; /**The Surplus Bandwidth Allowance field*/
- A_UINT32 medium_time; /**The Medium Time field,in units of 32 us/s.*/
- } wmi_ric_tspec;
- /* flags for roam_invoke_cmd */
- /* add this channel into roam cache channel list after this command is finished */
- #define WMI_ROAM_INVOKE_FLAG_ADD_CH_TO_CACHE 0
- /* indicate to host of failure if WMI_ROAM_INVOKE_CMDID. */
- #define WMI_ROAM_INVOKE_FLAG_REPORT_FAILURE 1
- /* during host-invoked roaming, don't send null data frame to AP */
- #define WMI_ROAM_INVOKE_FLAG_NO_NULL_FRAME_TO_AP 2
- /* start extra full scan if no candidate found in previous scan */
- #define WMI_ROAM_INVOKE_FLAG_FULL_SCAN_IF_NO_CANDIDATE 3
- /* when bit is set:
- * Candidate selection algo will based on fw score algo.
- * Which means configurations like wmi_roam_score_delta_param,
- * wmi_configure_roam_trigger_parameters is also configurable for
- * host_invoke roam, as well as consider current BSS score as
- * score algo input.
- * when bit is not set:
- * Candidate selection algo will ignore score and above configurations
- * and ignore current BSS score.
- */
- #define WMI_ROAM_INVOKE_FLAG_SELECT_CANDIDATE_CONSIDER_SCORE 4
- /* from bit 5 to bit 31 are reserved */
- #define WMI_SET_ROAM_INVOKE_ADD_CH_TO_CACHE(flag) do { \
- (flag) |= (1 << WMI_SET_ROAM_INVOKE_ADD_CH_TO_CACHE); \
- } while (0)
- #define WMI_CLEAR_ROAM_INVOKE_ADD_CH_TO_CACHE(flag) do { \
- (flag) &= ~(1 << WMI_SET_ROAM_INVOKE_ADD_CH_TO_CACHE); \
- } while (0)
- #define WMI_GET_ROAM_INVOKE_ADD_CH_TO_CACHE(flag) \
- ((flag) & (1 << WMI_SET_ROAM_INVOKE_ADD_CH_TO_CACHE))
- #define WMI_ROAM_INVOKE_SCAN_MODE_FIXED_CH 0 /* scan given channel only */
- #define WMI_ROAM_INVOKE_SCAN_MODE_CACHE_LIST 1 /* scan cached channel list */
- #define WMI_ROAM_INVOKE_SCAN_MODE_FULL_CH 2 /* scan full channel */
- #define WMI_ROAM_INVOKE_SCAN_MODE_SKIP 3 /* no scan is performed. use beacon/probe resp given by the host */
- #define WMI_ROAM_INVOKE_SCAN_MODE_CACHE_MAP 4 /* scan cached channel map */
- #define WMI_ROAM_INVOKE_AP_SEL_FIXED_BSSID 0 /* roam to given BSSID only */
- #define WMI_ROAM_INVOKE_AP_SEL_ANY_BSSID 1 /* roam to any BSSID */
- enum wlan_roam_invoke_reason {
- ROAM_INVOKE_REASON_UNDEFINED = 0,
- /* FW will use default parameters to do roam scan, ignore other parameters like WLM, etc. */
- ROAM_INVOKE_REASON_NUD_FAILURE, /* Neighbor Unreachable Detection */
- ROAM_INVOKE_REASON_USER_SPACE,
- };
- /** WMI_ROAM_INVOKE_CMD: command to invoke roaming forcefully
- *
- if <roam_scan_ch_mode> is zero and <channel_no> is not given, roaming is not executed.
- if <roam_ap_sel_mode> is zero and <BSSID) is not given, roaming is not executed
- This command can be used to add specific channel into roam cached channel list by following
- <roam_scan_ch_mode> = 0
- <roam_ap_sel_mode> = 0
- <roam_delay> = 0
- <flag> |= WMI_ROAM_INVOKE_FLAG_ADD_CH_TO_CACHE
- <BSSID> = do not fill (there will be no actual roaming because of ap_sel_mode is zero, but no BSSID is given)
- <channel_no> = channel list to be added
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_invoke_fixed_param */
- A_UINT32 vdev_id; /** Unique id identifying the VDEV on which roaming is invoked */
- A_UINT32 flags; /** flags. see WMI_ROAM_INVOKE_FLAG_ above */
- A_UINT32 roam_scan_mode; /** see WMI_ROAM_INVOKE_SCAN_ above */
- A_UINT32 roam_ap_sel_mode; /** see WMI_ROAM_INVOKE_AP_SEL_ above */
- A_UINT32 roam_delay; /** 0 = immediate roam, 1-2^32 = roam after this delay (msec) */
- A_UINT32 num_chan; /** # if channels to scan. In the TLV channel_list[] */
- A_UINT32 num_bssid; /** number of bssids. In the TLV bssid_list[] */
- A_UINT32 num_buf; /** number of buffers In the TLV bcn_prb_buf_list[] */
- A_UINT32 reason; /** reason of invoke roam, see enum wlan_roam_invoke_reason */
- /**
- * TLV (tag length value) parameters follows roam_invoke_req
- * The TLV's are:
- * A_UINT32 channel_list[]; // in MHz
- * wmi_mac_addr bssid_list[];
- * wmi_tlv_buf_len_param bcn_prb_buf_list[];
- * A_UINT8 bcn_prb_frm[];
- */
- } wmi_roam_invoke_cmd_fixed_param;
- /* Definition for op_bitmap */
- enum {
- ROAM_FILTER_OP_BITMAP_BLACK_LIST = 0x1,
- ROAM_FILTER_OP_BITMAP_WHITE_LIST = 0x2,
- ROAM_FILTER_OP_BITMAP_PREFER_BSSID = 0x4,
- ROAM_FILTER_OP_BITMAP_LCA_DISALLOW = 0x8,
- ROAM_FILTER_OP_BITMAP_RSSI_REJECTION_OCE = 0x10,
- };
- /** lca_enable_source_bitmap */
- #define WMI_ROAM_LCA_DISALLOW_SOURCE_PER 0x1
- #define WMI_ROAM_LCA_DISALLOW_SOURCE_BMISS 0x2
- #define WMI_ROAM_LCA_DISALLOW_SOURCE_LOW_RSSI 0x4
- #define WMI_ROAM_LCA_DISALLOW_SOURCE_HIGH_RSSI 0x8
- #define WMI_ROAM_LCA_DISALLOW_SOURCE_PERIODIC 0x10
- #define WMI_ROAM_LCA_DISALLOW_SOURCE_MAWC 0x20 /* MAWC = Motion Aided Wifi connectivity */
- #define WMI_ROAM_LCA_DISALLOW_SOURCE_DENSE 0x40
- #define WMI_ROAM_LCA_DISALLOW_SOURCE_BACKGROUND 0x80
- #define WMI_ROAM_LCA_DISALLOW_SOURCE_FORCED 0x100
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_rejection_list_config_param */
- A_UINT32 tlv_header;
- /** BSSID of AP, who reject (re-)assoc due to low RSSI */
- wmi_mac_addr bssid;
- /** Disallowed AP for certain duration, in units of milliseconds */
- A_UINT32 remaining_disallow_duration;
- /** AP will be allowed for candidate, when AP RSSI better than expected RSSI units in dBm */
- A_INT32 requested_rssi;
- } wmi_roam_rejection_list_config_param;
- typedef wmi_roam_rejection_list_config_param wmi_roam_rssi_rejection_oce_config_param; /* retain old struct name as an alias for the new name */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_filter_list_fixed_param */
- A_UINT32 vdev_id; /** Unique id identifying the VDEV on which roaming filter is adopted */
- A_UINT32 flags; /** flags for filter */
- A_UINT32 op_bitmap; /** 32 bit bitmap to be set on. bit0 = first param, bit 1 = second param...etc. Can be or'ed */
- A_UINT32 num_bssid_black_list; /* number of blacklist in the TLV variable bssid_black_list */
- A_UINT32 num_ssid_white_list; /* number of whitelist in the TLV variable ssid_white_list */
- A_UINT32 num_bssid_preferred_list; /* only for lfr 3.0. number of preferred list & factor in the TLV */
- A_UINT32 num_rssi_rejection_ap; /** number of list of AP who rejected STA due to low RSSI */
- A_UINT32 delta_rssi; /** (dB units) when AB in RSSI blacklist improved by at least delta_rssi, it will be removed from blacklist */
- /**
- * TLV (tag length value) parameters follows roam_filter_list_cmd
- * The TLV's are:
- * wmi_mac_addr bssid_black_list[];
- * wmi_ssid ssid_white_list[];
- * wmi_mac_addr bssid_preferred_list[];
- * A_UINT32 bssid_preferred_factor[];
- * wmi_roam_lca_disallow_config_tlv_param lca_disallow_param[0/1] (opt)
- * wmi_roam_rejection_list_config_param rssi_rejection_list[]
- */
- } wmi_roam_filter_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_lca_disallow_config_tlv_param */
- A_UINT32 disallow_duration; /** How long LCA AP will be disallowed before it can be a roaming candidate again, in units of seconds */
- A_UINT32 rssi_channel_penalization; /** How much RSSI will be penalized if candidate(s) are found in the same channel as disallowed AP's, in units of db */
- A_UINT32 num_disallowed_aps; /** How many APs the target should maintain in its LCA (Last Connected AP) list */
- A_UINT32 disallow_lca_enable_source_bitmap; /** disallow LCA logic is enabled only when trigger sources are matched with corresponding bit (see WMI_ROAM_LCA_DISALLOW_SOURCE constants) */
- } wmi_roam_lca_disallow_config_tlv_param;
- typedef struct {
- A_UINT8 address[4]; /* IPV4 address in Network Byte Order */
- } WMI_IPV4_ADDR;
- typedef struct _WMI_IPV6_ADDR {
- A_UINT8 address[16]; /* IPV6 in Network Byte Order */
- } WMI_IPV6_ADDR;
- /* flags for subnet change detection */
- #define WMI_ROAM_SUBNET_CHANGE_FLAG_IP4_ENABLED 0
- #define WMI_ROAM_SUBNET_CHANGE_FLAG_IP6_ENABLED 1
- /* bit 2 to bit 31 are reserved */
- /* set IPv4 enabled/disabled flag and get the flag */
- #define WMI_SET_ROAM_SUBNET_CHANGE_FLAG_IP4_ENABLED(flag) do { \
- (flag) |= (1 << WMI_ROAM_SUBNET_CHANGE_FLAG_IP4_ENABLED); \
- } while (0)
- #define WMI_SET_ROAM_SUBNET_CHANGE_FLAG_IP4_DISABLED(flag) do { \
- (flag) &= ~(1 << WMI_ROAM_SUBNET_CHANGE_FLAG_IP4_ENABLED); \
- } while (0)
- #define WMI_GET_ROAM_SUBNET_CHANGE_FLAG_IP4_ENABLED(flag) \
- ((flag) & (1 << WMI_ROAM_SUBNET_CHANGE_FLAG_IP4_ENABLED))
- /* set IPv6 enabled flag, disabled and get the flag */
- #define WMI_SET_ROAM_SUBNET_CHANGE_FLAG_IP6_ENABLED(flag) do { \
- (flag) |= (1 << WMI_ROAM_SUBNET_CHANGE_FLAG_IP6_ENABLED); \
- } while (0)
- #define WMI_SET_ROAM_SUBNET_CHANGE_FLAG_IP6_DISABLED(flag) do { \
- (flag) &= ~(1 << WMI_ROAM_SUBNET_CHANGE_FLAG_IP6_ENABLED); \
- } while (0)
- #define WMI_GET_ROAM_SUBNET_CHANGE_FLAG_IP6_ENABLED(flag) \
- ((flag) & (1 << WMI_ROAM_SUBNET_CHANGE_FLAG_IP6_ENABLED))
- /**
- * WMI_ROAM_SUBNET_CHANGE_CONFIG : Pass the gateway IP and MAC addresses
- * to FW. FW uses these parameters for subnet change detection.
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_subnet_change_config_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** IPv4/IPv6 enabled/disabled */
- /** This flag sets the WMI_SET_ROAM_SUBNET_CHANGE_FLAG_xxx_ENABLED/DISABLED */
- A_UINT32 flag;
- /** Gateway MAC address */
- wmi_mac_addr inet_gw_mac_addr;
- /** IP addresses */
- WMI_IPV4_ADDR inet_gw_ip_v4_addr;
- WMI_IPV6_ADDR inet_gw_ip_v6_addr;
- /** Number of software retries for ARP/Neighbor solicitation request */
- A_UINT32 max_retries;
- /** timeout in milliseconds for each ARP request*/
- A_UINT32 timeout;
- /** number of skipped aps **/
- A_UINT32 num_skip_subnet_change_detection_bssid_list;
- /**
- * TLV (tag length value) parameters follows roam_subnet_change_config_cmd
- * structure. The TLV's are:
- * wmi_mac_addr skip_subnet_change_detection_bssid_list [];
- **/
- } wmi_roam_subnet_change_config_fixed_param;
- typedef enum {
- /** No change in scan mode, use legacy modes */
- ROAM_TRIGGER_SCAN_MODE_NONE = 0,
- /** Trigger only partial roam scan */
- ROAM_TRIGGER_SCAN_MODE_PARTIAL,
- /** Trigger only FULL roam scan */
- ROAM_TRIGGER_SCAN_MODE_FULL,
- /** Don't trigger any roam scan and disconnect from AP */
- ROAM_TRIGGER_SCAN_MODE_NO_SCAN_DISCONNECTION,
- } WMI_ROAM_TRIGGER_SCAN_MODE;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_configure_roam_trigger_parameters */
- A_UINT32 trigger_reason; /** Roam trigger reason from WMI_ROAM_TRIGGER_REASON_ID */
- A_UINT32 enable; /** 0 - Disable, non-zero - enable */
- A_UINT32 scan_mode; /** Scan mode from WMI_ROAM_TRIGGER_SCAN_MODE */
- /** consider roam trigger if connected AP RSSI is worse than trigger_rssi_threshold */
- A_INT32 trigger_rssi_threshold; /* Units in dBm */
- /*
- * Consider 2.4GHz AP as roam candidate only if AP RSSI is better than
- * cand_ap_min_rssi_threshold
- * If valid (non-zero) cand_ap_min_rssi_threshold_5g and
- * cand_ap_min_rssi_threshold_6g values are provided,
- * then cand_ap_min_rssi_threshold should only be applied to 2.4 GHz APs.
- * But if cand_ap_min_rssi_threshold_5g and cand_ap_min_rssi_threshold_6g
- * are zeros, then cand_ap_min_rssi_threshold should be applied to all APs.
- */
- A_INT32 cand_ap_min_rssi_threshold; /* Units in dBm */
- /* Roam score delta in %.
- * Consider AP as roam candidate only if AP score is at least
- * roam_score_delta % better than connected AP score.
- * Ex: roam_score_delta = 20, and connected AP score is 4000,
- * then consider candidate AP only if its score is at least
- * 4800 (= 4000 * 120%)
- */
- A_UINT32 roam_score_delta_percentage;
- /* Reason code to be filled in the response frame from STA.
- Ex: Reason code in the BTM response frame
- Valid values are 0 - 255 */
- A_UINT32 reason_code;
- /*
- * Consider 5GHz AP as roam candidate only if AP RSSI is better than
- * cand_ap_min_rssi_threshold_5g
- */
- A_INT32 cand_ap_min_rssi_threshold_5g; /* Units in dBm */
- /*
- * Consider 6 GHz AP as roam candidate only if AP RSSI is better than
- * cand_ap_min_rssi_threshold_6g
- */
- A_INT32 cand_ap_min_rssi_threshold_6g; /* Units in dBm */
- } wmi_configure_roam_trigger_parameters;
- /**
- * WMI_ROAM_ENABLE_DISABLE_TRIGGER_REASON:
- * Enable or disable roaming triggers in FW.
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_enable_disable_trigger_reason_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /**
- * Bitmask (with enum WMI_ROAM_TRIGGER_REASON_ID identifying the bit
- * positions) showing for which roam_trigger_reasons are enabled by
- * bit value equal 0x1, and which roam_trigger_reasons are disabled by
- * bit value equal 0x0.
- */
- A_UINT32 trigger_reason_bitmask;
- /**
- * The following TLVs will follow this fixed_param TLV:
- *
- * wmi_configure_roam_trigger_parameters config_roam_trigger_param[]
- * Roam trigger configuration per roam trigger.
- * The number of elements in this TLV array is limited to
- * WMI_ROAM_TRIGGER_EXT_REASON_MAX
- */
- } wmi_roam_enable_disable_trigger_reason_fixed_param;
- /** WMI_PROFILE_MATCH_EVENT: offload scan
- * generated when ever atleast one of the matching profiles is found
- * in recent NLO scan. no data is carried with the event.
- */
- /** P2P specific commands */
- /**
- * WMI_P2P_DEV_SET_DEVICE_INFO : p2p device info, which will be used by
- * FW to generate P2P IE tobe carried in probe response frames.
- * FW will respond to probe requests while in listen state.
- */
- typedef struct {
- /* number of secondary device types,supported */
- A_UINT32 num_secondary_dev_types;
- /**
- * followed by 8 bytes of primary device id and
- * num_secondary_dev_types * 8 bytes of secondary device
- * id.
- */
- } wmi_p2p_dev_set_device_info;
- /** WMI_P2P_DEV_SET_DISCOVERABILITY: enable/disable discoverability
- * state. if enabled, an active STA/AP will respond to P2P probe requests on
- * the operating channel of the VDEV.
- */
- typedef struct {
- /* 1:enable disoverability, 0:disable discoverability */
- A_UINT32 enable_discoverability;
- } wmi_p2p_set_discoverability;
- /** WMI_P2P_GO_SET_BEACON_IE: P2P IE to be added to
- * beacons generated by FW. used in FW beacon mode.
- * the FW will add this IE to beacon in addition to the beacon
- * template set by WMI_BCN_TMPL_CMDID command.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_p2p_go_set_beacon_ie_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* ie length */
- A_UINT32 ie_buf_len;
- /* Following this structure is the TLV byte stream of ie data of length ie_buf_len:
- * A_UINT8 ie_data[]; <-- length in byte given by field num_data.
- */
- } wmi_p2p_go_set_beacon_ie_fixed_param;
- /** WMI_P2P_GO_PROBE_RESP_IE: P2P IE to be added to
- * probe response generated by FW. used in FW beacon mode.
- * the FW will add this IE to probe response in addition to the probe response
- * template set by WMI_PRB_TMPL_CMDID command.
- */
- typedef struct {
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* ie length */
- A_UINT32 ie_buf_len;
- /*followed by byte stream of ie data of length ie_buf_len */
- } wmi_p2p_go_set_probe_resp_ie;
- /** WMI_P2P_SET_VENDOR_IE_DATA_CMDID: Vendor specific P2P IE data, which will
- * be used by the FW to parse the P2P NoA attribute in beacons, probe responses
- * and action frames received by the P2P Client.
- * Note: This command is currently used only for Apple P2P implementation.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_p2p_set_vendor_ie_data_cmd_fixed_param */
- /** OS specific P2P IE OUI (3 bytes) + OUI type (1 byte) */
- A_UINT32 p2p_ie_oui_type;
- /** OS specific NoA Attribute ID */
- A_UINT32 p2p_noa_attribute;
- } wmi_p2p_set_vendor_ie_data_cmd_fixed_param;
- /*----P2P disc offload definition ----*/
- typedef struct {
- A_UINT32 pattern_type;
- /**
- * TLV (tag length value) parameters follow the pattern structure.
- * TLV can contain bssid list, ssid list and
- * ie. the TLV tags are defined above;
- */
- } wmi_p2p_disc_offload_pattern_cmd;
- typedef struct {
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* mgmt type of the ie*/
- A_UINT32 mgmt_type;
- /* ie length */
- A_UINT32 ie_buf_len;
- /*followed by byte stream of ie data of length ie_buf_len */
- } wmi_p2p_disc_offload_appie_cmd;
- typedef struct {
- /* enable/disable p2p find offload*/
- A_UINT32 enable;
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* p2p find type */
- A_UINT32 disc_type;
- /* p2p find perodic */
- A_UINT32 perodic;
- /* p2p find listen channel in MHz */
- A_UINT32 listen_channel;
- /* p2p find full channel number */
- A_UINT32 num_scan_chans;
- /**
- * TLV (tag length value) parameters follow the pattern structure.
- * TLV contain channel list in MHz
- */
- } wmi_p2p_disc_offload_config_cmd;
- /*----P2P OppPS definition ----*/
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_p2p_set_oppps_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* OppPS attributes */
- /** Bit 0: Indicate enable/disable of OppPS
- * Bits 7-1: Ctwindow in TUs
- * Bits 31-8: Reserved
- */
- A_UINT32 oppps_attr;
- } wmi_p2p_set_oppps_cmd_fixed_param;
- #define WMI_UNIFIED_OPPPS_ATTR_ENALBED 0x1
- #define WMI_UNIFIED_OPPPS_ATTR_ENALBED_S 0
- #define WMI_UNIFIED_OPPPS_ATTR_IS_ENABLED(hdr) \
- WMI_F_MS((hdr)->oppps_attr, WMI_UNIFIED_OPPPS_ATTR_ENALBED)
- #define WMI_UNIFIED_OPPPS_ATTR_ENABLED_SET(hdr) \
- WMI_F_RMW((hdr)->oppps_attr, 0x1, \
- WMI_UNIFIED_OPPPS_ATTR_ENALBED);
- #define WMI_UNIFIED_OPPPS_ATTR_CTWIN 0xfe
- #define WMI_UNIFIED_OPPPS_ATTR_CTWIN_S 1
- #define WMI_UNIFIED_OPPPS_ATTR_CTWIN_GET(hdr) \
- WMI_F_MS((hdr)->oppps_attr, WMI_UNIFIED_OPPPS_ATTR_CTWIN)
- #define WMI_UNIFIED_OPPPS_ATTR_CTWIN_SET(hdr, v) \
- WMI_F_RMW((hdr)->oppps_attr, (v) & 0x7f, \
- WMI_UNIFIED_OPPPS_ATTR_CTWIN);
- typedef enum p2p_lo_start_ctrl_flags_e {
- P2P_LO_START_CTRL_FLAG_FLUSH_LISTEN_RESULT = 1 << 0, /* flush prob. req when host is awake */
- } p2p_lo_start_ctrl_flags;
- #define P2P_LO_PER_DEV_TYPE_LEN 8
- #define P2P_LO_DEV_TYPES_COUNT_MAX 10
- #define P2P_LO_DEV_TYPES_LEN_MAX (P2P_LO_PER_DEV_TYPE_LEN * P2P_LO_DEV_TYPES_COUNT_MAX)
- #define P2P_LO_PROB_RESP_MAX_LEN 512
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 ctl_flags; /* refer to enum_p2p_lo_start_ctrl_flags_e */
- A_UINT32 channel; /* MHz */
- A_UINT32 period; /* ms */
- A_UINT32 interval; /* ms, interval should be larger than period */
- A_UINT32 count; /* 0 means forever */
- /*
- * device_types_len specifies the number of bytes in the
- * device_types_data[] byte-array TLV that follows this TLV.
- * The data in device_types_data[] is in 8-byte elements, so
- * device_types_len will be a multiple of 8.
- * Refer to P2P_LO_DEV_TYPES_LEN_MAX
- */
- A_UINT32 device_types_len;
- /*
- * prob_resp_len specifies the number of bytes in the
- * prob_resp_data[] byte-array TLV that follows this TLV.
- * Refer to P2P_LO_PROB_RESP_MAX_LEN
- */
- A_UINT32 prob_resp_len;
- /* MAC address to be used for P2P discovery */
- wmi_mac_addr p2p_disc_mac_addr;
- /*
- * Two other TLVs follow this TLV:
- * A_UINT8 device_types_data[device_types_len];
- * A_UINT8 prob_resp_data[prob_resp_len];
- * The information in device_types_data[] and prob_resp_data[]
- * needs to be provided to the target in over-the-air byte order.
- * On a big-endian host, if device_types_data and prob_resp_data
- * are initially in the correct over-the-air byte order,
- * the automatic byteswap for endianness-correction during WMI
- * message download will mess up the byte order.
- * Thus, a big-endian host needs to explicitly byte-swap the bytes
- * within each quad-byte segment of device_types_data[] and
- * prob_resp_data[], so that the automatic byte-swap applied during
- * WMI download from a big-endian host to the little-endian target
- * will restore device_types_data and prob_resp_data into the
- * correct byte ordering.
- */
- } wmi_p2p_lo_start_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- } wmi_p2p_lo_stop_cmd_fixed_param;
- typedef enum p2p_lo_stopped_reason_e {
- P2P_LO_STOPPED_REASON_COMPLETE = 0, /* finished as scheduled */
- P2P_LO_STOPPED_REASON_RECV_STOP_CMD, /* host stops it */
- P2P_LO_STOPPED_REASON_INVALID_LO_PAR, /* invalid listen offload par */
- P2P_LO_STOPPED_REASON_FW_NOT_SUPPORT, /* vdev cannot support it right now */
- } p2p_lo_stopped_reason;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 reason;/* refer to p2p_lo_stopped_reason_e */
- } wmi_p2p_lo_stopped_event_fixed_param;
- typedef enum {
- WMI_MNT_FILTER_CONFIG_MANAGER,
- WMI_MNT_FILTER_CONFIG_CONTROL,
- WMI_MNT_FILTER_CONFIG_DATA,
- WMI_MNT_FILTER_CONFIG_ALL,
- WMI_MNT_FILTER_CONFIG_UNKNOWN,
- } WMI_MNT_FILTER_CONFIG_TYPE;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 clear_or_set;
- A_UINT32 configure_type; /* see WMI_MNT_FILTER_CONFIG_TYPE */
- } wmi_mnt_filter_cmd_fixed_param;
- typedef struct {
- A_UINT32 time32; /* upper 32 bits of time stamp */
- A_UINT32 time0; /* lower 32 bits of time stamp */
- } A_TIME64;
- typedef enum wmi_peer_sta_kickout_reason {
- WMI_PEER_STA_KICKOUT_REASON_UNSPECIFIED = 0, /* default value to preserve legacy behavior */
- WMI_PEER_STA_KICKOUT_REASON_XRETRY = 1,
- WMI_PEER_STA_KICKOUT_REASON_INACTIVITY = 2,
- WMI_PEER_STA_KICKOUT_REASON_IBSS_DISCONNECT = 3,
- WMI_PEER_STA_KICKOUT_REASON_TDLS_DISCONNECT = 4, /* TDLS peer has disappeared. All tx is failing */
- WMI_PEER_STA_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
- WMI_PEER_STA_KICKOUT_REASON_ROAMING_EVENT = 6, /* Directly connected peer has roamed to a repeater */
- WMI_PEER_STA_KICKOUT_REASON_PMF_ERROR = 7, /* PMF error threshold is hit */
- } PEER_KICKOUT_REASON;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_sta_kickout_event_fixed_param */
- /** peer mac address */
- wmi_mac_addr peer_macaddr;
- /** Reason code, defined as above */
- A_UINT32 reason;
- /** RSSI of the last bcn (averaged) in dB. 0 means Noise Floor value */
- A_UINT32 rssi;
- } wmi_peer_sta_kickout_event_fixed_param;
- #define WMI_WLAN_PROFILE_MAX_HIST 3
- #define WMI_WLAN_PROFILE_MAX_BIN_CNT 32
- typedef struct _wmi_wlan_profile_t {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wlan_profile_t */
- A_UINT32 id;
- A_UINT32 cnt;
- A_UINT32 tot;
- A_UINT32 min;
- A_UINT32 max;
- A_UINT32 hist_intvl;
- A_UINT32 hist[WMI_WLAN_PROFILE_MAX_HIST];
- } wmi_wlan_profile_t;
- typedef struct _wmi_wlan_profile_ctx_t {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wlan_profile_ctx_t */
- A_UINT32 tot; /* time in us */
- A_UINT32 tx_msdu_cnt;
- A_UINT32 tx_mpdu_cnt;
- A_UINT32 tx_ppdu_cnt;
- A_UINT32 rx_msdu_cnt;
- A_UINT32 rx_mpdu_cnt;
- A_UINT32 bin_count;
- } wmi_wlan_profile_ctx_t;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wlan_profile_trigger_cmd_fixed_param */
- A_UINT32 enable;
- } wmi_wlan_profile_trigger_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wlan_profile_get_prof_data_cmd_fixed_param */
- A_UINT32 value;
- } wmi_wlan_profile_get_prof_data_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wlan_profile_set_hist_intvl_cmd_fixed_param */
- A_UINT32 profile_id;
- A_UINT32 value;
- } wmi_wlan_profile_set_hist_intvl_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wlan_profile_enable_profile_id_cmd_fixed_param */
- A_UINT32 profile_id;
- A_UINT32 enable;
- } wmi_wlan_profile_enable_profile_id_cmd_fixed_param;
- /*Wifi header is upto 26, LLC is 8, with 14 byte duplicate in 802.3 header, that's 26+8-14=20.
- 146-128=18. So this means it is converted to non-QoS header. Riva FW take care of the QOS/non-QOS
- when comparing wifi header.*/
- /* NOTE: WOW_DEFAULT_BITMAP_PATTERN_SIZE(_DWORD) and WOW_DEFAULT_BITMASK_SIZE(_DWORD) can't be changed without breaking the compatibility */
- #define WOW_DEFAULT_BITMAP_PATTERN_SIZE 146
- #define WOW_DEFAULT_BITMAP_PATTERN_SIZE_DWORD 37 /* Convert WOW_DEFAULT_EVT_BUF_SIZE into Int32 size */
- #define WOW_DEFAULT_BITMASK_SIZE 146
- #define WOW_DEFAULT_BITMASK_SIZE_DWORD 37
- #define WOW_MAX_BITMAP_FILTERS 32
- #define WOW_DEFAULT_MAGIG_PATTERN_MATCH_CNT 16
- #define WOW_EXTEND_PATTERN_MATCH_CNT 16
- #define WOW_SHORT_PATTERN_MATCH_CNT 8
- #define WOW_DEFAULT_EVT_BUF_SIZE 148 /* Maximum 148 bytes of the data is copied starting from header incase if the match is found.
- The 148 comes from (128 - 14) payload size + 8bytes LLC + 26bytes MAC header*/
- #define WOW_DEFAULT_IOAC_PATTERN_SIZE 6
- #define WOW_DEFAULT_IOAC_PATTERN_SIZE_DWORD 2
- #define WOW_DEFAULT_IOAC_RANDOM_SIZE 6
- #define WOW_DEFAULT_IOAC_RANDOM_SIZE_DWORD 2
- #define WOW_DEFAULT_IOAC_KEEP_ALIVE_PKT_SIZE 120
- #define WOW_DEFAULT_IOAC_KEEP_ALIVE_PKT_SIZE_DWORD 30
- #define WOW_DEFAULT_IOAC_SOCKET_PATTERN_SIZE 32
- #define WOW_DEFAULT_IOAC_SOCKET_PATTERN_SIZE_DWORD 8
- #define WOW_DEFAULT_IOAC_KEEP_ALIVE_PKT_REV_SIZE 32
- #define WOW_DEFAULT_IOAC_KEEP_ALIVE_PKT_REV_SIZE_DWORD 8
- #define WOW_DEFAULT_IOAC_SOCKET_PATTERN_ACKNAK_SIZE 128
- #define WOW_DEFAULT_IOAC_SOCKET_PATTERN_ACKNAK_SIZE_DWORD 32
- typedef enum pattern_type_e {
- WOW_PATTERN_MIN = 0,
- WOW_BITMAP_PATTERN = WOW_PATTERN_MIN,
- WOW_IPV4_SYNC_PATTERN,
- WOW_IPV6_SYNC_PATTERN,
- WOW_WILD_CARD_PATTERN,
- WOW_TIMER_PATTERN,
- WOW_MAGIC_PATTERN,
- WOW_IPV6_RA_PATTERN,
- WOW_IOAC_PKT_PATTERN,
- WOW_IOAC_TMR_PATTERN,
- WOW_IOAC_SOCK_PATTERN,
- WOW_PATTERN_MAX
- } WOW_PATTERN_TYPE;
- typedef enum event_type_e {
- WOW_BMISS_EVENT = 0, /* 0 */
- WOW_BETTER_AP_EVENT, /* 1 */
- WOW_DEAUTH_RECVD_EVENT, /* 2 */
- WOW_MAGIC_PKT_RECVD_EVENT, /* 3 */
- WOW_GTK_ERR_EVENT, /* 4 */
- WOW_FOURWAY_HSHAKE_EVENT, /* 5 */
- WOW_EAPOL_RECVD_EVENT, /* 6 */
- WOW_NLO_DETECTED_EVENT, /* 7 */
- WOW_DISASSOC_RECVD_EVENT, /* 8 */
- WOW_PATTERN_MATCH_EVENT, /* 9 */
- WOW_CSA_IE_EVENT, /* 10 */
- WOW_PROBE_REQ_WPS_IE_EVENT, /* 11 */
- WOW_AUTH_REQ_EVENT, /* 12 */
- WOW_ASSOC_REQ_EVENT, /* 13 */
- WOW_HTT_EVENT, /* 14 */
- WOW_RA_MATCH_EVENT, /* 15 */
- WOW_HOST_AUTO_SHUTDOWN_EVENT, /* 16 */
- WOW_IOAC_MAGIC_EVENT, /* 17 */
- WOW_IOAC_SHORT_EVENT, /* 18 */
- WOW_IOAC_EXTEND_EVENT, /* 19 */
- WOW_IOAC_TIMER_EVENT, /* 20 */
- WOW_DFS_PHYERR_RADAR_EVENT, /* 21 */
- WOW_BEACON_EVENT, /* 22 */
- WOW_CLIENT_KICKOUT_EVENT, /* 23 */
- WOW_NAN_EVENT, /* 24 */
- WOW_EXTSCAN_EVENT, /* 25 */
- WOW_IOAC_REV_KA_FAIL_EVENT, /* 26 */
- WOW_IOAC_SOCK_EVENT, /* 27 */
- WOW_NLO_SCAN_COMPLETE_EVENT, /* 28 */
- WOW_NAN_DATA_EVENT, /* 29 */
- WOW_NAN_RTT_EVENT, /* DEPRECATED, UNUSED; 30 */
- WOW_OEM_RESPONSE_EVENT = WOW_NAN_RTT_EVENT, /* reuse deprecated event value; 30 */
- WOW_TDLS_CONN_TRACKER_EVENT, /* 31 */
- WOW_CRITICAL_LOG_EVENT, /* 32 + 0 */
- WOW_CHIP_POWER_FAILURE_DETECT_EVENT, /* 32 + 1 */
- WOW_11D_SCAN_EVENT, /* 32 + 2 */
- WOW_SAP_OBSS_DETECTION_EVENT, /* 32 + 3 */
- WOW_BSS_COLOR_COLLISION_DETECT_EVENT, /* 32 + 4 */
- WOW_TKIP_MIC_ERR_FRAME_RECVD_EVENT, /* 32 + 5 */
- WOW_ROAM_PREAUTH_START_EVENT, /* 32 + 6 */
- WOW_ROAM_PMKID_REQUEST_EVENT, /* 32 + 7 */
- WOW_DFS_CAC_COMPLETE_EVENT, /* 32 + 8 */
- WOW_VDEV_DISCONNECT_EVENT, /* 32 + 9 */
- WOW_TWT_EVENT, /* 32 + 10 */
- WOW_DCS_INTERFERENCE_DET, /* 32 + 11 */
- WOW_ROAM_STATS_EVENT, /* 32 + 12 */
- WOW_RTT_11AZ_EVENT, /* 32 + 13 */
- WOW_P2P_NOA_EVENT, /* 32 + 14 */
- WOW_XGAP_EVENT, /* 32 + 15 */
- WOW_PAGE_FAULT_EVENT, /* 32 + 16 */
- } WOW_WAKE_EVENT_TYPE;
- typedef enum wake_reason_e {
- WOW_REASON_UNSPECIFIED = -1,
- WOW_REASON_NLOD = 0,
- WOW_REASON_AP_ASSOC_LOST,
- WOW_REASON_LOW_RSSI,
- WOW_REASON_DEAUTH_RECVD,
- WOW_REASON_DISASSOC_RECVD,
- WOW_REASON_GTK_HS_ERR,
- WOW_REASON_EAP_REQ,
- WOW_REASON_FOURWAY_HS_RECV,
- WOW_REASON_TIMER_INTR_RECV,
- WOW_REASON_PATTERN_MATCH_FOUND,
- WOW_REASON_RECV_MAGIC_PATTERN,
- WOW_REASON_P2P_DISC,
- WOW_REASON_WLAN_HB,
- WOW_REASON_CSA_EVENT,
- WOW_REASON_PROBE_REQ_WPS_IE_RECV,
- WOW_REASON_AUTH_REQ_RECV,
- WOW_REASON_ASSOC_REQ_RECV,
- WOW_REASON_HTT_EVENT,
- WOW_REASON_RA_MATCH,
- WOW_REASON_HOST_AUTO_SHUTDOWN,
- WOW_REASON_IOAC_MAGIC_EVENT,
- WOW_REASON_IOAC_SHORT_EVENT,
- WOW_REASON_IOAC_EXTEND_EVENT,
- WOW_REASON_IOAC_TIMER_EVENT,
- WOW_REASON_ROAM_HO,
- WOW_REASON_DFS_PHYERR_RADADR_EVENT,
- WOW_REASON_BEACON_RECV,
- WOW_REASON_CLIENT_KICKOUT_EVENT,
- WOW_REASON_NAN_EVENT,
- WOW_REASON_EXTSCAN,
- WOW_REASON_RSSI_BREACH_EVENT,
- WOW_REASON_IOAC_REV_KA_FAIL_EVENT,
- WOW_REASON_IOAC_SOCK_EVENT,
- WOW_REASON_NLO_SCAN_COMPLETE,
- WOW_REASON_PACKET_FILTER_MATCH,
- WOW_REASON_ASSOC_RES_RECV,
- WOW_REASON_REASSOC_REQ_RECV,
- WOW_REASON_REASSOC_RES_RECV,
- WOW_REASON_ACTION_FRAME_RECV,
- WOW_REASON_BPF_ALLOW,
- WOW_REASON_NAN_DATA,
- WOW_REASON_NAN_RTT, /* DEPRECATED, UNUSED */
- WOW_REASON_OEM_RESPONSE_EVENT = WOW_REASON_NAN_RTT, /* reuse deprecated reason value */
- WOW_REASON_TDLS_CONN_TRACKER_EVENT,
- WOW_REASON_CRITICAL_LOG,
- WOW_REASON_P2P_LISTEN_OFFLOAD,
- WOW_REASON_NAN_EVENT_WAKE_HOST,
- WOW_REASON_CHIP_POWER_FAILURE_DETECT,
- WOW_REASON_11D_SCAN,
- WOW_REASON_THERMAL_CHANGE,
- WOW_REASON_OIC_PING_OFFLOAD,
- WOW_REASON_WLAN_DHCP_RENEW,
- WOW_REASON_SAP_OBSS_DETECTION,
- WOW_REASON_BSS_COLOR_COLLISION_DETECT,
- WOW_REASON_TKIP_MIC_ERR_FRAME_RECVD_DETECT,
- WOW_REASON_WLAN_MD, /* motion detected */
- WOW_REASON_WLAN_BL, /* baselining done */
- WOW_REASON_NTH_BCN_OFLD, /* nth beacon forward to host */
- WOW_REASON_PKT_CAPTURE_MODE_WAKE,
- WOW_REASON_PAGE_FAULT, /* Host wake up due to page fault */
- WOW_REASON_ROAM_PREAUTH_START,
- WOW_REASON_ROAM_PMKID_REQUEST,
- WOW_REASON_RFKILL,
- WOW_REASON_DFS_CAC,
- WOW_REASON_VDEV_DISCONNECT,
- WOW_REASON_LOCAL_DATA_UC_DROP,
- WOW_REASON_GENERIC_WAKE, /* A generic reason that host should be woken up */
- WOW_REASON_ERR_PKT_TRIGGERED_WAKEUP,
- WOW_REASON_TWT,
- WOW_REASON_FATAL_EVENT_WAKE,
- WOW_REASON_DCS_INT_DET,
- WOW_REASON_ROAM_STATS,
- WOW_REASON_MDNS_WAKEUP,
- WOW_REASON_RTT_11AZ,
- WOW_REASON_P2P_NOA_UPDATE,
- /* When Host configured timer elapsed for delayed wakeup */
- WOW_REASON_DELAYED_WAKEUP_HOST_CFG_TIMER_ELAPSED,
- /* Data store list is full, so Host wakeup should be triggered */
- WOW_REASON_DELAYED_WAKEUP_DATA_STORE_LIST_FULL,
- /* Sched PM FW initiated termination event */
- WOW_REASON_SCHED_PM_TERMINATED,
- /* XGAP entry/exit response */
- WOW_REASON_XGAP,
- /* COEX channel avoid event */
- WOW_REASON_COEX_CHAVD,
- /* vdev repurpose request event */
- WOW_REASON_VDEV_REPURPOSE,
- /* STX High duty cycle event */
- WOW_REASON_STX_WOW_HIGH_DUTY_CYCLE,
- /* WoW exit reason MCC lite */
- WOW_REASON_MCC_LITE,
- /* P2P CLI detected BMISS from DFS master AP */
- WOW_REASON_P2P_CLI_DFS_AP_BMISS_DETECTED,
- /* if Page Fault blocking feature enabled and PF observed under WoW */
- WOW_REASON_PF_BLOCKING_LAST_TIME,
- /* add new WOW_REASON_ defs before this line */
- WOW_REASON_MAX,
- WOW_REASON_DEBUG_TEST = 0xFF,
- } WOW_WAKE_REASON_TYPE;
- typedef enum {
- WOW_IFACE_PAUSE_ENABLED,
- WOW_IFACE_PAUSE_DISABLED
- } WOW_IFACE_STATUS;
- enum {
- WMI_WOW_FLAG_IGNORE_PCIE_RESET = 0x00000001, /* some win10 platform will not assert pcie_reset for wow.*/
- /* WMI_WOW_FLAG_SEND_PM_PME
- * Some platforms have issues if the PM_PME message is sent after WoW,
- * so don't send PM_PME after WoW unless the host uses this flag
- * to request it.
- */
- WMI_WOW_FLAG_SEND_PM_PME = 0x00000002,
- /* Flag to indicate unit test */
- WMI_WOW_FLAG_UNIT_TEST_ENABLE = 0x00000004,
- /* Force HTC wakeup */
- WMI_WOW_FLAG_DO_HTC_WAKEUP = 0x00000008,
- /* Enable L1SS sleep for PCIE DRV case */
- WMI_WOW_FLAG_ENABLE_DRV_PCIE_L1SS_SLEEP = 0x00000010,
- /*
- * To differentiate system suspend Vs RTPM BIT set -
- * System Suspend WOW, BIT Reset- RTPM (DRV)
- */
- WMI_WOW_FLAG_SYSTEM_SUSPEND_WOW = 0x00000020,
- /*
- * Feature flag for INI enable_mod_dtim_on_system_suspend
- * This flag/bit will be set if INI settings enable mod_dtim_on_sys_suspend.
- */
- WMI_WOW_FLAG_MOD_DTIM_ON_SYS_SUSPEND = 0x00000040,
- /*
- * Forced dtim in suspend mode enable Flag.
- * setDtimInSuspendMode
- */
- WMI_WOW_FLAG_FORCED_DTIM_ON_SYS_SUSPEND = 0x00000080,
- /* Flag to force DPD lock. */
- WMI_WOW_FLAG_FORCED_DPD_LOCK = 0x00000100,
- /*
- * Feature flag for INI 'enable_teles_dtim_on_system_suspend'
- * This flag/bit will be set if INI 'enable_teles_dtim_on_system_suspend'
- * is enabled.
- */
- WMI_WOW_FLAG_TELES_DTIM_ON_SYS_SUSPEND = 0x00000200,
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wow_enable_cmd_fixed_param */
- A_UINT32 enable;
- A_UINT32 pause_iface_config;
- A_UINT32 flags; /* WMI_WOW_FLAG enums */
- } wmi_wow_enable_cmd_fixed_param;
- typedef enum {
- WMI_WOW_RESUME_FLAG_TX_DATA = 0x00000001, /* TX data pending to be sent in resume */
- } WMI_WOW_RESUME_FLAG_ENUM;
- /* wow nack reason codes */
- typedef enum {
- /* WoW error due to unnkown reason */
- WMI_WOW_NON_ACK_REASON_UNKNOWN = 0,
- /* WoW error due to TX failure */
- WMI_WOW_NON_ACK_REASON_TX = 1,
- /* WoW error due to some data blocked */
- WMI_WOW_NON_ACK_REASON_IS_BLOCK = 2,
- /* WoW error in WFA mode */
- WMI_WOW_NON_ACK_REASON_NOT_ALLOW = 3,
- /* WoW error mac operation fail */
- WMI_WOW_NON_ACK_REASON_HW_FAIL = 4,
- /* WoW error due to timeout */
- WMI_WOW_NON_ACK_REASON_TIMEOUT = 5,
- /* WoW error due to RTT or CFR capture active */
- WMI_WOW_NON_ACK_REASON_RTT_DMA = 6,
- /* WoW error due to roam module holding lock */
- WMI_WOW_NON_ACK_REASON_ROAM = 7,
- /* WoW error remote peer not sleeping */
- WMI_WOW_NON_ACK_REASON_PEER_ACTIVE = 8,
- /* WoW error due to WoW entry defer failed */
- WMI_WOW_NON_ACK_REASON_DEFER_FAILURE = 9,
- /* WoW error due to WoW entry defer timeout */
- WMI_WOW_NON_ACK_REASON_DEFER_TIMEOUT = 10,
- /* WoW error due to FATAL event */
- WMI_WOW_NON_ACK_REASON_FATAL_EVENT = 11,
- /* WoW error if close to TBTT */
- WMI_WOW_NON_ACK_REASON_CLOSE_TO_TBTT = 12,
- } WMI_WOW_NACK_STATUS;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wow_hostwakeup_from_sleep_cmd_fixed_param */
- /* reserved0:
- * This "reserved" field is not actually reserved any more.
- * It is being used in certain FW branches to hold flags, whose values
- * are defined by WMI_WOW_RESUME_FLAG_ENUM.
- */
- union {
- A_UINT32 reserved0;
- A_UINT32 flags;
- };
- } wmi_wow_hostwakeup_from_sleep_cmd_fixed_param;
- #define WOW_ICMPV6_NA_FILTER_DISABLE 0
- #define WOW_ICMPV6_NA_FILTER_ENABLE 1
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wow_enable_icmpv6_na_flt_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 enable; /* WOW_ICMPV6_NA_FILTER_ENABLE/DISABLE */
- } wmi_wow_enable_icmpv6_na_flt_cmd_fixed_param;
- typedef struct bitmap_pattern_s {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WOW_BITMAP_PATTERN_T */
- A_UINT32 patternbuf[WOW_DEFAULT_BITMAP_PATTERN_SIZE_DWORD];
- A_UINT32 bitmaskbuf[WOW_DEFAULT_BITMASK_SIZE_DWORD];
- A_UINT32 pattern_offset;
- A_UINT32 pattern_len;
- A_UINT32 bitmask_len;
- A_UINT32 pattern_id; /* must be less than max_bitmap_filters */
- } WOW_BITMAP_PATTERN_T;
- typedef struct ipv4_sync_s {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WOW_IPV4_SYNC_PATTERN_T */
- A_UINT32 ipv4_src_addr;
- A_UINT32 ipv4_dst_addr;
- A_UINT32 tcp_src_prt;
- A_UINT32 tcp_dst_prt;
- } WOW_IPV4_SYNC_PATTERN_T;
- typedef struct ipv6_sync_s {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WOW_IPV6_SYNC_PATTERN_T */
- A_UINT32 ipv6_src_addr[4];
- A_UINT32 ipv6_dst_addr[4];
- A_UINT32 tcp_src_prt;
- A_UINT32 tcp_dst_prt;
- } WOW_IPV6_SYNC_PATTERN_T;
- typedef struct WOW_MAGIC_PATTERN_CMD
- {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WOW_MAGIC_PATTERN_CMD */
- wmi_mac_addr macaddr;
- } WOW_MAGIC_PATTERN_CMD;
- typedef enum wow_ioac_pattern_type {
- WOW_IOAC_MAGIC_PATTERN = 1,
- WOW_IOAC_SHORT_PATTERN,
- WOW_IOAC_EXTEND_PATTERN,
- } WOW_IOAC_PATTERN_TYPE;
- typedef struct ioac_sock_pattern_s {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WOW_IOAC_SOCK_PATTERN_T */
- A_UINT32 id;
- A_UINT32 local_ipv4;
- A_UINT32 remote_ipv4;
- A_UINT32 local_port;
- A_UINT32 remote_port;
- A_UINT32 pattern_len; /* units = bytes */
- A_UINT32 pattern[WOW_DEFAULT_IOAC_SOCKET_PATTERN_SIZE_DWORD];
- WMI_IPV6_ADDR local_ipv6;
- WMI_IPV6_ADDR remote_ipv6;
- A_UINT32 ack_nak_len;
- A_UINT32 ackpkt[WOW_DEFAULT_IOAC_SOCKET_PATTERN_ACKNAK_SIZE_DWORD];
- A_UINT32 nakpkt[WOW_DEFAULT_IOAC_SOCKET_PATTERN_ACKNAK_SIZE_DWORD];
- } WOW_IOAC_SOCK_PATTERN_T;
- typedef struct ioac_pkt_pattern_s {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WOW_IOAC_PKT_PATTERN_T */
- A_UINT32 pattern_type;
- A_UINT32 pattern[WOW_DEFAULT_IOAC_PATTERN_SIZE_DWORD];
- A_UINT32 random[WOW_DEFAULT_IOAC_RANDOM_SIZE_DWORD];
- A_UINT32 pattern_len;
- A_UINT32 random_len;
- } WOW_IOAC_PKT_PATTERN_T;
- typedef struct ioac_tmr_pattern_s {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WOW_IOAC_TMR_PATTERN_T */
- A_UINT32 wake_in_s;
- A_UINT32 vdev_id;
- } WOW_IOAC_TMR_PATTERN_T;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_IOAC_ADD_KEEPALIVE_CMD_fixed_param */
- A_UINT32 nID;
- } WMI_WOW_IOAC_ADD_KEEPALIVE_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_IOAC_DEL_KEEPALIVE_CMD_fixed_param */
- A_UINT32 nID;
- } WMI_WOW_IOAC_DEL_KEEPALIVE_CMD_fixed_param;
- typedef struct ioac_keepalive_s {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_IOAC_KEEPALIVE_T */
- A_UINT32 keepalive_pkt_buf[WOW_DEFAULT_IOAC_KEEP_ALIVE_PKT_SIZE_DWORD];
- A_UINT32 keepalive_pkt_len;
- A_UINT32 period_in_ms;
- A_UINT32 vdev_id;
- A_UINT32 max_loss_cnt;
- A_UINT32 local_ipv4;
- A_UINT32 remote_ipv4;
- A_UINT32 local_port;
- A_UINT32 remote_port;
- A_UINT32 recv_period_in_ms;
- A_UINT32 rev_ka_size;
- A_UINT32 rev_ka_data[WOW_DEFAULT_IOAC_KEEP_ALIVE_PKT_REV_SIZE_DWORD];
- WMI_IPV6_ADDR local_ipv6;
- WMI_IPV6_ADDR remote_ipv6;
- } WMI_WOW_IOAC_KEEPALIVE_T;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_IOAC_ADD_PATTERN_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 pattern_type;
- /*
- * Following this struct are these TLVs. Note that they are all array of structures
- * but can have at most one element. Which TLV is empty or has one element depends
- * on the field pattern_type. This is to emulate an union.
- * WOW_IOAC_PKT_PATTERN_T pattern_info_pkt[];
- * WOW_IOAC_TMR_PATTERN_T pattern_info_tmr[];
- */
- } WMI_WOW_IOAC_ADD_PATTERN_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_IOAC_DEL_PATTERN_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 pattern_type;
- A_UINT32 pattern_id;
- } WMI_WOW_IOAC_DEL_PATTERN_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_ADD_PATTERN_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 pattern_id;
- A_UINT32 pattern_type;
- /*
- * Following this struct are these TLVs. Note that they are all array of structures
- * but can have at most one element. Which TLV is empty or has one element depends
- * on the field pattern_type. This is to emulate an union.
- * WOW_BITMAP_PATTERN_T pattern_info_bitmap[];
- * WOW_IPV4_SYNC_PATTERN_T pattern_info_ipv4[];
- * WOW_IPV6_SYNC_PATTERN_T pattern_info_ipv6[];
- * WOW_MAGIC_PATTERN_CMD pattern_info_magic_pattern[];
- * A_UINT32 pattern_info_timeout[];
- * A_UINT32 ra_ratelimit_interval;
- */
- } WMI_WOW_ADD_PATTERN_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_DEL_PATTERN_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 pattern_id;
- A_UINT32 pattern_type;
- } WMI_WOW_DEL_PATTERN_CMD_fixed_param;
- #define WMI_WOW_MAX_EVENT_BM_LEN 4
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_ADD_DEL_EVT_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 is_add;
- union {
- A_UINT32 event_bitmap;
- A_UINT32 event_bitmaps[WMI_WOW_MAX_EVENT_BM_LEN];
- };
- } WMI_WOW_ADD_DEL_EVT_CMD_fixed_param;
- /*
- * This structure is used to set the pattern to check UDP packet in WOW mode.
- * If match, construct a tx frame in a local buffer to send through the peer
- * AP to the entity in the IP network that sent the UDP packet to this STA.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_UDP_SVC_OFLD_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 enable; /* 1: enable, 0: disable*/
- /* dest_port -
- * bits 7:0 contain the LSB of the UDP dest port,
- * bits 15:8 contain the MSB of the UDP dest port
- */
- A_UINT32 dest_port;
- A_UINT32 pattern_len; /* length in byte of pattern[] */
- A_UINT32 response_len; /* length in byte of response[] */
- /* Following this struct are the TLV's:
- * A_UINT8 pattern[]; <-- payload of UDP packet to be checked, network byte order
- * A_UINT8 response[]; <-- payload of UDP packet to be response, network byte order
- */
- } WMI_WOW_UDP_SVC_OFLD_CMD_fixed_param;
- /*
- * This structure is used to set the pattern for WOW host wakeup pin pulse pattern confirguration.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_HOSTWAKEUP_PIN_PATTERN_CONFIG_CMD_fixed_param */
- A_UINT32 enable; /* 1: enable, 0: disable */
- A_UINT32 pin; /* pin for host wakeup */
- A_UINT32 interval_low; /* interval for keeping low voltage, unit: ms */
- A_UINT32 interval_high; /* interval for keeping high voltage, unit: ms */
- A_UINT32 repeat_cnt; /* repeat times for pulse (0xffffffff means forever) */
- A_UINT32 init_state; /* Sense of the GPIO pin used for host wakeups.
- * If init_state is 0, a low --> high transition
- * causes a host wakeup interrupt.
- * If init_state is 1, a high --> low transition
- * causes a host wakeup interrupt.
- */
- } WMI_WOW_HOSTWAKEUP_GPIO_PIN_PATTERN_CONFIG_CMD_fixed_param;
- #define MAX_SUPPORTED_ACTION_CATEGORY 256
- #define MAX_SUPPORTED_ACTION_SUBCATEGORY 32
- #define MAX_SUPPORTED_ACTION_CATEGORY_ELE_LIST (MAX_SUPPORTED_ACTION_CATEGORY/32)
- typedef enum {
- WOW_ACTION_WAKEUP_OPERATION_RESET = 0,
- WOW_ACTION_WAKEUP_OPERATION_SET,
- WOW_ACTION_WAKEUP_OPERATION_ADD_SET,
- WOW_ACTION_WAKEUP_OPERATION_DELETE_SET,
- } WOW_ACTION_WAKEUP_OPERATION;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_SET_ACTION_WAKE_UP_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 operation; /* 0 reset to fw default, 1 set the bits, 2 add the setting bits, 3 delete the setting bits */
- A_UINT32 action_category_map[MAX_SUPPORTED_ACTION_CATEGORY_ELE_LIST];
- /* This fixed_param TLV is followed by these additional TLV's
- * action_bitmaps_per_category -
- * Each element is a 32-bit bitmap indicating which subcategories
- * for that particular action category are considered for WoW wakeup
- * (if the subcategory's bit is 0) or ignored for WoW wakeup (if the
- * subcategory's bit is 1).
- *
- * A_UINT32 action_bitmaps_per_category[]; <-- variable length array
- */
- } WMI_WOW_SET_ACTION_WAKE_UP_CMD_fixed_param;
- typedef union {
- /* the bytes within these IP addresses are arranged in network byte order */
- A_UINT8 ipv4_addr[4];
- A_UINT8 ipv6_addr[16];
- } WMI_IP_ADDR;
- #define WMI_COAP_IPTV6_BIT_POS 0
- #define WMI_COAP_ADDR_TYPE_BIT_POS 1
- #define WMI_COAP_IPV6_SET(param, value) \
- WMI_SET_BITS(param, WMI_COAP_IPTV6_BIT_POS, 1, value)
- #define WMI_COAP_IPV6_GET(param) \
- WMI_GET_BITS(param, WMI_COAP_IPTV6_BIT_POS, 1)
- #define WMI_COAP_ADDR_TYPE_SET(param, value) \
- WMI_SET_BITS(param, WMI_COAP_ADDR_TYPE_BIT_POS, 1, value)
- #define WMI_COAP_ADDR_TYPE_GET(param) \
- WMI_GET_BITS(param, WMI_COAP_ADDR_TYPE_BIT_POS, 1)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_COAP_ADD_PATTERN_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 pattern_id;
- /* pattern_type:
- * Indicates the type of pattern to be enabled
- * Bit 0: Indicate pattern IP ADDR is IPV6 or IPV4
- * Bit 1: Indicate pattern ADDR TYPE is BC or UC/MC
- * Bits 31:2 Reserved for future use
- *
- * Refer to WMI_COAP_IPV6_SET,GET and WMI_COAP_ADDR_TYPE_SET,GET macros
- */
- A_UINT32 pattern_type;
- A_UINT32 timeout; /* the cached packet expire timeout in ms */
- /* the dst ip address(uc/mc/bc), dst port to match CoAP message */
- WMI_IP_ADDR match_udp_ip; /* network byte order */
- A_UINT32 match_udp_port;
- /* DUT ip address and port for CoAP replay message */
- WMI_IP_ADDR udp_local_ip; /* network byte order */
- A_UINT32 udp_local_port;
- A_UINT32 verify_offset; /* UDP payload offset to verify */
- A_UINT32 verify_len; /* UDP payload length to verofy*/
- A_UINT32 coapmsg_len; /* CoAP reply message length */
- /* The below TLV (tag length value) parameters follow this fixed_param TLV:
- * A_UINT8 verify_string[]; verify content,
- * length identified by verify_len;
- * A_UINT8 coapmsg[]; CoAP reply message,
- * length identified by coapmsg_len;
- */
- } WMI_WOW_COAP_ADD_PATTERN_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_COAP_DEL_PATTERN_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 pattern_id;
- } WMI_WOW_COAP_DEL_PATTERN_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_COAP_ADD_KEEPALIVE_PATTERN_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 pattern_id;
- /* pattern_type:
- * Indicates the type of pattern to be enabled
- * Bit 0: Indicate pattern IP ADDR is IPV6 or IPV4
- * Bit 1: Indicate pattern ADDR TYPE is BC or UC/MC
- * Bits 31:2 Reserved for future use
- *
- * Refer to WMI_COAP_IPV6_SET,GET and WMI_COAP_ADDR_TYPE_SET,GET macros
- */
- A_UINT32 pattern_type;
- /* ip address and port for CoAP send keepalive message */
- WMI_IP_ADDR udp_local_ip; /* network byte order */
- A_UINT32 udp_local_port;
- WMI_IP_ADDR udp_remote_ip; /* network byte order */
- A_UINT32 udp_remote_port;
- A_UINT32 timeout; /* the periorid to send keepalive message in ms */
- A_UINT32 coapmsg_len; /* keeplive CoAP message length */
- /* The below TLV (tag length value) parameters follow this fixed_param TLV:
- * A_UINT8 coapmsg[]; CoAP keepalive message,
- * length specified by coapmsg_len field
- */
- } WMI_WOW_COAP_ADD_KEEPALIVE_PATTERN_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_COAP_DEL_KEEPALIVE_PATTERN_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 pattern_id;
- } WMI_WOW_COAP_DEL_KEEPALIVE_PATTERN_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_COAP_GET_BUF_INFO_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 pattern_id;
- } WMI_WOW_COAP_GET_BUF_INFO_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_hdr; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_coap_tuple */
- A_UINT64 tsf; /* host and firmware sync tsf */
- /* flag:
- * Indicates the type of ip address
- * Bit 0: Indicate ip address is IPV6 or IPV4
- * Bits 31:1 Reserved for future use
- *
- * Refer to WMI_COAP_IPV6_SET,GET macros
- */
- A_UINT32 flag;
- WMI_IP_ADDR src_ip; /* network byte order */
- A_UINT32 payload_len;
- } wmi_coap_tuple;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_WOW_COAP_BUF_INFO_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 pattern_id;
- /** more_data will be set depending on the number of tuples need transmit */
- A_UINT32 more_tuples;
- /* The below TLV (tag length value) parameters follow this fixed_param TLV:
- * wmi_coap_tuple coap_tuple[]; <-- Array of coap_tuple.
- * A_UINT32 payloads[] <-- the cached received CoAP messages.
- * The number of message payloads combined into the payloads[]
- * array matches the number of coap tuples.
- * The length of each message payload is specified by the
- * "payload_len" field in the corresponding coap_tuple.
- * The subsequent message payload starts at the next 4-byte aligned
- * position within payloads[].
- * For example, if there are 3 coap_tuples, with
- * coap_tuples[0].payload_len = 12
- * coap_tuples[1].payload_len = 23
- * coap_tuples[2].payload_len = 34
- * then msg 0 payload will be stored in payloads[0] - payloads[11]
- * message 1 payload will be stored in payloads[12] - payloads[34]
- * message 2 payload will be stored in payloads[36] - payloads[69]
- */
- } WMI_WOW_COAP_BUF_INFO_EVENT_fixed_param;
- typedef struct wow_event_info_s {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WOW_EVENT_INFO_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 flag; /*This is current reserved.*/
- A_INT32 wake_reason;
- A_UINT32 data_len;
- A_UINT32 delayed_pkt_count;
- } WOW_EVENT_INFO_fixed_param;
- typedef struct wow_initial_wakeup_event_s {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WOW_INITIAL_WAKEUP_EVENT_fixed_param */
- A_UINT32 vdev_id;
- } WOW_INITIAL_WAKEUP_EVENT_fixed_param;
- typedef enum {
- WOW_EVENT_INFO_TYPE_PACKET = 0x0001,
- WOW_EVENT_INFO_TYPE_BITMAP,
- WOW_EVENT_INFO_TYPE_GTKIGTK,
- } WOW_EVENT_INFO_TYPE;
- typedef struct wow_event_info_section_s {
- A_UINT32 data_type;
- A_UINT32 data_len;
- } WOW_EVENT_INFO_SECTION;
- typedef struct wow_event_info_section_packet_s {
- A_UINT8 packet[WOW_DEFAULT_EVT_BUF_SIZE];
- } WOW_EVENT_INFO_SECTION_PACKET;
- typedef struct wow_event_info_section_bitmap_s {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WOW_EVENT_INFO_SECTION_BITMAP */
- A_UINT32 flag; /*This is current reserved.*/
- A_UINT32 value; /*This could be the pattern id for bitmap pattern.*/
- A_UINT32 org_len; /*The length of the original packet.*/
- } WOW_EVENT_INFO_SECTION_BITMAP;
- /**
- * This command is sent from WLAN host driver to firmware to
- * enable or disable D0-WOW. D0-WOW means APSS suspend with
- * PCIe link and DDR being active.
- *
- *
- * Entering D0-WOW Mode (based on kernel suspend request):
- * host->target: WMI_DO_WOW_ENABLE_DISABLE_CMDID (enable = 1)
- * target: Take action (e.g. dbglog suspend)
- * target->host: HTC_ACK (HTC_MSG_SEND_SUSPEND_COMPLETE message)
- *
- * Exiting D0-WOW mode (based on kernel resume OR target->host message received)
- * host->target: WMI_DO_WOW_ENABLE_DISABLE_CMDID (enable = 0)
- * target: Take action (e.g. dbglog resume)
- * target->host: WMI_D0_WOW_DISABLE_ACK_EVENTID
- *
- * This command is applicable only on the PCIE LL systems
- * Host can enter either D0-WOW or WOW mode, but NOT both at same time
- * Decision to enter D0-WOW or WOW is based on active interfaces
- *
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_d0_wow_enable_disable_cmd_fixed_param */
- A_UINT32 enable; /* 1 = enable, 0 = disable */
- } wmi_d0_wow_enable_disable_cmd_fixed_param;
- typedef enum extend_wow_type_e {
- EXTWOW_TYPE_APP_TYPE1, /* extend wow type: only enable wakeup for app type1 */
- EXTWOW_TYPE_APP_TYPE2, /* extend wow type: only enable wakeup for app type2 */
- EXTWOW_TYPE_APP_TYPE1_2, /* extend wow type: enable wakeup for app type1&2 */
- EXTWOW_TYPE_APP_PULSETEST,
- EXTWOW_DISABLED = 255,
- } EXTWOW_TYPE;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals wmi_extwow_enable_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 type;
- A_UINT32 wakeup_pin_num;
- A_UINT32 swol_pulsetest_type;
- A_UINT32 swol_pulsetest_application;
- } wmi_extwow_enable_cmd_fixed_param;
- #define SWOL_INDOOR_MAC_ADDRESS_INDEX_MAX 8
- #define SWOL_INDOOR_KEY_LEN 16
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals wmi_extwow_set_app_type1_params_cmd_fixed_param */
- A_UINT32 vdev_id;
- wmi_mac_addr wakee_mac;
- A_UINT8 ident[8];
- A_UINT8 passwd[16];
- A_UINT32 ident_len;
- A_UINT32 passwd_len;
- /* indoor check parameters */
- /* key for mac addresses specified in swol_indoor_key_mac
- * Big-endian hosts need to byte-swap the bytes within each 4-byte
- * segment of this array, so the bytes will return to their original
- * order when the entire WMI message contents are byte-swapped to
- * convert from big-endian to little-endian format.
- */
- A_UINT8 swol_indoor_key[SWOL_INDOOR_MAC_ADDRESS_INDEX_MAX][SWOL_INDOOR_KEY_LEN];
- /* key length for specified mac address index
- * Big-endian hosts need to byte-swap the bytes within each 4-byte
- * segment of this array, so the bytes will return to their original
- * order when the entire WMI message contents are byte-swapped to
- * convert from big-endian to little-endian format.
- */
- A_UINT8 swol_indoor_key_len[SWOL_INDOOR_MAC_ADDRESS_INDEX_MAX];
- /* mac address array allowed to wakeup host*/
- wmi_mac_addr swol_indoor_key_mac[SWOL_INDOOR_MAC_ADDRESS_INDEX_MAX];
- /* app mask for the mac addresses specified in swol_indoor_key_mac */
- A_UINT32 swol_indoor_app_mask[SWOL_INDOOR_MAC_ADDRESS_INDEX_MAX];
- A_UINT32 swol_indoor_waker_check; /* whether to do indoor waker check */
- A_UINT32 swol_indoor_pw_check; /* whether to check password */
- A_UINT32 swol_indoor_pattern; /* wakeup pattern */
- A_UINT32 swol_indoor_exception; /* wakeup when exception happens */
- A_UINT32 swol_indoor_exception_app;
- A_UINT32 swol_assist_enable; /* whether to enable IoT mode */
- } wmi_extwow_set_app_type1_params_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals wmi_extwow_set_app_type2_params_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT8 rc4_key[16];
- A_UINT32 rc4_key_len;
- /** ip header parameter */
- A_UINT32 ip_id; /* NC id */
- A_UINT32 ip_device_ip; /* NC IP address */
- A_UINT32 ip_server_ip; /* Push server IP address */
- /** tcp header parameter */
- A_UINT16 tcp_src_port; /* NC TCP port */
- A_UINT16 tcp_dst_port; /* Push server TCP port */
- A_UINT32 tcp_seq;
- A_UINT32 tcp_ack_seq;
- A_UINT32 keepalive_init; /* Initial ping interval */
- A_UINT32 keepalive_min; /* Minimum ping interval */
- A_UINT32 keepalive_max; /* Maximum ping interval */
- A_UINT32 keepalive_inc; /* Increment of ping interval */
- wmi_mac_addr gateway_mac;
- A_UINT32 tcp_tx_timeout_val;
- A_UINT32 tcp_rx_timeout_val;
- /** add extra parameter for backward-compatible */
- /*
- * For all byte arrays, natural order is used. E.g.
- * rc4_write_sandbox[0] holds the 1st RC4 S-box byte,
- * rc4_write_sandbox[1] holds the 2nd RC4 S-box byte, etc.
- */
- /* used to encrypt transmit packet such as keep-alive */
- A_UINT8 rc4_write_sandbox[256];
- A_UINT32 rc4_write_x;
- A_UINT32 rc4_write_y;
- /* used to decrypt received packet such as wow data */
- A_UINT8 rc4_read_sandbox[256];
- A_UINT32 rc4_read_x;
- A_UINT32 rc4_read_y;
- /* used to calculate HMAC hash for transmit packet such as keep-alive */
- A_UINT8 ssl_write_seq[8];
- A_UINT8 ssl_sha1_write_key[64];
- A_UINT32 ssl_sha1_write_key_len;
- /* used to calculate HAMC hash for receive packet such as wow data */
- A_UINT8 ssl_read_seq[8];
- A_UINT8 ssl_sha1_read_key[64];
- A_UINT32 ssl_sha1_read_key_len;
- /* optional element for specifying TCP options data to include in
- * transmit packets such as keep-alive
- */
- A_UINT32 tcp_options_len;
- A_UINT8 tcp_options[40];
- A_UINT32 async_id; /* keep-alive request id */
- } wmi_extwow_set_app_type2_params_cmd_fixed_param;
- #define WMI_RXERR_CRC 0x01 /* CRC error on frame */
- #define WMI_RXERR_DECRYPT 0x08 /* non-Michael decrypt error */
- #define WMI_RXERR_MIC 0x10 /* Michael MIC decrypt error */
- #define WMI_RXERR_KEY_CACHE_MISS 0x20 /* No/incorrect key matter in h/w */
- #define WMI_RX_OFFLOAD_MON_MODE 0x40 /* Offload dropped mgmt pkt's for only in capture mode*/
- #define WMI_RXERR_PN 0x80 /* Invalid PN number on frame */
- typedef enum {
- PKT_PWR_SAVE_PAID_MATCH = 0x00000001,
- PKT_PWR_SAVE_GID_MATCH = 0x00000002,
- PKT_PWR_SAVE_EARLY_TIM_CLEAR = 0x00000004,
- PKT_PWR_SAVE_EARLY_DTIM_CLEAR = 0x00000008,
- PKT_PWR_SAVE_EOF_PAD_DELIM = 0x00000010,
- PKT_PWR_SAVE_MACADDR_MISMATCH = 0x00000020,
- PKT_PWR_SAVE_DELIM_CRC_FAIL = 0x00000040,
- PKT_PWR_SAVE_GID_NSTS_ZERO = 0x00000080,
- PKT_PWR_SAVE_RSSI_CHECK = 0x00000100,
- PKT_PWR_SAVE_5G_EBT = 0x00000200,
- PKT_PWR_SAVE_2G_EBT = 0x00000400,
- PKT_PWR_SAVE_BSS_COLOR_MISMATCH = 0x00000800,
- PKT_PWR_SAVE_UL_FLAG = 0x00001000,
- PKT_PWR_SAVE_STA_ID_MISMATCH = 0x00002000,
- PKT_PWR_SAVE_MACADDR_MISMATCH_FCS = 0x00004000,
- PKT_PWR_SAVE_ENABLE = 0x80000000,
- } WMI_PKT_PWR_SAVE_TYPE;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ftm_intg_cmd_fixed_param */
- A_UINT32 num_data; /** length in byte of data[]. */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /* This structure is used to send Factory Test Mode [FTM] command
- * from host to firmware for integrated chips which are binary blobs.
- * Following this structure is the TLV:
- * A_UINT8 data[]; <-- length in byte given by field num_data.
- */
- } wmi_ftm_intg_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ftm_intg_event_fixed_param */
- A_UINT32 num_data; /** length in byte of data[]. */
- /* This structure is used to receive Factory Test Mode [FTM] event
- * from firmware to host for integrated chips which are binary blobs.
- * Following this structure is the TLV:
- * A_UINT8 data[]; <-- length in byte given by field num_data.
- */
- } wmi_ftm_intg_event_fixed_param;
- #define WMI_MAX_NS_OFFLOADS 2
- #define WMI_MAX_ARP_OFFLOADS 2
- #define WMI_ARPOFF_FLAGS_VALID (1 << 0) /* the tuple entry is valid */
- #define WMI_ARPOFF_FLAGS_MAC_VALID (1 << 1) /* the target mac address is valid */
- #define WMI_ARPOFF_FLAGS_REMOTE_IP_VALID (1 << 2) /* remote IP field is valid */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_ARP_OFFLOAD_TUPLE */
- A_UINT32 flags; /* flags */
- A_UINT8 target_ipaddr[4]; /* IPV4 addresses of the local node*/
- A_UINT8 remote_ipaddr[4]; /* source address of the remote node requesting the ARP (qualifier) */
- wmi_mac_addr target_mac; /* mac address for this tuple, if not valid, the local MAC is used */
- } WMI_ARP_OFFLOAD_TUPLE;
- #define WMI_NSOFF_FLAGS_VALID (1 << 0) /* the tuple entry is valid */
- #define WMI_NSOFF_FLAGS_MAC_VALID (1 << 1) /* the target mac address is valid */
- #define WMI_NSOFF_FLAGS_REMOTE_IP_VALID (1 << 2) /* remote IP field is valid */
- #define WMI_NSOFF_FLAGS_IS_IPV6_ANYCAST (1 << 3) /* whether the configured IPv6 address is anycast */
- #define WMI_NSOFF_MAX_TARGET_IPS 2
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_NS_OFFLOAD_TUPLE */
- A_UINT32 flags; /* flags */
- /* NOTE: This size of array target_ipaddr[] cannot be changed without breaking WMI compatibility. */
- WMI_IPV6_ADDR target_ipaddr[WMI_NSOFF_MAX_TARGET_IPS]; /* IPV6 target addresses of the local node */
- WMI_IPV6_ADDR solicitation_ipaddr; /* multi-cast source IP addresses for receiving solicitations */
- WMI_IPV6_ADDR remote_ipaddr; /* address of remote node requesting the solicitation (qualifier) */
- wmi_mac_addr target_mac; /* mac address for this tuple, if not valid, the local MAC is used */
- } WMI_NS_OFFLOAD_TUPLE;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_SET_ARP_NS_OFFLOAD_CMD_fixed_param */
- A_UINT32 flags;
- A_UINT32 vdev_id;
- A_UINT32 num_ns_ext_tuples;
- /* Following this structure are the TLVs:
- * WMI_NS_OFFLOAD_TUPLE ns_tuples[WMI_MAX_NS_OFFLOADS];
- * WMI_ARP_OFFLOAD_TUPLE arp_tuples[WMI_MAX_ARP_OFFLOADS];
- * WMI_NS_OFFLOAD_TUPLE ns_ext_tuples[]; <-- size based on num_ns_ext_tuples
- */
- } WMI_SET_ARP_NS_OFFLOAD_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 pattern_id;
- A_UINT32 timeout;
- A_UINT32 length;
- /*Following this would be the pattern
- A_UINT8 pattern[] of length specified by length
- field in the structure.*/
- } WMI_ADD_PROACTIVE_ARP_RSP_PATTERN_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 pattern_id;
- } WMI_DEL_PROACTIVE_ARP_RSP_PATTERN_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_tid_addba_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** Tid number */
- A_UINT32 tid;
- /** Initiator (1) or Responder (0) for this aggregation */
- A_UINT32 initiator;
- /** size of the negotiated window */
- A_UINT32 window_size;
- /** starting sequence number (only valid for initiator) */
- A_UINT32 ssn;
- /** timeout field represents the time to wait for Block Ack in
- * initiator case and the time to wait for BAR in responder
- * case. 0 represents no timeout. */
- A_UINT32 timeout;
- /* BA policy: immediate ACK (0) or delayed ACK (1) */
- A_UINT32 policy;
- } wmi_peer_tid_addba_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_tid_delba_cmd */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** Tid number */
- A_UINT32 tid;
- /** Initiator (1) or Responder (0) for this aggregation */
- A_UINT32 initiator;
- } wmi_peer_tid_delba_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tx_addba_complete_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** Tid number */
- A_UINT32 tid;
- /** Event status */
- A_UINT32 status;
- } wmi_tx_addba_complete_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tx_delba_complete_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** Tid number */
- A_UINT32 tid;
- /** Event status */
- A_UINT32 status;
- } wmi_tx_delba_complete_event_fixed_param;
- /*
- * Structure to request sequence numbers for a given
- * peer station on different TIDs. The TIDs are
- * indicated in the tidBitMap, tid 0 would
- * be represented by LSB bit 0. tid 1 would be
- * represented by LSB bit 1 etc.
- * The target will retrieve the current sequence
- * numbers for the peer on all the TIDs requested
- * and send back a response in a WMI event.
- */
- typedef struct
- {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals
- WMITLV_TAG_STRUC_wmi_ba_req_ssn_cmd_sub_struct_param */
- wmi_mac_addr peer_macaddr;
- A_UINT32 tidBitmap;
- } wmi_ba_req_ssn;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals
- WMITLV_TAG_STRUC_wmi_ba_req_ssn_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** Number of requested SSN In the TLV wmi_ba_req_ssn[] */
- A_UINT32 num_ba_req_ssn;
- /* Following this struct are the TLV's:
- * wmi_ba_req_ssn ba_req_ssn_list; All peer and tidBitMap for which the ssn is requested
- */
- } wmi_ba_req_ssn_cmd_fixed_param;
- /*
- * Max transmit categories
- *
- * Note: In future if we need to increase WMI_MAX_TC definition
- * It would break the compatibility for WMI_BA_RSP_SSN_EVENTID.
- */
- #define WMI_MAX_TC 8
- /*
- * Structure to send response sequence numbers
- * for a give peer and tidmap.
- */
- typedef struct
- {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals
- WMITLV_TAG_STRUC_wmi_ba_req_ssn_event_sub_struct_param */
- wmi_mac_addr peer_macaddr;
- /* A boolean to indicate if ssn is present */
- A_UINT32 ssn_present_for_tid[WMI_MAX_TC];
- /* The ssn from target, valid only if
- * ssn_present_for_tid[tidn] equals 1
- */
- A_UINT32 ssn_for_tid[WMI_MAX_TC];
- } wmi_ba_event_ssn;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals
- WMITLV_TAG_STRUC_wmi_ba_rsp_ssn_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** Event status, success or failure of the overall operation */
- A_UINT32 status;
- /** Number of requested SSN In the TLV wmi_ba_req_ssn[] */
- A_UINT32 num_ba_event_ssn;
- /* Following this struct are the TLV's:
- * wmi_ba_event_ssn ba_event_ssn_list; All peer and tidBitMap for which the ssn is requested
- */
- } wmi_ba_rsp_ssn_event_fixed_param;
- enum wmi_aggr_state_req_type {
- WMI_DISABLE_AGGREGATION,
- WMI_ENABLE_AGGREGATION
- };
- /*
- * This event is generated by the COEX module
- * when esco call is begins the coex module in fw generated this event to host to
- * disable the RX aggregation and after completion of the esco call fw will indicate to
- * enable back the Rx aggregation .
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_aggr_state_trig_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** req_type contains values from enum
- * wmi_aggr_state_req_type; 0 (disable) 1(enable) */
- A_UINT32 req_type;
- } wmi_aggr_state_trig_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_install_key_complete_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** MAC address used for installing */
- wmi_mac_addr peer_macaddr;
- /** key index */
- A_UINT32 key_ix;
- /** key flags */
- A_UINT32 key_flags;
- /** Event status */
- A_UINT32 status;
- } wmi_vdev_install_key_complete_event_fixed_param;
- typedef enum {
- /* CSA_SA_QUERY_TIMEOUT:
- * Disconnect due to SA query timeout after moving to new channel
- * due to CSA in OCV enabled case.
- */
- WLAN_DISCONNECT_REASON_CSA_SA_QUERY_TIMEOUT = 1,
- /* MOVE_TO_CELLULAR:
- * Disconnect from WiFi to move to cellular
- */
- WLAN_DISCONNECT_REASON_MOVE_TO_CELLULAR,
- } WMI_VDEV_DISCONNECT_REASON_ID;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_disconnect_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* Disconnect reason from WMI_VDEV_DISCONNECT_REASON_ID */
- A_UINT32 reason;
- } wmi_vdev_disconnect_event_fixed_param;
- typedef enum _WMI_NLO_AUTH_ALGORITHM {
- WMI_NLO_AUTH_ALGO_80211_OPEN = 1,
- WMI_NLO_AUTH_ALGO_80211_SHARED_KEY = 2,
- WMI_NLO_AUTH_ALGO_WPA = 3,
- WMI_NLO_AUTH_ALGO_WPA_PSK = 4,
- WMI_NLO_AUTH_ALGO_WPA_NONE = 5,
- WMI_NLO_AUTH_ALGO_RSNA = 6,
- WMI_NLO_AUTH_ALGO_RSNA_PSK = 7,
- } WMI_NLO_AUTH_ALGORITHM;
- typedef enum _WMI_NLO_CIPHER_ALGORITHM {
- WMI_NLO_CIPHER_ALGO_NONE = 0x00,
- WMI_NLO_CIPHER_ALGO_WEP40 = 0x01,
- WMI_NLO_CIPHER_ALGO_TKIP = 0x02,
- WMI_NLO_CIPHER_ALGO_CCMP = 0x04,
- WMI_NLO_CIPHER_ALGO_WEP104 = 0x05,
- WMI_NLO_CIPHER_ALGO_BIP = 0x06,
- WMI_NLO_CIPHER_ALGO_WPA_USE_GROUP = 0x100,
- WMI_NLO_CIPHER_ALGO_RSN_USE_GROUP = 0x100,
- WMI_NLO_CIPHER_ALGO_WEP = 0x101,
- } WMI_NLO_CIPHER_ALGORITHM;
- /* SSID broadcast type passed in NLO params */
- typedef enum _WMI_NLO_SSID_BcastNwType
- {
- WMI_NLO_BCAST_UNKNOWN = 0,
- WMI_NLO_BCAST_NORMAL = 1,
- WMI_NLO_BCAST_HIDDEN = 2,
- } WMI_NLO_SSID_BcastNwType;
- #define WMI_NLO_MAX_SSIDS 16
- #define WMI_NLO_MAX_CHAN 48
- #define WMI_NLO_CONFIG_STOP (0x1 << 0)
- #define WMI_NLO_CONFIG_START (0x1 << 1)
- #define WMI_NLO_CONFIG_RESET (0x1 << 2)
- #define WMI_NLO_CONFIG_SLOW_SCAN (0x1 << 4)
- #define WMI_NLO_CONFIG_FAST_SCAN (0x1 << 5)
- #define WMI_NLO_CONFIG_SSID_HIDE_EN (0x1 << 6)
- /* This bit is used to indicate if EPNO Profile is enabled */
- #define WMI_NLO_CONFIG_ENLO (0x1 << 7)
- #define WMI_NLO_CONFIG_SCAN_PASSIVE (0x1 << 8)
- #define WMI_NLO_CONFIG_ENLO_RESET (0x1 << 9)
- #define WMI_NLO_CONFIG_SPOOFED_MAC_IN_PROBE_REQ (0x1 << 10)
- #define WMI_NLO_CONFIG_RANDOM_SEQ_NO_IN_PROBE_REQ (0x1 << 11)
- #define WMI_NLO_CONFIG_ENABLE_IE_WHITELIST_IN_PROBE_REQ (0x1 << 12)
- #define WMI_NLO_CONFIG_ENABLE_CNLO_RSSI_CONFIG (0x1 << 13)
- /*
- * This bit is used to indicate if MRSNO IE parsing for WiFi6 standard
- * is enabled.
- */
- #define WMI_NLO_CONFIG_ENABLE_MRSNO_WIFI6 (0x1 << 14)
- /*
- * This bit is used to indicate if MRSNO IE parsing for WiFi7 standard
- * is enabled.
- */
- #define WMI_NLO_CONFIG_ENABLE_MRSNO_WIFI7 (0x1 << 15)
- /* Whether directed scan needs to be performed (for hidden SSIDs) */
- #define WMI_ENLO_FLAG_DIRECTED_SCAN 1
- /* Whether PNO event shall be triggered if the network is found on A band */
- #define WMI_ENLO_FLAG_A_BAND 2
- /* Whether PNO event shall be triggered if the network is found on G band */
- #define WMI_ENLO_FLAG_G_BAND 4
- /* Whether strict matching is required (i.e. firmware shall not match on the entire SSID) */
- #define WMI_ENLO_FLAG_STRICT_MATCH 8
- /* Code for matching the beacon AUTH IE - additional codes TBD */
- /* open */
- #define WMI_ENLO_AUTH_CODE_OPEN 1
- /* WPA_PSK or WPA2PSK */
- #define WMI_ENLO_AUTH_CODE_PSK 2
- /* any EAPOL */
- #define WMI_ENLO_AUTH_CODE_EAPOL 4
- /* NOTE: wmi_nlo_ssid_param structure can't be changed without breaking the compatibility */
- typedef struct wmi_nlo_ssid_param
- {
- A_UINT32 valid;
- wmi_ssid ssid;
- } wmi_nlo_ssid_param;
- /* NOTE: wmi_nlo_enc_param structure can't be changed without breaking the compatibility */
- typedef struct wmi_nlo_enc_param
- {
- A_UINT32 valid;
- A_UINT32 enc_type;
- } wmi_nlo_enc_param;
- /* NOTE: wmi_nlo_auth_param structure can't be changed without breaking the compatibility */
- typedef struct wmi_nlo_auth_param
- {
- A_UINT32 valid;
- A_UINT32 auth_type;
- } wmi_nlo_auth_param;
- /* NOTE: wmi_nlo_bcast_nw_param structure can't be changed without breaking the compatibility */
- typedef struct wmi_nlo_bcast_nw_param
- {
- A_UINT32 valid;
- /* If WMI_NLO_CONFIG_EPNO is not set. Supplicant PNO is enabled. The value should be true/false
- Otherwise EPNO is enabled. bcast_nw_type would be used as a bit flag contains WMI_ENLO_FLAG_XXX */
- A_UINT32 bcast_nw_type;
- } wmi_nlo_bcast_nw_param;
- /* NOTE: wmi_nlo_rssi_param structure can't be changed without breaking the compatibility */
- typedef struct wmi_nlo_rssi_param
- {
- A_UINT32 valid;
- A_INT32 rssi;
- } wmi_nlo_rssi_param;
- typedef struct nlo_configured_parameters {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_nlo_configured_parameters */
- wmi_nlo_ssid_param ssid;
- wmi_nlo_enc_param enc_type;
- wmi_nlo_auth_param auth_type;
- wmi_nlo_rssi_param rssi_cond;
- wmi_nlo_bcast_nw_param bcast_nw_type; /* indicates if the SSID is hidden or not */
- } nlo_configured_parameters;
- /* Support channel prediction for PNO scan after scanning top_k_num channels
- * if stationary_threshold is met.
- */
- typedef struct nlo_channel_prediction_cfg {
- A_UINT32 tlv_header;
- /* Enable or disable this feature. */
- A_UINT32 enable;
- /* Top K channels will be scanned before deciding whether to further scan
- * or stop. Minimum value is 3 and maximum is 5. */
- A_UINT32 top_k_num;
- /* Preconfigured stationary threshold.
- * Lesser value means more conservative. Bigger value means more aggressive.
- * Maximum is 100 and minimum is 0. */
- A_UINT32 stationary_threshold;
- /* Periodic full channel scan in milliseconds unit.
- * After full_scan_period_ms since last full scan, channel prediction
- * scan is suppressed and will do full scan.
- * This is to help detecting sudden AP power-on or -off. Value 0 means no
- * full scan at all (not recommended).
- */
- A_UINT32 full_scan_period_ms;
- } nlo_channel_prediction_cfg;
- typedef struct enlo_candidate_score_params_t {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_enlo_candidate_score_param */
- A_INT32 min5GHz_rssi; /* minimum 5GHz RSSI for a BSSID to be considered (units = dBm) */
- A_INT32 min24GHz_rssi; /* minimum 2.4GHz RSSI for a BSSID to be considered (units = dBm) */
- A_UINT32 initial_score_max; /* the maximum score that a network can have before bonuses */
- /* current_connection_bonus:
- * only report when there is a network's score this much higher
- * than the current connection
- */
- A_UINT32 current_connection_bonus;
- A_UINT32 same_network_bonus; /* score bonus for all networks with the same network flag */
- A_UINT32 secure_bonus; /* score bonus for networks that are not open */
- A_UINT32 band5GHz_bonus; /* 5GHz RSSI score bonus (applied to all 5GHz networks) */
- } enlo_candidate_score_params;
- typedef struct connected_nlo_bss_band_rssi_pref_t {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_connected_nlo_bss_band_rssi_pref */
- /** band which needs to get preference over other band - see wmi_set_vdev_ie_band enum */
- A_UINT32 band;
- /* Amount of RSSI preference (in dB) that can be given to band (mentioned above) over other band */
- A_INT32 rssi_pref;
- } connected_nlo_bss_band_rssi_pref;
- typedef struct connected_nlo_rssi_params_t {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_connected_nlo_rssi_params */
- /* Relative RSSI threshold (in dB) by which new BSS should have better RSSI than
- * the current connected BSS.
- */
- A_INT32 relative_rssi;
- /* The amount of RSSI preference (in dB) that can be given to a 5G BSS over 2.4G BSS. */
- A_INT32 relative_rssi_5g_pref;
- } connected_nlo_rssi_params;
- typedef struct wmi_nlo_config {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nlo_config_cmd_fixed_param */
- A_UINT32 flags;
- A_UINT32 vdev_id;
- A_UINT32 fast_scan_max_cycles;
- A_UINT32 active_dwell_time;
- A_UINT32 passive_dwell_time; /* PDT in msecs */
- A_UINT32 probe_bundle_size;
- A_UINT32 rest_time; /* ART = IRT */
- A_UINT32 max_rest_time; /* Max value that can be reached after SBM */
- A_UINT32 scan_backoff_multiplier; /* SBM */
- A_UINT32 fast_scan_period; /* SCBM */
- A_UINT32 slow_scan_period; /* specific to windows */
- A_UINT32 no_of_ssids;
- A_UINT32 num_of_channels;
- A_UINT32 delay_start_time; /* NLO scan start delay time in milliseconds */
- /** MAC Address to use in Probe Req as SA **/
- wmi_mac_addr mac_addr;
- /** Mask on which MAC has to be randomized **/
- wmi_mac_addr mac_mask;
- /** IE bitmap to use in Probe Req **/
- A_UINT32 ie_bitmap[WMI_IE_BITMAP_SIZE];
- /** Number of vendor OUIs. In the TLV vendor_oui[] **/
- A_UINT32 num_vendor_oui;
- /** Number of connected NLO band preferences **/
- A_UINT32 num_cnlo_band_pref;
- /** dwell time in msec on active 2GHz channels */
- A_UINT32 active_dwell_time_2ghz;
- /** dwell time in msec when 6 GHz channel (PSC or non-PSC) is marked as an active channel */
- A_UINT32 active_dwell_time_6ghz;
- /** dwell time in msec when 6 GHz channel (PSC or non-PSC) is marked as a passive channel */
- A_UINT32 passive_dwell_time_6ghz;
- /* The TLVs will follow.
- * nlo_configured_parameters nlo_list[];
- * A_UINT32 channel_list[num_of_channels]; // in MHz
- * channel_list:
- * If FW supports WMI_SERVICE_PNO_SCAN_CONFIG_PER_CHANNEL,
- * then channel_list may fill the upper 12 bits with channel flags,
- * while using only the lower 20 bits for channel frequency.
- * Check WMI_SCAN_CHANNEL_FLAG macros for the channel flags
- * If FW doesn't support WMI_SERVICE_PNO_SCAN_CONFIG_PER_CHANNEL,
- * then channel_list only holds the frequency value
- * nlo_channel_prediction_cfg ch_prediction_cfg;
- * enlo_candidate_score_params candidate_score_params;
- * wmi_vendor_oui vendor_oui[num_vendor_oui];
- * connected_nlo_rssi_params cnlo_rssi_params;
- * connected_nlo_bss_band_rssi_pref cnlo_bss_band_rssi_pref[num_cnlo_band_pref];
- * A_UINT32 preferred_chan_list[]; // in MHz
- */
- } wmi_nlo_config_cmd_fixed_param;
- typedef struct wmi_nlo_event
- {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nlo_event */
- A_UINT32 vdev_id;
- } wmi_nlo_event;
- /* WMI_PASSPOINT_CONFIG_SET
- * Sets a list for passpoint networks for PNO purposes;
- * it should be matched against any passpoint networks found
- * during regular PNO scan.
- */
- #define WMI_PASSPOINT_CONFIG_SET (0x1 << 0)
- /* WMI_PASSPOINT_CONFIG_RESET
- * Reset passpoint network list -
- * no Passpoint networks should be matched after this.
- */
- #define WMI_PASSPOINT_CONFIG_RESET (0x1 << 1)
- #define PASSPOINT_REALM_LEN 256
- #define PASSPOINT_ROAMING_CONSORTIUM_ID_LEN 5
- #define PASSPOINT_ROAMING_CONSORTIUM_ID_NUM 16
- #define PASSPOINT_PLMN_ID_LEN 3
- #define PASSPOINT_PLMN_ID_ALLOC_LEN /* round up to A_UINT32 boundary */ \
- (((PASSPOINT_PLMN_ID_LEN + 3) >> 2) << 2)
- /*
- * Confirm PASSPOINT_REALM_LEN is a multiple of 4, so the
- * A_UINT8 realm[PASSPOINT_REALM_LEN]
- * array will end on a 4-byte boundary.
- * (This 4-byte alignment simplifies endianness-correction byte swapping.)
- */
- A_COMPILE_TIME_ASSERT(
- check_passpoint_realm_size,
- (PASSPOINT_REALM_LEN % sizeof(A_UINT32)) == 0);
- /*
- * Confirm the product of PASSPOINT_ROAMING_CONSORTIUM_ID_NUM and
- * PASSPOINT_ROAMING_CONSORTIUM_ID_LEN is a multiple of 4, so the
- * roaming_consortium_ids array below will end on a 4-byte boundary.
- * (This 4-byte alignment simplifies endianness-correction byte swapping.)
- */
- A_COMPILE_TIME_ASSERT(
- check_passpoint_roaming_consortium_ids_size,
- ((PASSPOINT_ROAMING_CONSORTIUM_ID_NUM*PASSPOINT_ROAMING_CONSORTIUM_ID_LEN) % sizeof(A_UINT32)) == 0);
- /* wildcard ID to allow an action (reset) to apply to all networks */
- #define WMI_PASSPOINT_NETWORK_ID_WILDCARD 0xFFFFFFFF
- typedef struct wmi_passpoint_config {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals wmi_passpoint_config_cmd_fixed_param */
- /* (network) id
- * identifier of the matched network, report this in event
- * This id can be a wildcard (WMI_PASSPOINT_NETWORK_ID_WILDCARD)
- * that indicates the action should be applied to all networks.
- * Currently, the only action that is applied to all networks is "reset".
- * If a non-wildcard ID is specified, that particular network is configured.
- * If a wildcard ID is specified, all networks are reset.
- */
- A_UINT32 id;
- A_UINT32 req_id;
- A_UINT8 realm[PASSPOINT_REALM_LEN]; /*null terminated UTF8 encoded realm, 0 if unspecified*/
- A_UINT8 roaming_consortium_ids[PASSPOINT_ROAMING_CONSORTIUM_ID_NUM][PASSPOINT_ROAMING_CONSORTIUM_ID_LEN]; /*roaming consortium ids to match, 0s if unspecified*/
- /*This would be bytes-stream as same as defition of realm id in 802.11 standard*/
- A_UINT8 plmn[PASSPOINT_PLMN_ID_ALLOC_LEN]; /*PLMN id mcc/mnc combination as per rules, 0s if unspecified */
- } wmi_passpoint_config_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals wmi_passpoint_event_hdr */
- A_UINT32 id; /* identifier of the matched network */
- A_UINT32 vdev_id;
- A_UINT32 timestamp; /* time since boot (in microsecond) when the result was retrieved*/
- wmi_ssid ssid;
- wmi_mac_addr bssid; /* bssid of the network */
- A_UINT32 channel_mhz; /* channel frequency in MHz */
- A_UINT32 rssi; /* RSSI value */
- A_UINT32 rtt; /* timestamp in nanoseconds*/
- A_UINT32 rtt_sd; /* standard deviation in rtt */
- A_UINT32 beacon_period; /* beacon advertised in the beacon */
- A_UINT32 capability; /* capabilities advertised in the beacon */
- A_UINT32 ie_length; /* size of the ie_data blob */
- A_UINT32 anqp_length; /* length of ANQP blob */
- /* Following this structure is the byte stream of ie data of length ie_buf_len:
- * A_UINT8 ie_data[]; <-- length in byte given by field ie_length, blob of ie data in beacon
- * A_UINT8 anqp_ie[]; <-- length in byte given by field anqp_len, blob of anqp data of IE
- * Implicitly, combing ie_data and anqp_ie into a single bufp, and the bytes stream of each ie should be same as BEACON/Action-frm by 802.11 spec.
- */
- } wmi_passpoint_event_hdr;
- #define GTK_OFFLOAD_OPCODE_MASK 0xFF000000
- /** Enable GTK offload, and provided parameters KEK,KCK and replay counter values */
- #define GTK_OFFLOAD_ENABLE_OPCODE 0x01000000
- /** Disable GTK offload */
- #define GTK_OFFLOAD_DISABLE_OPCODE 0x02000000
- /** Read GTK offload parameters, generates WMI_GTK_OFFLOAD_STATUS_EVENT */
- #define GTK_OFFLOAD_REQUEST_STATUS_OPCODE 0x04000000
- enum wmi_chatter_mode {
- /* Chatter enter/exit happens
- * automatically based on preset
- * params
- */
- WMI_CHATTER_MODE_AUTO,
- /* Chatter enter is triggered
- * manually by the user
- */
- WMI_CHATTER_MODE_MANUAL_ENTER,
- /* Chatter exit is triggered
- * manually by the user
- */
- WMI_CHATTER_MODE_MANUAL_EXIT,
- /* Placeholder max value, always last*/
- WMI_CHATTER_MODE_MAX
- };
- enum wmi_chatter_query_type {
- /*query coalescing filter match counter*/
- WMI_CHATTER_QUERY_FILTER_MATCH_CNT,
- WMI_CHATTER_QUERY_MAX
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_chatter_set_mode_cmd_fixed_param */
- A_UINT32 chatter_mode;
- } wmi_chatter_set_mode_cmd_fixed_param;
- /** maximum number of filter supported*/
- #define CHATTER_MAX_COALESCING_RULES 11
- /** maximum number of field tests per filter*/
- #define CHATTER_MAX_FIELD_TEST 5
- /** maximum field length in number of DWORDS*/
- #define CHATTER_MAX_TEST_FIELD_LEN32 2
- /** field test kinds*/
- #define CHATTER_COALESCING_TEST_EQUAL 1
- #define CHATTER_COALESCING_TEST_MASKED_EQUAL 2
- #define CHATTER_COALESCING_TEST_NOT_EQUAL 3
- /** packet type*/
- #define CHATTER_COALESCING_PKT_TYPE_UNICAST (1 << 0)
- #define CHATTER_COALESCING_PKT_TYPE_MULTICAST (1 << 1)
- #define CHATTER_COALESCING_PKT_TYPE_BROADCAST (1 << 2)
- /** coalescing field test*/
- typedef struct _chatter_pkt_coalescing_hdr_test {
- /** offset from start of mac header, for windows native wifi host driver
- * should assume standard 802.11 frame format without QoS info and address4
- * FW would account for any non-stand fields for final offset value.
- */
- A_UINT32 offset;
- A_UINT32 length; /* length of test field*/
- A_UINT32 test; /*equal, not equal or masked equal*/
- A_UINT32 mask[CHATTER_MAX_TEST_FIELD_LEN32]; /*mask byte stream*/
- A_UINT32 value[CHATTER_MAX_TEST_FIELD_LEN32]; /*value byte stream*/
- } chatter_pkt_coalescing_hdr_test;
- /** packet coalescing filter*/
- typedef struct _chatter_pkt_coalescing_filter {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_chatter_pkt_coalescing_filter */
- A_UINT32 filter_id; /* unique id assigned by OS */
- A_UINT32 max_coalescing_delay; /* max milliseconds 1st pkt can be held */
- A_UINT32 pkt_type; /* unicast/multicast/broadcast */
- A_UINT32 num_of_test_field; /* number of field test in table */
- chatter_pkt_coalescing_hdr_test test_fields[CHATTER_MAX_FIELD_TEST]; /* field test tbl */
- } chatter_pkt_coalescing_filter;
- /** packet coalescing filter add command*/
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_chatter_coalescing_add_filter_cmd_fixed_param */
- A_UINT32 num_of_filters;
- /* Following this tlv, there comes an array of structure of type chatter_pkt_coalescing_filter
- chatter_pkt_coalescing_filter rx_filter[1];*/
- } wmi_chatter_coalescing_add_filter_cmd_fixed_param;
- /** packet coalescing filter delete command*/
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_chatter_coalescing_delete_filter_cmd_fixed_param */
- A_UINT32 filter_id; /*filter id which will be deleted*/
- } wmi_chatter_coalescing_delete_filter_cmd_fixed_param;
- /** packet coalescing query command*/
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_chatter_coalescing_query_cmd_fixed_param */
- A_UINT32 type; /*type of query*/
- } wmi_chatter_coalescing_query_cmd_fixed_param;
- /** chatter query reply event*/
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_chatter_query_reply_event_fixed_param */
- A_UINT32 type; /*query type*/
- A_UINT32 filter_match_cnt; /*coalescing filter match counter*/
- } wmi_chatter_query_reply_event_fixed_param;
- /* NOTE: This constants GTK_OFFLOAD_KEK_BYTES, GTK_OFFLOAD_KCK_BYTES, and GTK_REPLAY_COUNTER_BYTES
- * cannot be changed without breaking WMI compatibility. */
- #define GTK_OFFLOAD_KEK_BYTES 16
- #define GTK_OFFLOAD_KCK_BYTES 16
- /* NOTE: GTK_REPLAY_COUNTER_BYTES, WMI_MAX_KEY_LEN, IGTK_PN_SIZE cannot be changed in the future without breaking WMI compatibility */
- #define GTK_REPLAY_COUNTER_BYTES 8
- #define WMI_MAX_KEY_LEN 32
- #define IGTK_PN_SIZE 6
- typedef struct {
- /**
- * WMITLV_TAG_STRUC_wmi_roam_ml_key_material_param will exist when link is not created by fw.
- */
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_ml_link_key_material_param */
- A_UINT32 link_id; /* The key is for which link, when link_id is 0xf, means the key is used for all links, like PTK */
- /** key index */
- A_UINT32 key_ix;
- /** key cipher, defined as WMI_CIPHER_ */
- A_UINT32 key_cipher;
- A_UINT8 pn[WMI_MAX_PN_LEN];
- A_UINT8 key_buff[WMI_MAX_KEY_LEN];
- /*
- * When link_id is 0xf, this field will be MLD address.
- * Otherwise, it will be bssid which specified with link_id.
- */
- wmi_mac_addr mac_addr;
- A_UINT32 key_len; /* number of valid bytes within key_buff */
- A_UINT32 key_flags;
- } wmi_roam_ml_key_material_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_GTK_OFFLOAD_STATUS_EVENT_fixed_param */
- A_UINT32 vdev_id; /** unique id identifying the VDEV */
- A_UINT32 flags; /* status flags */
- A_UINT32 refresh_cnt; /* number of successful GTK refresh exchanges since last SET operation */
- /*
- * As with all WMI messages, this message uses little-endian byte
- * ordering within each A_UINT32 field.
- * If a big-endian host is using automatic swapping of the bytes within
- * each 4-byte A_UINT32 to automatically correct the endianness of the
- * A_UINT32 fields as the message is uploaded from target --> host, the
- * big-endian host will have to undo the automatic byte swapping for the
- * below A_UINT8 fields, to restore them to their original order.
- */
- A_UINT8 replay_counter[GTK_REPLAY_COUNTER_BYTES]; /* current replay counter */
- A_UINT8 igtk_keyIndex; /* Use if IGTK_OFFLOAD is defined */
- A_UINT8 igtk_keyLength; /* Use if IGTK_OFFLOAD is defined */
- A_UINT8 igtk_keyRSC[IGTK_PN_SIZE]; /* key replay sequence counter *//* Use if IGTK_OFFLOAD is defined */
- A_UINT8 igtk_key[WMI_MAX_KEY_LEN]; /* Use if IGTK_OFFLOAD is defined */
- A_UINT8 gtk_keyIndex; /* GTK key index */
- A_UINT8 gtk_keyLength; /* GTK key length */
- A_UINT8 gtk_keyRSC[GTK_REPLAY_COUNTER_BYTES]; /* GTK key replay sequence counter */
- A_UINT8 gtk_key[WMI_MAX_KEY_LEN]; /* GTK key data */
- A_UINT8 bigtk_keyIndex; /* Use if IGTK_OFFLOAD is defined */
- A_UINT8 bigtk_keyLength; /* Use if IGTK_OFFLOAD is defined */
- A_UINT8 bigtk_keyRSC[IGTK_PN_SIZE]; /* key replay sequence counter *//* Use if IGTK_OFFLOAD is defined */
- A_UINT8 bigtk_key[WMI_MAX_KEY_LEN]; /* Use if IGTK_OFFLOAD is defined */
- } WMI_GTK_OFFLOAD_STATUS_EVENT_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_GTK_OFFLOAD_CMD_fixed_param */
- A_UINT32 vdev_id; /** unique id identifying the VDEV */
- A_UINT32 flags; /* control flags, GTK offload command use high byte */
- /* The size of following 3 arrays cannot be changed without breaking WMI compatibility. */
- A_UINT8 KEK[GTK_OFFLOAD_KEK_BYTES]; /* key encryption key */
- A_UINT8 KCK[GTK_OFFLOAD_KCK_BYTES]; /* key confirmation key */
- A_UINT8 replay_counter[GTK_REPLAY_COUNTER_BYTES]; /* replay counter for re-key */
- /*
- * Following structure will be appended when fils:
- * wmi_gtk_offload_fils_tlv_param wmi_fils_gtk_info;
- * Following structure will be appended to the above KEK[] when kek length
- * is larger than GTK_OFFLOAD_KEK_BYTES:
- * A_UINT8 kek_ext[];
- * Following structure will be appended to the above KCK[] when kck length
- * is larger than GTK_OFFLOAD_KCK_BYTES:
- * A_UINT8 kck_ext[];
- */
- } WMI_GTK_OFFLOAD_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_gtk_offload_extended_tlv_param */
- A_UINT32 vdev_id; /** unique id identifying the VDEV */
- A_UINT32 flags; /* control flags, GTK offload command use high byte */
- A_UINT32 kek_len;
- A_UINT8 KEK[GTK_OFFLOAD_KEK_EXTENDED_BYTES]; /* key encryption key */
- A_UINT8 KCK[GTK_OFFLOAD_KCK_BYTES]; /* key confirmation key */
- A_UINT8 replay_counter[GTK_REPLAY_COUNTER_BYTES]; /* replay counter for re-key */
- } wmi_gtk_offload_fils_tlv_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_PMF_OFFLOAD_SET_SA_QUERY_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 sa_query_retry_interval; /* in msec */
- A_UINT32 sa_query_max_retry_count;
- } WMI_PMF_OFFLOAD_SET_SA_QUERY_CMD_fixed_param;
- typedef enum {
- WMI_STA_KEEPALIVE_METHOD_NULL_FRAME = 1, /* 802.11 NULL frame */
- WMI_STA_KEEPALIVE_METHOD_UNSOLICITED_ARP_RESPONSE = 2, /* ARP response */
- WMI_STA_KEEPALIVE_METHOD_ETHERNET_LOOPBACK = 3, /*ETHERNET LOOPBACK*/
- WMI_STA_KEEPALIVE_METHOD_GRATUITOUS_ARP_REQUEST = 4, /* gratuitous ARP req*/
- WMI_STA_KEEPALIVE_METHOD_MGMT_VENDOR_ACTION = 5, /* vendor action frame */
- } WMI_STA_KEEPALIVE_METHOD;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_STA_KEEPALVE_ARP_RESPONSE */
- WMI_IPV4_ADDR sender_prot_addr; /* Sender protocol address */
- WMI_IPV4_ADDR target_prot_addr; /* Target protocol address */
- wmi_mac_addr dest_mac_addr; /* destination MAC address */
- } WMI_STA_KEEPALVE_ARP_RESPONSE;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_STA_KEEPALIVE_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 enable; /* 1 - Enable, 0 - disable */
- A_UINT32 method; /* keep alive method */
- A_UINT32 interval; /* time interval in seconds */
- /*
- * NOTE: following this structure is the TLV for ARP Response:
- * WMI_STA_KEEPALVE_ARP_RESPONSE arp_resp; <-- ARP response
- */
- } WMI_STA_KEEPALIVE_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 action;
- } WMI_VDEV_WNM_SLEEPMODE_CMD_fixed_param;
- typedef WMI_VDEV_WNM_SLEEPMODE_CMD_fixed_param WMI_STA_WNMSLEEP_CMD;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_keepalive_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 keepaliveInterval; /* seconds */
- A_UINT32 keepaliveMethod;
- } wmi_vdev_set_keepalive_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_keepalive_cmd_fixed_param */
- A_UINT32 vdev_id;
- } wmi_vdev_get_keepalive_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_keepalive_event_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 keepaliveInterval; /* seconds */
- A_UINT32 keepaliveMethod; /* seconds */
- } wmi_vdev_get_keepalive_event_fixed_param;
- typedef enum {
- WMI_CLEAR_ARP_STATS_COLLECTED = 0x0,
- WMI_START_ARP_STATS_COLLECTION,
- } WMI_ARP_STATS_ACTION;
- typedef enum {
- WMI_ARP_STATS_RX_PKT_TYPE_ARP = 0x1,
- } WMI_ARP_STATS_RX_PKT_TYPE;
- typedef enum {
- WMI_BA_SESSION_ESTABLISHMENT_STATUS_SUCCESS = 0x0,
- WMI_BA_SESSION_ESTABLISHMENT_STATUS_FAILURE,
- } WMI_ARP_STATS_BA_SESSION_ESTABLISH_STATUS;
- typedef enum {
- WMI_CONNECTION_STATUS_FAILURE = 0x0,
- WMI_CONNECTION_STATUS_SUCCESS,
- } WMI_ARP_STATS_CONNECTION_STATUS;
- /* ARP stats set (configure) req */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_arp_stats_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 set_clr; /* WMI_ARP_STATS_ACTION */
- A_UINT32 pkt_type; /* WMI_ARP_STATS_RX_PKT_TYPE */
- A_UINT32 ipv4; /* target will maintain ARP stats (only) for frames containing this IP address */
- } wmi_vdev_set_arp_stats_cmd_fixed_param;
- /* ARP stats get req */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_arp_stats_cmd_fixed_param */
- A_UINT32 vdev_id;
- } wmi_vdev_get_arp_stats_cmd_fixed_param;
- /* per vdev based ARP stats */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_arp_stats_event_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 arp_req_enqueue;
- A_UINT32 arp_req_tx_success;
- A_UINT32 arp_req_tx_failure; /* number of times a tx MPDU containing a unicast ARP request went unacked */
- A_UINT32 arp_rsp_recvd;
- A_UINT32 out_of_order_arp_rsp_drop_cnt;
- A_UINT32 dad_detected; /* duplicate address detection */
- A_UINT32 connect_status; /* WMI_ARP_STATS_CONNECTION_STATUS */
- A_UINT32 ba_session_establishment_status; /* WMI_ARP_STATS_BA_SESSION_ESTABLISH_STATUS */
- } wmi_vdev_get_arp_stats_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_connectivity_check_stats */
- A_UINT32 pkt_type_bitmap; /* WMI_IP_CONNECTIVITY_STATS_RX_PKT_TYPE_BITMAP - only for DNS, TCP and ICMP */
- A_UINT32 tcp_src_port; /* target will maintain TCP stats (only) for frames with this src port */
- A_UINT32 tcp_dst_port; /* target will maintain TCP stats (only) for frames with this dst port */
- A_UINT32 icmp_ipv4; /* target will maintain ICMPv4 stats (only) for frames containing this IP address */
- } wmi_vdev_set_connectivity_check_stats;
- /* per vdev dns/icmp/tcp based stats*/
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_connectivity_check_stats */
- A_UINT32 tcp_ack_recvd; /* number of tcp syn ack's received by FW */
- A_UINT32 icmpv4_rsp_recvd; /* number of icmpv4 responses received by FW */
- } wmi_vdev_get_connectivity_check_stats;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- #define IPSEC_NATKEEPALIVE_FILTER_DISABLE 0
- #define IPSEC_NATKEEPALIVE_FILTER_ENABLE 1
- A_UINT32 action;
- } WMI_VDEV_IPSEC_NATKEEPALIVE_FILTER_CMD_fixed_param;
- typedef WMI_VDEV_IPSEC_NATKEEPALIVE_FILTER_CMD_fixed_param WMI_VDEV_IPSEC_NATKEEPALIVE_FILTER_CMD;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 mcc_tbttmode;
- wmi_mac_addr mcc_bssid;
- } wmi_vdev_mcc_set_tbtt_mode_cmd_fixed_param;
- #define WMI_MAX_VENDOR_OUI_ACTION_SUPPORTED_PER_ACTION 10
- #define WMI_MAX_VENDOR_OUI_DATA_LENGTH 20
- typedef enum
- {
- WMI_VENDOR_OUI_ACTION_CONNECTION_1X1 = 0, /* Connect in 1X1 only */
- WMI_VENDOR_OUI_ACTION_ITO_EXTENSION = 1, /* Extend the Immediate Time-Out (ITO) if data is not received from AP after beacon with TIM bit set */
- WMI_VENDOR_OUI_ACTION_CCKM_1X1 = 2, /* TX (only) CCKM rates with 1 chain only */
- WMI_VENDOR_OUI_ACTION_ALT_ITO = 3, /* inactivity time-out */
- WMI_VENDOR_OUI_ACTION_SWITCH_TO_11N_MODE = 4, /* Switch from 11ac to 11n mode to avoid IOT issues with ONM frame */
- /* WMI_VENDOR_OUI_ACTION_CONNECTION_1X1_NUM_TX_RX_CHAINS_1
- * Connect in 1x1 only and Use only one chain for both Tx and Rx
- * to avoid IOT issues due to change in number of Tx and Rx chains
- */
- WMI_VENDOR_OUI_ACTION_CONNECTION_1X1_NUM_TX_RX_CHAINS_1 = 5,
- /* Disable burst and assist, and restrict A-MPDU size to 32 */
- WMI_VENDOR_OUI_ACTION_DISABLE_AGGRESSIVE_TX = 6,
- /* Disable FW triggered TWT if vendor OUI is received in beacon */
- WMI_VENDOR_OUI_ACTION_DISABLE_FW_TRIGGERED_TWT = 7,
- /* Extend ITO under WOW mode if vendor OUI is received in beacon */
- WMI_VENDOR_OUI_ACTION_EXTEND_WOW_ITO = 8,
- /*
- * Turn on station 80211BE feature if AP's vendor OUI is in the list
- * for specific customer
- */
- WMI_VENDOR_OUI_ACTION_ALLOW_11BE = 9,
- /*
- * Turn off FW's dynamic qos null tx rate if specific vendor OUI
- * received in beacon.
- */
- WMI_VENDOR_OUI_ACTION_DISABLE_DYNAMIC_QOS_NULL_TX_RATE = 10,
- /*
- * Enable CTS2SELF with QoS null frame if specific vendor OUI
- * received in beacon.
- */
- WMI_VENDOR_OUI_ACTION_ENABLE_CTS2SELF_WITH_QOS_NULL = 11,
- /*
- * Send SMPS frame following OMN frame on VHT conncection if specific
- * vendor OUI received in beacon.
- */
- WMI_VENDOR_OUI_ACTION_SEND_SMPS_FRAME_WITH_OMN = 12,
- /* Restrict SLO if specific vendor OUI received in beacon. */
- WMI_VENDOR_OUI_ACTION_RESTRICT_SLO = 13,
- /*
- * Force MLSR mode if specific vendor OUI received in beacon
- * when connect with MLO.
- */
- WMI_VENDOR_OUI_ACTION_FORCE_MLSR = 14,
- /*
- * Disable AUX learning and AUX listen if OUI matches
- */
- WMI_VENDOR_OUI_ACTION_DISABLE_AUXL = 15,
- /* Add any action before this line */
- WMI_VENDOR_OUI_ACTION_MAX_ACTION_ID
- } wmi_vendor_oui_action_id;
- typedef struct {
- A_UINT32 tlv_header;
- /** vendor OUI actions */
- A_UINT32 action_id; /* enum wmi_vendor_oui_action_id */
- A_UINT32 total_num_vendor_oui; /* total number of OUI present in ini for all actions.
- ** For first command, this value will be used for allocating memory in FW accordingly */
- A_UINT32 num_vendor_oui_ext; /* the number of wmi_vendor_oui_ext for action_id */
- /* followed by TLVs, an array of structure of type wmi_vendor_oui_ext
- ** wmi_vendor_oui_ext vendor_oui_ext[num_vendor_oui_ext];
- */
- /* followed by A_UINT8 data[] of concatenated data for each vendor_oui_ext[] element
- ** first byte contains the index i of structure vendor_oui_ext[]
- ** for which data is coming and length of the data is extracted as
- ** wmi_vendor_oui_ext[i].buf_data_length. No padding between data of
- ** N th OUI and (N+1) th OUI.
- ** For example, if vendor_oui_ext[0].buf_data_length is 18, then
- ** data[0] will hold the index value 0, data[1] through data[17]
- ** will hold the OUI data for this first OUI, data[18] will hold
- ** the index value 1, and the OUI data for the second OUI will
- ** begin at data[19].
- */
- } wmi_pdev_config_vendor_oui_action_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_ac_tx_queue_optimized_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** AC number */
- A_UINT32 ac; /* refer to wmi_traffic_ac */
- /**
- * Enable/disable tx queue optimizations (such as dropping stale tx frms)
- * for the specified AC.
- */
- A_UINT32 ac_tx_queue_optimize_enable;
- } wmi_pdev_set_ac_tx_queue_optimized_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_rx_filter_promiscuous_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** Enable/disable rx filter promiscuous */
- A_UINT32 rx_filter_promiscuous_enable;
- } wmi_pdev_set_rx_filter_promiscuous_cmd_fixed_param;
- typedef enum {
- WMI_BEACON_INFO_PRESENCE_OUI_EXT = 1 << 0,
- WMI_BEACON_INFO_PRESENCE_MAC_ADDRESS = 1 << 1,
- WMI_BEACON_INFO_PRESENCE_AP_CAPABILITY_NSS = 1 << 2,
- WMI_BEACON_INFO_PRESENCE_AP_CAPABILITY_HT = 1 << 3,
- WMI_BEACON_INFO_PRESENCE_AP_CAPABILITY_VHT = 1 << 4,
- WMI_BEACON_INFO_PRESENCE_AP_CAPABILITY_BAND = 1 << 5,
- } wmi_beacon_info_presence_items;
- typedef struct _wmi_vendor_oui_ext {
- A_UINT32 tlv_header;
- A_UINT32 buf_data_length; /* length of data in bytes for this OUI including index byte */
- A_UINT32 info_presence_bit_mask; /* see enum wmi_beacon_info_presence_items */
- A_UINT32 oui_header_length; /* either 3 or 5 bytes */
- A_UINT32 oui_data_length; /* length of oui_data to compare in beacon which follows OUI header. Max length is capped to WMI_MAX_VENDOR_OUI_DATA_LENGTH bytes */
- A_UINT32 mac_address_length; /* MAC address length in bytes
- ** (This value will always be 6,
- ** but is explicitly specified for sake
- ** of uniformity and completeness).
- */
- A_UINT32 capability_data_length; /* length of capability in bytes */
- } wmi_vendor_oui_ext;
- #define WMI_INFO_CAPABILITY_NSS_MASK 0x0f
- #define WMI_INFO_CAPABILITY_NSS_OFFSET 0
- #define WMI_INFO_CAPABILITY_HT_ENABLE_MASK 0x10
- #define WMI_INFO_CAPABILITY_HT_ENABLE_OFFSET 4
- #define WMI_INFO_CAPABILITY_VHT_ENABLE_MASK 0x20
- #define WMI_INFO_CAPABILITY_VHT_ENABLE_OFFSET 5
- #define WMI_INFO_CAPABILITY_BAND_MASK 0xc0
- #define WMI_INFO_CAPABILITY_BAND_OFFSET 6
- /* definition of WMI_INFO_CAPABILITY_NSS_MASK */
- #define WMI_INFO_CAPABILITY_NSS_1X1 1
- #define WMI_INFO_CAPABILITY_NSS_2X2 2
- #define WMI_INFO_CAPABILITY_NSS_3X3 3
- #define WMI_INFO_CAPABILITY_NSS_4X4 4
- /* definition of WMI_INFO_CAPABILITY_BAND_MASK */
- #define WMI_INFO_CAPABILITY_2G_BAND_MASK (1 << 0)
- #define WMI_INFO_CAPABILITY_5G_BAND_MASK (1 << 1)
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id; /* home vdev id */
- A_UINT32 meas_token; /* from measure request frame */
- A_UINT32 dialog_token;
- A_UINT32 number_bursts; /* zero keep sending until cancel, bigger than 0 means times e.g. 1,2 */
- A_UINT32 burst_interval; /* unit in mill seconds, interval between consecutive burst*/
- A_UINT32 burst_cycle; /* times cycle through within one burst */
- A_UINT32 tx_power; /* for path frame */
- A_UINT32 off_duration; /* uint in mill seconds, channel off duraiton for path loss frame sending */
- wmi_mac_addr dest_mac; /* multicast DA, for path loss frame */
- A_UINT32 num_chans;
- /*
- * This fixed_param TLV is followed by other TLVs:
- * A_UINT32 channel_list[num_chans]; // in MHz
- */
- } wmi_vdev_plmreq_start_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 meas_token; /* same value from req*/
- } wmi_vdev_plmreq_stop_cmd_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_p2p_set_noa_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* enable/disable NoA */
- A_UINT32 enable;
- /** number of NoA desc. In the TLV noa_descriptor[] */
- A_UINT32 num_noa;
- /**
- * TLV (tag length value) parameters follow the pattern structure.
- * TLV contain NoA desc with num of num_noa
- */
- } wmi_p2p_set_noa_cmd_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_unit_test_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* Identify the wlan module */
- A_UINT32 module_id;
- /* Num of test arguments passed */
- A_UINT32 num_args;
- /* unique id identifying the unit test cmd, generated by the caller */
- A_UINT32 diag_token;
- /**
- * TLV (tag length value) parameters follow the wmi_unit_test_cmd_fixed_param
- * structure. The TLV's are:
- * A_UINT32 args[];
- **/
- } wmi_unit_test_cmd_fixed_param;
- /** Roaming offload SYNCH_COMPLETE from host when host finished sync logic
- * after it received WMI_ROAM_SYNCH_EVENTID.
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_synch_complete_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- } wmi_roam_synch_complete_fixed_param;
- typedef enum {
- RECOVERY_SIM_ASSERT = 0x01,
- RECOVERY_SIM_NO_DETECT = 0x02,
- RECOVERY_SIM_CTR_EP_FULL = 0x03,
- RECOVERY_SIM_EMPTY_POINT = 0x04,
- RECOVERY_SIM_STACK_OV = 0x05,
- RECOVERY_SIM_INFINITE_LOOP = 0x06,
- RECOVERY_SIM_PCIE_LINKDOWN = 0x07,
- RECOVERY_SIM_SELF_RECOVERY = 0x08,
- RECOVERY_SIM_BT_RECOVERY = 0x09,
- } RECOVERY_SIM_TYPE;
- /* WMI_FORCE_FW_HANG_CMDID */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_FORCE_FW_HANG_CMD_fixed_param */
- A_UINT32 type; /*0:unused 1: ASSERT, 2: not respond detect command,3: simulate ep-full(),4:...*/
- A_UINT32 delay_time_ms; /*0xffffffff means the simulate will delay for random time (0 ~0xffffffff ms)*/
- } WMI_FORCE_FW_HANG_CMD_fixed_param;
- typedef enum {
- WMI_MCAST_FILTER_SET = 1,
- WMI_MCAST_FILTER_DELETE
- } WMI_SET_SINGLE_MCAST_FILTER_OP;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 index;
- A_UINT32 action;
- wmi_mac_addr mcastbdcastaddr;
- } WMI_SET_MCASTBCAST_FILTER_CMD_fixed_param;
- typedef enum {
- WMI_MULTIPLE_MCAST_FILTER_CLEAR = 1, /* clear all previous mc list */
- WMI_MULTIPLE_MCAST_FILTER_SET, /* clear all previous mc list, and set new list */
- WMI_MULTIPLE_MCAST_FILTER_DELETE, /* delete one/multiple mc list */
- WMI_MULTIPLE_MCAST_FILTER_ADD /* add one/multiple mc list */
- } WMI_MULTIPLE_MCAST_FILTER_OP;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 operation; /* refer WMI_MULTIPLE_MCAST_FILTER_OP */
- A_UINT32 num_mcastaddrs; /* number of elements in the subsequent mcast addr list */
- /**
- * TLV (tag length value) parameters follow the
- * structure. The TLV's are:
- * wmi_mac_addr mcastaddr_list[num_mcastaddrs];
- */
- } WMI_SET_MULTIPLE_MCAST_FILTER_CMD_fixed_param;
- /* WMI_DBGLOG_TIME_STAMP_SYNC_CMDID */
- typedef enum {
- WMI_TIME_STAMP_SYNC_MODE_MS, /* millisecond units */
- WMI_TIME_STAMP_SYNC_MODE_US, /* microsecond units */
- } WMI_TIME_STAMP_SYNC_MODE;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_dbglog_time_stamp_sync_cmd_fixed_param */
- A_UINT32 mode; /* 0: millisec, 1: microsec (see WMI_TIME_STAMP_SYNC_MODE) */
- A_UINT32 time_stamp_low; /* lower 32 bits of remote time stamp */
- A_UINT32 time_stamp_high; /* higher 32 bits of remote time stamp */
- } WMI_DBGLOG_TIME_STAMP_SYNC_CMD_fixed_param;
- /* GPIO Command and Event data structures */
- /* WMI_GPIO_CONFIG_CMDID */
- enum {
- WMI_GPIO_PULL_NONE, /** Do not specify a pull. */
- WMI_GPIO_PULL_UP, /** Pull the GPIO up. */
- WMI_GPIO_PULL_DOWN, /** Pull the GPIO down. */
- WMI_GPIO_PULL_KEEPER, /** Designate as a keeper. */
- };
- enum wmi_gpio_drive_strength {
- WMI_GPIO_2MA, /** Specify a 2 mA drive. */
- WMI_GPIO_4MA, /** Specify a 4 mA drive. */
- WMI_GPIO_6MA, /** Specify a 6 mA drive. */
- WMI_GPIO_8MA, /** Specify an 8 mA drive. */
- WMI_GPIO_10MA, /** Specify a 10 mA drive. */
- WMI_GPIO_12MA, /** Specify a 12 mA drive. */
- WMI_GPIO_14MA, /** Specify a 14 mA drive. */
- WMI_GPIO_16MA, /** Specify a 16 mA drive. */
- };
- enum wmi_tlmm_gpio_config {
- WMI_TLMM_GPIO_DISABLE, /** Use the internal inactive configuration. */
- WMI_TLMM_GPIO_ENABLE, /** Use the configuration passed as parameter. */
- };
- enum {
- WMI_GPIO_INTTYPE_DISABLE,
- WMI_GPIO_INTTYPE_RISING_EDGE,
- WMI_GPIO_INTTYPE_FALLING_EDGE,
- WMI_GPIO_INTTYPE_BOTH_EDGE,
- WMI_GPIO_INTTYPE_LEVEL_LOW,
- WMI_GPIO_INTTYPE_LEVEL_HIGH
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_gpio_config_cmd_fixed_param */
- A_UINT32 gpio_num; /* GPIO number to be setup */
- A_UINT32 input; /* 0 - Output/ 1 - Input */
- A_UINT32 pull_type; /* Pull type defined above */
- A_UINT32 intr_mode; /* Interrupt mode defined above (Input) */
- /* mux_config_val - configure pin MUX
- * A value of 0x0 for this field means to use the default MUX configuration.
- * Valid non-zero values are as follows:
- * Rome:
- * 0x4 - use the pin as GPIO (rather than UART)
- */
- A_UINT32 mux_config_val;
- /*
- * The drive strength to use in the configuration of a GPIO.
- * Refer to the wmi_gpio_drive_strength enum.
- */
- A_UINT32 drive;
- /*
- * Use the internal inactive configuration or configuration passed
- * as parameter.
- * Refer to the wmi_tlmm_gpio_config enum.
- */
- A_UINT32 init_enable;
- } wmi_gpio_config_cmd_fixed_param;
- /* WMI_GPIO_OUTPUT_CMDID */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_gpio_output_cmd_fixed_param */
- A_UINT32 gpio_num; /* GPIO number to be setup */
- A_UINT32 set; /* Set the GPIO pin*/
- } wmi_gpio_output_cmd_fixed_param;
- /* WMI_GPIO_STATE_REQ_CMDID */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_gpio_state_req_cmd_fixed_param */
- A_UINT32 gpio_num; /* GPIO number to get state */
- } wmi_gpio_state_req_cmd_fixed_param;
- /* WMI_GPIO_INPUT_EVENTID */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_gpio_input_event_fixed_param */
- A_UINT32 gpio_num; /* GPIO number which changed state */
- } wmi_gpio_input_event_fixed_param;
- typedef enum {
- /**
- * The following wmi_gpio_state_type is mutually exclusive.
- * 0: gpio_invalid_state
- * 1: gpio_state is LO
- * 2: gpio_state is HIGH
- */
- WMI_GPIO_STATE_INVALID, /* GPIO state is invalid. */
- WMI_GPIO_STATE_LOW, /* GPIO state is low. */
- WMI_GPIO_STATE_HIGH, /* GPIO state is high. */
- } WMI_GPIO_STATE_TYPE;
- /* WMI_GPIO_STATE_RES_EVENTID */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_gpio_state_res_event_fixed_param */
- A_UINT32 gpio_num; /* GPIO number */
- A_UINT32 gpio_state; /* state of GPIO pin defined in WMI_GPIO_STATE_TYPE 0 invalid 1 - LO, 2 -HI*/
- } wmi_gpio_state_res_event_fixed_param;
- /* WMI_ANT_CONTROLLER_CMDID */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ant_controller_cmd_fixed_param */
- A_UINT32 ant_controller_enable;
- } wmi_ant_controller_cmd_fixed_param;
- /* WMI_P2P_DISC_EVENTID */
- enum {
- P2P_DISC_SEARCH_PROB_REQ_HIT = 0, /* prob req hit the p2p find pattern */
- P2P_DISC_SEARCH_PROB_RESP_HIT, /* prob resp hit the p2p find pattern */
- };
- enum {
- P2P_DISC_MODE_SEARCH = 0, /* do search when p2p find offload*/
- P2P_DISC_MODE_LISTEN, /* do listen when p2p find offload*/
- P2P_DISC_MODE_AUTO, /* do listen and search when p2p find offload*/
- };
- enum {
- P2P_DISC_PATTERN_TYPE_BSSID = 0, /* BSSID pattern */
- P2P_DISC_PATTERN_TYPE_DEV_NAME, /* device name pattern */
- };
- typedef struct {
- A_UINT32 vdev_id;
- A_UINT32 reason; /* P2P DISC wake up reason*/
- } wmi_p2p_disc_event;
- typedef WMI_GTK_OFFLOAD_STATUS_EVENT_fixed_param WOW_EVENT_INFO_SECTION_GTKIGTK;
- typedef enum {
- WMI_FAKE_TXBFER_SEND_NDPA,
- WMI_FAKE_TXBFER_SEND_MU,
- WMI_FAKE_TXBFER_NDPA_FBTYPE,
- WMI_FAKE_TXBFER_NDPA_NCIDX,
- WMI_FAKE_TXBFER_NDPA_POLL,
- WMI_FAKE_TXBFER_NDPA_BW,
- WMI_FAKE_TXBFER_NDPA_PREAMBLE,
- WMI_FAKE_TXBFER_NDPA_RATE,
- WMI_FAKE_TXBFER_NDP_BW,
- WMI_FAKE_TXBFER_NDP_NSS,
- WMI_TXBFEE_ENABLE_UPLOAD_H,
- WMI_TXBFEE_ENABLE_CAPTURE_H,
- WMI_TXBFEE_SET_CBF_TBL,
- WMI_TXBFEE_CBF_TBL_LSIG,
- WMI_TXBFEE_CBF_TBL_SIGA1,
- WMI_TXBFEE_CBF_TBL_SIGA2,
- WMI_TXBFEE_CBF_TBL_SIGB,
- WMI_TXBFEE_CBF_TBL_PAD,
- WMI_TXBFEE_CBF_TBL_DUR,
- WMI_TXBFEE_SU_NCIDX,
- WMI_TXBFEE_CBIDX,
- WMI_TXBFEE_NGIDX,
- } WMI_TXBF_PARAM_ID;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_txbf_cmd_fixed_param */
- /** parameter id */
- A_UINT32 param_id;
- /** parameter value */
- A_UINT32 param_value;
- } wmi_txbf_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_upload_h_hdr */
- A_UINT32 h_length;
- A_UINT32 cv_length;
- /* This TLV is followed by array of bytes:
- * A_UINT8 bufp[]; <-- h_cv info buffer
- */
- } wmi_upload_h_hdr;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_capture_h_event_hdr */
- A_UINT32 svd_num;
- A_UINT32 tone_num;
- A_UINT32 reserved;
- } wmi_capture_h_event_hdr;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_avoid_freq_range_desc */
- A_UINT32 start_freq; /* start frequency, not channel center freq */
- A_UINT32 end_freq; /* end frequency */
- } wmi_avoid_freq_range_desc;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_avoid_freq_ranges_event_fixed_param */
- /* bad channel range count, multi range is allowed, 0 means all channel clear */
- A_UINT32 num_freq_ranges;
- /* The TLVs will follow.
- * multi range with num_freq_ranges, LTE advance multi carrier, CDMA,etc
- * wmi_avoid_freq_range_desc avd_freq_range[]; <-- message buffer, NULL terminated
- */
- } wmi_avoid_freq_ranges_event_fixed_param;
- enum {
- WMI_SAR2_SUCCESS = 0,
- WMI_SAR2_INVALID_ANTENNA_INDEX = 1,
- WMI_SAR2_INVALID_TABLE_INDEX = 2,
- WMI_SAR2_STATE_ERROR = 4,
- WMI_SAR2_BDF_NO_TABLE = 8,
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sar2_result_event_fixed_param */
- A_UINT32 result; /* refer to the above WMI_SAR2_ result definitions */
- } wmi_sar2_result_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_gtk_rekey_fail_event_fixed_param */
- /** Reserved for future use */
- A_UINT32 reserved0;
- A_UINT32 vdev_id;
- } wmi_gtk_rekey_fail_event_fixed_param;
- typedef enum WLAN_COEX_EVENT {
- WLAN_COEX_EVENT_BT_NONE = 0,
- WLAN_COEX_EVENT_BT_A2DP_PROFILE_ADD = 1,
- WLAN_COEX_EVENT_BT_A2DP_PROFILE_REMOVE = 2,
- WLAN_COEX_EVENT_BT_VOICE_PROFILE_ADD = 3,
- WLAN_COEX_EVENT_BT_VOICE_PROFILE_REMOVE = 4,
- WLAN_COEX_EVENT_BT_SCAN_START = 5,
- WLAN_COEX_EVENT_BT_SCAN_STOP = 6,
- WLAN_COEX_EVENT_BT_PROFILE_CONNECTED = 7,
- WLAN_COEX_EVENT_BT_PROFILE_DISCONNECTED = 8,
- } WLAN_COEX_EVENT;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 coex_profile_evt; //uses the enum values from WLAN_COEX_EVENT
- } wmi_coex_bt_activity_event_fixed_param;
- enum wmm_ac_downgrade_policy {
- WMM_AC_DOWNGRADE_DEPRIO,
- WMM_AC_DOWNGRADE_DROP,
- WMM_AC_DOWNGRADE_INVALID,
- };
- /* WMM EDCA Params type */
- #define WMM_PARAM_TYPE_LEGACY 0
- /* Relaxed EDCA parameters for 11ax to be used in case of triggered access */
- #define WMM_PARAM_TYPE_11AX_EDCA 1
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 cwmin;
- A_UINT32 cwmax;
- A_UINT32 aifs;
- union {
- A_UINT32 txoplimit;
- A_UINT32 mu_edca_timer;
- };
- A_UINT32 acm;
- A_UINT32 no_ack;
- } wmi_wmm_vparams;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- wmi_wmm_vparams wmm_params[4]; /* 0 be, 1 bk, 2 vi, 3 vo */
- A_UINT32 wmm_param_type; /* see WMM_PARAM_TYPE_xxx defs */
- } wmi_vdev_set_wmm_params_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 gtxRTMask[2]; /* for HT and VHT rate masks */
- A_UINT32 userGtxMask; /* host request for GTX mask */
- A_UINT32 gtxPERThreshold; /* default: 10% */
- A_UINT32 gtxPERMargin; /* default: 2% */
- A_UINT32 gtxTPCstep; /* default: 1 */
- A_UINT32 gtxTPCMin; /* default: 5 */
- A_UINT32 gtxBWMask; /* 20/40/80/160 Mhz */
- } wmi_vdev_set_gtx_params_cmd_fixed_param;
- typedef struct
- {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 ac;
- A_UINT32 medium_time_us; /* per second unit, the Admitted time granted, unit in micro seconds */
- A_UINT32 downgrade_type;
- } wmi_vdev_wmm_addts_cmd_fixed_param;
- typedef struct
- {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 ac;
- } wmi_vdev_wmm_delts_cmd_fixed_param;
- /* DEPRECATED */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_dfs_enable_cmd_fixed_param */
- /** Reserved for future use */
- A_UINT32 reserved0;
- } wmi_pdev_dfs_enable_cmd_fixed_param;
- /* DEPRECATED */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_dfs_disable_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_pdev_dfs_disable_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_dfs_phyerr_filter_ena_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_dfs_phyerr_filter_ena_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_dfs_phyerr_filter_dis_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_dfs_phyerr_filter_dis_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 pdev_id;
- } wmi_pdev_dfs_phyerr_offload_enable_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 pdev_id;
- } wmi_pdev_dfs_phyerr_offload_disable_cmd_fixed_param;
- typedef enum {
- QUICK_OCAC = 0,
- EXTENSIVE_OCAC,
- QUICK_RCAC,
- } WMI_ADFS_OCAC_MODE;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 ocac_mode; /* WMI_ADFS_OCAC_MODE */
- A_UINT32 min_duration_ms; /* in milliseconds */
- A_UINT32 max_duration_ms; /* in milliseconds */
- A_UINT32 chan_freq; /* in MHz */
- A_UINT32 chan_width; /* in MHz */
- /*
- * Two center frequencies are required since agile channel switch
- * has to support 160/165 MHz for products like Pine.
- * For agile which supports only up to 80MHz (HK),
- * freq2 will be 0 and ignored.
- */
- union {
- A_UINT32 center_freq; /* in MHz */ /* old name */
- A_UINT32 center_freq1; /* in MHz */ /* new name */
- };
- A_UINT32 center_freq2; /* in MHz */
- } wmi_vdev_adfs_ch_cfg_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- } wmi_vdev_adfs_ocac_abort_cmd_fixed_param;
- typedef enum {
- IN_SERVICE_MODE = 0,
- OCAC_MODE,
- } WMI_DFS_RADAR_DETECTION_MODE;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 pdev_id;
- /* In-service mode or O-CAC mode */
- A_UINT32 detection_mode; /* WMI_DFS_RADAR_DETECTION_MODE */
- A_UINT32 chan_freq; /* in MHz */
- A_UINT32 chan_width; /* in MHz */
- A_UINT32 detector_id;
- A_UINT32 segment_id;
- A_UINT32 timestamp;
- A_UINT32 is_chirp;
- A_INT32 freq_offset; /* in MHz */
- A_INT32 sidx; /* segment index (where was the radar within the channel) */
- } wmi_pdev_dfs_radar_detection_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_RADAR_FLAGS */
- /*
- * Bit 0:
- * 0 - need check sub channel marking
- * 1 - full bandwidth need put to NOL
- * Refer to WMI_RADAR_FLAGS_FULL_BW_NOL_GET and _SET macros
- * [1:31] reserved
- */
- A_UINT32 flags;
- } WMI_RADAR_FLAGS;
- #define WMI_RADAR_FLAGS_FULL_BW_NOL_BITPOS 0
- #define WMI_RADAR_FLAGS_FULL_BW_NOL_NUM_BITS 1
- #define WMI_RADAR_FLAGS_FULL_BW_NOL_GET(flag) \
- WMI_GET_BITS(flag, \
- WMI_RADAR_FLAGS_FULL_BW_NOL_BITPOS, \
- WMI_RADAR_FLAGS_FULL_BW_NOL_NUM_BITS)
- #define WMI_RADAR_FLAGS_FULL_BW_NOL_SET(flag, val) \
- WMI_SET_BITS(flag, \
- WMI_RADAR_FLAGS_FULL_BW_NOL_BITPOS, \
- WMI_RADAR_FLAGS_FULL_BW_NOL_NUM_BITS, val)
- typedef enum {
- OCAC_COMPLETE = 0,
- OCAC_ABORT,
- } WMI_VDEV_OCAC_COMPLETE_STATUS;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 chan_freq; /* in MHz */
- A_UINT32 chan_width; /* in MHz */
- /*
- * Two center frequencies are required since agile channel switch
- * has to support 160/165 MHz for products like Pine.
- * For agile which supports only up to 80MHz (HK),
- * freq2 will be 0 and ignored.
- */
- union {
- A_UINT32 center_freq; /* in MHz */ /* old name */
- A_UINT32 center_freq1; /* in MHz */ /* new name */
- };
- A_UINT32 status; /* WMI_VDEV_OCAC_COMPLETE_STATUS */
- A_UINT32 center_freq2; /* in MHz */
- } wmi_vdev_adfs_ocac_complete_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- } wmi_vdev_dfs_cac_complete_event_fixed_param;
- /** TDLS COMMANDS */
- /* WMI_TDLS_SET_STATE_CMDID */
- /* TDLS State */
- enum wmi_tdls_state {
- /** TDLS disable */
- WMI_TDLS_DISABLE,
- /** TDLS enabled - no firmware connection tracking/notifications */
- WMI_TDLS_ENABLE_PASSIVE,
- /** TDLS enabled - with firmware connection tracking/notifications */
- WMI_TDLS_ENABLE_ACTIVE,
- /** TDLS enabled - firmware waits for peer mac for connection tracking */
- WMI_TDLS_ENABLE_ACTIVE_EXTERNAL_CONTROL,
- /** TDLS enabled - TDLS connection tracking is done in host */
- WMI_TDLS_ENABLE_CONNECTION_TRACKER_IN_HOST,
- };
- /* TDLS Options */
- #define WMI_TDLS_OFFCHAN_EN (1 << 0) /** TDLS Off Channel support */
- #define WMI_TDLS_BUFFER_STA_EN (1 << 1) /** TDLS Buffer STA support */
- #define WMI_TDLS_SLEEP_STA_EN (1 << 2) /** TDLS Sleep STA support (not currently supported) */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tdls_set_state_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** Enable/Disable TDLS (wmi_tdls_state) */
- A_UINT32 state;
- /** Duration (in ms) over which to calculate tx/rx threshold to trigger TDLS Discovery */
- A_UINT32 notification_interval_ms;
- /** number of packets OVER which notify/suggest TDLS Discovery:
- * if current tx pps counter / notification interval >= threshold
- * then a notification will be sent to host to advise TDLS Discovery */
- A_UINT32 tx_discovery_threshold;
- /** number of packets UNDER which notify/suggest TDLS Teardown:
- * if current tx pps counter / notification interval < threshold
- * then a notification will be sent to host to advise TDLS Tear down */
- A_UINT32 tx_teardown_threshold;
- /** Absolute RSSI value under which notify/suggest TDLS Teardown */
- A_INT32 rssi_teardown_threshold;
- /** Peer RSSI < (AP RSSI + delta) will trigger a teardown */
- A_INT32 rssi_delta;
- /** TDLS Option Control
- * Off-Channel, Buffer STA, (later)Sleep STA support */
- A_UINT32 tdls_options;
- /* Buffering time in number of beacon intervals */
- A_UINT32 tdls_peer_traffic_ind_window;
- /* Wait time for PTR frame */
- A_UINT32 tdls_peer_traffic_response_timeout_ms;
- /* Self PUAPSD mask */
- A_UINT32 tdls_puapsd_mask;
- /* Inactivity timeout */
- A_UINT32 tdls_puapsd_inactivity_time_ms;
- /* Max of rx frame during SP */
- A_UINT32 tdls_puapsd_rx_frame_threshold;
- /**Duration (in ms) over which to check whether TDLS link needs to be torn down */
- A_UINT32 teardown_notification_ms;
- /** STA kickout threshold for TDLS peer */
- A_UINT32 tdls_peer_kickout_threshold;
- /* TDLS discovery WAKE timeout in ms.
- * DUT will wake until this timeout to receive TDLS discovery response
- * from peer.
- * If tdls_discovery_wake_timeout is 0x0, the DUT will choose autonomously
- * what wake timeout value to use.
- */
- A_UINT32 tdls_discovery_wake_timeout;
- } wmi_tdls_set_state_cmd_fixed_param;
- /* WMI_TDLS_PEER_UPDATE_CMDID */
- enum wmi_tdls_peer_state {
- /** tx peer TDLS link setup now starting, traffic to DA should be
- * paused (except TDLS frames) until state is moved to CONNECTED (or
- * TEARDOWN on setup failure) */
- WMI_TDLS_PEER_STATE_PEERING,
- /** tx peer TDLS link established, running (all traffic to DA unpaused) */
- WMI_TDLS_PEER_STATE_CONNECTED,
- /** tx peer TDLS link tear down started (link paused, any frames
- * queued for DA will be requeued back through the AP)*/
- WMI_TDLS_PEER_STATE_TEARDOWN,
- /** Add peer mac into connection table */
- WMI_TDLS_PEER_ADD_MAC_ADDR,
- /** Remove peer mac from connection table */
- WMI_TDLS_PEER_REMOVE_MAC_ADDR,
- };
- /* NB: These defines are fixed, and cannot be changed without breaking WMI compatibility */
- #define WMI_TDLS_MAX_SUPP_CHANNELS 128
- #define WMI_TDLS_MAX_SUPP_OPER_CLASSES 32
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tdls_peer_capabilities */
- A_UINT32 tlv_header;
- /* Peer's QoS Info - for U-APSD */
- /* AC FLAGS - accessed through macros below */
- /* Ack, SP, More Data Ack - accessed through macros below */
- A_UINT32 peer_qos;
- /*TDLS Peer's U-APSD Buffer STA Support*/
- A_UINT32 buff_sta_support;
- /*TDLS off channel related params */
- A_UINT32 off_chan_support;
- A_UINT32 peer_curr_operclass;
- A_UINT32 self_curr_operclass;
- /* Number of channels available for off channel operation */
- A_UINT32 peer_chan_len;
- A_UINT32 peer_operclass_len;
- A_UINT8 peer_operclass[WMI_TDLS_MAX_SUPP_OPER_CLASSES];
- /* Is peer initiator or responder of TDLS setup request */
- A_UINT32 is_peer_responder;
- /* Preferred off channel number as configured by user */
- A_UINT32 pref_offchan_num;
- /* Preferred off channel bandwidth as configured by user */
- A_UINT32 pref_offchan_bw;
- /* Preferred off channel frequency in MHz as configured by user */
- A_UINT32 pref_offchan_freq;
- /** Followed by the variable length TLV peer_chan_list:
- * wmi_channel peer_chan_list[].
- * Array size would be peer_chan_len.
- * This array is intersected channels which is supported by both peer
- * and DUT. freq1 in chan_info shall be same as mhz, freq2 shall be 0.
- * FW shall compute BW for an offchan based on peer's ht/vht cap
- * received in peer_assoc cmd during change STA operation
- */
- } wmi_tdls_peer_capabilities;
- #define WMI_TDLS_QOS_VO_FLAG 0
- #define WMI_TDLS_QOS_VI_FLAG 1
- #define WMI_TDLS_QOS_BK_FLAG 2
- #define WMI_TDLS_QOS_BE_FLAG 3
- #define WMI_TDLS_QOS_ACK_FLAG 4
- #define WMI_TDLS_QOS_SP_FLAG 5
- #define WMI_TDLS_QOS_MOREDATA_FLAG 7
- #define WMI_TDLS_PEER_SET_QOS_FLAG(ppeer_caps,flag) do { \
- (ppeer_caps)->peer_qos |= (1 << flag); \
- } while (0)
- #define WMI_TDLS_PEER_GET_QOS_FLAG(ppeer_caps,flag) \
- (((ppeer_caps)->peer_qos & (1 << flag)) >> flag)
- #define WMI_SET_TDLS_PEER_VO_UAPSD(ppeer_caps) \
- WMI_TDLS_PEER_SET_QOS_FLAG(ppeer_caps, WMI_TDLS_QOS_VO_FLAG)
- #define WMI_GET_TDLS_PEER_VO_UAPSD(ppeer_caps) \
- WMI_TDLS_PEER_GET_QOS_FLAG(ppeer_caps, WMI_TDLS_QOS_VO_FLAG)
- #define WMI_SET_TDLS_PEER_VI_UAPSD(ppeer_caps) \
- WMI_TDLS_PEER_SET_QOS_FLAG(ppeer_caps, WMI_TDLS_QOS_VI_FLAG)
- #define WMI_GET_TDLS_PEER_VI_UAPSD(ppeer_caps) \
- WMI_TDLS_PEER_GET_QOS_FLAG(ppeer_caps, WMI_TDLS_QOS_VI_FLAG)
- #define WMI_SET_TDLS_PEER_BK_UAPSD(ppeer_caps) \
- WMI_TDLS_PEER_SET_QOS_FLAG(ppeer_caps, WMI_TDLS_QOS_BK_FLAG)
- #define WMI_GET_TDLS_PEER_BK_UAPSD(ppeer_caps) \
- WMI_TDLS_PEER_GET_QOS_FLAG(ppeer_caps, WMI_TDLS_QOS_BK_FLAG)
- #define WMI_SET_TDLS_PEER_BE_UAPSD(ppeer_caps) \
- WMI_TDLS_PEER_SET_QOS_FLAG(ppeer_caps, WMI_TDLS_QOS_BE_FLAG)
- #define WMI_GET_TDLS_PEER_BE_UAPSD(ppeer_caps) \
- WMI_TDLS_PEER_GET_QOS_FLAG(ppeer_caps, WMI_TDLS_QOS_BE_FLAG)
- #define WMI_SET_TDLS_PEER_ACK_UAPSD(ppeer_caps) \
- WMI_TDLS_PEER_SET_QOS_FLAG(ppeer_caps, WMI_TDLS_QOS_ACK_FLAG)
- #define WMI_GET_TDLS_PEER_ACK_UAPSD(ppeer_caps) \
- WMI_TDLS_PEER_GET_QOS_FLAG(ppeer_caps, WMI_TDLS_QOS_ACK_FLAG)
- /* SP has 2 bits */
- #define WMI_SET_TDLS_PEER_SP_UAPSD(ppeer_caps,val) do { \
- (ppeer_caps)->peer_qos |= (((val) & 0x3) << WMI_TDLS_QOS_SP_FLAG); \
- } while (0)
- #define WMI_GET_TDLS_PEER_SP_UAPSD(ppeer_caps) \
- (((ppeer_caps)->peer_qos & (0x3 << WMI_TDLS_QOS_SP_FLAG)) >> WMI_TDLS_QOS_SP_FLAG)
- #define WMI_SET_TDLS_PEER_MORE_DATA_ACK_UAPSD(ppeer_caps) \
- WMI_TDLS_PEER_SET_QOS_FLAG(ppeer_caps, WMI_TDLS_QOS_MOREDATA_FLAG)
- #define WMI_GET_TDLS_PEER_MORE_DATA_ACK_UAPSD(ppeer_caps) \
- WMI_TDLS_PEER_GET_QOS_FLAG(ppeer_caps, WMI_TDLS_QOS_MOREDATA_FLAG)
- #define WMI_TDLS_SELF_SET_QOS_FLAG(pset_cmd,flag) do { \
- (pset_cmd)->tdls_puapsd_mask |= (1 << flag); \
- } while (0)
- #define WMI_TDLS_SELF_GET_QOS_FLAG(pset_cmd,flag) \
- (((pset_cmd)->tdls_puapsd_mask & (1 << flag)) >> flag)
- #define WMI_SET_TDLS_SELF_VO_UAPSD(pset_cmd) \
- WMI_TDLS_SELF_SET_QOS_FLAG(pset_cmd, WMI_TDLS_QOS_VO_FLAG)
- #define WMI_GET_TDLS_SELF_VO_UAPSD(pset_cmd) \
- WMI_TDLS_SELF_GET_QOS_FLAG(pset_cmd, WMI_TDLS_QOS_VO_FLAG)
- #define WMI_SET_TDLS_SELF_VI_UAPSD(pset_cmd) \
- WMI_TDLS_SELF_SET_QOS_FLAG(pset_cmd, WMI_TDLS_QOS_VI_FLAG)
- #define WMI_GET_TDLS_SELF_VI_UAPSD(pset_cmd) \
- WMI_TDLS_SELF_GET_QOS_FLAG(pset_cmd, WMI_TDLS_QOS_VI_FLAG)
- #define WMI_SET_TDLS_SELF_BK_UAPSD(pset_cmd) \
- WMI_TDLS_SELF_SET_QOS_FLAG(pset_cmd, WMI_TDLS_QOS_BK_FLAG)
- #define WMI_GET_TDLS_SELF__BK_UAPSD(pset_cmd) \
- WMI_TDLS_SELF_GET_QOS_FLAG(pset_cmd, WMI_TDLS_QOS_BK_FLAG)
- #define WMI_SET_TDLS_SELF_BE_UAPSD(pset_cmd) \
- WMI_TDLS_SELF_SET_QOS_FLAG(pset_cmd, WMI_TDLS_QOS_BE_FLAG)
- #define WMI_GET_TDLS_SELF_BE_UAPSD(pset_cmd) \
- WMI_TDLS_SELF_GET_QOS_FLAG(pset_cmd, WMI_TDLS_QOS_BE_FLAG)
- #define WMI_SET_TDLS_SELF_ACK_UAPSD(pset_cmd) \
- WMI_TDLS_SELF_SET_QOS_FLAG(pset_cmd, WMI_TDLS_QOS_ACK_FLAG)
- #define WMI_GET_TDLS_SELF_ACK_UAPSD(pset_cmd) \
- WMI_TDLS_SELF_GET_QOS_FLAG(pset_cmd, WMI_TDLS_QOS_ACK_FLAG)
- /* SP has 2 bits */
- #define WMI_SET_TDLS_SELF_SP_UAPSD(pset_cmd,val) do { \
- (pset_cmd)->tdls_puapsd_mask |= (((val) & 0x3) << WMI_TDLS_QOS_SP_FLAG); \
- } while (0)
- #define WMI_GET_TDLS_SELF_SP_UAPSD(pset_cmd) \
- (((pset_cmd)->tdls_puapsd_mask & (0x3 << WMI_TDLS_QOS_SP_FLAG)) >> WMI_TDLS_QOS_SP_FLAG)
- #define WMI_SET_TDLS_SELF_MORE_DATA_ACK_UAPSD(pset_cmd) \
- WMI_TDLS_SELF_SET_QOS_FLAG(pset_cmd, WMI_TDLS_QOS_MOREDATA_FLAG)
- #define WMI_GET_TDLS_SELF_MORE_DATA_ACK_UAPSD(pset_cmd) \
- WMI_TDLS_SELF_GET_QOS_FLAG(pset_cmd, WMI_TDLS_QOS_MOREDATA_FLAG)
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tdls_peer_update_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** new TDLS state for peer (wmi_tdls_peer_state) */
- A_UINT32 peer_state;
- /* The TLV for wmi_tdls_peer_capabilities will follow.
- * wmi_tdls_peer_capabilities peer_caps;
- */
- /** Followed by the variable length TLV chan_info:
- * wmi_channel chan_info[] */
- } wmi_tdls_peer_update_cmd_fixed_param;
- /* WMI_TDLS_SET_OFFCHAN_MODE_CMDID */
- /* bitmap 20, 40, 80 or 160 MHz wide channel */
- #define WMI_TDLS_OFFCHAN_20MHZ 0x1 /* 20 MHz wide channel */
- #define WMI_TDLS_OFFCHAN_40MHZ 0x2 /* 40 MHz wide channel */
- #define WMI_TDLS_OFFCHAN_80MHZ 0x4 /* 80 MHz wide channel */
- #define WMI_TDLS_OFFCHAN_160MHZ 0x8 /* 160 MHz wide channel */
- enum wmi_tdls_offchan_mode {
- WMI_TDLS_ENABLE_OFFCHANNEL,
- WMI_TDLS_DISABLE_OFFCHANNEL, /* passive offchannel disable */
- WMI_TDLS_ACTIVE_DISABLE_OFFCHANNEL,
- };
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tdls_set_offchan_mode_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** Enable/Disable TDLS offchannel */
- A_UINT32 offchan_mode;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /* Is peer initiator or responder of TDLS setup request */
- A_UINT32 is_peer_responder;
- /* off channel number*/
- A_UINT32 offchan_num;
- /* off channel bandwidth bitmap, e.g. WMI_OFFCHAN_20MHZ */
- A_UINT32 offchan_bw_bitmap;
- /* operating class for offchan */
- A_UINT32 offchan_oper_class;
- /* off channel frequency in MHz */
- A_UINT32 offchan_freq;
- /** This fixed_param TLV is followed by the below additional TLVs:
- * - wmi_channel peer_chan_info[]: optional per-peer chan_info
- */
- } wmi_tdls_set_offchan_mode_cmd_fixed_param;
- /** TDLS EVENTS */
- enum wmi_tdls_peer_notification {
- /** tdls discovery recommended for peer (based
- * on tx bytes per second > tx_discover threshold) */
- WMI_TDLS_SHOULD_DISCOVER,
- /** tdls link tear down recommended for peer
- * due to tx bytes per second below tx_teardown_threshold
- * NB: this notification sent once */
- WMI_TDLS_SHOULD_TEARDOWN,
- /** tx peer TDLS link tear down complete */
- WMI_TDLS_PEER_DISCONNECTED,
- /** TDLS/BT role change notification for connection tracker */
- WMI_TDLS_CONNECTION_TRACKER_NOTIFICATION,
- };
- enum wmi_tdls_peer_reason {
- /** tdls teardown recommended due to low transmits */
- WMI_TDLS_TEARDOWN_REASON_TX,
- /** tdls link tear down recommended due to poor RSSI */
- WMI_TDLS_TEARDOWN_REASON_RSSI,
- /** tdls link tear down recommended due to offchannel scan */
- WMI_TDLS_TEARDOWN_REASON_SCAN,
- /** tdls peer disconnected due to peer deletion */
- WMI_TDLS_DISCONNECTED_REASON_PEER_DELETE,
- /** tdls peer disconnected due to PTR timeout */
- WMI_TDLS_TEARDOWN_REASON_PTR_TIMEOUT,
- /** tdls peer disconnected due wrong PTR format */
- WMI_TDLS_TEARDOWN_REASON_BAD_PTR,
- /** tdls peer not responding */
- WMI_TDLS_TEARDOWN_REASON_NO_RESPONSE,
- /** tdls entered buffer STA role, TDLS connection tracker needs to handle this */
- WMI_TDLS_ENTER_BUF_STA,
- /** tdls exited buffer STA role, TDLS connection tracker needs to handle this */
- WMI_TDLS_EXIT_BUF_STA,
- /** BT entered busy mode, TDLS connection tracker needs to handle this */
- WMI_TDLS_ENTER_BT_BUSY_MODE,
- /** BT exited busy mode, TDLS connection tracker needs to handle this */
- WMI_TDLS_EXIT_BT_BUSY_MODE,
- /** TDLS module received a scan start event, TDLS connection tracker needs to handle this */
- WMI_TDLS_SCAN_STARTED_EVENT,
- /** TDLS module received a scan complete event, TDLS connection tracker needs to handle this */
- WMI_TDLS_SCAN_COMPLETED_EVENT,
- };
- /* WMI_TDLS_PEER_EVENTID */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tdls_peer_event_fixed_param */
- A_UINT32 tlv_header;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** TDLS peer status (wmi_tdls_peer_notification)*/
- A_UINT32 peer_status;
- /** TDLS peer reason (wmi_tdls_peer_reason) */
- A_UINT32 peer_reason;
- /** unique id identifying the VDEV */
- A_UINT32 vdev_id;
- } wmi_tdls_peer_event_fixed_param;
- /* NOTE: wmi_vdev_mcc_bcn_intvl_change_event_fixed_param would be deprecated. Please
- don't use this for any new implementations */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_mcc_bcn_intvl_change_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* New beacon interval to be used for the specified VDEV suggested by firmware */
- A_UINT32 new_bcn_intvl;
- } wmi_vdev_mcc_bcn_intvl_change_event_fixed_param;
- /* WMI_RESMGR_ADAPTIVE_OCS_ENABLE_DISABLE_CMDID */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_resmgr_adaptive_ocs_enable_disable_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** 1: enable fw based adaptive ocs,
- * 0: disable fw based adaptive ocs
- */
- A_UINT32 enable;
- /** This field contains the MAC identifier in order to lookup the appropriate OCS instance. */
- union {
- A_UINT32 mac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- };
- } wmi_resmgr_adaptive_ocs_enable_disable_cmd_fixed_param;
- /* WMI_RESMGR_SET_CHAN_TIME_QUOTA_CMDID */
- typedef struct {
- /* Frequency of the channel for which the quota is set */
- A_UINT32 chan_mhz;
- /* Requested channel time quota expressed as percentage */
- A_UINT32 channel_time_quota;
- } wmi_resmgr_chan_time_quota;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_resmgr_chan_time_quota_tlv */
- A_UINT32 tlv_header;
- wmi_resmgr_chan_time_quota chan_time_quota;
- } wmi_resmgr_chan_time_quota_tlv;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_resmgr_set_chan_time_quota_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** number of channel time quota command structures
- * (wmi_resmgr_chan_time_quota) 1 or 2
- */
- A_UINT32 num_chans;
- /* This TLV is followed by another TLV of array of bytes
- * A_UINT8 data[];
- * This data array contains
- * num_chans * size of(struct wmi_resmgr_chan_time_quota)
- */
- } wmi_resmgr_set_chan_time_quota_cmd_fixed_param;
- typedef enum {
- WMI_RESMGR_QUOTA_TYPE_CLEAR = 0,
- WMI_RESMGR_QUOTA_TYPE_FIXED = 1,
- WMI_RESMGR_QUOTA_TYPE_DYNAMIC = 2,
- } wmi_resmgr_quota_type;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_resmgr_chan_time_quota_changed_event_fixed_param */
- A_UINT32 tlv_header;
- /** quota_type: refer to wmi_resmgr_quota_type
- * 0 : clear quota
- * 1 : fixed quota
- * 2 : dynamic quota
- */
- A_UINT32 quota_type;
- /* This TLV is followed by another TLV of array of struct
- * wmi_resmgr_chan_time_quota_tlv chan_quota[num_chans];
- */
- } wmi_resmgr_chan_time_quota_changed_event_fixed_param;
- /* WMI_RESMGR_SET_CHAN_LATENCY_CMDID */
- typedef struct {
- /* Frequency of the channel for which the latency is set */
- A_UINT32 chan_mhz;
- /* Requested channel latency in milliseconds */
- A_UINT32 latency;
- } wmi_resmgr_chan_latency;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_resmgr_set_chan_latency_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** number of channel latency command structures
- * (wmi_resmgr_chan_latency) 1 or 2
- */
- A_UINT32 num_chans;
- /* This TLV is followed by another TLV of array of bytes
- * A_UINT8 data[];
- * This data array contains
- * num_chans * size of(struct wmi_resmgr_chan_latency)
- */
- } wmi_resmgr_set_chan_latency_cmd_fixed_param;
- /* WMI_STA_SMPS_FORCE_MODE_CMDID */
- /** STA SMPS Forced Mode */
- typedef enum {
- WMI_SMPS_FORCED_MODE_NONE = 0,
- WMI_SMPS_FORCED_MODE_DISABLED,
- WMI_SMPS_FORCED_MODE_STATIC,
- WMI_SMPS_FORCED_MODE_DYNAMIC
- } wmi_sta_smps_forced_mode;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_sta_smps_force_mode_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** The mode of SMPS that is to be forced in the FW. */
- A_UINT32 forced_mode;
- } wmi_sta_smps_force_mode_cmd_fixed_param;
- /** wlan HB commands */
- #define WMI_WLAN_HB_ITEM_UDP 0x1
- #define WMI_WLAN_HB_ITEM_TCP 0x2
- #define WMI_WLAN_HB_MAX_FILTER_SIZE 32 /* should be equal to WLAN_HB_MAX_FILTER_SIZE,
- must be a multiple of 4 bytes */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_hb_set_enable_cmd_fixed_param */
- A_UINT32 tlv_header; /** TLV header*/
- A_UINT32 vdev_id; /** Vdev ID */
- A_UINT32 enable; /** 1: Enable, 0: Disable`*/
- A_UINT32 item; /** 1: UDP, 2: TCP */
- A_UINT32 session; /** Session ID from HOST */
- } wmi_hb_set_enable_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_hb_set_tcp_params_cmd_fixed_param */
- A_UINT32 tlv_header; /** TLV header*/
- A_UINT32 vdev_id; /** Vdev ID */
- A_UINT32 srv_ip; /** Server IP address (IPv4) */
- A_UINT32 dev_ip; /** Device IP address (IPv4) */
- A_UINT32 seq; /** TCP Sequence no */
- A_UINT32 src_port; /** Source port */
- A_UINT32 dst_port; /** Destination port */
- A_UINT32 interval; /** Keep alive interval */
- A_UINT32 timeout; /** Timeout if keep alive fails */
- A_UINT32 session; /** Session ID from HOST */
- wmi_mac_addr gateway_mac; /** Server Mac Address */
- } wmi_hb_set_tcp_params_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_hb_set_tcp_pkt_filter_cmd_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 length;
- A_UINT32 offset;
- A_UINT32 session;
- A_UINT8 filter[WMI_WLAN_HB_MAX_FILTER_SIZE];
- } wmi_hb_set_tcp_pkt_filter_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_hb_set_udp_params_cmd_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 srv_ip;
- A_UINT32 dev_ip;
- A_UINT32 src_port;
- A_UINT32 dst_port;
- A_UINT32 interval;
- A_UINT32 timeout;
- A_UINT32 session;
- wmi_mac_addr gateway_mac;
- } wmi_hb_set_udp_params_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_hb_set_udp_pkt_filter_cmd_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 length;
- A_UINT32 offset;
- A_UINT32 session;
- A_UINT8 filter[WMI_WLAN_HB_MAX_FILTER_SIZE];
- } wmi_hb_set_udp_pkt_filter_cmd_fixed_param;
- /** wlan HB events */
- typedef enum {
- WMI_WLAN_HB_REASON_UNKNOWN = 0,
- WMI_WLAN_HB_REASON_TCP_TIMEOUT = 1,
- WMI_WLAN_HB_REASON_UDP_TIMEOUT = 2,
- } WMI_HB_WAKEUP_REASON;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_hb_ind_event_fixed_param */
- A_UINT32 vdev_id; /** unique id identifying the VDEV */
- A_UINT32 session; /** Session ID from HOST */
- A_UINT32 reason; /** wakeup reason */
- } wmi_hb_ind_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_oic_set_enable_cmd_fixed_param */
- A_UINT32 tlv_header; /** TLV Header */
- A_UINT32 vdev_id; /** Vdev ID */
- A_UINT32 session; /** Session number from the HOST */
- A_UINT32 srv_ip; /** IPv4 address of the OCF server */
- A_UINT32 dev_ip; /** IPv4 address of the device */
- A_UINT32 tcp_tx_seq; /** TCP sequence number */
- A_UINT32 src_port; /** Source port */
- A_UINT32 dst_port; /** Destination port */
- A_UINT32 protocol; /** Protocol used: TCP:0, UDP:1 */
- A_UINT32 wlan_hb_session; /** Linked WLAN HB session. If a keepalive is configured for the TCP session, the session ID of the TCP keepalive */
- A_UINT32 timeout_retries; /** timeout[31:16]: TCP ACK timeout, time to wait for a TCP ACK in ms
- retries[15:0]: Number of TCP level retries of OIC ping request */
- wmi_mac_addr peer_macaddr; /** MAC address of the OCF server */
- A_UINT32 oic_ping_pkt0; /** OIC ping packet content [Byte03:Byte00] */
- A_UINT32 oic_ping_pkt1; /** OIC ping packet content [Byte07:Byte04] */
- A_UINT32 oic_ping_pkt2; /** OIC ping packet content [Byte11:Byte08] */
- A_UINT32 oic_ping_pkt3; /** OIC ping packet content [Byte15:Byte12] */
- A_UINT32 tls_cipher_suite_version; /** Cipher suite [31:16] as defined in https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml
- TLS version [15:00] */
- A_UINT32 tls_tx_seq0; /** Tx sequence number [31:00], incremented after every TLS packet transmission */
- A_UINT32 tls_tx_seq1; /** Tx sequence number [63:32] */
- A_UINT32 tls_rx_seq0; /** Rx sequence number [31:00], incremented after every TLS packet reception */
- A_UINT32 tls_rx_seq1; /** Rx sequence number [63:32] */
- A_UINT32 tls_tx_key0; /** client_write_key[Byte03:Byte00] refer Section 6.3 RFC 5246 */
- A_UINT32 tls_tx_key1; /** client_write_key[Byte07:Byte04] */
- A_UINT32 tls_tx_key2; /** client_write_key[Byte11:Byte08] */
- A_UINT32 tls_tx_key3; /** client_write_key[Byte15:Byte12] */
- A_UINT32 tls_rx_key0; /** server_write_key[Byte03:Byte00] */
- A_UINT32 tls_rx_key1; /** server_write_key[Byte07:Byte04] */
- A_UINT32 tls_rx_key2; /** server_write_key[Byte11:Byte08] */
- A_UINT32 tls_rx_key3; /** server_write_key[Byte15:Byte12] */
- A_UINT32 tls_MAC_write_key0; /** client_write_MAC_key[Byte03:Byte00] refer Section 6.3 RFC 5246 */
- A_UINT32 tls_MAC_write_key1; /** client_write_MAC_key[Byte07:Byte04] */
- A_UINT32 tls_MAC_write_key2; /** client_write_MAC_key[Byte11:Byte08] */
- A_UINT32 tls_MAC_write_key3; /** client_write_MAC_key[Byte15:Byte12] */
- A_UINT32 tls_MAC_write_key4; /** client_write_MAC_key[Byte19:Byte16] */
- A_UINT32 tls_MAC_write_key5; /** client_write_MAC_key[Byte23:Byte20] */
- A_UINT32 tls_MAC_write_key6; /** client_write_MAC_key[Byte27:Byte24] */
- A_UINT32 tls_MAC_write_key7; /** client_write_MAC_key[Byte31:Byte28] */
- A_UINT32 tls_MAC_read_key0; /** server_write_MAC_key[Byte03:Byte00] refer Section 6.3 RFC 5246 */
- A_UINT32 tls_MAC_read_key1; /** server_write_MAC_key[Byte07:Byte04] */
- A_UINT32 tls_MAC_read_key2; /** server_write_MAC_key[Byte11:Byte08] */
- A_UINT32 tls_MAC_read_key3; /** server_write_MAC_key[Byte15:Byte12] */
- A_UINT32 tls_MAC_read_key4; /** server_write_MAC_key[Byte19:Byte16] */
- A_UINT32 tls_MAC_read_key5; /** server_write_MAC_key[Byte23:Byte20] */
- A_UINT32 tls_MAC_read_key6; /** server_write_MAC_key[Byte27:Byte24] */
- A_UINT32 tls_MAC_read_key7; /** server_write_MAC_key[Byte31:Byte28] */
- A_UINT32 tls_client_IV0; /** CBC Mode: CBC_residue [Byte03:Byte00] refer section 6.2.3.2. CBC Block Cipher in RFC 5246
- GCM Mode: GCMNonce.salt [Byte03:Byte00] refer Section 3 of RFC 5288 */
- A_UINT32 tls_client_IV1; /** CBC Mode: CBC_residue [Byte7:Byte4] */
- A_UINT32 tls_client_IV2; /** CBC Mode: CBC_residue [Byte11:Byte8] */
- A_UINT32 tls_client_IV3; /** CBC Mode: CBC_residue [Byte15:Byte12] */
- A_UINT32 tls_server_IV0; /** CBC Mode: CBC_residue [Byte3:Byte0] refer section 6.2.3.2. CBC Block Cipher in RFC 5246
- GCM Mode: GCMNonce.salt [Byte4: Byte0] refer Section 3 of RFC 5288 */
- A_UINT32 tls_server_IV1; /** CBC Mode: CBC_residue [Byte7:Byte4] */
- A_UINT32 tls_server_IV2; /** CBC Mode: CBC_residue [Byte11:Byte8] */
- A_UINT32 tls_server_IV3; /** CBC Mode: CBC_residue [Byte15:Byte12] */
- } wmi_oic_ping_offload_params_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_oic_set_enable_cmd_fixed_param */
- A_UINT32 tlv_header; /** TLV Header*/
- A_UINT32 vdev_id; /** Interface number */
- A_UINT32 session; /** Session ID*/
- A_UINT32 enable; /** 1: Enable , 0: Disable */
- } wmi_oic_ping_offload_set_enable_cmd_fixed_param;
- /** wlan OIC events */
- typedef enum {
- WMI_WLAN_OIC_REASON_UNKNOWN = 0, /** Unknown */
- WMI_WLAN_OIC_REASON_HOST_WAKE = 1, /** No error , but host is woken up due to other reasons */
- WMI_WLAN_OIC_REASON_TCP_TIMEOUT = 2, /** TCP Timeout */
- WMI_WLAN_OIC_REASON_PING_TIMEOUT = 3, /** OIC Ping resposnse timeout */
- WMI_WLAN_OIC_REASON_TLS_ERROR = 4, /** TLS decryption error */
- } WMI_OIC_WAKEUP_REASON;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_oic_ind_event_fixed_param */
- A_UINT32 vdev_id; /** unique id identifying the VDEV */
- A_UINT32 session; /** Session ID from driver */
- A_UINT32 reason; /** wakeup reason as per WMI_OIC_WAKEUP_REASON */
- A_UINT32 tcp_tx_seq; /** Current TCP sequence number */
- A_UINT32 tcp_ack_num; /** Current TCP Acknowledgement number */
- A_UINT32 tls_tx_seq0; /** Tx sequence number [31:00], incremented after every TLS packet transmission */
- A_UINT32 tls_tx_seq1; /** Tx sequence number [63:32] */
- A_UINT32 tls_rx_seq0; /** Rx sequence number [31:00], incremented after every TLS packet reception */
- A_UINT32 tls_rx_seq1; /** Rx sequence number [63:32] */
- A_UINT32 tls_client_IV0; /** CBC Mode: CBC_residue [Byte03:Byte00] refer section 6.2.3.2. CBC Block Cipher in RFC 5246 */
- A_UINT32 tls_client_IV1; /** CBC Mode: CBC_residue [Byte7:Byte4] */
- A_UINT32 tls_client_IV2; /** CBC Mode: CBC_residue [Byte11:Byte8] */
- A_UINT32 tls_client_IV3; /** CBC Mode: CBC_residue [Byte15:Byte12] */
- A_UINT32 tls_server_IV0; /** CBC Mode: CBC_residue [Byte3:Byte0] refer section 6.2.3.2. CBC Block Cipher in RFC 5246 */
- A_UINT32 tls_server_IV1; /** CBC Mode: CBC_residue [Byte7:Byte4] */
- A_UINT32 tls_server_IV2; /** CBC Mode: CBC_residue [Byte11:Byte8] */
- A_UINT32 tls_server_IV3; /** CBC Mode: CBC_residue [Byte15:Byte12] */
- } wmi_oic_ping_handoff_event;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_dhcp_lease_renew_offload_fixed_param */
- A_UINT32 tlv_header; /** TLV Header*/
- A_UINT32 vdev_id; /** Vdev ID */
- A_UINT32 enable; /** 1: Enable 0: Disable*/
- A_UINT32 srv_ip; /** DHCP Server IP address (IPv4) */
- A_UINT32 client_ip; /** Device IP address (IPv4) */
- wmi_mac_addr srv_mac; /** DHCP Server MAC address */
- A_UINT32 parameter_list; /** Optional Parameter list. RFC 1533 gives the complete set of options defined for use with DHCP */
- } wmi_dhcp_lease_renew_offload_cmd_fixed_param;
- /** WLAN DHCP Lease Renew Events */
- typedef enum {
- WMI_WLAN_DHCP_RENEW_REASON_UNKNOWN = 0, /** Unknown */
- WMI_WLAN_DHCP_RENEW_REASON_ACK_TIMEOUT = 1, /** DHCP ACK Timeout */
- WMI_WLAN_DHCP_RENEW_REASON_NACK = 2, /** DHCP error */
- } WMI_DHCP_RENEW_WAKEUP_REASON;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_dhcp_renew_ind_event_fixed_param */
- A_UINT32 vdev_id; /** unique id identifying the VDEV */
- A_UINT32 reason; /** wakeup reason as per enum WMI_DHCP_RENEW_WAKEUP_REASON*/
- } wmi_dhcp_lease_renew_event;
- /** WMI_STA_SMPS_PARAM_CMDID */
- typedef enum {
- /** RSSI threshold to enter Dynamic SMPS mode from inactive mode */
- WMI_STA_SMPS_PARAM_UPPER_RSSI_THRESH = 0,
- /** RSSI threshold to enter Stalled-D-SMPS mode from D-SMPS mode or
- * to enter D-SMPS mode from Stalled-D-SMPS mode */
- WMI_STA_SMPS_PARAM_STALL_RSSI_THRESH = 1,
- /** RSSI threshold to disable SMPS modes */
- WMI_STA_SMPS_PARAM_LOWER_RSSI_THRESH = 2,
- /** Upper threshold for beacon-RSSI. Used to reduce RX chainmask. */
- WMI_STA_SMPS_PARAM_UPPER_BRSSI_THRESH = 3,
- /** Lower threshold for beacon-RSSI. Used to increase RX chainmask. */
- WMI_STA_SMPS_PARAM_LOWER_BRSSI_THRESH = 4,
- /** Enable/Disable DTIM 1chRx feature */
- WMI_STA_SMPS_PARAM_DTIM_1CHRX_ENABLE = 5,
- /** Enable/Disable dynamic bw feature */
- WMI_STA_SMPS_PARAM_DYNAMIC_BW_SWITCH = 6,
- } wmi_sta_smps_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_sta_smps_param_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** SMPS parameter (see wmi_sta_smps_param) */
- A_UINT32 param;
- /** Value of SMPS parameter */
- A_UINT32 value;
- } wmi_sta_smps_param_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_mcc_sched_sta_traffic_stats */
- A_UINT32 tlv_header;
- /* TX stats */
- A_UINT32 txBytesPushed;
- A_UINT32 txPacketsPushed;
- /* RX stats */
- A_UINT32 rxBytesRcvd;
- A_UINT32 rxPacketsRcvd;
- A_UINT32 rxTimeTotal;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- } wmi_mcc_sched_sta_traffic_stats;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_mcc_sched_traffic_stats_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** Duration over which the host stats were collected */
- A_UINT32 duration;
- /** Number of stations filled in following stats array */
- A_UINT32 num_sta;
- /* Following this struct are the TLVs:
- * wmi_mcc_sched_sta_traffic_stats mcc_sched_sta_traffic_stats_list;
- */
- } wmi_mcc_sched_traffic_stats_cmd_fixed_param;
- typedef struct
- {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_batch_scan_enable_cmd_fixed_param */
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /*Batch scan enable command parameters*/
- A_UINT32 scanInterval;
- A_UINT32 numScan2Batch;
- A_UINT32 bestNetworks;
- A_UINT32 rfBand;
- A_UINT32 rtt;
- } wmi_batch_scan_enable_cmd_fixed_param;
- typedef struct
- {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_batch_scan_enabled_event_fixed_param */
- A_UINT32 supportedMscan;
- } wmi_batch_scan_enabled_event_fixed_param;
- typedef struct
- {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_batch_scan_disable_cmd_fixed_param */
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- A_UINT32 param;
- } wmi_batch_scan_disable_cmd_fixed_param;
- typedef struct
- {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_batch_scan_trigger_result_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- A_UINT32 param;
- } wmi_batch_scan_trigger_result_cmd_fixed_param;
- typedef struct
- {
- A_UINT32 tlv_header;
- wmi_mac_addr bssid; /* BSSID */
- wmi_ssid ssid; /* SSID */
- A_UINT32 ch; /* Channel number */
- A_UINT32 rssi; /* RSSI or Level */
- /* Timestamp when Network was found. Used to calculate age based on timestamp in GET_RSP msg header */
- A_UINT32 timestamp;
- A_UINT32 ch_freq; /* Channel frequency in MHz */
- } wmi_batch_scan_result_network_info;
- typedef struct
- {
- A_UINT32 tlv_header;
- A_UINT32 scanId; /* Scan List ID. */
- /* No of AP in a Scan Result. Should be same as bestNetwork in SET_REQ msg */
- A_UINT32 numNetworksInScanList;
- A_UINT32 netWorkStartIndex; /* indicate the start index of network info*/
- } wmi_batch_scan_result_scan_list;
- #define LPI_IE_BITMAP_BSSID 0x00000001 /* if this bit is set, bssid of the scan response frame is sent as the first IE in the data buffer sent to LOWI LP. */
- #define LPI_IE_BITMAP_IS_PROBE 0x00000002 /* send true or false based on scan response frame being a Probe Rsp or not */
- #define LPI_IE_BITMAP_SSID 0x00000004 /* send ssid from received scan response frame */
- #define LPI_IE_BITMAP_RSSI 0x00000008 /* send RSSI value reported by HW for the received scan response after adjusting with noise floor */
- #define LPI_IE_BITMAP_CHAN 0x00000010 /* send channel number from the received scan response */
- #define LPI_IE_BITMAP_AP_TX_PWR 0x00000020 /* send Tx power from TPC IE of scan rsp */
- #define LPI_IE_BITMAP_TX_RATE 0x00000040 /* send rate of the received frame as reported by HW. */
- #define LPI_IE_BITMAP_80211_MC_SUPPORT 0x00000080 /* send true or false based on the received scan rsp was from a 11mc supported AP or not. */
- #define LPI_IE_BITMAP_TSF_TIMER_VALUE 0x00000100 /* send timestamp reported in the received scan rsp frame. */
- #define LPI_IE_BITMAP_AGE_OF_MEASUREMENT 0x00000200 /* (current system time - received time) = duration of time scan rsp frame data is kept in the buffer before sending to LOWI LP. */
- /*
- * TEMPORARY alias of incorrect old name the correct name.
- * This alias will be removed once all references to the old name have been fixed.
- */
- #define LPI_IE_BITMAP_AGE_OF_MESAUREMENT LPI_IE_BITMAP_AGE_OF_MEASUREMENT
- #define LPI_IE_BITMAP_CONN_STATUS 0x00000400 /* If an infra STA is active and connected to an AP, true value is sent else false. */
- #define LPI_IE_BITMAP_MSAP_IE 0x00000800 /* info on the vendor specific proprietary IE MSAP */
- #define LPI_IE_BITMAP_SEC_STATUS 0x00001000 /* we indicate true or false based on if the AP has WPA or RSN security enabled */
- #define LPI_IE_BITMAP_DEVICE_TYPE 0x00002000 /* info about the beacons coming from an AP or P2P or NAN device. */
- #define LPI_IE_BITMAP_CHAN_IS_PASSIVE 0x00004000 /* info on whether the scan rsp was received from a passive channel */
- #define LPI_IE_BITMAP_DWELL_TIME 0x00008000 /* send the scan dwell time of the channel on which the current scan rsp frame was received. */
- #define LPI_IE_BITMAP_BAND_CENTER_FREQ1 0x00010000 /* the center frequencies in case AP is supporting wider channels than 20 MHz */
- #define LPI_IE_BITMAP_BAND_CENTER_FREQ2 0x00020000 /* same as above */
- #define LPI_IE_BITMAP_PHY_MODE 0x00040000 /* PHY mode indicates a, b, ,g, ac and other combinations */
- #define LPI_IE_BITMAP_SCAN_MODULE_ID 0x00080000 /* scan module id indicates the scan client who originated the scan */
- #define LPI_IE_BITMAP_SCAN_ID 0x00100000 /* extscan inserts the scan cycle count for this value; other scan clients can insert the scan id of the scan, if needed. */
- #define LPI_IE_BITMAP_FLAGS 0x00200000 /* reserved as a bitmap to indicate more scan information; one such use being to indicate if the on-going scan is interrupted or not */
- #define LPI_IE_BITMAP_CACHING_REQD 0x00400000 /* extscan will use this field to indicate if this frame info needs to be cached in LOWI LP or not */
- #define LPI_IE_BITMAP_REPORT_CONTEXT_HUB 0x00800000 /* extscan will use this field to indicate to LOWI LP whether to report result to context hub or not. */
- #define LPI_IE_BITMAP_CHRE_RADIO_CHAIN 0x01000000 /* include radio chain and RSSI per chain information if this bit is set - for CHRE */
- #define LPI_IE_BITMAP_CHRE_SEC_MODE_MRSNO_WIFI6 0x02000000 /* include MRSNO IE's sec_mode information for WiFi6 if this bit is set - for CHRE */
- #define LPI_IE_BITMAP_CHRE_SEC_MODE_MRSNO_WIFI7 0x04000000 /* include MRSNO IE's sec_mode information for WiFi7 if this bit is set - for CHRE */
- /* 0x08000000 is unused / available */
- #define LPI_IE_BITMAP_CHRE_ESS 0x10000000 /* ESS capability info for CHRE */
- #define LPI_IE_BITMAP_CHRE_SEC_MODE 0x20000000 /* Security capability info for CHRE */
- #define LPI_IE_BITMAP_CHRE_SUPPORTED_RATE 0x40000000 /* Highest MCS corresponding NCC for TX and RX */
- #define LPI_IE_BITMAP_ALL 0xFFFFFFFF
- typedef struct {
- A_UINT32 tlv_header;
- /**A_BOOL indicates LPI mgmt snooping enable/disable*/
- A_UINT32 enable;
- /**LPI snooping mode*/
- A_UINT32 snooping_mode;
- /** LPI interested IEs in snooping context */
- A_UINT32 ie_bitmap;
- } wmi_lpi_mgmt_snooping_config_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_start_scan_cmd_fixed_param */
- /** Scan ID */
- A_UINT32 scan_id;
- /** Scan requestor ID */
- A_UINT32 scan_req_id;
- /** VDEV id(interface) that is requesting scan */
- A_UINT32 vdev_id;
- /** LPI interested IEs in scan context */
- A_UINT32 ie_bitmap;
- /** Scan Priority, input to scan scheduler */
- A_UINT32 scan_priority;
- /** dwell time in msec on active channels */
- A_UINT32 dwell_time_active;
- /** dwell time in msec on passive channels */
- A_UINT32 dwell_time_passive;
- /** min time in msec on the BSS channel,only valid if atleast one VDEV is active*/
- A_UINT32 min_rest_time;
- /** max rest time in msec on the BSS channel,only valid if at least one VDEV is active*/
- /** the scanner will rest on the bss channel at least min_rest_time. after min_rest_time the scanner
- * will start checking for tx/rx activity on all VDEVs. if there is no activity the scanner will
- * switch to off channel. if there is activity the scanner will let the radio on the bss channel
- * until max_rest_time expires.at max_rest_time scanner will switch to off channel
- * irrespective of activity. activity is determined by the idle_time parameter.
- */
- A_UINT32 max_rest_time;
- /** time before sending next set of probe requests.
- * The scanner keeps repeating probe requests transmission with period specified by repeat_probe_time.
- * The number of probe requests specified depends on the ssid_list and bssid_list
- */
- A_UINT32 repeat_probe_time;
- /** time in msec between 2 consecutive probe requests with in a set. */
- A_UINT32 probe_spacing_time;
- /** data inactivity time in msec on bss channel that will be used by scanner for measuring the inactivity */
- A_UINT32 idle_time;
- /** maximum time in msec allowed for scan */
- A_UINT32 max_scan_time;
- /** delay in msec before sending first probe request after switching to a channel */
- A_UINT32 probe_delay;
- /** Scan control flags */
- A_UINT32 scan_ctrl_flags;
- /** Burst duration time in msec*/
- A_UINT32 burst_duration;
- /** # if channels to scan. In the TLV channel_list[] */
- A_UINT32 num_chan;
- /** number of bssids. In the TLV bssid_list[] */
- A_UINT32 num_bssid;
- /** number of ssid. In the TLV ssid_list[] */
- A_UINT32 num_ssids;
- /** number of bytes in ie data. In the TLV ie_data[] */
- A_UINT32 ie_len;
- /** Scan control flags extended (see WMI_SCAN_FLAG_EXT_xxx) */
- A_UINT32 scan_ctrl_flags_ext;
- /**
- * TLV (tag length value) parameters follow the scan_cmd
- * structure. The TLV's are:
- * A_UINT32 channel_list[]; // in MHz
- * wmi_ssid ssid_list[];
- * wmi_mac_addr bssid_list[];
- * A_UINT8 ie_data[];
- */
- } wmi_lpi_start_scan_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_stop_scan_cmd_fixed_param */
- /** Scan requestor ID */
- A_UINT32 scan_req_id;
- /** Scan ID */
- A_UINT32 scan_id;
- /**
- * Req Type
- * req_type should be WMI_SCAN_STOP_ONE, WMI_SCN_STOP_VAP_ALL or WMI_SCAN_STOP_ALL
- * WMI_SCAN_STOP_ONE indicates to stop a specific scan with scan_id
- * WMI_SCN_STOP_VAP_ALL indicates to stop all scan requests on a specific vDev with vdev_id
- * WMI_SCAN_STOP_ALL indicates to stop all scan requests in both Scheduler's queue and Scan Engine
- */
- A_UINT32 req_type;
- /**
- * vDev ID
- * used when req_type equals to WMI_SCN_STOP_VAP_ALL, it indexed the vDev on which to stop the scan
- */
- A_UINT32 vdev_id;
- } wmi_lpi_stop_scan_cmd_fixed_param;
- typedef enum {
- WMI_LPI_DEVICE_TYPE_AP = 1,
- WMI_LPI_DEVICE_TYPE_P2P = 2,
- WMI_LPI_DEVICE_TYPE_NAN = 3,
- } wmi_lpi_device_type;
- typedef struct
- {
- A_UINT32 tlv_header;
- /** Scan requestor ID */
- A_UINT32 scan_req_id;
- A_UINT32 ie_bitmap;
- A_UINT32 data_len;
- } wmi_lpi_result_event_fixed_param;
- typedef enum {
- /** User scan Request completed */
- WMI_LPI_STATUS_SCAN_REQ_COMPLED = 0,
- /** User Request was never serviced */
- WMI_LPI_STATUS_DROPPED_REQ = 1,
- /** Illegal channel Req */
- WMI_LPI_STATUS_ILLEGAL_CHAN_REQ = 2,
- /** Illegal Operation Req */
- WMI_LPI_STATUS_ILLEGAL_OPER_REQ = 3,
- /** Request Aborted */
- WMI_LPI_STATUS_REQ_ABORTED = 4,
- /** Request Timed Out */
- WMI_LPI_STATUS_REQ_TIME_OUT = 5,
- /** Medium Busy, already there
- * is a scan is going on */
- WMI_LPI_STATUS_MEDIUM_BUSY = 6,
- /** Extscan is the scan client whose scan complete event is triggered */
- WMI_LPI_STATUS_EXTSCAN_CYCLE_AND_SCAN_REQ_COMPLETED = 7,
- } wmi_lpi_staus;
- typedef struct
- {
- A_UINT32 tlv_header;
- wmi_lpi_staus status;
- /** Scan requestor ID */
- A_UINT32 scan_req_id;
- } wmi_lpi_status_event_fixed_param;
- typedef struct
- {
- A_UINT32 tlv_header;
- wmi_mac_addr bssid;
- wmi_ssid ssid;
- A_UINT32 freq;
- A_UINT32 rssi;
- A_UINT32 vdev_id;
- } wmi_lpi_handoff_event_fixed_param;
- typedef struct
- {
- A_UINT32 tlv_header;
- A_UINT32 timestamp; /*timestamp of batch scan event*/
- A_UINT32 numScanLists; /*number of scan in this event*/
- A_UINT32 isLastResult; /*is this event a last event of the whole batch scan*/
- } wmi_batch_scan_result_event_fixed_param;
- typedef enum { /* DEPRECATED - DO NOT USE */
- /** beacons not received from P2P GO */
- WMI_P2P_GO_BMISS = 0,
- /** beacons not received from P2 GO's STA's connected AP */
- WMI_DFS_AP_BMISS = 1,
- } wmi_dfs_ap_bmiss_reason; /* DEPRECATED - DO NOT USE */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_p2p_cli_dfs_ap_bmiss_fixed_param*/
- A_UINT32 vdev_id;
- /* NOTE:
- * The reason_code field is deprecated, and should be ignored.
- */
- A_UINT32 reason_code; /* contains a wmi_dfs_ap_bmiss_reason value */
- } wmi_p2p_cli_dfs_ap_bmiss_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_p2p_noa_event_fixed_param */
- A_UINT32 vdev_id;
- /* This TLV is followed by p2p_noa_info for vdev :
- * wmi_p2p_noa_info p2p_noa_info;
- */
- } wmi_p2p_noa_event_fixed_param;
- #define WMI_RFKILL_CFG_RADIO_LEVEL_OFFSET 6
- #define WMI_RFKILL_CFG_RADIO_LEVEL_MASK 0x1
- #define WMI_RFKILL_CFG_GPIO_PIN_NUM_OFFSET 0
- #define WMI_RFKILL_CFG_GPIO_PIN_NUM_MASK 0x3f
- #define WMI_RFKILL_CFG_PIN_AS_GPIO_OFFSET 7
- #define WMI_RFKILL_CFG_PIN_AS_GPIO_MASK 0xf
- typedef struct {
- /** TLV tag and len; tag equals
- * */
- A_UINT32 tlv_header;
- /** gpip pin number */
- A_UINT32 gpio_pin_num;
- /** gpio interrupt type */
- A_UINT32 int_type;
- /** RF radio status */
- A_UINT32 radio_state;
- } wmi_rfkill_mode_param;
- typedef enum {
- WMI_SET_LED_SYS_POWEROFF,
- WMI_SET_LED_SYS_S3_SUSPEND,
- WMI_SET_LED_SYS_S4_S5,
- WMI_SET_LED_SYS_DRIVER_DISABLE,
- WMI_SET_LED_SYS_WAKEUP,
- WMI_SET_LED_SYS_ALWAYS_ON, /* just for test! */
- WMI_SET_LED_SYS_POWERON,
- } wmi_led_sys_state_param;
- typedef enum {
- WMI_CONFIG_LED_TO_VDD = 0,
- WMI_CONFIG_LED_TO_GND = 1,
- } wmi_config_led_connect_type;
- typedef enum {
- WMI_CONFIG_LED_NOT_WITH_BT = 0,
- WMI_CONFIG_LED_WITH_BT = 1,
- } wmi_config_led_with_bt_flag;
- typedef enum {
- WMI_CONFIG_LED_DISABLE = 0,
- WMI_CONFIG_LED_ENABLE = 1,
- } wmi_config_led_enable_flag;
- typedef enum {
- WMI_CONFIG_LED_HIGH_UNSPECIFIED = 0,
- WMI_CONFIG_LED_HIGH_OFF = 1,
- WMI_CONFIG_LED_HIGH_ON = 2,
- } wmi_config_led_on_flag;
- typedef enum {
- WMI_CONFIG_LED_UNSPECIFIED = 0,
- WMI_CONFIG_LED_ON = 1,
- WMI_CONFIG_LED_OFF = 2,
- WMI_CONFIG_LED_DIM = 3,
- WMI_CONFIG_LED_BLINK = 4,
- WMI_CONFIG_LED_TXRX = 5,
- } wmi_config_led_operation_type;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_set_led_config_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* Set GPIO pin */
- A_UINT32 led_gpio_pin;
- /* Set connect type defined in wmi_config_led_connect_type */
- A_UINT32 connect_type;
- /* Set flag defined in wmi_config_led_with_bt_flag*/
- A_UINT32 with_bt;
- /* Set LED enablement defined in wmi_config_led_enable_flag */
- A_UINT32 led_enable;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /* see wmi_config_led_operation_type enum */
- A_UINT32 led_operation_type;
- /* see wmi_config_led_on_flag enum */
- A_UINT32 led_on_flag; /* configure high/low on/off sense */
- A_UINT32 led_on_interval; /* for blink function; unit: ms */
- A_UINT32 led_off_interval; /* for blink function; unit: ms */
- A_UINT32 led_repeat_cnt; /* for blink function: how many blinks */
- } wmi_pdev_set_led_config_cmd_fixed_param;
- #define WMI_WNTS_CFG_GPIO_PIN_NUM_OFFSET 0
- #define WMI_WNTS_CFG_GPIO_PIN_NUM_MASK 0xff
- /** WMI_SMARTANT_STATE_CHANGE_EVENTIDWMI_SMARTANT_STATE_CHANGE_EVENTID
- * report Smart Antenna status to host */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_smartant_event_fixed_param */
- A_UINT32 tlv_header;
- /** whether Antenna Controller is still alive or offline. */
- A_UINT32 smart_ant_AC_alive;
- } wmi_smartant_state_param;
- /** WMI_PEER_INFO_REQ_CMDID
- * Request FW to provide peer info */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_info_req_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** In order to get the peer info for a single peer, host shall
- * issue the peer_mac_address of that peer. For getting the
- * info all peers, the host shall issue 0xFFFFFFFF as the mac
- * address. The firmware will return the peer info for all the
- * peers on the specified vdev_id */
- wmi_mac_addr peer_mac_address;
- /** vdev id */
- A_UINT32 vdev_id;
- } wmi_peer_info_req_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_info */
- A_UINT32 tlv_header;
- /** mac addr of the peer */
- wmi_mac_addr peer_mac_address;
- /** data_rate of the peer */
- A_UINT32 data_rate;
- /** RSSI of the peer */
- A_UINT32 rssi;
- /** tx fail count */
- A_UINT32 tx_fail_cnt;
- } wmi_peer_info;
- /** FW response with the peer info */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_info_event_fixed_param */
- A_UINT32 tlv_header;
- /** number of peers in peer_info */
- A_UINT32 num_peers;
- /* Set to 1 only if vdev_id field is valid */
- A_UINT32 valid_vdev_id;
- /* VDEV to which the peer belongs to */
- A_UINT32 vdev_id;
- /* This TLV is followed by another TLV of array of structs
- * wmi_peer_info peer_info[];
- */
- } wmi_peer_info_event_fixed_param;
- /** WMI_PEER_ANTDIV_INFO_REQ_CMDID
- * Request FW to provide peer info */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_antdiv_info_req_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** In order to get the peer antdiv info for a single peer, host shall
- * issue the peer_mac_address of that peer. For getting the
- * info all peers, the host shall issue 0xFFFFFFFF as the mac
- * address. The firmware will return the peer info for all the
- * peers on the specified vdev_id */
- wmi_mac_addr peer_mac_address;
- /** vdev id */
- A_UINT32 vdev_id;
- } wmi_peer_antdiv_info_req_cmd_fixed_param;
- /** FW response with the peer antdiv info */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_antdiv_info_event_fixed_param */
- A_UINT32 tlv_header;
- /** number of peers in peer_info */
- A_UINT32 num_peers;
- /* VDEV to which the peer belongs to */
- A_UINT32 vdev_id;
- /* This TLV is followed by another TLV of array of structs
- * wmi_peer_antdiv_info peer_antdiv_info[];
- */
- } wmi_peer_antdiv_info_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_antdiv_info */
- A_UINT32 tlv_header;
- /** mac addr of the peer */
- wmi_mac_addr peer_mac_address;
- /** per chain RSSI of the peer, for up to 8 chains.
- * Each chain's entry reports the RSSI for different bandwidths:
- * bits 7:0 -> primary 20 MHz
- * bits 15:8 -> secondary 20 MHz of 40 MHz channel (if applicable)
- * bits 23:16 -> secondary 40 MHz of 80 MHz channel (if applicable)
- * bits 31:24 -> secondary 80 MHz of 160 MHz channel (if applicable)
- * Each of these 8-bit RSSI reports is in dB units, with respect to
- * the noise floor.
- * 0x80 means invalid.
- * All unused bytes within used chain_rssi indices shall be set to 0x80.
- * All unused chain_rssi indices shall be set to 0x80808080.
- */
- A_INT32 chain_rssi[8];
- } wmi_peer_antdiv_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_msduq_qdepth_thresh_update */
- /** tid_number */
- A_UINT32 tid_num;
- /** msduq_mask to set the value
- * bit 0 - HI-PRI msdu flowq qdepth threshold need to update if set
- * bit 1 - LOW-PRI msdu flowq qdepth threshold need to update if set
- * bit 2 - UDP msdu flowq qdepth threshold need to update if set
- * bit 3 - NON-UDP msdu flowq qdepth threshold need to update if set
- * rest of bits are reserved and set to 0.
- */
- A_UINT32 msduq_update_mask;
- /** Qdepth threshold value
- * If number of msdus in a queue excess over qdepth_thresh_value value
- * while queuing msdu's then we drop new msdus.
- * (Though dropping older (stale) data rather than newer data might be
- * preferable, the dropping is performed by MAC HW, and there's no option
- * to configure the HW to do head dropping rather than tail dropping.)
- */
- A_UINT32 qdepth_thresh_value;
- } wmi_msduq_qdepth_thresh_update;
- /** WMI_PEER_TID_MSDUQ_QDEPTH_THRESH_UPDATE_CMDID
- * Request FW to update msduq qdepth threshold per TID per peer */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_tid_msduq_qdepth_thresh_update_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /** pdev id
- * The pdev_id can be determined from the vdev_id, but the pdev_id
- * is explicitly provided so it can be used for sanity checking.
- */
- A_UINT32 pdev_id;
- /** vdev id */
- A_UINT32 vdev_id;
- /**
- * To set the peer msduq qdepth threshold update for a single peer,
- * the host shall send mac address for which peer need to be updated.
- */
- wmi_mac_addr peer_mac_address;
- /** number of payload update tlvs */
- A_UINT32 num_of_msduq_updates;
- /** Followed by the variable length TLV msduq_qdepth_updates:
- * wmi_msduq_qdepth_th_update msduq_qdepth_thshd_update_list[]
- */
- } wmi_peer_tid_msduq_qdepth_thresh_update_cmd_fixed_param;
- /**
- * ACK policy to be followed for the TID
- */
- typedef enum {
- /** Used when the host does not want to configure the ACK policy */
- WMI_PEER_TID_CONFIG_ACK_POLICY_IGNORE,
- /** Allow ACK for the TID */
- WMI_PEER_TID_CONFIG_ACK,
- /** Do not expect ACK for the TID */
- WMI_PEER_TID_CONFIG_NOACK,
- } WMI_PEER_TID_CONFIG_ACK_POLICY;
- /**
- * Aggregation control policy for the TID
- */
- typedef enum {
- /** Used when the host does not want to configure the aggregation policy */
- WMI_PEER_TID_CONFIG_AGGR_CONTROL_IGNORE,
- /** Enable aggregation for the TID */
- WMI_PEER_TID_CONFIG_AGGR_CONTROL_ENABLE,
- /** Disable aggregation for the TID */
- WMI_PEER_TID_CONFIG_AGGR_CONTROL_DISABLE,
- } WMI_PEER_TID_CONFIG_AGGR_CONTROL;
- /**
- * Rate control policy for the TID
- */
- typedef enum {
- /** Used when the host does not want to configure the rate control policy */
- WMI_PEER_TID_CONFIG_RATE_CONTROL_IGNORE,
- /** Auto rate control */
- WMI_PEER_TID_CONFIG_RATE_CONTROL_AUTO,
- /** Fixed rate control */
- WMI_PEER_TID_CONFIG_RATE_CONTROL_FIXED_RATE,
- /** Set the Default lowest rate (6Mbps in 5GHZ and 1Mbps in 2GHZ) */
- WMI_PEER_TID_CONFIG_RATE_CONTROL_DEFAULT_LOWEST_RATE,
- /**
- * Set the highest rate cap allowed for this TID.
- * Rate cap is specified in rate code format,
- * i.e. NSS and MCS combined as shown below:
- * b'5-b'4 indicate the NSS (0 - 1x1, 1 - 2x2, 2 - 3x3, 3 - 4x4)
- * b'3-b'0 indicate the MCS
- */
- WMI_PEER_TID_CONFIG_RATE_UPPER_CAP,
- } WMI_PEER_TID_CONFIG_RATE_CONTROL;
- /**
- * SW retry threshold for the TID
- */
- typedef enum {
- /** Used when the host does not want to configure the SW retry threshold */
- WMI_PEER_TID_SW_RETRY_IGNORE = 0,
- WMI_PEER_TID_SW_RETRY_MIN = 1,
- WMI_PEER_TID_SW_RETRY_MAX = 30,
- /** No SW retry for the TID */
- WMI_PEER_TID_SW_RETRY_NO_RETRY = 0xFFFFFFFF,
- } WMI_PEER_TID_CONFIG_SW_RETRY_THRESHOLD;
- /*
- * values for tid_config_supported_bitmap field,
- * in wmi_peer_tid_configurations_cmd structure.
- */
- typedef enum {
- /* Used to indicate that disable_rts_cts field is valid */
- WMI_PEER_TID_DISABLE_RTS_CTS_VALID = 0x00000001,
- WMI_PEER_TID_MAX_NUM_MPDU_IN_PPDU_VALID = 0x00000002,
- WMI_PEER_TID_MAX_NUM_MSDU_IN_MPDU_VALID = 0x00000004,
- } WMI_PEER_TID_EXT_CONFIG_VALID_BITMAP;
- /*
- * Per TID level enable/disable of RTS/CTS for that peer.
- * Currently applicable only for "data tids" within targets which set
- * the RTSCTS_FOR_UNICAST_MGMT WMI service bit.
- *
- * Enum values/Expected values for disable_rts_cts of
- * WMI_PEER_TID_DISABLE_RTS_CTS_VALID as below:
- *
- * 0 (WMI_RTSCTS_RESET) - Use default RTS/CTS
- * 1 (WMI_RTSCTS_DISABLE) - Disable RTS/CTS for every ppdu for that
- * configured data TID
- * 2 (WMI_RTSCTS_ENABLE) - Enable RTS/CTS for every ppdu for that
- * configured data TID
- */
- typedef enum {
- WMI_RTSCTS_RESET = 0,
- WMI_RTSCTS_DISABLE = 1,
- WMI_RTSCTS_ENABLE = 2,
- } WMI_PEER_TID_CONFIG_RTSCTS_CONTROL;
- /**
- * MPDU Aggregate value for the TID
- */
- typedef enum {
- /** Set the default Aggregation value configured in FW */
- WMI_PEER_TID_MAX_NUM_MPDU_IN_PPDU_DEFAULT,
- WMI_PEER_TID_MAX_NUM_MPDU_IN_PPDU_MIN = 1,
- WMI_PEER_TID_MAX_NUM_MPDU_IN_PPDU_MAX = 1024,
- } WMI_PEER_TID_CONFIG_MAX_NUM_MPDU_IN_PPDU;
- /**
- * MSDU Aggregate value for the TID
- */
- typedef enum {
- /** Set the default Aggregation value configured in FW */
- WMI_PEER_TID_MAX_NUM_MSDU_IN_MPDU_DEFAULT,
- WMI_PEER_TID_MAX_NUM_MSDU_IN_MPDU_MIN = 1,
- WMI_PEER_TID_MAX_NUM_MSDU_IN_MPDU_MAX = 7,
- } WMI_PEER_TID_CONFIG_MAX_NUM_MSDU_IN_MPDU;
- /**
- * Command format for the TID configuration
- */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_tid_configurations_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /** vdev id */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_mac_address;
- /** TID number, generated by the caller.
- * Valid range for QoS TID : 0-15
- * Valid range for non QOS/Mgmt TID: 16-19
- * Any other TID number is invalid.
- */
- A_UINT32 tid_num;
- /** ACK policy - of type WMI_PEER_TID_CONFIG_ACK_POLICY */
- A_UINT32 ack_policy;
- /** Aggregation control - of type WMI_PEER_TID_CONFIG_AGGR_CONTROL */
- A_UINT32 aggr_control;
- /** Rate control - of type WMI_PEER_TID_CONFIG_RATE_CONTROL */
- A_UINT32 rate_control;
- /** Fixed rate control parameters - of type WMI_PEER_PARAM_FIXED_RATE.
- * This is applicable only when rate_control is
- * WMI_PEER_TID_CONFIG_RATE_CONTROL_FIXED_RATE
- */
- A_UINT32 rcode_rcflags;
- /** MPDU SW retry threshold - of type WMI_PEER_TID_CONFIG_SW_RETRY_THRESHOLD
- * This SW retry threshold limits the total number of retransmits of
- * nacked or unacked MPDUs, but it is up to the FW to decide what
- * tx rate to use during each retransmission.
- */
- A_UINT32 sw_retry_threshold;
- /*--- Start of extended structure ---*/
- /* Bitmap to indicate which fields in the extended structure are valid.
- * Bitmap values correspond to enum WMI_PEER_TID_EXT_CONFIG_VALID_BITMAP
- */
- A_UINT32 tid_config_supported_bitmap;
- /* Knob to enable/disable RTS/CTS per TID
- * Enum values/Expected values:
- *
- * 0 (WMI_RTSCTS_RESET) - Use default RTS/CTS
- * 1 (WMI_RTSCTS_DISABLE) - Disable RTS/CTS for every ppdu for
- * that configured data TID
- * 2 (WMI_RTSCTS_ENABLE) - Enable RTS/CTS for every ppdu for
- * that configured data TID
- */
- A_UINT32 disable_rts_cts;
- /** Size for mpdu aggregation
- * (max MPDUs per PPDU)
- * Valid range : 1-1024 (refer to WMI_PEER_TID_MAX_NUM_MPDU_IN_PPDU_MIN,MAX)
- * When this field is set to 0, default aggregation value configured
- * in the fw will be used.
- * This is applicable only when aggr_control is
- * WMI_PEER_TID_CONFIG_AGGR_CONTROL_ENABLE
- */
- A_UINT32 max_num_mpdu_in_ppdu;
- /** Size for msdu aggregation
- * (max MSDUs per MPDU)
- * Valid range : 1-7 (refer to WMI_PEER_TID_MAX_NUM_MSDU_IN_MPDU_MIN,MAX)
- * When this field is set to 0, default aggregation value configured
- * in the fw will be used.
- * This is applicable only when aggr_control is
- * WMI_PEER_TID_CONFIG_AGGR_CONTROL_ENABLE
- */
- A_UINT32 max_num_msdu_in_mpdu;
- } wmi_peer_tid_configurations_cmd_fixed_param;
- /* The below enable/disable macros are used for both per peer CFR capture
- * control (as in wmi_peer_cfr_capture_cmd) and control of the entire periodic
- * CFR capture feature (as in WMI_PDEV_PARAM_PER_PEER_PERIODIC_CFR_ENABLE)
- */
- #define WMI_PEER_CFR_CAPTURE_ENABLE 1
- #define WMI_PEER_CFR_CAPTURE_DISABLE 0
- #define WMI_PEER_CFR_ONE_SHOT_REQUEST 0
- #define WMI_PEER_CFR_PERIODICITY_MIN 10 /* 10ms */
- #define WMI_PEER_CFR_PERIODICITY_MAX 10*60*1000 /* 10 minutes */
- /* Bandwidth of peer CFR captures */
- typedef enum {
- WMI_PEER_CFR_CAPTURE_BW_20MHZ = 0,
- WMI_PEER_CFR_CAPTURE_BW_40MHZ = 1,
- WMI_PEER_CFR_CAPTURE_BW_80MHZ = 2,
- WMI_PEER_CFR_CAPTURE_BW_160MHZ = 3,
- WMI_PEER_CFR_CAPTURE_BW_80_80MHZ = 4,
- WMI_PEER_CFR_CAPTURE_BW_MAX,
- } WMI_PEER_CFR_CAPTURE_BW;
- /* Peer CFR capture method */
- typedef enum {
- /* Send null frame on the requested bw and capture CFR on ACK */
- WMI_PEER_CFR_CAPTURE_METHOD_NULL_FRAME = 0,
- WMI_PEER_CFR_CAPTURE_METHOD_NULL_FRAME_WITH_PHASE = 1,
- WMI_PEER_CFR_CAPTURE_METHOD_PROBE_RESP = 2,
- /* New methods to be added here */
- WMI_PEER_CFR_CAPTURE_METHOD_MAX,
- } WMI_PEER_CFR_CAPTURE_METHOD;
- /*
- * Peer command structure to configure the CFR capture
- */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_cfr_capture_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /* WMI_PEER_CFR_CAPTURE_ENABLE: Enable CFR capture for the peer
- * WMI_PEER_CFR_CAPTURE_DISABLE: Disable CFR capture for the peer
- */
- A_UINT32 request;
- /* Peer MAC address. In AP mode, this is the address of the connected peer
- * for which CFR capture is needed. In case of STA mode, this is the address
- * of the AP to which the STA is connected
- */
- wmi_mac_addr mac_addr;
- /* vdev id */
- A_UINT32 vdev_id;
- /* Periodicity of measurement in ms.
- * WMI_PEER_CFR_ONE_SHOT_REQUEST: One-shot request i.e., Only one CFR
- * capture for the request and no periodic CFR captures.
- * The min value is WMI_PEER_CFR_PERIODICITY_MIN
- * The max value is WMI_PEER_CFR_PERIODICITY_MAX
- */
- A_UINT32 periodicity;
- /* BW of measurement - of type WMI_PEER_CFR_CAPTURE_BW */
- A_UINT32 bandwidth;
- /* Method used to capture CFR - of type WMI_PEER_CFR_CAPTURE_METHOD */
- A_UINT32 capture_method;
- } wmi_peer_cfr_capture_cmd_fixed_param;
- typedef enum {
- WMI_PEER_IND_SMPS = 0x0, /* spatial multiplexing power save */
- WMI_PEER_IND_OMN, /* operating mode notification */
- WMI_PEER_IND_OMI, /* operating mode indication */
- } WMI_PEER_OPER_MODE_IND;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_oper_mode_change */
- A_UINT32 tlv_header;
- /** mac addr of the peer */
- wmi_mac_addr peer_mac_address;
- /** Peer type indication WMI_PEER_OPER_MODE_IND. */
- A_UINT32 ind_type;
- /** new_rxnss valid for all peer_operating mode ind. */
- A_UINT32 new_rxnss;
- /** new_bw valid for peer_operating mode ind. OMN/OMI
- * value of this bw is as per 11ax/ac standard:
- * 0 = 20MHz,1 = 40MHz, 2= 80MHz, 3 = 160MHz
- */
- A_UINT32 new_bw;
- /** new_txnss valid for peer_operating mode ind. OMI */
- A_UINT32 new_txnss;
- /** new_disablemu: disable mu mode
- * valid for peer_operating mode ind. OMI
- */
- A_UINT32 new_disablemu;
- } wmi_peer_oper_mode_change_event_fixed_param;
- /** FW response when tx failure count has reached threshold
- * for a peer */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_tx_fail_cnt_thr_event_fixed_param */
- A_UINT32 tlv_header;
- /** vdev id*/
- A_UINT32 vdev_id;
- /** mac address */
- wmi_mac_addr peer_mac_address;
- /** tx failure count - will eventually be removed and not used */
- A_UINT32 tx_fail_cnt;
- /** seq number of the nth tx_fail_event */
- A_UINT32 seq_no;
- } wmi_peer_tx_fail_cnt_thr_event_fixed_param;
- enum wmi_rmc_mode {
- /** Disable RMC */
- WMI_RMC_MODE_DISABLED = 0,
- /** Enable RMC */
- WMI_RMC_MODE_ENABLED = 1,
- };
- /** Enable RMC transmitter functionality. Upon
- * receiving this, the FW shall mutlicast frames with
- * reliability. This is a vendor
- * proprietary feature. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_rmc_set_mode_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** vdev id*/
- A_UINT32 vdev_id;
- /** enable_rmc contains values from enum wmi_rmc_mode;
- * Default value: 0 (disabled) */
- A_UINT32 enable_rmc;
- } wmi_rmc_set_mode_cmd_fixed_param;
- /** Configure transmission periodicity of action frames in a
- * RMC network for the multicast transmitter */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_rmc_set_action_period_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** vdev id */
- A_UINT32 vdev_id;
- /** time period in milliseconds. Default: 300 ms.
- An action frame indicating the current leader is transmitted by the
- RMC transmitter once every 'periodity_msec' */
- A_UINT32 periodicity_msec;
- } wmi_rmc_set_action_period_cmd_fixed_param;
- /** Optimise Leader selection process in RMC functionality. For
- * Enhancement/Debug purposes only */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_rmc_config_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** vdev id */
- A_UINT32 vdev_id;
- /** flags ::
- * 0x0001 - Enable beacon averaging
- * 0x0002 - Force leader selection
- * 0x0004 - Enable Timer based leader switch
- * 0x0008 - Use qos/NULL based for multicast reliability */
- A_UINT32 flags;
- /** control leader change timeperiod (in seconds) */
- A_UINT32 peridocity_leader_switch;
- /** control activity timeout value for data rx (in seconds) */
- A_UINT32 data_activity_timeout;
- /** mac address of leader */
- wmi_mac_addr forced_leader_mac_addr;
- } wmi_rmc_config_cmd_fixed_param;
- /** MHF is generally implemented in
- * the kernel. To decrease system power consumption, the
- * driver can enable offloading this to the chipset. In
- * order for the offload, the firmware needs the routing table.
- * The host shall plumb the routing table into FW. The firmware
- * shall perform an IP address lookup and forward the packet to
- * the next hop using next hop's mac address. This is a vendor
- * proprietary feature. */
- enum wmi_mhf_ofl_mode {
- /** Disable MHF offload */
- WMI_MHF_OFL_MODE_DISABLED = 0,
- /** Enable MHF offload */
- WMI_MHF_OFL_MODE_ENABLED = 1,
- };
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_mhf_offload_set_mode_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** vdev id*/
- A_UINT32 vdev_id;
- /** enable_mhf_ofl contains values from enum
- * wmi_mhf_ofl_mode; Default value: 0 (disabled) */
- A_UINT32 enable_mhf_ofl;
- } wmi_mhf_offload_set_mode_cmd_fixed_param;
- enum wmi_mhf_ofl_table_action {
- /** Create MHF offload table in FW */
- WMI_MHF_OFL_TBL_CREATE = 0,
- /** Append to existing MHF offload table */
- WMI_MHF_OFL_TBL_APPEND = 1,
- /** Flush entire MHF offload table in FW */
- WMI_MHF_OFL_TBL_FLUSH = 2,
- };
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_mhf_offload_plumb_routing_table_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** vdev id*/
- A_UINT32 vdev_id;
- /** action corresponds to values from enum
- * wmi_mhf_ofl_table_action */
- A_UINT32 action;
- /** number of entries in the table */
- A_UINT32 num_entries;
- /** Followed by the variable length TLV
- * wmi_mhf_offload_routing_table_entry entries[] */
- } wmi_mhf_offload_plumb_routing_table_cmd;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_mhf_offload_routing_table_entry */
- A_UINT32 tlv_header;
- /** Destination node's IP address */
- WMI_IPV4_ADDR dest_ipv4_addr;
- /** Next hop node's MAC address */
- wmi_mac_addr next_hop_mac_addr;
- } wmi_mhf_offload_routing_table_entry;
- enum {
- WMI_DFS_RADAR_PULSE_FLAG_MASK_PSIDX_DIFF_VALID = 0x00000001,
- };
- typedef struct {
- /** tlv tag and len, tag equals
- * WMITLV_TAG_STRUC_wmi_dfs_radar_event */
- A_UINT32 tlv_header;
- /** full 64 tsf timestamp get from MAC tsf timer indicates
- * the time that the radar event uploading to host, split
- * it to high 32 bit and lower 32 bit in fulltsf_high and
- * full_tsf_low
- */
- A_UINT32 upload_fullts_low;
- A_UINT32 upload_fullts_high;
- /** timestamp indicates the time when DFS pulse is detected
- * equal to ppdu_end_ts - radar_pusle_summary_ts_offset
- */
- A_UINT32 pulse_detect_ts;
- /** the duaration of the pulse in us */
- A_UINT32 pulse_duration;
- /** the center frequency of the radar pulse detected, KHz */
- A_UINT32 pulse_center_freq;
- /** bandwidth of current DFS channel, MHz */
- A_UINT32 ch_bandwidth;
- /** center channel frequency1 of current DFS channel, MHz */
- A_UINT16 ch_center_freq1;
- /** center channel frequency2 of current DFS channel, MHz,
- * reserved for 160 BW mode
- */
- A_UINT16 ch_center_freq2;
- /** flag to indicate if this pulse is chirp */
- A_UINT8 pulse_is_chirp;
- /** RSSI recorded in the ppdu */
- A_UINT8 rssi;
- /** extended RSSI info */
- A_UINT8 rssi_ext;
- union {
- A_UINT8 pmac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT8 pdev_id;
- };
- /** index of peak magnitude bin (signed) */
- A_INT32 peak_sidx;
- /** Max pulse chirp velocity in delta bins over chirp FFT interval */
- A_INT32 pulse_delta_peak;
- /** Max pulse chirp velocity variance in delta bins */
- A_INT32 pulse_delta_diff;
- /** the difference in the FFT peak index between short FFT and the first long FFT
- * psidx_diff = (first_long_fft_psidx - 4*first_short_fft_psidx),
- */
- A_INT32 psidx_diff;
- /** pulse_flags: see WMI_DFS_RADAR_PULSE_FLAG_MASK enum values
- * 0x0001 - set if psidx_diff is valid
- */
- A_UINT32 pulse_flags;
- } wmi_dfs_radar_event_fixed_param;
- enum {
- /* DEFAULT - target chooses what action to take, based on its thermal
- * management policy
- * Targets which throttle tx (and potentially rx) based on thermal
- * management thresholds specified by the host will shut down tx
- * if the temperature exceeds upper_thresh_degreeC.
- * Targets which simply inform the host about threshold breaches will
- * send a notification message to the host if the temperature exceeds
- * upper_thresh_degreeC.
- * Conversely, if the temperature was above upper_thresh_degreeC but
- * then drops to below lower_threshold_degreeC, the target will either
- * resume tx, or notify the host.
- */
- WMI_THERMAL_MGMT_ACTION_DEFAULT = 0,
- /* HALT_TRAFFIC -
- * If the temperature rises above upper_thresh_degreeC, the target will
- * halt tx.
- * If the temperature falls back below lower_thresh_degreeC, the target
- * will resume tx.
- */
- WMI_THERMAL_MGMT_ACTION_HALT_TRAFFIC = 1,
- /* NOTIFY_HOST - the target will notify the host if the temperature
- * either rises above upper_thresh_degreeC or falls below
- * lower_thresh_degreeC.
- */
- WMI_THERMAL_MGMT_ACTION_NOTIFY_HOST = 2,
- /* CHAIN SCALING -
- * The target will switch tx chain mask from multi chains to single chain
- * if the temperature rises above upper_thresh_degreeC.
- * The target will switch tx chainmask back to multi chains if the
- * temperature drops below upper_thresh_degreeC.
- */
- WMI_THERMAL_MGMT_ACTION_CHAINSCALING = 3,
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_thermal_mgmt_cmd_fixed_param */
- /*Thermal thresholds*/
- A_UINT32 lower_thresh_degreeC; /* in degree C*/
- A_UINT32 upper_thresh_degreeC; /* in degree C*/
- /*Enable/Disable Thermal Monitoring for Mitigation*/
- A_UINT32 enable;
- /* action: what the target should do when a thermal upper/lower threshold
- * is crossed.
- * Refer to the WMI_THERMAL_MGMT_ACTION enum.
- */
- A_UINT32 action;
- A_UINT32 threshold_warning_degreeC;
- A_UINT32 sample_rate_ms;
- } wmi_thermal_mgmt_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_thermal_mgmt_event_fixed_param */
- A_UINT32 temperature_degreeC;/* temperature in degree C*/
- } wmi_thermal_mgmt_event_fixed_param;
- /**
- * This command is sent from WLAN host driver to firmware to
- * request firmware to configure auto shutdown timer in fw
- * 0 - Disable <1-19600>-Enabled and timer value is seconds (86400 seconds = 1 day maximum>
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_host_auto_shutdown_cfg_cmd_param */
- A_UINT32 timer_value; /** timer value; 0=disable */
- } wmi_host_auto_shutdown_cfg_cmd_fixed_param;
- enum wmi_host_auto_shutdown_reason {
- WMI_HOST_AUTO_SHUTDOWN_REASON_UNKNOWN = 0,
- WMI_HOST_AUTO_SHUTDOWN_REASON_TIMER_EXPIRY = 1,
- WMI_HOST_AUTO_SHUTDOWN_REASON_MAX,
- };
- /* WMI_HOST_AUTO_SHUTDOWN_EVENTID */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_host_auto_shutdown_event_fixed_param */
- A_UINT32 shutdown_reason; /* value: wmi_host_auto_shutdown_reason */
- } wmi_host_auto_shutdown_event_fixed_param;
- /** New WMI command to support TPC CHAINMASK ADJUSTMENT ACCORDING TO a set of conditions specified in the command.
- * fw will save c tpc offset/chainmask along with conditions and adjust tpc/chainmask when condition meet.
- * This command is only used by some customer for verification test. It is not for end-user.
- *
- * array of wmi_tpc_chainmask_config structures are passed with the command to specify multiple conditions.
- *
- * The set of conditions include bt status, stbc status, band, phy_mode, 1stream/2streams, channel, rate. when all these conditions meet,
- * the output(tpc_offset,chainmask) will be applied on per packet basis. ack_offset is applied based on channel condition only. When multiple
- * conditions has the same channel ,then the first ack_offset will be applied. It is better for host driver to make sure the
- * <channel, ack_offset> pair is unique.
- *
- * the conditions (bt status, stbc status, band, phy_mode, 1steam/2streams, tpc_offset, ack_offset, chainmask) are combinedi into a single word
- * called basic_config_info by bitmap
- * to save memory. And channel & rate info will be tracked by 'channel' field and 'rate0', 'rate1' field because of its large combination.
- *
- * 'rate bit' or 'channel bit' field of basic_config_info indicate validity of the channel and rate fields.if rate bit is 0 then the rate field
- * is ignored.
- * disable will remove preious conditions from FW.
- * conditions from the later command will over write conditions stored from a previous command.
- *
- */
- #define WMI_TPC_CHAINMASK_CONFIG_BT_ON_OFF 0 /** dont' care the bt status */
- #define WMI_TPC_CHAINMASK_CONFIG_BT_ON 1 /** apply only when bt on */
- #define WMI_TPC_CHAINMASK_CONFIG_BT_OFF 2 /** apply only when bt off */
- #define WMI_TPC_CHAINMASK_CONFIG_BT_RESV1 3 /** reserved */
- #define WMI_TPC_CHAINMASK_CONFIG_CHAINMASK_DONT_CARE 0 /** don't care the chainmask */
- #define WMI_TPC_CHAINMASK_CONFIG_CHAINMASK_CHAIN0 1 /** force to use Chain0 to send */
- #define WMI_TPC_CHAINMASK_CONFIG_CHAINMASK_CHAIN1 2 /** force to use Chain1 to send */
- #define WMI_TPC_CHAINMASK_CONFIG_CHAINMASK_CHAIN0_CHAIN1 3 /** force to use Chain0 & Chain1 to send */
- #define WMI_TPC_CHAINMASK_CONFIG_STBC_ON_OFF 0 /** don't care about stbc */
- #define WMI_TPC_CHAINMASK_CONFIG_STBC_ON 1 /** apply only when stbc on */
- #define WMI_TPC_CHAINMASK_CONFIG_STBC_OFF 2 /** apply only when stbc off */
- #define WMI_TPC_CHAINMASK_CONFIG_STBC_RESV1 3 /** reserved */
- #define WMI_TPC_CHAINMASK_CONFIG_BAND_2G 0 /** 2G */
- #define WMI_TPC_CHAINMASK_CONFIG_BAND_5G 1 /** 5G */
- #define WMI_TPC_CHAINMASK_CONFIG_PHY_MODE_11B_2G 0 /** 11b 2G */
- #define WMI_TPC_CHAINMASK_CONFIG_PHY_MODE_11G_2G 1 /** 11g 2G */
- #define WMI_TPC_CHAINMASK_CONFIG_PHY_MODE_11N_2G 2 /** 11n 2G */
- #define WMI_TPC_CHAINMASK_CONFIG_PHY_MODE_11N_11AC_2G 3 /** 11n + 11ac 2G */
- #define WMI_TPC_CHAINMASK_CONFIG_PHY_MODE_11A_5G 4 /** 11a 5G */
- #define WMI_TPC_CHAINMASK_CONFIG_PHY_MODE_11N_5G 5 /** 11n 5G */
- #define WMI_TPC_CHAINMASK_CONFIG_PHY_MODE_11AC_5G 6 /** 11ac 5G */
- #define WMI_TPC_CHAINMASK_CONFIG_PHY_MODE_11N_11AC_5G 7 /** 11n + 11ac 5G */
- #define WMI_TPC_CHAINMASK_CONFIG_STREAM_1 0 /** 1 stream */
- #define WMI_TPC_CHAINMASK_CONFIG_STREAM_2 1 /** 2 streams */
- #define WMI_TPC_CHAINMASK_CONFIG_CHANNEL_OFF 0 /** channel field is ignored */
- #define WMI_TPC_CHAINMASK_CONFIG_CHANNEL_ON 1 /** channel field needs to be checked */
- #define WMI_TPC_CHAINMASK_CONFIG_RATE_OFF 0 /** rate field is ignored */
- #define WMI_TPC_CHAINMASK_CONFIG_RATE_ON 1 /** rate field needs to be checked */
- /** Bit map definition for basic_config_info starts */
- #define WMI_TPC_CHAINMASK_CONFIG_TPC_OFFSET_S 0
- #define WMI_TPC_CHAINMASK_CONFIG_TPC_OFFSET (0x1f << WMI_TPC_CHAINMASK_CONFIG_TPC_OFFSET_S)
- #define WMI_TPC_CHAINMASK_CONFIG_TPC_OFFSET_GET(x) WMI_F_MS(x,WMI_TPC_CHAINMASK_CONFIG_TPC_OFFSET)
- #define WMI_TPC_CHAINMASK_CONFIG_TPC_OFFSET_SET(x,z) WMI_F_RMW(x,(z) & 0x1f,WMI_TPC_CHAINMASK_CONFIG_TPC_OFFSET)
- #define WMI_TPC_CHAINMASK_CONFIG_ACK_OFFSET_S 5
- #define WMI_TPC_CHAINMASK_CONFIG_ACK_OFFSET (0x1f << WMI_TPC_CHAINMASK_CONFIG_ACK_OFFSET_S)
- #define WMI_TPC_CHAINMASK_CONFIG_ACK_OFFSET_GET(x) WMI_F_MS(x,WMI_TPC_CHAINMASK_CONFIG_ACK_OFFSET)
- #define WMI_TPC_CHAINMASK_CONFIG_ACK_OFFSET_SET(x,z) WMI_F_RMW(x, (z) & 0x1f, WMI_TPC_CHAINMASK_CONFIG_ACK_OFFSET)
- #define WMI_TPC_CHAINMASK_CONFIG_CHAINMASK_S 10
- #define WMI_TPC_CHAINMASK_CONFIG_CHAINMASK (0x3 << WMI_TPC_CHAINMASK_CONFIG_CHAINMASK_S)
- #define WMI_TPC_CHAINMASK_CONFIG_CHAINMASK_GET(x) WMI_F_MS(x,WMI_TPC_CHAINMASK_CONFIG_CHAINMASK)
- #define WMI_TPC_CHAINMASK_CONFIG_CHAINMASK_SET(x,z) WMI_F_RMW(x, (z) & 0x3, WMI_TPC_CHAINMASK_CONFIG_CHAINMASK)
- #define WMI_TPC_CHAINMASK_CONFIG_BT_S 12
- #define WMI_TPC_CHAINMASK_CONFIG_BT (0x3 << WMI_TPC_CHAINMASK_CONFIG_BT_S)
- #define WMI_TPC_CHAINMASK_CONFIG_BT_GET(x) WMI_F_MS(x,WMI_TPC_CHAINMASK_CONFIG_BT)
- #define WMI_TPC_CHAINMASK_CONFIG_BT_SET(x,z) WMI_F_RMW(x, (z) & 0x3, WMI_TPC_CHAINMASK_CONFIG_BT)
- #define WMI_TPC_CHAINMASK_CONFIG_STBC_S 14
- #define WMI_TPC_CHAINMASK_CONFIG_STBC (0x3 << WMI_TPC_CHAINMASK_CONFIG_STBC_S)
- #define WMI_TPC_CHAINMASK_CONFIG_STBC_GET(x) WMI_F_MS(x,WMI_TPC_CHAINMASK_CONFIG_STBC)
- #define WMI_TPC_CHAINMASK_CONFIG_STBC_SET(x,z) WMI_F_RMW(x, (z) & 0x3, WMI_TPC_CHAINMASK_CONFIG_STBC)
- #define WMI_TPC_CHAINMASK_CONFIG_BAND_S 16
- #define WMI_TPC_CHAINMASK_CONFIG_BAND (0x1 << WMI_TPC_CHAINMASK_CONFIG_BAND_S)
- #define WMI_TPC_CHAINMASK_CONFIG_BAND_GET(x) WMI_F_MS(x,WMI_TPC_CHAINMASK_CONFIG_BAND)
- #define WMI_TPC_CHAINMASK_CONFIG_BAND_SET(x,z) WMI_F_RMW(x, (z) & 0x1, WMI_TPC_CHAINMASK_CONFIG_BAND)
- #define WMI_TPC_CHAINMASK_CONFIG_STREAM_S 17
- #define WMI_TPC_CHAINMASK_CONFIG_STREAM (0x1 << WMI_TPC_CHAINMASK_CONFIG_STREAM_S)
- #define WMI_TPC_CHAINMASK_CONFIG_STREAM_GET(x) WMI_F_MS(x,WMI_TPC_CHAINMASK_CONFIG_STREAM)
- #define WMI_TPC_CHAINMASK_CONFIG_STREAM_SET(x,z) WMI_F_RMW(x, (z) & 0x1, WMI_TPC_CHAINMASK_CONFIG_STREAM)
- #define WMI_TPC_CHAINMASK_CONFIG_PHY_MODE_S 18
- #define WMI_TPC_CHAINMASK_CONFIG_PHY_MODE (0x7 << WMI_TPC_CHAINMASK_CONFIG_PHY_MODE_S)
- #define WMI_TPC_CHAINMASK_CONFIG_PHY_MODE_GET(x) WMI_F_MS(x,WMI_TPC_CHAINMASK_CONFIG_PHY_MODE)
- #define WMI_TPC_CHAINAMSK_CONFIG_PHY_MODE_SET(x,z) WMI_F_RMW(x, (z) & 0x7, WMI_TPC_CHAINMASK_CONFIG_PHY_MODE)
- #define WMI_TPC_CHAINMASK_CONFIG_CHANNEL_S 21
- /*
- * The deprecated old name (WMI_TPC_CHAINMASK_CONFIG_CHANNEL_EXIST)
- * is temporarily maintained as an alias for the correct name
- * (WMI_TPC_CHAINMASK_CONFIG_CHANNEL)
- */
- #define WMI_TPC_CHAINMASK_CONFIG_CHANNEL_EXIST WMI_TPC_CHAINMASK_CONFIG_CHANNEL
- #define WMI_TPC_CHAINMASK_CONFIG_CHANNEL (0x1 << WMI_TPC_CHAINMASK_CONFIG_CHANNEL_S)
- #define WMI_TPC_CHAINMASK_CONFIG_CHANNEL_GET(x) WMI_F_MS(x,WMI_TPC_CHAINMASK_CONFIG_CHANNEL)
- #define WMI_TPC_CHAINMASK_CONFIG_CHANNEL_SET(x,z) WMI_F_RMW(x, (z) & 0x1, WMI_TPC_CHAINMASK_CONFIG_CHANNEL)
- #define WMI_TPC_CHAINMASK_CONFIG_RATE_S 22
- /*
- * The deprecated old name (WMI_TPC_CHAINMASK_CONFIG_RATE_EXIST)
- * is temporarily maintained as an alias for the correct name
- * (WMI_TPC_CHAINMASK_CONFIG_RATE)
- */
- #define WMI_TPC_CHAINMASK_CONFIG_RATE_EXIST WMI_TPC_CHAINMASK_CONFIG_RATE
- #define WMI_TPC_CHAINMASK_CONFIG_RATE (0x1 << WMI_TPC_CHAINMASK_CONFIG_RATE_S)
- #define WMI_TPC_CHAINMASK_CONFIG_RATE_GET(x) WMI_F_MS(x, WMI_TPC_CHAINMASK_CONFIG_RATE)
- #define WMI_TPC_CHAINMASK_CONFIG_RATE_SET(x,z) WMI_F_RMW(x, (z) & 0x1, WMI_TPC_CHAINMASK_CONFIG_RATE)
- /** Bit map definition for basic_config_info ends */
- typedef struct {
- A_UINT32 tlv_header;
- /** Basic condition defined as bit map above, bitmap is chosen to save memory.
- * Bit0 ~ Bit4: tpc offset which will be adjusted if condition matches, the unit is 0.5dB. bit4 indicates signed
- * Bit5 ~ Bit9: ack offset which will be adjusted if condition matches, the unit is 0.5dB. bit9 indicates signed
- * Bit10 ~ Bit11: chainmask b'00: don't care, b'01: force to use chain0, b'10: force to use chain1, b'11: force to use chain0&chain1
- * Bit12 ~ Bit13: bt condition b'00: don't care, b'01: apply only when bt on, b'10: apply only when bt off, b'11: reserved
- * Bit14 ~ Bit15: stbc condition b'00: don't care, b'01: apply only when stbc on, b'10: apply only when stbc off, b'11: reserved
- * Bit16 : band condition b'0: 2G, b'1: 5G
- * Bit17 : stream condition: b'0: 1 stream, b'1: 2 streams
- * Bit18 ~ Bit20: phy mode condition: b'000: 11b 2g, b'001: 11g 2g, b'010: 11n 2g, b'011: 11n+11ac 2g, b'100: 11a, b'101: 11n 5g, b'110: 11ac 5g, b'111: 11n+11ac 5g
- * Bit21 : channel bit, if this bit is 0, then the following channel field is ignored
- * Bit22 : rate bit, if this bit is 0, then the following rate0&rate1 is ignored.
- * Bit23 ~ Bit31: reserved
- */
- A_UINT32 basic_config_info;
- /** channel mapping bit rule: The lower bit corresponds with smaller channel.
- * it depends on Bit14 of basic_config_info
- * Total 24 channels for 5G
- * 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 149 153 157 161 165
- * Total 14 channels for 2G
- * 1 ~ 14
- */
- A_UINT32 channel;
- /** rate mapping bit rule: The lower bit corresponds with lower rate.
- * it depends on Bit16 ~ Bit18 of basic_config_info, "phy mode condition"
- * Legacy rates , 11b, 11g, 11A
- * 11n one stream (ht20, ht40) 8+8
- * 11n two streams (ht20, ht40) 8+8
- * 11ac one stream (vht20, vht40, vht80) 10+10+10
- * 11ac two streams (vht20, vht40, vht80) 10+10+10
- */
- A_UINT32 rate0;
- /** For example, for 11b, when rate0 equals 0x3, it means if actual_rate in [ "1Mbps", "2Mbps"] connection, the rate condition is true.
- * For example, for 11g/11a, when rate0 equals 0xf0,it means "54Mbps", "48Mbps", "36Mbps", "24Mb's" is selected, while "18Mbps", "12Mbps", "9Mbps", "6Mbps" is not selected
- */
- /** only used for "11n+11ac" combined phy_mode, (WMI_TPC_CHAINMASK_CONFIG_PHY_MODE_11N_11AC_2G , WMI_TPC_CHAINMASK_CONFIG_PHY_MODE_11N_11AC_5G) in this case, 11n rates begins on rate0, while 11ac rates begins on rate1
- */
- A_UINT32 rate1;
- } wmi_tpc_chainmask_config;
- #define WMI_TPC_CHAINMASK_CONFIG_DISABLE 0 /** control the off for the tpc & chainmask*/
- #define WMI_TPC_CHAINMASK_CONFIG_ENABLE 1 /** control the on for the tpc & chainmask*/
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 enable; /** enable to set tpc & chainmask when conditions meet, 0: disabled, 1: enabled. */
- A_UINT32 num_tpc_chainmask_configs;
- /** following this structure is num_tpc_chainmask_configs number of wmi_tpc_chainmask_config */
- } wmi_tpc_chainmask_config_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_oem_dma_ring_cfg_req_fixed_param */
- A_UINT32 pdev_id;
- /**
- * Bits 31:0: base address of ring [31:0]
- */
- A_UINT32 base_addr_lo;
- /**
- * Bits 3:0: base address of ring [35:32]
- * Bits 31:4: reserved
- */
- A_UINT32 base_addr_hi;
- /**
- * Bits 31:0: address of head index [31:0]
- */
- A_UINT32 head_idx_addr_lo;
- /**
- * Bits 3:0: address of head index [35:32]
- * Bits 31:4: reserved
- */
- A_UINT32 head_idx_addr_hi;
- /**
- * Bits 31:0: address of tail index [31:0]
- */
- A_UINT32 tail_idx_addr_lo;
- /**
- * Bits 3:0: address of tail index [35:32]
- * Bits 31:4: reserved
- */
- A_UINT32 tail_idx_addr_hi;
- A_UINT32 num_ptr; /** Number of pointers in the ring */
- } wmi_oem_dma_ring_cfg_req_fixed_param;
- #define WMI_OEM_DMA_RING_ADDR_LO_S 0
- #define WMI_OEM_DMA_RING_ADDR_LO 0xffffffff
- #define WMI_OEM_DMA_RING_ADDR_LO_GET(dword) WMI_F_MS(dword, WMI_OEM_DMA_RING_ADDR_LO)
- #define WMI_OEM_DMA_RING_ADDR_LO_SET(dword, val) WMI_F_RMW(dword, val, WMI_OEM_DMA_RING_ADDR_LO)
- #define WMI_OEM_DMA_RING_ADDR_HI_S 0
- #define WMI_OEM_DMA_RING_ADDR_HI 0xf
- #define WMI_OEM_DMA_RING_ADDR_HI_GET(dword) WMI_F_MS(dword, WMI_OEM_DMA_RING_ADDR_HI)
- #define WMI_OEM_DMA_RING_ADDR_HI_SET(dword, val) WMI_F_RMW(dword, val, WMI_OEM_DMA_RING_ADDR_HI)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_oem_dma_ring_cfg_rsp_fixed_param */
- A_UINT32 pdev_id;
- A_UINT32 cfg_status; /** Configuration status; see A_STATUS */
- } wmi_oem_dma_ring_cfg_rsp_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_oem_indirect_data */
- A_UINT32 pdev_id; /** ID of pdev whose OEM DMA ring produced the data */
- /**
- * Bits 31:0: address of data [31:0]
- */
- A_UINT32 addr_lo;
- /**
- * Bits 3:0: address of data [35:32]
- * Bits 11:4: reserved
- * Bits 31:12: opaque host context data [19:0]
- */
- A_UINT32 addr_hi;
- A_UINT32 len; /** Length of data in bytes */
- } wmi_oem_indirect_data;
- #define WMI_OEM_DMA_DATA_ADDR_LO_S 0
- #define WMI_OEM_DMA_DATA_ADDR_LO 0xffffffff
- #define WMI_OEM_DMA_DATA_ADDR_LO_GET(dword) WMI_F_MS(dword, WMI_OEM_DMA_DATA_ADDR_LO)
- #define WMI_OEM_DMA_DATA_ADDR_LO_SET(dword, val) WMI_F_RMW(dword, val, WMI_OEM_DMA_DATA_ADDR_LO)
- #define WMI_OEM_DMA_DATA_ADDR_HI_S 0
- #define WMI_OEM_DMA_DATA_ADDR_HI 0xf
- #define WMI_OEM_DMA_DATA_ADDR_HI_GET(dword) WMI_F_MS(dword, WMI_OEM_DMA_DATA_ADDR_HI)
- #define WMI_OEM_DMA_DATA_ADDR_HI_SET(dword, val) WMI_F_RMW(dword, val, WMI_OEM_DMA_DATA_ADDR_HI)
- #define WMI_OEM_DMA_DATA_ADDR_HI_HOST_DATA_S 12
- #define WMI_OEM_DMA_DATA_ADDR_HI_HOST_DATA 0xfffff
- #define WMI_OEM_DMA_DATA_ADDR_HI_HOST_DATA_GET(dword) WMI_F_MS(dword, WMI_OEM_DMA_DATA_ADDR_HI_HOST_DATA)
- #define WMI_OEM_DMA_DATA_ADDR_HI_HOST_DATA_SET(dword, val) WMI_F_RMW(dword, val, WMI_OEM_DMA_DATA_ADDR_HI_HOST_DATA)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_oem_dma_buf_release_hdr */
- A_UINT32 pdev_id; /** ID of pdev whose OEM DMA ring produced the data */
- } wmi_oem_dma_buf_release_fixed_param;
- typedef struct {
- /**
- * Bits 31:0: address of data [31:0]
- */
- A_UINT32 addr_lo;
- /**
- * Bits 3:0: address of data [35:32]
- * Bits 11:4: reserved
- * Bits 31:12: host context data [19:0]
- */
- A_UINT32 addr_hi;
- } wmi_oem_dma_buf_release_entry;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_oem_data_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** Actual length in byte of data[]. */
- A_UINT32 data_len;
- /**
- * pdev_vdev_flag - 0 follow old method (vdev_id is valid, ignore pdev_id)
- * pdev_vdev_flag - 1 pdev_id is valid
- */
- A_UINT32 pdev_vdev_flag;
- /** Unique id identifying the PDEV */
- A_UINT32 pdev_id;
- /** This structure is used to send OEM DATA binary blobs from
- * application/service to firmware where Host driver is pass through.
- * The OEM-specific commands from OEM-specific userspace applications
- * are passed to OEM-specific feature handlers in firmware as OEM DATA
- * binary blobs. The format of the data is per agreement between FW and
- * userspace applications, with the binary blob beginning with a header
- * that identifies to the FW the nature of the remaining data within the
- * blob.
- *
- * Following this structure is the TLV:
- * A_UINT8 data[]; <-- actual length in byte given by field data_len.
- */
- } wmi_oem_data_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nan_cmd_param */
- A_UINT32 data_len; /** length in byte of data[]. */
- /* This structure is used to send REQ binary blobs
- * from application/service to firmware where Host drv is pass through .
- * Following this structure is the TLV:
- * A_UINT8 data[]; <-- length in byte given by field data_len.
- */
- } wmi_nan_cmd_param;
- typedef enum {
- WMI_NAN_VENDOR1_REQ1 = 1,
- } WMI_NAN_OEM_DATA_TYPE;
- typedef struct {
- /** oem_data_type:
- * Indicate what kind of OEM-specific data is present in the
- * oem_data_buffer[].
- * Possible values are listed in the enum WMI_NAN_OEM_DATA_TYPE.
- */
- A_UINT32 oem_data_type;
- /** oem_data_len:
- * Actual length in bytes of the OEM-specific data within the
- * oem_data_buffer[].
- * Note that it is possible for a single message to contain multiple
- * OEM opaque data blobs. In such cases, the oem_data_len field of
- * nan_oem_data_hdr[0] not only specifies the size of the first such
- * opaque blob, but furthermore specifies the offset in oem_data_buffer[]
- * where the second opaque blob begins.
- */
- A_UINT32 oem_data_len;
- } wmi_nan_oem_data_hdr;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nan_oem_data_cmd_fixed_param */
- /* Following this structure are the below TLVs:
- * - wmi_nan_oem_data_hdr nan_oem_data_hdr[];
- * This TLV explains the type and size of the one or more OEM NAN
- * opaque data blobs carried in this message.
- * - A_UINT8 nan_oem_data_buffer[];
- * This TLV holds the contents of the one or more OEM NAN opaque data
- * blobs carried in this message.
- */
- } wmi_nan_oem_data_cmd_fixed_param;
- #define WMI_NAN_GET_RANGING_INITIATOR_ROLE(flag) WMI_GET_BITS(flag, 0, 1)
- #define WMI_NAN_SET_RANGING_INITIATOR_ROLE(flag, val) WMI_SET_BITS(flag, 0, 1, val)
- #define WMI_NAN_GET_RANGING_RESPONDER_ROLE(flag) WMI_GET_BITS(flag, 1, 1)
- #define WMI_NAN_SET_RANGING_RESPONDER_ROLE(flag, val) WMI_SET_BITS(flag, 1, 1, val)
- #define WMI_NAN_GET_NAN_6G_DISABLE(flag) WMI_GET_BITS(flag, 2, 1)
- #define WMI_NAN_SET_NAN_6G_DISABLE(flag, val) WMI_SET_BITS(flag, 2, 1, val)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nan_host_config_param */
- A_UINT32 nan_2g_disc_disable:1; /** This bit when set to 1 indicate NAN 2G discovery should be disabled */
- A_UINT32 nan_5g_disc_disable:1; /** This bit when set to 1 indicate NAN 5G discovery should be disabled */
- A_UINT32 reserved:30;
- /** Flags: refer to WMI_NAN_GET/SET macros
- * Bit 0 -> Nan ranging initiator role (0 - Disable, 1 - Enable)
- * Bit 1 -> Nan ranging responder role (0 - Disable, 1 - Enable)
- * Bit 2 -> Nan 6 GHz support (1 - Disable, 0 - Enable)
- * Bits 3-31 -> Reserved
- */
- A_UINT32 flags;
- } wmi_nan_host_config_param_PROTOTYPE;
- #define wmi_nan_host_config_param wmi_nan_host_config_param_PROTOTYPE
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nan_event_hdr */
- A_UINT32 data_len; /** length in byte of data[]. */
- /* This structure is used to send REQ binary blobs
- * from firmware to application/service where Host drv is pass through .
- * Following this structure is the TLV:
- * A_UINT8 data[]; <-- length in byte given by field data_len.
- */
- } wmi_nan_event_hdr;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nan_oem_data_event_fixed_param */
- /* Following this structure are the below TLVs:
- * - wmi_nan_oem_data_hdr nan_oem_data_hdr[];
- * This TLV explains the type and size of the one or more OEM NAN
- * opaque data blobs carried in this message.
- * - A_UINT8 nan_oem_data_buffer[];
- * This TLV holds the contents of the one or more OEM NAN opaque data
- * blobs carried in this message.
- */
- } wmi_nan_oem_data_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nan_event_info */
- A_UINT32 mac_id; /* MAC ID associated with NAN primary discovery channel; Valid only for NAN enable resp message identified by NAN_MSG_ID_ENABLE_RSP */
- A_UINT32 status:1; /** This bit when set to 0 indicates status is successful; Valid only for NAN enable resp message identified by NAN_MSG_ID_ENABLE_RSP */
- A_UINT32 reserved:31;
- A_UINT32 vdev_id; /** Unique id identifying the vdev with type OPMODE_NAN; Valid only for NAN enable resp message identified by NAN_MSG_ID_ENABLE_RSP */
- } wmi_nan_event_info_PROTOTYPE;
- #define wmi_nan_event_info wmi_nan_event_info_PROTOTYPE
- /**
- * Event to indicate NAN discovery interface created
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nan_disc_iface_created_event_fixed_param */
- A_UINT32 tlv_header;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** NAN interface MAC address */
- wmi_mac_addr nan_interface_macaddr;
- } wmi_nan_disc_iface_created_event_fixed_param_PROTOTYPE;
- #define wmi_nan_disc_iface_created_event_fixed_param wmi_nan_disc_iface_created_event_fixed_param_PROTOTYPE
- /**
- * Event to indicate NAN discovery interface deleted
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nan_disc_iface_deleted_event_fixed_param */
- A_UINT32 tlv_header;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- } wmi_nan_disc_iface_deleted_event_fixed_param_PROTOTYPE;
- #define wmi_nan_disc_iface_deleted_event_fixed_param wmi_nan_disc_iface_deleted_event_fixed_param_PROTOTYPE
- /**
- * Event to indicate NAN device started new cluster
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nan_started_cluster_event_fixed_param */
- A_UINT32 tlv_header;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** NAN Cluster ID */
- A_UINT32 nan_cluster_id;
- } wmi_nan_started_cluster_event_fixed_param_PROTOTYPE;
- #define wmi_nan_started_cluster_event_fixed_param wmi_nan_started_cluster_event_fixed_param_PROTOTYPE
- /**
- * Event to indicate NAN device joined to cluster
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nan_joined_cluster_event_fixed_param */
- A_UINT32 tlv_header;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** NAN Cluster ID */
- A_UINT32 nan_cluster_id;
- } wmi_nan_joined_cluster_event_fixed_param_PROTOTYPE;
- #define wmi_nan_joined_cluster_event_fixed_param wmi_nan_joined_cluster_event_fixed_param_PROTOTYPE
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_nan_dmesg_event_fixed_param */
- A_UINT32 tlv_header;
- /** length in byte of msg[]. */
- A_UINT32 msg_len;
- /* Following this structure is the TLV:
- * A_UINT8 msg[]; <-- length in byte given by field data_len.
- * This data contains the string message which will be given to Host to dump it to kernel logs.
- */
- } wmi_nan_dmesg_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUCT_wmi_nan_capabilities */
- A_UINT32 tlv_header;
- /** Maximum number of ndp sessions supported by the Firmware */
- A_UINT32 max_ndp_sessions;
- /** Maximum number of nan pairing sessions supported by the Firmware */
- A_UINT32 max_pairing_sessions;
- } wmi_nan_capabilities;
- /** NAN DATA CMD's */
- /**
- * NAN Data get capabilities req
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndi_get_cap_req_fixed_param */
- A_UINT32 tlv_header;
- /** unique id generated in upper layer for the transaction */
- A_UINT32 transaction_id;
- } wmi_ndi_get_cap_req_fixed_param_PROTOTYPE;
- #define wmi_ndi_get_cap_req_fixed_param wmi_ndi_get_cap_req_fixed_param_PROTOTYPE
- /**
- * NDP Response code
- */
- typedef enum {
- NDP_RSP_CODE_REQUEST_ACCEPT = 0x00,
- NDP_RSP_CODE_REQUEST_REJECT = 0x01,
- NDP_RSP_CODE_REQUEST_DEFER = 0x02,
- } wmi_ndp_rsp_code_PROTOTYPE;
- #define wmi_ndp_rsp_code wmi_ndp_rsp_code_PROTOTYPE
- /**
- * NDP Channel configuration type
- */
- typedef enum {
- WMI_NDP_CHANNEL_NOT_REQUESTED = 0, /* Channel will not configured */
- WMI_NDP_REQUEST_CHANNEL_SETUP = 1, /* Channel will be provided and is optional/hint */
- WMI_NDP_FORCE_CHANNEL_SETUP = 2/* NDP must start on the provided channel */
- } wmi_ndp_channel_cfg_PROTOTYPE;
- /*
- * The WMI_NDP_IPV6_INTF_ADDR_LEN macro cannot be changed without breaking
- * WMI compatibility.
- */
- #define WMI_NDP_IPV6_INTF_ADDR_LEN 16
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_transport_ip_param */
- /* Presence of ipv6_intf_addr */
- A_UINT32 ipv6_addr_present;
- /* Presence of transport Port */
- A_UINT32 trans_port_present;
- /* Presence of transport Protocol */
- A_UINT32 trans_proto_present;
- /* ipv6 Interface address */
- A_UINT8 ipv6_intf_addr[WMI_NDP_IPV6_INTF_ADDR_LEN];
- /* Transport Port */
- A_UINT32 transport_port;
- /* Transport Protocol */
- A_UINT32 transport_protocol;
- } wmi_ndp_transport_ip_param;
- #define wmi_ndp_channel_cfg wmi_ndp_channel_cfg_PROTOTYPE
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_channel_info */
- A_UINT32 mac_id; /* mac_id associated with ndp channel at same index */
- } wmi_ndp_channel_info_PROTOTYPE;
- #define wmi_ndp_channel_info wmi_ndp_channel_info_PROTOTYPE
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_event_param */
- A_UINT32 vdev_id; /* NDI VDEV ID */
- A_UINT32 ndp_termination_in_progress:1; /** This bit when set to 1 indicates to termination of all NDPs associated with NDI vdev ID is started */
- A_UINT32 reserved:31;
- } wmi_ndp_event_param_PROTOTYPE;
- #define wmi_ndp_event_param wmi_ndp_event_param_PROTOTYPE
- /**
- * NDP Initiator requesting a data session
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_initiator_req_fixed_param */
- A_UINT32 tlv_header;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** unique id generated in upper layer for the transaction */
- A_UINT32 transaction_id;
- /** Unique Instance Id identifying the Responder's service */
- A_UINT32 service_instance_id;
- /** Discovery MAC addr of the publisher/peer */
- wmi_mac_addr peer_discovery_mac_addr;
- /** Actual number of bytes in TLV ndp_cfg */
- A_UINT32 ndp_cfg_len;
- /** Actual number of bytes in TLV ndp_app_info */
- A_UINT32 ndp_app_info_len;
- /** NDP channel configuration type defined in wmi_ndp_channel_cfg */
- A_UINT32 ndp_channel_cfg;
- /** NAN Cipher Suite Shared Key */
- A_UINT32 nan_csid;
- /** Actual number of bytes in TLV ndp_pmk */
- A_UINT32 nan_pmk_len;
- /** Actual number of bytes in TLV ndp_passphrase */
- A_UINT32 nan_passphrase_len;
- /** Actual number of bytes in TLV nan_servicename */
- A_UINT32 nan_servicename_len;
- /** NAN Cipher Suite Capability field */
- A_UINT32 nan_csid_cap;
- /** GTK protection is required for the NDP */
- A_UINT32 nan_gtk_required;
- /**
- * TLV (tag length value) parameters follow the ndp_initiator_req
- * structure. The TLV's are:
- * wmi_channel channel;
- * A_UINT8 ndp_cfg[];
- * A_UINT8 ndp_app_info[];
- * A_UINT8 ndp_pmk[];
- * A_INT8 ndp_passphrase[];
- * A_INT8 nan_servicename[];
- * wmi_ndp_transport_ip_param ndp_transport_ip_param;
- */
- } wmi_ndp_initiator_req_fixed_param_PROTOTYPE;
- #define wmi_ndp_initiator_req_fixed_param wmi_ndp_initiator_req_fixed_param_PROTOTYPE
- /**
- * Initiate a data response on the responder side
- * for data request indication from the peer
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_responder_req_fixed_param */
- A_UINT32 tlv_header;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** unique id generated in upper layer for the transaction */
- A_UINT32 transaction_id;
- /**
- * Unique token Id generated on the initiator/responder
- * side used for a NDP session between two NAN devices
- */
- A_UINT32 ndp_instance_id;
- /** Response Code defined in wmi_ndp_rsp_code */
- A_UINT32 rsp_code;
- /** Number of bytes in TLV ndp_cfg */
- A_UINT32 ndp_cfg_len;
- /** Number of bytes in TLV ndp_app_info */
- A_UINT32 ndp_app_info_len;
- /** NAN Cipher Suite Shared Key */
- A_UINT32 nan_csid;
- /** Actual number of bytes in TLV ndp_pmk */
- A_UINT32 nan_pmk_len;
- /** Actual number of bytes in TLV ndp_passphrase */
- A_UINT32 nan_passphrase_len;
- /** Actual number of bytes in TLV nan_servicename */
- A_UINT32 nan_servicename_len;
- /** NAN Cipher Suite Capability field */
- A_UINT32 nan_csid_cap;
- /** GTK protection is required for the NDP */
- A_UINT32 nan_gtk_required;
- /**
- * TLV (tag length value) parameters follow the ndp_responder_req
- * structure. The TLV's are:
- * A_UINT8 ndp_cfg[];
- * A_UINT8 ndp_app_info[];
- * A_UINT8 ndp_pmk[];
- * A_INT8 ndp_passphrase[];
- * A_INT8 nan_servicename[];
- * wmi_ndp_transport_ip_param ndp_transport_ip_param;
- */
- } wmi_ndp_responder_req_fixed_param_PROTOTYPE;
- #define wmi_ndp_responder_req_fixed_param wmi_ndp_responder_req_fixed_param_PROTOTYPE
- /**
- * NDP end type
- */
- typedef enum {
- WMI_NDP_END_TYPE_UNSPECIFIED = 0x00,
- WMI_NDP_END_TYPE_PEER_UNAVAILABLE = 0x01,
- WMI_NDP_END_TYPE_OTA_FRAME = 0x02,
- WMI_NDP_END_TYPE_DATA_INACTIVITY = 0x03,
- } wmi_ndp_end_type_PROTOTYPE;
- #define wmi_ndp_end_type wmi_ndp_end_type_PROTOTYPE
- /**
- * NDP end reason code
- */
- typedef enum {
- WMI_NDP_END_REASON_UNSPECIFIED = 0x00,
- WMI_NDP_END_REASON_INACTIVITY = 0x01,
- WMI_NDP_END_REASON_PEER_DATA_END = 0x02,
- WMI_NDP_END_REASON_DATA_INACTIVITY = 0x03,
- } wmi_ndp_end_reason_code_PROTOTYPE;
- #define wmi_ndp_end_reason_code wmi_ndp_end_reason_code_PROTOTYPE
- /**
- * NDP end request
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_end_req */
- A_UINT32 tlv_header;
- /** NDP instance id */
- A_UINT32 ndp_instance_id;
- /** vdev_id valid flag */
- A_UINT32 vdev_id_valid;
- /** vdev id */
- A_UINT32 vdev_id;
- } wmi_ndp_end_req_PROTOTYPE;
- #define wmi_ndp_end_req wmi_ndp_end_req_PROTOTYPE
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_cmd_param */
- A_UINT32 vdev_id; /* NDI VDEV ID */
- A_UINT32 ndp_disable:1; /** This bit when set to 1 indicates to terminate all NDPs associated with NDI vdev ID */
- A_UINT32 reserved:31;
- } wmi_ndp_cmd_param_PROTOTYPE;
- #define wmi_ndp_cmd_param wmi_ndp_cmd_param_PROTOTYPE
- /**
- * NDP End request
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_end_req_fixed_param */
- A_UINT32 tlv_header;
- /** unique id generated in upper layer for the transaction */
- A_UINT32 transaction_id;
- /**
- * TLV (tag length value) parameters follow the ndp_end_req
- * structure. The TLV's are:
- * wmi_ndp_end_req ndp_end_req_list[];
- */
- } wmi_ndp_end_req_fixed_param_PROTOTYPE;
- #define wmi_ndp_end_req_fixed_param wmi_ndp_end_req_fixed_param_PROTOTYPE
- /* NAN DATA RSP EVENTS */
- /**
- * Event to indicate NAN Data Interface capabilities cmd
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndi_cap_rsp_event_fixed_param */
- A_UINT32 tlv_header;
- /** Copy of transaction_id received in wmi_ndi_get_cap_req */
- A_UINT32 transaction_id;
- /** Max ndi interface support */
- A_UINT32 max_ndi_interfaces;
- /** Max ndp sessions can support */
- A_UINT32 max_ndp_sessions;
- /** Max number of peer's per ndi */
- A_UINT32 max_peers_per_ndi;
- /** which combination of bands is supported - see NAN_DATA_SUPPORTED_BAND enums */
- A_UINT32 nan_data_supported_bands;
- } wmi_ndi_cap_rsp_event_fixed_param_PROTOTYPE;
- #define wmi_ndi_cap_rsp_event_fixed_param wmi_ndi_cap_rsp_event_fixed_param_PROTOTYPE
- /**
- * NDP command response code
- */
- typedef enum {
- NDP_CMD_RSP_STATUS_SUCCESS = 0x00,
- NDP_CMD_RSP_STATUS_ERROR = 0x01,
- } wmi_ndp_cmd_rsp_status_PROTOTYPE;
- #define wmi_ndp_cmd_rsp_status wmi_ndp_cmd_rsp_status_PROTOTYPE
- /**
- * Event response for wmi_ndp_initiator_req
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_initiator_rsp_event_fixed_param */
- A_UINT32 tlv_header;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** Copy of transaction_id received in wmi_ndp_initiator_req */
- A_UINT32 transaction_id;
- /** Response status defined in wmi_ndp_cmd_rsp_status*/
- A_UINT32 rsp_status;
- A_UINT32 reason_code;
- /**
- * Unique token Id generated on the initiator/responder
- * side used for a NDP session between two NAN devices
- */
- A_UINT32 ndp_instance_id;
- } wmi_ndp_initiator_rsp_event_fixed_param_PROTOTYPE;
- #define wmi_ndp_initiator_rsp_event_fixed_param wmi_ndp_initiator_rsp_event_fixed_param_PROTOTYPE
- /**
- * Event response for wmi_ndp_responder_req cmd
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_responder_rsp_event_fixed_param */
- A_UINT32 tlv_header;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** Copy of transaction_id received in wmi_ndp_responder_req */
- A_UINT32 transaction_id;
- /** Response status defined in wmi_ndp_cmd_rsp_status*/
- A_UINT32 rsp_status;
- A_UINT32 reason_code;
- /**
- * Unique token Id generated on the initiator/responder
- * side used for a NDP session between two NAN devices
- */
- A_UINT32 ndp_instance_id;
- /** NDI mac address of the peer */
- wmi_mac_addr peer_ndi_mac_addr;
- /** Host can create peer if this entry is TRUE */
- A_UINT32 create_peer;
- } wmi_ndp_responder_rsp_event_fixed_param_PROTOTYPE;
- #define wmi_ndp_responder_rsp_event_fixed_param wmi_ndp_responder_rsp_event_fixed_param_PROTOTYPE
- /**
- * Active ndp instance id
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_active_ndp_instance_id */
- A_UINT32 tlv_header;
- /** NDP instance id */
- A_UINT32 ndp_instance_id;
- } wmi_active_ndp_instance_id_PROTOTYPE;
- #define wmi_active_ndp_instance_id wmi_active_ndp_instance_id_PROTOTYPE
- /**
- * NDP end response per ndi
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_end_rsp_per_ndi */
- A_UINT32 tlv_header;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** Peer MAC addr */
- wmi_mac_addr peer_mac_addr;
- /** Number of active ndps on this ndi */
- A_UINT32 num_active_ndps_on_ndi;
- } wmi_ndp_end_rsp_per_ndi_PROTOTYPE;
- #define wmi_ndp_end_rsp_per_ndi wmi_ndp_end_rsp_per_ndi_PROTOTYPE
- /**
- * Event response for wmi_ndp_end_req cmd
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_end_rsp_event_fixed_param */
- A_UINT32 tlv_header;
- /** Copy of transaction_id received in wmi_ndp_end_req */
- A_UINT32 transaction_id;
- /** Response status defined in wmi_ndp_cmd_rsp_status*/
- A_UINT32 rsp_status;
- A_UINT32 reason_code;
- /**
- * TLV (tag length value) parameters follow the ndp_end_rsp
- * structure. The TLV's are:
- * wmi_ndp_end_rsp_per_ndi ndp_end_rsp_per_ndis[];
- * wmi_active_ndp_instance_id active_ndp_instances_id[];
- */
- } wmi_ndp_end_rsp_event_fixed_param_PROTOTYPE;
- #define wmi_ndp_end_rsp_event_fixed_param wmi_ndp_end_rsp_event_fixed_param_PROTOTYPE
- /** NAN DATA EVENTS */
- /**
- * NDP self role
- */
- typedef enum {
- WMI_NDP_INITIATOR_ROLE,
- WMI_NDP_RESPONDER_ROLE,
- } wmi_ndp_self_role_PROTOTYPE;
- #define wmi_ndp_self_role wmi_ndp_self_role_PROTOTYPE
- /**
- * NDP accept policy
- */
- typedef enum {
- WMI_NDP_ACCEPT_POLICY_NONE,
- WMI_NDP_ACCEPT_POLICY_ALL,
- } wmi_ndp_accept_policy_PROTOTYPE;
- #define wmi_ndp_accept_policy wmi_ndp_accept_policy_PROTOTYPE
- /**
- * Event indication received on the responder side when a NDP Initiator request/
- * NDP session is initiated on the Initiator side (self role will be NDP_RESPONDER_ROLE)
- *
- * Event indication received on the initiator side when a
- * NDP responder request on the Initiator side (self role will be NDP_INITIATOR_ROLE)
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_indication_event_fixed_param */
- A_UINT32 tlv_header;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** Self NDP Role defined in wmi_ndp_self_role */
- A_UINT32 self_ndp_role;
- /** Accept policy defined in wmi_ndp_accept_policy */
- A_UINT32 accept_policy;
- /** Unique Instance Id corresponding to a service/session. */
- A_UINT32 service_instance_id;
- /** Discovery MAC addr of the peer/initiator */
- wmi_mac_addr peer_discovery_mac_addr;
- /** NDI mac address of the peer */
- wmi_mac_addr peer_ndi_mac_addr;
- /**
- * Unique token Id generated on the initiator/responder
- * side used for a NDP session between two NAN devices
- */
- A_UINT32 ndp_instance_id;
- /** Number of bytes in TLV wmi_ndp_cfg */
- A_UINT32 ndp_cfg_len;
- /** Number of bytes in TLV wmi_ndp_app_info */
- A_UINT32 ndp_app_info_len;
- /** Peer NAN Cipher Suite Shared Key */
- A_UINT32 nan_csid;
- /** Actual number of bytes in TLV nan_scid */
- A_UINT32 nan_scid_len;
- /** Self NDI mac address */
- wmi_mac_addr self_ndi_mac_addr;
- /** Number of bytes in TLV service_id */
- A_UINT32 service_id_len;
- /** NAN Cipher Suite Capability field */
- A_UINT32 nan_csid_cap;
- /** GTK protection is required for the NDP */
- A_UINT32 nan_gtk_required;
- /**
- * TLV (tag length value) parameters follow the ndp_indication
- * structure. The TLV's are:
- * A_UINT8 ndp_cfg[];
- * A_UINT8 ndp_app_info[];
- * A_UINT8 nan_scid[];
- * wmi_ndp_transport_ip_param ndp_transport_ip_param;
- * A_UINT8 service_id[service_id_len]; <- holds a single service ID of an
- * indeterminate number of bytes (most likely 6 bytes)
- */
- } wmi_ndp_indication_event_fixed_param_PROTOTYPE;
- #define wmi_ndp_indication_event_fixed_param wmi_ndp_indication_event_fixed_param_PROTOTYPE
- /**
- * Event indication of data confirm is received on both
- * initiator and responder side confirming a NDP session
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_confirm_event_fixed_param */
- A_UINT32 tlv_header;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /**
- * Unique token Id generated on the initiator/responder
- * side used for a NDP session between two NAN devices
- */
- A_UINT32 ndp_instance_id;
- /** NDI mac address of the peer (required to derive target ipv6 address) */
- wmi_mac_addr peer_ndi_mac_addr;
- /** Response Code defined in wmi_ndp_rsp_code */
- A_UINT32 rsp_code;
- /** Number of bytes in TLV wmi_ndp_cfg */
- A_UINT32 ndp_cfg_len;
- /** Number of bytes in TLV wmi_ndp_app_info */
- A_UINT32 ndp_app_info_len;
- /** Reason Code */
- A_UINT32 reason_code;
- /** Number of active ndps on this peer */
- A_UINT32 num_active_ndps_on_peer;
- /** Number of channels on this peer */
- A_UINT32 num_ndp_channels;
- /**
- * TLV (tag length value) parameters follow the ndp_confirm
- * structure. The TLV's are:
- * A_UINT8 ndp_cfg[];
- * A_UINT8 ndp_app_info[];
- * wmi_channel ndp_channel_list[];
- * A_UINT32 nss_list[]; // Nss indexing should match with channel indexing,
- * // since Nss is associated with the channel
- * wmi_ndp_transport_ip_param ndp_transport_ip_param;
- */
- } wmi_ndp_confirm_event_fixed_param_PROTOTYPE;
- #define wmi_ndp_confirm_event_fixed_param wmi_ndp_confirm_event_fixed_param_PROTOTYPE
- /**
- * Event indication received on the initiator/responder side terminating a NDP session
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndp_end_indication */
- A_UINT32 tlv_header;
- /** type defined in wmi_ndp_end_type */
- A_UINT32 type;
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** reason_code defined in wmi_ndp_end_reason_code */
- A_UINT32 reason_code;
- /** NDP instance id */
- A_UINT32 ndp_instance_id;
- /** NDI MAC addr of the peer */
- wmi_mac_addr peer_ndi_mac_addr;
- /** Number of active ndps on this peer */
- A_UINT32 num_active_ndps_on_peer;
- } wmi_ndp_end_indication_PROTOTYPE;
- #define wmi_ndp_end_indication wmi_ndp_end_indication_PROTOTYPE
- typedef struct
- {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ndl_schedule_update_fixed_param */
- /** Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** Flags:
- * Bit 0 -> Nss updated
- * Bit 1 -> channel list updated
- * Bits 2-31 -> Reserved
- */
- A_UINT32 flags;
- /** num of channels */
- A_UINT32 num_channels;
- /** num of ndp instances */
- A_UINT32 num_ndp_instances;
- /**
- * TLV (tag length value) parameters follow the ndl_schedule_update
- * structure. The TLV's are:
- * A_UINT32 ndp_instance_list[];
- * wmi_channel ndl_channel_list[];
- * A_UINT32 nss_list[]; // Nss indexing should match with channel indexing,
- * // since Nss is associate with a channel
- */
- } wmi_ndl_schedule_update_fixed_param_PROTOTYPE;
- #define wmi_ndl_schedule_update_fixed_param wmi_ndl_schedule_update_fixed_param_PROTOTYPE
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 num_data;
- /* followed by WMITLV_TAG_ARRAY_BYTE */
- } wmi_diag_data_container_event_fixed_param;
- enum {
- WMI_PDEV_PARAM_TXPOWER_REASON_NONE = 0,
- WMI_PDEV_PARAM_TXPOWER_REASON_SAR,
- WMI_PDEV_PARAM_TXPOWER_REASON_MAX
- };
- #define PDEV_PARAM_TXPOWER_VALUE_MASK 0x000000FF
- #define PDEV_PARAM_TXPOWER_VALUE_SHIFT 0
- #define PDEV_PARAM_TXPOWER_REASON_MASK 0x0000FF00
- #define PDEV_PARAM_TXPOWER_REASON_SHIFT 8
- #define SET_PDEV_PARAM_TXPOWER_VALUE(txpower_param, value) \
- ((txpower_param) &= ~PDEV_PARAM_TXPOWER_VALUE_MASK, (txpower_param) |= ((value) << PDEV_PARAM_TXPOWER_VALUE_SHIFT))
- #define SET_PDEV_PARAM_TXPOWER_REASON(txpower_param, value) \
- ((txpower_param) &= ~PDEV_PARAM_TXPOWER_REASON_MASK, (txpower_param) |= ((value) << PDEV_PARAM_TXPOWER_REASON_SHIFT))
- #define GET_PDEV_PARAM_TXPOWER_VALUE(txpower_param) \
- (((txpower_param) & PDEV_PARAM_TXPOWER_VALUE_MASK) >> PDEV_PARAM_TXPOWER_VALUE_SHIFT)
- #define GET_PDEV_PARAM_TXPOWER_REASON(txpower_param) \
- (((txpower_param) & PDEV_PARAM_TXPOWER_REASON_MASK) >> PDEV_PARAM_TXPOWER_REASON_SHIFT)
- #define PDEV_PARAM_SMART_CHAINMASK_SCHEME_DECISION_MASK 0x00000001
- #define PDEV_PARAM_SMART_CHAINMASK_SCHEME_DECISION_SHIFT 0
- #define SET_PDEV_SMART_CHAINMASK_SCHEME_DECISION(param, value) \
- do { \
- (param) &= ~PDEV_PARAM_SMART_CHAINMASK_SCHEME_DECISION_MASK; \
- (param) |= (value) << PDEV_PARAM_SMART_CHAINMASK_SCHEME_DECISION_SHIFT; \
- } while (0)
- #define GET_PDEV_SMART_CHAINMASK_SCHEME_DECISION(param) \
- (((param) & PDEV_PARAM_SMART_CHAINMASK_SCHEME_DECISION_MASK) >> PDEV_PARAM_SMART_CHAINMASK_SCHEME_DECISION_SHIFT)
- /**
- * This command is sent from WLAN host driver to firmware to
- * notify the current modem power state. Host would receive a
- * message from modem when modem is powered on. Host driver
- * would then send this command to firmware. Firmware would then
- * power on WCI-2 (UART) interface for LTE/MWS Coex.
- *
- * This command is only applicable for APQ platform which has
- * modem on the platform. If firmware doesn't support MWS Coex,
- * this command can be dropped by firmware.
- *
- * This is a requirement from modem team that WCN can't toggle
- * UART before modem is powered on.
- */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_modem_power_state_cmd_param */
- A_UINT32 tlv_header;
- /** Modem power state parameter */
- A_UINT32 modem_power_state;
- } wmi_modem_power_state_cmd_param;
- enum {
- WMI_MODEM_STATE_OFF = 0,
- WMI_MODEM_STATE_ON
- };
- /**
- * This command is sent from WLAN host driver to firmware to
- * notify the updated Specific Absorption Rate (SAR) limits.
- * A critical regulation for FCC compliance, OEMs require methods to set
- * limits on TX power of WLAN/WWAN.
- * Host would receive instructions on what to set the limits per
- * band/chain/modulation to, it would then interpret and send the limits
- * to FW using this WMI message.
- * Since it is possible to have too many commands to fit into one message,
- * FW will keep receiving the messages, until it finds one with
- * commit_limits = 1, at which point it will apply all the received
- * specifications.
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sar_limits_cmd_param */
- A_UINT32 tlv_header;
- /** when set to WMI_SAR_FEATURE_ON_*, enable SAR feature
- * with BDF (SET_0 to 4) or WMI
- * if set to WMI_SAR_FEATURE_OFF, disable feature;
- * if set to WMI_SAR_FEATURE_NO_CHANGE, do not alter state of feature;
- */
- A_UINT32 sar_enable;
- /** number of items in sar_limits[] */
- A_UINT32 num_limit_rows;
- /** once received and is set to 1, FW will calculate the power limits
- * and send set_power command to apply them.
- * Otherwise just update local values stored in FW until a future msg
- * with commit_limits=1 arrives.
- */
- A_UINT32 commit_limits;
- /**
- * TLV (tag length value) parameters follow the sar_limit_cmd_row
- * structure. The TLV's are:
- * wmi_sar_limit_cmd_row sar_limits[];
- */
- } wmi_sar_limits_cmd_fixed_param;
- enum wmi_sar_feature_state_flags {
- WMI_SAR_FEATURE_OFF = 0,
- WMI_SAR_FEATURE_ON_SET_0,
- WMI_SAR_FEATURE_ON_SET_1,
- WMI_SAR_FEATURE_ON_SET_2,
- WMI_SAR_FEATURE_ON_SET_3,
- WMI_SAR_FEATURE_ON_SET_4,
- WMI_SAR_FEATURE_NO_CHANGE,
- WMI_SAR_FEATURE_ON_USER_DEFINED,
- WMI_SAR_FEATURE_ON_SAR_V2_0,
- WMI_SAR_FEATURE_ON_SAR_V3,
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sar_limit_cmd_row */
- /** Current values: WMI_SAR_2G_ID, WMI_SAR_5G_ID. Can be extended by adding
- * new band_id values .
- */
- A_UINT32 band_id;
- A_UINT32 chain_id;
- /** Current values: WMI_SAR_MOD_CCK, WMI_SAR_MOD_OFDM */
- A_UINT32 mod_id;
- /**
- * To be backwards-compatible with older code use a union with
- * limit_value & limit_index as alternate names / interpretations
- * of the same message information element.
- * The older code still uses limit_value, while the new code will
- * use limit_index.
- * The interpretation of the field as value or index depends on
- * WMI_SAR_FEATURE_ON_*
- * WMI_SAR_FEATURE_ON_SAR_V2_0 will use it as index, other case
- * still use it as value.
- */
- union {
- /** actual power limit value, in steps of 0.5 dBm */
- A_UINT32 limit_value;
- A_UINT32 limit_index;
- };
- /** in case the OEM doesn't care about one of the qualifiers from above,
- * the bit for that qualifier within the validity_bitmap can be set to 0
- * so that limit is applied to all possible cases of this qualifier
- * (i.e. if a qualifier's validity_bitmap flag is 0, the qualifier is
- * treated as a wildcard).
- * Current masks:
- * WMI_SAR_BAND_ID_VALID_MASK
- * WMI_SAR_CHAIN_ID_VALID_MASK
- * WMI_SAR_MOD_ID_VALID_MASK
- * Example: if !WMI_IS_SAR_MOD_ID_VALID(bitmap),
- * it means apply same limit_value to both WMI_SAR_MOD_CCK and
- * WMI_SAR_MOD_OFDM cases.
- */
- A_UINT32 validity_bitmap;
- } wmi_sar_limit_cmd_row;
- enum wmi_sar_band_id_flags {
- WMI_SAR_2G_ID = 0,
- WMI_SAR_5G_ID
- };
- enum wmi_sar_mod_id_flags {
- WMI_SAR_MOD_CCK = 0,
- WMI_SAR_MOD_OFDM
- };
- /**
- * This message is sent from FW to WLAN host to inform the host of the
- * updated Specific Absorption Rate (SAR) limits currently in use.
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sar_get_limits_event_param */
- A_UINT32 tlv_header;
- /** when set to WMI_SAR_FEATURE_ON_*, SAR feature is enabled
- * with BDF (SET_0 to 4) or WMI
- * if set to WMI_SAR_FEATURE_OFF, feature is disabled;
- */
- A_UINT32 sar_enable;
- /**
- * number of items in sar_limits[].
- * used when sar_enable == WMI_SAR_FEATURE_ON_USER_DEFINED.
- * Should be zero if any of the BDF sets is activated.
- */
- A_UINT32 num_limit_rows;
- /**
- * TLV (tag length value) parameters follow the sar_get_limit_event_row
- * structure. The TLV's are:
- * wmi_sar_get_limit_event_row sar_limits[num_limit_rows];
- */
- } wmi_sar_get_limits_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sar_get_limit_event_row */
- /** Current values: WMI_SAR_2G_ID, WMI_SAR_5G_ID. Can be extended by adding
- * new band_id values .
- */
- A_UINT32 band_id;
- A_UINT32 chain_id;
- /** Current values: WMI_SAR_MOD_CCK, WMI_SAR_MOD_OFDM */
- A_UINT32 mod_id;
- /** actual power limit value, in steps of 0.5 dBm */
- A_UINT32 limit_value;
- } wmi_sar_get_limit_event_row;
- #define WMI_SAR_BAND_ID_VALID_MASK (0x1)
- #define WMI_SAR_CHAIN_ID_VALID_MASK (0x2)
- #define WMI_SAR_MOD_ID_VALID_MASK (0x4)
- #define WMI_SET_SAR_BAND_ID_VALID(bitmap) ((bitmap) |= WMI_SAR_BAND_ID_VALID_MASK)
- #define WMI_SET_SAR_CHAIN_ID_VALID(bitmap) ((bitmap) |= WMI_SAR_CHAIN_ID_VALID_MASK)
- #define WMI_SET_SAR_MOD_ID_VALID(bitmap) ((bitmap) |= WMI_SAR_MOD_ID_VALID_MASK)
- #define WMI_IS_SAR_BAND_ID_VALID(bitmap) ((bitmap) & WMI_SAR_BAND_ID_VALID_MASK)
- #define WMI_IS_SAR_CHAIN_ID_VALID(bitmap) ((bitmap) & WMI_SAR_CHAIN_ID_VALID_MASK)
- #define WMI_IS_SAR_MOD_ID_VALID(bitmap) ((bitmap) & WMI_SAR_MOD_ID_VALID_MASK)
- /**
- * This command is sent from WLAN host driver to firmware to
- * get current Specific Absorption Rate (SAR) limits status from firmware.
- * The command does not require any parameters as of now.
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sar_get_limits_cmd_param */
- A_UINT32 tlv_header;
- /** currently no parameters are required. Reserved bit field for future use added */
- /* All bits need to be set to 0 while it is a reserved field. */
- A_UINT32 reserved;
- } wmi_sar_get_limits_cmd_fixed_param;
- #define WMI_ROAM_AUTH_STATUS_CONNECTED 0x1 /** connected, but not authenticated */
- #define WMI_ROAM_AUTH_STATUS_AUTHENTICATED 0x2 /** connected and authenticated */
- /** WMI_ROAM_SYNCH_EVENT: roam synch event triggering the host propagation logic
- generated whenever firmware roamed to new AP silently and
- (a) If the host is awake, FW sends the event to the host immediately .
- (b) If host is in sleep then either
- (1) FW waits until host sends WMI_PDEV_RESUME_CMDID or WMI_WOW_HOSTWAKEUP_FROM_SLEEP_CMDID
- command to FW (part of host wake up sequence from low power mode) before sending the event host.
- (2) data/mgmt frame is received from roamed AP, which needs to return to host
- */
- #define GTK_OFFLOAD_KCK_EXTENDED_BYTES 32
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_key_material */
- A_UINT32 tlv_header;
- A_UINT8 kck[GTK_OFFLOAD_KCK_BYTES]; /* EAPOL-Key Key Confirmation Key (KCK) */
- A_UINT8 kek[GTK_OFFLOAD_KEK_BYTES]; /* EAPOL-Key Key Encryption Key (KEK) */
- A_UINT8 replay_counter[GTK_REPLAY_COUNTER_BYTES];
- } wmi_key_material;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_key_material_ext */
- A_UINT32 tlv_header;
- /*
- * key_buffer contains kck,kck2,kek,kek2,replay counter, in order.
- * If both the below kck_len and kek_len fields are 0x0, the split
- * between kck vs. kek should be inferred based on akmp.
- */
- A_UINT8 key_buffer[GTK_OFFLOAD_KEK_EXTENDED_BYTES+GTK_OFFLOAD_KCK_EXTENDED_BYTES+GTK_REPLAY_COUNTER_BYTES];
- /* length of kck in key_buffer */
- A_UINT32 kck_len;
- /* length of kek in key_buffer */
- A_UINT32 kek_len;
- } wmi_key_material_ext;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_synch_event_fixed_param */
- /** Unique id identifying the VDEV on which roaming is done by firmware */
- A_UINT32 vdev_id;
- /** auth_status: connected or authorized */
- A_UINT32 auth_status;
- /** roam_reason:
- * bits 0-3 roam trigger reason LSbs - see WMI_ROAM_TRIGGER_REASON_XXX
- * bits 4-5 subnet status - see WMI_ROAM_SUBNET_CHANGE_STATUS_XXX.
- * bit 6 HW mode status, set 1 to indicate host to schedule
- * HW mode change, see WMI_ROAM_REQUEST_HOST_HW_MODE_CHANGE.
- * bit 7 0x1 to show bits 8-15 are valid
- * bits 8-15 full WMI_ROAM_TRIGGER_REASON_ID/WMI_ROAM_TRIGGER_EXT_REASON_ID
- * since 4 bits are not enough.
- */
- A_UINT32 roam_reason;
- /** associated AP's RSSI calculated by FW when reason code is WMI_ROAM_REASON_LOW_RSSI. not valid if roam_reason is BMISS */
- A_UINT32 rssi;
- /** MAC address of roamed AP */
- wmi_mac_addr bssid; /* BSSID */
- /** whether the frame is beacon or probe rsp */
- A_UINT32 is_beacon;
- /** the length of beacon/probe rsp */
- A_UINT32 bcn_probe_rsp_len;
- /** the length of reassoc rsp */
- A_UINT32 reassoc_rsp_len;
- /** the length of reassoc req */
- A_UINT32 reassoc_req_len;
- /**
- * maximum allowed Tx power (in dBm) for this connection.
- * max_allowed_tx_power = 0 dBm means value is not specified.
- */
- A_INT32 max_allowed_tx_power;
- /** unique id to identify mac's TSF register */
- A_UINT32 mac_tsf_id;
- /** ignore mac_tsf_id unless mac_tsf_id_valid is set */
- A_UINT32 mac_tsf_id_valid;
- /**
- * TLV (tag length value) parameters follows roam_synch_event
- * The TLV's are:
- * A_UINT8 bcn_probe_rsp_frame[bcn_probe_resp_len];
- * A_UINT8 reassoc_rsp_frame[reassoc_rsp_len];
- * wmi_channel chan;
- * wmi_key_material key[];
- * A_UINT32 status[]; subnet changed status not being used currently.
- * Will pass the information using roam_status.
- * A_UINT8 reassoc_req_frame[reassoc_req_len];
- * wmi_pdev_hw_mode_transition_event_fixed_param
- * hw_mode_transition_fixed_param[];
- * wmi_pdev_set_hw_mode_response_vdev_mac_entry
- * wmi_pdev_set_hw_mode_response_vdev_mac_mapping[];
- * wmi_roam_fils_synch_tlv_param roam_fils_synch_info[];
- * wmi_key_material_ext key_ext[];
- * wmi_roam_pmk_cache_synch_tlv_param roam_pmk_cache_synch_info[];
- * wmi_pdev_band_to_mac mac_freq_mapping[];
- */
- } wmi_roam_synch_event_fixed_param;
- /**
- * The WMI_ROAM_SYNCH_FRAME_EVENTID message is used in conjunction with the
- * WMI_ROAM_SYNCH_EVENTID message. The former will be sent 1st followed by
- * the latter for cases where the WMI_ROAM_SYNCH_EVENTID message size would
- * exceed 2K. The more_frag field in the WMI_ROAM_SYNCH_FRAME_EVENTID informs
- * the host whether more WMI_ROAM_SYNCH_FRAME_EVENTID messages would follow;
- * after the WMI_ROAM_SYNCH_FRAME_EVENTID messages the target sends the
- * WMI_ROAM_SYNCH_EVENTID with bcn_probe_rsp_len, reassoc_rsp_len, and
- * reassoc_rsp_len set to 0.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_synch_frame_event_fixed_param */
- /** Unique id identifying the VDEV on which roaming is done by firmware */
- A_UINT32 vdev_id;
- /** More frags to follow? */
- A_UINT32 more_frag;
- /** whether the frame is beacon or probe rsp */
- A_UINT32 is_beacon;
- /** the length of beacon/probe rsp */
- A_UINT32 bcn_probe_rsp_len;
- /** the length of reassoc rsp */
- A_UINT32 reassoc_rsp_len;
- /** the length of reassoc req */
- A_UINT32 reassoc_req_len;
- A_INT32 bcn_probe_resp_rssi; /* RSSI units dBm */
- /**
- * TLV (tag length value) parameters follows roam_synch_event
- * The TLV's are:
- * A_UINT8 bcn_probe_rsp_frame[bcn_probe_rsp_len];
- * A_UINT8 reassoc_rsp_frame[reassoc_rsp_len];
- * A_UINT8 reassoc_req_frame[reassoc_req_len];
- */
- } wmi_roam_synch_frame_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_frame_event_fixed_param */
- /** Unique id identifying the VDEV on which roaming is done by firmware */
- A_UINT32 vdev_id;
- /* Exact frame length without considering 4 byte alignment */
- A_UINT32 frame_length;
- A_INT32 rssi; /* Units in dBm */
- /* The frequency on which to transmit. */
- A_UINT32 primary_channel_freq; /* MHz units */
- /**
- * TLV (tag length value) parameters follows roam_frame_event
- * The TLV's are:
- * A_UINT8 frame[frame_length];
- */
- } wmi_roam_frame_event_fixed_param;
- #define WMI_PEER_ESTIMATED_LINKSPEED_INVALID 0xFFFFFFFF
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_ wmi_peer_get_estimated_linkspeed_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** MAC address of the peer for which the estimated link speed is required. */
- wmi_mac_addr peer_macaddr;
- /* Set to 1 only if vdev_id field is valid */
- A_UINT32 valid_vdev_id;
- /* VDEV to which the peer belongs to */
- A_UINT32 vdev_id;
- } wmi_peer_get_estimated_linkspeed_cmd_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_ wmi_peer_estimated_linkspeed_event_fixed_param */
- A_UINT32 tlv_header;
- /** MAC address of the peer for which the estimated link speed is required.
- */
- wmi_mac_addr peer_macaddr;
- /* Estimated link speed in kbps.
- * When est_linkspeed_kbps is not valid, the value is set to WMI_PEER_ESTIMATED_LINKSPEED_INVALID.
- */
- A_UINT32 est_linkspeed_kbps;
- /* Set to 1 only if vdev_id field is valid */
- A_UINT32 valid_vdev_id;
- /* VDEV to which the peer belongs to */
- A_UINT32 vdev_id;
- } wmi_peer_estimated_linkspeed_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals */
- /* vdev ID */
- A_UINT32 vdev_id;
- A_UINT32 data_len; /** length in byte of data[]. */
- /* This structure is used to send REQ binary blobs
- * from application/service to firmware where Host drv is pass through .
- * Following this structure is the TLV:
- * A_UINT8 data[]; <-- length in byte given by field data_len.
- * A_UINT32 vdev_id_bitmap[];
- * This array is present and non-zero length in MLO case, stats should
- * only be provided from the vdev_id_bitmap in the bitmap when it is
- * present.
- */
- } wmi_req_stats_ext_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_partner_link_stats */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 data_length; /* length of the stats for this vdev */
- A_UINT32 offset; /* offset of the stats from partner_link_data for this vdev */
- } wmi_partner_link_stats;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_stats1_event_fix_param */
- A_UINT32 vdev_id; /** vdev ID */
- A_UINT32 data_len; /** length in byte of data[]. */
- /* This structure is used to send REQ binary blobs
- * from firmware to application/service where Host drv is pass through .
- * Following this structure is the TLV:
- * A_UINT8 data[]; <-- length in byte given by field data_len.
- */
- /* This structure is used to send information of partner links.
- * Following this structure is the TLV:
- * wmi_partner_link_stats partner_link_stats[];
- */
- /* This structure is used to send REQ binary blobs of stats of partner
- * links from firmware to application/service where Host drv is pass
- * through.
- * Following this structure is the TLV partner_link_stats:
- * A_UINT8 partner_link_stats_data[]; <-- length and offset in byte
- * units given by TLV
- * wmi_partner_link_stats.
- */
- } wmi_stats_ext_event_fixed_param;
- typedef enum {
- /** Default: no replay required. */
- WMI_PEER_DELETE_NO_REPLAY = 0,
- /**
- * Replay requested due to UMAC hang during Peer delete.
- * Replay done by Host SW after MLO UMAC SSR recovered the UMAC.
- */
- WMI_PEER_DELETE_REPLAY_FOR_UMAC,
- } WMI_PEER_DELETE_REPLAY_T;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_delete_resp_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** WMI_PEER_DELETE_REPLAY_T */
- A_UINT32 replay_type;
- } wmi_peer_delete_resp_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_delete_all_peer_resp_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* Status of peer delete all command */
- /*
- * Values for Status:
- * 0 - OK; command successful
- * 1 - EINVAL; Requested invalid vdev_id
- * 2 - EFAILED; Delete all peer failed
- */
- A_UINT32 status;
- /** WMI_PEER_DELETE_REPLAY_T */
- A_UINT32 replay_type;
- } wmi_vdev_delete_all_peer_resp_event_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_ wmi_peer_state_event_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id; /* vdev ID */
- /* MAC address of the peer for which the estimated link speed is required.*/
- wmi_mac_addr peer_macaddr;
- A_UINT32 state; /* peer state */
- } wmi_peer_state_event_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_assoc_conf_event_fixed_param */
- A_UINT32 tlv_header;
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* peer MAC address */
- wmi_mac_addr peer_macaddr;
- /* status
- * 0: ok
- * 1: fail - peer not present
- */
- A_UINT32 status;
- } wmi_peer_assoc_conf_event_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_create_conf_event_fixed_param */
- A_UINT32 tlv_header;
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* peer MAC address */
- wmi_mac_addr peer_macaddr;
- /* 0: OK.
- * 1: FAIL - same bss peer exist already. */
- A_UINT32 status;
- } wmi_peer_create_conf_event_fixed_param;
- enum {
- WMI_2G4_HT40_OBSS_SCAN_PASSIVE = 0, /** scan_type: passive */
- WMI_2G4_HT40_OBSS_SCAN_ACTIVE, /** scan_type: active */
- };
- typedef struct {
- /**
- * TLV tag and len;
- * tag equals WMITLV_TAG_STRUC_wmi_obss_scan_enable_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- /**
- * active or passive. if active all the channels are actively scanned.
- * if passive then all the channels are passively scanned
- */
- A_UINT32 scan_type;
- /**
- * FW can perform multiple scans with in a OBSS scan interval.
- * For each scan,
- * if the scan is passive then obss_scan_passive_dwell is minimum dwell to be used for each channel ,
- * if the scan is active then obss_scan_active_dwell is minimum dwell to be used for each channel .
- * The unit for these 2 parameters is TUs.
- */
- A_UINT32 obss_scan_passive_dwell;
- A_UINT32 obss_scan_active_dwell;
- /**
- * OBSS scan interval . FW needs to perform one or more OBSS scans within this interval and fulfill the
- * both min and total per channel dwell time requirement
- */
- A_UINT32 bss_channel_width_trigger_scan_interval;
- /**
- * FW can perform multiple scans with in a OBSS scan interval.
- * For each scan,
- * the total per channel dwell time across all scans with in OBSS scan interval should be
- * atleast obss_scan_passive_total_per channel for passive scas and obss_scan_active_total_per channel
- * for active scans and ,
- * The unit for these 2 parameters is TUs.
- */
- A_UINT32 obss_scan_passive_total_per_channel;
- A_UINT32 obss_scan_active_total_per_channel;
- A_UINT32 bss_width_channel_transition_delay_factor; /** parameter to check exemption from scan */
- A_UINT32 obss_scan_activity_threshold; /** parameter to check exemption from scan */
- /** following two parameters used by FW to fill IEs when sending 20/40 coexistence action frame to AP */
- A_UINT32 forty_mhz_intolerant; /** STA 40M bandwidth intolerant capability */
- A_UINT32 current_operating_class; /** STA current operating class */
- /** length of 2.4GHz channel list to scan at, channel number list in tlv->channels[] */
- A_UINT32 channel_len;
- /** length of optional ie data to append to probe request when active scan, ie data in tlv->ie_field[] */
- A_UINT32 ie_len;
- /**
- * TLV (tag length value) parameters following the fixed param structure
- * A_UINT8 channels[channel_len]; // channel numbers
- * A_UINT8 ie_field[ie_len];
- * A_UINT32 chan_freqs[channel_len] // in MHz
- */
- } wmi_obss_scan_enable_cmd_fixed_param;
- typedef struct {
- /**
- * TLV tag and len;
- * tag equals WMITLV_TAG_STRUC_wmi_obss_scan_disalbe_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- } wmi_obss_scan_disable_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_offload_prb_rsp_tx_status_event_fixed_param */
- A_UINT32 tlv_header;
- /** unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /** prb rsp tx status, values defined in enum WMI_FRAME_TX_STATUS */
- A_UINT32 tx_status;
- } wmi_offload_prb_rsp_tx_status_event_fixed_param;
- typedef enum {
- WMI_FRAME_TX_OK, /* frame tx ok */
- WMI_FRAME_TX_XRETRY, /* excessivley retried */
- WMI_FRAME_TX_DROP, /* frame dropped by FW due to resources */
- WMI_FRAME_TX_FILTERED, /* frame filtered by hardware */
- } WMI_FRAME_TX_STATUS;
- /**
- * This command is sent from WLAN host driver to firmware to
- * request firmware to send the latest channel avoidance range
- * to host.
- *
- * This command is only applicable for APQ platform which has
- * modem on the platform. If firmware doesn't support MWS Coex,
- * this command can be dropped by firmware.
- *
- * Host would send this command to firmware to request a channel
- * avoidance information update.
- */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_chan_avoid_update_cmd_param */
- A_UINT32 tlv_header;
- } wmi_chan_avoid_update_cmd_param;
- /* ExtScan operation mode */
- typedef enum {
- WMI_EXTSCAN_MODE_NONE = 0x0000,
- WMI_EXTSCAN_MODE_START = 0x0001, /* ExtScan/TableMonitoring operation started */
- WMI_EXTSCAN_MODE_STOP = 0x0002, /* ExtScan/TableMonitoring operation stopped */
- WMI_EXTSCAN_MODE_IGNORED = 0x0003, /* ExtScan command ignored due to error */
- } wmi_extscan_operation_mode;
- /* Channel Mask */
- typedef enum {
- WMI_CHANNEL_BAND_UNSPECIFIED = 0x0000,
- WMI_CHANNEL_BAND_24 = 0x0001, /* 2.4 channel */
- WMI_CHANNEL_BAND_5_NON_DFS = 0x0002, /* 5G Channels (No DFS channels) */
- WMI_CHANNEL_BAND_DFS = 0x0004, /* DFS channels */
- } wmi_channel_band_mask;
- typedef enum {
- WMI_EXTSCAN_CYCLE_STARTED_EVENT = 0x0001,
- WMI_EXTSCAN_CYCLE_COMPLETED_EVENT = 0x0002,
- WMI_EXTSCAN_BUCKET_STARTED_EVENT = 0x0004,
- WMI_EXTSCAN_BUCKET_COMPLETED_EVENT = 0x0008,
- WMI_EXTSCAN_BUCKET_FAILED_EVENT = 0x0010,
- WMI_EXTSCAN_BUCKET_OVERRUN_EVENT = 0x0020,
- WMI_EXTSCAN_THRESHOLD_NUM_SCANS = 0x0040,
- WMI_EXTSCAN_THRESHOLD_PERCENT = 0x0080,
- WMI_EXTSCAN_EVENT_MAX = 0x8000
- } wmi_extscan_event_type;
- #define WMI_EXTSCAN_CYCLE_EVENTS_MASK (WMI_EXTSCAN_CYCLE_STARTED_EVENT | \
- WMI_EXTSCAN_CYCLE_COMPLETED_EVENT)
- #define WMI_EXTSCAN_BUCKET_EVENTS_MASK (WMI_EXTSCAN_BUCKET_STARTED_EVENT | \
- WMI_EXTSCAN_BUCKET_COMPLETED_EVENT | \
- WMI_EXTSCAN_BUCKET_FAILED_EVENT | \
- WMI_EXTSCAN_BUCKET_OVERRUN_EVENT)
- typedef enum {
- WMI_EXTSCAN_NO_FORWARDING = 0x0000,
- WMI_EXTSCAN_FORWARD_FRAME_TO_HOST = 0x0001
- } wmi_extscan_forwarding_flags;
- typedef enum {
- WMI_EXTSCAN_USE_MSD = 0x0001, /* Use Motion Sensor Detection */
- WMI_EXTSCAN_EXTENDED_BATCHING_EN = 0x0002, /* Extscan LPASS extended batching feature is supported and enabled */
- } wmi_extscan_configuration_flags;
- typedef enum {
- WMI_EXTSCAN_BUCKET_CACHE_RESULTS = 0x0001, /* Cache the results of bucket whose configuration flags has this bit set */
- WMI_EXTSCAN_REPORT_EVENT_CONTEXT_HUB = 0x0002, /* Report ext scan results to context hub or not. */
- } wmi_extscan_bucket_configuration_flags;
- typedef enum {
- WMI_EXTSCAN_STATUS_OK = 0,
- WMI_EXTSCAN_STATUS_ERROR = 0x80000000,
- WMI_EXTSCAN_STATUS_INVALID_PARAMETERS,
- WMI_EXTSCAN_STATUS_INTERNAL_ERROR
- } wmi_extscan_start_stop_status;
- typedef struct {
- /** Request ID - to identify command. Cannot be 0 */
- A_UINT32 request_id;
- /** Requestor ID - client requesting ExtScan */
- A_UINT32 requestor_id;
- /** VDEV id(interface) that is requesting scan */
- A_UINT32 vdev_id;
- } wmi_extscan_command_id;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_ARRAY_STRUC */
- /** channel in MHz */
- A_UINT32 channel;
- /** dwell time in msec - use defaults if 0 */
- A_UINT32 min_dwell_time;
- A_UINT32 max_dwell_time;
- /** passive/active channel and other flags */
- A_UINT32 control_flags; /* 0 => active, 1 => passive scan; ignored for DFS */
- } wmi_extscan_bucket_channel;
- /* Scan Bucket specification */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_ARRAY_STRUC */
- /** Bucket ID - 0-based */
- A_UINT32 bucket_id;
- /** ExtScan events subscription - events to be reported to client (see wmi_extscan_event_type) */
- A_UINT32 notify_extscan_events;
- /** Options to forward scan results - see wmi_extscan_forwarding_flags */
- A_UINT32 forwarding_flags;
- /** ExtScan configuration flags - wmi_extscan_bucket_configuration_flags */
- A_UINT32 configuration_flags;
- /** DEPRECATED member: multiplier to be applied to the periodic scan's base period */
- A_UINT32 base_period_multiplier;
- /** dwell time in msec on active channels - use defaults if 0 */
- A_UINT32 min_dwell_time_active;
- A_UINT32 max_dwell_time_active;
- /** dwell time in msec on passive channels - use defaults if 0 */
- A_UINT32 min_dwell_time_passive;
- A_UINT32 max_dwell_time_passive;
- /** see wmi_channel_band_mask; when equal to WMI_CHANNEL_UNSPECIFIED, use channel list */
- A_UINT32 channel_band;
- /** number of channels (if channel_band is WMI_CHANNEL_UNSPECIFIED) */
- A_UINT32 num_channels;
- /** scan period upon start or restart of the bucket - periodicity of the bucket to begin with */
- A_UINT32 min_period;
- /** period above which exponent is not applied anymore */
- A_UINT32 max_period;
- /** back off value to be applied to bucket's periodicity after exp_max_step_count scan cycles
- * new_bucket_period = last_bucket_period + last_exponent_period * exp_backoff
- */
- A_UINT32 exp_backoff;
- /** number of scans performed at a given periodicity after which exponential back off value is
- * applied to current periodicity to obtain a newer one
- */
- A_UINT32 exp_max_step_count;
- /** Followed by the variable length TLV chan_list:
- * wmi_extscan_bucket_channel chan_list[] */
- } wmi_extscan_bucket;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_start_cmd_fixed_param */
- /** Request ID - to identify command. Cannot be 0 */
- A_UINT32 request_id;
- /** Requestor ID - client requesting ExtScan */
- A_UINT32 requestor_id;
- /** VDEV id(interface) that is requesting scan */
- A_UINT32 vdev_id;
- /** table ID - to allow support for multiple simultaneous requests */
- A_UINT32 table_id;
- /** Base period (milliseconds) used by scan buckets to define periodicity of the scans */
- A_UINT32 base_period;
- /** Maximum number of iterations to run - one iteration is the scanning of the least frequent bucket */
- A_UINT32 max_iterations;
- /** Options to forward scan results - see wmi_extscan_forwarding_flags */
- A_UINT32 forwarding_flags;
- /** ExtScan configuration flags - wmi_extscan_configuration_flags */
- A_UINT32 configuration_flags;
- /** ExtScan events subscription - bitmask indicating which events should be send to client (see wmi_extscan_event_type) */
- A_UINT32 notify_extscan_events;
- /** Scan Priority, input to scan scheduler */
- A_UINT32 scan_priority;
- /** Maximum number of BSSIDs to cache on each scan cycle */
- A_UINT32 max_bssids_per_scan_cycle;
- /** Minimum RSSI value to report */
- A_UINT32 min_rssi;
- /** Maximum table usage in percentage */
- A_UINT32 max_table_usage;
- /** default dwell time in msec on active channels */
- A_UINT32 min_dwell_time_active;
- A_UINT32 max_dwell_time_active;
- /** default dwell time in msec on passive channels */
- A_UINT32 min_dwell_time_passive;
- A_UINT32 max_dwell_time_passive;
- /** min time in msec on the BSS channel,only valid if atleast one VDEV is active*/
- A_UINT32 min_rest_time;
- /** max rest time in msec on the BSS channel,only valid if at least one VDEV is active*/
- /** the scanner will rest on the bss channel at least min_rest_time. after min_rest_time the scanner
- * will start checking for tx/rx activity on all VDEVs. if there is no activity the scanner will
- * switch to off channel. if there is activity the scanner will let the radio on the bss channel
- * until max_rest_time expires.at max_rest_time scanner will switch to off channel
- * irrespective of activity. activity is determined by the idle_time parameter.
- */
- A_UINT32 max_rest_time;
- /** time before sending next set of probe requests.
- * The scanner keeps repeating probe requests transmission with period specified by repeat_probe_time.
- * The number of probe requests specified depends on the ssid_list and bssid_list
- */
- /** Max number of probes to be sent */
- A_UINT32 n_probes;
- /** time in msec between 2 sets of probe requests. */
- A_UINT32 repeat_probe_time;
- /** time in msec between 2 consecutive probe requests with in a set. */
- A_UINT32 probe_spacing_time;
- /** data inactivity time in msec on bss channel that will be used by scanner for measuring the inactivity */
- A_UINT32 idle_time;
- /** maximum time in msec allowed for scan */
- A_UINT32 max_scan_time;
- /** delay in msec before sending first probe request after switching to a channel */
- A_UINT32 probe_delay;
- /** Scan control flags */
- A_UINT32 scan_ctrl_flags;
- /** Burst duration time in msec*/
- A_UINT32 burst_duration;
- /** number of bssids in the TLV bssid_list[] */
- A_UINT32 num_bssid;
- /** number of ssid in the TLV ssid_list[] */
- A_UINT32 num_ssids;
- /** number of bytes in TLV ie_data[] */
- A_UINT32 ie_len;
- /** number of buckets in the TLV bucket_list[] */
- A_UINT32 num_buckets;
- /** in number of scans, send notifications to host after these many scans */
- A_UINT32 report_threshold_num_scans;
- /** number of channels in channel_list[] determined by the
- sum of wmi_extscan_bucket.num_channels in array */
- /**
- * TLV (tag length value) parameters follow the extscan_cmd
- * structure. The TLV's are:
- * wmi_ssid ssid_list[];
- * wmi_mac_addr bssid_list[];
- * A_UINT8 ie_data[];
- * wmi_extscan_bucket bucket_list[];
- * wmi_extscan_bucket_channel channel_list[];
- */
- } wmi_extscan_start_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_stop_cmd_fixed_param */
- /** Request ID - to match running command. 0 matches any request */
- A_UINT32 request_id;
- /** Requestor ID - client requesting stop */
- A_UINT32 requestor_id;
- /** VDEV id(interface) that is requesting scan */
- A_UINT32 vdev_id;
- /** table ID - to allow support for multiple simultaneous requests */
- A_UINT32 table_id;
- } wmi_extscan_stop_cmd_fixed_param;
- enum wmi_extscan_get_cached_results_flags {
- WMI_EXTSCAN_GET_CACHED_RESULTS_FLAG_NONE = 0x0000,
- WMI_EXTSCAN_GET_CACHED_RESULTS_FLAG_FLUSH_TABLE = 0x0001
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_get_cached_results_cmd_fixed_param */
- /** request ID - used to correlate command with events */
- A_UINT32 request_id;
- /** Requestor ID - client that requested results */
- A_UINT32 requestor_id;
- /** VDEV id(interface) that is requesting scan */
- A_UINT32 vdev_id;
- /** table ID - to allow support for multiple simultaneous requests */
- A_UINT32 table_id;
- /** maximum number of results to be returned */
- A_UINT32 max_results;
- /** flush BSSID list - wmi_extscan_get_cached_results_flags */
- A_UINT32 control_flags; /* enum wmi_extscan_get_cached_results_flags */
- } wmi_extscan_get_cached_results_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_get_wlan_change_results_cmd_fixed_param */
- /** request ID - used to correlate command with events */
- A_UINT32 request_id;
- /** Requestor ID - client that requested results */
- A_UINT32 requestor_id;
- /** VDEV id(interface) that is requesting scan */
- A_UINT32 vdev_id;
- /** table ID - to allow support for multiple simultaneous requests */
- A_UINT32 table_id;
- } wmi_extscan_get_wlan_change_results_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_ARRAY_STRUC */
- /** bssid */
- wmi_mac_addr bssid;
- /** channel in MHz */
- A_UINT32 channel;
- /** upper RSSI limit */
- A_UINT32 upper_rssi_limit;
- /** lower RSSI limit */
- A_UINT32 lower_rssi_limit;
- } wmi_extscan_wlan_change_bssid_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_configure_wlan_change_monitor_cmd_fixed_param */
- /** Request ID - to identify command. Cannot be 0 */
- A_UINT32 request_id;
- /** Requestor ID - client requesting wlan change monitoring */
- A_UINT32 requestor_id;
- /** VDEV id(interface) that is requesting scan */
- A_UINT32 vdev_id;
- /** table ID - to allow support for multiple simultaneous tables */
- A_UINT32 table_id;
- /** operation mode: start/stop */
- A_UINT32 mode; /* wmi_extscan_operation_mode */
- /** number of RSSI samples to store */
- A_UINT32 max_rssi_samples;
- /** number of samples to use to calculate RSSI average */
- A_UINT32 rssi_averaging_samples;
- /** number of scans to confirm loss of contact with RSSI */
- A_UINT32 lost_ap_scan_count;
- /** number of out-of-range BSSIDs necessary to send event */
- A_UINT32 max_out_of_range_count;
- /** total number of bssid signal descriptors (in all pages) */
- A_UINT32 total_entries;
- /** index of the first bssid entry found in the TLV wlan_change_descriptor_list*/
- A_UINT32 first_entry_index;
- /** number of bssid signal descriptors in this page */
- A_UINT32 num_entries_in_page;
- /* Following this structure is the TLV:
- * wmi_extscan_wlan_change_bssid_param wlan_change_descriptor_list[];
- * (number of elements given by field num_page_entries)
- */
- } wmi_extscan_configure_wlan_change_monitor_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_ARRAY_STRUC */
- /** bssid */
- wmi_mac_addr bssid;
- /** RSSI min threshold for reporting */
- A_UINT32 min_rssi;
- /** Deprecated entry - channel in MHz */
- A_UINT32 channel;
- /** RSSI max threshold for reporting */
- A_UINT32 max_rssi;
- } wmi_extscan_hotlist_entry;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_configure_hotlist_monitor_cmd_fixed_param */
- /** Request ID - to identify command. Cannot be 0 */
- A_UINT32 request_id;
- /** Requestor ID - client requesting hotlist monitoring */
- A_UINT32 requestor_id;
- /** VDEV id(interface) that is requesting scan */
- A_UINT32 vdev_id;
- /** table ID - to allow support for multiple simultaneous tables */
- A_UINT32 table_id;
- /** operation mode: start/stop */
- A_UINT32 mode; /* wmi_extscan_operation_mode */
- /** total number of bssids (in all pages) */
- A_UINT32 total_entries;
- /** index of the first bssid entry found in the TLV wmi_extscan_hotlist_entry */
- A_UINT32 first_entry_index;
- /** number of bssids in this page */
- A_UINT32 num_entries_in_page;
- /** number of consecutive scans to confirm loss of contact with AP */
- A_UINT32 lost_ap_scan_count;
- /* Following this structure is the TLV:
- * wmi_extscan_hotlist_entry hotlist[]; <-- number of elements given by field num_page_entries.
- */
- } wmi_extscan_configure_hotlist_monitor_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_ARRAY_STRUC */
- /**ssid */
- wmi_ssid ssid;
- /**band */
- A_UINT32 band;
- /**RSSI threshold for reporting */
- A_UINT32 min_rssi;
- A_UINT32 max_rssi;
- } wmi_extscan_hotlist_ssid_entry;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_configure_hotlist_ssid_monitor_cmd_fixed_param */
- /** Request ID - to identify command. Cannot be 0 */
- A_UINT32 request_id;
- /** Requestor ID - client requesting hotlist ssid monitoring */
- A_UINT32 requestor_id;
- /** VDEV id(interface) that is requesting scan */
- A_UINT32 vdev_id;
- /** table ID - to allow support for multiple simultaneous tables */
- A_UINT32 table_id;
- /** operation mode: start/stop */
- A_UINT32 mode; /* wmi_extscan_operation_mode */
- /**total number of ssids (in all pages) */
- A_UINT32 total_entries;
- /**index of the first ssid entry found in the TLV wmi_extscan_hotlist_ssid_entry*/
- A_UINT32 first_entry_index;
- /**number of ssids in this page */
- A_UINT32 num_entries_in_page;
- /** number of consecutive scans to confirm loss of an ssid **/
- A_UINT32 lost_ap_scan_count;
- /* Following this structure is the TLV:
- * wmi_extscan_hotlist_ssid_entry hotlist_ssid[]; <-- number of elements given by field num_page_entries.
- */
- } wmi_extscan_configure_hotlist_ssid_monitor_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_ARRAY_STRUC */
- /** table ID - to allow support for multiple simultaneous tables */
- A_UINT32 table_id;
- /** size in bytes of scan cache entry */
- A_UINT32 scan_cache_entry_size;
- /** maximum number of scan cache entries */
- A_UINT32 max_scan_cache_entries;
- /** maximum number of buckets per extscan request */
- A_UINT32 max_buckets;
- /** maximum number of BSSIDs that will be stored in each scan (best n/w as per RSSI) */
- A_UINT32 max_bssid_per_scan;
- /** table usage level at which indication must be sent to host */
- A_UINT32 max_table_usage_threshold;
- } wmi_extscan_cache_capabilities;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_ARRAY_STRUC */
- /** table ID - to allow support for multiple simultaneous tables */
- A_UINT32 table_id;
- /** size in bytes of wlan change entry */
- A_UINT32 wlan_change_entry_size;
- /** maximum number of entries in wlan change table */
- A_UINT32 max_wlan_change_entries;
- /** number of RSSI samples used for averaging RSSI */
- A_UINT32 max_rssi_averaging_samples;
- /** number of BSSID/RSSI entries (BSSID pointer, RSSI, timestamp) that device can hold */
- A_UINT32 max_rssi_history_entries;
- } wmi_extscan_wlan_change_monitor_capabilities;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_ARRAY_STRUC */
- /** table ID - to allow support for multiple simultaneous tables */
- A_UINT32 table_id;
- /** size in bytes of hotlist entry */
- A_UINT32 wlan_hotlist_entry_size;
- /** maximum number of entries in wlan change table */
- A_UINT32 max_hotlist_entries;
- } wmi_extscan_hotlist_monitor_capabilities;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_set_capabilities_cmd_fixed_param */
- /** Request ID - matches request ID used to start hot list monitoring */
- A_UINT32 request_id;
- /** Requestor ID - client requesting stop */
- A_UINT32 requestor_id;
- /** number of extscan caches */
- A_UINT32 num_extscan_cache_tables;
- /** number of wlan change lists */
- A_UINT32 num_wlan_change_monitor_tables;
- /** number of hotlists */
- A_UINT32 num_hotlist_monitor_tables;
- /** if one sided rtt data collection is supported */
- A_UINT32 rtt_one_sided_supported;
- /** if 11v data collection is supported */
- A_UINT32 rtt_11v_supported;
- /** if 11mc data collection is supported */
- A_UINT32 rtt_ftm_supported;
- /** number of extscan cache capabilities (one per table) */
- A_UINT32 num_extscan_cache_capabilities;
- /** number of wlan change capabilities (one per table) */
- A_UINT32 num_extscan_wlan_change_capabilities;
- /** number of extscan hotlist capabilities (one per table) */
- A_UINT32 num_extscan_hotlist_capabilities;
- /* Following this structure is the TLV:
- * wmi_extscan_cache_capabilities extscan_cache_capabilities; <-- number of capabilities given by num_extscan_caches
- * wmi_extscan_wlan_change_monitor_capabilities wlan_change_capabilities; <-- number of capabilities given by num_wlan_change_monitor_tables
- * wmi_extscan_hotlist_monitor_capabilities hotlist_capabilities; <-- number of capabilities given by num_hotlist_monitor_tables
- */
- } wmi_extscan_set_capabilities_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_get_capabilities_cmd_fixed_param */
- /** Request ID - matches request ID used to start hot list monitoring */
- A_UINT32 request_id;
- /** Requestor ID - client requesting capabilities */
- A_UINT32 requestor_id;
- } wmi_extscan_get_capabilities_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_start_stop_event_fixed_param */
- /** Request ID of the operation that was started/stopped */
- A_UINT32 request_id;
- /** Requestor ID of the operation that was started/stopped */
- A_UINT32 requestor_id;
- /** VDEV id(interface) of the operation that was started/stopped */
- A_UINT32 vdev_id;
- /** extscan WMI command */
- A_UINT32 command;
- /** operation mode: start/stop */
- A_UINT32 mode; /* wmi_extscan_operation_mode */
- /**success/failure */
- A_UINT32 status; /* enum wmi_extscan_start_stop_status */
- /** table ID - to allow support for multiple simultaneous requests */
- A_UINT32 table_id;
- } wmi_extscan_start_stop_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_operation_event_fixed_param */
- /** Request ID of the extscan operation that is currently running */
- A_UINT32 request_id;
- /** Requestor ID of the extscan operation that is currently running */
- A_UINT32 requestor_id;
- /** VDEV id(interface) of the extscan operation that is currently running */
- A_UINT32 vdev_id;
- /** scan event (wmi_scan_event_type) */
- A_UINT32 event; /* wmi_extscan_event_type */
- /** table ID - to allow support for multiple simultaneous requests */
- A_UINT32 table_id;
- /**number of buckets */
- A_UINT32 num_buckets;
- /* Following this structure is the TLV:
- * A_UINT32 bucket_id[]; <-- number of elements given by field num_buckets.
- */
- } wmi_extscan_operation_event_fixed_param;
- /* Types of extscan tables */
- typedef enum {
- EXTSCAN_TABLE_NONE = 0,
- EXTSCAN_TABLE_BSSID = 1,
- EXTSCAN_TABLE_RSSI = 2,
- } wmi_extscan_table_type;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_table_usage_event_fixed_param */
- /** Request ID of the extscan operation that is currently running */
- A_UINT32 request_id;
- /** Requestor ID of the extscan operation that is currently running */
- A_UINT32 requestor_id;
- /** VDEV id(interface) of the extscan operation that is currently running */
- A_UINT32 vdev_id;
- /** table ID - to allow support for multiple simultaneous tables */
- A_UINT32 table_id;
- /**see wmi_extscan_table_type for table reporting usage */
- A_UINT32 table_type;
- /**number of entries in use */
- A_UINT32 entries_in_use;
- /**maximum number of entries in table */
- A_UINT32 maximum_entries;
- } wmi_extscan_table_usage_event_fixed_param;
- typedef enum {
- WMI_SCAN_STATUS_INTERRUPTED = 1 /* Indicates scan got interrupted i.e. aborted or pre-empted for a long time (> 1sec)
- this can be used to discard scan results */
- } wmi_scan_status_flags;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_ARRAY_STRUC */
- /** RSSI */
- A_UINT32 rssi;
- /** time stamp in milliseconds */
- A_UINT32 tstamp;
- /** Extscan cycle during which this entry was scanned */
- A_UINT32 scan_cycle_id;
- /** flag to indicate if the given result was obtained as part of interrupted (aborted/large time gap preempted) scan */
- A_UINT32 flags;
- /** Bitmask of buckets (i.e. sets of channels) scanned */
- A_UINT32 buckets_scanned;
- } wmi_extscan_rssi_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_ARRAY_STRUC */
- /** bssid */
- wmi_mac_addr bssid;
- /** ssid */
- wmi_ssid ssid;
- /** channel in MHz */
- A_UINT32 channel;
- /** capabilities */
- A_UINT32 capabilities;
- /** beacon interval in TUs */
- A_UINT32 beacon_interval;
- /** time stamp in milliseconds - time last seen */
- A_UINT32 tstamp;
- /** flags - _tExtScanEntryFlags */
- A_UINT32 flags;
- /** RTT in ns */
- A_UINT32 rtt;
- /** RTT standard deviation */
- A_UINT32 rtt_sd;
- /** RSSI information */
- A_UINT32 number_rssi_samples;
- /** IE length */
- A_UINT32 ie_length; /* length of IE data */
- } wmi_extscan_wlan_descriptor;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_cached_results_event_fixed_param */
- /** Request ID of the WMI_EXTSCAN_GET_CACHED_RESULTS_CMDID */
- A_UINT32 request_id;
- /** Requestor ID of the WMI_EXTSCAN_GET_CACHED_RESULTS_CMDID */
- A_UINT32 requestor_id;
- /** VDEV id(interface) of the WMI_EXTSCAN_GET_CACHED_RESULTS_CMDID */
- A_UINT32 vdev_id;
- /** Request ID of the extscan operation that is currently running */
- A_UINT32 extscan_request_id;
- /** Requestor ID of the extscan operation that is currently running */
- A_UINT32 extscan_requestor_id;
- /** VDEV id(interface) of the extscan operation that is currently running */
- A_UINT32 extscan_vdev_id;
- /** table ID - to allow support for multiple simultaneous tables */
- A_UINT32 table_id;
- /**current time stamp in seconds. Used to provide a baseline for the relative timestamps returned for each block and entry */
- A_UINT32 current_tstamp;
- /**total number of bssids (in all pages) */
- A_UINT32 total_entries;
- /**index of the first bssid entry found in the TLV wmi_extscan_wlan_descriptor*/
- A_UINT32 first_entry_index;
- /**number of bssids in this page */
- A_UINT32 num_entries_in_page;
- /** number of buckets scanned**/
- A_UINT32 buckets_scanned;
- /* Followed by the variable length TLVs
- * wmi_extscan_wlan_descriptor bssid_list[]
- * wmi_extscan_rssi_info rssi_list[]
- * A_UINT8 ie_list[]
- */
- } wmi_extscan_cached_results_event_fixed_param;
- typedef enum {
- EXTSCAN_WLAN_CHANGE_FLAG_NONE = 0x00,
- EXTSCAN_WLAN_CHANGE_FLAG_OUT_OF_RANGE = 0x01,
- EXTSCAN_WLAN_CHANGE_FLAG_AP_LOST = 0x02,
- } wmi_extscan_wlan_change_flags;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_ARRAY_STRUC */
- /** bssid */
- wmi_mac_addr bssid;
- /** time stamp in milliseconds */
- A_UINT32 tstamp;
- /** upper RSSI limit */
- A_UINT32 upper_rssi_limit;
- /** lower RSSI limit */
- A_UINT32 lower_rssi_limit;
- /** channel */
- A_UINT32 channel; /* in MHz */
- /** current RSSI average */
- A_UINT32 rssi_average;
- /** flags - wmi_extscan_wlan_change_flags */
- A_UINT32 flags;
- /** length of RSSI history to follow (number of values) */
- A_UINT32 num_rssi_samples;
- } wmi_extscan_wlan_change_result_bssid;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_wlan_change_results_event_fixed_param */
- /** Request ID of the WMI_EXTSCAN_GET_WLAN_CHANGE_RESULTS_CMDID command that requested the results */
- A_UINT32 request_id;
- /** Requestor ID of the WMI_EXTSCAN_GET_WLAN_CHANGE_RESULTS_CMDID command that requested the results */
- A_UINT32 requestor_id;
- /** VDEV id(interface) of the WMI_EXTSCAN_GET_WLAN_CHANGE_RESULTS_CMDID command that requested the results */
- A_UINT32 vdev_id;
- /** Request ID of the WMI_EXTSCAN_CONFIGURE_WLAN_CHANGE_MONITOR_CMDID command that configured the table */
- A_UINT32 config_request_id;
- /** Requestor ID of the WMI_EXTSCAN_CONFIGURE_WLAN_CHANGE_MONITOR_CMDID command that configured the table */
- A_UINT32 config_requestor_id;
- /** VDEV id(interface) of the WMI_EXTSCAN_CONFIGURE_WLAN_CHANGE_MONITOR_CMDID command that configured the table */
- A_UINT32 config_vdev_id;
- /** table ID - to allow support for multiple simultaneous tables */
- A_UINT32 table_id;
- /**number of entries with RSSI out of range or BSSID not detected */
- A_UINT32 change_count;
- /**total number of bssid signal descriptors (in all pages) */
- A_UINT32 total_entries;
- /**index of the first bssid signal descriptor entry found in the TLV wmi_extscan_wlan_descriptor*/
- A_UINT32 first_entry_index;
- /**number of bssids signal descriptors in this page */
- A_UINT32 num_entries_in_page;
- /* Following this structure is the TLV:
- * wmi_extscan_wlan_change_result_bssid bssid_signal_descriptor_list[];
- * (number of descriptors given by field num_entries_in_page)
- * Following this structure is the list of RSSI values (each is an A_UINT8):
- * A_UINT8 rssi_list[]; <-- last N RSSI values.
- */
- } wmi_extscan_wlan_change_results_event_fixed_param;
- enum _tExtScanEntryFlags
- {
- WMI_HOTLIST_FLAG_NONE = 0x00,
- WMI_HOTLIST_FLAG_PRESENCE = 0x01,
- WMI_HOTLIST_FLAG_DUPLICATE_SSID = 0x80,
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_hotlist_match_event_fixed_param */
- /** Request ID of the WMI_EXTSCAN_CONFIGURE_HOTLIST_MONITOR_CMDID that configured the table */
- A_UINT32 config_request_id;
- /** Requestor ID of the WMI_EXTSCAN_CONFIGURE_HOTLIST_MONITOR_CMDID that configured the table */
- A_UINT32 config_requestor_id;
- /** VDEV id(interface) of the WMI_EXTSCAN_CONFIGURE_HOTLIST_MONITOR_CMDID that configured the table */
- A_UINT32 config_vdev_id;
- /** table ID - to allow support for multiple simultaneous tables */
- A_UINT32 table_id;
- /**total number of bssids (in all pages) */
- A_UINT32 total_entries;
- /**index of the first bssid entry found in the TLV wmi_extscan_wlan_descriptor*/
- A_UINT32 first_entry_index;
- /**number of bssids in this page */
- A_UINT32 num_entries_in_page;
- /* Following this structure is the TLV:
- * wmi_extscan_wlan_descriptor hotlist_match[]; <-- number of descriptors given by field num_entries_in_page.
- */
- } wmi_extscan_hotlist_match_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_hotlist_match_event_fixed_param */
- /** Request ID of the WMI_EXTSCAN_CONFIGURE_HOTLIST_SSID_MONITOR_CMDID that configured the table */
- A_UINT32 config_request_id;
- /** Requestor ID of the WMI_EXTSCAN_CONFIGURE_HOTLIST_SSID_MONITOR_CMDID that configured the table */
- A_UINT32 config_requestor_id;
- /** VDEV id(interface) of the WMI_EXTSCAN_CONFIGURE_HOTLIST_SSID_MONITOR_CMDID that configured the table */
- A_UINT32 config_vdev_id;
- /** table ID - to allow support for multiple simultaneous tables */
- A_UINT32 table_id;
- /**total number of ssids (in all pages) */
- A_UINT32 total_entries;
- /**index of the first ssid entry found in the TLV wmi_extscan_wlan_descriptor*/
- A_UINT32 first_entry_index;
- /**number of ssids in this page */
- A_UINT32 num_entries_in_page;
- /* Following this structure is the TLV:
- * wmi_extscan_wlan_descriptor hotlist_match[]; <-- number of descriptors given by field num_entries_in_page.
- */
- } wmi_extscan_hotlist_ssid_match_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_extscan_capabilities_event_fixed_param */
- /** Request ID of the WMI_EXTSCAN_GET_CAPABILITIES_CMDID */
- A_UINT32 request_id;
- /** Requestor ID of the WMI_EXTSCAN_GET_CAPABILITIES_CMDID */
- A_UINT32 requestor_id;
- /** VDEV id(interface) of the WMI_EXTSCAN_GET_CAPABILITIES_CMDID */
- A_UINT32 vdev_id;
- /** number of extscan caches */
- A_UINT32 num_extscan_cache_tables;
- /** number of wlan change lists */
- A_UINT32 num_wlan_change_monitor_tables;
- /** number of hotlists */
- A_UINT32 num_hotlist_monitor_tables;
- /** if one sided rtt data collection is supported */
- A_UINT32 rtt_one_sided_supported;
- /** if 11v data collection is supported */
- A_UINT32 rtt_11v_supported;
- /** if 11mc data collection is supported */
- A_UINT32 rtt_ftm_supported;
- /** number of extscan cache capabilities (one per table) */
- A_UINT32 num_extscan_cache_capabilities;
- /** number of wlan change capabilities (one per table) */
- A_UINT32 num_extscan_wlan_change_capabilities;
- /** number of extscan hotlist capabilities (one per table) */
- A_UINT32 num_extscan_hotlist_capabilities;
- /* max number of roaming ssid whitelist firmware can support */
- A_UINT32 num_roam_ssid_whitelist;
- /* max number of blacklist bssid firmware can support */
- A_UINT32 num_roam_bssid_blacklist;
- /* max number of preferred list firmware can support */
- A_UINT32 num_roam_bssid_preferred_list;
- /* max number of hotlist ssids firmware can support */
- A_UINT32 num_extscan_hotlist_ssid;
- /* max number of epno networks firmware can support */
- A_UINT32 num_epno_networks;
- /* Following this structure are the TLVs describing the capabilities of of the various types of lists. The FW theoretically
- * supports multiple lists of each type.
- *
- * wmi_extscan_cache_capabilities extscan_cache_capabilities[] <-- capabilities of extscan cache (BSSID/RSSI lists)
- * wmi_extscan_wlan_change_monitor_capabilities wlan_change_capabilities[] <-- capabilities of wlan_change_monitor_tables
- * wmi_extscan_hotlist_monitor_capabilities hotlist_capabilities[] <-- capabilities of hotlist_monitor_tables
- */
- } wmi_extscan_capabilities_event_fixed_param;
- /* WMI_D0_WOW_DISABLE_ACK_EVENTID */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_d0_wow_disable_ack_event_fixed_param */
- A_UINT32 reserved0; /* for future need */
- } wmi_d0_wow_disable_ack_event_fixed_param;
- /** WMI_PDEV_RESUME_EVENTID : generated in response to WMI_PDEV_RESUME_CMDID */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_resume_event_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_pdev_resume_event_fixed_param;
- /** value representing all modules */
- #define WMI_DEBUG_LOG_MODULE_ALL 0xffff
- /* param definitions */
- /**
- * Log level for a given module. Value contains both module id and log level.
- * here is the bitmap definition for value.
- * module Id : 16
- * Flags : reserved
- * Level : 8
- * if odule Id is WMI_DEBUG_LOG_MODULE_ALL then log level is applied to all modules (global).
- * WMI_DEBUG_LOG_MIDULE_ALL will overwrites per module level setting.
- */
- #define WMI_DEBUG_LOG_PARAM_LOG_LEVEL 0x1
- #define WMI_DBGLOG_SET_LOG_LEVEL(val,lvl) do { \
- (val) |= (lvl & 0xff); \
- } while (0)
- #define WMI_DBGLOG_GET_LOG_LEVEL(val) ((val) & 0xff)
- #define WMI_DBGLOG_SET_MODULE_ID(val,mid) do { \
- (val) |= ((mid & 0xffff) << 16); \
- } while (0)
- #define WMI_DBGLOG_GET_MODULE_ID(val) (((val) >> 16) & 0xffff)
- /**
- * Enable the debug log for a given vdev. Value is vdev id
- */
- #define WMI_DEBUG_LOG_PARAM_VDEV_ENABLE 0x2
- /**
- * Disable the debug log for a given vdev. Value is vdev id
- * All the log level for a given VDEV is disabled except the ERROR log messages
- */
- #define WMI_DEBUG_LOG_PARAM_VDEV_DISABLE 0x3
- /**
- * set vdev enable bitmap. value is the vden enable bitmap
- */
- #define WMI_DEBUG_LOG_PARAM_VDEV_ENABLE_BITMAP 0x4
- /**
- * set a given log level to all the modules specified in the module bitmap.
- * and set the log level for all other modules to DBGLOG_ERR.
- * value: log levelt to be set.
- * module_id_bitmap : identifies the modules for which the log level should be set and
- * modules for which the log level should be reset to DBGLOG_ERR.
- */
- #define WMI_DEBUG_LOG_PARAM_MOD_ENABLE_BITMAP 0x5
- /**
- * Wow mode specific logging enablement
- * Wow mode module_id_bitmap : identifies the modules for which the log level
- * should be set in WOW and modules for which the log level
- * should be reset to DBGLOG_MAX_LVL.
- */
- #define WMI_DEBUG_LOG_PARAM_WOW_MOD_ENABLE_BITMAP 0x6
- #define NUM_MODULES_PER_ENTRY ((sizeof(A_UINT32)) << 3)
- #define WMI_MODULE_ENABLE(pmid_bitmap,mod_id) \
- ((pmid_bitmap)[(mod_id)/NUM_MODULES_PER_ENTRY] |= \
- (1 << ((mod_id)%NUM_MODULES_PER_ENTRY)))
- #define WMI_MODULE_DISABLE(pmid_bitmap,mod_id) \
- ((pmid_bitmap)[(mod_id)/NUM_MODULES_PER_ENTRY] &= \
- (~(1 << ((mod_id)%NUM_MODULES_PER_ENTRY))))
- #define WMI_MODULE_IS_ENABLED(pmid_bitmap,mod_id) \
- (((pmid_bitmap)[(mod_id)/NUM_MODULES_PER_ENTRY] & \
- (1 << ((mod_id)%NUM_MODULES_PER_ENTRY))) != 0)
- #define MAX_MODULE_ID_BITMAP_WORDS 16 /* 16*32=512 module ids. should be more than sufficient */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_debug_log_config_cmd_fixed_param */
- A_UINT32 dbg_log_param; /** param types are defined above */
- A_UINT32 value;
- /* The below array will follow this tlv ->fixed length module_id_bitmap[]
- A_UINT32 module_id_bitmap[MAX_MODULE_ID_BITMAP_WORDS];
- */
- } wmi_debug_log_config_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_temperature_cmd_fixed_param */
- A_UINT32 param; /* Reserved for future use */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_pdev_get_temperature_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_temperature_event_fixed_param */
- A_INT32 value; /* temperature value in Celcius degree */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_pdev_temperature_event_fixed_param;
- typedef enum {
- ANTDIV_HW_CFG_STATUS,
- ANTDIV_SW_CFG_STATUS,
- ANTDIV_MAX_STATUS_TYPE_NUM
- } ANTDIV_STATUS_TYPE;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_antdiv_status_cmd_fixed_param */
- A_UINT32 status_event_id; /* Status event ID - see ANTDIV_STATUS_TYPE */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_pdev_get_antdiv_status_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_antdiv_status_event_fixed_param */
- A_UINT32 support; /* ANT DIV feature enabled or not */
- A_UINT32 chain_num; /* how many chain supported */
- A_UINT32 ant_num; /* how many ANT supported, 32 max */
- /*
- * Each entry is for a tx/rx chain, and contains a bitmap identifying
- * the antennas attached to that tx/rx chain.
- */
- A_UINT32 selectable_ant_mask[8];
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_pdev_antdiv_status_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_set_dhcp_server_offload_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 enable;
- A_UINT32 srv_ipv4; /* server IP */
- A_UINT32 start_lsb; /* starting address assigned to client */
- A_UINT32 num_client; /* number of clients we support */
- } wmi_set_dhcp_server_offload_cmd_fixed_param;
- typedef enum {
- AP_RX_DATA_OFFLOAD = 0x00,
- STA_RX_DATA_OFFLOAD = 0x01,
- } wmi_ipa_offload_types;
- /**
- * This command is sent from WLAN host driver to firmware for
- * enabling/disabling IPA data-path offload features.
- *
- *
- * Enabling data path offload to IPA(based on host INI configuration), example:
- * when STA interface comes up,
- * host->target: WMI_IPA_OFFLOAD_ENABLE_DISABLE_CMD,
- * (enable = 1, vdev_id = STA vdev id, offload_type = STA_RX_DATA_OFFLOAD)
- *
- * Disabling data path offload to IPA, example:
- * host->target: WMI_IPA_OFFLOAD_ENABLE_DISABLE_CMD,
- * (enable = 0, vdev_id = STA vdev id, offload_type = STA_RX_DATA_OFFLOAD)
- *
- *
- * This command is applicable only on the PCIE LL systems
- *
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ipa_offload_enable_disable_cmd_fixed_param */
- A_UINT32 offload_type; /* wmi_ipa_offload_types enum values */
- A_UINT32 vdev_id;
- A_UINT32 enable; /* 1 == enable, 0 == disable */
- } wmi_ipa_offload_enable_disable_cmd_fixed_param;
- typedef enum {
- WMI_LED_FLASHING_PATTERN_NOT_CONNECTED = 0,
- WMI_LED_FLASHING_PATTERN_CONNECTED = 1,
- WMI_LED_FLASHING_PATTERN_RESERVED = 2,
- } wmi_set_led_flashing_type;
- /**
- The state of the LED GPIO control is determined by two 32 bit values(X_0 and X_1) to produce a 64 bit value.
- Each 32 bit value consists of 4 bytes, where each byte defines the number of 50ms intervals that the GPIO will
- remain at a predetermined state. The 64 bit value provides 8 unique GPIO timing intervals. The pattern starts
- with the MSB of X_0 and continues to the LSB of X_1. After executing the timer interval of the LSB of X_1, the
- pattern returns to the MSB of X_0 and repeats. The GPIO state for each timing interval alternates from Low to
- High and the first interval of the pattern represents the time when the GPIO is Low. When a timing interval of
- Zero is reached, it is skipped and moves on to the next interval.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_set_led_flashing_cmd_fixed_param */
- A_UINT32 pattern_id; /* pattern identifier */
- A_UINT32 led_x0; /* led flashing parameter0 */
- A_UINT32 led_x1; /* led flashing parameter1 */
- A_UINT32 gpio_num; /* GPIO number */
- } wmi_set_led_flashing_cmd_fixed_param;
- /**
- * The purpose of the multicast Domain Name System (mDNS) is to resolve host names to IP addresses
- * within small networks that do not include a local name server.
- * It utilizes essentially the same programming interfaces, packet formats and operating semantics
- * as the unicast DNS, and the advantage is zero configuration service while no need for central or
- * global server.
- * Based on mDNS, the DNS-SD (Service Discovery) allows clients to discover a named list of services
- * by type in a specified domain using standard DNS queries.
- * Here, we provide the ability to advertise the available services by responding to mDNS queries.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mdns_offload_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 enable;
- } wmi_mdns_offload_cmd_fixed_param;
- #define WMI_MAX_MDNS_FQDN_LEN 64
- #define WMI_MAX_MDNS_RESP_LEN 512
- #define WMI_MDNS_FQDN_TYPE_GENERAL 0
- #define WMI_MDNS_FQDN_TYPE_UNIQUE 1
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mdns_set_fqdn_cmd_fixed_param */
- A_UINT32 vdev_id;
- /** type of fqdn, general or unique */
- A_UINT32 type;
- /** length of fqdn */
- A_UINT32 fqdn_len;
- /* Following this structure is the TLV byte stream of fqdn data of length fqdn_len
- * A_UINT8 fqdn_data[]; <-- fully-qualified domain name to check if match with the received queries
- */
- } wmi_mdns_set_fqdn_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mdns_set_resp_cmd_fixed_param */
- A_UINT32 vdev_id;
- /** Answer Resource Record count */
- A_UINT32 AR_count;
- /** length of response */
- A_UINT32 resp_len;
- /* Following this structure is the TLV byte stream of resp data of length resp_len
- * A_UINT8 resp_data[]; <-- responses consisits of Resource Records
- */
- } wmi_mdns_set_resp_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mdns_set_staIP_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 staIP; /* IPv4 address for STA mode */
- } wmi_mdns_set_staIP_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mdns_get_stats_cmd_fixed_param */
- A_UINT32 vdev_id;
- } wmi_mdns_get_stats_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mdns_stats_event_fixed_param */
- A_UINT32 vdev_id;
- /** curTimestamp in milliseconds */
- A_UINT32 curTimestamp;
- /** last received Query in milliseconds */
- A_UINT32 lastQueryTimestamp;
- /** last sent Response in milliseconds */
- A_UINT32 lastResponseTimestamp;
- /** stats of received queries */
- A_UINT32 totalQueries;
- /** stats of macth queries */
- A_UINT32 totalMatches;
- /** stats of responses */
- A_UINT32 totalResponses;
- /** indicate the current status of mDNS offload */
- A_UINT32 status;
- } wmi_mdns_stats_event_fixed_param;
- /**
- * The purpose of the SoftAP authenticator offload is to offload the association and 4-way handshake process
- * down to the firmware. When this feature is enabled, firmware can process the association/disassociation
- * request and create/remove connection even host is suspended.
- * 3 major components are offloaded:
- * 1. ap-mlme. Firmware will process auth/deauth, association/disassociation request and send out response.
- * 2. 4-way handshake. Firmware will send out m1/m3 and receive m2/m4.
- * 3. key installation. Firmware will generate PMK from the psk info which is sent from the host and install PMK/GTK.
- * Current implementation only supports WPA2 CCMP.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sap_ofl_enable_cmd_fixed_param */
- /** VDEV id(interface) of the WMI_SAP_OFL_ENABLE_CMDID */
- A_UINT32 vdev_id;
- /** enable/disable sap auth offload */
- A_UINT32 enable;
- /** sap ssid */
- wmi_ssid ap_ssid;
- /** authentication mode (defined above) */
- A_UINT32 rsn_authmode;
- /** unicast cipher set */
- A_UINT32 rsn_ucastcipherset;
- /** mcast/group cipher set */
- A_UINT32 rsn_mcastcipherset;
- /** mcast/group management frames cipher set */
- A_UINT32 rsn_mcastmgmtcipherset;
- /** sap channel */
- A_UINT32 channel;
- /** length of psk */
- A_UINT32 psk_len;
- /* Following this structure is the TLV byte stream of wpa passphrase data of length psk_len
- * A_UINT8 psk[];
- */
- } wmi_sap_ofl_enable_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sap_ofl_add_sta_event_fixed_param */
- /** VDEV id(interface) of the WMI_SAP_OFL_ADD_STA_EVENTID */
- A_UINT32 vdev_id;
- /** aid (association id) of this station */
- A_UINT32 assoc_id;
- /** peer station's mac addr */
- wmi_mac_addr peer_macaddr;
- /** length of association request frame */
- A_UINT32 data_len;
- /* Following this structure is the TLV byte stream of a whole association request frame of length data_len
- * A_UINT8 bufp[];
- */
- } wmi_sap_ofl_add_sta_event_fixed_param;
- typedef enum {
- SAP_OFL_DEL_STA_FLAG_NONE = 0x00,
- SAP_OFL_DEL_STA_FLAG_RECONNECT = 0x01,
- } wmi_sap_ofl_del_sta_flags;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sap_ofl_del_sta_event_fixed_param */
- /** VDEV id(interface) of the WMI_SAP_OFL_DEL_STA_EVENTID */
- A_UINT32 vdev_id;
- /** aid (association id) of this station */
- A_UINT32 assoc_id;
- /** peer station's mac addr */
- wmi_mac_addr peer_macaddr;
- /** disassociation reason */
- A_UINT32 reason;
- /** flags - wmi_sap_ofl_del_sta_flags */
- A_UINT32 flags;
- } wmi_sap_ofl_del_sta_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sap_set_blacklist_param_cmd_fixed_param */
- A_UINT32 vdev_id;
- /* Number of client failure connection attempt */
- A_UINT32 num_retry;
- /* Time in milliseconds to record the client's failure connection attempts */
- A_UINT32 retry_allow_time_ms;
- /* Time in milliseconds to drop the connection request if client is blacklisted */
- A_UINT32 blackout_time_ms;
- } wmi_sap_set_blacklist_param_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_apfind_cmd_param */
- A_UINT32 data_len; /** length in byte of data[]. */
- /** This structure is used to send REQ binary blobs
- * from application/service to firmware where Host drv is pass through .
- * Following this structure is the TLV:
- * A_UINT8 data[]; <-- length in byte given by field data_len.
- */
- } wmi_apfind_cmd_param;
- typedef enum apfind_event_type_e {
- APFIND_MATCH_EVENT = 0,
- APFIND_WAKEUP_EVENT,
- } APFIND_EVENT_TYPE;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_apfind_event_hdr */
- A_UINT32 event_type; /** APFIND_EVENT_TYPE */
- A_UINT32 data_len; /** length in byte of data[]. */
- /** This structure is used to send event binary blobs
- * from firmware to application/service and Host drv.
- * Following this structure is the TLV:
- * A_UINT8 data[]; <-- length in byte given by field data_len.
- */
- } wmi_apfind_event_hdr;
- /* SAP obss detection offload types */
- typedef enum {
- WMI_SAP_OBSS_DETECTION_MODE_DISABLED = 0, /* fw to disable the detection */
- WMI_SAP_OBSS_DETECTION_MODE_PRESENT_NOTIFY = 1, /* if the matching beacon is present, notify host immediately */
- WMI_SAP_OBSS_DETECTION_MODE_ABSENT_TIMEOUT_NOTIFY = 2,/* if the matching beacon is absent for the timeout period, notify host */
- } WMI_SAP_OBSS_DETECTION_MODE;
- typedef struct wmi_sap_obss_detection_cfg_cmd_s {
- A_UINT32 tlv_header; /* tag = WMITLV_TAG_STRUC_wmi_sap_obss_detection_cfg_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 detect_period_ms;
- /* detect whether there is 11b ap/ibss */
- A_UINT32 b_ap_detect_mode; /* refer WMI_SAP_OBSS_DETECTION_MODE */
- /* detect whether there is 11b sta connected with other APs */
- A_UINT32 b_sta_detect_mode;
- /* detect whether there is 11g AP */
- A_UINT32 g_ap_detect_mode;
- /* detect whether there is legacy 11a traffic */
- A_UINT32 a_detect_mode;
- /* detect whether there is ap which is ht legacy mode */
- A_UINT32 ht_legacy_detect_mode;
- /* detect whether there is ap which is ht mixed mode : has 11b/11g sta */
- A_UINT32 ht_mixed_detect_mode;
- /* detect whether there is ap which has 20M only station */
- A_UINT32 ht_20mhz_detect_mode;
- } wmi_sap_obss_detection_cfg_cmd_fixed_param;
- typedef enum {
- WMI_SAP_OBSS_DETECTION_EVENT_REASON_NOT_SUPPORT = 0,
- WMI_SAP_OBSS_DETECTION_EVENT_REASON_PRESENT_NOTIFY,
- WMI_SAP_OBSS_DETECTION_EVENT_REASON_ABSENT_TIMEOUT,
- } WMI_SAP_OBSS_DETECTION_EVENT_REASON;
- /* WMI_SAP_OBSS_DETECTION_MATCH_MASK is one or more of the following shift bits */
- #define WMI_SAP_OBSS_DETECTION_MATCH_BIT_11B_AP_S 0
- #define WMI_SAP_OBSS_DETECTION_MATCH_BIT_11B_STA_S 1
- #define WMI_SAP_OBSS_DETECTION_MATCH_BIT_11G_AP_S 2
- #define WMI_SAP_OBSS_DETECTION_MATCH_BIT_11A_S 3
- #define WMI_SAP_OBSS_DETECTION_MATCH_BIT_HT_LEGACY_S 4
- #define WMI_SAP_OBSS_DETECTION_MATCH_BIT_HT_MIXED_S 5
- #define WMI_SAP_OBSS_DETECTION_MATCH_BIT_HT_20MHZ_S 6
- typedef struct wmi_sap_obss_detection_info_evt_s {
- A_UINT32 tlv_header; /* tag = WMITLV_TAG_STRUC_wmi_sap_obss_detection_info_evt_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 reason; /* refer WMI_SAP_OBSS_DETECTION_EVENT_REASON */
- A_UINT32 matched_detection_masks; /* bit(s) from WMI_SAP_OBSS_DETECTION_MATCH_MASK */
- wmi_mac_addr matched_bssid_addr; /* valid when reason is WMI_SAP_OBSS_DETECTION_EVENT_REASON_PRESENT_NOTIFY */
- } wmi_sap_obss_detection_info_evt_fixed_param;
- /** WMI command to enable STA FW handle bss color change notification from AP */
- typedef struct {
- A_UINT32 tlv_header; /* tag equals WMITLV_TAG_STRUC_wmi_bss_color_change_enable_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 enable;
- } wmi_bss_color_change_enable_fixed_param;
- typedef enum {
- WMI_BSS_COLOR_COLLISION_DISABLE = 0,
- WMI_BSS_COLOR_COLLISION_DETECTION,
- WMI_BSS_COLOR_FREE_SLOT_TIMER_EXPIRY,
- WMI_BSS_COLOR_FREE_SLOT_AVAILABLE,
- } WMI_BSS_COLOR_COLLISION_EVT_TYPE;
- /** Command to enable OBSS Color collision detection for both STA and AP mode */
- typedef struct {
- A_UINT32 tlv_header; /* tag equals WMITLV_TAG_STRUC_wmi_obss_color_collision_det_config_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 flags; /* proposed for future use cases */
- A_UINT32 evt_type; /* WMI_BSS_COLOR_COLLISION_EVT_TYPE */
- A_UINT32 current_bss_color;
- A_UINT32 detection_period_ms; /* scan interval for both AP and STA mode */
- A_UINT32 scan_period_ms; /* scan period for passive scan to detect collision */
- A_UINT32 free_slot_expiry_time_ms; /* FW to notify host at timer expiry after which Host disables bss color */
- } wmi_obss_color_collision_det_config_fixed_param;
- /** WMI event to notify host on OBSS Color collision detection, free slot available for AP mode */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_obss_color_collision_evt_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 evt_type; /* WMI_BSS_COLOR_COLLISION_EVT_TYPE */
- A_UINT32 bss_color_bitmap_bit0to31; /* Bit set indicating BSS color present */
- A_UINT32 bss_color_bitmap_bit32to63; /* Bit set indicating BSS color present */
- } wmi_obss_color_collision_evt_fixed_param;
- /*
- * WMI event to notify host if latency_flags/latency_level got changed
- * or if latency got enabled/disabled.
- * When latency disable is received in the beacon vendor IE and wlm
- * parameters are restored, latency_enable will be zero.
- * latency level and latency flags will be those of wlm params.
- * Lay out of latency flags is as follows. The field is same as flags
- * in wmi_wlm_config_cmd_fixed_param.
- *
- * |31 19| 18 | 17|16 14| 13 | 12| 11 | 10 | 9 | 8 |7 6|5 4|3 2| 1 | 0 |
- * +-----+-----+---+-----+----+---+----+----+-----+----+----+----+----+---+---+
- * | RSVD|SRATE|RTS| NSS |EDCA|TRY|SSLP|CSLP|DBMPS|RSVD|Roam|RSVD|DWLT|DFS|SUP|
- * +------------------------------+---------------+---------+-----------------+
- * | WAL | PS | Roam | Scan |
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_bcn_latency_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 latency_enable;
- A_UINT32 latency_level;
- A_UINT32 latency_flags;
- } wmi_vdev_bcn_latency_fixed_param;
- /**
- * OCB DCC types and structures.
- */
- /**
- * DCC types as described in ETSI TS 102 687
- * Type Format stepSize referenceValue numBits
- * -------------------------------------------------------------------------
- * ndlType_acPrio INTEGER (0...7) 1 number 3
- * ndlType_controlLoop INTEGER (0...7) 1 0 3
- * ndlType_arrivalRate INTEGER (0..8191) 0.01 /s 0 13
- * ndlType_channelLoad INTEGER (0..1000) 0.1 % 0 % 10
- * ndlType_channelUse INTEGER (0..8000) 0.0125 % 0 % 13
- * ndlType_datarate INTEGER (0..7) Table 8 3
- * ndlType_distance INTEGER (0..4095) 1 m 0 12
- * ndlType_numberElements INTEGER (0..63) number 6
- * ndlType_packetDuration INTEGER (0..2047) TSYM 0 11
- * ndlType_packetInterval INTEGER (0..1023) 10 ms 0 10
- * ndlType_pathloss INTEGER (0..31) 0.1 1.0 5
- * ndlType_rxPower INTEGER (0..127) -0.5 dB -40 dBm 7
- * ndlType_snr INTEGER (0..127) 0.5 dB -10 dB 7
- * ndlType_timing INTEGER (0..4095) 10 ms 0 12
- * ndlType_txPower INTEGER (0..127) 0.5 dB -20 dBm 7
- * ndlType_ratio INTEGER (0..100) 1 % 0 % 7
- * ndlType_exponent INTEGER (0..100) 0.1 0 7
- * ndlType_queueStatus Enumeration Table A.2 1
- * ndlType_dccMechanism Bitset Table A.2 6
- *
- * NOTE: All of following size macros (SIZE_NDLTYPE_ACPRIO through SIZE_BYTE)
- * cannot be changed without breaking WMI compatibility.
- *
- * NOTE: For each of the types, one additional bit is allocated. This
- * leftmost bit is used to indicate that the value is invalid. */
- #define SIZE_NDLTYPE_ACPRIO (1 + 3)
- #define SIZE_NDLTYPE_CONTROLLOOP (1 + 3)
- #define SIZE_NDLTYPE_ARRIVALRATE (1 + 13)
- #define SIZE_NDLTYPE_CHANNELLOAD (1 + 10)
- #define SIZE_NDLTYPE_CHANNELUSE (1 + 13)
- #define SIZE_NDLTYPE_DATARATE (1 + 3)
- #define SIZE_NDLTYPE_DISTANCE (1 + 12)
- #define SIZE_NDLTYPE_NUMBERELEMENTS (1 + 6)
- #define SIZE_NDLTYPE_PACKETDURATION (1 + 11)
- #define SIZE_NDLTYPE_PACKETINTERVAL (1 + 10)
- #define SIZE_NDLTYPE_PATHLOSS (1 + 5)
- #define SIZE_NDLTYPE_RXPOWER (1 + 7)
- #define SIZE_NDLTYPE_SNR (1 + 7)
- #define SIZE_NDLTYPE_TIMING (1 + 12)
- #define SIZE_NDLTYPE_TXPOWER (1 + 7)
- #define SIZE_NDLTYPE_RATIO (1 + 7)
- #define SIZE_NDLTYPE_EXPONENT (1 + 7)
- #define SIZE_NDLTYPE_QUEUESTATUS (1 + 1)
- #define SIZE_NDLTYPE_DCCMECHANISM (1 + 6)
- #define SIZE_BYTE (8)
- #define INVALID_ACPRIO ((1 << SIZE_NDLTYPE_ACPRIO) - 1)
- #define INVALID_CONTROLLOOP ((1 << SIZE_NDLTYPE_CONTROLLOOP) - 1)
- #define INVALID_ARRIVALRATE ((1 << SIZE_NDLTYPE_ARRIVALRATE) - 1)
- #define INVALID_CHANNELLOAD ((1 << SIZE_NDLTYPE_CHANNELLOAD) - 1)
- #define INVALID_CHANNELUSE ((1 << SIZE_NDLTYPE_CHANNELUSE) - 1)
- #define INVALID_DATARATE ((1 << SIZE_NDLTYPE_DATARATE) - 1)
- #define INVALID_DISTANCE ((1 << SIZE_NDLTYPE_DISTANCE) - 1)
- #define INVALID_NUMBERELEMENTS ((1 << SIZE_NDLTYPE_NUMBERELEMENTS) - 1)
- #define INVALID_PACKETDURATION ((1 << SIZE_NDLTYPE_PACKETDURATION) - 1)
- #define INVALID_PACKETINTERVAL ((1 << SIZE_NDLTYPE_PACKETINTERVAL) - 1)
- #define INVALID_PATHLOSS ((1 << SIZE_NDLTYPE_PATHLOSS) - 1)
- #define INVALID_RXPOWER ((1 << SIZE_NDLTYPE_RXPOWER) - 1)
- #define INVALID_SNR ((1 << SIZE_NDLTYPE_SNR) - 1)
- #define INVALID_TIMING ((1 << SIZE_NDLTYPE_TIMING) - 1)
- #define INVALID_TXPOWER ((1 << SIZE_NDLTYPE_TXPOWER) - 1)
- #define INVALID_RATIO ((1 << SIZE_NDLTYPE_RATIO) - 1)
- #define INVALID_EXPONENT ((1 << SIZE_NDLTYPE_EXPONENT) - 1)
- #define INVALID_QUEUESTATS ((1 << SIZE_NDLTYPE_QUEUESTATUS) - 1)
- #define INVALID_DCCMECHANISM ((1 << SIZE_NDLTYPE_DCCMECHANISM) - 1)
- /** The MCS_COUNT macro cannot be modified without breaking
- * WMI compatibility. */
- #define MCS_COUNT (8)
- /** Flags for ndlType_dccMechanism. */
- typedef enum {
- DCC_MECHANISM_TPC = 1,
- DCC_MECHANISM_TRC = 2,
- DCC_MECHANISM_TDC = 4,
- DCC_MECHANISM_DSC = 8,
- DCC_MECHANISM_TAC = 16,
- DCC_MECHANISM_RESERVED = 32,
- DCC_MECHANISM_ALL = 0x3f,
- } wmi_dcc_ndl_type_dcc_mechanism;
- /** Values for ndlType_queueStatus. */
- typedef enum {
- DCC_QUEUE_CLOSED = 0,
- DCC_QUEUE_OPEN = 1,
- } wmi_dcc_ndl_type_queue_status;
- /** For ndlType_acPrio, use the values in wmi_traffic_ac. */
- /** Values for ndlType_datarate */
- typedef enum {
- DCC_DATARATE_3_MBPS = 0,
- DCC_DATARATE_4_5_MBPS = 1,
- DCC_DATARATE_6_MBPS = 2,
- DCC_DATARATE_9_MBPS = 3,
- DCC_DATARATE_12_MBPS = 4,
- DCC_DATARATE_18_MBPS = 5,
- DCC_DATARATE_24_MBPS = 6,
- DCC_DATARATE_27_MBPS = 7,
- } wmi_dcc_ndl_type_datarate;
- /** Data structure for active state configuration. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_dcc_ndl_active_state_config */
- A_UINT32 tlv_header;
- /**
- * NDL_asStateId, ndlType_numberElements, 1+6 bits.
- * NDL_asChanLoad, ndlType_channelLoad, 1+10 bits.
- */
- A_UINT32 state_info;
- /**
- * NDL_asDcc(AC_BK), ndlType_dccMechanism, 1+6 bits.
- * NDL_asDcc(AC_BE), ndlType_dccMechanism, 1+6 bits.
- * NDL_asDcc(AC_VI), ndlType_dccMechanism, 1+6 bits.
- * NDL_asDcc(AC_VO), ndlType_dccMechanism, 1+6 bits.
- */
- A_UINT32 as_dcc[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC, SIZE_NDLTYPE_DCCMECHANISM)];
- /**
- * NDL_asTxPower(AC_BK), ndlType_txPower, 1+7 bits.
- * NDL_asTxPower(AC_BE), ndlType_txPower, 1+7 bits.
- * NDL_asTxPower(AC_VI), ndlType_txPower, 1+7 bits.
- * NDL_asTxPower(AC_VO), ndlType_txPower, 1+7 bits.
- */
- A_UINT32 as_tx_power_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC, SIZE_NDLTYPE_TXPOWER)];
- /**
- * NDL_asPacketInterval(AC_BK), ndlType_packetInterval, 1+10 bits.
- * NDL_asPacketInterval(AC_BE), ndlType_packetInterval, 1+10 bits.
- * NDL_asPacketInterval(AC_VI), ndlType_packetInterval, 1+10 bits.
- * NDL_asPacketInterval(AC_VO), ndlType_packetInterval, 1+10 bits.
- */
- A_UINT32 as_packet_interval_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC, SIZE_NDLTYPE_PACKETINTERVAL)];
- /**
- * NDL_asDatarate(AC_BK), ndlType_datarate, 1+3 bits.
- * NDL_asDatarate(AC_BE), ndlType_datarate, 1+3 bits.
- * NDL_asDatarate(AC_VI), ndlType_datarate, 1+3 bits.
- * NDL_asDatarate(AC_VO), ndlType_datarate, 1+3 bits.
- */
- A_UINT32 as_datarate_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC, SIZE_NDLTYPE_DATARATE)];
- /**
- * NDL_asCarrierSense(AC_BK), ndlType_rxPower, 1+7 bits.
- * NDL_asCarrierSense(AC_BE), ndlType_rxPower, 1+7 bits.
- * NDL_asCarrierSense(AC_VI), ndlType_rxPower, 1+7 bits.
- * NDL_asCarrierSense(AC_VO), ndlType_rxPower, 1+7 bits.
- */
- A_UINT32 as_carrier_sense_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC, SIZE_NDLTYPE_RXPOWER)];
- } wmi_dcc_ndl_active_state_config;
- #define WMI_NDL_AS_STATE_ID_GET(ptr) WMI_GET_BITS((ptr)->state_info, 0, 7)
- #define WMI_NDL_AS_STATE_ID_SET(ptr,val) WMI_SET_BITS((ptr)->state_info, 0, 7, val)
- #define WMI_NDL_AS_CHAN_LOAD_GET(ptr) WMI_GET_BITS((ptr)->state_info, 7, 11)
- #define WMI_NDL_AS_CHAN_LOAD_SET(ptr,val) WMI_SET_BITS((ptr)->state_info, 7, 11, val)
- #define WMI_NDL_AS_DCC_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->as_dcc, acprio, SIZE_NDLTYPE_DCCMECHANISM)
- #define WMI_NDL_AS_DCC_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->as_dcc, acprio, SIZE_NDLTYPE_DCCMECHANISM, val)
- #define WMI_NDL_AS_TX_POWER_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->as_tx_power_ac, acprio, SIZE_NDLTYPE_TXPOWER)
- #define WMI_NDL_AS_TX_POWER_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->as_tx_power_ac, acprio, SIZE_NDLTYPE_TXPOWER, val)
- #define WMI_NDL_AS_PACKET_INTERVAL_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->as_packet_interval_ac, acprio, SIZE_NDLTYPE_PACKETINTERVAL)
- #define WMI_NDL_AS_PACKET_INTERVAL_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->as_packet_interval_ac, acprio, SIZE_NDLTYPE_PACKETINTERVAL, val)
- #define WMI_NDL_AS_DATARATE_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->as_datarate_ac, acprio, SIZE_NDLTYPE_DATARATE)
- #define WMI_NDL_AS_DATARATE_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->as_datarate_ac, acprio, SIZE_NDLTYPE_DATARATE, val)
- #define WMI_NDL_AS_CARRIER_SENSE_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->as_carrier_sense_ac, acprio, SIZE_NDLTYPE_RXPOWER)
- #define WMI_NDL_AS_CARRIER_SENSE_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->as_carrier_sense_ac, acprio, SIZE_NDLTYPE_RXPOWER, val)
- /** Data structure for EDCA/QOS parameters. */
- typedef struct
- {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_qos_parameter */
- A_UINT32 tlv_header;
- /** Arbitration Inter-Frame Spacing. Range: 2-15 */
- A_UINT32 aifsn;
- /** Contention Window minimum. Range: 1 - 10 */
- A_UINT32 cwmin;
- /** Contention Window maximum. Range: 1 - 10 */
- A_UINT32 cwmax;
- } wmi_qos_parameter;
- /** Data structure for information specific to a channel. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ocb_channel */
- A_UINT32 tlv_header;
- A_UINT32 bandwidth; /* MHz units */
- wmi_mac_addr mac_address;
- } wmi_ocb_channel;
- /** Data structure for an element of the schedule array. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ocb_schedule_element */
- A_UINT32 tlv_header;
- A_UINT32 channel_freq; /* MHz units */
- A_UINT32 total_duration; /* ms units */
- A_UINT32 guard_interval; /* ms units */
- } wmi_ocb_schedule_element;
- /** Data structure for OCB configuration. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ocb_set_config_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** VDEV id(interface) that is being configured */
- A_UINT32 vdev_id;
- A_UINT32 channel_count;
- A_UINT32 schedule_size;
- A_UINT32 flags;
- A_UINT32 ta_max_duration; /* Max duration of continuing multichannel operation without receiving a TA frame (units = seconds) */
- /** This is followed by a TLV array of wmi_channel. */
- /** This is followed by a TLV array of wmi_ocb_channel. */
- /** This is followed by a TLV array of wmi_qos_parameter. */
- /** This is followed by a TLV array of wmi_dcc_ndl_chan. */
- /** This is followed by a TLV array of wmi_dcc_ndl_active_state_config. */
- /** This is followed by a TLV array of wmi_ocb_schedule_element. */
- } wmi_ocb_set_config_cmd_fixed_param;
- /** WMI Generic hash to be used by any 6 byte or 8 byte hash
- * Used for 6 byte USD Service ID
- */
- typedef struct _wmi_generic_hash {
- /** upper 4 bytes of hash */
- A_UINT32 generic_hash31to0;
- /** lower 4 bytes of hash */
- A_UINT32 generic_hash47to32;
- } wmi_generic_hash;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_usd_add_delete_update_service_cmd_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- /* picks service type from WMI_USD_MODE */
- A_UINT32 usd_mode;
- /* element_container_attribute struct:
- * A_UINT8 element_container_attr_data[element_container_attr_len] */
- A_UINT32 element_container_attr_data_len;
- /* 6 bytes of service id hash */
- wmi_generic_hash service_id;
- /* Instance ID of the service */
- A_UINT32 instance_id;
- /* Default frequency in MHz */
- A_UINT32 default_freq;
- /* length of the Service Specific Info */
- A_UINT32 service_specific_info_len;
- /* Time to live in seconds */
- A_UINT32 time_to_live;
- /* picks protocol type from WMI_USD_SERVICE_PROTOCOL_TYPE */
- A_UINT32 protocol_type;
- wmi_mac_addr device_mac_addr;
- } wmi_usd_service_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- /* picks values from WMI_USD_MODE_STATUS */
- A_UINT32 usd_mode_status;
- /* Instance ID of the service */
- A_UINT32 instance_id;
- } wmi_usd_service_event_fixed_param;
- typedef enum {
- WMI_USD_MODE_FLUSH,
- WMI_USD_MODE_PUBLISH,
- WMI_USD_MODE_SUBSCRIBE,
- WMI_USD_MODE_UPDATE_PUBLISH,
- WMI_USD_MODE_CANCEL_PUBLISH,
- WMI_USD_MODE_CANCEL_SUBSCRIBE,
- } WMI_USD_MODE;
- typedef enum {
- WMI_USD_MODE_FLUSH_SUCCESS,
- WMI_USD_MODE_FLUSH_FAIL,
- WMI_USD_MODE_PUBLISH_SUCCESS,
- WMI_USD_MODE_PUBLISH_FAIL,
- WMI_USD_MODE_SUBSCRIBE_SUCCESS,
- WMI_USD_MODE_SUBSCRIBE_FAIL,
- WMI_USD_MODE_UPDATE_PUBLISH_SUCCESS,
- WMI_USD_MODE_UPDATE_PUBLISH_FAIL,
- WMI_USD_MODE_CANCEL_PUBLISH_SUCCESS,
- WMI_USD_MODE_CANCEL_PUBLISH_FAIL,
- WMI_USD_MODE_CANCEL_SUBSCRIBE_SUCCESS,
- WMI_USD_MODE_CANCEL_SUBSCRIBE_FAIL,
- } WMI_USD_MODE_STATUS;
- typedef enum {
- WMI_USD_SERVICE_PROTOCOL_TYPE_BONJOUR = 1,
- WMI_USD_SERVICE_PROTOCOL_TYPE_GENERIC = 2,
- WMI_USD_SERVICE_PROTOCOL_TYPE_CSA_MATTER = 3,
- } WMI_USD_SERVICE_PROTOCOL_TYPE;
- #define EXPIRY_TIME_IN_TSF_TIMESTAMP_OFFSET 0
- #define EXPIRY_TIME_IN_TSF_TIMESTAMP_MASK 1
- #define WMI_OCB_EXPIRY_TIME_IN_TSF(ptr) (((ptr)->flags & EXPIRY_TIME_IN_TSF_TIMESTAMP_MASK) >> EXPIRY_TIME_IN_TSF_TIMESTAMP_OFFSET)
- /** Data structure for the response to the WMI_OCB_SET_CONFIG_CMDID command. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ocb_set_config_resp_event_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- A_UINT32 status;
- } wmi_ocb_set_config_resp_event_fixed_param;
- /* SIZE_UTC_TIME and SIZE_UTC_TIME_ERROR cannot be modified without breaking
- WMI compatibility. */
- #define SIZE_UTC_TIME (10) /* The size of the utc time in bytes. */
- #define SIZE_UTC_TIME_ERROR (5) /* The size of the utc time error in bytes. */
- /** Data structure to set the UTC time. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ocb_set_utc_time_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /** 10 bytes of the utc time. */
- A_UINT32 utc_time[WMI_PACKED_ARR_SIZE(SIZE_UTC_TIME,SIZE_BYTE)];
- /** 5 bytes of the time error. */
- A_UINT32 time_error[WMI_PACKED_ARR_SIZE(SIZE_UTC_TIME_ERROR,SIZE_BYTE)];
- } wmi_ocb_set_utc_time_cmd_fixed_param;
- #define WMI_UTC_TIME_GET(ptr,byte_index) wmi_packed_arr_get_bits((ptr)->utc_time, byte_index, SIZE_BYTE)
- #define WMI_UTC_TIME_SET(ptr,byte_index,val) wmi_packed_arr_set_bits((ptr)->utc_time, byte_index, SIZE_BYTE, val)
- #define WMI_TIME_ERROR_GET(ptr,byte_index) wmi_packed_arr_get_bits((ptr)->time_error, byte_index, SIZE_BYTE)
- #define WMI_TIME_ERROR_SET(ptr,byte_index,val) wmi_packed_arr_set_bits((ptr)->time_error, byte_index, SIZE_BYTE, val)
- /** Data structure start the timing advertisement. The template for the
- * timing advertisement frame follows this structure in the WMI command.
- */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ocb_start_timing_advert_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /** Number of times the TA is sent every 5 seconds. */
- A_UINT32 repeat_rate;
- /** The frequency on which to transmit. */
- A_UINT32 channel_freq; /* MHz units */
- /** The offset into the template of the timestamp. */
- A_UINT32 timestamp_offset;
- /** The offset into the template of the time value. */
- A_UINT32 time_value_offset;
- /** The length of the timing advertisement template. The
- * template is in the TLV data. */
- A_UINT32 timing_advert_template_length;
- /** This is followed by a binary array containing the TA template. */
- } wmi_ocb_start_timing_advert_cmd_fixed_param;
- /** Data structure to stop the timing advertisement. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ocb_stop_timing_advert_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- A_UINT32 channel_freq; /* MHz units */
- } wmi_ocb_stop_timing_advert_cmd_fixed_param;
- /** Data structure for the request for WMI_OCB_GET_TSF_TIMER_CMDID. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ocb_get_tsf_timer_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- A_UINT32 reserved;
- } wmi_ocb_get_tsf_timer_cmd_fixed_param;
- /** Data structure for the response to WMI_OCB_GET_TSF_TIMER_CMDID. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ocb_get_tsf_timer_resp_event_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- A_UINT32 tsf_timer_high;
- A_UINT32 tsf_timer_low;
- } wmi_ocb_get_tsf_timer_resp_event_fixed_param;
- /** Data structure for DCC stats configuration per channel. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_dcc_ndl_stats_per_channel */
- A_UINT32 tlv_header;
- /** The channel for which this applies, 16 bits. */
- /** The dcc_stats_bitmap, 8 bits. */
- A_UINT32 chan_info;
- /** Demodulation model parameters. */
- /**
- * NDL_snrBackoff(MCS0), ndlType_snr, 1+7 bits.
- * NDL_snrBackoff(MCS1), ndlType_snr, 1+7 bits.
- * NDL_snrBackoff(MCS2), ndlType_snr, 1+7 bits.
- * NDL_snrBackoff(MCS3), ndlType_snr, 1+7 bits.
- * NDL_snrBackoff(MCS4), ndlType_snr, 1+7 bits.
- * NDL_snrBackoff(MCS5), ndlType_snr, 1+7 bits.
- * NDL_snrBackoff(MCS6), ndlType_snr, 1+7 bits.
- * NDL_snrBackoff(MCS7), ndlType_snr, 1+7 bits.
- */
- A_UINT32 snr_backoff_mcs[WMI_PACKED_ARR_SIZE(MCS_COUNT,SIZE_NDLTYPE_SNR)];
- /** Communication ranges. */
- /**
- * tx_power, ndlType_txPower, 1+7 bits.
- * datarate, ndlType_datarate, 1+3 bits.
- */
- A_UINT32 tx_power_datarate;
- /**
- * NDL_carrierSenseRange, ndlType_distance, 1+12 bits.
- * NDL_estCommRange, ndlType_distance, 1+12 bits.
- */
- A_UINT32 carrier_sense_est_comm_range;
- /** Channel load measures. */
- /**
- * dccSensitivity, ndlType_rxPower, 1+7 bits.
- * carrierSense, ndlType_rxPower, 1+7 bits.
- * NDL_channelLoad, ndlType_channelLoad, 1+10 bits.
- */
- A_UINT32 dcc_stats;
- /**
- * NDL_packetArrivalRate, ndlType_arrivalRate, 1+13 bits.
- * NDL_packetAvgDuration, ndlType_packetDuration, 1+11 bits.
- */
- A_UINT32 packet_stats;
- /**
- * NDL_channelBusyTime, ndlType_channelLoad, 1+10 bits.
- */
- A_UINT32 channel_busy_time;
- /** Transmit packet statistics. */
- /**
- * NDL_txPacketArrivalRate(AC_BK), ndlType_arrivalRate, 1+13 bits.
- * NDL_txPacketArrivalRate(AC_BE), ndlType_arrivalRate, 1+13 bits.
- * NDL_txPacketArrivalRate(AC_VI), ndlType_arrivalRate, 1+13 bits.
- * NDL_txPacketArrivalRate(AC_VO), ndlType_arrivalRate, 1+13 bits.
- */
- A_UINT32 tx_packet_arrival_rate_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC,SIZE_NDLTYPE_ARRIVALRATE)];
- /**
- * NDL_txPacketAvgDuration(AC_BK), ndlType_packetDuration, 1+11 bits.
- * NDL_txPacketAvgDuration(AC_BE), ndlType_packetDuration, 1+11 bits.
- * NDL_txPacketAvgDuration(AC_VI), ndlType_packetDuration, 1+11 bits.
- * NDL_txPacketAvgDuration(AC_VO), ndlType_packetDuration, 1+11 bits.
- */
- A_UINT32 tx_packet_avg_duration_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC,SIZE_NDLTYPE_PACKETDURATION)];
- /**
- * NDL_txChannelUse(AC_BK), ndlType_channelUse, 1+13 bits.
- * NDL_txChannelUse(AC_BE), ndlType_channelUse, 1+13 bits.
- * NDL_txChannelUse(AC_VI), ndlType_channelUse, 1+13 bits.
- * NDL_txChannelUse(AC_VO), ndlType_channelUse, 1+13 bits.
- */
- A_UINT32 tx_channel_use_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC,SIZE_NDLTYPE_CHANNELUSE)];
- /**
- * NDL_txSignalAvgPower(AC_BK), ndlType_txPower, 1+7 bits.
- * NDL_txSignalAvgPower(AC_BE), ndlType_txPower, 1+7 bits.
- * NDL_txSignalAvgPower(AC_VI), ndlType_txPower, 1+7 bits.
- * NDL_txSignalAvgPower(AC_VO), ndlType_txPower, 1+7 bits.
- */
- A_UINT32 tx_signal_avg_power_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC,SIZE_NDLTYPE_TXPOWER)];
- } wmi_dcc_ndl_stats_per_channel;
- #define WMI_NDL_STATS_SNR_BACKOFF_GET(ptr,mcs) wmi_packed_arr_get_bits((ptr)->snr_backoff_mcs, mcs, SIZE_NDLTYPE_SNR)
- #define WMI_NDL_STATS_SNR_BACKOFF_SET(ptr,mcs,val) wmi_packed_arr_set_bits((ptr)->snr_backoff_mcs, mcs, SIZE_NDLTYPE_SNR, val)
- #define WMI_NDL_STATS_CHAN_FREQ_GET(ptr) WMI_GET_BITS((ptr)->chan_info, 0, 16)
- #define WMI_NDL_STATS_CHAN_FREQ_SET(ptr,val) WMI_SET_BITS((ptr)->chan_info, 0, 16, val)
- #define WMI_NDL_STATS_DCC_STATS_BITMAP_GET(ptr) WMI_GET_BITS((ptr)->chan_info, 16, 8)
- #define WMI_NDL_STATS_DCC_STATS_BITMAP_SET(ptr,val) WMI_SET_BITS((ptr)->chan_info, 16, 8, val)
- #define WMI_NDL_STATS_SNR_BACKOFF_GET(ptr,mcs) wmi_packed_arr_get_bits((ptr)->snr_backoff_mcs, mcs, SIZE_NDLTYPE_SNR)
- #define WMI_NDL_STATS_SNR_BACKOFF_SET(ptr,mcs,val) wmi_packed_arr_set_bits((ptr)->snr_backoff_mcs, mcs, SIZE_NDLTYPE_SNR, val)
- #define WMI_TX_POWER_GET(ptr) WMI_GET_BITS((ptr)->tx_power_datarate, 0, 8)
- #define WMI_TX_POWER_SET(ptr,val) WMI_SET_BITS((ptr)->tx_power_datarate, 0, 8, val)
- #define WMI_TX_DATARATE_GET(ptr) WMI_GET_BITS((ptr)->tx_power_datarate, 0, 4)
- #define WMI_TX_DATARATE_SET(ptr,val) WMI_SET_BITS((ptr)->tx_power_datarate, 0, 4, val)
- #define WMI_NDL_CARRIER_SENSE_RANGE_GET(ptr) WMI_GET_BITS((ptr)->carrier_sense_est_comm_range, 0, 13)
- #define WMI_NDL_CARRIER_SENSE_RANGE_SET(ptr,val) WMI_SET_BITS((ptr)->carrier_sense_est_comm_range, 0, 13, val)
- #define WMI_NDL_EST_COMM_RANGE_GET(ptr) WMI_GET_BITS((ptr)->carrier_sense_est_comm_range, 13, 13)
- #define WMI_NDL_EST_COMM_RANGE_SET(ptr,val) WMI_SET_BITS((ptr)->carrier_sense_est_comm_range, 13, 13, val)
- #define WMI_DCC_SENSITIVITY_GET(ptr) WMI_GET_BITS((ptr)->dcc_stats, 0, 8)
- #define WMI_DCC_SENSITIVITY_SET(ptr,val) WMI_SET_BITS((ptr)->dcc_stats, 0, 8, val)
- #define WMI_CARRIER_SENSE_GET(ptr) WMI_GET_BITS((ptr)->dcc_stats, 8, 8)
- #define WMI_CARRIER_SENSE_SET(ptr,val) WMI_SET_BITS((ptr)->dcc_stats, 8, 8, val)
- #define WMI_NDL_CHANNEL_LOAD_GET(ptr) WMI_GET_BITS((ptr)->dcc_stats, 16, 11)
- #define WMI_NDL_CHANNEL_LOAD_SET(ptr,val) WMI_SET_BITS((ptr)->dcc_stats, 16, 11, val)
- #define WMI_NDL_PACKET_ARRIVAL_RATE_GET(ptr) WMI_GET_BITS((ptr)->packet_stats, 0, 14)
- #define WMI_NDL_PACKET_ARRIVAL_RATE_SET(ptr,val) WMI_SET_BITS((ptr)->packet_stats, 0, 14, val)
- #define WMI_NDL_PACKET_AVG_DURATION_GET(ptr) WMI_GET_BITS((ptr)->packet_stats, 14, 12)
- #define WMI_NDL_PACKET_AVG_DURATION_SET(ptr,val) WMI_SET_BITS((ptr)->packet_stats, 14, 12, val)
- #define WMI_NDL_CHANNEL_BUSY_TIME_GET(ptr) WMI_GET_BITS((ptr)->channel_busy_time, 0, 11)
- #define WMI_NDL_CHANNEL_BUSY_TIME_SET(ptr,val) WMI_SET_BITS((ptr)->channel_busy_time, 0, 11, val)
- #define WMI_NDL_TX_PACKET_ARRIVAL_RATE_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->tx_packet_arrival_rate_ac, acprio, SIZE_NDLTYPE_ARRIVALRATE)
- #define WMI_NDL_TX_PACKET_ARRIVAL_RATE_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->tx_packet_arrival_rate_ac, acprio, SIZE_NDLTYPE_ARRIVALRATE, val)
- #define WMI_NDL_TX_PACKET_AVG_DURATION_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->tx_packet_avg_duration_ac, acprio, SIZE_NDLTYPE_PACKETDURATION)
- #define WMI_NDL_TX_PACKET_AVG_DURATION_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->tx_packet_avg_duration_ac, acprio, SIZE_NDLTYPE_PACKETDURATION, val)
- #define WMI_NDL_TX_CHANNEL_USE_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->tx_channel_use_ac, acprio, SIZE_NDLTYPE_CHANNELUSE)
- #define WMI_NDL_TX_CHANNEL_USE_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->tx_channel_use_ac, acprio, SIZE_NDLTYPE_CHANNELUSE, val)
- #define WMI_NDL_TX_SIGNAL_AVG_POWER_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->tx_signal_avg_power_ac, acprio, SIZE_NDLTYPE_TXPOWER)
- #define WMI_NDL_TX_SIGNAL_AVG_POWER_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->tx_signal_avg_power_ac, acprio, SIZE_NDLTYPE_TXPOWER, val)
- /** Bitmap for DCC stats. */
- typedef enum {
- DCC_STATS_DEMODULATION_MODEL = 1,
- DCC_STATS_COMMUNICATION_RANGES = 2,
- DCC_STATS_CHANNEL_LOAD_MEASURES = 4,
- DCC_STATS_TRANSMIT_PACKET_STATS = 8,
- DCC_STATS_TRANSMIT_MODEL_PARAMETER = 16,
- DCC_STATS_ALL = 0xff,
- } wmi_dcc_stats_bitmap;
- /** Data structure for getting the DCC stats. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_dcc_get_stats_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /** The number of channels for which stats are being requested. */
- A_UINT32 num_channels;
- /** This is followed by a TLV array of wmi_dcc_channel_stats_request. */
- } wmi_dcc_get_stats_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_dcc_channel_stats_request */
- A_UINT32 tlv_header;
- /** The channel for which this applies. */
- A_UINT32 chan_freq; /* MHz units */
- /** The DCC stats being requested. */
- A_UINT32 dcc_stats_bitmap;
- } wmi_dcc_channel_stats_request;
- /** Data structure for the response with the DCC stats. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_dcc_get_stats_resp_event_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /** Number of channels in the response. */
- A_UINT32 num_channels;
- /** This is followed by a TLV array of wmi_dcc_ndl_stats_per_channel. */
- } wmi_dcc_get_stats_resp_event_fixed_param;
- /** Data structure for clearing the DCC stats. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_dcc_clear_stats_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- A_UINT32 dcc_stats_bitmap;
- } wmi_dcc_clear_stats_cmd_fixed_param;
- /** Data structure for the pushed DCC stats */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_dcc_stats_event_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /** The number of channels in the response. */
- A_UINT32 num_channels;
- /** This is followed by a TLV array of wmi_dcc_ndl_stats_per_channel. */
- } wmi_dcc_stats_event_fixed_param;
- /** Data structure for updating NDL per channel. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_dcc_ndl_chan */
- A_UINT32 tlv_header;
- /**
- * Channel frequency, 16 bits
- * NDL_numActiveState, ndlType_numberElements, 1+6 bits
- */
- A_UINT32 chan_info;
- /**
- * NDL_minDccSampling, 10 bits.
- * Maximum time interval between subsequent checks of the DCC rules.
- */
- A_UINT32 ndl_min_dcc_sampling;
- /**
- * dcc_enable, 1 bit.
- * dcc_stats_enable, 1 bit.
- * dcc_stats_interval, 16 bits.
- */
- A_UINT32 dcc_flags;
- /** General DCC configuration. */
- /**
- * NDL_timeUp, ndlType_timing, 1+12 bits.
- * NDL_timeDown, ndlType_timing, 1+12 bits.
- */
- A_UINT32 general_config;
- /** Transmit power thresholds. */
- /**
- * NDL_minTxPower, ndlType_txPower, 1+7 bits.
- * NDL_maxTxPower, ndlType_txPower, 1+7 bits.
- */
- A_UINT32 min_max_tx_power; /* see "ETSI TS 102 687" table above for units */
- /**
- * NDL_defTxPower(AC_BK), ndlType_txPower, 1+7 bits.
- * NDL_defTxPower(AC_BE), ndlType_txPower, 1+7 bits.
- * NDL_defTxPower(AC_VI), ndlType_txPower, 1+7 bits.
- * NDL_defTxPower(AC_VO), ndlType_txPower, 1+7 bits.
- */
- /* see "ETSI TS 102 687" table above for units */
- A_UINT32 def_tx_power_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC,SIZE_NDLTYPE_TXPOWER)];
- /** Packet timing thresholds. */
- /**
- * NDL_maxPacketDuration(AC_BK), ndlType_packetDuration, 1+11 bits.
- * NDL_maxPacketDuration(AC_BE), ndlType_packetDuration, 1+11 bits.
- * NDL_maxPacketDuration(AC_VI), ndlType_packetDuration, 1+11 bits.
- * NDL_maxPacketDuration(AC_VO), ndlType_packetDuration, 1+11 bits.
- */
- A_UINT32 max_packet_duration_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC,SIZE_NDLTYPE_PACKETDURATION)];
- /**
- * NDL_minPacketInterval, ndlType_packetInterval, 1+10 bits.
- * NDL_maxPacketInterval, ndlType_packetInterval, 1+10 bits.
- */
- A_UINT32 min_max_packet_interval;
- /**
- * NDL_defPacketInterval(AC_BK), ndlType_packetInterval, 1+10 bits.
- * NDL_defPacketInterval(AC_BE), ndlType_packetInterval, 1+10 bits.
- * NDL_defPacketInterval(AC_VI), ndlType_packetInterval, 1+10 bits.
- * NDL_defPacketInterval(AC_VO), ndlType_packetInterval, 1+10 bits.
- */
- A_UINT32 def_packet_interval_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC,SIZE_NDLTYPE_PACKETINTERVAL)];
- /** Packet datarate thresholds. */
- /**
- * NDL_minDatarate, ndlType_datarate, 1+3 bits.
- * NDL_maxDatarate, ndlType_datarate, 1+3 bits.
- */
- A_UINT32 min_max_datarate;
- /**
- * NDL_defDatarate(AC_BK), ndlType_datarate, 1+3 bits.
- * NDL_defDatarate(AC_BE), ndlType_datarate, 1+3 bits.
- * NDL_defDatarate(AC_VI), ndlType_datarate, 1+3 bits.
- * NDL_defDatarate(AC_VO), ndlType_datarate, 1+3 bits.
- */
- A_UINT32 def_datarate_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC,SIZE_NDLTYPE_DATARATE)];
- /** Receive signal thresholds. */
- /**
- * NDL_minCarrierSense, ndlType_rxPower, 1+7 bits.
- * NDL_maxCarrierSense, ndlType_rxPower, 1+7 bits.
- * NDL_defCarrierSense, ndlType_rxPower, 1+7 bits.
- */
- A_UINT32 min_max_def_carrier_sense;
- /** Receive model parameter. */
- /**
- * NDL_defDccSensitivity, ndlType_rxPower, 1+7 bits.
- * NDL_maxCsRange, ndlType_distance, 1+12 bits.
- * NDL_refPathLoss, ndlType_pathloss, 1+5 bits.
- */
- A_UINT32 receive_model_parameter;
- /**
- * NDL_minSNR, ndlType_snr, 1+7 bits.
- */
- A_UINT32 receive_model_parameter_2;
- /** Demodulation model parameters. */
- /**
- * NDL_snrBackoff(MCS0), ndlType_snr, 1+7 bits.
- * NDL_snrBackoff(MCS1), ndlType_snr, 1+7 bits.
- * NDL_snrBackoff(MCS2), ndlType_snr, 1+7 bits.
- * NDL_snrBackoff(MCS3), ndlType_snr, 1+7 bits.
- * NDL_snrBackoff(MCS4), ndlType_snr, 1+7 bits.
- * NDL_snrBackoff(MCS5), ndlType_snr, 1+7 bits.
- * NDL_snrBackoff(MCS6), ndlType_snr, 1+7 bits.
- * NDL_snrBackoff(MCS7), ndlType_snr, 1+7 bits.
- */
- A_UINT32 snr_backoff_mcs[WMI_PACKED_ARR_SIZE(MCS_COUNT,SIZE_NDLTYPE_SNR)];
- /** Transmit model parameters. */
- /**
- * NDL_tmPacketArrivalRate(AC_BK), ndlType_arrivalRate, 1+13 bits.
- * NDL_tmPacketArrivalRate(AC_BE), ndlType_arrivalRate, 1+13 bits.
- * NDL_tmPacketArrivalRate(AC_VI), ndlType_arrivalRate, 1+13 bits.
- * NDL_tmPacketArrivalRate(AC_VO), ndlType_arrivalRate, 1+13 bits.
- */
- A_UINT32 tm_packet_arrival_rate_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC, SIZE_NDLTYPE_ARRIVALRATE)];
- /**
- * NDL_tmPacketAvgDuration(AC_BK), ndlType_packetDuration, 1+11 bits.
- * NDL_tmPacketAvgDuration(AC_BE), ndlType_packetDuration, 1+11 bits.
- * NDL_tmPacketAvgDuration(AC_VI), ndlType_packetDuration, 1+11 bits.
- * NDL_tmPacketAvgDuration(AC_VO), ndlType_packetDuration, 1+11 bits.
- */
- A_UINT32 tm_packet_avg_duration_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC, SIZE_NDLTYPE_PACKETDURATION)];
- /**
- * NDL_tmSignalAvgPower(AC_BK), ndlType_txPower, 1+7 bits.
- * NDL_tmSignalAvgPower(AC_BE), ndlType_txPower, 1+7 bits.
- * NDL_tmSignalAvgPower(AC_VI), ndlType_txPower, 1+7 bits.
- * NDL_tmSignalAvgPower(AC_VO), ndlType_txPower, 1+7 bits.
- */
- A_UINT32 tm_signal_avg_power_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC, SIZE_NDLTYPE_TXPOWER)];
- /**
- * NDL_tmMaxChannelUse, ndlType_channelUse, 1+13 bits.
- */
- A_UINT32 tm_max_channel_use;
- /**
- * NDL_tmChannelUse(AC_BK), ndlType_channelUse, 1+13 bits.
- * NDL_tmChannelUse(AC_BE), ndlType_channelUse, 1+13 bits.
- * NDL_tmChannelUse(AC_VI), ndlType_channelUse, 1+13 bits.
- * NDL_tmChannelUse(AC_VO), ndlType_channelUse, 1+13 bits.
- */
- A_UINT32 tm_channel_use_ac[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC, SIZE_NDLTYPE_CHANNELUSE)];
- /** Channel load thresholds. */
- /**
- * NDL_minChannelLoad, ndlType_channelLoad, 1+10 bits.
- * NDL_maxChannelLoad, ndlType_channelLoad, 1+10 bits.
- */
- A_UINT32 min_max_channel_load;
- /** Transmit queue parameters. */
- /**
- * NDL_numQueue, ndlType_acPrio, 1+3 bits.
- * NDL_refQueueStatus(AC_BK), ndlType_queueStatus, 1+1 bit.
- * NDL_refQueueStatus(AC_BE), ndlType_queueStatus, 1+1 bit.
- * NDL_refQueueStatus(AC_VI), ndlType_queueStatus, 1+1 bit.
- * NDL_refQueueStatus(AC_VO), ndlType_queueStatus, 1+1 bit.
- */
- A_UINT32 transmit_queue_parameters;
- /**
- * NDL_refQueueLen(AC_BK), ndlType_numberElements, 1+6 bits.
- * NDL_refQueueLen(AC_BE), ndlType_numberElements, 1+6 bits.
- * NDL_refQueueLen(AC_VI), ndlType_numberElements, 1+6 bits.
- * NDL_refQueueLen(AC_VO), ndlType_numberElements, 1+6 bits.
- */
- A_UINT32 numberElements[WMI_PACKED_ARR_SIZE(WLAN_MAX_AC, SIZE_NDLTYPE_NUMBERELEMENTS)];
- } wmi_dcc_ndl_chan;
- #define WMI_CHAN_FREQ_GET(ptr) WMI_GET_BITS((ptr)->chan_info, 0, 16)
- #define WMI_CHAN_FREQ_SET(ptr,val) WMI_SET_BITS((ptr)->chan_info, 0, 16, val)
- #define WMI_NDL_NUM_ACTIVE_STATE_GET(ptr) WMI_GET_BITS((ptr)->chan_info, 16, 7)
- #define WMI_NDL_NUM_ACTIVE_STATE_SET(ptr,val) WMI_SET_BITS((ptr)->chan_info, 16, 7, val)
- #define WMI_NDL_MIN_DCC_SAMPLING_GET(ptr) WMI_GET_BITS((ptr)->ndl_min_dcc_sampling, 0, 10)
- #define WMI_NDL_MIN_DCC_SAMPLING_SET(ptr,val) WMI_SET_BITS((ptr)->ndl_min_dcc_sampling, 0, 10, val)
- #define WMI_NDL_MEASURE_INTERVAL_GET(ptr) WMI_GET_BITS((ptr)->ndl_min_dcc_sampling, 10, 16)
- #define WMI_NDL_MEASURE_INTERVAL_SET(ptr,val) WMI_SET_BITS((ptr)->ndl_min_dcc_sampling, 10, 16, val)
- #define WMI_NDL_DCC_ENABLE_GET(ptr) WMI_GET_BITS((ptr)->dcc_flags, 0, 1)
- #define WMI_NDL_DCC_ENABLE_SET(ptr,val) WMI_SET_BITS((ptr)->dcc_flags, 0, 1, val)
- #define WMI_NDL_DCC_STATS_ENABLE_GET(ptr) WMI_GET_BITS((ptr)->dcc_flags, 1, 1)
- #define WMI_NDL_DCC_STATS_ENABLE_SET(ptr,val) WMI_SET_BITS((ptr)->dcc_flags, 1, 1, val)
- #define WMI_NDL_DCC_STATS_INTERVAL_GET(ptr) WMI_GET_BITS((ptr)->dcc_flags, 2, 16)
- #define WMI_NDL_DCC_STATS_INTERVAL_SET(ptr,val) WMI_SET_BITS((ptr)->dcc_flags, 2, 16, val)
- #define WMI_NDL_TIME_UP_GET(ptr) WMI_GET_BITS((ptr)->general_config, 0, 13)
- #define WMI_NDL_TIME_UP_SET(ptr,val) WMI_SET_BITS((ptr)->general_config, 0, 13, val)
- #define WMI_NDL_TIME_DOWN_GET(ptr) WMI_GET_BITS((ptr)->general_config, 13, 13)
- #define WMI_NDL_TIME_DOWN_SET(ptr,val) WMI_SET_BITS((ptr)->general_config, 13, 13, val)
- #define WMI_NDL_MIN_TX_POWER_GET(ptr) WMI_GET_BITS((ptr)->min_max_tx_power, 0, 8)
- #define WMI_NDL_MIN_TX_POWER_SET(ptr,val) WMI_SET_BITS((ptr)->min_max_tx_power, 0, 8, val)
- #define WMI_NDL_MAX_TX_POWER_GET(ptr) WMI_GET_BITS((ptr)->min_max_tx_power, 8, 8)
- #define WMI_NDL_MAX_TX_POWER_SET(ptr,val) WMI_SET_BITS((ptr)->min_max_tx_power, 8, 8, val)
- #define WMI_NDL_DEF_TX_POWER_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->def_tx_power_ac, acprio, SIZE_NDLTYPE_TXPOWER)
- #define WMI_NDL_DEF_TX_POWER_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->def_tx_power_ac, acprio, SIZE_NDLTYPE_TXPOWER, val)
- #define WMI_NDL_MAX_PACKET_DURATION_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->max_packet_duration_ac, acprio, SIZE_NDLTYPE_PACKETDURATION)
- #define WMI_NDL_MAX_PACKET_DURATION_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->max_packet_duration_ac, acprio, SIZE_NDLTYPE_PACKETDURATION, val)
- #define WMI_NDL_MIN_PACKET_INTERVAL_GET(ptr) WMI_GET_BITS((ptr)->min_max_packet_interval, 0, 11)
- #define WMI_NDL_MIN_PACKET_INTERVAL_SET(ptr,val) WMI_SET_BITS((ptr)->min_max_packet_interval, 0, 11, val)
- #define WMI_NDL_MAX_PACKET_INTERVAL_GET(ptr) WMI_GET_BITS((ptr)->min_max_packet_interval, 11, 11)
- #define WMI_NDL_MAX_PACKET_INTERVAL_SET(ptr,val) WMI_SET_BITS((ptr)->min_max_packet_interval, 11, 11, val)
- #define WMI_NDL_DEF_PACKET_INTERVAL_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->def_packet_interval_ac, acprio, SIZE_NDLTYPE_PACKETINTERVAL)
- #define WMI_NDL_DEF_PACKET_INTERVAL_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->def_packet_interval_ac, acprio, SIZE_NDLTYPE_PACKETINTERVAL, val)
- #define WMI_NDL_MIN_DATARATE_GET(ptr) WMI_GET_BITS((ptr)->min_max_datarate, 0, 4)
- #define WMI_NDL_MIN_DATARATE_SET(ptr,val) WMI_SET_BITS((ptr)->min_max_datarate, 0, 4, val)
- #define WMI_NDL_MAX_DATARATE_GET(ptr) WMI_GET_BITS((ptr)->min_max_datarate, 4, 4)
- #define WMI_NDL_MAX_DATARATE_SET(ptr,val) WMI_SET_BITS((ptr)->min_max_datarate, 4, 4, val)
- #define WMI_NDL_DEF_DATARATE_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->def_datarate_ac, acprio, SIZE_NDLTYPE_DATARATE)
- #define WMI_NDL_DEF_DATARATE_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->def_datarate_ac, acprio, SIZE_NDLTYPE_DATARATE, val)
- #define WMI_NDL_MIN_CARRIER_SENSE_GET(ptr) WMI_GET_BITS((ptr)->min_max_def_carrier_sense, 0, 8)
- #define WMI_NDL_MIN_CARRIER_SENSE_SET(ptr,val) WMI_SET_BITS((ptr)->min_max_def_carrier_sense, 0, 8, val)
- #define WMI_NDL_MAX_CARRIER_SENSE_GET(ptr) WMI_GET_BITS((ptr)->min_max_def_carrier_sense, 8, 8)
- #define WMI_NDL_MAX_CARRIER_SENSE_SET(ptr,val) WMI_SET_BITS((ptr)->min_max_def_carrier_sense, 8, 8, val)
- #define WMI_NDL_DEF_CARRIER_SENSE_GET(ptr) WMI_GET_BITS((ptr)->min_max_def_carrier_sense, 16, 8)
- #define WMI_NDL_DEF_CARRIER_SENSE_SET(ptr,val) WMI_SET_BITS((ptr)->min_max_def_carrier_sense, 16, 8, val)
- #define WMI_NDL_DEF_DCC_SENSITIVITY_GET(ptr) WMI_GET_BITS((ptr)->receive_model_parameter, 0, 8)
- #define WMI_NDL_DEF_DCC_SENSITIVITY_SET(ptr,val) WMI_SET_BITS((ptr)->receive_model_parameter, 0, 8, val)
- #define WMI_NDL_MAX_CS_RANGE_GET(ptr) WMI_GET_BITS((ptr)->receive_model_parameter, 8, 13)
- #define WMI_NDL_MAX_CS_RANGE_SET(ptr,val) WMI_SET_BITS((ptr)->receive_model_parameter, 8, 13, val)
- #define WMI_NDL_REF_PATH_LOSS_GET(ptr) WMI_GET_BITS((ptr)->receive_model_parameter, 21, 6)
- #define WMI_NDL_REF_PATH_LOSS_SET(ptr,val) WMI_SET_BITS((ptr)->receive_model_parameter, 21, 6, val)
- #define WMI_NDL_MIN_SNR_GET(ptr) WMI_GET_BITS((ptr)->receive_model_parameter_2, 0, 8)
- #define WMI_NDL_MIN_SNR_SET(ptr,val) WMI_SET_BITS((ptr)->receive_model_parameter_2, 0, 8, val)
- #define WMI_NDL_SNR_BACKOFF_GET(ptr,mcs) wmi_packed_arr_get_bits((ptr)->snr_backoff_mcs, mcs, SIZE_NDLTYPE_SNR)
- #define WMI_NDL_SNR_BACKOFF_SET(ptr,mcs,val) wmi_packed_arr_set_bits((ptr)->snr_backoff_mcs, mcs, SIZE_NDLTYPE_SNR, val)
- #define WMI_NDL_TM_PACKET_ARRIVAL_RATE_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->tm_packet_arrival_rate_ac, acprio, SIZE_NDLTYPE_ARRIVALRATE)
- #define WMI_NDL_TM_PACKET_ARRIVAL_RATE_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->tm_packet_arrival_rate_ac, acprio, SIZE_NDLTYPE_ARRIVALRATE, val)
- #define WMI_NDL_TM_PACKET_AVG_DURATION_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->tm_packet_avg_duration_ac, acprio, SIZE_NDLTYPE_PACKETDURATION)
- #define WMI_NDL_TM_PACKET_AVG_DURATION_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->tm_packet_avg_duration_ac, acprio, SIZE_NDLTYPE_PACKETDURATION, val)
- #define WMI_NDL_TM_SIGNAL_AVG_POWER_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->tm_signal_avg_power_ac, acprio, SIZE_NDLTYPE_TXPOWER)
- #define WMI_NDL_TM_SIGNAL_AVG_POWER_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->tm_signal_avg_power_ac, acprio, SIZE_NDLTYPE_TXPOWER, val)
- #define WMI_NDL_TM_MAX_CHANNEL_USE_GET(ptr) WMI_GET_BITS((ptr)->tm_max_channel_use, 0, 14)
- #define WMI_NDL_TM_MAX_CHANNEL_USE_SET(ptr,val) WMI_SET_BITS((ptr)->tm_max_channel_use, 0, 14, val)
- #define WMI_NDL_TM_CHANNEL_USE_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->tm_channel_use_ac, acprio, SIZE_NDLTYPE_CHANNELUSE)
- #define WMI_NDL_TM_CHANNEL_USE_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->tm_channel_use_ac, acprio, SIZE_NDLTYPE_CHANNELUSE, val)
- #define WMI_NDL_MIN_CHANNEL_LOAD_GET(ptr) WMI_GET_BITS((ptr)->min_max_channel_load, 0, 11)
- #define WMI_NDL_MIN_CHANNEL_LOAD_SET(ptr,val) WMI_SET_BITS((ptr)->min_max_channel_load, 0, 11, val)
- #define WMI_NDL_MAX_CHANNEL_LOAD_GET(ptr) WMI_GET_BITS((ptr)->min_max_channel_load, 11, 11)
- #define WMI_NDL_MAX_CHANNEL_LOAD_SET(ptr,val) WMI_SET_BITS((ptr)->min_max_channel_load, 11, 11, val)
- #define WMI_NDL_NUM_QUEUE_GET(ptr) WMI_GET_BITS((ptr)->transmit_queue_parameters, 0, 4)
- #define WMI_NDL_NUM_QUEUE_SET(ptr,val) WMI_SET_BITS((ptr)->transmit_queue_parameters, 0, 4, val)
- #define WMI_NDL_REF_QUEUE_STATUS_GET(ptr,acprio) WMI_GET_BITS((ptr)->transmit_queue_parameters, (4 + (acprio * 2)), 2)
- #define WMI_NDL_REF_QUEUE_STATUS_SET(ptr,acprio,val) WMI_SET_BITS((ptr)->transmit_queue_parameters, (4 + (acprio * 2)), 2, val)
- #define WMI_NDL_REF_QUEUE_LEN_GET(ptr,acprio) wmi_packed_arr_get_bits((ptr)->numberElements, acprio, SIZE_NDLTYPE_NUMBERELEMENTS)
- #define WMI_NDL_REF_QUEUE_LEN_SET(ptr,acprio,val) wmi_packed_arr_set_bits((ptr)->numberElements, acprio, SIZE_NDLTYPE_NUMBERELEMENTS, val)
- /** Data structure for updating the NDL. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_dcc_update_ndl_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /** The number of channels in the request. */
- A_UINT32 num_channel;
- /** This is followed by a TLV array of wmi_dcc_ndl_chan. */
- /** This is followed by a TLV array of wmi_dcc_ndl_active_state_config. */
- } wmi_dcc_update_ndl_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_dcc_update_ndl_resp_event_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- A_UINT32 status;
- } wmi_dcc_update_ndl_resp_event_fixed_param;
- /* Actions for TSF timestamp */
- typedef enum {
- TSF_TSTAMP_CAPTURE_REQ = 1,
- TSF_TSTAMP_CAPTURE_RESET = 2,
- TSF_TSTAMP_READ_VALUE = 3,
- TSF_TSTAMP_QTIMER_CAPTURE_REQ = 4,
- TSF_TSTAMP_AUTO_REPORT_ENABLE = 5,
- TSF_TSTAMP_AUTO_REPORT_DISABLE = 6,
- TSF_TSTAMP_PERIODIC_REPORT_REQ = 5,
- } wmi_tsf_tstamp_action;
- typedef enum {
- TSF_TSTAMP_REPORT_TTIMER = 0x1, /* bit 0: TSF Timer */
- TSF_TSTAMP_REPORT_QTIMER = 0x2, /* bit 1: H/T common Timer */
- } wmi_tsf_tstamp_report_flags;
- #define TSF_TSTAMP_REPORT_PERIOD_MIN 1000 /* ms units */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_vdev_tsf_tstamp_action_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* action type, refer to wmi_tsf_tstamp_action */
- A_UINT32 tsf_action;
- /*
- * The below fields are valid only when tsf_action is
- * TSF_TSTAMP_PERIODIC_REPORT_REQ.
- */
- A_UINT32 period; /* the period of report timestamp, ms units */
- A_UINT32 flags; /* wmi_tsf_tstamp_report_flags */
- } wmi_vdev_tsf_tstamp_action_cmd_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_vdev_tsf_report_event_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* low 32bit of tsf */
- A_UINT32 tsf_low;
- /* high 32 bit of tsf */
- A_UINT32 tsf_high;
- /* low 32 bits of qtimer */
- A_UINT32 qtimer_low;
- /* high 32 bits of qtimer */
- A_UINT32 qtimer_high;
- /*
- * tsf_id: TSF ID for the current vdev
- * This field should be ignored unless the tsf_id_valid flag is set.
- */
- A_UINT32 tsf_id;
- /*
- * The mac_id and tsf_id fields should be ignored unless the
- * tsf_id_valid flag is set.
- */
- A_UINT32 tsf_id_valid;
- /*
- * mac_id: MAC identifier
- * This field should be ignored unless the tsf_id_valid flag is set.
- */
- A_UINT32 mac_id;
- /*
- * The original mac_id_valid field that was originally used to specify
- * whether the mac_id field is valid has been repurposed to instead
- * specify whether this message is a TSF report or a UL delay report.
- */
- union {
- A_UINT32 mac_id_valid; /* original name */
- /* ul_delay_or_tsf_report:
- * New name for the field, reflecting its new purpose.
- * ul_delay_or_tsf_report = 1 -> UL delay
- * ul_delay_or_tsf_report = 0 -> TSF report
- */
- A_UINT32 ul_delay_or_tsf_report;
- };
- /* low 32 bits of wlan global tsf */
- A_UINT32 wlan_global_tsf_low;
- /* high 32 bits of wlan global tsf */
- A_UINT32 wlan_global_tsf_high;
- /* low 32 bits of tqm timer */
- A_UINT32 tqm_timer_low;
- /* high 32 bits of tqm timer */
- A_UINT32 tqm_timer_high;
- /* use tqm timer flag */
- A_UINT32 use_tqm_timer;
- } wmi_vdev_tsf_report_event_fixed_param;
- /* ie_id values:
- * 0 to 255 are used for individual IEEE802.11 Information Element types
- */
- #define WMI_SET_VDEV_IE_ID_SCAN_SET_DEFAULT_IE 256
- /* source values: */
- #define WMI_SET_VDEV_IE_SOURCE_HOST 0x0
- /* band values: */
- typedef enum {
- WMI_SET_VDEV_IE_BAND_ALL = 0,
- WMI_SET_VDEV_IE_BAND_2_4GHZ,
- WMI_SET_VDEV_IE_BAND_5GHZ,
- } wmi_set_vdev_ie_band;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_ie_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** unique id to identify the ie_data as defined by ieee 802.11 spec */
- A_UINT32 ie_id;
- /** ie_len corresponds to num of bytes in ie_data[] */
- A_UINT32 ie_len;
- /** source of this command */
- A_UINT32 ie_source; /* see WMI_SET_VDEV_IE_SOURCE_ defs */
- /** band for this IE - se wmi_set_vdev_ie_band enum */
- A_UINT32 band;
- /**
- * Following this structure is the TLV byte stream of ie data of length ie_buf_len:
- * A_UINT8 ie_data[];
- *
- */
- } wmi_vdev_set_ie_cmd_fixed_param;
- /* DISA feature related data structures */
- #define MAX_MAC_HEADER_LEN 32
- typedef enum {
- WMI_ENCRYPT_DECRYPT_FLAG_INVALID,
- WMI_ENCRYPT = 1,
- WMI_DECRYPT = 2,
- } WMI_ENCRYPT_DECRYPT_FLAG;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_encrypt_decrypt_data_req_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- A_UINT32 key_flag; /* WMI_ENCRYPT_DECRYPT_FLAG */
- A_UINT32 key_idx;
- A_UINT32 key_cipher;
- A_UINT32 key_len; /* units = bytes */
- A_UINT32 key_txmic_len; /* units = bytes */
- A_UINT32 key_rxmic_len; /* units = bytes */
- /** Key: This array needs to be provided in little-endian order */
- A_UINT8 key_data[WMI_MAX_KEY_LEN];
- /** Packet number: This array needs to be provided in little-endian order.
- * If the PN is less than 8 bytes, the PN data shall be placed into this
- * pn[] array starting at byte 0, leaving the MSBs empty.
- */
- A_UINT8 pn[8];
- /** 802.11 MAC header to be typecast to struct ieee80211_qosframe_addr4
- * This array needs to be provided in little-endian order.
- */
- A_UINT8 mac_hdr[MAX_MAC_HEADER_LEN];
- A_UINT32 data_len; /** Payload length, units = bytes */
- /*
- * Following this struct are this TLV:
- * A_UINT8 data[]; <-- actual data to be encrypted,
- * needs to be provided in little-endian order
- */
- } wmi_vdev_encrypt_decrypt_data_req_cmd_fixed_param;
- /* This event is generated in response to WMI_VDEV_ENCRYPT_DECRYPT_DATA_REQ_CMDID from HOST.
- * On receiving WMI command WMI_VDEV_ENCRYPT_DECRYPT_DATA_REQ_CMDID from
- * HOST with DISA test vectors, DISA frame will prepared and submitted to HW,
- * then on receiving the tx completion for the DISA frame this WMI event
- * will be delivered to HOST with the encrypted frame.
- */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_vdev_encrypt_decrypt_data_resp_event_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- A_INT32 status; /* 0: success, -1: Failure, */
- /* 802.11 header length + encrypted payload length (units = bytes) */
- A_UINT32 data_length;
- /*
- * Following this struct is this TLV:
- * A_UINT8 enc80211_frame[]; <-- Encrypted 802.11 frame;
- * 802.11 header + encrypted payload,
- * provided in little-endian order
- */
- } wmi_vdev_encrypt_decrypt_data_resp_event_fixed_param;
- /* DEPRECATED - use wmi_pdev_set_pcl_cmd_fixed_param instead */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_soc_set_pcl_cmd_fixed_param */
- /** Set Preferred Channel List **/
- /** # of channels to scan */
- A_UINT32 num_chan;
- /**
- * TLV (tag length value) parameters follow the wmi_soc_set_pcl_cmd
- * structure. The TLV's are:
- * A_UINT32 channel_list[];
- **/
- } wmi_soc_set_pcl_cmd_fixed_param;
- /* Values for channel_weight */
- typedef enum {
- WMI_PCL_WEIGHT_DISALLOW = 0,
- WMI_PCL_WEIGHT_LOW = 1,
- WMI_PCL_WEIGHT_MEDIUM = 2,
- WMI_PCL_WEIGHT_HIGH = 3,
- WMI_PCL_WEIGHT_VERY_HIGH = 4,
- } wmi_pcl_chan_weight;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_pcl_cmd_fixed_param */
- /** Set Preferred Channel List **/
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** # of channels to scan */
- A_UINT32 num_chan;
- /**
- * TLV (tag length value) parameters follow the wmi_soc_set_pcl_cmd
- * structure. The TLV's are:
- * A_UINT32 channel_weight[]; channel order & size will be as per the list provided in WMI_SCAN_CHAN_LIST_CMDID
- **/
- } wmi_pdev_set_pcl_cmd_fixed_param;
- /* DEPRECATED - use wmi_pdev_set_hw_mode_cmd_fixed_param instead */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_soc_set_hw_mode_cmd_fixed_param */
- /** Set Hardware Mode **/
- /* Hardware Mode Index */
- A_UINT32 hw_mode_index;
- } wmi_soc_set_hw_mode_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len tag equals WMITLV_TAG_STRUC_wmi_pdev_band_to_mac */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /* start frequency in MHz */
- A_UINT32 start_freq;
- /* end frequency in MHz */
- A_UINT32 end_freq;
- } wmi_pdev_band_to_mac;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_hw_mode_cmd_fixed_param */
- /** Set Hardware Mode **/
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /* Hardware Mode Index */
- A_UINT32 hw_mode_index;
- /* Number of band to mac TLVs */
- A_UINT32 num_band_to_mac;
- /* Followed by TLVs of type
- * num_band_to_mac * wmi_pdev_band_to_mac.
- */
- } wmi_pdev_set_hw_mode_cmd_fixed_param;
- /* DEPRECATED - use wmi_pdev_set_dual_mac_config_cmd_fixed_param instead */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_soc_set_dual_mac_config_cmd_fixed_param */
- /** Set Dual MAC Firmware Configuration **/
- /* Concurrent scan configuration bits */
- A_UINT32 concurrent_scan_config_bits;
- /* Firmware mode configuration bits */
- A_UINT32 fw_mode_config_bits;
- } wmi_soc_set_dual_mac_config_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_mac_config_cmd_fixed_param */
- /** Set Dual MAC Firmware Configuration **/
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /* Concurrent scan configuration bits */
- A_UINT32 concurrent_scan_config_bits;
- /* Firmware mode configuration bits */
- A_UINT32 fw_mode_config_bits;
- } wmi_pdev_set_mac_config_cmd_fixed_param;
- typedef struct { /* DEPRECATED */
- A_UINT32 num_tx_chains;
- A_UINT32 num_rx_chains;
- A_UINT32 reserved[2];
- } soc_num_tx_rx_chains;
- typedef struct {
- A_UINT32 num_tx_chains_2g;
- A_UINT32 num_rx_chains_2g;
- A_UINT32 num_tx_chains_5g;
- A_UINT32 num_rx_chains_5g;
- } band_num_tx_rx_chains;
- typedef union { /* DEPRECATED */
- soc_num_tx_rx_chains soc_txrx_chain_setting;
- band_num_tx_rx_chains band_txrx_chain_setting;
- } antenna_num_tx_rx_chains;
- typedef enum {
- ANTENNA_MODE_DISABLED = 0x0,
- ANTENNA_MODE_LOW_POWER_LOCATION_SCAN = 0x01,
- /* reserved */
- } antenna_mode_reason;
- /* DEPRECATED - use wmi_pdev_set_antenna_mode_cmd_fixed_param instead */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_soc_set_antenna_mode_cmd_fixed_param */
- /* the reason for setting antenna mode, refer antenna_mode_reason */
- A_UINT32 reason;
- /*
- * The above reason parameter will select whether the following union
- * is soc_num_tx_rx_chains or band_num_tx_rx_chains.
- */
- antenna_num_tx_rx_chains num_txrx_chains_setting;
- } wmi_soc_set_antenna_mode_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_antenna_mode_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /* Bits 0-15 is the number of RX chains and 16-31 is the number of TX chains */
- A_UINT32 num_txrx_chains;
- } wmi_pdev_set_antenna_mode_cmd_fixed_param;
- /** Data structure for information specific to a VDEV to MAC mapping. */
- /* DEPRECATED - use wmi_pdev_set_hw_mode_response_vdev_mac_entry instead */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_soc_set_hw_mode_response_vdev_mac_entry */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id; /* VDEV ID */
- A_UINT32 mac_id; /* MAC ID */
- } wmi_soc_set_hw_mode_response_vdev_mac_entry;
- /** Data structure for information specific to a VDEV to MAC mapping. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_set_hw_mode_response_vdev_mac_entry */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- A_UINT32 vdev_id;
- } wmi_pdev_set_hw_mode_response_vdev_mac_entry;
- /* DEPRECATED - use wmi_pdev_set_hw_mode_response_event_fixed_param instead */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_soc_set_hw_mode_response_event_fixed_param */
- /** Set Hardware Mode Response Event **/
- /* Status of set_hw_mode command */
- /*
- * Values for Status:
- * 0 - OK; command successful
- * 1 - EINVAL; Requested invalid hw_mode
- * 2 - ECANCELED; HW mode change canceled
- * 3 - ENOTSUP; HW mode not supported
- * 4 - EHARDWARE; HW mode change prevented by hardware
- * 5 - EPENDING; HW mode change is pending
- * 6 - ECOEX; HW mode change conflict with Coex
- */
- A_UINT32 status;
- /* Configured Hardware Mode */
- A_UINT32 cfgd_hw_mode_index;
- /* Number of Vdev to Mac entries */
- A_UINT32 num_vdev_mac_entries;
- /**
- * TLV (tag length value) parameters follow the soc_set_hw_mode_response_event
- * structure. The TLV's are:
- * A_UINT32 wmi_soc_set_hw_mode_response_vdev_mac_entry[];
- */
- } wmi_soc_set_hw_mode_response_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_hw_mode_response_event_fixed_param */
- /** Set Hardware Mode Response Event **/
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /* Status of set_hw_mode command */
- /*
- * Values for Status:
- * 0 - OK; command successful
- * 1 - EINVAL; Requested invalid hw_mode
- * 2 - ECANCELED; HW mode change canceled
- * 3 - ENOTSUP; HW mode not supported
- * 4 - EHARDWARE; HW mode change prevented by hardware
- * 5 - EPENDING; HW mode change is pending
- * 6 - ECOEX; HW mode change conflict with Coex
- */
- A_UINT32 status;
- /* Configured Hardware Mode */
- A_UINT32 cfgd_hw_mode_index;
- /* Number of Vdev to Mac entries */
- A_UINT32 num_vdev_mac_entries;
- /**
- * TLV (tag length value) parameters follow the soc_set_hw_mode_response_event
- * structure. The TLV's are:
- * A_UINT32 wmi_soc_set_hw_mode_response_vdev_mac_entry[];
- */
- } wmi_pdev_set_hw_mode_response_event_fixed_param;
- /* DEPRECATED - use wmi_pdev_hw_mode_transition_event_fixed_param instead */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_soc_hw_mode_transition_event_fixed_param */
- /** Hardware Mode Transition Event **/
- /* Original or old Hardware mode */
- A_UINT32 old_hw_mode_index;
- /* New Hardware Mode */
- A_UINT32 new_hw_mode_index;
- /* Number of Vdev to Mac entries */
- A_UINT32 num_vdev_mac_entries;
- /**
- * TLV (tag length value) parameters follow the soc_set_hw_mode_response_event
- * structure. The TLV's are:
- * A_UINT32 wmi_soc_set_hw_mode_response_vdev_mac_entry[];
- */
- } wmi_soc_hw_mode_transition_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_hw_mode_transition_event_fixed_param */
- /** Hardware Mode Transition Event **/
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /* Original or old Hardware mode */
- A_UINT32 old_hw_mode_index;
- /* New Hardware Mode */
- A_UINT32 new_hw_mode_index;
- /* Number of Vdev to Mac entries */
- A_UINT32 num_vdev_mac_entries;
- /**
- * TLV (tag length value) parameters follow the pdev_set_hw_mode_response_event
- * structure. The TLV's are:
- * wmi_pdev_set_hw_mode_response_vdev_mac_entry
- * wmi_pdev_set_hw_mode_response_vdev_mac_mapping[];
- * wmi_pdev_band_to_mac mac_freq_mapping[];
- */
- } wmi_pdev_hw_mode_transition_event_fixed_param;
- /**
- * This command is sent from WLAN host driver to firmware for
- * plugging in reorder queue desc to lithium hw.
- *
- * Example: plug-in queue desc for TID 5
- * host->target: WMI_PEER_REORDER_QUEUE_SETUP_CMDID,
- * (vdev_id = PEER vdev id,
- * peer_macaddr = PEER mac addr,
- * tid = 5,
- * queue_ptr_lo = queue desc addr lower 32 bits,
- * queue_ptr_hi = queue desc addr higher 32 bits,
- * queue_no = 16-bit number assigned by host for queue,
- * stored in bits 15:0 of queue_no field)
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_reorder_queue_setup_cmd_fixed_param */
- A_UINT32 vdev_id;
- wmi_mac_addr peer_macaddr; /* peer mac address */
- A_UINT32 tid; /* 0 to 15 = QoS TIDs, 16 = non-qos TID */
- A_UINT32 queue_ptr_lo; /* lower 32 bits of queue desc address */
- A_UINT32 queue_ptr_hi; /* upper 32 bits of queue desc address */
- A_UINT32 queue_no; /* 16-bit number assigned by host for queue,
- stored in bits 15:0 of queue_no field */
- A_UINT32 ba_window_size_valid; /* Is ba_window_size valid?
- * 0 = Invalid, 1 = Valid */
- A_UINT32 ba_window_size; /* Valid values: 0 to 256
- * Host sends the message when BA session is
- * established or terminated for the TID. */
- } wmi_peer_reorder_queue_setup_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_per_reorder_q_setup_params_t */
- A_UINT32 tid; /* 0 to 15 = QoS TIDs, 16 = non-qos TID */
- A_UINT32 queue_ptr_lo; /* lower 32 bits of queue desc address */
- A_UINT32 queue_ptr_hi; /* upper 32 bits of queue desc address */
- A_UINT32 queue_no; /* 16-bit number assigned by host for queue,
- * stored in bits 15:0 of queue_no field */
- A_UINT32 ba_window_size_valid; /* Is ba_window_size valid?
- * 0 = Invalid, 1 = Valid */
- A_UINT32 ba_window_size; /* Valid values: 0 to 256
- * Host sends the message when BA session is
- * established or terminated for the TID. */
- } wmi_peer_per_reorder_q_setup_params_t;
- /**
- * This command is sent from WLAN host driver to firmware for
- * plugging in reorder queue desc to hw for multiple TIDs in one shot.
- *
- * Example: plug-in queue desc
- * host->target: WMI_PEER_MULTIPLE_REORDER_QUEUE_SETUP_CMDID,
- * (vdev_id = PEER vdev id,
- * peer_macaddr = PEER mac addr)
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_multiple_reorder_queue_setup_cmd_fixed_param */
- A_UINT32 vdev_id;
- wmi_mac_addr peer_macaddr; /* peer mac address */
- /*
- * This struct is followed by other TLVs:
- * wmi_peer_per_reorder_q_setup_params_t q_setup_params[num_queues];
- */
- } wmi_peer_multiple_reorder_queue_setup_cmd_fixed_param;
- /**
- * This command is sent from WLAN host driver to firmware for
- * removing one or more reorder queue desc to lithium hw.
- *
- * Example: remove queue desc for all TIDs
- * host->target: WMI_PEER_REORDER_REMOVE_CMDID,
- * (vdev_id = PEER vdev id,
- * peer_macaddr = PEER mac addr,
- * tid = 0x1FFFF,
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_reorder_queue_remove_cmd_fixed_param */
- A_UINT32 vdev_id;
- wmi_mac_addr peer_macaddr; /* peer mac address */
- A_UINT32 tid_mask; /* bits 0 to 15 = QoS TIDs, bit 16 = non-qos TID */
- } wmi_peer_reorder_queue_remove_cmd_fixed_param;
- /* DEPRECATED - use wmi_pdev_set_mac_config_response_event_fixed_param instead */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_soc_set_dual_mac_config_response_event_fixed_param */
- /** Set Dual MAC Config Response Event **/
- /* Status for set_dual_mac_config command */
- /*
- * Values for Status:
- * 0 - OK; command successful
- * 1 - EINVAL; Requested invalid hw_mode
- * 3 - ENOTSUP; HW mode not supported
- * 4 - EHARDWARE; HW mode change prevented by hardware
- * 6 - ECOEX; HW mode change conflict with Coex
- */
- A_UINT32 status;
- } wmi_soc_set_dual_mac_config_response_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_mac_config_response_event_fixed_param */
- /** Set Dual MAC Config Response Event **/
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /* Status for set_dual_mac_config command */
- /*
- * Values for Status:
- * 0 - OK; command successful
- * 1 - EINVAL; Requested invalid hw_mode
- * 3 - ENOTSUP; HW mode not supported
- * 4 - EHARDWARE; HW mode change prevented by hardware
- * 6 - ECOEX; HW mode change conflict with Coex
- */
- A_UINT32 status;
- } wmi_pdev_set_mac_config_response_event_fixed_param;
- typedef enum {
- MAWC_MOTION_STATE_UNKNOWN,
- MAWC_MOTION_STATE_STATIONARY,
- MAWC_MOTION_STATE_WALK,
- MAWC_MOTION_STATE_TRANSIT,
- } MAWC_MOTION_STATE;
- typedef enum {
- MAWC_SENSOR_STATUS_OK,
- MAWC_SENSOR_STATUS_FAILED_TO_ENABLE,
- MAWC_SENSOR_STATUS_SHUTDOWN,
- } MAWC_SENSOR_STATUS;
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_mawc_sensor_report_ind_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** new motion state, MAWC_MOTION_STATE */
- A_UINT32 motion_state;
- /** status code of sensor, MAWC_SENSOR_STATUS */
- A_UINT32 sensor_status;
- } wmi_mawc_sensor_report_ind_cmd_fixed_param;
- /* MBO flag field definition */
- /* Bit 0: 0 - Allow to connect to both MBO and non-MBO AP
- * 1 - Allow to connect to MBO AP only
- * Bit 1-31 : reserved.
- */
- #define WMI_ROAM_MBO_FLAG_MBO_ONLY_MODE (1<<0) /* DEPRECATED */
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_roam_set_mbo_fixed_param */
- A_UINT32 tlv_header;
- /** vdev id */
- A_UINT32 vdev_id;
- /** enable or disable MBO */
- A_UINT32 enable;
- /** MBO flags, refer to definition of MBO flags*/
- A_UINT32 flags;
- } wmi_roam_set_mbo_fixed_param; /* DEPRECATED */
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_ARRAY_STRUC */
- A_UINT32 tlv_header;
- /** Current operating class number */
- A_UINT32 cur_op_class;
- /** Country string of current reg domain,
- * the expected value should be same as country str defined
- * in country IE.
- * 3 octets (COUNTRY_STR) + 1 octet (always 0)
- * The ordering of this array must be maintained,
- * even when a big-endian host's WMI messages undergo
- * automatic byte reordering for conversion to the
- * little-endian ordering required by the target.
- * On big-endian hosts, this array may need to be byte-swapped
- * by the host, so the subsequent automatic byte-swap
- * will result in the correct final byte order.
- * global operating class: set country_str[0]=0
- */
- A_UINT8 country_str[4];
- /** Supported operating class number in current regdomain */
- A_UINT32 supp_op_class_num;
- /* The TLVs will follow. */
- /* A_UINT32 supp_op_class_list[] */
- } wmi_supported_operating_class_param;
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_ARRAY_STRUC */
- A_UINT32 tlv_header;
- /** non preferred channel attribute length */
- A_UINT32 non_prefer_ch_attr_len;
- /* The TLVs will follow. */
- /** A_UINT8 non_prefer_ch_attr[];*/
- } wmi_mbo_non_preferred_channel_report_param;
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_mawc_enable_sensor_event_fixed_param */
- A_UINT32 tlv_header;
- /* enable(1) or disable(0) */
- A_UINT32 enable;
- } wmi_mawc_enable_sensor_event_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_extscan_configure_mawc_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /* enable(1) or disable(0) MAWC */
- A_UINT32 enable;
- /* ratio of skipping suppressing scan, skip one out of x */
- A_UINT32 suppress_ratio;
- } wmi_extscan_configure_mawc_cmd_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_roam_per_config_fixed_param */
- A_UINT32 tlv_header;
- /* Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /* enable(1) or disable(0) packet error rate trigger for roaming */
- A_UINT32 enable;
- /* high_rate_thresh, low_rate_thresh, pkt_err_rate_thresh_pct:
- * If PER monitoring as a trigger for roaming is enabled,
- * it is controlled by high_rate_thresh, low_rate_thresh, and
- * pkt_err_rate_thresh_pct.
- * PER monitoring is performed only when the time-averaged throughput
- * is less than high_rate_thresh.
- * During PER monitoring, the target keeps track of the PHY rate for
- * each of the first N PPDUs within a time window.
- * If the number of PPDUs with PHY rate < low_rate_thresh exceeds
- * N * pkt_err_rate_thresh_pct / 100, roaming will be triggered.
- *
- * This PER monitoring as a trigger for roaming is performed
- * concurrently but independently for rx and tx.
- */
- A_UINT32 high_rate_thresh; /* units = Kbps */
- A_UINT32 low_rate_thresh; /* units = Kbps */
- A_UINT32 pkt_err_rate_thresh_pct;
- /*
- * rest time after associating to a new AP before
- * starting to monitor PER as a roaming trigger,
- * (units are seconds)
- */
- A_UINT32 per_rest_time;
- /* This is the total time for which PER monitoring will be run.
- * After completion of time windows, the average PER over the window
- * will be computed.
- * The parameter value stores specifications for both TX and RX
- * monitor times.
- * The two least-significant bytes (0 & 1) hold the RX monitor time;
- * the two most-significant bytes (2 & 3) hold the TX monitor time.
- */
- A_UINT32 pkt_err_rate_mon_time; /* units = seconds */
- /* Minimum roamable AP RSSI for candidate selection for PER based roam */
- A_INT32 min_candidate_rssi; /* units = dBm */
- } wmi_roam_per_config_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_nlo_configure_mawc_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /* enable(1) or disable(0) MAWC */
- A_UINT32 enable;
- /* ratio of exponential backoff, next = current + current*ratio/100 */
- A_UINT32 exp_backoff_ratio;
- /* initial scan interval(msec) */
- A_UINT32 init_scan_interval;
- /* max scan interval(msec) */
- A_UINT32 max_scan_interval;
- } wmi_nlo_configure_mawc_cmd_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_roam_configure_mawc_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /* enable(1) or disable(0) MAWC */
- A_UINT32 enable;
- /* data traffic load (kBps) to register CMC */
- A_UINT32 traffic_load_threshold;
- /* RSSI threshold (dBm) to scan for Best AP */
- A_UINT32 best_ap_rssi_threshold;
- /* high RSSI threshold adjustment in Stationary to suppress scan */
- A_UINT32 rssi_stationary_high_adjust;
- /* low RSSI threshold adjustment in Stationary to suppress scan */
- A_UINT32 rssi_stationary_low_adjust;
- } wmi_roam_configure_mawc_cmd_fixed_param;
- #define WMI_PACKET_FILTER_COMPARE_DATA_LEN_DWORD 2
- #define WMI_PACKET_FILTER_MAX_CMP_PER_PACKET_FILTER 5
- typedef enum {
- PACKET_FILTER_TYPE_INVALID = 0,
- PACKET_FILTER_TYPE_FILTER_PKT,
- PACKET_FILTER_TYPE_RESERVE_PKT, /* not used */
- PACKET_FILTER_TYPE_MAX_ENUM_SIZE
- } WMI_PACKET_FILTER_FILTER_TYPE;
- typedef enum {
- PACKET_FILTER_PROTO_TYPE_INVALID = 0,
- /* L2 header */
- PACKET_FILTER_PROTO_TYPE_MAC,
- PACKET_FILTER_PROTO_TYPE_SNAP,
- /* L3 header (EtherType) */
- PACKET_FILTER_PROTO_TYPE_IPV4,
- PACKET_FILTER_PROTO_TYPE_IPV6,
- /* L4 header (IP protocol) */
- PACKET_FILTER_PROTO_TYPE_UDP,
- PACKET_FILTER_PROTO_TYPE_TCP,
- PACKET_FILTER_PROTO_TYPE_ICMPV6,
- PACKET_FILTER_PROTO_TYPE_MAX
- } WMI_PACKET_FILTER_PROTO_TYPE;
- typedef enum {
- PACKET_FILTER_CMP_TYPE_INVALID = 0,
- PACKET_FILTER_CMP_TYPE_EQUAL,
- PACKET_FILTER_CMP_TYPE_MASK_EQUAL,
- PACKET_FILTER_CMP_TYPE_NOT_EQUAL,
- PACKET_FILTER_CMP_TYPE_MASK_NOT_EQUAL,
- PACKET_FILTER_CMP_TYPE_ADDRTYPE,
- PACKET_FILTER_CMP_TYPE_MAX
- } WMI_PACKET_FILTER_CMP_TYPE;
- typedef enum {
- PACKET_FILTER_SET_INACTIVE = 0,
- PACKET_FILTER_SET_ACTIVE
- } WMI_PACKET_FILTER_ACTION;
- typedef enum {
- PACKET_FILTER_SET_DISABLE = 0,
- PACKET_FILTER_SET_ENABLE
- } WMI_PACKET_FILTER_RUNTIME_ENABLE;
- typedef struct {
- A_UINT32 proto_type;
- A_UINT32 cmp_type;
- A_UINT32 data_length; /* Length of the data to compare (units = bytes) */
- A_UINT32 data_offset; /* from start of the respective frame header (units = bytes) */
- A_UINT32 compareData[WMI_PACKET_FILTER_COMPARE_DATA_LEN_DWORD]; /* Data to compare, little-endian order */
- A_UINT32 dataMask[WMI_PACKET_FILTER_COMPARE_DATA_LEN_DWORD]; /* Mask to be applied on rcvd packet data before compare, little-endian order */
- } WMI_PACKET_FILTER_PARAMS_TYPE;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 filter_id;
- A_UINT32 filter_action; /* WMI_PACKET_FILTER_ACTION */
- A_UINT32 filter_type;
- A_UINT32 num_params; /* how many entries in paramsData are valid */
- A_UINT32 coalesce_time; /* not currently used - fill with 0x0 */
- WMI_PACKET_FILTER_PARAMS_TYPE paramsData[WMI_PACKET_FILTER_MAX_CMP_PER_PACKET_FILTER];
- /* deprecated0:
- * This field simply provides filler space to retain the original message
- * format while reducing WMI_PACKET_FILTER_MAX_CMP_PER_PACKET_FILTER
- * from 10 to 5.
- */
- WMI_PACKET_FILTER_PARAMS_TYPE deprecated0[5];
- } WMI_PACKET_FILTER_CONFIG_CMD_fixed_param;
- /* enable / disable all filters within the specified vdev */
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 enable; /* WMI_PACKET_FILTER_RUNTIME_ENABLE */
- } WMI_PACKET_FILTER_ENABLE_CMD_fixed_param;
- #define WMI_LRO_INFO_TCP_FLAG_VALS_BITPOS 0
- #define WMI_LRO_INFO_TCP_FLAG_VALS_NUMBITS 9
- #define WMI_LRO_INFO_TCP_FLAG_VALS_SET(tcp_flag_u32, tcp_flag_values) \
- WMI_SET_BITS(tcp_flag_u32, \
- WMI_LRO_INFO_TCP_FLAG_VALS_BITPOS, \
- WMI_LRO_INFO_TCP_FLAG_VALS_NUMBITS, \
- tcp_flag_values)
- #define WMI_LRO_INFO_TCP_FLAG_VALS_GET(tcp_flag_u32) \
- WMI_GET_BITS(tcp_flag_u32, \
- WMI_LRO_INFO_TCP_FLAG_VALS_BITPOS, \
- WMI_LRO_INFO_TCP_FLAG_VALS_NUMBITS)
- #define WMI_LRO_INFO_TCP_FLAGS_MASK_BITPOS 9
- #define WMI_LRO_INFO_TCP_FLAGS_MASK_NUMBITS 9
- #define WMI_LRO_INFO_TCP_FLAGS_MASK_SET(tcp_flag_u32, tcp_flags_mask) \
- WMI_SET_BITS(tcp_flag_u32, \
- WMI_LRO_INFO_TCP_FLAGS_MASK_BITPOS, \
- WMI_LRO_INFO_TCP_FLAGS_MASK_NUMBITS, \
- tcp_flags_mask)
- #define WMI_LRO_INFO_TCP_FLAGS_MASK_GET(tcp_flag_u32) \
- WMI_GET_BITS(tcp_flag_u32, \
- WMI_LRO_INFO_TCP_FLAGS_MASK_BITPOS, \
- WMI_LRO_INFO_TCP_FLAGS_MASK_NUMBITS)
- typedef struct {
- A_UINT32 tlv_header;
- /**
- * @brief lro_enable - indicates whether lro is enabled
- * [0] LRO Enable
- */
- A_UINT32 lro_enable;
- /**
- * @brief tcp_flag_u32 - mask of which TCP flags to check and
- * values to check for
- * [8:0] TCP flag values - If the TCP flags from the packet do not match
- * the values in this field after masking with TCP flags mask below,
- * LRO eligible will not be set
- * [17:9] TCP flags mask - Mask field for comparing the TCP values
- * provided above with the TCP flags field in the received packet
- * Use WMI_LRO_INFO_TCP_FLAG_VALS and WMI_LRO_INFO_TCP_FLAGS_MASK
- * macros to isolate the mask field and values field that are packed
- * into this u32 "word".
- */
- A_UINT32 tcp_flag_u32;
- /**
- * @brief toeplitz_hash_ipv4 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv4 packets. Contains
- * bytes 0 to 3
- *
- * In this and all the below toeplitz_hash fields, the bytes are
- * specified in little-endian order. For example:
- * toeplitz_hash_ipv4_0_3 bits 7:0 holds seed byte 0
- * toeplitz_hash_ipv4_0_3 bits 15:8 holds seed byte 1
- * toeplitz_hash_ipv4_0_3 bits 23:16 holds seed byte 2
- * toeplitz_hash_ipv4_0_3 bits 31:24 holds seed byte 3
- */
- A_UINT32 toeplitz_hash_ipv4_0_3;
- /**
- * @brief toeplitz_hash_ipv4 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv4 packets. Contains
- * bytes 4 to 7
- */
- A_UINT32 toeplitz_hash_ipv4_4_7;
- /**
- * @brief toeplitz_hash_ipv4 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv4 packets. Contains
- * bytes 8 to 11
- */
- A_UINT32 toeplitz_hash_ipv4_8_11;
- /**
- * @brief toeplitz_hash_ipv4 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv4 packets. Contains
- * bytes 12 to 15
- */
- A_UINT32 toeplitz_hash_ipv4_12_15;
- /**
- * @brief toeplitz_hash_ipv4 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv4 packets. Contains
- * byte 16
- */
- A_UINT32 toeplitz_hash_ipv4_16;
- /**
- * @brief toeplitz_hash_ipv6 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv6 packets. Contains
- * bytes 0 to 3
- */
- A_UINT32 toeplitz_hash_ipv6_0_3;
- /**
- * @brief toeplitz_hash_ipv6 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv6 packets. Contains
- * bytes 4 to 7
- */
- A_UINT32 toeplitz_hash_ipv6_4_7;
- /**
- * @brief toeplitz_hash_ipv6 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv6 packets. Contains
- * bytes 8 to 11
- */
- A_UINT32 toeplitz_hash_ipv6_8_11;
- /**
- * @brief toeplitz_hash_ipv6 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv6 packets. Contains
- * bytes 12 to 15
- */
- A_UINT32 toeplitz_hash_ipv6_12_15;
- /**
- * @brief toeplitz_hash_ipv6 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv6 packets. Contains
- * bytes 16 to 19
- */
- A_UINT32 toeplitz_hash_ipv6_16_19;
- /**
- * @brief toeplitz_hash_ipv6 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv6 packets. Contains
- * bytes 20 to 22
- */
- A_UINT32 toeplitz_hash_ipv6_20_23;
- /**
- * @brief toeplitz_hash_ipv6 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv6 packets. Contains
- * bytes 24 to 27
- */
- A_UINT32 toeplitz_hash_ipv6_24_27;
- /**
- * @brief toeplitz_hash_ipv6 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv6 packets. Contains
- * bytes 28 to 31
- */
- A_UINT32 toeplitz_hash_ipv6_28_31;
- /**
- * @brief toeplitz_hash_ipv6 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv6 packets. Contains
- * bytes 32 to 35
- */
- A_UINT32 toeplitz_hash_ipv6_32_35;
- /**
- * @brief toeplitz_hash_ipv6 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv6 packets. Contains
- * bytes 36 to 39
- */
- A_UINT32 toeplitz_hash_ipv6_36_39;
- /**
- * @brief toeplitz_hash_ipv6 - contains seed needed to compute
- * the flow id 5-tuple toeplitz hash for IPv6 packets. Contains
- * byte 40
- */
- A_UINT32 toeplitz_hash_ipv6_40;
- /**
- * @brief pdev_id - identifies the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_lro_info_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_transfer_data_to_flash_cmd_fixed_param */
- A_UINT32 offset; /* flash offset to write, starting from 0 */
- A_UINT32 length; /* valid data length in buffer, unit: byte */
- } wmi_transfer_data_to_flash_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_transfer_data_to_flash_complete_event_fixed_param */
- /** Return status. 0 for success, non-zero otherwise */
- A_UINT32 status;
- } wmi_transfer_data_to_flash_complete_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_read_data_from_flash_cmd_fixed_param */
- A_UINT32 offset; /* flash offset to read, starting from 0 */
- A_UINT32 length; /* data length to read, unit: byte */
- } wmi_read_data_from_flash_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_read_data_from_flash_event_fixed_param */
- A_UINT32 status; /* Return status. 0 for success, non-zero otherwise */
- A_UINT32 offset; /* flash offset reading from, starting from 0 */
- A_UINT32 length; /* length of data being reported, unit: byte */
- } wmi_read_data_from_flash_event_fixed_param;
- typedef enum {
- ENHANCED_MCAST_FILTER_DISABLED,
- ENHANCED_MCAST_FILTER_ENABLED
- } ENHANCED_MCAST_FILTER_CONFIG;
- /*
- * Command to enable/disable filtering of multicast IP with unicast mac
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_config_enhanced_mcast_filter_fixed_param */
- /* Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /* 1 = enable 0 = disable (see ENHANCED_MCAST_FILTER_CONFIG) */
- A_UINT32 enable;
- } wmi_config_enhanced_mcast_filter_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_wisa_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** WISA enable / disable mode */
- A_UINT32 wisa_mode;
- } wmi_vdev_wisa_cmd_fixed_param;
- /*
- * This structure is used to report SMPS force mode set complete to host.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sta_smps_force_mode_complete_event_fixed_param */
- /* Unique id identifying the VDEV */
- A_UINT32 vdev_id;
- /* Return status. 0 for success, non-zero otherwise */
- A_UINT32 status;
- } wmi_sta_smps_force_mode_complete_event_fixed_param;
- /*
- * This structure is used to report SCPC calibrated data to host.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_scpc_event_fixed_param */
- /** number of BDF patches. Each patch contains offset, length and data */
- A_UINT32 num_patch;
- /* This TLV is followed by another TLV of array of bytes
- * A_UINT8 data[];
- * This data array contains, for example
- * patch1 offset(byte3~0), patch1 data length(byte7~4), patch1 data(byte11~8)
- * patch2 offset(byte15~12), patch2 data length(byte19~16), patch2 data(byte47~20)
- *
- */
- } wmi_scpc_event_fixed_param;
- typedef enum {
- FW_ACTIVE_BPF_MODE_DISABLE = (1 << 1),
- FW_ACTIVE_BPF_MODE_FORCE_ENABLE = (1 << 2),
- FW_ACTIVE_BPF_MODE_ADAPTIVE_ENABLE = (1 << 3),
- } FW_ACTIVE_BPF_MODE;
- /* bpf interface structure */
- typedef struct wmi_bpf_get_capability_cmd_s {
- A_UINT32 tlv_header;
- A_UINT32 reserved; /* reserved for future use - must be filled with 0x0 */
- } wmi_bpf_get_capability_cmd_fixed_param;
- typedef struct wmi_bpf_capability_info_evt_s {
- A_UINT32 tlv_header;
- A_UINT32 bpf_version; /* fw's implement version */
- A_UINT32 max_bpf_filters; /* max filters that fw supports */
- A_UINT32 max_bytes_for_bpf_inst; /* the maximum bytes that can be used as bpf instructions */
- A_UINT32 fw_active_bpf_support_mcbc_modes; /* multicast/broadcast - refer to FW_ACTIVE_BPF_MODE, it can be 'or' of them */
- A_UINT32 fw_active_bpf_support_uc_modes; /* unicast - refer to FW_ACTIVE_BPF_MODE, it can be 'or' of them */
- } wmi_bpf_capability_info_evt_fixed_param;
- /* bit 0 of flags: report counters */
- #define WMI_BPF_GET_VDEV_STATS_FLAG_CTR_S 0
- #define WMI_BPF_GET_VDEV_STATS_FLAG_CTR_M 0x1
- typedef struct wmi_bpf_get_vdev_stats_cmd_s {
- A_UINT32 tlv_header;
- A_UINT32 flags;
- A_UINT32 vdev_id;
- } wmi_bpf_get_vdev_stats_cmd_fixed_param;
- typedef struct wmi_bpf_vdev_stats_info_evt_s {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 num_filters;
- A_UINT32 num_checked_pkts;
- A_UINT32 num_dropped_pkts;
- } wmi_bpf_vdev_stats_info_evt_fixed_param;
- typedef struct wmi_bpf_set_vdev_instructions_cmd_s {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 filter_id;
- A_UINT32 bpf_version; /* host bpf version */
- A_UINT32 total_length;
- A_UINT32 current_offset;
- A_UINT32 current_length;
- /*
- * The TLV follows:
- * A_UINT8 buf_inst[]; <-- Variable length buffer for the instuctions
- */
- } wmi_bpf_set_vdev_instructions_cmd_fixed_param;
- #define BPF_FILTER_ID_ALL 0xFFFFFFFF
- typedef struct wmi_bpf_del_vdev_instructions_cmd_s {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 filter_id; /* BPF_FILTER_ID_ALL means delete all */
- } wmi_bpf_del_vdev_instructions_cmd_fixed_param;
- typedef struct wmi_bpf_set_vdev_active_mode_cmd_s {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 mcbc_mode; /* refer to FW_ACTIVE_BPF_MODE */
- A_UINT32 uc_mode; /* refer to FW_ACTIVE_BPF_MODE */
- } wmi_bpf_set_vdev_active_mode_cmd_fixed_param;
- typedef struct wmi_bpf_set_vdev_enable_cmd_s {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 is_enabled; /* fw assume host default enables */
- } wmi_bpf_set_vdev_enable_cmd_fixed_param;
- typedef struct wmi_bpf_set_vdev_work_memory_cmd_s {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 bpf_version; /* bpf instruction version */
- A_UINT32 program_len; /* the program length may be changed by this command */
- A_UINT32 addr_offset; /* start writing addr in the working memory */
- A_UINT32 length; /* the writing size of this command (byte units) */
- /*
- * The TLV follows:
- * A_UINT8 buf_inst[]; <-- Variable length buffer with the data to write
- */
- } wmi_bpf_set_vdev_work_memory_cmd_fixed_param;
- typedef struct wmi_bpf_get_vdev_work_memory_cmd_s {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 addr_offset; /* start reading addr in the working memory */
- A_UINT32 length; /* reading size from addr (byte units) */
- } wmi_bpf_get_vdev_work_memory_cmd_fixed_param;
- typedef struct wmi_bpf_get_vdev_work_memory_resp_evt_s {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 offset; /* read memory offset from start_addr */
- A_UINT32 length; /* read memory length of this command */
- A_UINT32 fragment; /* 1 means more data will come, 0 means last fragment */
- /*
- * The TLV follows:
- * A_UINT8 buf_inst[]; <-- Variable length buffer containing the read data
- */
- } wmi_bpf_get_vdev_work_memory_resp_evt_fixed_param;
- #define AES_BLOCK_LEN 16 /* in bytes */
- #define FIPS_KEY_LENGTH_128 16 /* in bytes */
- #define FIPS_KEY_LENGTH_256 32 /* in bytes */
- #define FIPS_ENCRYPT_CMD 0
- #define FIPS_DECRYPT_CMD 1
- #define FIPS_ENGINE_AES_CTR 0
- #define FIPS_ENGINE_AES_MIC 1
- #define FIPS_ERROR_OPER_TIMEOUT 1
- typedef enum {
- WMI_FIPS_KEY_CIPHER_CCM,
- WMI_FIPS_KEY_CIPHER_GCM
- } wmi_fips_key_cipher;
- typedef enum {
- WMI_FIPS_DISABLE,
- WMI_FIPS_ENABLE
- } wmi_fips_mode_set;
- /* WMI_PDEV_FIPS_CMDID */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_fips_cmd_fixed_param */
- union {
- A_UINT32 mac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- };
- A_UINT32 fips_cmd; /* FIPS_ENCRYPT or FIPS_DECRYPT */
- A_UINT32 mode; /* FIPS_ENGINE_AES_CTR or FIPS_ENGINE_AES_MIC */
- A_UINT32 key_len; /* FIPS_KEY_LENGTH_128 or FIPS_KEY_LENGTH_256 (units = bytes) */
- A_UINT8 key[WMI_MAX_KEY_LEN]; /* Key */
- A_UINT32 data_len; /* data length */
- /*
- * Following this structure is the TLV:
- * A_UINT32 data[1]; <-- In Data (keep this in the end)
- */
- } wmi_pdev_fips_cmd_fixed_param;
- #define MAX_IVNONCE_LEN_FIPS_EXTEND 16
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_fips_extend_cmd_init_params */
- A_UINT32 fips_cmd; /* FIPS_ENCRYPT or FIPS_DECRYPT */
- A_UINT32 key_cipher; /* CCM or GCM */
- A_UINT32 key_len; /* FIPS_KEY_LENGTH_128 or FIPS_KEY_LENGTH_256: 16/32 bytes */
- A_UINT8 key[WMI_MAX_KEY_LEN]; /* Key if this message is sent by a big-endian host, the byte-ordering of this array needs to be maintained (by manually byte-swapping this array's contents to make up for the automatic byte-swapping done by the copy engine). */
- A_UINT32 nonce_iv_len;
- A_UINT8 nonce_iv[MAX_IVNONCE_LEN_FIPS_EXTEND]; /* if this message is sent by a big-endian host, the byte-ordering of this array needs to be maintained (by manually byte-swapping this array's contents to make up for the automatic byte-swapping done by the copy engine).*/
- A_UINT32 tag_len; /* 8 or 16 */
- A_UINT32 aad_len;
- A_UINT32 payload_len;/* Plaintext length */
- } wmi_fips_extend_cmd_init_params;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_fips_extend_cmd_fixed_param */
- A_UINT32 pdev_id;
- A_UINT32 fips_cookie; /* Cookie value to identify test vector */
- A_UINT32 frag_idx; /* Fragment Number */
- A_UINT32 more_bit; /* Set to 0 for last fragment number */
- A_UINT32 data_len; /* data length ()*/
- /*
- * Following this structure are the TLVs:
- * wmi_fips_extend_cmd_init_params cmd_params
- * A_UINT32 data[1]; <-- In Data ((aad, payload in order))
- */
- } wmi_pdev_fips_extend_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_fips_extend_cmd_fixed_param */
- A_UINT32 pdev_id;
- A_UINT32 fips_mode_set; /*FIPS_MODE_ENABLE -Enable, FIPS_MODE_DISABLE -disable */
- } wmi_pdev_fips_mode_set_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_featureset_cmd_fixed_param */
- /*
- * Following this structure are the TLVs:
- * A_UINT32 feature_set_bitmap[]; <-- Host supported feature info,
- * array length is equal to
- * WMI_FEATURE_SET_BITMAP_ARRAY_LEN32.
- */
- } wmi_pdev_featureset_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_smart_ant_enable_cmd_fixed_param */
- union {
- A_UINT32 mac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- };
- A_UINT32 enable; /* 1:enable, 0:disable */
- A_UINT32 mode; /* 1:GPIO parallel mode, 0:GPIO serial mode */
- A_UINT32 rx_antenna; /* rx antenna */
- A_UINT32 tx_default_antenna; /* tx default antenna */
- /*
- * Following this structure is the TLV:
- * wmi_pdev_smart_ant_gpio_handle
- */
- } wmi_pdev_smart_ant_enable_cmd_fixed_param;
- /** GPIO pins/function values to control antennas */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_smart_ant_gpio_handle */
- A_UINT32 gpio_pin; /* For serial: index 0-strobe index 1-data, For Parallel: per stream */
- A_UINT32 gpio_func; /* GPIO function values for Smart Antenna */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_pdev_smart_ant_gpio_handle;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_smart_ant_set_rx_antenna_cmd_fixed_param */
- union {
- A_UINT32 mac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- };
- A_UINT32 rx_antenna;
- } wmi_pdev_smart_ant_set_rx_antenna_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_smart_ant_set_tx_antenna_cmd_fixed_param */
- /** unique id identifying the vdev, generated by the caller */
- A_UINT32 vdev_id; /* ID of the vdev this peer belongs to */
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /*
- * Following this structure is the TLV:
- * wmi_peer_smart_ant_set_tx_antenna_series
- */
- } wmi_peer_smart_ant_set_tx_antenna_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_smart_ant_set_tx_antenna_series */
- /* antenna array */
- A_UINT32 antenna_series;
- } wmi_peer_smart_ant_set_tx_antenna_series;
- #define WMI_PER_VALID_BIT_POS 0
- #define WMI_PER_VALID_NUM_BITS 1
- #define WMI_GET_PER_VALID(per_threshold) \
- WMI_GET_BITS(per_threshold, WMI_PER_VALID_BIT_POS, WMI_PER_VALID_NUM_BITS)
- #define WMI_PER_VALID_SET(per_threshold, value) \
- WMI_SET_BITS(per_threshold, WMI_PER_VALID_BIT_POS, WMI_PER_VALID_NUM_BITS, value)
- #define WMI_PER_THRESHOLD_BIT_POS 1
- #define WMI_PER_THRESHOLD_NUM_BITS 8
- #define WMI_GET_PER_THRESHOLD(per_threshold) \
- WMI_GET_BITS(per_threshold, WMI_PER_THRESHOLD_BIT_POS, WMI_PER_THRESHOLD_NUM_BITS)
- #define WMI_PER_THRESHOLD_SET(per_threshold, value) \
- WMI_SET_BITS(per_threshold, WMI_PER_THRESHOLD_BIT_POS, WMI_PER_THRESHOLD_NUM_BITS, value)
- #define WMI_PER_MIN_TX_PKTS_BIT_POS 9
- #define WMI_PER_MIN_TX_PKTS_NUM_BITS 16
- #define WMI_GET_PER_MIN_TX_PKTS(per_threshold) \
- WMI_GET_BITS(per_threshold, WMI_PER_MIN_TX_PKTS_BIT_POS, WMI_PER_MIN_TX_PKTS_NUM_BITS)
- #define WMI_PER_MIN_TX_PKTS_SET(per_threshold, value) \
- WMI_SET_BITS(per_threshold, WMI_PER_MIN_TX_PKTS_BIT_POS, WMI_PER_MIN_TX_PKTS_NUM_BITS, value)
- #define WMI_RATE_SERIES_320_BIT_POS 0
- #define WMI_RATE_SERIES_320_NUM_BITS 16
- #define WMI_GET_RATE_SERIES_320(train_rate_series_ext) \
- WMI_GET_BITS(train_rate_series_ext, WMI_RATE_SERIES_320_BIT_POS, WMI_RATE_SERIES_320_NUM_BITS)
- #define WMI_SET_RATE_SERIES_320(train_rate_series_ext) \
- WMI_SET_BITS(train_rate_series_ext, WMI_RATE_SERIES_320_BIT_POS, WMI_RATE_SERIES_320_NUM_BITS, value)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_smart_ant_set_train_antenna_param */
- /* rate array */
- union {
- /* train_rate_series:
- * original name, used for 8-bit rate-code implementations
- */
- A_UINT32 train_rate_series;
- /* train_rate_series_lo:
- * Contains the lower 32 bits of rate array, for larger rate-code
- * implementations. This field is paired with train_rate_series_hi.
- */
- A_UINT32 train_rate_series_lo;
- };
- /* antenna array */
- A_UINT32 train_antenna_series;
- /* Rate flags */
- /* TODO: For future use? */
- A_UINT32 rc_flags;
- /* rate array -- continued */
- A_UINT32 train_rate_series_hi; /* Higher 32 bits of rate array */
- /* train_rate_series_ext:
- * 15:0 - 320Mhz rate
- * 31:16 - Reserved
- */
- A_UINT32 train_rate_series_ext; /* For 320Mhz and Reserved for other */
- } wmi_peer_smart_ant_set_train_antenna_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_smart_ant_set_train_antenna_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id; /* ID of the vdev this peer belongs to */
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /* num packets; 0-stop training */
- A_UINT32 num_pkts;
- /* per_threshold:
- * bits | interpretation
- * ------+--------------------------
- * 0 | PER Threshold is valid
- * 1:8 | Per Threshold
- * 9:24 | min_tx_pkts Minimum number of pkts need to be checked
- * 25:31 | Reserved
- */
- A_UINT32 per_threshold;
- /*
- * Following this structure is the TLV:
- * wmi_peer_smart_ant_set_train_antenna_param
- */
- } wmi_peer_smart_ant_set_train_antenna_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_smart_ant_set_node_config_ops_cmd_fixed_param */
- /** unique id identifying the vdev, generated by the caller */
- A_UINT32 vdev_id; /* ID of the vdev this peer belongs to */
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /* command id*/
- A_UINT32 cmd_id;
- /* number of arguments passed */
- A_UINT32 args_count;
- /*
- * Following this structure is the TLV:
- * A_UINT32 args[]; <-- argument list
- */
- } wmi_peer_smart_ant_set_node_config_ops_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_ant_ctrl_chain */
- A_UINT32 antCtrlChain;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_pdev_set_ant_ctrl_chain;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_ant_switch_tbl_cmd_fixed_param */
- A_UINT32 mac_id; /* MAC ID */
- A_UINT32 antCtrlCommon1;
- A_UINT32 antCtrlCommon2;
- /*
- * Following this structure is the TLV:
- * wmi_pdev_set_ant_ctrl_chain
- */
- } wmi_pdev_set_ant_switch_tbl_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_ctl_table_cmd_fixed_param */
- union {
- A_UINT32 mac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- };
- /** len of CTL info */
- A_UINT32 ctl_len;
- /* ctl array (len adjusted to number of words).
- * Following this structure is the TLV:
- * A_UINT32 ctl_info[1];
- */
- } wmi_pdev_set_ctl_table_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_bios_sar_cmd_fixed_param */
- A_UINT32 pdev_id; /* pdev_id for identifying the MAC, See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 sar_len;
- /* sar power array are stored in TLV, which follow this structure;
- * sar_len is the number of valid bytes in the sar power array;
- * sar power array contains 22 elements.
- * Each element stores the maximum SAR power on certain band.
- * Its type is A_UINT8 and its unit is 0.25 dBm.
- * sar_power[0] for chain0 2g
- * sar_power[1] for chain0 5g unii-1
- * ...
- * sar_power[4] for chain0 5g unii-4
- * sar_power[5] for chain0 6g unii-5
- * ...
- * sar_power[10] for chain0 6g unii-10
- * sar_power[11] for chain1 2g
- * ...
- * sar_power[21] for chain1 6g unii-10
- */
- A_UINT32 dbs_backoff_len;
- /* dbs_backoff follow sar array, its type is A_UINT8;
- * dbs_backoff[0] ~ dbs_backoff[5], these six elements are based on
- * maximum SAR power, and make some offset adjustment in DBS mode.
- * Their unit is 0.25 dB.
- * dbs_backoff[0] for chain 0 2G
- * dbs_backoff[1] for chain 0 5G
- * dbs_backoff[2] for chain 0 6G
- * dbs_backoff[3] for chain 1 2G
- * dbs_backoff[4] for chain 1 5G
- * dbs_backoff[5] for chain 1 6G
- */
- } wmi_pdev_set_bios_sar_table_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_bios_sar_cmd_fixed_param */
- A_UINT32 pdev_id; /* pdev_id for identifying the MAC, See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 geo_len;
- /* geo offset array is in TLV, followed this structure:
- * A_UINT8 Geo_offset[];
- * Geo_offset array has 18 elements. The meaning of each element is to
- * adjust offset based on maximum SAR power according to different regions.
- * Its unit is 0.25 dB.
- * Geo_offset[0] chain 0 FCC_Offset on 2G
- * Geo_offset[1] chain 0 FCC_Offset on 5G
- * Geo_offset[2] chain 0 FCC_Offset on 6G
- * Geo_offset[3] chain 0 CE_Offset on 2G
- * Geo_offset[4] chain 0 CE_Offset on 5G
- * Geo_offset[5] chain 0 CE_Offset on 6G
- * Geo_offset[6] chain 0 ROW_Offset on 2G
- * Geo_offset[7] chain 0 ROW_Offset on 5G
- * Geo_offset[8] chain 0 ROW_Offset on 6G
- * Geo_offset[9] chain 1 FCC_Offset on 2G
- * ...
- * Geo_offset[17] chain 1 ROW_Offset on 6G
- * In actual use, FW will subtract an offset value according to the region;
- */
- } wmi_pdev_set_bios_geo_table_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_bios_interface_cmd_fixed_param */
- A_UINT32 pdev_id; /* pdev_id for identifying the MAC, See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 param_type_id; /* BIOS parameters type, see bios_param_type_e */
- /* length:
- * Number of valid bytes in A_UINT8 TLV array that follows this
- * fixed_param TLV.
- * The number of bytes allocated in the A_UINT8 TLV array will be a
- * multiple of 4. The "length" field indicates how many of these
- * byte elements contain valid data; the remainder are only for
- * alignment padding and should be ignored.
- */
- A_UINT32 length;
- /* Following this structure is TLV, bios data array */
- } wmi_pdev_set_bios_interface_cmd_fixed_param;
- typedef enum {
- BIOS_PARAM_CCA_THRESHOLD_TYPE,
- /* CCA THR structure has 29 bytes, it includes control flag and
- * CCA THR parameters;
- *
- * If CCA_THR_Control is set 0, FW will still use
- * AGC_ENERGY_DETECT_THRESHOLD.agcEnergyDetThr in BDF, and detailed
- * CCA threshold do not need to be transported.
- * If CCA_THR_Control is set 1, FW needs to use CCA threshold parameters
- * in BIOS, and CCA THR parameters are provided in the subsequent A_UINT8
- * TLV array.
- *
- * In CCA THR parameters, ETSI / MKK / CHN use same CCA threshold,
- * and FCC / KOR use same CCA threshold. Its unit is in 1db,
- * which is relative to HW NF value.
- *
- * //control flag
- * A_UINT8 CCA_THR_Control
- *
- * //5G
- * A_UINT8 agcEnergyDetThr5G_thrCcaPri20dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr5G_thrCcaExt20dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr5G_thrCcaExt40dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr5G_thrCcaExt80dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr5G_thrCcaPri20dB_FCC_KOR
- * A_UINT8 agcEnergyDetThr5G_thrCcaExt20dB_FCC_KOR
- * A_UINT8 agcEnergyDetThr5G_thrCcaExt40dB_FCC_KOR
- * A_UINT8 agcEnergyDetThr5G_thrCcaExt80dB_FCC_KOR
- *
- * //2G
- * A_UINT8 agcEnergyDetThr2G_thrCcaPri20dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr2G_thrCcaExt20dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr2G_thrCcaExt40dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr2G_thrCcaExt80dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr2G_thrCcaPri20dB_FCC_KOR
- * A_UINT8 agcEnergyDetThr2G_thrCcaExt20dB_FCC_KOR
- * A_UINT8 agcEnergyDetThr2G_hrCcaExt40dB_FCC_KOR
- * A_UINT8 agcEnergyDetThr2G_hrCcaExt80dB_FCC_KOR
- *
- * //6G
- * A_UINT8 agcEnergyDetThr6G_thrCcaPri20dB_FCC_KOR
- * A_UINT8 agcEnergyDetThr6G_thrCcaExt20dB_FCC_KOR
- * A_UINT8 agcEnergyDetThr6G_thrCcaExt40dB_FCC_KOR
- * A_UINT8 agcEnergyDetThr6G_thrCcaExt80dB_FCC_KOR
- *
- * //6G-LPI/VLP
- * A_UINT8 agcEnergyDetThr6GLPI.thrCcaPri20dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr6GLPI thrCcaExt20dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr6GLPI thrCcaExt40dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr6GLPI.thrCcaExt80dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr6GVLP.thrCcaPri20dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr6GVLP thrCcaExt20dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr6GVLP thrCcaExt40dB_ETSI_MKK_CHN
- * A_UINT8 agcEnergyDetThr6GVLP.thrCcaExt80dB_ETSI_MKK_CHN
- */
- BIOS_PARAM_TAS_CONFIG_TYPE,
- /*
- * BIOS_PARAM_TAS_CONFIG_TYPE Structure has 108 bytes. Please Note these fields of A_UINT32 or A_INT32.
- * explicit endianness corrections will need to be done by any big-endian host when the little-endian target is paired with a big-endian host.
- * PowerLimitIndicator points out which region(FCC OR ICNIRP) power limit value should be used.
- * A bit of PowerLimitIndicator maps a country. bit value 0: ICNIRP 1: FCC
- *
- * A_UINT8 Version
- * A_UINT8 TASIsPairWith3rdPartyWwan
- * A_UINT8 SARAntennaGroupingExt[6] (6 Bytes)
- * A_UINT32 TASPeakModeIndicator[8] (32 Bytes)
- * A_UINT32 TAS_FCC_ICNIRP_Indicator[8] (32 Bytes)
- * A_UINT32 PowerLimitIndicator[8] (32 Bytes)
- * A_UINT8 reserveMarginDb (1 Bytes)
- * A_UINT8 reserved[3] (3 Bytes)
- */
- BIOS_PARAM_TAS_DATA_TYPE,
- /*
- * BIOS_PARAM_TAS_DATA_TYPE Structure has 69 bytes as below, power limit value unit is 0.25 dBm.
- * If Enable flag is 0, FW will not use power limit value of bios.
- *
- * A_UINT8 Version
- * A_UINT8 Enable Flag
- * A_UINT8 Power Table Index
- * ====================FCC POWER LIMIT VALUE======================
- * A_INT8 FCC 2 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm)
- * A_INT8 FCC 2 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm)
- * A_INT8 FCC 2 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm)
- * A_INT8 FCC 5 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-1, Ch32 ~ Ch48)
- * A_INT8 FCC 5 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-1, Ch32 ~ Ch48)
- * A_INT8 FCC 5 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-1, Ch32 ~ Ch48)
- * A_INT8 FCC 5 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-2, Ch50 ~ Ch144)
- * A_INT8 FCC 5 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-2, Ch50 ~ Ch144)
- * A_INT8 FCC 5 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-2, Ch50 ~ Ch144)
- * A_INT8 FCC 5 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-3, Ch149 ~ Ch161)
- * A_INT8 FCC 5 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-3, Ch149 ~ Ch161)
- * A_INT8 FCC 5 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-3, Ch149 ~ Ch161)
- * A_INT8 FCC 5 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-4, Ch163 ~ Ch177)
- * A_INT8 FCC 5 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-4, Ch163 ~ Ch177)
- * A_INT8 FCC 5 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-4, Ch163 ~ Ch177)
- * A_INT8 FCC 6 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-5) (Ch1, Ch2 ~ Ch41)
- * A_INT8 FCC 6 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-5) (Ch1, Ch2 ~ Ch41)
- * A_INT8 FCC 6 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-5) (Ch1, Ch2 ~ Ch41)
- * A_INT8 FCC 6 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-5) (Ch45 ~ Ch93)
- * A_INT8 FCC 6 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-5) (Ch45 ~ Ch93)
- * A_INT8 FCC 6 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-5) (Ch45 ~ Ch93)
- * A_INT8 FCC 6 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-6) (Ch97~ Ch113)
- * A_INT8 FCC 6 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-6) (Ch97~ Ch113)
- * A_INT8 FCC 6 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-6) (Ch97~ Ch113)
- * A_INT8 FCC 6 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-7) (Ch117~Ch149)
- * A_INT8 FCC 6 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-7) (Ch117~Ch149)
- * A_INT8 FCC 6 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-7) (Ch117~Ch149)
- * A_INT8 FCC 6 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-7) (Ch117~Ch149)
- * A_INT8 FCC 6 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-7) (Ch117~Ch149)
- * A_INT8 FCC 6 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-7) (Ch117~Ch149)
- * A_INT8 FCC 6 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-8) (Ch117~Ch149)
- * A_INT8 FCC 6 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-8) (Ch117~Ch149)
- * A_INT8 FCC 6 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-8) (Ch117~Ch149)
- * ====================ICNIRP POWER LIMIT VALUE======================
- * A_INT8 ICNIRP 2 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm)
- * A_INT8 ICNIRP 2 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm)
- * A_INT8 ICNIRP 2 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm)
- * A_INT8 ICNIRP 5 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-1, Ch32 ~ Ch48)
- * A_INT8 ICNIRP 5 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-1, Ch32 ~ Ch48)
- * A_INT8 ICNIRP 5 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-1, Ch32 ~ Ch48)
- * A_INT8 ICNIRP 5 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-2, Ch50 ~ Ch144)
- * A_INT8 ICNIRP 5 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-2, Ch50 ~ Ch144)
- * A_INT8 ICNIRP 5 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-2, Ch50 ~ Ch144)
- * A_INT8 ICNIRP 5 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-3, Ch149 ~ Ch161)
- * A_INT8 ICNIRP 5 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-3, Ch149 ~ Ch161)
- * A_INT8 ICNIRP 5 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-3, Ch149 ~ Ch161)
- * A_INT8 ICNIRP 5 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-4, Ch163 ~ Ch177)
- * A_INT8 ICNIRP 5 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-4, Ch163 ~ Ch177)
- * A_INT8 ICNIRP 5 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-4, Ch163 ~ Ch177)
- * A_INT8 ICNIRP 6 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-5) (Ch1, Ch2 ~ Ch41)
- * A_INT8 ICNIRP 6 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-5) (Ch1, Ch2 ~ Ch41)
- * A_INT8 ICNIRP 6 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-5) (Ch1, Ch2 ~ Ch41)
- * A_INT8 ICNIRP 6 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-5) (Ch45 ~ Ch93)
- * A_INT8 ICNIRP 6 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-5) (Ch45 ~ Ch93)
- * A_INT8 ICNIRP 6 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-5) (Ch45 ~ Ch93)
- * A_INT8 ICNIRP 6 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-6) (Ch97~ Ch113)
- * A_INT8 ICNIRP 6 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-6) (Ch97~ Ch113)
- * A_INT8 ICNIRP 6 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-6) (Ch97~ Ch113)
- * A_INT8 ICNIRP 6 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-7) (Ch117~Ch149)
- * A_INT8 ICNIRP 6 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-7) (Ch117~Ch149)
- * A_INT8 ICNIRP 6 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-7) (Ch117~Ch149)
- * A_INT8 ICNIRP 6 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-7) (Ch117~Ch149)
- * A_INT8 ICNIRP 6 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-7) (Ch117~Ch149)
- * A_INT8 ICNIRP 6 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-7) (Ch117~Ch149)
- * A_INT8 ICNIRP 6 GHz SISO (Chain0) Power Limit Value(unit: 0.25dBm) (UNII-8) (Ch117~Ch149)
- * A_INT8 ICNIRP 6 GHz SISO (Chain1) Power Limit Value(unit: 0.25dBm) (UNII-8) (Ch117~Ch149)
- * A_INT8 ICNIRP 6 GHz MIMO (Chain0 + Chain1) Power Limit Value(unit: 0.25dBm) (UNII-8) (Ch117~Ch149)
- */
- BIOS_PARAM_TYPE_BANDEDGE_CTL_POWER,
- /*
- * BIOS_PARAM_TYPE_BANDEDGE_CTL_POWER Structure has 100 bytes as below, CTL limit power unit is 0.25 dBm.
- * If Enable flag is 0, FW will not use power limit value of bios.
- *
- * A_UINT8 version
- * A_UINT8 enableFlag (always 1)
- * A_UINT8 reserved[2] for 4 byte alignment,
- * ====================2G CTL POWER LIMIT ======================
- * A_INT8 2G 20M Channel Center Freq 2412 CTL Limit Power SU
- * A_INT8 2G 20M Channel Center Freq 2412 CTL Limit Power OFDMA
- * A_INT8 2G 20M Channel Center Freq 2417 CTL Limit Power SU
- * A_INT8 2G 20M Channel Center Freq 2417 CTL Limit Power OFDMA
- * A_INT8 2G 20M Channel Center Freq 2462 CTL Limit Power SU
- * A_INT8 2G 20M Channel Center Freq 2462 CTL Limit Power OFDMA
- * A_INT8 2G 20M Channel Center Freq 2467 CTL Limit Power SU
- * A_INT8 2G 20M Channel Center Freq 2467 CTL Limit Power OFDMA
- * A_INT8 2G 20M Channel Center Freq 2472 CTL Limit Power SU
- * A_INT8 2G 20M Channel Center Freq 2472 CTL Limit Power OFDMA
- * A_INT8 2G 40M Channel Center Freq 2422 CTL Limit Power SU
- * A_INT8 2G 40M Channel Center Freq 2422 CTL Limit Power OFDMA
- * A_INT8 2G 40M Channel Center Freq 2427 CTL Limit Power SU
- * A_INT8 2G 40M Channel Center Freq 2427 CTL Limit Power OFDMA
- * A_INT8 2G 40M Channel Center Freq 2452 CTL Limit Power SU
- * A_INT8 2G 40M Channel Center Freq 2452 CTL Limit Power OFDMA
- * A_INT8 2G 40M Channel Center Freq 2457 CTL Limit Power SU
- * A_INT8 2G 40M Channel Center Freq 2457 CTL Limit Power OFDMA
- * A_INT8 2G 40M Channel Center Freq 2462 CTL Limit Power SU
- * A_INT8 2G 40M Channel Center Freq 2462 CTL Limit Power OFDMA
- * ====================5G CTL POWER LIMIT ======================
- * A_INT8 5G 20M Channel Center Freq 5180 CTL Limit Power SU
- * A_INT8 5G 20M Channel Center Freq 5180 CTL Limit Power OFDMA
- * A_INT8 5G 20M Channel Center Freq 5320 CTL Limit Power SU
- * A_INT8 5G 20M Channel Center Freq 5320 CTL Limit Power OFDMA
- * A_INT8 5G 20M Channel Center Freq 5500 CTL Limit Power SU
- * A_INT8 5G 20M Channel Center Freq 5500 CTL Limit Power OFDMA
- * A_INT8 5G 20M Channel Center Freq 5700 CTL Limit Power SU
- * A_INT8 5G 20M Channel Center Freq 5700 CTL Limit Power OFDMA
- * A_INT8 5G 20M Channel Center Freq 5745 CTL Limit Power SU
- * A_INT8 5G 20M Channel Center Freq 5745 CTL Limit Power OFDMA
- * A_INT8 5G 20M Channel Center Freq 5825 CTL Limit Power SU
- * A_INT8 5G 20M Channel Center Freq 5825 CTL Limit Power OFDMA
- * A_INT8 5G 20M Channel Center Freq 5845 CTL Limit Power SU
- * A_INT8 5G 20M Channel Center Freq 5845 CTL Limit Power OFDMA
- * A_INT8 5G 20M Channel Center Freq 5885 CTL Limit Power SU
- * A_INT8 5G 20M Channel Center Freq 5885 CTL Limit Power OFDMA
- * A_INT8 5G 40M Channel Center Freq 5190 CTL Limit Power SU
- * A_INT8 5G 40M Channel Center Freq 5190 CTL Limit Power OFDMA
- * A_INT8 5G 40M Channel Center Freq 5310 CTL Limit Power SU
- * A_INT8 5G 40M Channel Center Freq 5310 CTL Limit Power OFDMA
- * A_INT8 5G 40M Channel Center Freq 5510 CTL Limit Power SU
- * A_INT8 5G 40M Channel Center Freq 5510 CTL Limit Power OFDMA
- * A_INT8 5G 40M Channel Center Freq 5670 CTL Limit Power SU
- * A_INT8 5G 40M Channel Center Freq 5670 CTL Limit Power OFDMA
- * A_INT8 5G 40M Channel Center Freq 5755 CTL Limit Power SU
- * A_INT8 5G 40M Channel Center Freq 5755 CTL Limit Power OFDMA
- * A_INT8 5G 40M Channel Center Freq 5795 CTL Limit Power SU
- * A_INT8 5G 40M Channel Center Freq 5795 CTL Limit Power OFDMA
- * A_INT8 5G 40M Channel Center Freq 5835 CTL Limit Power SU
- * A_INT8 5G 40M Channel Center Freq 5835 CTL Limit Power OFDMA
- * A_INT8 5G 40M Channel Center Freq 5875 CTL Limit Power SU
- * A_INT8 5G 40M Channel Center Freq 5875 CTL Limit Power OFDMA
- * A_INT8 5G 80M Channel Center Freq 5210 CTL Limit Power SU
- * A_INT8 5G 80M Channel Center Freq 5210 CTL Limit Power OFDMA
- * A_INT8 5G 80M Channel Center Freq 5290 CTL Limit Power SU
- * A_INT8 5G 80M Channel Center Freq 5290 CTL Limit Power OFDMA
- * A_INT8 5G 80M Channel Center Freq 5530 CTL Limit Power SU
- * A_INT8 5G 80M Channel Center Freq 5530 CTL Limit Power OFDMA
- * A_INT8 5G 80M Channel Center Freq 5610 CTL Limit Power SU
- * A_INT8 5G 80M Channel Center Freq 5610 CTL Limit Power OFDMA
- * A_INT8 5G 80M Channel Center Freq 5775 CTL Limit Power SU
- * A_INT8 5G 80M Channel Center Freq 5775 CTL Limit Power OFDMA
- * A_INT8 5G 80M Channel Center Freq 5855 CTL Limit Power SU
- * A_INT8 5G 80M Channel Center Freq 5855 CTL Limit Power OFDMA
- * A_INT8 5G 160M Channel Center Freq 5250 CTL Limit Power SU
- * A_INT8 5G 160M Channel Center Freq 5250 CTL Limit Power OFDMA
- * A_INT8 5G 160M Channel Center Freq 5570 CTL Limit Power SU
- * A_INT8 5G 160M Channel Center Freq 5570 CTL Limit Power OFDMA
- * A_INT8 5G 160M Channel Center Freq 5815 CTL Limit Power SU
- * A_INT8 5G 160M Channel Center Freq 5815 CTL Limit Power OFDMA
- * A_INT8 5G 320M Channel Center Freq 5650 CTL Limit Power SU (5650 Punctured 1111_1111_1111_0000)
- * A_INT8 5G 320M Channel Center Freq 5650 CTL Limit Power OFDMA (5650 Punctured 1111_1111_1111_0000)
- * ====================6G CTL POWER LIMIT ======================
- * A_INT8 6G 20M Channel Center Freq 5935 CTL Limit Power SU
- * A_INT8 6G 20M Channel Center Freq 5935 CTL Limit Power OFDMA
- * A_INT8 6G 20M Channel Center Freq 5955 CTL Limit Power SU
- * A_INT8 6G 20M Channel Center Freq 5955 CTL Limit Power OFDMA
- * A_INT8 6G 20M Channel Center Freq 6415 CTL Limit Power SU
- * A_INT8 6G 20M Channel Center Freq 6415 CTL Limit Power OFDMA
- * A_INT8 6G 20M Channel Center Freq 7115 CTL Limit Power SU
- * A_INT8 6G 20M Channel Center Freq 7115 CTL Limit Power OFDMA
- * A_INT8 6G 40M Channel Center Freq 5965 CTL Limit Power SU
- * A_INT8 6G 40M Channel Center Freq 5965 CTL Limit Power OFDMA
- * A_INT8 6G 40M Channel Center Freq 6405 CTL Limit Power SU
- * A_INT8 6G 40M Channel Center Freq 6405 CTL Limit Power OFDMA
- * A_INT8 6G 80M Channel Center Freq 5985 CTL Limit Power SU
- * A_INT8 6G 80M Channel Center Freq 5985 CTL Limit Power OFDMA
- * A_INT8 6G 80M Channel Center Freq 6385 CTL Limit Power SU
- * A_INT8 6G 80M Channel Center Freq 6385 CTL Limit Power OFDMA
- * A_INT8 6G 160M Channel Center Freq 6025 CTL Limit Power SU
- * A_INT8 6G 160M Channel Center Freq 6025 CTL Limit Power OFDMA
- * A_INT8 6G 160M Channel Center Freq 6345 CTL Limit Power SU
- * A_INT8 6G 160M Channel Center Freq 6345 CTL Limit Power OFDMA
- * A_INT8 6G 320M Channel Center Freq 6105 CTL Limit Power SU
- * A_INT8 6G 320M Channel Center Freq 6105 CTL Limit Power OFDMA
- * A_INT8 6G 320M Channel Center Freq 6265 CTL Limit Power SU
- * A_INT8 6G 320M Channel Center Freq 6265 CTL Limit Power OFDMA
- */
- BIOS_PARAM_TYPE_MAX,
- } bios_param_type_e;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_mimogain_table_cmd_fixed_param */
- union {
- A_UINT32 mac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- };
- A_UINT32 mimogain_info; /* see WMI_MIMOGAIN macros */
- /*
- * Bit 7:0 len of array gain table
- * Bit 8 bypass multi chain gain or not
- */
- /* array gain table(s) (len adjusted to number of words).
- * Following this structure is the TLV:
- * A_UINT32 arraygain_tbl[1];
- */
- } wmi_pdev_set_mimogain_table_cmd_fixed_param;
- #define WMI_MIMOGAIN_ARRAY_GAIN_LEN_S 0
- #define WMI_MIMOGAIN_ARRAY_GAIN_LEN (0xff << WMI_MIMOGAIN_ARRAY_GAIN_LEN_S)
- #define WMI_MIMOGAIN_ARRAY_GAIN_LEN_GET(x) WMI_F_MS(x,WMI_MIMOGAIN_ARRAY_GAIN_LEN)
- #define WMI_MIMOGAIN_ARRAY_GAIN_LEN_SET(x,z) WMI_F_RMW(x,z,WMI_MIMOGAIN_ARRAY_GAIN_LEN)
- #define WMI_MIMOGAIN_MULTI_CHAIN_BYPASS_S 8
- #define WMI_MIMOGAIN_MULTI_CHAIN_BYPASS (0x1 << WMI_MIMOGAIN_MULTI_CHAIN_BYPASS_S)
- #define WMI_MIMOGAIN_MULTI_CHAIN_BYPASS_GET(x) WMI_F_MS(x,WMI_MIMOGAIN_MULTI_CHAIN_BYPASS)
- #define WMI_MIMOGAIN_MULTI_CHAIN_BYPASS_SET(x,z) WMI_F_RMW(x,z,WMI_MIMOGAIN_MULTI_CHAIN_BYPASS)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_fwtest_set_param_cmd_fixed_param */
- /** parameter id */
- A_UINT32 param_id;
- /** parameter value */
- A_UINT32 param_value;
- } wmi_fwtest_set_param_cmd_fixed_param;
- #define WMI_ATF_DENOMINATION 1000 /* Expressed in 1 part in 1000 (permille) */
- #define WMI_ATF_SSID_FAIR_SCHED 0 /** fair ATF scheduling for vdev */
- #define WMI_ATF_SSID_STRICT_SCHED 1 /** strict ATF scheduling for vdev */
- #define WMI_ATF_SSID_FAIR_SCHED_WITH_UB 2 /** fair ATF scheduling with upper bound for VDEV */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_atf_peer_info */
- A_UINT32 tlv_header;
- wmi_mac_addr peer_macaddr;
- A_UINT32 atf_units; /* Based on 1 part in 1000 (per mille) */
- A_UINT32 atf_groupid; /* Group Id of the peers for ATF SSID grouping */
- A_UINT32 atf_units_reserved; /* Peer congestion threshold for future use */
- A_UINT32 vdev_id;
- A_UINT32 pdev_id;
- } wmi_atf_peer_info;
- #define WMI_ATF_PEER_UNITS_BIT_POS 0
- #define WMI_ATF_PEER_UNITS_NUM_BITS 16
- #define WMI_ATF_GET_PEER_UNITS(atf_peer_info) \
- WMI_GET_BITS(atf_peer_info,WMI_ATF_PEER_UNITS_BIT_POS,WMI_ATF_PEER_UNITS_NUM_BITS)
- #define WMI_ATF_SET_PEER_UNITS(atf_peer_info,val) \
- WMI_SET_BITS(atf_peer_info,WMI_ATF_PEER_UNITS_BIT_POS,WMI_ATF_PEER_UNITS_NUM_BITS, val)
- #define WMI_ATF_GROUP_ID_BIT_POS 16
- #define WMI_ATF_GROUP_ID_NUM_BITS 8
- #define WMI_ATF_GET_GROUP_ID(atf_peer_info) \
- WMI_GET_BITS(atf_peer_info,WMI_ATF_GROUP_ID_BIT_POS,WMI_ATF_GROUP_ID_NUM_BITS)
- #define WMI_ATF_SET_GROUP_ID(atf_peer_info,val) \
- WMI_SET_BITS(atf_peer_info,WMI_ATF_GROUP_ID_BIT_POS,WMI_ATF_GROUP_ID_NUM_BITS, val)
- #define WMI_ATF_EXPLICIT_PEER_FLAG_BIT_POS 24
- #define WMI_ATF_EXPLICIT_PEER_FLAG_NUM_BITS 1
- #define WMI_ATF_GET_EXPLICIT_PEER_FLAG(atf_peer_info) \
- WMI_GET_BITS(atf_peer_info,WMI_ATF_EXPLICIT_PEER_FLAG_BIT_POS,WMI_ATF_EXPLICIT_PEER_FLAG_NUM_BITS)
- #define WMI_ATF_SET_EXPLICIT_PEER_FLAG(atf_peer_info,val) \
- WMI_SET_BITS(atf_peer_info,WMI_ATF_EXPLICIT_PEER_FLAG_BIT_POS,WMI_ATF_EXPLICIT_PEER_FLAG_NUM_BITS, val)
- typedef struct {
- /* The new structure is an optimized version of wmi_atf_peer_info & wmi_atf_peer_ext_info combined */
- A_UINT32 tlv_header;
- wmi_mac_addr peer_macaddr;
- /* atf_peer_info
- * Bits 0-15 - atf_units (based on 1 part in 1000 (per mille))
- * Bits 16-23 - atf_groupid
- * Bit 24 - Configured Peer Indication (0/1), this bit would be set by
- * host to indicate that the peer has airtime % configured
- * explicitly by user
- * Bits 25-31 - Reserved (Shall be zero)
- */
- A_UINT32 atf_peer_info;
- } wmi_atf_peer_info_v2;
- #define WMI_ATF_PEER_FULL_UPDATE_BIT_POS 0
- #define WMI_ATF_PEER_FULL_UPDATE_NUM_BITS 1
- #define WMI_ATF_GET_PEER_FULL_UPDATE(atf_flags) \
- WMI_GET_BITS(atf_flags,WMI_ATF_PEER_FULL_UPDATE_BIT_POS,WMI_ATF_PEER_FULL_UPDATE_NUM_BITS)
- #define WMI_ATF_SET_PEER_FULL_UPDATE(atf_flags,val) \
- WMI_SET_BITS(atf_flags,WMI_ATF_PEER_FULL_UPDATE_BIT_POS,WMI_ATF_PEER_FULL_UPDATE_NUM_BITS,val)
- #define WMI_ATF_PEER_PENDING_WMI_CMDS_BIT_POS 1
- #define WMI_ATF_PEER_PENDING_WMI_CMDS_NUM_BITS 1
- #define WMI_ATF_GET_PEER_PENDING_WMI_CMDS(atf_flags) \
- WMI_GET_BITS(atf_flags,WMI_ATF_PEER_PENDING_WMI_CMDS_BIT_POS, WMI_ATF_PEER_PENDING_WMI_CMDS_NUM_BITS)
- #define WMI_ATF_SET_PEER_PENDING_WMI_CMDS(atf_flags,val) \
- WMI_SET_BITS(atf_flags,WMI_ATF_PEER_PENDING_WMI_CMDS_BIT_POS, WMI_ATF_PEER_PENDING_WMI_CMDS_NUM_BITS, val)
- #define WMI_ATF_PEER_PDEV_ID_VALID_BIT_POS 2
- #define WMI_ATF_PEER_PDEV_ID_VALID_NUM_BITS 1
- #define WMI_ATF_GET_PEER_PDEV_ID_VALID(atf_flags) \
- WMI_GET_BITS(atf_flags,WMI_ATF_PEER_PDEV_ID_VALID_BIT_POS, WMI_ATF_PEER_PDEV_ID_VALID_NUM_BITS)
- #define WMI_ATF_SET_PEER_PDEV_ID_VALID(atf_flags,val) \
- WMI_SET_BITS(atf_flags,WMI_ATF_PEER_PDEV_ID_VALID_BIT_POS, WMI_ATF_PEER_PDEV_ID_VALID_NUM_BITS, val)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_atf_request_fixed_param */
- A_UINT32 num_peers;
- A_UINT32 pdev_id;
- /* atf_flags
- * Bit 0 - full or partial update;
- * full update -
- * indicates that this is done for all the connected peers
- * partial update -
- * indicates update for only the newly connected peers
- * (whenever some peers gets connected/disconnected)
- * Bit 1 - indicates whether there are more iterations of WMI command
- * incoming after the current set of cmds
- * Example : If there are 500 peers present and tlv can accomodate
- * only 50 peers at a time, then this will be set for all the
- * instances of the WMI commands except the last one.
- * Bit 2 - indicates if pdev_id is valid or not
- * Bits 3-31 - Reserved (Shall be zero)
- */
- A_UINT32 atf_flags;
- /*
- * Following this structure is one of the following TLVs
- * (only one of them will have valid data in a particular message)
- * - struct wmi_atf_peer_info peer_info[num_peers];
- * - struct wmi_atf_peer_info_v2 peer_info_v2[num_peers];
- */
- } wmi_peer_atf_request_fixed_param;
- #define WMI_ATF_GROUP_SCHED_POLICY_BIT_POS 0
- #define WMI_ATF_GROUP_SCHED_POLICY_NUM_BITS 4
- #define WMI_ATF_GROUP_GET_GROUP_SCHED_POLICY(atf_group_flags) \
- WMI_GET_BITS(atf_group_flags,WMI_ATF_GROUP_SCHED_POLICY_BIT_POS,WMI_ATF_GROUP_SCHED_POLICY_NUM_BITS)
- #define WMI_ATF_GROUP_SET_GROUP_SCHED_POLICY(atf_group_flags,val) \
- WMI_SET_BITS(atf_group_flags,WMI_ATF_GROUP_SCHED_POLICY_BIT_POS,WMI_ATF_GROUP_SCHED_POLICY_NUM_BITS,val)
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_atf_group_info */
- A_UINT32 tlv_header;
- A_UINT32 atf_group_id; /* ID of the Air Time Management group */
- /* atf_group_units
- * Fraction of air time allowed for the group, in per mille units
- * (from 0-1000).
- * For example, to indicate that the group can use 12.3% of the air time,
- * the atf_group_units setting would be 123.
- */
- A_UINT32 atf_group_units;
- /* atf_group_flags
- * Bits 4-31 - Reserved (Shall be zero)
- * Bits 0-3 - Group Schedule Policy (Fair/Strict/Fair with upper bound)
- * Refer to WMI_ATF_SSID_ definitions
- */
- A_UINT32 atf_group_flags;
- } wmi_atf_group_info;
- #define WMI_ATF_GROUP_NUM_EXPLICIT_PEERS_BIT_POS 0
- #define WMI_ATF_GROUP_NUM_EXPLICIT_PEERS_NUM_BITS 16
- #define WMI_ATF_GROUP_GET_NUM_EXPLICIT_PEERS(atf_total_num_peers) \
- WMI_GET_BITS(atf_total_num_peers, WMI_ATF_GROUP_NUM_EXPLICIT_PEERS_BIT_POS, WMI_ATF_GROUP_NUM_EXPLICIT_PEERS_NUM_BITS)
- #define WMI_ATF_GROUP_SET_NUM_EXPLICIT_PEERS(atf_total_num_peers, val) \
- WMI_SET_BITS(atf_total_num_peers, WMI_ATF_GROUP_NUM_EXPLICIT_PEERS_BIT_POS, WMI_ATF_GROUP_NUM_EXPLICIT_PEERS_NUM_BITS, val)
- #define WMI_ATF_GROUP_NUM_IMPLICIT_PEERS_BIT_POS 16
- #define WMI_ATF_GROUP_NUM_IMPLICIT_PEERS_NUM_BITS 16
- #define WMI_ATF_GROUP_GET_NUM_IMPLICIT_PEERS(atf_total_num_peers) \
- WMI_GET_BITS(atf_total_num_peers, WMI_ATF_GROUP_NUM_IMPLICIT_PEERS_BIT_POS, WMI_ATF_GROUP_NUM_IMPLICIT_PEERS_NUM_BITS)
- #define WMI_ATF_GROUP_SET_NUM_IMPLICIT_PEERS(atf_total_num_peers, val) \
- WMI_SET_BITS(atf_total_num_peers, WMI_ATF_GROUP_NUM_IMPLICIT_PEERS_BIT_POS, WMI_ATF_GROUP_NUM_IMPLICIT_PEERS_NUM_BITS, val)
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_atf_group_info_v2 */
- A_UINT32 tlv_header;
- A_UINT32 atf_group_id; /* ID of the Air Time Management group */
- /* atf_group_units
- * Fraction of air time allowed for the group, in per mille units
- * (from 0-1000).
- * For example, to indicate that the group can use 12.3% of the air time,
- * the atf_group_units setting would be 123.
- */
- A_UINT32 atf_group_units;
- /* atf_group_flags
- * Bits 0-3 - Group Schedule Policy (Fair/Strict/Fair with upper bound)
- * Refer to WMI_ATF_SSID_ definitions
- * Bit 4-31 - Reserved (Shall be zero)
- */
- A_UINT32 atf_group_flags;
- /* atf_total_num_peers
- *
- * Bits 0-15 - total number of explicit peers
- * Bits 16-31 - total number of implicit peers
- * An explicit peer has an ATF % configured by the user.
- * An implicit peer has an ATF % =
- * (Group_ATF_percent - Total_Explicit_Peers_ATF_Percent) /
- * number of implicit peers
- * This computation can be done in FW based on atf_total_num_peers.
- */
- A_UINT32 atf_total_num_peers;
- /* atf_total_implicit_peer_units
- *
- * Air time allocated for all the implicit peers
- * (from 0-1000, in per mille units)
- */
- A_UINT32 atf_total_implicit_peer_units;
- } wmi_atf_group_info_v2;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_atf_ssid_grp_request_fixed_param */
- A_UINT32 pdev_id;
- /*
- * Following this structure is the one of the following TLVs
- * (only one of them will have valid data in a particular message)
- * - struct wmi_atf_group_info group_info[];
- * - struct wmi_atf_group_info_v2 group_info[];
- */
- } wmi_atf_ssid_grp_request_fixed_param;
- /* ATF Configurations for WMM ACs of a group, value for each AC shall be in
- * percentage (0-100).
- * This perecentage is relative to the residual airtime (derived by FW)
- * configured for the group.
- * When WMM ATF is not configured for a peer all values shall be 0.
- */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_atf_group_wmm_ac_info
- */
- A_UINT32 tlv_header;
- A_UINT32 atf_group_id; /* ID of the Air Time Management group */
- A_UINT32 atf_units_be;
- A_UINT32 atf_units_bk;
- A_UINT32 atf_units_vi;
- A_UINT32 atf_units_vo;
- } wmi_atf_group_wmm_ac_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_atf_grp_wmm_ac_cfg_request_fixed_param */
- A_UINT32 pdev_id;
- /*
- * Following this structure is the TLV:
- * struct wmi_atf_group_wmm_ac_info group_info[];
- */
- } wmi_atf_grp_wmm_ac_cfg_request_fixed_param;
- #define WMI_VDEV_LATENCY_TIDNUM_BIT_POS 0
- #define WMI_VDEV_LATENCY_TIDNUM_NUM_BITS 8
- #define WMI_VDEV_LATENCY_GET_TIDNUM(vdev_latency_info) \
- WMI_GET_BITS(vdev_latency_info, WMI_VDEV_LATENCY_TIDNUM_BIT_POS, WMI_VDEV_LATENCY_TIDNUM_NUM_BITS)
- #define WMI_VDEV_LATENCY_SET_TIDNUM(vdev_latency_info,val) \
- WMI_SET_BITS(vdev_latency_info, WMI_VDEV_LATENCY_TIDNUM_BIT_POS, WMI_VDEV_LATENCY_TIDNUM_NUM_BITS, val)
- #define WMI_VDEV_LATENCY_AC_BIT_POS 8
- #define WMI_VDEV_LATENCY_AC_NUM_BITS 2
- #define WMI_VDEV_LATENCY_GET_AC(vdev_latency_info) \
- WMI_GET_BITS(vdev_latency_info, WMI_VDEV_LATENCY_AC_BIT_POS, WMI_VDEV_LATENCY_AC_NUM_BITS)
- #define WMI_VDEV_LATENCY_SET_AC(vdev_latency_info,val) \
- WMI_SET_BITS(vdev_latency_info, WMI_VDEV_LATENCY_AC_BIT_POS, WMI_VDEV_LATENCY_AC_NUM_BITS, val)
- #define WMI_VDEV_LATENCY_DL_VALID_BIT_POS 10
- #define WMI_VDEV_LATENCY_DL_VALID_NUM_BITS 1
- #define WMI_VDEV_LATENCY_GET_DL_VALID(vdev_latency_info) \
- WMI_GET_BITS(vdev_latency_info, WMI_VDEV_LATENCY_DL_VALID_BIT_POS, WMI_VDEV_LATENCY_DL_VALID_NUM_BITS)
- #define WMI_VDEV_LATENCY_SET_DL_VALID(vdev_latency_info,val) \
- WMI_SET_BITS(vdev_latency_info, WMI_VDEV_LATENCY_DL_VALID_BIT_POS, WMI_VDEV_LATENCY_DL_VALID_NUM_BITS, val)
- #define WMI_VDEV_LATENCY_UL_VALID_BIT_POS 11
- #define WMI_VDEV_LATENCY_UL_VALID_NUM_BITS 1
- #define WMI_VDEV_LATENCY_GET_UL_VALID(vdev_latency_info) \
- WMI_GET_BITS(vdev_latency_info,WMI_VDEV_LATENCY_UL_VALID_BIT_POS, WMI_VDEV_LATENCY_UL_VALID_NUM_BITS)
- #define WMI_VDEV_LATENCY_SET_UL_VALID(vdev_latency_info,val) \
- WMI_SET_BITS(vdev_latency_info, WMI_VDEV_LATENCY_UL_VALID_BIT_POS, WMI_VDEV_LATENCY_UL_VALID_NUM_BITS, val)
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_vdev_latency_info
- */
- A_UINT32 tlv_header;
- /*
- * Maximum expected average delay between 2 schedules in milliseconds
- * of given TID type when it has active traffic.
- * 0x0 is considered as invalid service interval.
- */
- A_UINT32 service_interval;
- /* burst_size:
- * The number of bytes transmitted (in DL TIDs) / received (in UL ACs)
- * in service interval.
- */
- A_UINT32 burst_size;
- /* max_latency:
- * The maximum end to end latency expectation, in milliseconds.
- * If this value is 0x0, it shall be ignored.
- */
- A_UINT32 max_latency;
- /* max_per:
- * The maximum PER (as a percent) for the peer-TID, in range 1 - 100.
- * If this value is 0x0, it shall be ignored.
- */
- A_UINT32 max_per;
- /* min_tput:
- * The minimum guaranteed throughput to the peer-TID, in Kbps.
- * If this value is 0x0, it shall be ignored.
- */
- A_UINT32 min_tput;
- /* vdev_latency_info
- * Bits 12 - 31 - Reserved (Shall be zero)
- * Bit 11 - UL latency config indication.
- * If this bit is set then this latency info will
- * be used when triggering UL traffic. Until the
- * AC specified in bits 8-9 has transferred at least
- * burst_size amount of UL data within the service
- * period, the AP will continue sending UL triggers
- * when the STA has data of the specified access
- * category ready to transmit.
- * Note that the TID specified in bits 0-7 does not
- * apply to UL; the TID-to-AC mapping applied to DL
- * data that can be adjusted by the TID specified
- * in bits 0-7 and the AC specified in bits 8-9 is
- * distinct from the TID-to-AC mapping applied to
- * UL data.
- * Bit 10 - DL latency config indication. If the bit is set
- * then DL TID will use this latency config.
- * Bits 8 - 9 - This bit has info on the custom AC of DL TID.
- * Also if bit 11 is set, the AP will apply some
- * of these latency specs (in particular, burst_size)
- * to UL traffic for this AC, by sending UL triggers
- * until the desired amount of data has been received
- * within the service period.
- * Bits 0 - 7 - Specifies the TID of interest that corresponds
- * to the AC specified in bits 8-9. This can be
- * used to adjust the TID-to-AC mapping applied to
- * DL data (if bit 10 is set).
- */
- A_UINT32 vdev_latency_info;
- } wmi_vdev_latency_info;
- /*
- * Currently wmi_vdev_tid_latency_config_fixed_param will be sent per
- * data tid to map the AC.
- * Also to configure VDEV level latency config to be used by all TIDs
- * based on the mapping.
- * VDEV restart is expected during this command
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_tid_latency_config_fixed_param */
- A_UINT32 pdev_id;
- A_UINT32 vdev_id;
- /*
- * Following this structure is the TLV:
- * struct wmi_vdev_latency_info vdev_latency_info[];
- */
- } wmi_vdev_tid_latency_config_fixed_param;
- #define WMI_TID_LATENCY_TIDNUM_BIT_POS 0
- #define WMI_TID_LATENCY_TIDNUM_NUM_BITS 8
- #define WMI_TID_LATENCY_GET_TIDNUM(latency_tid_info) \
- WMI_GET_BITS(latency_tid_info, WMI_TID_LATENCY_TIDNUM_BIT_POS, WMI_TID_LATENCY_TIDNUM_NUM_BITS)
- #define WMI_TID_LATENCY_SET_TIDNUM(latency_tid_info,val) \
- WMI_SET_BITS(latency_tid_info, WMI_TID_LATENCY_TIDNUM_BIT_POS, WMI_TID_LATENCY_TIDNUM_NUM_BITS, val)
- #define WMI_TID_LATENCY_AC_BIT_POS 8
- #define WMI_TID_LATENCY_AC_NUM_BITS 2
- #define WMI_TID_LATENCY_GET_AC(latency_tid_info) \
- WMI_GET_BITS(latency_tid_info, WMI_TID_LATENCY_AC_BIT_POS , WMI_TID_LATENCY_AC_NUM_BITS)
- #define WMI_TID_LATENCY_SET_AC(latency_tid_info,val) \
- WMI_SET_BITS(latency_tid_info, WMI_TID_LATENCY_AC_BIT_POS , WMI_TID_LATENCY_AC_NUM_BITS, val)
- #define WMI_TID_LATENCY_DL_ENABLE_BIT_POS 10
- #define WMI_TID_LATENCY_DL_ENABLE_NUM_BITS 1
- #define WMI_TID_LATENCY_GET_DL_ENABLE(latency_tid_info) \
- WMI_GET_BITS(latency_tid_info,WMI_TID_LATENCY_DL_ENABLE_BIT_POS, WMI_TID_LATENCY_DL_ENABLE_NUM_BITS)
- #define WMI_TID_LATENCY_SET_DL_ENABLE(latency_tid_info,val) \
- WMI_SET_BITS(latency_tid_info,WMI_TID_LATENCY_DL_ENABLE_BIT_POS, WMI_TID_LATENCY_DL_ENABLE_NUM_BITS, val)
- #define WMI_TID_LATENCY_UL_ENABLE_BIT_POS 11
- #define WMI_TID_LATENCY_UL_ENABLE_NUM_BITS 1
- #define WMI_TID_LATENCY_GET_UL_ENABLE(latency_tid_info) \
- WMI_GET_BITS(latency_tid_info,WMI_TID_LATENCY_UL_ENABLE_BIT_POS, WMI_TID_LATENCY_UL_ENABLE_NUM_BITS)
- #define WMI_TID_LATENCY_SET_UL_ENABLE(latency_tid_info,val) \
- WMI_SET_BITS(latency_tid_info,WMI_TID_LATENCY_UL_ENABLE_BIT_POS, WMI_TID_LATENCY_UL_ENABLE_NUM_BITS, val)
- #define WMI_LATENCY_BURST_SIZE_SUM_BIT_POS 12
- #define WMI_LATENCY_BURST_SIZE_SUM_NUM_BITS 2
- #define WMI_LATENCY_GET_BURST_SIZE_SUM(latency_tid_info) \
- WMI_GET_BITS(latency_tid_info, WMI_LATENCY_BURST_SIZE_SUM_BIT_POS, WMI_LATENCY_BURST_SIZE_SUM_NUM_BITS)
- #define WMI_LATENCY_SET_BURST_SIZE_SUM(latency_tid_info,val) \
- WMI_SET_BITS(latency_tid_info, WMI_LATENCY_BURST_SIZE_SUM_BIT_POS, WMI_LATENCY_BURST_SIZE_SUM_NUM_BITS, val)
- #define WMI_LATENCY_MSDUQ_ID_BIT_POS 14
- #define WMI_LATENCY_MSDUQ_ID_NUM_BITS 4
- #define WMI_LATENCY_GET_MSDUQ_ID(latency_tid_info) \
- WMI_GET_BITS(latency_tid_info, WMI_LATENCY_MSDUQ_ID_BIT_POS, WMI_LATENCY_MSDUQ_ID_NUM_BITS)
- #define WMI_LATENCY_SET_MSDUQ_ID(latency_tid_info,val) \
- WMI_SET_BITS(latency_tid_info, WMI_LATENCY_MSDUQ_ID_BIT_POS, WMI_LATENCY_MSDUQ_ID_NUM_BITS, val)
- #define WMI_LATENCY_DISABLE_UL_OFDMA_BIT_POS 18
- #define WMI_LATENCY_DISABLE_UL_OFDMA_NUM_BITS 1
- #define WMI_LATENCY_GET_DISABLE_UL_OFDMA(latency_tid_info) \
- WMI_GET_BITS(latency_tid_info, WMI_LATENCY_DISABLE_UL_OFDMA_BIT_POS, WMI_LATENCY_DISABLE_UL_OFDMA_NUM_BITS)
- #define WMI_LATENCY_SET_DISABLE_UL_OFDMA(latency_tid_info,val) \
- WMI_SET_BITS(latency_tid_info, WMI_LATENCY_DISABLE_UL_OFDMA_BIT_POS, WMI_LATENCY_DISABLE_UL_OFDMA_NUM_BITS, val)
- #define WMI_LATENCY_DISABLE_UL_MU_MIMO_BIT_POS 19
- #define WMI_LATENCY_DISABLE_UL_MU_MIMO_NUM_BITS 1
- #define WMI_LATENCY_GET_DISABLE_UL_MU_MIMO(latency_tid_info) \
- WMI_GET_BITS(latency_tid_info, WMI_LATENCY_DISABLE_UL_MU_MIMO_BIT_POS, WMI_LATENCY_DISABLE_UL_MU_MIMO_NUM_BITS)
- #define WMI_LATENCY_SET_DISABLE_UL_MU_MIMO(latency_tid_info,val) \
- WMI_SET_BITS(latency_tid_info, WMI_LATENCY_DISABLE_UL_MU_MIMO_BIT_POS, WMI_LATENCY_DISABLE_UL_MU_MIMO_NUM_BITS, val)
- #define WMI_LATENCY_SAWF_UL_PARAMS_FLAG_POS 20
- #define WMI_LATENCY_SAWF_UL_PARAMS_FLAG_NUM_BITS 1
- #define WMI_LATENCY_GET_SAWF_UL_PARAMS_BIT(latency_tid_info) \
- WMI_GET_BITS(latency_tid_info, WMI_LATENCY_SAWF_UL_PARAMS_FLAG_POS, WMI_LATENCY_SAWF_UL_PARAMS_FLAG_NUM_BITS)
- #define WMI_LATENCY_SET_SAWF_UL_PARAMS_BIT(latency_tid_info, val) \
- WMI_SET_BITS(latency_tid_info, WMI_LATENCY_SAWF_UL_PARAMS_FLAG_POS, WMI_LATENCY_SAWF_UL_PARAMS_FLAG_NUM_BITS, val)
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_tid_latency_info
- */
- A_UINT32 tlv_header;
- wmi_mac_addr dest_macaddr; /* Mac address of end client */
- /*
- * Maximum expected average delay between 2 schedules in milliseconds
- * of given TID type when it has active traffic.
- * 0x0 is considered as invalid service interval.
- */
- A_UINT32 service_interval;
- /*
- * Cumulative number of bytes are expected to be transmitted or
- * received in the service interval when this specific Peer-TID
- * has active traffic.
- * If cumulative number of bytes is 0x0, it is considered as
- * invalid burst size. In that case, firmware would try to transmit
- * and receive as many bytes as it can for this specific Peer-TID.
- * This burst size will be added or subtracted from vdev burst size
- * based on burst size sum bit in latency tid info.
- * The VDEV burst size will be considered to be 0 when no VDEV latency
- * command is received.
- * If host needs to set burst size for a peer then they can use the
- * peer cmd and set burst size sum bit to 1.
- */
- A_UINT32 burst_size_diff;
- /* max_latency:
- * The maximum end to end latency expectation, in milliseconds.
- * If this value is 0x0, it shall be ignored.
- */
- A_UINT32 max_latency;
- /* max_per:
- * The maximum PER (as a percent) for the peer-TID, in range 1 - 100
- * If this value is 0x0, it shall be ignored.
- */
- A_UINT32 max_per;
- /* min_tput:
- * The minimum guaranteed throughput to the peer-TID, in Kbps.
- * If this value is 0x0, it shall be ignored.
- */
- A_UINT32 min_tput;
- /* latency_tid_info
- * Bits 21-31 - Reserved (Shall be zero)
- * Bit 20 - Flag to indicate SAWF UL params (and not mesh latency)
- * Bit 19 - Disable UL MU-MIMO. If set, UL MU-MIMO is disabled
- * for the specified AC. Note that TID level control is
- * not possible for UL MU-MIMO (the granularity is AC).
- * Bit 18 - Disable UL OFDMA. If set, UL OFDMA is disabled for
- * the specified AC. Note that TID level control is not
- * possible for UL OFDMA (the granularity is AC).
- * Bits 14-17 - MSDU queue flow id within the TID for configuring
- * latency info per MSDU flow queue
- * Bit 12-13 - burst size sum. Bit to indicate whether to add or
- * subtract burst_size_diff from vdev cmd burst size:
- * 1 -> addition
- * 2 -> subtraction
- * Bit 11 - UL latency config indication.
- * If this bit is set then this latency info will
- * be used when triggering UL traffic. Until the
- * AC specified in bits 8-9 has transferred at least
- * burst_size amount of UL data within the service
- * period, the AP will continue sending UL triggers
- * when the STA has data of the specified access
- * category ready to transmit.
- * Note that the TID specified in bits 0-7 does not
- * apply to UL; the TID-to-AC mapping applied to DL
- * data that can be adjusted by the TID specified
- * in bits 0-7 and the AC specified in bits 8-9 is
- * distinct from the TID-to-AC mapping applied to
- * UL data.
- * Bit 10 - DL latency config indication. If the bit is set
- * then DL TID will use this latency config.
- * Bits 8 - 9 - This bit has info on the custom AC of DL TID.
- * Also if bit 11 is set, the AP will apply some
- * of these latency specs (in particular, burst_size)
- * to UL traffic for this AC, by sending UL triggers
- * until the desired amount of data has been received
- * within the service period.
- * Bits 0 - 7 - Specifies the TID of interest that corresponds
- * to the AC specified in bits 8-9. This can be
- * used to adjust the TID-to-AC mapping applied to
- * DL data (if bit 10 is set).
- */
- A_UINT32 latency_tid_info;
- } wmi_tid_latency_info;
- /*
- * Currently wmi_peer_tid_set_latency_request_fixed_param will be sent
- * per TID per latency configured client.
- * In future this command might come for multiple latency configured
- * clients together.
- * The clients are expected to be associated while receiving this command.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_tid_latency_config_fixed_param */
- A_UINT32 pdev_id;
- /*
- * Following this structure is the TLV:
- * struct wmi_tid_latency_info latency_info[];
- */
- } wmi_peer_tid_latency_config_fixed_param;
- #define WMI_ATF_GROUP_CFG_PEER_BIT_POS 0
- #define WMI_ATF_GROUP_CFG_PEER_NUM_BITS 1
- #define WMI_ATF_GROUP_GET_CFG_PEER_BIT(atf_peer_flags) \
- WMI_GET_BITS(atf_peer_flags,WMI_ATF_GROUP_CFG_PEER_BIT_POS,WMI_ATF_GROUP_CFG_PEER_NUM_BITS)
- #define WMI_ATF_GROUP_SET_CFG_PEER_BIT(atf_peer_flags,val) \
- WMI_SET_BITS(atf_peer_flags,WMI_ATF_GROUP_CFG_PEER_BIT_POS,WMI_ATF_GROUP_CFG_PEER_NUM_BITS,val)
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_atf_ext_info */
- A_UINT32 tlv_header;
- wmi_mac_addr peer_macaddr;
- A_UINT32 atf_group_id; /* Group Id of the peers for ATF SSID grouping */
- /* atf_peer_flags
- * Bits 1-31 - Reserved (Shall be zero)
- * Bit 0 - Configured Peer Indication (0/1), this bit would be set by
- * host to indicate that the peer has airtime % configured
- * explicitly by user.
- */
- A_UINT32 atf_peer_flags;
- } wmi_peer_atf_ext_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_atf_ext_request_fixed_param */
- A_UINT32 pdev_id;
- /*
- * Following this structure is the TLV:
- * struct wmi_peer_atf_ext_info peer_ext_info[];
- */
- } wmi_peer_atf_ext_request_fixed_param;
- /* Structure for Bandwidth Fairness peer information */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_bwf_peer_info */
- A_UINT32 tlv_header;
- wmi_mac_addr peer_macaddr;
- A_UINT32 bwf_guaranteed_bandwidth; /* BWF guaranteed_bandwidth for the peers in mbps */
- A_UINT32 bwf_max_airtime; /* BWF Maximum airtime percentage that can be allocated to the peer to meet the guaranteed_bandwidth */
- A_UINT32 bwf_peer_priority; /* BWF priority of the peer to allocate the tokens dynamically */
- A_UINT32 vdev_id;
- A_UINT32 pdev_id;
- } wmi_bwf_peer_info;
- /* Structure for Bandwidth Fairness peer request */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_bwf_request_fixed_param */
- A_UINT32 num_peers;
- /*
- * Following this structure is the TLV:
- * struct wmi_bwf_peer_info peer_info[num_peers];
- */
- } wmi_peer_bwf_request_fixed_param;
- /* Equal distribution of ATF air time within an VDEV. */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_atf_request_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 peer_atf_units; /* Per peer ATF units (per mille). */
- A_UINT32 pdev_id;
- } wmi_vdev_atf_request_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_ani_cck_config_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** parameter */
- A_UINT32 param;
- } wmi_pdev_get_ani_cck_config_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_ani_ofdm_config_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /** parameter */
- A_UINT32 param;
- } wmi_pdev_get_ani_ofdm_config_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_QBOOST_CFG_CMD_fixed_param */
- A_UINT32 vdev_id; /* ID of the vdev this peer belongs to */
- A_UINT32 qb_enable;
- wmi_mac_addr peer_macaddr;
- } WMI_QBOOST_CFG_CMD_fixed_param;
- #define WMI_INST_STATS_INVALID_RSSI 0
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_inst_rssi_stats_resp_fixed_param */
- A_UINT32 iRSSI; /* dB above the noise floor */
- /* peer MAC address */
- wmi_mac_addr peer_macaddr;
- A_UINT32 vdev_id; /* ID of the vdev this peer belongs to */
- } wmi_inst_rssi_stats_resp_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_cck_ofdm_rate_info */
- A_UINT32 ratecode_legacy; /* Rate code for CCK OFDM */
- } wmi_peer_cck_ofdm_rate_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_mcs_rate_info */
- A_UINT32 ratecode_20; /* Rate code for 20MHz BW */
- A_UINT32 ratecode_40; /* Rate code for 40MHz BW */
- A_UINT32 ratecode_80; /* Rate code for 80MHz BW */
- A_UINT32 ratecode_160; /* Rate code for 160MHz BW */
- A_UINT32 ratecode_320; /* Rate code for 320MHz BW */
- } wmi_peer_mcs_rate_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_ratecode_list_event_fixed_param */
- wmi_mac_addr peer_macaddr;
- A_UINT32 ratecount; /* Max Rate count for each mode */
- A_UINT32 vdev_id; /* ID of the vdev this peer belongs to */
- A_UINT32 pdev_id; /* ID of the pdev this peer belongs to */
- A_UINT32 ratecount_ext; /* Max Rate count for 160, 320MHz */
- /*
- * Following this structure are the TLV:
- * struct wmi_peer_cck_ofdm_rate_info;
- * struct wmi_peer_mcs_rate_info;
- */
- } wmi_peer_ratecode_list_event_fixed_param;
- typedef struct wmi_wds_addr_event {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wds_addr_event_fixed_param */
- A_UINT32 event_type[4];
- wmi_mac_addr peer_mac;
- wmi_mac_addr dest_mac;
- A_UINT32 vdev_id; /* ID of the vdev this peer belongs to */
- } wmi_wds_addr_event_fixed_param;
- /*
- * Enum values for WMI_PEER_PS_SUPPORTED_BITMAP field,
- * in wmi_peer_sta_ps_statechange_event structure.
- */
- typedef enum {
- /* Used to indicate that peer_ps_valid is valid */
- WMI_PEER_PS_VALID_SUPPORTED = 0x00000001,
- /* Used to indicate that peer_ps_timestamp field is valid */
- WMI_PEER_PS_TIMESTAMP_SUPPORTED = 0x00000002,
- } WMI_PEER_PS_SUPPORTED_BITMAP;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_sta_ps_statechange_event_fixed_param */
- wmi_mac_addr peer_macaddr;
- A_UINT32 peer_ps_state;
- /* Start of extended structure */
- /* Bitmap to indicate which fields in the extended structure are valid.
- * Bitmap values correspond to enum WMI_PEER_PS_SUPPORTED_BITMAP
- */
- A_UINT32 peer_ps_supported_bitmap;
- /* This field is used to indicate host of a valid PS state change.
- * 1 - indicates a valid PS state change.
- * 0 - indicates an invalid PS state change.
- * Host to ignore the power save duration calculation when peer_ps_valid = 0
- */
- A_UINT32 peer_ps_valid;
- /* This field indicates the time since target boot-up in MilliSeconds. */
- A_UINT32 peer_ps_timestamp;
- /* Indicates the vdev id for MLO case */
- wmi_vdev_id_info vdev_id_info;
- } wmi_peer_sta_ps_statechange_event_fixed_param;
- /* WMI_PDEV_FIPS_EVENTID */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_fips_event_fixed_param */
- union {
- A_UINT32 mac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- };
- A_UINT32 error_status; /* Error status: 0 (no err), 1, or OPER_TIMEOUT */
- A_UINT32 data_len; /* Data length */
- /*
- * Following this structure is the TLV:
- * A_UINT32 data[1]; <-- Out Data (keep this in the end)
- */
- } wmi_pdev_fips_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_fips_event_fixed_param */
- A_UINT32 pdev_id;
- A_UINT32 fips_cookie; /* Cookie value to identify test vector */
- A_UINT32 cmd_frag_idx; /* Fragment Number */
- A_UINT32 more_bit;
- A_UINT32 error_status; /* Error status: 0 (no err), 1, or OPER_TIMEOUT */
- A_UINT32 data_len; /* Data length CTlen+ TAGlen*/
- /*
- * Following this structure is the TLV:
- * A_UINT32 data[1]; <-- Out Data (ciphertext+tag)
- */
- } wmi_pdev_fips_extend_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_channel_hopping_event_fixed_param */
- union {
- A_UINT32 mac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- };
- /* Noise threshold iterations with high values */
- A_UINT32 noise_floor_report_iter;
- /* Total noise threshold iterations */
- A_UINT32 noise_floor_total_iter;
- } wmi_pdev_channel_hopping_event_fixed_param;
- enum {
- WMI_PDEV_RESERVE_AST_ENTRY_OK,
- WMI_PDEV_RESERVE_AST_ENTRY_HASH_COLLISION,
- WMI_PDEV_RESERVE_AST_ENTRY_CROSSING_AXI_BOUNDARY,
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_tpc_cmd_fixed_param */
- union {
- A_UINT32 mac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- };
- A_UINT32 rate_flags;
- /**
- * FLAG_ONE_CHAIN 0x00000001 - one chain mask
- * FLAG_TWO_CHAIN 0x00000003 - two chain mask
- * FLAG_THREE_CHAIN 0x00000007 - three chain mask
- * FLAG_FOUR_CHAIN 0x0000000F - four chain mask
- * FLAG_FIVE_CHAIN 0x0000001F - five chain mask
- * FLAG_SIX_CHAIN 0x0000003F - six chain mask
- * FLAG_SEVEN_CHAIN 0x0000007F - seven chain mask
- * FLAG_EIGHT_CHAIN 0x000000FF - eight chain mask
- * FLAG_STBC 0x00000100 - STBC is set
- * FLAG_40MHZ 0x00000200 - bits 9-10 used for BW:
- * FLAG_80MHZ 0x00000400 (bw >> 9) & 3 will give
- * FLAG_160MHZ 0x00000600 1 -> 40 MHz, 2 -> 80 MHz, 3 -> 160 MHz
- * FLAG_TXBF 0x00000800 - Tx Bf enabled
- * FLAG_RTSENA 0x00001000 - RTS enabled
- * FLAG_CTSENA 0x00002000 - CTS enabled
- * FLAG_LDPC 0x00004000 - LDPC set
- * FLAG_SGI 0x00008000 - Short guard interval
- * (0x00010000-0x00080000 unused)
- *------------------
- * 0x00100000-0x00700000 used for SU/MU/OFDMA tx mode
- * FLAG_SU 0x00100000 - SU Data
- * FLAG_DL_MU_MIMO_AC 0x00200000 - DL AC MU data
- * FLAG_DL_MU_MIMO_AX 0x00300000 - DL AX MU data
- * FLAG_DL_OFDMA 0x00400000 - DL OFDMA data
- * FLAG_UL_OFDMA 0x00500000 - UL OFDMA data
- * FLAG_UL_MU_MIMO 0x00600000 - UL MU data
- *------------------
- * */
- A_UINT32 nss;
- /**
- * NSS 0x0 - 0x7
- * */
- A_UINT32 preamble;
- /**
- * PREAM_OFDM - 0x0
- * PREAM_CCK - 0x1
- * PREAM_HT - 0x2
- * PREAM_VHT - 0x3
- * PREAM_HE - 0x4
- * */
- A_UINT32 hw_rate;
- /**
- * *** HW_OFDM_RATE ***
- * OFDM_48_MBPS - 0x0
- * OFDM_24_MBPS - 0x1
- * OFDM_12_MBPS - 0x2
- * OFDM_6_MBPS - 0x3
- * OFDM_54_MBPS - 0x4
- * OFDM_36_MBPS - 0x5
- * OFDM_18_MBPS - 0x6
- * OFDM_9_MBPS - 0x7
- *
- * *** HW_CCK_RATE ***
- * CCK_11_LONG_MBPS - 0x0
- * CCK_5_5_LONG_MBPS - 0x1
- * CCK_2_LONG_MBPS - 0x2
- * CCK_1_LONG_MBPS - 0x3
- * CCK_11_SHORT_MBPS - 0x4
- * CCK_5_5_SHORT_MBPS - 0x5
- * CCK_2_SHORT_MBPS - 0x6
- *
- * *** HW_HT / VHT_RATE ***
- * MCS 0x0 - 0xb
- * */
- } wmi_pdev_get_tpc_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_chip_power_stats_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_pdev_get_chip_power_stats_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_bcn_recv_stats_cmd_fixed_param */
- /** VDEV identifier */
- A_UINT32 vdev_id;
- } wmi_vdev_get_bcn_recv_stats_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_xgap_enable_cmd_fixed_param */
- A_UINT32 beacon_interval; /* in TU */
- A_UINT32 sap_lp_flag; /* bit 0 : set/unset for enter/exit XGAP */
- A_UINT32 dialog_token;
- A_UINT32 duration; /* in us : sap LP enter/exit duration, 0 for permanent exit */
- } wmi_xgap_enable_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_xgap_enable_complete_event_fixed_param */
- A_UINT32 dialog_token;
- A_UINT32 next_tsf_low32;
- A_UINT32 next_tsf_high32;
- } wmi_xgap_enable_complete_event_fixed_param;
- /*
- * wmi mws-coex command IDs
- */
- typedef enum {
- WMI_MWS_COEX_STATE = 0x01,
- WMI_MWS_COEX_DPWB_STATE,
- WMI_MWS_COEX_TDM_STATE,
- WMI_MWS_COEX_IDRX_STATE,
- WMI_MWS_COEX_ANTENNA_SHARING_STATE,
- } wmi_mws_coex_cmd_id;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_mws_coex_state_cmd_fixed_param */
- /** VDEV identifier */
- A_UINT32 vdev_id;
- /** Command ID (type: wmi_mws_coex_cmd_id) */
- A_UINT32 cmd_id;
- } wmi_vdev_get_mws_coex_info_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_tpc_event_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /*
- * Following this structure is the TLV:
- * A_UINT32 tpc[2];
- * tpc[0] - maximum power per rate
- * tpc[1] - minimum power per rate
- * Currently this event only provides max and min power limits
- * for a single rate. In the future this event may be expanded
- * to provide the information for multiple rates.
- * At that time, the format of the data will be provided.
- */
- } wmi_pdev_tpc_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_nfcal_power_all_channels_event_fixed_param */
- union {
- A_UINT32 mac_id; /* OBSOLETE - will be removed once all refs are gone */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- };
- A_UINT32 nfdBr_len;
- A_UINT32 nfdBm_len;
- A_UINT32 freqNum_len;
- /*
- * Following this structure is the TLV:
- * WMITLV_TAG_STRUC_wmi_pdev_nfcal_power_all_channels_nfdBr;
- * WMITLV_TAG_STRUC_wmi_pdev_nfcal_power_all_channels_nfdBm;
- * WMITLV_TAG_STRUC_wmi_pdev_nfcal_power_all_channels_freqNum;
- */
- } wmi_pdev_nfcal_power_all_channels_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_nfcal_power_all_channels_nfdBr */
- A_UINT32 nfdBr;
- } wmi_pdev_nfcal_power_all_channels_nfdBr;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_nfcal_power_all_channels_nfdBm */
- A_UINT32 nfdBm;
- } wmi_pdev_nfcal_power_all_channels_nfdBm;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_nfcal_power_all_channels_freqNum */
- A_UINT32 freqNum;
- } wmi_pdev_nfcal_power_all_channels_freqNum;
- /* Bit set/unset definitions for valid_bitmap field in ani_cck_event */
- #define WMI_ANI_CCK_EVENT_PDEV_ID_SET(bitmap, val) \
- WMI_SET_BITS(bitmap, 0, 8, val)
- #define WMI_ANI_CCK_EVENT_PDEV_ID_GET(bitmap) \
- WMI_GET_BITS(bitmap, 0, 8)
- #define WMI_ANI_CCK_EVENT_PDEV_ID_VALID_BIT_SET(bitmap, val) \
- WMI_SET_BITS(bitmap, 31, 1, val)
- #define WMI_ANI_CCK_EVENT_PDEV_ID_VALID_BIT_GET(bitmap) \
- WMI_GET_BITS(bitmap, 31, 1)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ani_cck_event_fixed_param */
- A_UINT32 cck_level;
- union {
- A_UINT32 pdev_id_valid__pdev_id__word;
- struct {
- /**
- * word containng the pdev_id for identifying the MAC
- * Contents:
- * bits 7:0 - pdev ID
- * bits 30:8 - reserved
- * bit 31 - pdev ID valid flag
- * See macros starting with WMI_ANI_CCK_EVENT_PDEV_ID_ for values.
- * pdev_id is valid when pdev_id_valid is set.
- */
- A_UINT32 pdev_id: 8,
- reserved: 23,
- pdev_id_valid: 1;
- };
- };
- } wmi_ani_cck_event_fixed_param;
- typedef enum wmi_power_debug_reg_fmt_type {
- /* WMI_POWER_DEBUG_REG_FMT_TYPE_ROME -> Dumps following 12 Registers
- * SOC_SYSTEM_SLEEP
- * WLAN_SYSTEM_SLEEP
- * RTC_SYNC_FORCE_WAKE
- * MAC_DMA_ISR
- * MAC_DMA_TXRX_ISR
- * MAC_DMA_ISR_S1
- * MAC_DMA_ISR_S2
- * MAC_DMA_ISR_S3
- * MAC_DMA_ISR_S4
- * MAC_DMA_ISR_S5
- * MAC_DMA_ISR_S6
- * MAC_DMA_ISR_S7
- */
- WMI_POWER_DEBUG_REG_FMT_TYPE_ROME,
- WMI_POWER_DEBUG_REG_FMT_TYPE_MAX = 0xf,
- } WMI_POWER_DEBUG_REG_FMT_TYPE;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_chip_power_stats_event_fixed_param */
- A_UINT32 cumulative_sleep_time_ms; /* maximum range is 35 hours, due to conversion from internal 0.03215 ms units to ms */
- A_UINT32 cumulative_total_on_time_ms; /* maximum range is 35 hours, due to conversion from internal 0.03215 ms units to ms */
- A_UINT32 deep_sleep_enter_counter; /* count of number of times chip enterred deep sleep */
- A_UINT32 last_deep_sleep_enter_tstamp_ms; /* Last Timestamp when Chip went to deep sleep */
- A_UINT32 debug_register_fmt; /* WMI_POWER_DEBUG_REG_FMT_TYPE enum, describes debug registers being dumped as part of the event */
- A_UINT32 num_debug_register; /* number of debug registers being sent to host */
- /*
- * Following this structure is the TLV:
- * A_UINT32 debug_registers[num_debug_registers];
- */
- } wmi_pdev_chip_power_stats_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_get_bcn_recv_stats_fixed_param */
- A_UINT32 vdev_id;
- /* total_bcn_cnt
- * total beacon count (tbtt instances)
- * After this value reaches 255 it saturates and stays at 255.
- * This field is used to determine which of the 256 bits in the
- * bmiss_bitmap field are valid.
- */
- A_UINT32 total_bcn_cnt;
- /* total_bmiss_cnt
- * Total beacon miss count in last 255 beacons, max value is 255.
- * This value is the number of bits set within bmiss_bitmap.
- */
- A_UINT32 total_bmiss_cnt;
- /* bmiss_bitmap
- * This bitmap indicates the status of the last 255 beacons.
- * If a bit is set, that means the corresponding beacon was missed.
- * Bit 0 of bmiss_bitmap[0] represents the most recent beacon.
- * The total_bcn_cnt field indicates how many bits within bmiss_bitmap
- * are valid.
- */
- A_UINT32 bmiss_bitmap[8];
- } wmi_vdev_bcn_recv_stats_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_mws_coex_state_fixed_param */
- A_UINT32 vdev_id;
- /* LTE-WLAN coexistence scheme bitmap
- * Indicates the final schemes applied for the current Coex scenario.
- * Bit 0 - TDM policy
- * Bit 1 - Forced TDM policy
- * Bit 2 - Dynamic Power Back-off policy
- * Bit 3 - Channel Avoidance policy
- * Bit 4 - Static Power Back-off policy
- */
- A_UINT32 coex_scheme_bitmap;
- /* Active conflict count
- * Indicates the number of Active conflicts for the current WLAN and LTE frequency combinations.
- */
- A_UINT32 active_conflict_count;
- /* Potential conflict count
- * Indicates the number of Potential conflicts for the current WLAN and LTE frequency combinations.
- */
- A_UINT32 potential_conflict_count;
- /* Bitmap of the group-0 WLAN channels to be avoided during LTE-WLAN coex operation.
- * Indicates the WLAN channels to be avoided in b/w WLAN CH-1 and WLAN CH-14.
- */
- A_UINT32 chavd_group0_bitmap;
- /* Bitmap of the group-1 WLAN channels to be avoided during LTE-WLAN coex operation.
- * Indicates the WLAN channels to be avoided in b/w WLAN CH-36 and WLAN CH-64.
- */
- A_UINT32 chavd_group1_bitmap;
- /* Bitmap of the group-2 WLAN channels to be avoided during LTE-WLAN coex operation.
- * Indicates the WLAN channels to be avoided in b/w WLAN CH-100 and WLAN CH-140.
- */
- A_UINT32 chavd_group2_bitmap;
- /* Bitmap of the group-3 WLAN channels to be avoided during LTE-WLAN coex operation.
- * Indicates the WLAN channels to be avoided in b/w WLAN CH-149 and WLAN CH-165.
- */
- A_UINT32 chavd_group3_bitmap;
- } wmi_vdev_get_mws_coex_state_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_mws_coex_dpwb_state_fixed_param */
- A_UINT32 vdev_id;
- /* Current state of the Dynamic Power Back-off state machine
- * MWSCOEX_PWB_UNINIT_STATE = 0, PWB state machine is in un-intialized state.
- * MWSCOEX_PWB_WLAN_ON_SINR_START_STATE = 1, SINR measurement starts when WLAN is on
- * MWSCOEX_PWB_WLAN_ON_WAIT_RESP_STATE = 2, Waiting for SINR response when WLAN is on
- * MWSCOEX_PWB_WLAN_OFF_AWAIT_STATE = 3, WLAN off state for buffer between SINR on/off measurement.
- * MWSCOEX_PWB_WLAN_OFF_SINR_START_STATE = 4, SINR measurement starts when WLAN is off
- * MWSCOEX_PWB_WLAN_OFF_WAIT_RESP_STATE = 5, Waiting for SINR response when WLAN is off
- * MWSCOEX_PWB_WLAN_OFF_SINR_STOP_STATE = 6, SINR measurement stops when WLAN is off
- * MWSCOEX_PWB_FORCED_TDM_STATE = 7, Entered Forced TDM state.
- * MWSCOEX_PWB_HALTED_STATE = 8, Power back-off algorithm halted.
- * MWSCOEX_PWB_WLAN_ALWAYS_ON_SINR_START_STATE = 9, SINR measurement starts in WLAN always on state.
- * MWSCOEX_PWB_WLAN_ALWAYS_ON_SINR_STOP_STATE = 10, SINR measurement stops in WLAN always on state.
- */
- A_UINT32 current_dpwb_state;
- /* P(N+1) value in dBm i.e. Tx power to be applied in the next Dynamic Power Back-off cycle,
- * where P(N) is the power applied during current cycle.
- * ranges from 3dBm to 21 dBM
- */
- A_INT32 pnp1_value;
- /* Indicates the duty cycle of current LTE frame.
- * Duty cycle: Number of UL slots with uplink data and allocated RBs.
- */
- A_UINT32 lte_dutycycle;
- /* LTE SINR value in dB, when WLAN is ON. */
- A_INT32 sinr_wlan_on;
- /* LTE SINR value in dB, when WLAN is OFF. */
- A_INT32 sinr_wlan_off;
- /* LTE blocks with error for the current bler report.
- * Number of LTE blocks with error for a given number (block_count) of LTE blocks.
- */
- A_UINT32 bler_count;
- /* Number of LTE blocks considered for bler count report.
- * Bler repot will be generated after the reception of every "block_count" number of blocks.
- */
- A_UINT32 block_count;
- /* WLAN RSSI level
- * WLAN RSSI is divided in to 3 levels i.e. Good/Moderate/Low (configurable inside f/w)
- * 0-Good, 1-Moderate, 2-Low
- */
- A_UINT32 wlan_rssi_level;
- /* WLAN RSSI value in dBm considered in Dynamic Power back-off algorithm
- * Dynamic power back-off algorithm considers either Rx data frame RSSI/Beacon RSSI based on some constraints.
- */
- A_INT32 wlan_rssi;
- /* Indicates whether any TDM policy triggered from Dynamic power back-off policy.
- * 1 - TDM triggered.
- * 0 - TDM not triggered.
- */
- A_UINT32 is_tdm_running;
- } wmi_vdev_get_mws_coex_dpwb_state_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_mws_coex_tdm_state_fixed_param */
- A_UINT32 vdev_id;
- /* Time Division Multiplexing (TDM) LTE-Coex Policy type.
- * There are totally 4 types of TDM policies(1-SINR TDM, 2-RSSI TDM, 3-LOW RX RATE TDM, 4-STICKY TDM)
- * Bit 0 - SINR TDM policy.
- * Bit 1 - RSSI TDM policy.
- * Bit 2 - Low Rx rate TDM policy
- * Bit 3 - Sticky TDM policy
- */
- A_UINT32 tdm_policy_bitmap;
- /* TDM LTE/WLAN sub-frame bitmap
- * Indicates the bitmap of LTE/WLAN sub-frames.
- * value 0: WLAN slot.
- * value 1: LTE slot.
- */
- A_UINT32 tdm_sf_bitmap;
- } wmi_vdev_get_mws_coex_tdm_state_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_mws_coex_idrx_state_fixed_param */
- A_UINT32 vdev_id;
- /* SUB0 LTE-coex tech.
- *------------------------
- * TECH TECH_ID
- *------------------------
- * LTE 0
- * TDSCDMA 1
- * GSM1 2
- * ONEX 3
- * HDR 4
- * WCDMA 5
- * GSM2 6
- * GSM3 7
- * WCDMA2 8
- * LTE2 9
- * Indicates the type of WWAN technology used as SUB0 i.e. SIM slot 1
- */
- A_UINT32 sub0_techid;
- /* SUB0 mitigation policy.
- * Indicates the mitigation policy used to coexist with WLAN.
- * 1 - Tx blanking
- * 2 - Static power back-off
- */
- A_UINT32 sub0_policy;
- /* Set if SUB0 is in link critical state.
- * Link critical will be set, if continuous page miss happens or RSSI is below -100 dBm at LTE side.
- */
- A_UINT32 sub0_is_link_critical;
- /* LTE SUB0 imposed static power applied to WLAN due to LTE-WLAN coex.
- * Value of static power applied during LTE page cycle ranges from 3-21 dBm.
- */
- A_INT32 sub0_static_power;
- /* LTE SUB0 RSSI value in dBm */
- A_INT32 sub0_rssi;
- /* SUB1 LTE-coex tech.
- *------------------------
- * TECH TECH_ID
- *------------------------
- * LTE 0
- * TDSCDMA 1
- * GSM1 2
- * ONEX 3
- * HDR 4
- * WCDMA 5
- * GSM2 6
- * GSM3 7
- * WCDMA2 8
- * LTE2 9
- * Indicates the type of WWAN technology used as SUB1 i.e. SIM slot 2
- */
- A_UINT32 sub1_techid;
- /* SUB1 mitigation policy.
- * Indicates the mitigation policy used to coexist with WLAN.
- * 1 - Tx blanking
- * 2 - Static power back-off
- */
- A_UINT32 sub1_policy;
- /* Set if SUB1 is in link critical state.
- * Link critical will be set, if continuous page miss happens or RSSI is below -100 dBm at LTE side.
- */
- A_UINT32 sub1_is_link_critical;
- /* LTE SUB1 imposed static power applied to WLAN due to LTE-WLAN coex.
- * Value of static power applied during LTE page cycle ranges from 3-21 dBm.
- */
- A_INT32 sub1_static_power;
- /* LTE SUB1 RSSI value in dBm */
- A_INT32 sub1_rssi;
- } wmi_vdev_get_mws_coex_idrx_state_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_mws_coex_antenna_sharing_state_fixed_param */
- A_UINT32 vdev_id;
- /* BDF values of Coex flags.
- * coexflag 0x1 = MWS Coex enabled
- * coexflag 0x3 = MWS Coex enabled + Antenna sharing enabled for WLAN operating in 2.4GHz band.
- */
- A_UINT32 coex_flags;
- /* BDF values of Coex Antenna sharing config
- * coex_config 0x0 = no Antenna sharing
- * coexconfig 0x1 = switched based Antenna sharing
- * coexconfig 0x2 = splitter based Antenna sharing
- */
- A_UINT32 coex_config;
- /* Tx Chain mask value
- * Bit 0: Tx chain-0
- * Bit 1: Tx Chain-1
- * value: 0x1 - Operating in 1X1
- * value: 0x3 - Operating in 2X2
- */
- A_UINT32 tx_chain_mask;
- /* Rx Chain mask value
- * Bit 0: Rx chain-0
- * Bit 1: Rx Chain-1
- * value: 0x1 - Operating in 1X1
- * value: 0x3 - Operating in 2X2
- */
- A_UINT32 rx_chain_mask;
- /* Currently active Rx Spatial streams
- * Bit 0: Rx Spatial Stream-0
- * Bit 1: Rx Spatial Stream-1
- */
- A_UINT32 rx_nss;
- /* Forced MRC policy type
- * BTC_FORCED (0x01)
- * RSSI_FORCED (0x02)
- * MODEM_ACQ_FORCED (0x04)
- */
- A_UINT32 force_mrc;
- /* RSSI value considered for MRC
- * 1: Data RSSI
- * 2: Beacon RSSI
- */
- A_UINT32 rssi_type;
- /* RSSI value measured at Chain-0 in dBm */
- A_INT32 chain0_rssi;
- /* RSSI value measured at Chain-1 in dBm */
- A_INT32 chain1_rssi;
- /* RSSI value of two chains combined in dBm */
- A_INT32 combined_rssi;
- /* Absolute imbalance between two Rx chains in dB */
- A_UINT32 imbalance;
- /* RSSI threshold defined for the above imbalance value in dBm.
- * Based on the degree of imbalance between the rx chains, different
- * RSSI thresholds are used to determine whether MRC (Maximum-Ratio
- * Combining) use of multiple rx chains is suitable.
- * This field shows the RSSI threshold below which MRC is used.
- */
- A_INT32 mrc_threshold;
- /* Antenna grant duration to WLAN, in milliseconds */
- A_UINT32 grant_duration;
- } wmi_vdev_get_mws_coex_antenna_sharing_state_fixed_param;
- typedef enum wmi_chip_power_save_failure_reason_code_type {
- WMI_PROTOCOL_POWER_SAVE_FAILURE_REASON,
- WMI_HW_POWER_SAVE_FAILURE_REASON,
- WMI_CSS_LOCKED_POWER_FAILURE_REASON,
- WMI_MAC0_LOCKED_POWER_FAILURE_REASON,
- WMI_MAC1_LOCKED_POWER_FAILURE_REASON,
- WMI_POWER_SAVE_FAILURE_REASON_MAX = 0xf,
- } WMI_POWER_SAVE_FAILURE_REASON_TYPE;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_chip_power_save_failure_detected_fixed_param */
- A_UINT32 power_save_failure_reason_code; /* Chip power save failuire reason as defined in WMI_POWER_SAVE_FAILURE_REASON_TYPE */
- A_UINT32 protocol_wake_lock_bitmap[4]; /* bitmap with bits set for modules (from WLAN_MODULE_ID enum) voting against sleep for prolonged duration */
- } wmi_chip_power_save_failure_detected_fixed_param;
- /* Bit set/unset definitions for valid_bitmap field in ani_ofdm_event */
- #define WMI_ANI_OFDM_EVENT_PDEV_ID_BIT_SET(bitmap, val) \
- WMI_SET_BITS(bitmap, 0, 8, val)
- #define WMI_ANI_OFDM_EVENT_PDEV_ID_BIT_GET(bitmap) \
- WMI_GET_BITS(bitmap, 0, 8)
- #define WMI_ANI_OFDM_EVENT_PDEV_ID_VALID_BIT_SET(bitmap, val) \
- WMI_SET_BITS(bitmap, 31, 1, val)
- #define WMI_ANI_OFDM_EVENT_PDEV_ID_VALID_BIT_GET(bitmap) \
- WMI_GET_BITS(bitmap, 31, 1)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_ani_ofdm_event_fixed_param */
- A_UINT32 ofdm_level;
- union {
- A_UINT32 pdev_id_valid__pdev_id__word;
- struct {
- /**
- * word containng the pdev_id for identifying the MAC
- * Contents:
- * bits 7:0 - pdev ID
- * bits 30:8 - reserved
- * bit 31 - pdev ID valid flag
- * See macros starting with WMI_ANI_OFDM_EVENT_PDEV_ID_ for values.
- * pdev_id is valid when pdev_id_valid is set.
- */
- A_UINT32 pdev_id: 8,
- reserved: 23,
- pdev_id_valid: 1;
- };
- };
- } wmi_ani_ofdm_event_fixed_param;
- /* When a bit is set it specifies the particular WLAN traffic type is high priority.
- * BT low priority traffic has higher priority than WLAN low priority traffic and has
- * lower priority when compared to WLAN high priority traffic.
- * BT high priority traffic has higher priority than WLAN low/high priority traffic.
- */
- #define WMI_PDEV_BE_PRIORITY_BIT (1<<0)
- #define WMI_PDEV_BK_PRIORITY_BIT (1<<1)
- #define WMI_PDEV_VI_PRIORITY_BIT (1<<2)
- #define WMI_PDEV_VO_PRIORITY_BIT (1<<3)
- #define WMI_PDEV_BEACON_PRIORITY_BIT (1<<4)
- #define WMI_PDEV_MGMT_PRIORITY_BIT (1<<5)
- #define WMI_PDEV_IS_BE_PRIORITY_SET(val) ((val) & WMI_PDEV_BE_PRIORITY_BIT)
- #define WMI_PDEV_IS_BK_PRIORITY_SET(val) ((val) & WMI_PDEV_BK_PRIORITY_BIT)
- #define WMI_PDEV_IS_VI_PRIORITY_SET(val) ((val) & WMI_PDEV_VI_PRIORITY_BIT)
- #define WMI_PDEV_IS_VO_PRIORITY_SET(val) ((val) & WMI_PDEV_VO_PRIORITY_BIT)
- #define WMI_PDEV_IS_BEACON_PRIORITY_SET(val) ((val) & WMI_PDEV_BEACON_PRIORITY_BIT)
- #define WMI_PDEV_IS_MGMT_PRIORITY_SET(val) ((val) & WMI_PDEV_MGMT_PRIORITY_BIT)
- /*
- * For Maple 3-way coex, The interface will have following configurable
- * priority bits to set relative priorities of WLAN/BT/3-radio PTA.
- * To send below config host will use WMI_COEX_CONFIG_CMD command with
- * config type WMI_COEX_CONFIG_THREE_WAY_COEX_START
- * WMI_COEX_CONFIG_THREE_WAY_COEX_RESET
- *
- ** Bits 0 to 7 corresponds to Wifi
- * Bit - 0: QCA_WIFI_BE
- * Bit - 1: QCA_WIFI_BK
- * Bit - 2: QCA_WIFI_VI
- * Bit - 3: QCA_WIFI_VO
- * Bit - 4: QCA_WIFI_BEACON
- * Bit - 5: QCA_WIFI_MGMT
- * Bits 6 - 7: Reserved
- *
- ** Bits 8 to 15 corresponds to BT
- * Bit - 8: QCA_BT_ADVERTISER
- * Bit - 9: QCA_BT_SCANNER
- * Bit - 10: QCA_BT_BLE_CONNECTION
- * Bits 11 to 15: Reserved
- *
- ** Bits 16 to 24 corresponds to 3-radio PTA,
- * It can be anything BT/ZigBee connected to 802.15.4 radio
- * Bit - 16: QCA_PTA_THIRD_RADIO_LOW
- * Bit - 17: QCA_PTA_THIRD_RADIO_HIGH
- * Bits 18 to 24: Reserved
- *
- ** Bits 25 to 31 Reserved for future use
- */
- #define WMI_PDEV_BT_ADVERTISER_PRIORITY_BIT (1 << 8)
- #define WMI_PDEV_BT_SCANNER_PRIORITY_BIT (1 << 9)
- #define WMI_PDEV_BT_BLE_CONNECTION_PRIORITY_BIT (1 << 10)
- #define WMI_PDEV_IS_BT_ADVERTISER_PRIORITY_SET(val) \
- ((val) & WMI_PDEV_BT_ADVERTISER_PRIORITY_BIT)
- #define WMI_PDEV_IS_BT_SCANNER_PRIORITY_SET(val) \
- ((val) & WMI_PDEV_BT_SCANNER_PRIORITY_BIT)
- #define WMI_PDEV_IS_BT_BLE_CONNECTION_PRIORITY_SET(val) \
- ((val) & WMI_PDEV_BT_BLE_CONNECTION_PRIORITY_BIT)
- #define WMI_PDEV_PTA_THIRD_RADIO_LOW_PRIORITY_BIT (1 << 16)
- #define WMI_PDEV_PTA_THIRD_RADIO_HIGH_PRIORITY_BIT (1 << 17)
- #define WMI_PDEV_IS_PTA_THIRD_RADIO_LOW_PRIORITY_SET(val) \
- ((val) & WMI_PDEV_PTA_THIRD_RADIO_LOW_PRIORITY_BIT)
- #define WMI_PDEV_IS_PTA_THIRD_RADIO_HIGH_PRIORITY_SET(val) \
- ((val) & WMI_PDEV_PTA_THIRD_RADIO_HIGH_PRIORITY_BIT)
- typedef enum wmi_coex_algo_type {
- WMI_COEX_ALGO_UNCONS_FREERUN = 0,
- WMI_COEX_ALGO_FREERUN = 1,
- WMI_COEX_ALGO_OCS = 2,
- } WMI_COEX_ALGO_TYPE;
- typedef enum wmi_coex_config_type {
- WMI_COEX_CONFIG_PAGE_P2P_TDM = 1, /* config interval (arg1 BT, arg2 WLAN) for P2P + PAGE */
- WMI_COEX_CONFIG_PAGE_STA_TDM = 2, /* config interval (arg1 BT, arg2 WLAN) for STA + PAGE */
- WMI_COEX_CONFIG_PAGE_SAP_TDM = 3, /* config interval (arg1 BT, arg2 WLAN) for SAP + PAGE */
- WMI_COEX_CONFIG_DURING_WLAN_CONN = 4, /* config during WLAN connection */
- WMI_COEX_CONFIG_BTC_ENABLE = 5, /* config to enable/disable BTC */
- WMI_COEX_CONFIG_COEX_DBG = 6, /* config of COEX debug setting */
- WMI_COEX_CONFIG_PAGE_P2P_STA_TDM = 7, /* config interval (ms units) (arg1 BT, arg2 WLAN) for P2P + STA + PAGE */
- WMI_COEX_CONFIG_INQUIRY_P2P_TDM = 8, /* config interval (ms units) (arg1 BT, arg2 WLAN) for P2P + INQUIRY */
- WMI_COEX_CONFIG_INQUIRY_STA_TDM = 9, /* config interval (ms units) (arg1 BT, arg2 WLAN) for STA + INQUIRY */
- WMI_COEX_CONFIG_INQUIRY_SAP_TDM = 10, /* config interval (ms units) (arg1 BT, arg2 WLAN) for SAP + INQUIRY */
- WMI_COEX_CONFIG_INQUIRY_P2P_STA_TDM = 11, /* config interval (ms units) (arg1 BT, arg2 WLAN) for P2P + STA + INQUIRY */
- WMI_COEX_CONFIG_TX_POWER = 12, /* config wlan total tx power when bt coex (arg1 is wlan_tx_power_limit, in 0.5 dBm units) */
- WMI_COEX_CONFIG_PTA_CONFIG = 13, /* config whether enable PTA and GPIO number (arg1 is pta_enable, arg2 is GPIO number used as /BT_ACTIVE/BT_PRIORITY/WLAN_DENY,8 bit for each) */
- WMI_COEX_CONFIG_AP_TDM = 14, /* config interval (arg1 duty cycle in ms, arg2 WLAN duration in ms) for AP */
- WMI_COEX_CONFIG_WLAN_SCAN_PRIORITY = 15, /* config to set WLAN priority during Off Channel Scan */
- WMI_COEX_CONFIG_WLAN_PKT_PRIORITY = 16, /* config to set WLAN priority for BE/BK/VO/VI/Beacon/Management frame */
- WMI_COEX_CONFIG_PTA_INTERFACE = 17, /* config PTA interface,
- arg1 PTA num,
- arg2 mode (2-wire/3-wire/PTA),
- arg3 first slot time in microsec,
- arg4 BT priority time in microsec,
- arg5 PTA algorithm (WMI_COEX_ALGO_TYPE),
- arg6 PTA priority */
- WMI_COEX_CONFIG_BTC_DUTYCYCLE = 18, /* config interval (ms units) (arg1 WLAN pause duration, arg2 WLAN unpause duration) for WLAN UL + BT Rx */
- WMI_COEX_CONFIG_HANDOVER_RSSI = 19, /* config to set WLAN RSSI (dBm units) at which device switches from Hybrid to TDD coex mode */
- WMI_COEX_CONFIG_PTA_BT_INFO = 20, /* get BT information,
- arg1 BT info type: WMI_COEX_PTA_BT_INFO_TYPE_T, scan/advertise/connection info,
- arg2-arg5: BT information parameters */
- WMI_COEX_CONFIG_SINK_WLAN_TDM = 21, /* config interval (ms units) (arg1 BT, arg2 WLAN) for A2DP SINK + WLAN */
- WMI_COEX_CONFIG_COEX_ENABLE_MCC_TDM = 22, /* config disable/enable COEX TDM for MCC */
- WMI_COEX_CONFIG_LOWRSSI_A2DPOPP_TDM = 23, /* config interval (ms units) (arg1 BT, arg2 WLAN) for STA + A2dp + OPP + LOWRSSI */
- WMI_COEX_CONFIG_BTC_MODE = 24, /* config BTC mode, arg1 mode: 0 TDD/1 FDD/2 Hybrid*/
- WMI_COEX_CONFIG_ANTENNA_ISOLATION = 25, /* config isolation between BT and WLAN chains
- * The arguments are interpreted differently
- * depending on whether the target supports
- * WMI_SERVICE_COEX_SUPPORT_UNEQUAL_ISOLATION
- * If (not COEX_SUPPORT_UNEQUAL_ISOLATION) or arg2 == 0:
- * arg1 => isolation between BT and WLAN chains,
- * dB units,
- * same isolation for all chains
- * Else:
- * arg1 bits 7:0 - chain 0 isolation, in dB
- * arg1 bits 15:8 - chain 1 isolation, in dB
- * arg1 bits 23:16 - chain 2 isolation, in dB
- * arg1 bits 31:24 - chain 3 isolation, in dB
- * arg2 - 0 => Equal isolation b/w BT and each WLAN chain (default)
- * 1 => Different isolation b/w BT and each WLAN chain
- */
- WMI_COEX_CONFIG_BT_LOW_RSSI_THRESHOLD = 26, /* config BT low RSSI threshold (dBm units) */
- WMI_COEX_CONFIG_BT_INTERFERENCE_LEVEL = 27, /* config BT interference level (dBm units)
- arg1 low - lower limit
- arg2 low - upper limit
- arg3 medium - lower limit
- arg4 medium - upper limit
- arg5 high - lower limit
- arg6 high - upper limit */
- WMI_COEX_CONFIG_WLAN_OVER_ZBLOW = 28, /* config to boost WiFi traffic over 15.4 Low prio traffic */
- WMI_COEX_CONFIG_WLAN_MGMT_OVER_BT_A2DP = 29, /* config to raise WLAN priority higher than BT in coex scenario of SAP + BT or 15.4 */
- WMI_COEX_CONFIG_WLAN_CONN_OVER_LE = 30, /* config to elevate Wifi priority over BLE during WLAN association */
- WMI_COEX_CONFIG_LE_OVER_WLAN_TRAFFIC = 31, /* config to elevate BLE traffic over WiFi traffic */
- WMI_COEX_CONFIG_THREE_WAY_COEX_RESET = 32, /* config to reset the weights to default */
- /* WMI_COEX_CONFIG_THREE_WAY_DELAY_PARA
- * config to T_PRIO T_DELAY parameter for each case
- * arg1 - wlan/bt state
- * 0: beacon tx
- * 1: wlan connecting
- * 2: wlan in dhcp
- * 3: a2dp critical
- * 4: eSCO
- * arg2 - t_prio for low priority traffic (microsecond units)
- * arg3 - t_delay for low priority traffic (microsecond units)
- * arg4 - t_prio for high priority traffic (microsecond units)
- * arg5 - t_delay for high priority traffic (microsecond units)
- */
- WMI_COEX_CONFIG_THREE_WAY_DELAY_PARA = 33,
- /* WMI_COEX_CONFIG_THREE_WAY_COEX_START
- * config to set coex parameters from WLAN host to adjust priorities
- * among wlan/bt/zb
- * arg1 - priority level 1, the serialized coex scenorio ID will be put here
- * arg2 - priority level 2, same parameters rules as arg1
- * arg3 - priority level 3, same parameters rules as arg1
- * arg4 - priority level 4, same parameters rules as arg1
- */
- WMI_COEX_CONFIG_THREE_WAY_COEX_START = 34,
- /* WMI_COEX_CONFIG_MPTA_HELPER_ENABLE
- * config to enable(1)/disable(0) mpta-helper function
- */
- WMI_COEX_CONFIG_MPTA_HELPER_ENABLE = 35,
- /* WMI_COEX_CONFIG_MPTA_HELPER_ZIGBEE_STATE
- * config zigbee state
- * arg1: zigbee state
- * (idle form-network wait-join join-network network-up HMI)
- */
- WMI_COEX_CONFIG_MPTA_HELPER_ZIGBEE_STATE = 36,
- /* WMI_COEX_CONFIG_MPTA_HELPER_INT_OCS_PARAMS
- * config ocs wlan/nonwlan params after MPTA interrupt fired
- * arg1: wlan duration (ms units) in Shape-OCS
- * arg2: nonwlan duration (ms units) in Shape-OCS
- */
- WMI_COEX_CONFIG_MPTA_HELPER_INT_OCS_PARAMS = 37,
- /* WMI_COEX_CONFIG_MPTA_HELPER_MON_OCS_PARAMS
- * config ocs wlan/nonwlan params during monitor period after
- * interrupt period finished
- * arg1: wlan duration (ms units) in Shape-OCS
- * arg2: nonwlan duration (ms units) in Shape-OCS
- */
- WMI_COEX_CONFIG_MPTA_HELPER_MON_OCS_PARAMS = 38,
- /* WMI_COEX_CONFIG_MPTA_HELPER_INT_MON_DURATION
- * config ocs duration in interrupt period and monitor period
- * arg1: duration (ms units) in interrupt period
- * arg2: duration (ms units) in monitor period
- */
- WMI_COEX_CONFIG_MPTA_HELPER_INT_MON_DURATION = 39,
- /* WMI_COEX_CONFIG_MPTA_HELPER_ZIGBEE_CHANNEL
- * config zigbee channel 11 - 26
- */
- WMI_COEX_CONFIG_MPTA_HELPER_ZIGBEE_CHANNEL = 40,
- /* WMI_COEX_CONFIG_MPTA_HELPER_WLAN_MUTE_DURATION
- * config msw mute duration (ms units) after MPTA interrupt fired
- */
- WMI_COEX_CONFIG_MPTA_HELPER_WLAN_MUTE_DURATION = 41,
- /* WMI_COEX_CONFIG_BT_SCO_ALLOW_WLAN_2G_SCAN
- * allow WLAN scan on 2.4G channel when BT SCO connectivity is alive
- */
- WMI_COEX_CONFIG_BT_SCO_ALLOW_WLAN_2G_SCAN = 42,
- /* WMI_COEX_CONFIG_ENABLE_2ND_HARMONIC_WAR
- * config to enable(1)/disable(0) WAR of BT 2nd harmonic issue function
- */
- WMI_COEX_CONFIG_ENABLE_2ND_HARMONIC_WAR = 43,
- /* WMI_COEX_CONFIG_BTCOEX_SEPARATE_CHAIN_MODE
- * config BTC separate chain mode or shared mode
- */
- WMI_COEX_CONFIG_BTCOEX_SEPARATE_CHAIN_MODE = 44,
- /* WMI_COEX_CONFIG_ENABLE_TPUT_SHAPING
- * enable WLAN throughput shaping while BT scanning
- */
- WMI_COEX_CONFIG_ENABLE_TPUT_SHAPING = 45,
- /* WMI_COEX_CONFIG_ENABLE_TXBF
- * enable WLAN tx beamforming during coex case
- */
- WMI_COEX_CONFIG_ENABLE_TXBF = 46,
- /* WMI_COEX_CONFIG_FORCED_ALGO
- * config to select coex algorithm
- * arg1: select fixed coex algorithm
- */
- WMI_COEX_CONFIG_FORCED_ALGO = 47,
- /* WMI_COEX_CONFIG_LE_SCAN_POLICY
- * BLE scan Coex policy hint
- * 0 to place more emphasis on BLE Scan results
- * 1 to place more emphasis on WLAN performance
- */
- WMI_COEX_CONFIG_LE_SCAN_POLICY = 48,
- /* WMI_COEX_CONFIG_BT_RX_PER_THRESHOLD
- * config BT RX PER threshold
- */
- WMI_COEX_CONFIG_BT_RX_PER_THRESHOLD = 49,
- /* WMI_COEX_SET_TRAFFIC_SHAPING_MODE
- * arg1: 0 (WMI_COEX_TRAFFIC_SHAPING_MODE_DISABLED)
- * Disable coex policies and set fixed arbitration config.
- * 1 (WMI_COEX_TRAFFIC_SHAPING_MODE_ENABLED)
- * Enable all coex policies.
- */
- WMI_COEX_SET_TRAFFIC_SHAPING_MODE = 50,
- /* WMI_COEX_CONFIG_ENABLE_CONT_INFO
- * enable contention info log
- * arg1:
- * 0: disable both cont/sched log
- * 1: enable cont log
- * 2: enable sched log
- * 3: enable both cont and sched log
- */
- WMI_COEX_CONFIG_ENABLE_CONT_INFO = 51,
- } WMI_COEX_CONFIG_TYPE;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_COEX_CONFIG_CMD_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 config_type; /* wmi_coex_config_type enum */
- A_UINT32 config_arg1;
- A_UINT32 config_arg2;
- A_UINT32 config_arg3;
- A_UINT32 config_arg4;
- A_UINT32 config_arg5;
- A_UINT32 config_arg6;
- } WMI_COEX_CONFIG_CMD_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_coex_multiple_config_cmd_fixed_param */
- /*
- * This struct is followed by other TLVs:
- * WMI_COEX_CONFIG_CMD_fixed_param config_list[num_config];
- */
- } wmi_coex_multiple_config_cmd_fixed_param;
- typedef enum wmi_coex_dbam_mode_type {
- WMI_COEX_DBAM_DISABLE = 0,
- WMI_COEX_DBAM_ENABLE = 1,
- WMI_COEX_DBAM_FORCED = 2,
- } WMI_COEX_DBAM_MODE_TYPE;
- typedef enum {
- WMI_COEX_TRAFFIC_SHAPING_MODE_DISABLED = 0,
- WMI_COEX_TRAFFIC_SHAPING_MODE_ENABLED = 1,
- } WMI_COEX_TRAFFIC_SHAPING_MODE;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 dbam_mode; /* wmi_coex_dbam_mode_type enum */
- } wmi_coex_dbam_cmd_fixed_param;
- /**
- * Host get current TAS buffer from FW or set last TAS buffer to FW
- */
- typedef enum wmi_tas_power_history_cmd_type {
- WMI_TAS_POWER_HISTORY_CMD_GET = 0, /* before WLAN off, host trigger this cmd to get power history */
- WMI_TAS_POWER_HISTORY_CMD_SET = 1, /* after WLAN reboot, host trigger this cmd to set power history of last life cycle */
- } WMI_TAS_POWER_HISTORY_CMD_TYPE;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tas_power_history_cmd_fixed_param */
- A_UINT32 sub_type; /* refer to WMI_TAS_POWER_HISTORY_TYPE */
- A_UINT32 time_diff; /* time of wlan on - time of wlan off after wlan reboot. unit: millisecond*/
- } wmi_tas_power_history_cmd_fixed_param;
- /**
- * This command is sent from WLAN host driver to firmware to
- * request firmware to enable/disable channel avoidance report
- * to host.
- *
- */
- enum {
- WMI_MWSCOEX_CHAN_AVD_RPT_DISALLOW = 0,
- WMI_MWSCOEX_CHAN_AVD_RPT_ALLOW = 1
- };
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_CHAN_AVOID_RPT_ALLOW_CMD_fixed_param */
- /** Allow/disallow flag - see WMI_MWSCOEX_CHAN_AVD_RPT enum */
- A_UINT32 rpt_allow;
- } WMI_CHAN_AVOID_RPT_ALLOW_CMD_fixed_param;
- /*
- * Periodic channel stats WMI command structure
- * WMI_SET_PERIODIC_CHANNEL_STATS_CONFIG_CMDID
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_set_periodic_channel_stats_config_fixed_param */
- /** 1 = enable, 0 = disable */
- A_UINT32 enable;
- /** periodic stats duration (units are milliseconds) */
- A_UINT32 stats_period;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_set_periodic_channel_stats_config_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_wal_power_debug_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- /* Identify the wlan module */
- A_UINT32 module_id;
- /* Num of elements in the following args[] array */
- A_UINT32 num_args;
- /**
- * Following this structure are the TLVs:
- * A_UINT32 args[];
- **/
- } wmi_pdev_wal_power_debug_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_reorder_timeout_val_cmd_fixed_param */
- /**
- * @brief rx_timeout_pri - what rx reorder timeout (ms) to use for the AC
- * @details
- * Each WMM access category (voice, video, best-effort, background)
- * will have its own timeout value to dictate how long to wait for
- * missing rx MPDUs to arrive before releasing subsequent MPDUs that
- * have already been received.
- * This parameter specifies the timeout in milliseconds for each
- * access category.
- * The array elements are indexed by the WMI_AC enum to identify
- * which array element corresponds to which AC / traffic type.
- */
- A_UINT32 rx_timeout_pri[WMI_AC_MAX];
- } wmi_pdev_set_reorder_timeout_val_cmd_fixed_param;
- /**
- * wlan stats shall be understood as per period.
- * Generally, it is reported periodically based on the period specified by host.
- * But if the variation of one stats of compared to the
- * previous notification exceeds a threshold,
- * FW will report the wlan stats immediately.
- * The values of the stats becomes the new reference to compute variations.
- * This threshold can be a global setting or per category.
- * Host can enable/disable the mechanism for any stats per bitmap.
- * TX/RX thresholds (percentage value) are shared across ACs,
- * and TX/RX stats comprisons are processed per AC of each peer.
- * For example, if bit 0 (stand for tx_mpdus) of tx_thresh_bitmap is set to 1,
- * and the detailed tx_mpdus threshold value is set to 10%,
- * suppose tx_mpdus value of BE of peer 0 is 100 in first period,
- * and it reaches 110 during the second period,
- * FW will generate and send out a wlan stats event immediately.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_stats_threshold_cmd_fixed_param */
- /** Indicate if threshold mechanism is enabled or disabled.
- * It is disabled by default.
- * Host can enable and disable it dynamically.
- */
- A_UINT32 enable_thresh;
- /** use_thresh_bitmap equals 0 means gbl_thresh is used.
- * when use_thresh_bitmap equals 1, ignore gbl_thresh and use stats bitmap indicated thresholds.
- */
- A_UINT32 use_thresh_bitmap;
- /** global threshold, valid when use_thresh_bitmap equals 0.
- * It takes effect for all counters.
- * If use_thresh_bitmap ==0 && gbl_thresh == 0, disable threshold mechanism.
- */
- A_UINT32 gbl_thresh;
- /** Enable/disable bitmap for threshold mechanism of CCA stats */
- A_UINT32 cca_thresh_enable_bitmap;
- /** Enable/disable bitmap for threshold mechanism of signal stats */
- A_UINT32 signal_thresh_enable_bitmap;
- /** Enable/disable bitmap for threshold mechanism of TX stats */
- A_UINT32 tx_thresh_enable_bitmap;
- /** Enable/disable bitmap for threshold mechanism of RX stats */
- A_UINT32 rx_thresh_enable_bitmap;
- /* This TLV is followed by TLVs below:
- * wmi_chan_cca_stats_thresh cca_thresh;
- * wmi_peer_signal_stats_thresh signal_thresh;
- * wmi_tx_stats_thresh tx_thresh;
- * wmi_rx_stats_thresh rx_thresh;
- */
- } wmi_pdev_set_stats_threshold_cmd_fixed_param;
- typedef enum {
- WMI_REQUEST_WLAN_TX_STAT = 0x01,
- WMI_REQUEST_WLAN_RX_STAT = 0x02,
- WMI_REQUEST_WLAN_CCA_STAT = 0x04,
- WMI_REQUEST_WLAN_SIGNAL_STAT = 0x08,
- } wmi_wlan_stats_id;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_request_wlan_stats_cmd_fixed_param */
- wmi_wlan_stats_id stats_id;
- } wmi_request_wlan_stats_cmd_fixed_param;
- typedef enum {
- WMI_REQUEST_ONE_PEER_STATS_INFO = 0x01, /* request stats of one specified peer */
- WMI_REQUEST_VDEV_ALL_PEER_STATS_INFO = 0x02, /* request stats of all peers belong to specified VDEV */
- } wmi_peer_stats_info_request_type;
- /** It is required to issue WMI_PDEV_PARAM_PEER_STATS_INFO_ENABLE
- * (with a non-zero value) before issuing the first REQUEST_PEER_STATS_INFO.
- */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_request_peer_stats_info_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** request_type to indicate if only stats of
- * one peer or all peers of the VDEV are requested,
- * see wmi_peer_stats_info_request_type.
- */
- A_UINT32 request_type;
- /** VDEV identifier */
- A_UINT32 vdev_id;
- /** this peer_macaddr is only used if request_type == ONE_PEER_STATS_INFO */
- wmi_mac_addr peer_macaddr;
- /** flag to indicate if FW needs to reset requested peers stats */
- A_UINT32 reset_after_request;
- } wmi_request_peer_stats_info_cmd_fixed_param;
- typedef enum {
- /*
- * Multiple stats type can be requested together, so each value
- * within this enum represents a bit position within a stats bitmap.
- */
- /* bit 0 is currently unused / reserved */
- WMI_REQUEST_CTRL_PATH_PDEV_TX_STAT = 1,
- WMI_REQUEST_CTRL_PATH_VDEV_EXTD_STAT = 2,
- WMI_REQUEST_CTRL_PATH_MEM_STAT = 3,
- WMI_REQUEST_CTRL_PATH_TWT_STAT = 4,
- WMI_REQUEST_CTRL_PATH_CALIBRATION_STAT = 5,
- WMI_REQUEST_CTRL_PATH_DFS_CHANNEL_STAT = 6,
- WMI_REQUEST_CTRL_PATH_AWGN_STAT = 7,
- WMI_REQUEST_CTRL_PATH_BTCOEX_STAT = 8,
- WMI_REQUEST_CTRL_PATH_BMISS_STAT = 9,
- WMI_REQUEST_CTRL_PATH_ODD_ADDR_READ = 10,
- WMI_REQUEST_CTRL_PATH_AFC_STAT = 11,
- WMI_REQUEST_CTRL_PATH_PMLO_STAT = 12,
- WMI_REQUEST_CTRL_PATH_CFR_STAT = 13,
- WMI_REQUEST_CTRL_PATH_T2LM_STAT = 14,
- WMI_REQUEST_CTRL_PATH_BLANKING_STAT = 15,
- WMI_REQUEST_CTRL_PATH_PEER_STAT = 16,
- WMI_REQUEST_CTRL_PATH_VDEV_DEBUG_STAT = 17,
- WMI_REQUEST_CTRL_STA_RRM_STAT = 18,
- WMI_REQUEST_CTRL_PATH_VDEV_BCN_TX_STAT = 19,
- WMI_REQUEST_CTRL_PATH_PDEV_BCN_TX_STAT = 20,
- } wmi_ctrl_path_stats_id;
- typedef enum {
- /* bit 0 is currently unused / reserved */
- WMI_HALPHY_CTRL_PATH_PDEV_TX_STAT = 1,
- } wmi_halphy_ctrl_path_stats_id;
- typedef enum {
- /*
- * The following stats actions are mutually exclusive.
- * A single stats request message can only specify one action.
- */
- WMI_REQUEST_CTRL_PATH_STAT_GET = 1,
- WMI_REQUEST_CTRL_PATH_STAT_RESET = 2,
- WMI_REQUEST_CTRL_PATH_STAT_START = 3,
- WMI_REQUEST_CTRL_PATH_STAT_STOP = 4,
- WMI_REQUEST_CTRL_PATH_STAT_PERIODIC_PUBLISH = 5,
- } wmi_ctrl_path_stats_action;
- typedef enum {
- WMI_HALPHY_CTRL_PATH_SU_STATS = 0,
- WMI_HALPHY_CTRL_PATH_SUTXBF_STATS,
- WMI_HALPHY_CTRL_PATH_MU_STATS,
- WMI_HALPHY_CTRL_PATH_MUTXBF_STATS,
- } wmi_halphy_ctrl_path_subid;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_request_ctrl_path_stats_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** Bitmask showing which of stats IDs 0-31 have been requested.
- * These stats ids are defined in enum wmi_ctrl_path_stats_id.
- */
- A_UINT32 stats_id_mask;
- /** request ID to store the cookies in wifistats */
- A_UINT32 request_id;
- /** action
- * get/reset/start/stop based on stats id
- * defined as a part of wmi_ctrl_path_stats_action
- **/
- A_UINT32 action; /* refer to wmi_ctrl_path_stats_action */
- /**
- * The stat_periodicity field is relevant only when action is set to
- * WMI_REQUEST_CTRL_PATH_STAT_PERIODIC_PUBLISH.
- * The units of this periodicity are milliseconds.
- * Periodically send WMI ctrl-path stats event with the specified stats
- * periodicity for the stats whose IDs are set in stats_id_mask.
- * Periodic WMI ctrl-path stats events are enabled by setting value > 0,
- * Previously onngoing periodic WMI ctrl-path stats events become
- * disabled when action is WMI_REQUEST_CTRL_PATH_STAT_PERIODIC_PUBLISH
- * and stat_periodicity = 0.
- */
- A_UINT32 stat_periodicity;
- /** The below TLV arrays optionally follow this fixed_param TLV structure:
- * 1. A_UINT32 pdev_ids[];
- * If this array is present and non-zero length, stats should only
- * be provided from the pdevs identified in the array.
- * 2. A_UINT32 vdev_ids[];
- * If this array is present and non-zero length, stats should only
- * be provided from the vdevs identified in the array.
- * 3. wmi_mac_addr peer_macaddr[];
- * If this array is present and non-zero length, stats should only
- * be provided from the peers with the MAC addresses specified
- * in the array.
- */
- } wmi_request_ctrl_path_stats_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_request_halphy_ctrl_path_stats_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** Bitmask showing which of stats IDs 0-31 have been requested.
- * These stats ids are defined in enum wmi_halphy_ctrl_path_stats_id.
- */
- A_UINT32 stats_id_mask;
- /** process id requested */
- A_UINT32 request_id;
- /** action
- * get/reset based on stats id
- * defined as a part of wmi_ctrl_path_stats_action
- **/
- A_UINT32 action; /* refer to wmi_ctrl_path_stats_action */
- /** Request Halphy subid stats
- * According to the requested stats_id_mask this halphy_subid varies
- * For stats_id = 1, the possible values could be enum
- * wmi_halphy_ctrl_path_halphyid
- */
- A_UINT32 halphy_subid;
- /** The below TLV arrays optionally follow this fixed_param TLV structure:
- * 1. A_UINT32 pdev_ids[];
- * If this array is present and non-zero length, stats should only
- * be provided from the pdevs identified in the array.
- * 2. A_UINT32 vdev_ids[];
- * If this array is present and non-zero length, stats should only
- * be provided from the vdevs identified in the array.
- * 3. wmi_mac_addr peer_macaddr[];
- * If this array is present and non-zero length, stats should only
- * be provided from the peers with the MAC addresses specified
- * in the array.
- */
- } wmi_request_halphy_ctrl_path_stats_cmd_fixed_param;
- typedef enum {
- WMI_REQUEST_ONE_RADIO_CHAN_STATS = 0x01, /* request stats of one specified channel */
- WMI_REQUEST_ALL_RADIO_CHAN_STATS = 0x02, /* request stats of all channels */
- } wmi_radio_chan_stats_request_type;
- /** It is required to issue WMI_PDEV_PARAM_RADIO_CHAN_STATS_ENABLE
- * (with a non-zero value) before issuing the first REQUEST_RADIO_CHAN_STATS.
- */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_request_radio_chan_stats_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** request_type to indicate if only stats of
- * one channel or all channels are requested,
- * see wmi_radio_chan_stats_request_type.
- */
- A_UINT32 request_type;
- /** Frequency of channel whose stats is requested,
- * only used when request_type == WMI_REQUEST_ONE_RADIO_CHAN_STATS
- */
- A_UINT32 chan_mhz;
- /** flag to indicate if FW needs to reset requested stats of specified channel/channels */
- A_UINT32 reset_after_request;
- } wmi_request_radio_chan_stats_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_rmc_set_leader_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* Leader's mac address */
- wmi_mac_addr leader_mac_addr;
- } wmi_rmc_set_leader_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_rmc_manual_leader_event_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* 0: success
- * 1: selected leader not found in network, able to find using auto selection
- * -1: error
- * non zero value should be return to userspace in case of failure */
- A_INT32 status;
- /* bssid of new leader */
- wmi_mac_addr leader_mac_addr;
- } wmi_rmc_manual_leader_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_audio_sync_start_event_fixed_param
- */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* periodicity:
- * How frequently (in msec) FW wants host to capture the Q_TIMER.
- * periodicity = 0 indicates to the host to stop capturing the QTIMERs.
- */
- A_UINT32 periodicity;
- /* No of Qtimer captures FW wants */
- A_UINT32 reads_needed;
- /* Lower 32 bits of the mac timer. Value is valid only if periodicity = 0 */
- A_UINT32 mac_timer_l32;
- /* Upper 32 bits of the mac timer. Value is valid only if periodicity = 0 */
- A_UINT32 mac_timer_u32;
- /* Lower 32 bits of the Qtimer. Value is valid only if periodicity = 0 */
- A_UINT32 qtimer_l32;
- /* Upper 32 bits of the Qtimer. Value is valid only if periodicity = 0 */
- A_UINT32 qtimer_u32;
- } wmi_audio_sync_start_stop_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_audio_sync_q_mac_relation_event_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* Lower 32 bits of the offset between Qmaster and Qslave */
- A_UINT32 offset_l32;
- /* Upper 32 bits of the offset between Qmaster and Qslave */
- A_UINT32 offset_u32;
- } wmi_audio_sync_q_master_slave_offset_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_audio_sync_q_mac_relation_event_fixed_param */
- A_UINT32 tlv_header;
- /* Lower 32 bits of the Qtimer of master */
- A_UINT32 qmaster_l32;
- /* Upper 32 bits of the Qtimer of master */
- A_UINT32 qmaster_u32;
- /* Lower 32 bits of the Qtimer of slave*/
- A_UINT32 qslave_l32;
- /* Upper 32 bits of the Qtimer of slave*/
- A_UINT32 qslave_u32;
- } wmi_audio_sync_q_master_slave_times;
- /** Set Preferred Channel List **/
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_pcl_cmd_fixed_param */
- /** vdev_id */
- A_UINT32 vdev_id;
- /**
- * TLV (tag length value) parameters follow the wmi_vdev_set_pcl_cmd
- * structure. The TLV's are:
- *
- * A_UINT32 channel_weight[];
- * values defined by enum 'wmi_pcl_chan_weight'
- * channel order & size will be as per the list provided in WMI_SCAN_CHAN_LIST_CMDID
- **/
- } wmi_vdev_set_pcl_cmd_fixed_param;
- /** command type for WMI_PDEV_TBTT_OFFSET_SYNC_CMDID */
- enum pdev_tbtt_offset_cmd_type
- {
- WMI_PDEV_GET_TBTT_OFFSET,
- WMI_PDEV_SET_TBTT_OFFSET,
- };
- /** Per neighbour TBTT offset information */
- typedef struct
- {
- /** TLV tag and len, tag equals WMITLV_TAG_STRUC_wmi_pdev_tbtt_offset_info */
- A_UINT32 tlv_header;
- /* neighbour bss mac address */
- wmi_mac_addr bss_mac;
- /* neighbour bss beacon interval in TU */
- A_UINT32 beacon_intval;
- /* neighbour bss operating class as defined in Annex E, IEEE80211 standard */
- A_UINT32 opclass;
- /* neighbour bss operating channel index */
- A_UINT32 chan_idx;
- /* neighbour bss next QTIME TBTT high 32 bit value */
- A_UINT32 next_qtime_tbtt_high;
- /* neighbour bss next QTIME TBTT low 32 bit value */
- A_UINT32 next_qtime_tbtt_low;
- } wmi_pdev_rnr_bss_tbtt_info;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_tbtt_offset_sync_cmd_fixed_param */
- A_UINT32 tlv_header;
- /*
- * PDEV identifier. Value WMI_PDEV_ID_SOC implies applicable to all pdevs
- * on SoC else applicable only to specified pdev
- */
- A_UINT32 pdev_id;
- /* command_type from enum pdev_tbtt_offset_cmd_type */
- A_UINT32 cmd_type;
- /*
- * Following this structure is the TLV:
- * struct wmi_pdev_rnr_bss_tbtt_info rnr_tbtt_info[num_rnr_tbtt_info];
- */
- } wmi_pdev_tbtt_offset_sync_cmd_fixed_param;
- typedef enum {
- WLAN_2G_CAPABILITY = 0x1,
- WLAN_5G_CAPABILITY = 0x2,
- } WLAN_BAND_CAPABILITY;
- typedef enum wmi_hw_mode_config_type {
- WMI_HW_MODE_SINGLE = 0, /* Only one PHY is active. */
- WMI_HW_MODE_DBS = 1, /* Both PHYs are active in different bands, PHYB in 2G and PHYA in 5G. */
- WMI_HW_MODE_SBS_PASSIVE = 2, /* Both PHYs are in passive mode (only rx) in same band; no tx allowed. */
- WMI_HW_MODE_SBS = 3, /* Both PHYs are active in the same band.
- * Support for both PHYs within one band is planned for 5G only
- * (as indicated in WMI_MAC_PHY_CAPABILITIES),
- * but could be extended to other bands in the future.
- * The separation of the band between the two PHYs needs to be communicated separately.
- */
- WMI_HW_MODE_DBS_SBS = 4, /* 3 PHYs, with 2 on the same band doing SBS
- * as in WMI_HW_MODE_SBS, and 3rd on the other band
- */
- WMI_HW_MODE_DBS_OR_SBS = 5, /* One PHY is on 5G and the other PHY can be in 2G or 5G. */
- WMI_HW_MODE_DBS_2G_5G = 6, /* Both PHYs are active in different bands. PhyA 2G and PhyB 5G */
- WMI_HW_MODE_2G_PHYB = 7, /* Only PhyB 2G active */
- WMI_HW_MODE_EMLSR = 8, /* Both PHYs are active in listen mode in 1x1
- * and Tx/Rx trigger on any PHY will switch
- * from 1x1 to 2x2 on that Phy
- */
- WMI_HW_MODE_AUX_EMLSR_SINGLE = 9, /* PHYA0 and AUX are active in listen mode
- * in 1x1 and Tx/Rx trigger on any.
- * PHY will switch from 1x1 to 2x2
- * on that Phy.
- */
- WMI_HW_MODE_AUX_EMLSR_SPLIT = 10, /* PHYA1 and AUX are active in listen mode
- * in 1x1 and Tx/Rx trigger on any.
- * PHY will switch from 1x1 to 2x2
- * on that Phy.
- */
- } WMI_HW_MODE_CONFIG_TYPE;
- /*
- * Per HW mode MLO capability flags
- * use bits 31:27 of A_UINT32 hw_mode_config_type for Per HW mode MLO
- * capability flags...
- * WMI_MLO_CAP_FLAG_NONE: Do not support MLO for the specific HW mode
- * WMI_MLO_CAP_FLAG_NON_STR_IN_DBS: Support STR MLO when DBS for the specific
- * HW mode
- * WMI_MLO_CAP_FLAG_STR_IN_DBS: Support Non-STR MLO when DBS for the
- * specific HW mode
- * WMI_MLO_CAP_FLAG_NON_STR_IN_SBS: Support STR MLO when SBS for the specific
- * HW mode
- * WMI_MLO_CAP_FLAG_STR_IN_SBS: Support Non-STR MLO when SBS for the
- * specific HW mode
- * WMI_MLO_CAP_FLAG_STR: Support STR for the specific HW mode.
- *
- * WMI_MLO_CAP_FLAG_EMLSR: Support eMLSR mode.
- */
- #define WMI_MLO_CAP_FLAG_NONE 0x00
- #define WMI_MLO_CAP_FLAG_NON_STR_IN_DBS 0x01
- #define WMI_MLO_CAP_FLAG_STR_IN_DBS 0x02
- #define WMI_MLO_CAP_FLAG_NON_STR_IN_SBS 0x04
- #define WMI_MLO_CAP_FLAG_STR_IN_SBS 0x08
- #define WMI_MLO_CAP_FLAG_STR 0x10
- #define WMI_MLO_CAP_FLAG_EMLSR 0x20
- /*
- * hw_mode_config_type sub-fields for chips that support 802.11BE/MLO:
- * bits 26:0 - hw_mode_config
- * bits 31:27 - per HW mode MLO capability flags
- */
- #define WMI_BECAP_PHY_GET_HW_MODE_CFG(hw_mode_config_type) WMI_GET_BITS(hw_mode_config_type, 0, 27)
- #define WMI_BECAP_PHY_SET_HW_MODE_CFG(hw_mode_config_type, value) WMI_SET_BITS(hw_mode_config_type, 0, 27, value)
- #define WMI_BECAP_PHY_GET_MLO_CAP(hw_mode_config_type) WMI_GET_BITS(hw_mode_config_type, 27, 5)
- #define WMI_BECAP_PHY_SET_MLO_CAP(hw_mode_config_type, value) WMI_SET_BITS(hw_mode_config_type, 27, 5, value)
- /*
- * pdev_id sub-fields for chips that support 802.11BE/MLO
- * as part of WMI_MAC_PHY_CAPABILITIES and WMI_MAC_PHY_CAPABILITIES_EXT:
- * bits 16:0 - pdev_id
- * bits 32:16 - Unique link id across SOCs, got as part of QMI handshake.
- */
- #define WMI_PHY_GET_PDEV_ID(pdev_id) WMI_GET_BITS(pdev_id, 0, 16)
- #define WMI_PHY_SET_PDEV_ID(pdev_id, value) WMI_SET_BITS(pdev_id, 0, 16, value)
- #define WMI_PHY_GET_HW_LINK_ID(pdev_id) WMI_GET_BITS(pdev_id, 16, 16)
- #define WMI_PHY_SET_HW_LINK_ID(pdev_id, value) WMI_SET_BITS(pdev_id, 16, 16, value)
- #define WMI_SUPPORT_11B_GET(flags) WMI_GET_BITS(flags, 0, 1)
- #define WMI_SUPPORT_11B_SET(flags, value) WMI_SET_BITS(flags, 0, 1, value)
- #define WMI_SUPPORT_11G_GET(flags) WMI_GET_BITS(flags, 1, 1)
- #define WMI_SUPPORT_11G_SET(flags, value) WMI_SET_BITS(flags, 1, 1, value)
- #define WMI_SUPPORT_11A_GET(flags) WMI_GET_BITS(flags, 2, 1)
- #define WMI_SUPPORT_11A_SET(flags, value) WMI_SET_BITS(flags, 2, 1, value)
- #define WMI_SUPPORT_11N_GET(flags) WMI_GET_BITS(flags, 3, 1)
- #define WMI_SUPPORT_11N_SET(flags, value) WMI_SET_BITS(flags, 3, 1, value)
- #define WMI_SUPPORT_11AC_GET(flags) WMI_GET_BITS(flags, 4, 1)
- #define WMI_SUPPORT_11AC_SET(flags, value) WMI_SET_BITS(flags, 4, 1, value)
- #define WMI_SUPPORT_11AX_GET(flags) WMI_GET_BITS(flags, 5, 1)
- #define WMI_SUPPORT_11AX_SET(flags, value) WMI_SET_BITS(flags, 5, 1, value)
- #define WMI_SUPPORT_11BE_GET(flags) WMI_GET_BITS(flags, 6, 1)
- #define WMI_SUPPORT_11BE_SET(flags, value) WMI_SET_BITS(flags, 6, 1, value)
- #define WMI_MAX_MUBFEE_GET(flags) WMI_GET_BITS(flags, 28, 4)
- #define WMI_MAX_MUBFEE_SET(flags, value) WMI_SET_BITS(flags, 28, 4, value)
- /*
- * +-----------------------------+------------------------------------+
- * | Transmitted VHT Capabilities| NSS Support of STA |
- * | Information Field | transmitted VHT Capabilites |
- * +---------------+-------------+------+------+------+------+--------+
- * | Supported | Extended | | | | | |
- * | Channel | NSS BW | | | | | |
- * | WidthSet | Support |20 Mhz|40 Mhz|80 Mhz|160Mhz|80+80Mhz|
- * +---------------+-------------+------+------+------+------+--------+
- * | 0 | 0 | 1 | 1 | 1 | | |
- * +---------------+-------------+------+------+------+------+--------+
- * | 0 | 1 | 1 | 1 | 1 | 1/2 | |
- * +---------------+-------------+------+------+------+------+--------+
- * | 0 | 2 | 1 | 1 | 1 | 1/2 | 1/2 |
- * +---------------+-------------+------+------+------+------+--------+
- * | 0 | 3 | 1 | 1 | 1 | 3/4 | 3/4 |
- * +---------------+-------------+------+------+------+------+--------+
- * | 1 | 0 | 1 | 1 | 1 | 1 | |
- * +---------------+-------------+------+------+------+------+--------+
- * | 1 | 1 | 1 | 1 | 1 | 1 | 1/2 |
- * +---------------+-------------+------+------+------+------+--------+
- * | 1 | 2 | 1 | 1 | 1 | 1 | 3/4 |
- * +---------------+-------------+------+------+------+------+--------+
- * | 1 | 3 | 2 | 2 | 2 | 2 | 1 |
- * +---------------+-------------+------+------+------+------+--------+
- * | 2 | 0 | 1 | 1 | 1 | 1 | 1 |
- * +---------------+-------------+------+------+------+------+--------+
- * | 2 | 3 | 2 | 2 | 2 | 1 | 1 |
- * +---------------+-------------+------+------+------+------+--------+
- */
- /*
- * [0] : WMI_NSS_RATIO_ENABLE_DISABLE_BITPOS
- * [4:1] : WMI_NSS_RATIO_INFO_BITPOS
- */
- #define WMI_NSS_RATIO_ENABLE_DISABLE_BITPOS 0x0
- #define WMI_NSS_RATIO_INFO_BITPOS 0x1
- /*
- * WMI_NSS_RATIO_ENABLE_DISABLE values:
- * [0] : 0 - WMI_NSS_RATIO_DISABLE
- * [0] : 1 - WMI_NSS_RATIO_ENABLE
- */
- #define WMI_NSS_RATIO_DISABLE 0x0
- #define WMI_NSS_RATIO_ENABLE 0x1
- /*
- * WMI_NSS_RATIO_INFO values:
- * [4:1] : 0000 - WMI_NSS_RATIO_1BY2_NSS
- * [4:1] : 0001 - WMI_NSS_RATIO_3BY4_NSS
- * [4:1] : 0010 - WMI_NSS_RATIO_1_NSS
- * [4:1] : 0011 - WMI_NSS_RATIO_2_NSS
- */
- #define WMI_NSS_RATIO_1BY2_NSS 0x0
- #define WMI_NSS_RATIO_3BY4_NSS 0x1
- #define WMI_NSS_RATIO_1_NSS 0x2
- #define WMI_NSS_RATIO_2_NSS 0x3
- #define WMI_NSS_RATIO_ENABLE_DISABLE_SET(param, value) \
- WMI_SET_BITS(param, WMI_NSS_RATIO_ENABLE_DISABLE_BITPOS, 1, value)
- #define WMI_NSS_RATIO_ENABLE_DISABLE_GET(dword) \
- WMI_GET_BITS(dword, WMI_NSS_RATIO_ENABLE_DISABLE_BITPOS, 1)
- #define WMI_NSS_RATIO_INFO_SET(param, value) \
- WMI_SET_BITS(param, WMI_NSS_RATIO_INFO_BITPOS, 4, value)
- #define WMI_NSS_RATIO_INFO_GET(dword) \
- WMI_GET_BITS(dword, WMI_NSS_RATIO_INFO_BITPOS, 4)
- /*
- * 11BE EML Capability Set and Get macros
- */
- #define WMI_SUPPORT_EMLSR_GET(eml_capability) WMI_GET_BITS(eml_capability, 0, 1)
- #define WMI_SUPPORT_EMLSR_SET(eml_capability, value) WMI_SET_BITS(eml_capability, 0, 1, value)
- #define WMI_EMLSR_PADDING_DELAY_GET(eml_capability) WMI_GET_BITS(eml_capability, 1, 3)
- #define WMI_EMLSR_PADDING_DELAY_SET(eml_capability, value) WMI_SET_BITS(eml_capability, 1, 3, value)
- #define WMI_EMLSR_TRANSITION_DELAY_GET(eml_capability) WMI_GET_BITS(eml_capability, 4, 3)
- #define WMI_EMLSR_TRANSITION_DELAY_SET(eml_capability, value) WMI_SET_BITS(eml_capability, 4, 3, value)
- #define WMI_SUPPORT_EMLMR_GET(eml_capability) WMI_GET_BITS(eml_capability, 7, 1)
- #define WMI_SUPPORT_EMLMR_SET(eml_capability, value) WMI_SET_BITS(eml_capability, 7, 1, value)
- #define WMI_EMLMR_DELAY_GET(eml_capability) WMI_GET_BITS(eml_capability, 8, 3)
- #define WMI_EMLMR_DELAY_SET(eml_capability, value) WMI_SET_BITS(eml_capability, 8, 3, value)
- #define WMI_TRANSITION_TIMEOUT_GET(eml_capability) WMI_GET_BITS(eml_capability, 11, 4)
- #define WMI_TRANSITION_TIMEOUT_SET(eml_capability, value) WMI_SET_BITS(eml_capability, 11, 4, value)
- /*
- * 11BE MLD Capability Set and Get macros
- */
- #define WMI_MAX_NUM_SIMULTANEOUS_LINKS_GET(mld_capability) WMI_GET_BITS(mld_capability, 0, 4)
- #define WMI_MAX_NUM_SIMULTANEOUS_LINKS_SET(mld_capability, value) WMI_SET_BITS(mld_capability, 0, 4, value)
- #define WMI_SUPPORT_SRS_GET(mld_capability) WMI_GET_BITS(mld_capability, 4, 1)
- #define WMI_SUPPORT_SRS_SET(mld_capability, value) WMI_SET_BITS(mld_capability, 4, 1, value)
- #define WMI_TID_TO_LINK_NEGOTIATION_GET(mld_capability) WMI_GET_BITS(mld_capability, 5, 2)
- #define WMI_TID_TO_LINK_NEGOTIATION_SET(mld_capability, value) WMI_SET_BITS(mld_capability, 5, 2, value)
- #define WMI_FREQ_SEPERATION_STR_GET(mld_capability) WMI_GET_BITS(mld_capability, 7, 5)
- #define WMI_FREQ_SEPERATION_STR_SET(mld_capability, value) WMI_SET_BITS(mld_capability, 7, 5, value)
- #define WMI_SUPPORT_AAR_GET(mld_capability) WMI_GET_BITS(mld_capability, 12, 1)
- #define WMI_SUPPORT_AAR_SET(mld_capability, value) WMI_SET_BITS(mld_capability, 12, 1, value)
- /*
- * 11BE Ext MLD Capability Set and Get macros
- */
- #define WMI_EXT_MLD_OPERATION_PARAMETER_UPDATE_SUPP_GET(ext_mld_capability) WMI_GET_BITS(ext_mld_capability, 0, 1)
- #define WMI_EXT_MLD_OPERATION_PARAMETER_UPDATE_SUPP_SET(ext_mld_capability, value) WMI_SET_BITS(ext_mld_capability, 0, 1, value)
- /*
- * 11BE MSD Capability Set and Get macros
- */
- #define WMI_MEDIUM_SYNC_DURATION_GET(msd_capability) WMI_GET_BITS(msd_capability, 0, 8)
- #define WMI_MEDIUM_SYNC_DURATION_SET(msd_capability,value) WMI_SET_BITS(msd_capability, 0, 8, value)
- #define WMI_MEDIUM_SYNC_OFDM_ED_THRESHOLD_GET(msd_capability) WMI_GET_BITS(msd_capability, 8, 4)
- #define WMI_MEDIUM_SYNC_OFDM_ED_THRESHOLD_SET(msd_capability, value) WMI_SET_BITS(msd_capability, 8, 4, value)
- #define WMI_MEDIUM_SYNC_MAX_NO_TXOPS_GET(msd_capability) WMI_GET_BITS(msd_capability, 12, 4)
- #define WMI_MEDIUM_SYNC_MAX_NO_TXOPS_SET(msd_capability, value) WMI_SET_BITS(msd_capability, 12, 4, value)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_MAC_PHY_CAPABILITIES */
- /* hw_mode_id - identify a particular set of HW characteristics, as specified
- * by the subsequent fields. WMI_MAC_PHY_CAPABILITIES element must be mapped
- * to its parent WMI_HW_MODE_CAPABILITIES element using hw_mode_id.
- * No particular ordering of WMI_MAC_PHY_CAPABILITIES elements should be assumed,
- * though in practice the elements may always be ordered by hw_mode_id */
- A_UINT32 hw_mode_id;
- /*
- * pdev_id starts with 1. pdev_id 1 => phy_id 0, pdev_id 2 => phy_id 1
- * hw_link_id: Unique link id across SOCs, got as part of QMI handshake.
- * For legacy chips which do not support MLO, these top bits will always
- * be set to 0, so it won't impact the legacy chips which treat pdev_id
- * as 32 bits.
- */
- union {
- struct {
- A_UINT32 pdev_id:16,
- hw_link_id:16;
- } wmi_pdev_to_link_map;
- A_UINT32 pdev_id;
- };
- /* phy id. Starts with 0 */
- A_UINT32 phy_id;
- /* supported modulations and number of MU beamformees */
- union {
- struct {
- A_UINT32 supports_11b:1,
- supports_11g:1,
- supports_11a:1,
- supports_11n:1,
- supports_11ac:1,
- supports_11ax:1,
- supports_11be:1,
- unused: 21,
- max_mubfee: 4; /* max MU beamformees supported per MAC */
- };
- A_UINT32 supported_flags;
- };
- /* supported bands, enum WLAN_BAND_CAPABILITY */
- A_UINT32 supported_bands;
- /* ampdu density 0 for no restriction, 1 for 1/4 us, 2 for 1/2 us,
- * 3 for 1 us,4 for 2 us, 5 for 4 us, 6 for 8 us,7 for 16 us */
- A_UINT32 ampdu_density;
- /* max bw supported 2G, enum wmi_channel_width */
- A_UINT32 max_bw_supported_2G;
- /* WMI HT Capability, WMI_HT_CAP defines */
- A_UINT32 ht_cap_info_2G;
- /* VHT capability info field of 802.11ac, WMI_VHT_CAP defines */
- A_UINT32 vht_cap_info_2G;
- /* VHT Supported MCS Set field Rx/Tx same
- * The max VHT-MCS for n SS subfield (where n = 1,...,8) is encoded as follows
- * - 0 indicates support for VHT-MCS 0-7 for n spatial streams
- * - 1 indicates support for VHT-MCS 0-8 for n spatial streams
- * - 2 indicates support for VHT-MCS 0-9 for n spatial streams
- * - 3 indicates that n spatial streams is not supported
- * - bit [15:0] Each NSS takes 2 bit.
- * - bit [23:16] Indicates support for VHT-MCS 10 and 11 for
- * n spatial streams
- * - bit 16 - for NSS 1
- * - bit 17 - for NSS 2
- * - .
- * - .
- * - bit 23 - for NSS 8
- * - bit 24 - indicate whether the VHT-MCS 10-11 specs in bits 23:16
- * are valid
- * Refer to the WMI_VHT_MAX_MCS_EXT_SS_GET/SET macros.
- */
- A_UINT32 vht_supp_mcs_2G;
- /*HE capability info field of 802.11ax, WMI_HE_CAP defines */
- A_UINT32 he_cap_info_2G;
- /* HE Supported MCS Set field Rx/Tx same
- * - 2 bits are used for each NSS chain.Max of 8 NSS can be encoded with
- * bit 2-0 indicating max HE MCS of NSS1
- * bit 5-3 indicating max HE MCS of NSS2 and so on
- * - The max HE-MCS for n SS subfield (where n = 1,...,8) in case of
- * HE BW less than or equal to 80MHZ is encoded as follows
- * - 0 indicates support for VHT-MCS 0-7 for n spatial streams
- * - 1 indicates support for VHT-MCS 0-9 for n spatial streams
- * - 2 indicates support for VHT-MCS 0-11 for n spatial streams
- * - 3 indicates that n spatial streams is not supported
- * - WMI_HE_MAX_MCS_4_SS_MASK macro can be used for encoding this info
- */
- A_UINT32 he_supp_mcs_2G;
- /* Valid Transmit chain mask */
- A_UINT32 tx_chain_mask_2G;
- /* Valid Receive chain mask */
- A_UINT32 rx_chain_mask_2G;
- /* max bw supported 5G, enum wmi_channel_width */
- A_UINT32 max_bw_supported_5G;
- /* WMI HT Capability, WMI_HT_CAP defines */
- A_UINT32 ht_cap_info_5G;
- /* VHT capability info field of 802.11ac, WMI_VHT_CAP defines */
- A_UINT32 vht_cap_info_5G;
- /* VHT Supported MCS Set field Rx/Tx same
- * The max VHT-MCS for n SS subfield (where n = 1,...,8) is encoded as follows
- * - 0 indicates support for VHT-MCS 0-7 for n spatial streams
- * - 1 indicates support for VHT-MCS 0-8 for n spatial streams
- * - 2 indicates support for VHT-MCS 0-9 for n spatial streams
- * - 3 indicates that n spatial streams is not supported
- * - bit [15:0] Each NSS takes 2 bit.
- * - bit [23:16] Indicates support for VHT-MCS 10 and 11 for
- * n spatial streams
- * - bit 16 - for NSS 1
- * - bit 17 - for NSS 2
- * - .
- * - .
- * - bit 23 - for NSS 8
- * - bit 24 - indicate whether the VHT-MCS 10-11 specs in bits 23:16
- * are valid
- * Refer to the WMI_VHT_MAX_MCS_EXT_SS_GET/SET macros.
- */
- A_UINT32 vht_supp_mcs_5G;
- /*HE capability info field of 802.11ax, WMI_HE_CAP defines */
- A_UINT32 he_cap_info_5G;
- /* HE Supported MCS Set field Rx/Tx same
- * - 2 bits are used for each NSS chain.Max of 8 NSS can be encoded with
- * bit 2-0 indicating max HE MCS of NSS1
- * bit 5-3 indicating max HE MCS of NSS2 and so on
- * - The max HE-MCS for n SS subfield (where n = 1,...,8) in case of
- * HE BW less than or equal to 80MHZ is encoded as follows
- * - 0 indicates support for VHT-MCS 0-7 for n spatial streams
- * - 1 indicates support for VHT-MCS 0-9 for n spatial streams
- * - 2 indicates support for VHT-MCS 0-11 for n spatial streams
- * - 3 indicates that n spatial streams is not supported
- * - WMI_HE_MAX_MCS_4_SS_MASK macro can be used for encoding this info
- * - The max HE-MCS for n SS subfield (where n = 1,...,8) in case of
- * HE BW equal to 80+80 or 160 MHZ encoding is same as above just the
- * lower 16 bits are used for lower 80MHz NSS-MCS supported combo and
- * upper 16 bits are used for upper 80MHz NSS-MCS supported combo
- */
- A_UINT32 he_supp_mcs_5G;
- /* Valid Transmit chain mask */
- A_UINT32 tx_chain_mask_5G;
- /* Valid Receive chain mask */
- A_UINT32 rx_chain_mask_5G;
- /* HE capability phy field of 802.11ax, WMI_HE_CAP defines */
- A_UINT32 he_cap_phy_info_2G[WMI_MAX_HECAP_PHY_SIZE];
- A_UINT32 he_cap_phy_info_5G[WMI_MAX_HECAP_PHY_SIZE];
- wmi_ppe_threshold he_ppet2G;
- wmi_ppe_threshold he_ppet5G;
- /* chainmask table to be used for the MAC */
- A_UINT32 chainmask_table_id;
- /* PDEV ID to LMAC ID mapping */
- A_UINT32 lmac_id;
- /* 2nd DWORD of HE capability info field of 802.11ax, support Draft 3+ */
- A_UINT32 he_cap_info_2G_ext;
- A_UINT32 he_cap_info_5G_ext;
- /*
- * bit 0 : Indicated support for RX 1xLTF + 0.4us
- * bit 1 : Indicates support for RX 2xLTF + 0.4us
- * bit 2 : Indicates support for 2xLTF in 160/80+80 MHz HE PPDU
- * bit[31:3] : Reserved
- * Refer to WMI_HE_CAP_xx_LTF_xxx_SUPPORT_GET/SET macros
- */
- A_UINT32 he_cap_info_internal;
- A_UINT32 wireless_modes; /* REGDMN MODE, see REGDMN_MODE_ enum */
- A_UINT32 low_2ghz_chan_freq; /* units = MHz */
- A_UINT32 high_2ghz_chan_freq; /* units = MHz */
- A_UINT32 low_5ghz_chan_freq; /* units = MHz */
- A_UINT32 high_5ghz_chan_freq; /* units = MHz */
- /*
- * NSS ratio to be sent to Host during boot-up capabilities negotiation
- *
- * Bit 0 - refer to WMI_NSS_RATIO_ENABLE_DISABLE_ definitions
- * [0] : 0 - WMI_NSS_RATIO_DISABLE
- * [0] : 1 - WMI_NSS_RATIO_ENABLE
- *
- * Bits 4:1 - refer to WMI_NSS_RATIO_INFO_ definitions
- * [4:1] : 0000 - WMI_NSS_RATIO_1BY2_NSS
- * [4:1] : 0001 - WMI_NSS_RATIO_3BY4_NSS
- * [4:1] : 0010 - WMI_NSS_RATIO_1_NSS
- * [4:1] : 0011 - WMI_NSS_RATIO_2_NSS
- *
- * [31:5] : Reserved
- */
- A_UINT32 nss_ratio;
- /**************************************************************************
- * DON'T ADD ANY FURTHER FIELDS HERE -
- * It would cause the size of the READY_EXT message within some targets
- * to exceed the size of the buffer used for the message.
- **************************************************************************/
- } WMI_MAC_PHY_CAPABILITIES;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_MAC_PHY_CAPABILITIES_EXT */
- /* hw_mode_id - identify a particular set of HW characteristics, as specified
- * by the subsequent fields. WMI_MAC_PHY_CAPABILITIES element must be mapped
- * to its parent WMI_HW_MODE_CAPABILITIES element using hw_mode_id.
- * No particular ordering of WMI_MAC_PHY_CAPABILITIES elements should be assumed,
- * though in practice the elements may always be ordered by hw_mode_id */
- A_UINT32 hw_mode_id;
- /*
- * pdev_id starts with 1. pdev_id 1 => phy_id 0, pdev_id 2 => phy_id 1
- * hw_link_id: Unique link id across SOCs, got as part of QMI handshake.
- * For legacy chips which do not support MLO, these top bits will always
- * be set to 0, so it won't impact the legacy chips which treat pdev_id
- * as 32 bits.
- */
- union {
- struct {
- A_UINT32 pdev_id:16,
- hw_link_id:16;
- } wmi_pdev_to_link_map;
- A_UINT32 pdev_id;
- };
- /* phy id. Starts with 0 */
- A_UINT32 phy_id;
- A_UINT32 wireless_modes_ext; /* REGDMN MODE EXT, see REGDMN_MODE_ enum */
- /**************************************************************************
- * following new params for 802.11be, but under development
- **************************************************************************/
- /* EHT capability mac info field of 802.11be */
- A_UINT32 eht_cap_mac_info_2G[WMI_MAX_EHTCAP_MAC_SIZE];
- A_UINT32 eht_cap_mac_info_5G[WMI_MAX_EHTCAP_MAC_SIZE];
- A_UINT32 eht_supp_mcs_2G; /* deprecated (c.f. eht_supp_mcs_ext_2G) */
- A_UINT32 eht_supp_mcs_5G; /* deprecated (c.f. eht_supp_mcs_ext_5G) */
- /* EHT capability phy field of 802.11be, WMI_EHT_CAP defines */
- A_UINT32 eht_cap_phy_info_2G[WMI_MAX_EHTCAP_PHY_SIZE];
- A_UINT32 eht_cap_phy_info_5G[WMI_MAX_EHTCAP_PHY_SIZE];
- wmi_ppe_threshold eht_ppet2G;
- wmi_ppe_threshold eht_ppet5G;
- A_UINT32 eht_cap_info_internal;
- /* eht_supp_mcs_ext_2G, eht_supp_mcs_ext_5G:
- * array index interpretation:
- * 0 – index indicated EHT-MCS map for 20Mhz only sta (4 bytes valid)
- * 1 – index for <= 80MHz bw (only 3 bytes are valid and other is reserved)
- * 2 – index for 160Mhz bw (only 3 bytes are valid and other is reserved)
- * 3 – index for 320Mhz bw (only 3 bytes are valid and other is reserved)
- *
- * The format of the data stored in each array index element is defined
- * by IEEE802.11 9.4.2.295c.4
- * For example, for the 20 MHz / index 0 element:
- * B0 -- B3: Rx Max Nss that Supports EHT-MCS 0–7
- * B4 -- B7: Tx Max Nss that Supports EHT-MCS 0–7
- * B8 -- B11: Rx Max Nss that Supports EHT-MCS 8–9
- * B12 -- B15: Tx Max Nss that Supports EHT-MCS 8–9
- * B16 -- B19: Rx Max Nss that Supports EHT-MCS 10–11
- * B20 -- B23: Tx Max Nss that Supports EHT-MCS 10–11
- * B24 -- B27: Rx Max Nss that Supports EHT-MCS 12–13
- * B28 -- B31: Tx Max Nss that Supports EHT-MCS 12–13
- */
- A_UINT32 eht_supp_mcs_ext_2G[WMI_MAX_EHT_SUPP_MCS_2G_SIZE];
- A_UINT32 eht_supp_mcs_ext_5G[WMI_MAX_EHT_SUPP_MCS_5G_SIZE];
- union {
- struct {
- A_UINT32 emlsr_support:1,
- emlsr_padding_delay:3,
- emlsr_transition_delay:3,
- emlmr_support:1,
- emlmr_delay:3,
- transition_timeout:4,
- reserved: 17;
- };
- A_UINT32 eml_capability;
- };
- union {
- struct {
- A_UINT32 max_num_simultaneous_links:4,
- srs_support:1,
- tid_to_link_negotiation_support:2, /* Set to 0 if TID-to-link mapping is not supported by the MLD.
- * Set to 1 if MLD supports the mapping of each TID to the same or different link set.
- * Set to 2 if MLD only supports the mapping of all TIDs to the same link set.
- * Value 3 is reserved */
- freq_separation_str:5,
- aar_support:1,
- reserved2: 19;
- };
- A_UINT32 mld_capability;
- };
- union {
- struct {
- A_UINT32
- op_update_para_support:1, /* Indicates support of operation parameter update negotiation */
- reserved3: 31;
- };
- A_UINT32 ext_mld_capability;
- };
- union {
- struct {
- A_UINT32 medium_sync_duration:8,
- medium_sync_ofdm_ed_threshold:4,
- medium_sync_max_no_txops:4,
- reserved4: 16;
- };
- A_UINT32 msd_capability;
- };
- } WMI_MAC_PHY_CAPABILITIES_EXT;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_HW_MODE_CAPABILITIES */
- /* hw_mode_id - identify a particular set of HW characteristics,
- * as specified by the subsequent fields */
- A_UINT32 hw_mode_id;
- /* BIT0 represents phy_id 0, BIT1 represent phy_id 1 and so on
- * number of bits set in phy_id_map represents number of WMI_MAC_PHY_CAPABILITIES TLV's
- * one for each active PHY for current HW mode identified by hw_mode_id. For example for
- * DBS/SBS mode there will be 2 WMI_MAC_PHY_CAPABILITIES TLVs and for single MAC modes it
- * will be 1 WMI_MAC_PHY_CAPABILITIES TLVs */
- A_UINT32 phy_id_map;
- /* hw_mode_config_type
- * Identify a particular type of HW mode such as SBS, DBS etc.
- * Refer to WMI_HW_MODE_CONFIG_TYPE values.
- *
- * Use bits 31:27 of hw_mode_config_type for Per HW mode MLO capability
- * flags.
- * Refer to WMI_MLO_CAP_FLAG_XXX. For legacy chips which do not support
- * MLO, these top bits will always be set to 0, so it won't impact the
- * legacy chips which treat hw_mode_config_type as 32 bits.
- */
- union {
- struct {
- A_UINT32 hw_mode_config :27,
- mlo_cap_flag :5; /* see WMI_MLO_CAP_FLAG_ defs */
- };
- A_UINT32 hw_mode_config_type;
- };
- /**************************************************************************
- * DON'T ADD ANY FURTHER FIELDS HERE -
- * It would cause the size of the READY_EXT message within some targets
- * to exceed the size of the buffer used for the message.
- **************************************************************************/
- } WMI_HW_MODE_CAPABILITIES;
- /*
- * The following macros are for the bitfields witihin the supported flags field
- * of WMI_MAC_PHY_CHAINMASK_CAPABILITY:
- * Capabilities for the chainmask
- */
- #define WMI_SUPPORT_CHAN_WIDTH_20_GET(flags) WMI_GET_BITS(flags, 0, 1)
- #define WMI_SUPPORT_CHAN_WIDTH_20_SET(flags, value) WMI_SET_BITS(flags, 0, 1, value)
- #define WMI_SUPPORT_CHAN_WIDTH_40_GET(flags) WMI_GET_BITS(flags, 1, 1)
- #define WMI_SUPPORT_CHAN_WIDTH_40_SET(flags, value) WMI_SET_BITS(flags, 1, 1, value)
- #define WMI_SUPPORT_CHAN_WIDTH_80_GET(flags) WMI_GET_BITS(flags, 2, 1)
- #define WMI_SUPPORT_CHAN_WIDTH_80_SET(flags, value) WMI_SET_BITS(flags, 2, 1, value)
- #define WMI_SUPPORT_CHAN_WIDTH_160_GET(flags) WMI_GET_BITS(flags, 3, 1)
- #define WMI_SUPPORT_CHAN_WIDTH_160_SET(flags, value) WMI_SET_BITS(flags, 3, 1, value)
- #define WMI_SUPPORT_CHAN_WIDTH_80P80_GET(flags) WMI_GET_BITS(flags, 4, 1)
- #define WMI_SUPPORT_CHAN_WIDTH_80P80_SET(flags, value) WMI_SET_BITS(flags, 4, 1, value)
- #define WMI_SUPPORT_AGILE_SPECTRAL_GET(flags) WMI_GET_BITS(flags, 5, 1)
- #define WMI_SUPPORT_AGILE_SPECTRAL_SET(flags, value) WMI_SET_BITS(flags, 5, 1, value)
- #define WMI_SUPPORT_AGILE_SPECTRAL_160_GET(flags) WMI_GET_BITS(flags, 6, 1)
- #define WMI_SUPPORT_AGILE_SPECTRAL_160_SET(flags, value) WMI_SET_BITS(flags, 6, 1, value)
- #define WMI_SUPPORT_ADFS_160_GET(flags) WMI_GET_BITS(flags, 7, 1)
- #define WMI_SUPPORT_ADFS_160_SET(flags, value) WMI_SET_BITS(flags, 7, 1, value)
- #define WMI_SUPPORT_CHAN_WIDTH_320_GET(flags) WMI_GET_BITS(flags, 8, 1)
- #define WMI_SUPPORT_CHAN_WIDTH_320_SET(flags, value) WMI_SET_BITS(flags, 8, 1, value)
- #define WMI_SUPPORT_ADFS_320_GET(flags) WMI_GET_BITS(flags, 9, 1)
- #define WMI_SUPPORT_ADFS_320_SET(flags, value) WMI_SET_BITS(flags, 9, 1, value)
- #define WMI_SUPPORT_AGILE_SPECTRAL_320_GET(flags) WMI_GET_BITS(flags, 10, 1)
- #define WMI_SUPPORT_AGILE_SPECTRAL_320_SET(flags, value) WMI_SET_BITS(flags, 10, 1, value)
- #define WMI_SUPPORT_CHAIN_MASK_2G_GET(flags) WMI_GET_BITS(flags, 27, 1)
- #define WMI_SUPPORT_CHAIN_MASK_2G_SET(flags, value) WMI_SET_BITS(flags, 27, 1, value)
- #define WMI_SUPPORT_CHAIN_MASK_5G_GET(flags) WMI_GET_BITS(flags, 28, 1)
- #define WMI_SUPPORT_CHAIN_MASK_5G_SET(flags, value) WMI_SET_BITS(flags, 28, 1, value)
- #define WMI_SUPPORT_CHAIN_MASK_TX_GET(flags) WMI_GET_BITS(flags, 29, 1)
- #define WMI_SUPPORT_CHAIN_MASK_TX_SET(flags, value) WMI_SET_BITS(flags, 29, 1, value)
- #define WMI_SUPPORT_CHAIN_MASK_RX_GET(flags) WMI_GET_BITS(flags, 30, 1)
- #define WMI_SUPPORT_CHAIN_MASK_RX_SET(flags, value) WMI_SET_BITS(flags, 30, 1, value)
- #define WMI_SUPPORT_CHAIN_MASK_ADFS_GET(flags) WMI_GET_BITS(flags, 31, 1)
- #define WMI_SUPPORT_CHAIN_MASK_ADFS_SET(flags, value) WMI_SET_BITS(flags, 31, 1, value)
- /** Definition of valid chainmask and associated capabilities */
- typedef struct {
- A_UINT32 tlv_header;/* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_MAC_PHY_CHAINMASK_CAPABILITY */
- /* supported flags: Capabilities for this chianmask*/
- union {
- struct {
- A_UINT32 supports_chan_width_20:1,
- supports_chan_width_40:1,
- supports_chan_width_80:1,
- supports_chan_width_160:1,
- supports_chan_width_80P80:1,
- supports_agile_spectral:1,
- supports_agile_spectral_160:1,
- supports_aDFS_160:1,
- supports_chan_width_320:1,
- supports_aDFS_320:1,
- supports_agile_spectral_320:1,
- reserved:16, /* bits 26:11 */
- chain_mask_2G:1,
- chain_mask_5G:1,
- chain_mask_tx:1,
- chain_mask_rx:1,
- supports_aDFS:1; /* agile DFS */
- };
- A_UINT32 supported_flags;
- };
- A_UINT32 chainmask;
- /**************************************************************************
- * DON'T ADD ANY FURTHER FIELDS HERE -
- * It would cause the size of the READY_EXT message within some targets
- * to exceed the size of the buffer used for the message.
- **************************************************************************/
- } WMI_MAC_PHY_CHAINMASK_CAPABILITY;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_MAC_PHY_CHAINMASK_COMBO */
- A_UINT32 chainmask_table_id;
- /* Number of valid Chainmask in the table */
- A_UINT32 num_valid_chainmask;
- /**************************************************************************
- * DON'T ADD ANY FURTHER FIELDS HERE -
- * It would cause the size of the READY_EXT message within some targets
- * to exceed the size of the buffer used for the message.
- **************************************************************************/
- /*
- * This TLV is followed by the below TLVs:
- * WMI_MAC_PHY_CHAINMASK_CAPABILITY mac_phy_chainmask_caps[num_valid_chainmask]
- */
- } WMI_MAC_PHY_CHAINMASK_COMBO;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_SOC_MAC_PHY_HW_MODE_CAPS */
- /* num HW modes */
- A_UINT32 num_hw_modes;
- /* number of unique chainmask combo tables */
- A_UINT32 num_chainmask_tables;
- /**************************************************************************
- * DON'T ADD ANY FURTHER FIELDS HERE -
- * It would cause the size of the READY_EXT message within some targets
- * to exceed the size of the buffer used for the message.
- **************************************************************************/
- /*
- * This TLV is followed by the below TLVs:
- *
- * WMI_HW_MODE_CAPABILITIES soc_hw_mode_caps[num_hw_modes]
- *
- * (intervening TLVs, e.g. HW_MODE_CAPS, MAC_PHY_CAPS, HAL_REG_CAPS)
- *
- * WMI_MAC_PHY_CHAINMASK_COMBO mac_phy_chainmask_combo[num_chainmask_tables]
- * // number of chainmasks specified in mac_phy_chainmask_combo[0]
- * WMI_MAC_PHY_CHAINMASK_CAPABILITY mac_phy_chainmask_caps[num_valid_chainmask0]
- * // number of chainmasks specified in mac_phy_chainmask_combo[1]
- * WMI_MAC_PHY_CHAINMASK_CAPABILITY mac_phy_chainmask_caps[num_valid_chainmask1]
- * // number of chainmasks specified in mac_phy_chainmask_combo[2]
- * WMI_MAC_PHY_CHAINMASK_CAPABILITY mac_phy_chainmask_caps[num_valid_chainmask2]
- * etc.
- */
- } WMI_SOC_MAC_PHY_HW_MODE_CAPS;
- /*Below are Reg caps per PHY. Please note PHY ID starts with 0.*/
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_HAL_REG_CAPABILITIES_EXT */
- /* phy id */
- A_UINT32 phy_id;
- /* regdomain value specified in EEPROM */
- A_UINT32 eeprom_reg_domain;
- /* regdomain */
- A_UINT32 eeprom_reg_domain_ext;
- /* CAP1 capabilities bit map, see REGDMN_CAP1_ defines */
- A_UINT32 regcap1;
- /* REGDMN EEPROM CAP, see REGDMN_EEPROM_EEREGCAP_ defines */
- A_UINT32 regcap2;
- /* REGDMN MODE, see REGDMN_MODE_ enum */
- A_UINT32 wireless_modes;
- A_UINT32 low_2ghz_chan; /* freq in MHz */
- A_UINT32 high_2ghz_chan; /* freq in MHz */
- A_UINT32 low_5ghz_chan; /* freq in MHz */
- A_UINT32 high_5ghz_chan; /* freq in MHz */
- /**************************************************************************
- * DON'T ADD ANY FURTHER FIELDS HERE -
- * It would cause the size of the READY_EXT message within some targets
- * to exceed the size of the buffer used for the message.
- **************************************************************************/
- } WMI_HAL_REG_CAPABILITIES_EXT;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_HAL_REG_CAPABILITIES_EXT2 */
- /* phy id */
- A_UINT32 phy_id;
- /* regdomain value specified in EEPROM */
- A_UINT32 wireless_modes_ext;
- A_UINT32 low_2ghz_chan_ext; /* freq in MHz */
- A_UINT32 high_2ghz_chan_ext; /* freq in MHz */
- A_UINT32 low_5ghz_chan_ext; /* freq in MHz */
- A_UINT32 high_5ghz_chan_ext; /* freq in MHz */
- } WMI_HAL_REG_CAPABILITIES_EXT2;
- /*
- * TWT service capability bitmap in wmi_twt_caps_params TLV
- * within WMI_SERVICE_READY_EXT2_EVENTID message
- */
- typedef enum {
- WMI_TWT_STA_SYNC_EVENT_CAP = 1, /* STA TWT: FW internal errors reported using sync WMI_TWT_ACK_EVENTID */
- /* Add new TWT Caps above */
- WMI_TWT_MAX_CAP = 32,
- } WMI_TWT_CAPS_BITMAP;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_caps_param */
- /* twt_capability_bitmap
- * TWT Capabilities - refer to WMI_TWT_CAPS_BITMAP for the meaning of
- * the bits within the bitmap
- */
- A_UINT32 twt_capability_bitmap;
- } wmi_twt_caps_params;
- /*
- * This TLV used for Scan Radio RDP
- * We have an RDP which supports Multiband-Frequency (2 GHz, 5 GHz and 6 GHz)
- * on a single radio.
- * The AP acts as a special VAP. There will not be WMI_VDEV_UP_CMD.
- * This radio is used only for scanning purpose and to send few MGMT frames.
- * The DFS feature is disabled on this scan radio, since there will not be
- * much TX traffic.
- * The Host has to disable CAC timer because DFS feature not supported here.
- * In order to know about the scan radio RDP, DFS disabled case and
- * SCAN BLANKING support, the target has to send this information to Host
- * per pdev via WMI_SERVICE_READY_EXT2_EVENT.
- * The target is notified of the special scan VAP by the flags variable
- * in the WMI_CREATE_CMD.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_SCAN_RADIO_CAPABILITIES_EXT2 */
- A_UINT32 phy_id;
- /*
- * Bit 0:
- * 1 - SCAN_RADIO supported 0 - SCAN_RADIO not supported
- * Refer to WMI_SCAN_RADIO_CAP_SCAN_RADIO_FLAG_SET, GET macros
- * Bit 1:
- * 1 - DFS enabled 0 - DFS disabled
- * Refer to WMI_SCAN_RADIO_CAP_DFS_FLAG_SET, GET macros
- * Bit 2:
- * 1 - SCAN RADIO blanking supported
- * 0 - SCAN RADIO blanking not supported
- * Refer to WMI_SCAN_RADIO_CAP_BLANKING_SUPPORT_SET, GET macros
- * [3:31] reserved
- */
- A_UINT32 flags;
- } WMI_SCAN_RADIO_CAPABILITIES_EXT2;
- #define WMI_SCAN_RADIO_CAP_SCAN_RADIO_FLAG_GET(flag) WMI_GET_BITS(flag, 0, 1)
- #define WMI_SCAN_RADIO_CAP_SCAN_RADIO_FLAG_SET(flag, val) WMI_SET_BITS(flag, 0, 1, val)
- #define WMI_SCAN_RADIO_CAP_DFS_FLAG_GET(flag) WMI_GET_BITS(flag, 1, 1)
- #define WMI_SCAN_RADIO_CAP_DFS_FLAG_SET(flag, val) WMI_SET_BITS(flag, 1, 1, val)
- #define WMI_SCAN_RADIO_CAP_BLANKING_SUPPORT_GET(flag) WMI_GET_BITS(flag, 2, 1)
- #define WMI_SCAN_RADIO_CAP_BLANKING_SUPPORT_SET(flag, val) WMI_SET_BITS(flag, 2, 1, val)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_SOC_HAL_REG_CAPABILITIES */
- A_UINT32 num_phy;
- /* num_phy WMI_HAL_REG_CAPABILITIES_EXT TLV's */
- /**************************************************************************
- * DON'T ADD ANY FURTHER FIELDS HERE -
- * It would cause the size of the READY_EXT message within some targets
- * to exceed the size of the buffer used for the message.
- **************************************************************************/
- } WMI_SOC_HAL_REG_CAPABILITIES;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_OEM_DMA_RING_CAPABILITIES */
- A_UINT32 pdev_id;
- A_UINT32 min_num_ptr;
- /* Minimum number of pointers in the OEM DMA ring for this pdev */
- A_UINT32 min_buf_size;
- /* Minimum size in bytes of each buffer in the OEM DMA ring */
- A_UINT32 min_buf_align;
- /* Minimum alignment in bytes of each buffer in the OEM DMA ring */
- /**************************************************************************
- * DON'T ADD ANY FURTHER FIELDS HERE -
- * It would cause the size of the READY_EXT message within some targets
- * to exceed the size of the buffer used for the message.
- **************************************************************************/
- } WMI_OEM_DMA_RING_CAPABILITIES;
- typedef enum {
- WMI_SAR_VERSION_0_ORIGINAL = 0x00,
- WMI_SAR_VERSION_1_FULL_TABLE = 0x01,
- WMI_SAR_VERSION_2_DBS_SAR = 0x02,
- WMI_SAR_VERSION_3_SBS_SAR = 0x03,
- WMI_SAR_VERSION_SMART_TX = 0x04,
- WMI_SAR_VERSION_TAS = 0x05,
- WMI_SAR_VERSION_INVALID = 0x80
- } wmi_sar_version_t;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_SAR_CAPABILITIES*/
- /* sar version in bdf */
- A_UINT32 active_version; /* contains a wmi_sar_version_t value */
- /**************************************************************************
- * DON'T ADD ANY FURTHER FIELDS HERE -
- * It would cause the size of the READY_EXT message within some targets
- * to exceed the size of the buffer used for the message.
- **************************************************************************/
- } WMI_SAR_CAPABILITIES;
- typedef enum {
- WMI_SAR_FLAG_NONE = 0,
- WMI_SAR_SET_CTL_GROUPING_DISABLE,
- WMI_SAR_DBS_WITH_BT_DISABLE,
- WMI_SAR_FLAG_MAX,
- } wmi_sar_flags;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sar_flags*/
- /* sar flags in bdf */
- A_UINT32 sar_flags; /* refer to enum wmi_sar_flags */
- } wmi_sar_flag_tlv_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_scan_adaptive_dwell_parameters_tlv */
- /** global default adaptive dwell mode, used when WMI_SCAN_DWELL_MODE_DEFAULT */
- A_UINT32 default_adaptive_dwell_mode;
- /** the weight to calculate the average low pass filter for channel congestion. 0-100 */
- A_UINT32 adapative_lpf_weight;
- /** interval to monitor passive scan in msec */
- A_UINT32 passive_monitor_interval_ms;
- /** % of wifi activity to switch from passive to active 0-100 */
- A_UINT32 wifi_activity_threshold_pct;
- } wmi_scan_adaptive_dwell_parameters_tlv;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_scan_adaptive_dwell_config_fixed_param */
- /* globally enable/disable adaptive dwell */
- A_UINT32 enable;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /**
- * followed by TLV (tag length value) parameters array
- * The TLV's are:
- * wmi_scan_adaptive_dwell_parameters_tlv param[]; (0 or 1 elements)
- */
- } wmi_scan_adaptive_dwell_config_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_scan_dbs_duty_cycle_param_tlv */
- /** module_id **/
- A_UINT32 module_id;
- /** number of dbs scans */
- A_UINT32 num_dbs_scans;
- /** number of non-dbs scans */
- A_UINT32 num_non_dbs_scans;
- } wmi_scan_dbs_duty_cycle_tlv_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_scan_dbs_duty_cycle_fixed_param */
- /* number of scan client dutycycle param elements */
- A_UINT32 num_clients;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /**
- * followed by TLV (tag length value) parameters array
- * The TLV's are:
- * wmi_scan_selection_duty_cycle_tlv_param[num_clients];
- */
- } wmi_scan_dbs_duty_cycle_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_therm_throt_level_config_info */
- A_UINT32 tlv_header;
- /** temp_lwm:
- * temperature sensor value in celsius when to exit to lower zone,
- * this value can be lower than HWM of lower zone as zone overlapping
- * is permitted by design to provide hysteresis
- */
- A_UINT32 temp_lwm;
- /** temp_hwm:
- * temperature sensor value in celsius when to exit to higher zone,
- * this value can be higher than LWM of higher zone as zone overlapping
- * is permitted by design to provide hysteresis
- */
- A_UINT32 temp_hwm;
- /** dc_off_percent:
- * duty cycle off percent 0-100.
- * 0 means no off, 100 means no on (shutdown the phy).
- */
- A_UINT32 dc_off_percent;
- /** prio:
- * Disable only the transmit queues in firmware that have lower priority
- * than value defined by prio.
- * Prioritization:
- * 0 = disable all data tx queues, No Prioritization defined
- * 1 = disable BK tx queue
- * 2 = disable BK+BE tx queues
- * 3 = disable BK+BE+VI tx queues
- */
- A_UINT32 prio;
- /**
- * Pout power reduction in 0.25 dB units.
- * For example, a value of 5 causes a power reduction of 1.25 dB.
- */
- A_UINT32 pout_reduction_25db;
- /* tx chain mask: Chain mask to apply based on the temp level */
- A_UINT32 tx_chain_mask;
- } wmi_therm_throt_level_config_info;
- typedef enum {
- WMI_THERMAL_TEMP_RANGE_STATS_NONE = 0,
- WMI_THERMAL_TEMP_RANGE_STATS_INIT,
- WMI_THERMAL_TEMP_RANGE_STATS_REQUEST,
- WMI_THERMAL_TEMP_RANGE_STATS_CLEAR,
- WMI_THERMAL_STATS_CURRENT_ALL_SENSORS_TEMP,
- } wmi_thermal_stats_action;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_thermal_stats_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /*
- * Configure thermal temperature offset value for capturing
- * thermal stats in thermal range.
- * FW already has thermal throttling threshold temperature in BDF.
- * Thermal STATS start capturing from temperature threshold to
- * temperature threshold + offset.
- * If thermal offset is 0 then thermal STATS capture is disabled.
- *
- * Units of thermal_offset are degrees Celsius.
- */
- A_UINT32 thermal_offset;
- A_UINT32 thermal_action; /* refer to enum wmi_thermal_stats_action */
- } wmi_thermal_stats_cmd_fixed_param;
- typedef enum {
- WMI_THERMAL_CLIENT_UNSPECIFIED = 0,
- WMI_THERMAL_CLIENT_APPS = 1,
- WMI_THERMAL_CLIENT_WPSS = 2,
- WMI_THERMAL_CLIENT_FW = 3,
- WMI_THERMAL_CLIENT_MAX
- } WMI_THERMAL_MITIGATION_CLIENTS;
- #define WMI_THERMAL_CLIENT_MAX_PRIORITY 10
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_therm_throt_config_request_fixed_param */
- A_UINT32 pdev_id; /* config for each pdev */
- A_UINT32 enable; /* 0:disable, 1:enable */
- A_UINT32 dc; /* duty cycle in ms */
- A_UINT32 dc_per_event; /* how often (after how many duty cycles) the FW sends stats to host */
- A_UINT32 therm_throt_levels; /* Indicates the number of thermal zone configuration */
- A_UINT32 client_id; /* Indicates the client from whom the request is being forwarded to FW. Refer to WMI_THERMAL_MITIGATION_CLIENTS. */
- A_UINT32 priority; /* Indicates the priority, higher the value, higher the priority. Varies from 1 to WMI_THERMAL_CLIENT_MAX_PRIORITY. */
- /*
- * Following this structure is the TLV:
- * struct wmi_therm_throt_level_config_info therm_throt_level_config_info[therm_throt_levels];
- */
- } wmi_therm_throt_config_request_fixed_param;
- typedef enum {
- /* no throttling */
- WMI_THERMAL_FULLPERF = 0,
- /* throttling tx to do thermal mitigation */
- WMI_THERMAL_MITIGATION = 1,
- /* shut down the tx completely */
- WMI_THERMAL_SHUTOFF = 2,
- /* THERMAL_SHUTDOWN_TGT
- * The target is over the temperature limit even with tx shut off.
- * The target will be shut down entirely to control the temperature.
- */
- WMI_THERMAL_SHUTDOWN_TGT = 3,
- } WMI_THERMAL_THROT_LEVEL;
- #define WMI_THERMAL_STATS_TEMP_THRESH_LEVEL_MAX 5
- /** FW response with the stats event id for every pdev and zones */
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_therm_throt_stats_event_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 pdev_id; /* stats for corresponding pdev*/
- A_UINT32 temp; /* Temperature reading in celsius */
- A_UINT32 level; /* Current thermal throttling level -
- * contains a WMI_THERMAL_THROT_LEVEL value. */
- A_UINT32 therm_throt_levels; /* number of levels in therm_throt_level_stats_info */
- /* This TLV is followed by another TLV of array of structs
- * wmi_therm_throt_level_stats_info therm_throt_level_stats_info[therm_throt_levels];
- * wmi_thermal_throt_temp_range_stats temp_range_stats[therm_throt_levels];
- */
- } wmi_therm_throt_stats_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_therm_throt_level_stats_info */
- A_UINT32 tlv_header;
- A_UINT32 level_count; /* count of each time thermal throttling entered this state */
- A_UINT32 dc_count; /* total number of duty cycles spent in this state. */
- /* this number increments by one each time we are in this state and we finish one full duty cycle. */
- } wmi_therm_throt_level_stats_info;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_thermal_throt_temp_range_stats
- */
- A_UINT32 tlv_header;
- /**
- * Temperature range to capture thermal stats between start to end
- * temperature level.
- */
- A_UINT32 start_temp_level; /* unit in degC */
- A_UINT32 end_temp_level; /* unit in degC */
- /** Total time spent on each thermal stats level, units are milliseconds. */
- A_UINT32 total_time_ms_lo;
- A_UINT32 total_time_ms_hi;
- /**
- * Thermal stats counter for every time thermal stats level enters
- * this temperature range.
- */
- A_UINT32 num_entry;
- } wmi_thermal_throt_temp_range_stats;
- typedef enum {
- WMI_REG_EXT_FCC_MIDBAND = 0,
- WMI_REG_EXT_JAPAN_MIDBAND = 1,
- WMI_REG_EXT_FCC_DFS_HT40 = 2,
- WMI_REG_EXT_JAPAN_NONDFS_HT40 = 3,
- WMI_REG_EXT_JAPAN_DFS_HT40 = 4,
- WMI_REG_EXT_FCC_CH_144 = 5,
- } WMI_REG_EXT_BITMAP;
- #ifdef WMI_CMD_STRINGS
- static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command)
- {
- switch (wmi_command) {
- /* initialize the wlan sub system */
- WMI_RETURN_STRING(WMI_INIT_CMDID);
- /* Scan specific commands */
- /* start scan request to FW */
- WMI_RETURN_STRING(WMI_START_SCAN_CMDID);
- /* stop scan request to FW */
- WMI_RETURN_STRING(WMI_STOP_SCAN_CMDID);
- /* full list of channels as defined by the regulatory
- * that will be used by scanner */
- WMI_RETURN_STRING(WMI_SCAN_CHAN_LIST_CMDID);
- /* overwrite default priority table in scan scheduler */
- WMI_RETURN_STRING(WMI_SCAN_SCH_PRIO_TBL_CMDID);
- /* This command to adjust the priority and min.max_rest_time
- * of an on ongoing scan request.
- */
- WMI_RETURN_STRING(WMI_SCAN_UPDATE_REQUEST_CMDID);
- /* PDEV(physical device) specific commands */
- /* set regulatorty ctl id used by FW to determine the exact
- * ctl power limits */
- WMI_RETURN_STRING(WMI_PDEV_SET_REGDOMAIN_CMDID);
- /* set channel. mainly used for supporting monitor mode */
- WMI_RETURN_STRING(WMI_PDEV_SET_CHANNEL_CMDID);
- /* set pdev specific parameters */
- WMI_RETURN_STRING(WMI_PDEV_SET_PARAM_CMDID);
- /* enable packet log */
- WMI_RETURN_STRING(WMI_PDEV_PKTLOG_ENABLE_CMDID);
- /* disable packet log*/
- WMI_RETURN_STRING(WMI_PDEV_PKTLOG_DISABLE_CMDID);
- /* set wmm parameters */
- WMI_RETURN_STRING(WMI_PDEV_SET_WMM_PARAMS_CMDID);
- /* set HT cap ie that needs to be carried probe requests
- * HT/VHT channels */
- WMI_RETURN_STRING(WMI_PDEV_SET_HT_CAP_IE_CMDID);
- /* set VHT cap ie that needs to be carried on probe
- * requests on VHT channels */
- WMI_RETURN_STRING(WMI_PDEV_SET_VHT_CAP_IE_CMDID);
- /* Command to send the DSCP-to-TID map to the target */
- WMI_RETURN_STRING(WMI_PDEV_SET_DSCP_TID_MAP_CMDID);
- /* set quiet ie parameters. primarily used in AP mode */
- WMI_RETURN_STRING(WMI_PDEV_SET_QUIET_MODE_CMDID);
- /* Enable/Disable Green AP Power Save */
- WMI_RETURN_STRING(WMI_PDEV_GREEN_AP_PS_ENABLE_CMDID);
- /* get TPC config for the current operating channel */
- WMI_RETURN_STRING(WMI_PDEV_GET_TPC_CONFIG_CMDID);
- /* set the base MAC address for the physical device before
- * a VDEV is created. For firmware that does not support
- * this feature and this command, the pdev MAC address will
- * not be changed. */
- WMI_RETURN_STRING(WMI_PDEV_SET_BASE_MACADDR_CMDID);
- /* eeprom content dump , the same to bdboard data */
- WMI_RETURN_STRING(WMI_PDEV_DUMP_CMDID);
- /* VDEV(virtual device) specific commands */
- /* vdev create */
- WMI_RETURN_STRING(WMI_VDEV_CREATE_CMDID);
- /* vdev delete */
- WMI_RETURN_STRING(WMI_VDEV_DELETE_CMDID);
- /* vdev start request */
- WMI_RETURN_STRING(WMI_VDEV_START_REQUEST_CMDID);
- /* vdev restart request (RX only, NO TX, used for CAC period)*/
- WMI_RETURN_STRING(WMI_VDEV_RESTART_REQUEST_CMDID);
- /* vdev up request */
- WMI_RETURN_STRING(WMI_VDEV_UP_CMDID);
- /* vdev stop request */
- WMI_RETURN_STRING(WMI_VDEV_STOP_CMDID);
- /* vdev down request */
- WMI_RETURN_STRING(WMI_VDEV_DOWN_CMDID);
- /* set a vdev param */
- WMI_RETURN_STRING(WMI_VDEV_SET_PARAM_CMDID);
- /* set a key (used for setting per peer unicast
- * and per vdev multicast) */
- WMI_RETURN_STRING(WMI_VDEV_INSTALL_KEY_CMDID);
- /* Set bss max idle time */
- WMI_RETURN_STRING(WMI_VDEV_BSS_MAX_IDLE_TIME_CMDID);
- /* wnm sleep mode command */
- WMI_RETURN_STRING(WMI_VDEV_WNM_SLEEPMODE_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_WMM_ADDTS_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_WMM_DELTS_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_WMM_PARAMS_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_GTX_PARAMS_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_IPSEC_NATKEEPALIVE_FILTER_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_PLMREQ_START_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_PLMREQ_STOP_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_TSF_TSTAMP_ACTION_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_IE_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_REPORT_AP_OPER_BW_CMDID);
- /* peer specific commands */
- /** create a peer */
- WMI_RETURN_STRING(WMI_PEER_CREATE_CMDID);
- /** delete a peer */
- WMI_RETURN_STRING(WMI_PEER_DELETE_CMDID);
- /** delete all peer (excluding bss peer) */
- WMI_RETURN_STRING(WMI_VDEV_DELETE_ALL_PEER_CMDID);
- /** flush specific tid queues of a peer */
- WMI_RETURN_STRING(WMI_PEER_FLUSH_TIDS_CMDID);
- /** set a parameter of a peer */
- WMI_RETURN_STRING(WMI_PEER_SET_PARAM_CMDID);
- /* set peer to associated state. will cary all parameters
- * determined during assocication time */
- WMI_RETURN_STRING(WMI_PEER_ASSOC_CMDID);
- /* add a wds (4 address ) entry. used only for testing
- * WDS feature on AP products */
- WMI_RETURN_STRING(WMI_PEER_ADD_WDS_ENTRY_CMDID);
- /* remove wds (4 address ) entry. used only for testing WDS
- * feature on AP products */
- WMI_RETURN_STRING(WMI_PEER_REMOVE_WDS_ENTRY_CMDID);
- /* set up mcast info for multicast to unicast conversion */
- WMI_RETURN_STRING(WMI_PEER_MCAST_GROUP_CMDID);
- /* request peer info from FW to get PEER_INFO_EVENTID */
- WMI_RETURN_STRING(WMI_PEER_INFO_REQ_CMDID);
- /* unmap response for a peer */
- WMI_RETURN_STRING(WMI_PEER_UNMAP_RESPONSE_CMDID);
- /* beacon/management specific commands */
- /* transmit beacon by reference. used for transmitting beacon
- * on low latency interface like pcie */
- WMI_RETURN_STRING(WMI_BCN_TX_CMDID);
- /* transmit beacon by value */
- WMI_RETURN_STRING(WMI_PDEV_SEND_BCN_CMDID);
- /* set the beacon template. used in beacon offload mode to setup
- * the common beacon template with the FW to be used by FW to
- * generate beacons */
- WMI_RETURN_STRING(WMI_BCN_TMPL_CMDID);
- /* set beacon filter with FW */
- WMI_RETURN_STRING(WMI_BCN_FILTER_RX_CMDID);
- /* enable/disable filtering of probe requests in the firmware */
- WMI_RETURN_STRING(WMI_PRB_REQ_FILTER_RX_CMDID);
- /* transmit management frame by value. will be deprecated */
- WMI_RETURN_STRING(WMI_MGMT_TX_CMDID);
- /* set the probe response template. used in beacon offload mode
- * to setup the common probe response template with the FW to
- * be used by FW to generate probe responses */
- WMI_RETURN_STRING(WMI_PRB_TMPL_CMDID);
- /** set FILS Discovery frame template for FW to generate FD frames */
- WMI_RETURN_STRING(WMI_FD_TMPL_CMDID);
- /* commands to directly control ba negotiation directly from
- * host. only used in test mode */
- /* turn off FW Auto addba mode and let host control addba */
- WMI_RETURN_STRING(WMI_ADDBA_CLEAR_RESP_CMDID);
- /* send add ba request */
- WMI_RETURN_STRING(WMI_ADDBA_SEND_CMDID);
- WMI_RETURN_STRING(WMI_ADDBA_STATUS_CMDID);
- /* send del ba */
- WMI_RETURN_STRING(WMI_DELBA_SEND_CMDID);
- /* set add ba response will be used by FW to generate
- * addba response*/
- WMI_RETURN_STRING(WMI_ADDBA_SET_RESP_CMDID);
- /* send single VHT MPDU with AMSDU */
- WMI_RETURN_STRING(WMI_SEND_SINGLEAMSDU_CMDID);
- /* Station power save specific config */
- /* enable/disable station powersave */
- WMI_RETURN_STRING(WMI_STA_POWERSAVE_MODE_CMDID);
- /* set station power save specific parameter */
- WMI_RETURN_STRING(WMI_STA_POWERSAVE_PARAM_CMDID);
- /* set station mimo powersave mode */
- WMI_RETURN_STRING(WMI_STA_MIMO_PS_MODE_CMDID);
- /* DFS-specific commands */
- /* enable DFS (radar detection)*/
- WMI_RETURN_STRING(WMI_PDEV_DFS_ENABLE_CMDID);
- /* disable DFS (radar detection)*/
- WMI_RETURN_STRING(WMI_PDEV_DFS_DISABLE_CMDID);
- /* enable DFS phyerr/parse filter offload */
- WMI_RETURN_STRING(WMI_DFS_PHYERR_FILTER_ENA_CMDID);
- /* enable DFS phyerr/parse filter offload */
- WMI_RETURN_STRING(WMI_DFS_PHYERR_FILTER_DIS_CMDID);
- /* Roaming specific commands */
- /* set roam scan mode */
- WMI_RETURN_STRING(WMI_ROAM_SCAN_MODE);
- /* set roam scan RSSI threshold below which roam
- * scan is enabled */
- WMI_RETURN_STRING(WMI_ROAM_SCAN_RSSI_THRESHOLD);
- /* set roam scan period for periodic roam scan mode */
- WMI_RETURN_STRING(WMI_ROAM_SCAN_PERIOD);
- /* set roam scan trigger RSSI change threshold */
- WMI_RETURN_STRING(WMI_ROAM_SCAN_RSSI_CHANGE_THRESHOLD);
- /* set roam AP profile */
- WMI_RETURN_STRING(WMI_ROAM_AP_PROFILE);
- /* set channel list for roam scans */
- WMI_RETURN_STRING(WMI_ROAM_CHAN_LIST);
- /* offload scan specific commands */
- /* set offload scan AP profile */
- WMI_RETURN_STRING(WMI_OFL_SCAN_ADD_AP_PROFILE);
- /* remove offload scan AP profile */
- WMI_RETURN_STRING(WMI_OFL_SCAN_REMOVE_AP_PROFILE);
- /* set offload scan period */
- WMI_RETURN_STRING(WMI_OFL_SCAN_PERIOD);
- /* P2P specific commands */
- /* set P2P device info. FW will used by FW to create P2P IE
- * to be carried in probe response generated during p2p listen
- * and for p2p discoverability */
- WMI_RETURN_STRING(WMI_P2P_DEV_SET_DEVICE_INFO);
- /* enable/disable p2p discoverability on STA/AP VDEVs */
- WMI_RETURN_STRING(WMI_P2P_DEV_SET_DISCOVERABILITY);
- /* set p2p ie to be carried in beacons generated by FW for GO */
- WMI_RETURN_STRING(WMI_P2P_GO_SET_BEACON_IE);
- /* set p2p ie to be carried in probe response frames generated
- * by FW for GO */
- WMI_RETURN_STRING(WMI_P2P_GO_SET_PROBE_RESP_IE);
- /* set the vendor specific p2p ie data.
- * FW will use this to parse the P2P NoA
- * attribute in the beacons/probe responses received.
- */
- WMI_RETURN_STRING(WMI_P2P_SET_VENDOR_IE_DATA_CMDID);
- /* set the configure of p2p find offload */
- WMI_RETURN_STRING(WMI_P2P_DISC_OFFLOAD_CONFIG_CMDID);
- /* set the vendor specific p2p ie data for p2p find offload */
- WMI_RETURN_STRING(WMI_P2P_DISC_OFFLOAD_APPIE_CMDID);
- /* set the BSSID/device name pattern of p2p find offload */
- WMI_RETURN_STRING(WMI_P2P_DISC_OFFLOAD_PATTERN_CMDID);
- /* set OppPS related parameters **/
- WMI_RETURN_STRING(WMI_P2P_SET_OPPPS_PARAM_CMDID);
- /* AP power save specific config
- * set AP power save specific param */
- WMI_RETURN_STRING(WMI_AP_PS_PEER_PARAM_CMDID);
- /* set AP UAPSD coex specific param */
- WMI_RETURN_STRING(WMI_AP_PS_PEER_UAPSD_COEX_CMDID);
- /* Rate-control specific commands */
- WMI_RETURN_STRING(WMI_PEER_RATE_RETRY_SCHED_CMDID);
- /* WLAN Profiling commands. */
- WMI_RETURN_STRING(WMI_WLAN_PROFILE_TRIGGER_CMDID);
- WMI_RETURN_STRING(WMI_WLAN_PROFILE_SET_HIST_INTVL_CMDID);
- WMI_RETURN_STRING(WMI_WLAN_PROFILE_GET_PROFILE_DATA_CMDID);
- WMI_RETURN_STRING(WMI_WLAN_PROFILE_ENABLE_PROFILE_ID_CMDID);
- WMI_RETURN_STRING(WMI_WLAN_PROFILE_LIST_PROFILE_ID_CMDID);
- /* Suspend resume command Ids */
- WMI_RETURN_STRING(WMI_PDEV_SUSPEND_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_RESUME_CMDID);
- /* Beacon filter commands */
- /* add a beacon filter */
- WMI_RETURN_STRING(WMI_ADD_BCN_FILTER_CMDID);
- /* remove a beacon filter */
- WMI_RETURN_STRING(WMI_RMV_BCN_FILTER_CMDID);
- /* WOW Specific WMI commands */
- /* add pattern for awake */
- WMI_RETURN_STRING(WMI_WOW_ADD_WAKE_PATTERN_CMDID);
- /* deleta a wake pattern */
- WMI_RETURN_STRING(WMI_WOW_DEL_WAKE_PATTERN_CMDID);
- /* enable/deisable wake event */
- WMI_RETURN_STRING(WMI_WOW_ENABLE_DISABLE_WAKE_EVENT_CMDID);
- /* enable WOW */
- WMI_RETURN_STRING(WMI_WOW_ENABLE_CMDID);
- /* host woke up from sleep event to FW. Generated in response
- * to WOW Hardware event */
- WMI_RETURN_STRING(WMI_WOW_HOSTWAKEUP_FROM_SLEEP_CMDID);
- /* RTT measurement related cmd */
- /* request to make an RTT measurement */
- WMI_RETURN_STRING(WMI_RTT_MEASREQ_CMDID);
- /* request to report a tsf measurement */
- WMI_RETURN_STRING(WMI_RTT_TSF_CMDID);
- /* spectral scan command */
- /* configure spectral scan */
- WMI_RETURN_STRING(WMI_VDEV_SPECTRAL_SCAN_CONFIGURE_CMDID);
- /* enable/disable spectral scan and trigger */
- WMI_RETURN_STRING(WMI_VDEV_SPECTRAL_SCAN_ENABLE_CMDID);
- /* F/W stats */
- /* one time request for stats */
- WMI_RETURN_STRING(WMI_REQUEST_STATS_CMDID);
- /* Push MCC Adaptive Scheduler Stats to Firmware */
- WMI_RETURN_STRING(WMI_MCC_SCHED_TRAFFIC_STATS_CMDID);
- /* ARP OFFLOAD REQUEST*/
- WMI_RETURN_STRING(WMI_SET_ARP_NS_OFFLOAD_CMDID);
- /* Proactive ARP Response Add Pattern Command*/
- WMI_RETURN_STRING(WMI_ADD_PROACTIVE_ARP_RSP_PATTERN_CMDID);
- /* Proactive ARP Response Del Pattern Command*/
- WMI_RETURN_STRING(WMI_DEL_PROACTIVE_ARP_RSP_PATTERN_CMDID);
- /* NS offload confid*/
- WMI_RETURN_STRING(WMI_NETWORK_LIST_OFFLOAD_CONFIG_CMDID);
- /* GTK offload Specific WMI commands */
- WMI_RETURN_STRING(WMI_GTK_OFFLOAD_CMDID);
- /* CSA offload Specific WMI commands */
- /* csa offload enable */
- WMI_RETURN_STRING(WMI_CSA_OFFLOAD_ENABLE_CMDID);
- /* chan switch command */
- WMI_RETURN_STRING(WMI_CSA_OFFLOAD_CHANSWITCH_CMDID);
- /* Chatter commands */
- /* Change chatter mode of operation */
- WMI_RETURN_STRING(WMI_CHATTER_SET_MODE_CMDID);
- /* chatter add coalescing filter command */
- WMI_RETURN_STRING(WMI_CHATTER_ADD_COALESCING_FILTER_CMDID);
- /* chatter delete coalescing filter command */
- WMI_RETURN_STRING(WMI_CHATTER_DELETE_COALESCING_FILTER_CMDID);
- /* chatter coalecing query command */
- WMI_RETURN_STRING(WMI_CHATTER_COALESCING_QUERY_CMDID);
- /* addba specific commands */
- /* start the aggregation on this TID */
- WMI_RETURN_STRING(WMI_PEER_TID_ADDBA_CMDID);
- /* stop the aggregation on this TID */
- WMI_RETURN_STRING(WMI_PEER_TID_DELBA_CMDID);
- /* set station mimo powersave method */
- WMI_RETURN_STRING(WMI_STA_DTIM_PS_METHOD_CMDID);
- /* Configure the Station UAPSD AC Auto Trigger Parameters */
- WMI_RETURN_STRING(WMI_STA_UAPSD_AUTO_TRIG_CMDID);
- /* Configure the Keep Alive Parameters */
- WMI_RETURN_STRING(WMI_STA_KEEPALIVE_CMDID);
- /* Request ssn from target for a sta/tid pair */
- WMI_RETURN_STRING(WMI_BA_REQ_SSN_CMDID);
- /* misc command group */
- /* echo command mainly used for testing */
- WMI_RETURN_STRING(WMI_ECHO_CMDID);
- /* !!IMPORTANT!!
- * If you need to add a new WMI command to the
- * WMI_RETURN_STRING(WMI_GRP_MISC) sub-group,
- * please make sure you add it BEHIND
- * WMI_RETURN_STRING(WMI_PDEV_UTF_CMDID);
- * as we MUST have a fixed value here to maintain compatibility between
- * UTF and the ART2 driver
- */
- /* UTF WMI commands */
- WMI_RETURN_STRING(WMI_PDEV_UTF_CMDID);
- /* set debug log config */
- WMI_RETURN_STRING(WMI_DBGLOG_CFG_CMDID);
- /* QVIT specific command id */
- WMI_RETURN_STRING(WMI_PDEV_QVIT_CMDID);
- /* Factory Testing Mode request command
- * used for integrated chipsets */
- WMI_RETURN_STRING(WMI_PDEV_FTM_INTG_CMDID);
- /* set and get keepalive parameters command */
- WMI_RETURN_STRING(WMI_VDEV_SET_KEEPALIVE_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_GET_KEEPALIVE_CMDID);
- /* For fw recovery test command */
- WMI_RETURN_STRING(WMI_FORCE_FW_HANG_CMDID);
- /* Set Mcast/Bdcast filter */
- WMI_RETURN_STRING(WMI_SET_MCASTBCAST_FILTER_CMDID);
- /* set thermal management params */
- WMI_RETURN_STRING(WMI_THERMAL_MGMT_CMDID);
- WMI_RETURN_STRING(WMI_RSSI_BREACH_MONITOR_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_LRO_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_TRANSFER_DATA_TO_FLASH_CMDID);
- WMI_RETURN_STRING(WMI_CONFIG_ENHANCED_MCAST_FILTER_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_WISA_CMDID);
- WMI_RETURN_STRING(WMI_SCAN_ADAPTIVE_DWELL_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_WOW_SET_ACTION_WAKE_UP_CMDID);
- WMI_RETURN_STRING(WMI_MAWC_SENSOR_REPORT_IND_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_CONFIGURE_MAWC_CMDID);
- WMI_RETURN_STRING(WMI_NLO_CONFIGURE_MAWC_CMDID);
- WMI_RETURN_STRING(WMI_EXTSCAN_CONFIGURE_MAWC_CMDID);
- /* GPIO Configuration */
- WMI_RETURN_STRING(WMI_GPIO_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_GPIO_OUTPUT_CMDID);
- /* Txbf configuration command */
- WMI_RETURN_STRING(WMI_TXBF_CMDID);
- /* FWTEST Commands */
- WMI_RETURN_STRING(WMI_FWTEST_VDEV_MCC_SET_TBTT_MODE_CMDID);
- /* set NoA descs */
- WMI_RETURN_STRING(WMI_FWTEST_P2P_SET_NOA_PARAM_CMDID);
- /* TDLS Configuration */
- /* enable/disable TDLS */
- WMI_RETURN_STRING(WMI_TDLS_SET_STATE_CMDID);
- /* set tdls peer state */
- WMI_RETURN_STRING(WMI_TDLS_PEER_UPDATE_CMDID);
- /* Resmgr Configuration */
- /* Adaptive OCS is enabled by default in the FW.
- * This command is used to disable FW based adaptive OCS.
- */
- WMI_RETURN_STRING
- (WMI_RESMGR_ADAPTIVE_OCS_ENABLE_DISABLE_CMDID);
- /* set the requested channel time quota for the home channels */
- WMI_RETURN_STRING(WMI_RESMGR_SET_CHAN_TIME_QUOTA_CMDID);
- /* set the requested latency for the home channels */
- WMI_RETURN_STRING(WMI_RESMGR_SET_CHAN_LATENCY_CMDID);
- /* STA SMPS Configuration */
- /* force SMPS mode */
- WMI_RETURN_STRING(WMI_STA_SMPS_FORCE_MODE_CMDID);
- /* set SMPS parameters */
- WMI_RETURN_STRING(WMI_STA_SMPS_PARAM_CMDID);
- /* Wlan HB commands */
- /* enable/disable wlan HB */
- WMI_RETURN_STRING(WMI_HB_SET_ENABLE_CMDID);
- /* set tcp parameters for wlan HB */
- WMI_RETURN_STRING(WMI_HB_SET_TCP_PARAMS_CMDID);
- /* set tcp pkt filter for wlan HB */
- WMI_RETURN_STRING(WMI_HB_SET_TCP_PKT_FILTER_CMDID);
- /* set udp parameters for wlan HB */
- WMI_RETURN_STRING(WMI_HB_SET_UDP_PARAMS_CMDID);
- /* set udp pkt filter for wlan HB */
- WMI_RETURN_STRING(WMI_HB_SET_UDP_PKT_FILTER_CMDID);
- /* Wlan RMC commands*/
- /* enable/disable RMC */
- WMI_RETURN_STRING(WMI_RMC_SET_MODE_CMDID);
- /* configure action frame period */
- WMI_RETURN_STRING(WMI_RMC_SET_ACTION_PERIOD_CMDID);
- /* For debug/future enhancement purposes only,
- * configures/finetunes RMC algorithms */
- WMI_RETURN_STRING(WMI_RMC_CONFIG_CMDID);
- /* WLAN MHF offload commands */
- /* enable/disable MHF offload */
- WMI_RETURN_STRING(WMI_MHF_OFFLOAD_SET_MODE_CMDID);
- /* Plumb routing table for MHF offload */
- WMI_RETURN_STRING(WMI_MHF_OFFLOAD_PLUMB_ROUTING_TBL_CMDID);
- /* location scan commands */
- /* start batch scan */
- WMI_RETURN_STRING(WMI_BATCH_SCAN_ENABLE_CMDID);
- /* stop batch scan */
- WMI_RETURN_STRING(WMI_BATCH_SCAN_DISABLE_CMDID);
- /* get batch scan result */
- WMI_RETURN_STRING(WMI_BATCH_SCAN_TRIGGER_RESULT_CMDID);
- /* OEM related cmd */
- WMI_RETURN_STRING(WMI_OEM_REQ_CMDID);
- WMI_RETURN_STRING(WMI_OEM_REQUEST_CMDID);
- /* NAN request cmd */
- WMI_RETURN_STRING(WMI_NAN_CMDID);
- /* Modem power state cmd */
- WMI_RETURN_STRING(WMI_MODEM_POWER_STATE_CMDID);
- WMI_RETURN_STRING(WMI_REQUEST_STATS_EXT_CMDID);
- WMI_RETURN_STRING(WMI_OBSS_SCAN_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_OBSS_SCAN_DISABLE_CMDID);
- WMI_RETURN_STRING(WMI_PEER_GET_ESTIMATED_LINKSPEED_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_SCAN_CMD);
- WMI_RETURN_STRING(WMI_PDEV_SET_LED_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_HOST_AUTO_SHUTDOWN_CFG_CMDID);
- WMI_RETURN_STRING(WMI_CHAN_AVOID_UPDATE_CMDID);
- WMI_RETURN_STRING(WMI_COEX_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_WOW_IOAC_ADD_KEEPALIVE_CMDID);
- WMI_RETURN_STRING(WMI_WOW_IOAC_DEL_KEEPALIVE_CMDID);
- WMI_RETURN_STRING(WMI_WOW_IOAC_ADD_WAKE_PATTERN_CMDID);
- WMI_RETURN_STRING(WMI_WOW_IOAC_DEL_WAKE_PATTERN_CMDID);
- WMI_RETURN_STRING(WMI_REQUEST_LINK_STATS_CMDID);
- WMI_RETURN_STRING(WMI_START_LINK_STATS_CMDID);
- WMI_RETURN_STRING(WMI_CLEAR_LINK_STATS_CMDID);
- WMI_RETURN_STRING(WMI_GET_FW_MEM_DUMP_CMDID);
- WMI_RETURN_STRING(WMI_LPI_MGMT_SNOOPING_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_LPI_START_SCAN_CMDID);
- WMI_RETURN_STRING(WMI_LPI_STOP_SCAN_CMDID);
- WMI_RETURN_STRING(WMI_EXTSCAN_START_CMDID);
- WMI_RETURN_STRING(WMI_EXTSCAN_STOP_CMDID);
- WMI_RETURN_STRING(WMI_EXTSCAN_CONFIGURE_WLAN_CHANGE_MONITOR_CMDID);
- WMI_RETURN_STRING(WMI_EXTSCAN_CONFIGURE_HOTLIST_MONITOR_CMDID);
- WMI_RETURN_STRING(WMI_EXTSCAN_GET_CACHED_RESULTS_CMDID);
- WMI_RETURN_STRING(WMI_EXTSCAN_GET_WLAN_CHANGE_RESULTS_CMDID);
- WMI_RETURN_STRING(WMI_EXTSCAN_SET_CAPABILITIES_CMDID);
- WMI_RETURN_STRING(WMI_EXTSCAN_GET_CAPABILITIES_CMDID);
- WMI_RETURN_STRING(WMI_EXTSCAN_CONFIGURE_HOTLIST_SSID_MONITOR_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_SYNCH_COMPLETE);
- WMI_RETURN_STRING(WMI_D0_WOW_ENABLE_DISABLE_CMDID);
- WMI_RETURN_STRING(WMI_EXTWOW_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_EXTWOW_SET_APP_TYPE1_PARAMS_CMDID);
- WMI_RETURN_STRING(WMI_EXTWOW_SET_APP_TYPE2_PARAMS_CMDID);
- WMI_RETURN_STRING(WMI_UNIT_TEST_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_SET_RIC_REQUEST_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_GET_TEMPERATURE_CMDID);
- WMI_RETURN_STRING(WMI_SET_DHCP_SERVER_OFFLOAD_CMDID);
- WMI_RETURN_STRING(WMI_TPC_CHAINMASK_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_IPA_OFFLOAD_ENABLE_DISABLE_CMDID);
- WMI_RETURN_STRING(WMI_SCAN_PROB_REQ_OUI_CMDID);
- WMI_RETURN_STRING(WMI_TDLS_SET_OFFCHAN_MODE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_LED_FLASHING_CMDID);
- WMI_RETURN_STRING(WMI_MDNS_OFFLOAD_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_MDNS_SET_FQDN_CMDID);
- WMI_RETURN_STRING(WMI_MDNS_SET_RESPONSE_CMDID);
- WMI_RETURN_STRING(WMI_MDNS_GET_STATS_CMDID);
- WMI_RETURN_STRING(WMI_MDNS_SET_STAIP_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_INVOKE_CMDID);
- WMI_RETURN_STRING(WMI_SET_ANTENNA_DIVERSITY_CMDID);
- WMI_RETURN_STRING(WMI_SAP_OFL_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_APFIND_CMDID);
- WMI_RETURN_STRING(WMI_PASSPOINT_LIST_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_OCB_SET_SCHED_CMDID);
- WMI_RETURN_STRING(WMI_OCB_SET_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_OCB_SET_UTC_TIME_CMDID);
- WMI_RETURN_STRING(WMI_OCB_START_TIMING_ADVERT_CMDID);
- WMI_RETURN_STRING(WMI_OCB_STOP_TIMING_ADVERT_CMDID);
- WMI_RETURN_STRING(WMI_OCB_GET_TSF_TIMER_CMDID);
- WMI_RETURN_STRING(WMI_DCC_GET_STATS_CMDID);
- WMI_RETURN_STRING(WMI_DCC_CLEAR_STATS_CMDID);
- WMI_RETURN_STRING(WMI_DCC_UPDATE_NDL_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_FILTER_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_SUBNET_CHANGE_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_DEBUG_MESG_FLUSH_CMDID);
- WMI_RETURN_STRING(WMI_PEER_SET_RATE_REPORT_CONDITION_CMDID);
- WMI_RETURN_STRING(WMI_SOC_SET_PCL_CMDID);
- WMI_RETURN_STRING(WMI_SOC_SET_HW_MODE_CMDID);
- WMI_RETURN_STRING(WMI_SOC_SET_DUAL_MAC_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_WOW_ENABLE_ICMPV6_NA_FLT_CMDID);
- WMI_RETURN_STRING(WMI_DIAG_EVENT_LOG_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_PACKET_FILTER_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_PACKET_FILTER_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_SAP_SET_BLACKLIST_PARAM_CMDID);
- WMI_RETURN_STRING(WMI_WOW_UDP_SVC_OFLD_CMDID);
- WMI_RETURN_STRING(WMI_MGMT_TX_SEND_CMDID);
- WMI_RETURN_STRING(WMI_SOC_SET_ANTENNA_MODE_CMDID);
- WMI_RETURN_STRING(WMI_WOW_HOSTWAKEUP_GPIO_PIN_PATTERN_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_AP_PS_EGAP_PARAM_CMDID);
- WMI_RETURN_STRING(WMI_PMF_OFFLOAD_SET_SA_QUERY_CMDID);
- WMI_RETURN_STRING(WMI_BPF_GET_CAPABILITY_CMDID);
- WMI_RETURN_STRING(WMI_BPF_GET_VDEV_STATS_CMDID);
- WMI_RETURN_STRING(WMI_BPF_SET_VDEV_INSTRUCTIONS_CMDID);
- WMI_RETURN_STRING(WMI_BPF_DEL_VDEV_INSTRUCTIONS_CMDID);
- WMI_RETURN_STRING(WMI_NDI_GET_CAP_REQ_CMDID);
- WMI_RETURN_STRING(WMI_NDP_INITIATOR_REQ_CMDID);
- WMI_RETURN_STRING(WMI_NDP_RESPONDER_REQ_CMDID);
- WMI_RETURN_STRING(WMI_NDP_END_REQ_CMDID);
- WMI_RETURN_STRING(WMI_PEER_UPDATE_WDS_ENTRY_CMDID);
- WMI_RETURN_STRING(WMI_PEER_ADD_PROXY_STA_ENTRY_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_FIPS_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SMART_ANT_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SMART_ANT_SET_RX_ANTENNA_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_ANTENNA_SWITCH_TABLE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_CTL_TABLE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_MIMOGAIN_TABLE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_GET_TPC_CMDID);
- WMI_RETURN_STRING(WMI_MIB_STATS_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_GET_ANI_CCK_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_GET_ANI_OFDM_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_RATEMASK_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_ATF_REQUEST_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_DSCP_TID_MAP_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_FILTER_NEIGHBOR_RX_PACKETS_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_QUIET_MODE_CMDID);
- WMI_RETURN_STRING(WMI_PEER_SMART_ANT_SET_TX_ANTENNA_CMDID);
- WMI_RETURN_STRING(WMI_PEER_SMART_ANT_SET_TRAIN_INFO_CMDID);
- WMI_RETURN_STRING(WMI_PEER_SMART_ANT_SET_NODE_CONFIG_OPS_CMDID);
- WMI_RETURN_STRING(WMI_PEER_ATF_REQUEST_CMDID);
- WMI_RETURN_STRING(WMI_FWTEST_CMDID);
- WMI_RETURN_STRING(WMI_QBOOST_CFG_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_GET_NFCAL_POWER_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_PCL_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_HW_MODE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_MAC_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_ANTENNA_MODE_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_SET_MBO_PARAM_CMDID);
- WMI_RETURN_STRING(WMI_CHAN_AVOID_RPT_ALLOW_CMDID);
- WMI_RETURN_STRING(WMI_SET_PERIODIC_CHANNEL_STATS_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_CUSTOM_AGGR_SIZE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_WAL_POWER_DEBUG_CMDID);
- WMI_RETURN_STRING(WMI_PEER_BWF_REQUEST_CMDID);
- WMI_RETURN_STRING(WMI_DBGLOG_TIME_STAMP_SYNC_CMDID);
- WMI_RETURN_STRING(WMI_P2P_LISTEN_OFFLOAD_START_CMDID);
- WMI_RETURN_STRING(WMI_P2P_LISTEN_OFFLOAD_STOP_CMDID);
- WMI_RETURN_STRING(WMI_PEER_REORDER_QUEUE_SETUP_CMDID);
- WMI_RETURN_STRING(WMI_PEER_REORDER_QUEUE_REMOVE_CMDID);
- WMI_RETURN_STRING(WMI_SET_MULTIPLE_MCAST_FILTER_CMDID);
- WMI_RETURN_STRING(WMI_READ_DATA_FROM_FLASH_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_REORDER_TIMEOUT_VAL_CMDID);
- WMI_RETURN_STRING(WMI_PEER_SET_RX_BLOCKSIZE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_WAKEUP_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_GET_ANTDIV_STATUS_CMDID);
- WMI_RETURN_STRING(WMI_PEER_ANTDIV_INFO_REQ_CMDID);
- WMI_RETURN_STRING(WMI_MNT_FILTER_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_GET_CHIP_POWER_STATS_CMDID);
- WMI_RETURN_STRING(WMI_COEX_GET_ANTENNA_ISOLATION_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_STATS_THRESHOLD_CMDID);
- WMI_RETURN_STRING(WMI_REQUEST_WLAN_STATS_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_ENCRYPT_DECRYPT_DATA_REQ_CMDID);
- WMI_RETURN_STRING(WMI_REQUEST_PEER_STATS_INFO_CMDID);
- WMI_RETURN_STRING(WMI_REQUEST_RADIO_CHAN_STATS_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_PER_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_CMDID);
- WMI_RETURN_STRING(WMI_BPF_SET_VDEV_ACTIVE_MODE_CMDID);
- WMI_RETURN_STRING(WMI_HW_DATA_FILTER_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMDID);
- WMI_RETURN_STRING(WMI_LPI_OEM_REQ_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_UPDATE_PKT_ROUTING_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_CHECK_CAL_VERSION_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_DIVERSITY_GAIN_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_ARP_STAT_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_GET_ARP_STAT_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_GET_TX_POWER_CMDID);
- WMI_RETURN_STRING(WMI_OFFCHAN_DATA_TX_SEND_CMDID);
- WMI_RETURN_STRING(WMI_SET_INIT_COUNTRY_CMDID);
- WMI_RETURN_STRING(WMI_SET_SCAN_DBS_DUTY_CYCLE_CMDID);
- WMI_RETURN_STRING(WMI_THERM_THROT_SET_CONF_CMDID);
- WMI_RETURN_STRING(WMI_OEM_DMA_RING_CFG_REQ_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_BSS_CHAN_INFO_REQUEST_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_LIMIT_OFFCHAN_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_BTM_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_WLM_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_UPDATE_CTLTABLE_REQUEST_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_CONFIG_VENDOR_OUI_ACTION_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SEND_FD_CMDID);
- WMI_RETURN_STRING(WMI_ENABLE_FILS_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_AC_TX_QUEUE_OPTIMIZED_CMDID);
- WMI_RETURN_STRING(WMI_PEER_TID_MSDUQ_QDEPTH_THRESH_UPDATE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_RX_FILTER_PROMISCUOUS_CMDID);
- WMI_RETURN_STRING(WMI_SAP_OBSS_DETECTION_CFG_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_DMA_RING_CFG_REQ_CMDID);
- WMI_RETURN_STRING(WMI_11K_OFFLOAD_REPORT_CMDID);
- WMI_RETURN_STRING(WMI_11K_INVOKE_NEIGHBOR_REPORT_CMDID);
- WMI_RETURN_STRING(WMI_BPF_SET_VDEV_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_BPF_SET_VDEV_WORK_MEMORY_CMDID);
- WMI_RETURN_STRING(WMI_BPF_GET_VDEV_WORK_MEMORY_CMDID);
- WMI_RETURN_STRING(WMI_BSS_COLOR_CHANGE_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_OBSS_COLOR_COLLISION_DET_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_RUNTIME_DPD_RECAL_CMDID);
- WMI_RETURN_STRING(WMI_TWT_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_TWT_DISABLE_CMDID);
- WMI_RETURN_STRING(WMI_TWT_ADD_DIALOG_CMDID);
- WMI_RETURN_STRING(WMI_TWT_DEL_DIALOG_CMDID);
- WMI_RETURN_STRING(WMI_TWT_PAUSE_DIALOG_CMDID);
- WMI_RETURN_STRING(WMI_TWT_RESUME_DIALOG_CMDID);
- WMI_RETURN_STRING(WMI_TWT_VDEV_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_REQUEST_ROAM_SCAN_STATS_CMDID);
- WMI_RETURN_STRING(WMI_PEER_TID_CONFIGURATIONS_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_CUSTOM_SW_RETRY_TH_CMDID);
- WMI_RETURN_STRING(WMI_GET_TPC_POWER_CMDID);
- WMI_RETURN_STRING(WMI_MOTION_DET_CONFIG_PARAM_CMDID);
- WMI_RETURN_STRING(WMI_MOTION_DET_BASE_LINE_CONFIG_PARAM_CMDID);
- WMI_RETURN_STRING(WMI_MOTION_DET_START_STOP_CMDID);
- WMI_RETURN_STRING(WMI_MOTION_DET_BASE_LINE_START_STOP_CMDID);
- WMI_RETURN_STRING(WMI_SAR_LIMITS_CMDID);
- WMI_RETURN_STRING(WMI_SAR_GET_LIMITS_CMDID);
- WMI_RETURN_STRING(WMI_PEER_CHAN_WIDTH_SWITCH_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_OBSS_PD_SPATIAL_REUSE_SET_DEF_OBSS_THRESH_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_HE_TB_ACTION_FRM_CMDID);
- WMI_RETURN_STRING(WMI_HPCS_PULSE_START_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_CHAINMASK_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_BCN_OFFLOAD_QUIET_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_NDP_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_PKTLOG_FILTER_CMDID);
- WMI_RETURN_STRING(WMI_SET_CURRENT_COUNTRY_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_GET_BCN_RECEPTION_STATS_CMDID);
- WMI_RETURN_STRING(WMI_PEER_TX_PN_REQUEST_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_BSS_LOAD_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_GET_MWS_COEX_INFO_CMDID);
- WMI_RETURN_STRING(WMI_REQUEST_WLM_STATS_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_RAP_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_STA_TDCC_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_DEAUTH_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_IDLE_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_IDLE_TRIGGER_MONITOR_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_DSM_FILTER_CMDID);
- WMI_RETURN_STRING(WMI_TWT_BTWT_INVITE_STA_CMDID);
- WMI_RETURN_STRING(WMI_TWT_BTWT_REMOVE_STA_CMDID);
- WMI_RETURN_STRING(WMI_OEM_DATA_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_PREAUTH_STATUS_CMDID);
- WMI_RETURN_STRING(WMI_SET_ELNA_BYPASS_CMDID);
- WMI_RETURN_STRING(WMI_GET_ELNA_BYPASS_CMDID);
- WMI_RETURN_STRING(WMI_AUDIO_AGGR_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_AUDIO_AGGR_ADD_GROUP_CMDID);
- WMI_RETURN_STRING(WMI_AUDIO_AGGR_DEL_GROUP_CMDID);
- WMI_RETURN_STRING(WMI_AUDIO_AGGR_SET_GROUP_RATE_CMDID);
- WMI_RETURN_STRING(WMI_AUDIO_AGGR_SET_GROUP_RETRY_CMDID);
- WMI_RETURN_STRING(WMI_AUDIO_AGGR_UPDATE_STA_GROUP_INFO_CMDID);
- WMI_RETURN_STRING(WMI_CFR_CAPTURE_FILTER_CMDID);
- WMI_RETURN_STRING(WMI_ATF_SSID_GROUPING_REQUEST_CMDID);
- WMI_RETURN_STRING(WMI_ATF_GROUP_WMM_AC_CONFIG_REQUEST_CMDID);
- WMI_RETURN_STRING(WMI_PEER_ATF_EXT_REQUEST_CMDID);
- WMI_RETURN_STRING(WMI_GET_CHANNEL_ANI_CMDID);
- WMI_RETURN_STRING(WMI_SET_OCL_CMDID);
- WMI_RETURN_STRING(WMI_AUDIO_AGGR_SET_GROUP_AUTO_RATE_CMDID);
- WMI_RETURN_STRING(WMI_AUDIO_AGGR_SET_GROUP_PROBE_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_AUDIO_SYNC_TRIGGER_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_AUDIO_SYNC_QTIMER_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_GET_SCAN_CHANNEL_LIST_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_GET_BIG_DATA_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_FRAME_INJECT_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_TBTT_OFFSET_SYNC_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_GET_BIG_DATA_P2_CMDID);
- WMI_RETURN_STRING(WMI_AUDIO_AGGR_GET_STATISTICS_CMDID);
- WMI_RETURN_STRING(WMI_AUDIO_AGGR_RESET_STATISTICS_CMDID);
- WMI_RETURN_STRING(WMI_ANT_CONTROLLER_CMDID);
- WMI_RETURN_STRING(WMI_SIMULATION_TEST_CMDID);
- WMI_RETURN_STRING(WMI_AUDIO_AGGR_SET_RTSCTS_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_REQUEST_CTRL_PATH_STATS_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_GET_TPC_STATS_CMDID);
- WMI_RETURN_STRING(WMI_AUDIO_AGGR_SET_SCHED_METHOD_CMDID);
- WMI_RETURN_STRING(WMI_AUDIO_AGGR_GET_SCHED_METHOD_CMDID);
- WMI_RETURN_STRING(WMI_REQUEST_UNIFIED_LL_GET_STA_CMDID);
- WMI_RETURN_STRING(WMI_QOS_NULL_FRAME_TX_SEND_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_ENABLE_DURATION_BASED_TX_MODE_SELECTION_CMDID);
- WMI_RETURN_STRING(WMI_TWT_NUDGE_DIALOG_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_TPC_POWER_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_TID_LATENCY_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_PEER_TID_LATENCY_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_MLO_LINK_SET_ACTIVE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_GET_DPD_STATUS_CMDID);
- WMI_RETURN_STRING(WMI_MLO_SETUP_CMDID);
- WMI_RETURN_STRING(WMI_MLO_READY_CMDID);
- WMI_RETURN_STRING(WMI_MLO_TEARDOWN_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_IGMP_OFFLOAD_CMDID);
- WMI_RETURN_STRING(WMI_MGMT_RX_REO_FILTER_CONFIGURATION_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_BIOS_SAR_TABLE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_BIOS_GEO_TABLE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_GET_HALPHY_CAL_STATUS_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_HALPHY_CAL_BMAP_CMDID);
- WMI_RETURN_STRING(WMI_AFC_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_MULTIPLE_VDEV_SET_PARAM_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_MEC_AGING_TIMER_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_PEER_CONFIG_PPE_DS_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_ENABLE_DISABLE_INTRA_BSS_CMDID);
- WMI_RETURN_STRING(WMI_PEER_ENABLE_DISABLE_INTRA_BSS_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_MLO_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_REQUEST_THERMAL_STATS_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_BIOS_INTERFACE_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_MU_SNIF_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_ICMP_OFFLOAD_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_SET_PARAM_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_FIPS_EXTEND_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_FIPS_MODE_SET_CMDID);
- WMI_RETURN_STRING(WMI_SAWF_SVC_CLASS_CFG_CMDID);
- WMI_RETURN_STRING(WMI_SAWF_SVC_CLASS_DISABLE_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_UPDATE_MAC_ADDR_CMDID);
- WMI_RETURN_STRING(WMI_SOC_TQM_RESET_ENABLE_DISABLE_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_MULTIPLE_PEER_GROUP_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_LTF_KEY_SEED_CMDID);
- WMI_RETURN_STRING(WMI_RTT_PASN_AUTH_STATUS_CMD);
- WMI_RETURN_STRING(WMI_RTT_PASN_DEAUTH_CMD);
- WMI_RETURN_STRING(WMI_VDEV_PN_MGMT_RX_FILTER_CMDID);
- WMI_RETURN_STRING(WMI_PEER_RX_PN_REQUEST_CMDID);
- WMI_RETURN_STRING(WMI_SET_MULTIPLE_PDEV_VDEV_PARAM_CMDID);
- WMI_RETURN_STRING(WMI_PMM_SCRATCH_REG_ALLOCATION_CMDID);
- WMI_RETURN_STRING(WMI_MLO_PEER_TID_TO_LINK_MAP_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_ENABLE_VENDOR_CONTROL_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_GET_VENDOR_CONTROL_PARAM_CMDID);
- WMI_RETURN_STRING(WMI_REQUEST_HALPHY_CTRL_PATH_STATS_CMDID);
- WMI_RETURN_STRING(WMI_PEER_FLUSH_POLICY_CMDID);
- WMI_RETURN_STRING(WMI_WOW_COAP_ADD_PATTERN_CMDID);
- WMI_RETURN_STRING(WMI_WOW_COAP_DEL_PATTERN_CMDID);
- WMI_RETURN_STRING(WMI_WOW_COAP_ADD_KEEPALIVE_PATTERN_CMDID);
- WMI_RETURN_STRING(WMI_WOW_COAP_DEL_KEEPALIVE_PATTERN_CMDID);
- WMI_RETURN_STRING(WMI_WOW_COAP_GET_BUF_INFO_CMDID);
- WMI_RETURN_STRING(WMI_COEX_DBAM_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_FEATURESET_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_PARAM_ENABLE_SR_PROHIBIT_CMDID);
- WMI_RETURN_STRING(WMI_XGAP_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_MESH_RX_FILTER_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_MLO_LINK_REMOVAL_CMDID);
- WMI_RETURN_STRING(WMI_MLO_AP_VDEV_TID_TO_LINK_MAP_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_DIV_GET_RSSI_ANTID_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_UPDATE_PMK_CACHE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_UPDATE_FILS_HLP_PKT_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_SRG_BSS_COLOR_BITMAP_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_SRG_PARTIAL_BSSID_BITMAP_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_SRG_OBSS_COLOR_ENABLE_BITMAP_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_SRG_OBSS_BSSID_ENABLE_BITMAP_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_NON_SRG_OBSS_COLOR_ENABLE_BITMAP_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_NON_SRG_OBSS_BSSID_ENABLE_BITMAP_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_PCL_CMDID);
- WMI_RETURN_STRING(WMI_PEER_RESERVED0_CMDID);
- WMI_RETURN_STRING(WMI_PEER_CFR_CAPTURE_CMDID);
- WMI_RETURN_STRING(WMI_PEER_CONFIG_VLAN_CMDID);
- WMI_RETURN_STRING(WMI_PEER_TX_FILTER_CMDID);
- WMI_RETURN_STRING(WMI_BCN_OFFLOAD_CTRL_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_DFS_PHYERR_OFFLOAD_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_DFS_PHYERR_OFFLOAD_DISABLE_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_ADFS_CH_CFG_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_ADFS_OCAC_ABORT_CMDID);
- WMI_RETURN_STRING(WMI_ROAM_ENABLE_DISABLE_TRIGGER_REASON_CMDID);
- WMI_RETURN_STRING(WMI_REQUEST_RCPI_CMDID);
- WMI_RETURN_STRING(WMI_WFA_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_HB_OIC_PING_OFFLOAD_PARAM_CMDID);
- WMI_RETURN_STRING(WMI_HB_OIC_PING_OFFLOAD_SET_ENABLE_CMDID);
- WMI_RETURN_STRING(WMI_HB_DHCP_LEASE_RENEW_OFFLOAD_CMDID);
- WMI_RETURN_STRING(WMI_RMC_SET_MANUAL_LEADER_CMDID);
- WMI_RETURN_STRING(WMI_11D_SCAN_START_CMDID);
- WMI_RETURN_STRING(WMI_11D_SCAN_STOP_CMDID);
- WMI_RETURN_STRING(WMI_VENDOR_PDEV_CMDID);
- WMI_RETURN_STRING(WMI_VENDOR_VDEV_CMDID);
- WMI_RETURN_STRING(WMI_VENDOR_PEER_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_TWT_EDCA_PARAMS_CMDID); /* XPAN TWT */
- WMI_RETURN_STRING(WMI_ESL_EGID_CMDID);
- WMI_RETURN_STRING(WMI_TDMA_SCHEDULE_REQUEST_CMDID);
- WMI_RETURN_STRING(WMI_HPA_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_TGTR2P_TABLE_CMDID); /* To set target rate to power table */
- WMI_RETURN_STRING(WMI_MLO_VDEV_GET_LINK_INFO_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_ULOFDMA_MANUAL_SU_TRIG_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SET_ULOFDMA_MANUAL_MU_TRIG_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_STANDALONE_SOUND_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_RF_PATH_CMDID); /* set RF path of PHY */
- WMI_RETURN_STRING(WMI_VDEV_PAUSE_CMDID);
- WMI_RETURN_STRING(WMI_GPIO_STATE_REQ_CMDID);
- WMI_RETURN_STRING(WMI_MLO_PRIMARY_LINK_PEER_MIGRATION_CMDID);
- WMI_RETURN_STRING(WMI_MLO_LINK_RECOMMENDATION_CMDID);
- WMI_RETURN_STRING(WMI_NAN_OEM_DATA_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_WSI_STATS_INFO_CMDID);
- WMI_RETURN_STRING(WMI_CSA_EVENT_STATUS_INDICATION_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_SCHED_MODE_PROBE_REQ_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_OOB_CONNECTION_REQ_CMDID);
- WMI_RETURN_STRING(WMI_AUDIO_TRANSPORT_SWITCH_RESP_STATUS_CMDID);
- WMI_RETURN_STRING(WMI_PEER_MULTIPLE_REORDER_QUEUE_SETUP_CMDID);
- WMI_RETURN_STRING(WMI_COEX_MULTIPLE_CONFIG_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_ENABLE_LED_BLINK_DOWNLOAD_TABLE_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_ENABLE_WIFI_RADAR_CMDID);
- WMI_RETURN_STRING(WMI_VDEV_GET_TWT_SESSION_STATS_INFO_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_ENABLE_XLNA_CMDID);
- WMI_RETURN_STRING(WMI_PDEV_SET_CUSTOM_TX_POWER_PER_MCS_CMDID);
- WMI_RETURN_STRING(WMI_PEER_ACTIVE_TRAFFIC_MAP_CMDID);
- WMI_RETURN_STRING(WMI_REQUEST_OPM_STATS_CMDID);
- WMI_RETURN_STRING(WMI_SOC_TX_PACKET_CUSTOM_CLASSIFY_CMDID);
- WMI_RETURN_STRING(WMI_SET_AP_SUSPEND_RESUME_CMDID);
- WMI_RETURN_STRING(WMI_P2P_GO_DFS_AP_CONFIG_CMDID);
- }
- return (A_UINT8 *) "Invalid WMI cmd";
- }
- #endif /* WMI_CMD_STRINGS */
- /** WMI commands/events for the regulatory offload */
- /** Host indicating current country code to FW */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_set_current_country_cmd_fixed_param */
- A_UINT32 pdev_id;
- A_UINT32 new_alpha2; /** alpha2 characters representing the country code */
- } wmi_set_current_country_cmd_fixed_param;
- typedef enum {
- WMI_COUNTRYCODE_ALPHA2,
- WMI_COUNTRYCODE_COUNTRY_ID,
- WMI_COUNTRYCODE_DOMAIN_CODE,
- } WMI_COUNTRYCODE_TYPE;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_set_init_country_cmd_fixed_param */
- A_UINT32 pdev_id;
- A_UINT32 countrycode_type; /* WMI_COUNTRYCODE_TYPE */
- union {
- struct {
- /* Three character for alpha2. The first two is ISO name for country the last one
- present if it is indoor and out door. First char in bits 7:0 and second char in bits 15:8 ... */
- A_UINT32 alpha2:24,
- unused:8;
- };
- A_UINT32 country_id; /* Country ID */
- A_UINT32 domain_code; /* Domain code */
- } country_code;
- } wmi_set_init_country_cmd_fixed_param;
- typedef enum {
- /**
- * serv_resp_format_type will indicate the format in which afc_serv data
- * is written into host/target shared memory
- * This type can be expanded in future as per requirements.
- */
- AFC_SERV_RESP_FORMAT_JSON = 0,
- AFC_SERV_RESP_FORMAT_BINARY = 1,
- AFC_SERV_RESP_FORMAT_IGNORE = 2, /* When cmd type is reset,server response is set to FORMAT_IGNORE */
- } WMI_AFC_SERV_RESP_FORMAT_TYPE;
- typedef enum {
- /**
- * wmi_afc_cmd_type will indicate type of AFC command sent to FW.
- * Once AFC server writes data at TZ memory location SERV_RESP_READY
- * type command is sent to FW.
- * This type can be expanded in future as per requirements.
- */
- WMI_AFC_CMD_SERV_RESP_READY = 1,
- WMI_AFC_CMD_RESET = 2, /* Added cmd type to handle AFC reset */
- WMI_AFC_CMD_CLEAR_PAYLOAD = 3, /* Added cmd type to clear AFC response payload in proxy mode */
- } WMI_AFC_CMD_TYPE;
- /** Host indicating AFC info availability to FW */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_afc_cmd_fixed_param */
- A_UINT32 pdev_id;
- A_UINT32 cmd_type; /* refer WMI_AFC_CMD_TYPE */
- A_UINT32 serv_resp_format; /* refer WMI_AFC_SERV_RESP_FORMAT_TYPE */
- } wmi_afc_cmd_fixed_param;
- /** Host indicates AFC info availability to FW using WMI_AFC_CMD
- * This AFC info is written by AFC application/ server in host/target
- * shared memory reserved during bootup.
- * The structure is placeholder, indicating way afc_serv_resp is written in FW.
- * This structure will not be attach as input to WMI command.
- * This structure will be common to both host and FW.
- * The structure of this WMI AFC info is as follows.
- */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_afc_serv_resp_struct */
- A_UINT32 status; /* validity flag to be updated by TZ/ PF stub layer,
- * to indicate if payload is valid or not.
- * status = 1 will indicate payload is valid. */
- A_UINT32 time_to_live; /* Total time for which this AFC info is valid in seconds */
- A_UINT32 length; /* length of the payload, in bytes */
- A_UINT32 payload_format; /* The format of payload written in FW memory:
- * 0 -> JSON format
- * 1 -> Binary format
- * Refer to WMI_AFC_SERV_RESP_FORMAT_TYPE.
- */
- /*
- * The structure above is followed by array of char which will have
- * JSON string or binary data, as specified by the payload_format field.
- * A_CHAR bufp[]; AFC payload (JSON string or binary data)
- */
- } wmi_afc_serv_resp_struct;
- /*
- * The following structures define the format used for AFC binary data objects
- * shared by the host SW and target FW.
- * FW expects these structures to be written in shared memory in little-endian
- * format. If the host/AFC app uses big endian format, Host/APP needs to
- * byteswap the data, so FW will get data in the expected little-endian format.
- */
- typedef struct {
- A_UINT32 freq_info; /* bits 15:0 = u16 start_freq,
- * bits 31:16 = u16 end_freq
- * both in MHz units
- */
- A_INT32 max_psd; /* Maximum PSD in dBm/MHz, value is stored in 0.01 dBm/MHz steps */
- } afc_freq_info;
- typedef struct {
- A_UINT32 channel_cfi; /* channel center frequency index */
- /*
- * maximum permissible EIRP available for above CFI in dBm,
- * value is stored in 0.01 dBm steps.
- * Note: This A_UINT32 field can receive negative EIRP value from AFC
- * server. These negative EIRP value cases are handled internally.
- */
- A_UINT32 max_eirp_pwr;
- } afc_eirp_info;
- typedef struct {
- A_UINT32 global_operating_class;
- A_UINT32 num_channels; /* num of valid channels for above global operating class */
- /* This structure is followed by (num_channels*sizeof(afc_eirp_info))
- * bytes array:
- * afc_eirp_info eirp_info[num_channels];
- * List of channel cfi and eirp power values,
- * Total size will be num_channels * sizeof(afc_eirp_info)
- */
- } afc_channel_info;
- /*
- * For case of afc_server_resp containing binary payload, the buf pointer
- * in wmi_afc_serv_resp_struct will be poiniting to binary format payload
- * which is in the format defined below.
- */
- typedef struct {
- A_UINT32 local_error_code; /* Internal error code between AFC app and target success = 0, General failure = 1 */
- A_UINT32 version; /* Internal version between AFC app and Target for structure pattern */
- A_UINT32 afc_wfa_version; /* Version defined in AFC spec document. bits 15:0 -- minor version & bits 31:16 -- major version */
- A_UINT32 request_id; /* AFC unique request ID */
- A_UINT32 avail_exp_time_d; /* avail_exp_time_d and avail_exp_time_t are in UTC
- * Availability expiry time date format: YYYY-MM-DD,
- * bits 7:0 -DD - Day (expected values 1-31)
- * bits 15:8 -MM - Month (expected values 1-12)
- * bits 31:16 -YYYY - Year
- */
- A_UINT32 avail_exp_time_t; /* Availability expiry time format HH-MM-SS
- * bits 7:0 -SS - Time in Sec (expected values 0-59)
- * bits 15:8 -MM - Minute (expected values 0-59)
- * bits 23:16 -HH - Hour (expected values 0-23)
- * bits 31:24 -reserved
- */
- A_INT32 afc_serv_resp_code; /* response code defined in afc wfa document, refer WMI_AFC_SERV_RESP_CODE */
- A_UINT32 num_frequency_obj; /* Total number of frequency objects */
- A_UINT32 num_channel_obj; /* Total number of frequency objects */
- char shortdesc[64]; /* This field represents a short description related to the result indicated by the response_code
- * field. End of description will be indicated by 0 */
- A_UINT32 reserved[2]; /* reserve space for future fields - needs to be set to 0x0 */
- /*
- * This structure is followed by an array of frequency info and
- * channel info array:
- * - afc_freq_info freq_info[num_frequency_obj];
- * List of frequency power values, total size will be
- * num_frequency_obj * sizeof(afc_freq_info)
- * - afc_channel_info chan_info[num_channel_obj];
- * List of channel power values, total size will be
- * num_channel_obj * sizeof(afc_channel_info)
- */
- } afc_spectrum_inquiry_resp_bin_type;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_vdev_enable_disable_intra_bss_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /** The corresponding vdev_id.
- */
- A_UINT32 vdev_id;
- /* Enable/Disable intra_bss.
- */
- A_UINT32 enable;
- } wmi_vdev_enable_disable_intra_bss_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_enable_disable_intra_bss_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /** Mac Address of the peer.
- */
- wmi_mac_addr mac_addr;
- /** The corresponding vdev_id.
- */
- A_UINT32 vdev_id;
- /* Enable/Disable intra_bss.
- */
- A_UINT32 enable;
- } wmi_peer_enable_disable_intra_bss_cmd_fixed_param;
- /* Freq units in MHz */
- #define WMI_REG_RULE_START_FREQ_GET(freq_info) WMI_GET_BITS(freq_info, 0, 16)
- #define WMI_REG_RULE_START_FREQ_SET(freq_info, value) WMI_SET_BITS(freq_info, 0, 16, value)
- #define WMI_REG_RULE_END_FREQ_GET(freq_info) WMI_GET_BITS(freq_info, 16, 16)
- #define WMI_REG_RULE_END_FREQ_SET(freq_info, value) WMI_SET_BITS(freq_info, 16, 16, value)
- /* BW in MHz */
- #define WMI_REG_RULE_MAX_BW_GET(bw_pwr_info) WMI_GET_BITS(bw_pwr_info, 0, 16)
- #define WMI_REG_RULE_MAX_BW_SET(bw_pwr_info, value) WMI_SET_BITS(bw_pwr_info, 0, 16, value)
- /* regpower in dBm */
- #define WMI_REG_RULE_REG_POWER_GET(bw_pwr_info) WMI_GET_BITS(bw_pwr_info, 16, 8)
- #define WMI_REG_RULE_REG_POWER_SET(bw_pwr_info, value) WMI_SET_BITS(bw_pwr_info, 16, 8, value)
- /* antenna gain */
- #define WMI_REG_RULE_ANTENNA_GAIN_GET(bw_pwr_info) WMI_GET_BITS(bw_pwr_info, 24, 8)
- #define WMI_REG_RULE_ANTENNA_GAIN_SET(bw_pwr_info, value) WMI_SET_BITS(bw_pwr_info, 24, 8, value)
- typedef enum {
- WMI_REG_FLAG_CHAN_NO_IR = 0x0001, /* passive channel */
- WMI_REG_FLAG_CHAN_RADAR = 0x0002, /* dfs channel */
- WMI_REG_FLAG_CHAN_NO_OFDM = 0x0004, /* no ofdm channel */
- WMI_REG_FLAG_CHAN_INDOOR_ONLY = 0x0008, /* indoor only channel */
- } WMI_REGULATORY_FLAGS;
- #define WMI_REG_RULE_FLAGS_GET(flag_info) WMI_GET_BITS(flag_info, 0, 16)
- #define WMI_REG_RULE_FLAGS_SET(flag_info, value) WMI_SET_BITS(flag_info, 0, 16, value)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_regulatory_rule_struct */
- A_UINT32 freq_info; /* bits 15:0 = u16 start_freq,
- * bits 31:16 = u16 end_freq
- * (both in MHz units) */
- A_UINT32 bw_pwr_info; /* bits 15:0 = u16 max_bw (MHz units),
- bits 23:16 = u8 reg_power (dBm units),
- bits 31:24 = u8 ant_gain (dB units) */
- A_UINT32 flag_info; /* bits 15:0 = u16 flags,
- bits 31:16 reserved */
- } wmi_regulatory_rule_struct;
- #define WMI_REG_RULE_PSD_FLAG_GET(psd_power_info) \
- WMI_GET_BITS(psd_power_info, 0, 1)
- #define WMI_REG_RULE_PSD_FLAG_SET(psd_power_info, value) \
- WMI_SET_BITS(psd_power_info, 0, 1, value)
- #define WMI_REG_RULE_PSD_EIRP_GET(psd_power_info) \
- WMI_GET_BITS(psd_power_info, 16, 16)
- #define WMI_REG_RULE_PSD_EIRP_SET(psd_power_info, value) \
- WMI_SET_BITS(psd_power_info, 16, 16, value)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_regulatory_rule_ext_struct */
- A_UINT32 freq_info; /* bits 15:0 = u16 start_freq,
- bits 31:16 = u16 end_freq
- (both in MHz units)
- use same MACRO as wmi_regulatory_rule_struct
- */
- A_UINT32 bw_pwr_info; /* bits 15:0 = u16 max_bw (MHz units),
- bits 23:16 = u8 reg_power (dBm units),
- bits 31:24 = u8 ant_gain (dB units)
- use same MACRO as wmi_regulatory_rule_struct
- */
- A_UINT32 flag_info; /* bits 15:0 = u16 flags,
- bits 31:16 reserved
- use same MACRO as wmi_regulatory_rule_struct
- */
- A_UINT32 psd_power_info; /* bits 0 - whether PSD power,
- bits 15:1 - reserved
- bits 31:16 - maximum PSD EIRP (dB/MHz)
- */
- /*
- * NOTE: no further fields can be added into this struct, due to
- * message buffer size limitations in certain targets for the
- * WMI_REG_CHAN_LIST_CC_EXT_EVENT message.
- */
- } wmi_regulatory_rule_ext_struct;
- #define WMI_REG_CHAN_PRIORITY_FREQ_GET(freq_info) WMI_GET_BITS(freq_info, 0, 16)
- #define WMI_REG_CHAN_PRIORITY_FREQ_SET(freq_info, value) WMI_SET_BITS(freq_info, 0, 16, value)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_regulatory_chan_priority_struct */
- A_UINT32 freq_info;
- /* freq_info:
- * bits 15:0 = u16 Cutoff Frequency value for Prioritization (in MHz units)
- * The frequencies above this value will be prioritized and
- * the frequencies below this value will be de-prioritized.
- * bits 31:16 = reserved for future
- */
- /*
- * NOTE: no further fields can be added into this struct, due to
- * message buffer size limitations in certain targets for the
- * WMI_REG_CHAN_LIST_CC_EXT_EVENT message.
- */
- } wmi_regulatory_chan_priority_struct;
- #define WMI_REG_FCC_RULE_CHAN_FREQ_GET(freq_info) WMI_GET_BITS(freq_info, 0, 16)
- #define WMI_REG_FCC_RULE_CHAN_FREQ_SET(freq_info, value) WMI_SET_BITS(freq_info, 0, 16, value)
- #define WMI_REG_FCC_RULE_FCC_TX_POWER_GET(freq_info) WMI_GET_BITS(freq_info, 16, 8)
- #define WMI_REG_FCC_RULE_FCC_TX_POWER_SET(freq_info, value) WMI_SET_BITS(freq_info, 16, 8, value)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_regulatory_fcc_rule_struct */
- A_UINT32 freq_info;
- /* freq_info:
- * bits 15:0 = u16 channel frequency (in MHz units)
- * bits 23:16 = u8 FCC_Tx_power (dBm units)
- * bits 31:24 = u8 reserved for future
- */
- /*
- * NOTE: no further fields can be added into this struct, due to
- * message buffer size limitations in certain targets for the
- * WMI_REG_CHAN_LIST_CC_EXT_EVENT message.
- */
- } wmi_regulatory_fcc_rule_struct;
- typedef enum {
- WMI_REG_DFS_UNINIT_REGION = 0,
- WMI_REG_DFS_FCC_REGION = 1,
- WMI_REG_DFS_ETSI_REGION = 2,
- WMI_REG_DFS_MKK_REGION = 3,
- WMI_REG_DFS_CN_REGION = 4,
- WMI_REG_DFS_KR_REGION = 5,
- /* Add new items above */
- WMI_REG_DFS_UNDEF_REGION = 0xFFFF,
- } WMI_REG_DFS_REGION;
- typedef enum {
- WMI_REGULATORY_PHYMODE_NO11A = 0x0001, /* NO 11A */
- WMI_REGULATORY_PHYMODE_NO11B = 0x0002, /* NO 11B */
- WMI_REGULATORY_PHYMODE_NO11G = 0x0004, /* NO 11G */
- WMI_REGULATORY_PHYMODE_NO11N = 0x0008, /* NO 11N */
- WMI_REGULATORY_PHYMODE_NO11AC = 0x0010, /* NO 11AC */
- WMI_REGULATORY_PHYMODE_NO11AX = 0x0020, /* NO 11AX */
- WMI_REGULATORY_PHYMODE_NO11BE = 0x0040, /* NO 11BE */
- } WMI_REGULATORY_PHYBITMAP;
- typedef enum {
- WMI_REG_SET_CC_STATUS_PASS = 0,
- WMI_REG_CURRENT_ALPHA2_NOT_FOUND = 1,
- WMI_REG_INIT_ALPHA2_NOT_FOUND = 2,
- WMI_REG_SET_CC_CHANGE_NOT_ALLOWED = 3,
- WMI_REG_SET_CC_STATUS_NO_MEMORY = 4,
- WMI_REG_SET_CC_STATUS_FAIL = 5,
- } WMI_REG_SET_CC_STATUS_CODE;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_reg_chan_list_cc_event_fixed_param */
- A_UINT32 status_code; /* WMI_REG_SET_CC_STATUS_CODE */
- A_UINT32 phy_id;
- A_UINT32 alpha2;
- A_UINT32 num_phy;
- A_UINT32 country_id;
- A_UINT32 domain_code;
- A_UINT32 dfs_region; /* WMI_REG_DFS_REGION */
- A_UINT32 phybitmap; /* WMI_REGULATORY_PHYBITMAP */
- A_UINT32 min_bw_2g; /* BW in MHz */
- A_UINT32 max_bw_2g; /* BW in MHz */
- A_UINT32 min_bw_5g; /* BW in MHz */
- A_UINT32 max_bw_5g; /* BW in MHz */
- A_UINT32 num_2g_reg_rules;
- A_UINT32 num_5g_reg_rules;
- /*
- * followed by wmi_regulatory_rule_struct TLV array. First 2G and then 5G
- * - wmi_regulatory_fcc_rule_struct reg_fcc_rule[]
- */
- } wmi_reg_chan_list_cc_event_fixed_param;
- typedef enum {
- WMI_REG_CLIENT_REGULAR = 0,
- WMI_REG_CLIENT_SUBORDINATE = 1,
- /* 2 and 3 are reserved for future growth */
- WMI_REG_CLIENT_MAX = 4, /* can't expand, b/c used as array length below */
- } wmi_reg_client_type;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_reg_chan_list_cc_event_ext_fixed_param */
- A_UINT32 status_code; /* WMI_REG_SET_CC_STATUS_CODE */
- A_UINT32 phy_id;
- A_UINT32 alpha2;
- A_UINT32 num_phy;
- A_UINT32 country_id; /* uses CountryCode enum values */
- A_UINT32 domain_code; /* used EnumRd enum values */
- A_UINT32 dfs_region; /* WMI_REG_DFS_REGION */
- A_UINT32 phybitmap; /* WMI_REGULATORY_PHYBITMAP */
- A_UINT32 min_bw_2g; /* BW in MHz */
- A_UINT32 max_bw_2g; /* BW in MHz */
- A_UINT32 min_bw_5g; /* BW in MHz */
- A_UINT32 max_bw_5g; /* BW in MHz */
- A_UINT32 num_2g_reg_rules;
- A_UINT32 num_5g_reg_rules;
- A_UINT32 client_type; /* populated if device can function as client */
- A_UINT32 rnr_tpe_usable; /* If RNR TPE Octet usable for that country */
- A_UINT32 unspecified_ap_usable; /* If unspecified AP usable for that country */
- A_UINT32 domain_code_6g_ap_lpi;
- A_UINT32 domain_code_6g_ap_sp;
- A_UINT32 domain_code_6g_ap_vlp;
- A_UINT32 domain_code_6g_client_lpi[WMI_REG_CLIENT_MAX];
- A_UINT32 domain_code_6g_client_sp[WMI_REG_CLIENT_MAX];
- A_UINT32 domain_code_6g_client_vlp[WMI_REG_CLIENT_MAX];
- A_UINT32 domain_code_6g_super_id;
- A_UINT32 min_bw_6g_ap_sp; /* MHz */
- A_UINT32 max_bw_6g_ap_sp;
- A_UINT32 min_bw_6g_ap_lpi;
- A_UINT32 max_bw_6g_ap_lpi;
- A_UINT32 min_bw_6g_ap_vlp;
- A_UINT32 max_bw_6g_ap_vlp;
- A_UINT32 min_bw_6g_client_sp[WMI_REG_CLIENT_MAX];
- A_UINT32 max_bw_6g_client_sp[WMI_REG_CLIENT_MAX];
- A_UINT32 min_bw_6g_client_lpi[WMI_REG_CLIENT_MAX];
- A_UINT32 max_bw_6g_client_lpi[WMI_REG_CLIENT_MAX];
- A_UINT32 min_bw_6g_client_vlp[WMI_REG_CLIENT_MAX];
- A_UINT32 max_bw_6g_client_vlp[WMI_REG_CLIENT_MAX];
- A_UINT32 num_6g_reg_rules_ap_sp;
- A_UINT32 num_6g_reg_rules_ap_lpi;
- A_UINT32 num_6g_reg_rules_ap_vlp;
- A_UINT32 num_6g_reg_rules_client_sp[WMI_REG_CLIENT_MAX];
- A_UINT32 num_6g_reg_rules_client_lpi[WMI_REG_CLIENT_MAX];
- A_UINT32 num_6g_reg_rules_client_vlp[WMI_REG_CLIENT_MAX];
- /*
- * NOTE: no further fields can be added into this struct, due to
- * message buffer size limitations in certain targets for the
- * WMI_REG_CHAN_LIST_CC_EXT_EVENT message.
- */
- /*
- * This fixed_param TLV is followed by the following TLVs:
- * - wmi_regulatory_rule_ext reg_rule_array[] struct TLV array.
- * Within the reg rule ext TLV array, the 2G elements occur first,
- * then the 5G elements, then the 6G elements (AP LPI, AP SP, AP VLP,
- * client LPI x4, client SP x4, client VLP x4).
- * - wmi_regulatory_chan_priority_struct reg_chan_priority[]
- * - wmi_regulatory_fcc_rule_struct reg_fcc_rule[]
- * - wmi_reg_chan_list_cc_ext_additional_params reg_more_data[]
- * struct used to fill more fixed additional data, as existing
- * fixed_param TLV struct can't be extended.
- * - wmi_regulatory_rule_meta_data reg_meta_data[]
- * struct used to fill meta information specific to new reg rules
- * getting added(i.e. from C2C onwards).
- */
- } wmi_reg_chan_list_cc_event_ext_fixed_param;
- #define WMI_REG_CAPS_C2C_SUPPORT_GET(additional_regulatory_capabilities) \
- WMI_GET_BITS(additional_regulatory_capabilities, 0, 1)
- #define WMI_REG_CAPS_C2C_SUPPORT_SET(additional_regulatory_capabilities, value) \
- WMI_SET_BITS(additional_regulatory_capabilities, 0, 1, value)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_reg_chan_list_cc_ext_additional_params */
- /* additional_regulatory_capabilities:
- * bit 0 - whether C2C supported
- * bits 31:1 - reserved
- */
- A_UINT32 additional_regulatory_capabilities;
- } wmi_reg_chan_list_cc_ext_additional_params;
- typedef enum {
- WMI_REG_RULE_TYPE_indoor_enabled_ap,
- WMI_REG_RULE_TYPE_indoor_enabled_def_cli,
- WMI_REG_RULE_TYPE_indoor_enabled_sub_cli,
- WMI_REG_RULE_TYPE_MAX,
- } WMI_REG_RULE_TYPE;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_regulatory_rule_meta_data */
- A_UINT32 reg_rule_type; /* Refer enum WMI_REG_RULE_TYPE */
- A_UINT32 domain_code_6ghz;
- A_UINT32 min_bw_6ghz; /* units = MHz */
- A_UINT32 max_bw_6ghz; /* units = MHz */
- A_UINT32 num_6ghz_reg_rules;
- } wmi_regulatory_rule_meta_data;
- /* WFA AFC Version */
- #define WMI_AFC_WFA_MINOR_VERSION_GET(afc_wfa_version) WMI_GET_BITS(afc_wfa_version, 0, 16)
- #define WMI_AFC_WFA_MINOR_VERSION_SET(afc_wfa_version, value) WMI_SET_BITS(afc_wfa_version, 0, 16, value)
- #define WMI_AFC_WFA_MAJOR_VERSION_GET(afc_wfa_version) WMI_GET_BITS(afc_wfa_version, 16, 16)
- #define WMI_AFC_WFA_MAJOR_VERSION_SET(afc_wfa_version, value) WMI_SET_BITS(afc_wfa_version, 16, 16, value)
- /* avail_exp_time_d time is expected as YYYY-MM-DD */
- #define WMI_AVAIL_EXPIRY_TIME_DAY_GET(avail_exp_time_d) WMI_GET_BITS(avail_exp_time_d, 0, 8)
- #define WMI_AVAIL_EXPIRY_TIME_DAY_SET(avail_exp_time_d, value) WMI_SET_BITS(avail_exp_time_d, 0, 8, value)
- #define WMI_AVAIL_EXPIRY_TIME_MONTH_GET(avail_exp_time_d) WMI_GET_BITS(avail_exp_time_d, 8, 8)
- #define WMI_AVAIL_EXPIRY_TIME_MONTH_SET(avail_exp_time_d, value) WMI_SET_BITS(avail_exp_time_d, 8, 8, value)
- #define WMI_AVAIL_EXPIRY_TIME_YEAR_GET(avail_exp_time_d) WMI_GET_BITS(avail_exp_time_d, 16, 16)
- #define WMI_AVAIL_EXPIRY_TIME_YEAR_SET(avail_exp_time_d, value) WMI_SET_BITS(avail_exp_time_d, 16, 16, value)
- /* avail_exp_time_t time is expected as HH-MM-SS */
- #define WMI_AVAIL_EXPIRY_TIME_SEC_GET(avail_exp_time_t) WMI_GET_BITS(avail_exp_time_t, 0, 8)
- #define WMI_AVAIL_EXPIRY_TIME_SEC_SET(avail_exp_time_t, value) WMI_SET_BITS(avail_exp_time_t, 0, 8, value)
- #define WMI_AVAIL_EXPIRY_TIME_MINUTE_GET(avail_exp_time_t) WMI_GET_BITS(avail_exp_time_t, 8, 8)
- #define WMI_AVAIL_EXPIRY_TIME_MINUTE_SET(avail_exp_time_t, value) WMI_SET_BITS(avail_exp_time_t, 8, 8, value)
- #define WMI_AVAIL_EXPIRY_TIME_HOUR_GET(avail_exp_time_t) WMI_GET_BITS(avail_exp_time_t, 16, 8)
- #define WMI_AVAIL_EXPIRY_TIME_HOUR_SET(avail_exp_time_t, value) WMI_SET_BITS(avail_exp_time_t, 16, 8, value)
- typedef enum {
- /**
- * The following event type is mutually exclusive.
- * afc_event_type will indicate type of AFC event sent from FW to host.
- * 1. For sending Power Info WMI_AFC_EVENT_POWER_INFO event is used.
- * 2. For sending AFC expiry use WMI_AFC_EVENT_TIMER_EXPIRY
- * This type can be expanded in future as per requirements.
- */
- WMI_AFC_EVENT_POWER_INFO = 1,
- WMI_AFC_EVENT_TIMER_EXPIRY = 2,
- } WMI_AFC_EVENT_TYPE;
- typedef enum {
- /**
- * The following afc_expiry_event_subtype is mutually exclusive
- * and is a part of expiry event.
- * 1. At boot up AFC expiry will contain AFC start.
- * 2. If AFC timer expires AFC_RENEW status code will be sent to host
- * with expiry event.
- * 3. If AFC server is not responding to FW in specified time, FW will
- * indicate host to switch to LPI.
- * 4. In SP mode, if AFC server is not responding to FW in
- * specified time then FW will indicate host to stop TX since
- * there are no lower power mode available.
- */
- WMI_AFC_EXPIRY_EVENT_START = 1,
- WMI_AFC_EXPIRY_EVENT_RENEW = 2,
- WMI_AFC_EXPIRY_EVENT_SWITCH_TO_LOW_POWER_MODE = 3,
- /* retain the deprecated old name as an alias for the new name */
- WMI_AFC_EXPIRY_EVENT_SWITCH_TO_LPI =
- WMI_AFC_EXPIRY_EVENT_SWITCH_TO_LOW_POWER_MODE,
- WMI_AFC_EXPIRY_EVENT_STOP_TX = 4,
- } WMI_AFC_EXPIRY_EVENT_SUBTYPE;
- typedef enum {
- /**
- * The following fw_status_code is mutually exclusive
- * and is used in power event.
- * 0. AFC power event is success.
- * 1. If Host does not indicate AFC indication cmd within certain time
- * of AFC expiry FW_AFC_POWER_EVENT_RESP_NOT_RECEIVED will be used.
- * 2. If FW is not able to parse afc_info, parsing_failure will be
- * indicated using WMI_FW_AFC_POWER_EVENT_RESP_NOT_RECEIVED.
- * 3. If due to some local reason AFC event is failed, AFC event failure
- * is indicated using WMI_FW_AFC_POWER_EVENT_FAILURE.
- */
- WMI_FW_AFC_POWER_EVENT_SUCCESS = 0,
- WMI_FW_AFC_POWER_EVENT_RESP_NOT_RECEIVED = 1,
- WMI_FW_AFC_POWER_EVENT_RESP_PARSING_FAILURE = 2,
- WMI_FW_AFC_POWER_EVENT_FAILURE = 3,
- } WMI_FW_AFC_POWER_EVENT_STATUS_CODE;
- typedef enum {
- /**
- * The following afc_server_resp_code is mutually exclusive.
- * This response code will be indicated to AFC server.
- * These codes are defined in WIFI spec doc for AFC as follows
- * -1: General Failure
- * 0: Success
- * 100 - 199: General errors related to the protocol
- * 300 - 399: Error events specific to message exchange for the
- * Available Spectrum Inquiry
- */
- WMI_AFC_SERV_RESP_GENERAL_FAILURE = -1,
- WMI_AFC_SERV_RESP_SUCCESS = 0,
- WMI_AFC_SERV_RESP_VERSION_NOT_SUPPORTED = 100,
- WMI_AFC_SERV_RESP_DEVICE_UNALLOWED = 101,
- WMI_AFC_SERV_RESP_MISSING_PARAM = 102,
- WMI_AFC_SERV_RESP_INVALID_VALUE = 103,
- WMI_AFC_SERV_RESP_UNEXPECTED_PARAM = 106,
- WMI_AFC_SERV_RESP_UNSUPPORTED_SPECTRUM = 300,
- } WMI_AFC_SERV_RESP_CODE;
- typedef struct {
- /** TLV tag and len;
- * tag equals WMITLV_TAG_STRUC_wmi_afc_event_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 phy_id;
- A_UINT32 event_type; /* refer to WMI_AFC_EVENT_TYPE */
- /** This TLV is (optionally) followed by TLV and TLV arrays containing
- * different afc_event:
- * 1. wmi_afc_expiry_event_param expiry_evt;
- * This TLV contains afc_expiry_event_param of fixed size.
- * 2. wmi_reg_afc_power_event_param afc_power_event;
- * This TLV contains afc_power_info_param of fixed size.
- * 3. wmi_6g_afc_frequency_info freq_info[]
- * This TLV array contains zero or more TLVs of freq_info,
- * which contain freq range and PSD.
- * 4. wmi_6g_afc_channel_info channel_info[]
- * This TLV array contains zero or more TLVs of global_operating
- * class and number of channel
- * in each global operating class
- * 5. wmi_afc_chan_eirp_power_info chan_eirp_power_info[]
- * This TLV array contains zero or more TLVs of channel CFI and
- * EIRP power values for each of the total number of channels
- * per global operating class.
- */
- } wmi_afc_event_fixed_param;
- typedef struct {
- /** TLV tag and len;
- * tag equals WMITLV_TAG_STRUC_wmi_afc_expiry_event_param.
- */
- A_UINT32 tlv_header;
- A_UINT32 request_id; /* AFC unique Request ID for AFC expiry event, This is Nonce generated by FW for freshness */
- A_UINT32 event_subtype; /* refer to WMI_AFC_EXPIRY_EVENT_SUBTYPE */
- A_UINT32 afc_wfa_version; /* bits 15:0 -- minor version
- * bits 31:16 -- major version
- * WMI_AFC_WFA_MINOR_VERSION_GET &
- * WMI_AFC_WFA_MAJOR_VERSION_GET
- */
- } wmi_afc_expiry_event_param;
- typedef struct {
- /** TLV tag and len;
- *tag equals WMITLV_TAG_STRUC_wmi_afc_power_event_param */
- A_UINT32 tlv_header;
- A_UINT32 fw_status_code; /* refer WMI_FW_AFC_POWER_EVENT_STATUS_CODE */
- A_UINT32 resp_id; /* AFC unique response ID, in case of fw_status_code as WMI_FW_AFC_POWER_EVENT_RESP_PARSING_FAILURE resp id may be invalid. */
- A_INT32 afc_serv_resp_code; /* refer WMI_AFC_SERV_RESP_CODE, This field and following all fields are valid if fw_status_code is a success. */
- A_UINT32 afc_wfa_version; /* bits 15:0 -- minor version
- * bits 31:16 -- major version
- * WMI_AFC_WFA_MINOR_VERSION_GET &
- * WMI_AFC_WFA_MAJOR_VERSION_GET
- */
- A_UINT32 avail_exp_time_d; /* avail_exp_time_d and avail_exp_time_t are
- * in UTC
- * Availability expiry time date format:
- * YYYY-MM-DD,
- * bits 7:0 -DD - Day (expected values 1-31)
- * bits 15:8 -MM - Month (expected values 1-12)
- * bits 31:16 -YYYY - Year
- */
- A_UINT32 avail_exp_time_t; /* Availability expiry time format HH-MM-SS
- * bits 7:0 -SS - Time in Sec (expected values 0-59)
- * bits 15:8 -MM - Minute (expected values 0-59)
- * bits 23:16 -HH - Hour (expected values 0-23)
- * bits 31:24 -reserved
- */
- } wmi_afc_power_event_param;
- typedef struct {
- /** TLV tag and len;
- * tag equals WMITLV_TAG_STRUC_wmi_6g_afc_frequency_info */
- A_UINT32 tlv_header;
- A_UINT32 freq_info; /* bits 15:0 = u16 start_freq,
- * bits 31:16 = u16 end_freq
- * (both in MHz units)
- * use MACRO as WMI_REG_RULE_START_FREQ_GET &
- * WMI_REG_RULE_START_FREQ_SET
- */
- A_INT32 psd_power_info; /* Maximum PSD in dBm/MHz, value is stored in 0.01 dBm/MHz steps */
- } wmi_6g_afc_frequency_info;
- typedef struct {
- /** TLV tag and len;
- * tag equals WMITLV_TAG_STRUC_wmi_6g_afc_channel_info */
- A_UINT32 tlv_header;
- A_UINT32 global_operating_class;
- A_UINT32 num_channels; /* num of valid channels for above global operating class */
- /* This TLV will be followed by array of
- * num_channels times wmi_afc_chan_eirp_power_info
- * wmi_afc_chan_eirp_power_info power_info[]
- * EIRP power array has chunks of elements corresponding to each channel
- * in the channel array.
- * i.e. the EIRP power array will contain
- * (suppose N1 and N2 are number of valid channels from channel_info[0]
- * and channel_info[1] respectively)
- * eirp_power[0] power for channel 0 from channel_info[0]
- * eirp_power[1] power for channel 1 from channel_info[0]
- * ...
- * eirp_power[N1-1] power for channel N1-1 from channel_info[0]
- * eirp_power[N1] power for channel 0 from channel_info[1]
- * eirp_power[N1+1] power for channel 1 from channel_info[1]
- * ...
- * eirp_power[N1+N2-1] power for channel N2-1 channel_info[1]
- * ...
- */
- } wmi_6g_afc_channel_info;
- typedef struct {
- /** TLV tag and len;
- * tag equals WMITLV_TAG_STRUC_wmi_afc_chan_eirp_power_info */
- A_UINT32 tlv_header ;
- A_UINT32 channel_cfi; /* channel center frequency indices */
- A_UINT32 eirp_pwr; /* maximum permissible EIRP available for above CFI in dBm, value is stored in 0.01 dBm steps */
- } wmi_afc_chan_eirp_power_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_11d_scan_start_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 scan_period_msec; /** scan duration in milli-seconds */
- A_UINT32 start_interval_msec; /** offset duration to start the scan in milli-seconds */
- } wmi_11d_scan_start_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_11d_scan_stop_cmd_fixed_param */
- A_UINT32 vdev_id;
- } wmi_11d_scan_stop_cmd_fixed_param;
- /** FW indicating new current country code to Host */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_11d_new_country_event_fixed_param */
- A_UINT32 new_alpha2; /** alpha2 characters representing the country code */
- } wmi_11d_new_country_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_coex_get_antenna_isolation_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* Currently there are no parameters for this message. */
- } wmi_coex_get_antenna_isolation_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_get_nfcal_power_fixed_param */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_pdev_get_nfcal_power_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_coex_report_isolation_event_fixed_param */
- A_UINT32 tlv_header;
- /** Antenna isolation value in dB units, none zero value is valid while 0 means failed to do isolation measurement or corresponding chain is not active.
- * Currently the HW descriptor only supports 4 chains at most.
- * Further isolation_chainX elements can be added in the future
- * for additional chains, if needed.
- */
- A_UINT32 isolation_chain0:8, /* [7:0], isolation value for chain 0 */
- isolation_chain1:8, /* [15:8], isolation value for chain 1 */
- isolation_chain2:8, /* [23:16], isolation value for chain 2 */
- isolation_chain3:8; /* [31:24], isolation value for chain 3 */
- } wmi_coex_report_isolation_event_fixed_param;
- typedef enum {
- WMI_COEX_DBAM_COMP_SUCCESS = 0, /* success, mode is applied */
- WMI_COEX_DBAM_COMP_ONGOING = 1, /* success, mode is applied */
- WMI_COEX_DBAM_COMP_DELAYED = 2, /* DBAM is delayed and TDD is selected temporarily */
- WMI_COEX_DBAM_COMP_NOT_SUPPORT = 3, /* DBAM is not supported */
- WMI_COEX_DBAM_COMP_TEST_MODE = 4, /* ignore due to test mode */
- WMI_COEX_DBAM_COMP_INVALID_PARAM = 5, /* invalid parameter is received */
- WMI_COEX_DBAM_COMP_FAIL = 6, /* command failed */
- } wmi_coex_dbam_comp_status;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_coex_dbam_complete_event_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 comp_status; /* wmi_coex_dbam_comp_status */
- } wmi_coex_dbam_complete_event_fixed_param;
- typedef enum wmi_tas_power_history_event_type {
- WMI_TAS_POWER_HISTORY_EVENT_SAVE_FAILURE = 0, /* Power history save fail, it will caused by: TAS Feature Not enable or get remote address fail */
- WMI_TAS_POWER_HISTORY_EVENT_SAVE_COMPLETE = 1, /* Power history save complete */
- } WMI_TAS_POWER_HISTORY_EVENT_TYPE;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tas_power_history_event_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 sub_type; /* refer to WMI_TAS_POWER_HISTORY_EVENT_TYPE */
- } wmi_tas_power_history_event_fixed_param;
- typedef enum {
- WMI_RCPI_MEASUREMENT_TYPE_AVG_MGMT = 1,
- WMI_RCPI_MEASUREMENT_TYPE_AVG_DATA = 2,
- WMI_RCPI_MEASUREMENT_TYPE_LAST_MGMT = 3,
- WMI_RCPI_MEASUREMENT_TYPE_LAST_DATA = 4,
- } wmi_rcpi_measurement_type;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_request_rcpi_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* peer MAC address */
- wmi_mac_addr peer_macaddr;
- /* measurement type - defined in enum wmi_rcpi_measurement_type */
- A_UINT32 measurement_type;
- } wmi_request_rcpi_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_update_rcpi_event_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* peer MAC address */
- wmi_mac_addr peer_macaddr;
- /* measurement type - defined in enum wmi_rcpi_measurement_type */
- A_UINT32 measurement_type;
- /* Measured RCPI in dBm of the peer requested by host */
- A_INT32 rcpi;
- /** status
- * 0 - Requested peer RCPI available
- * 1 - Requested peer RCPI not available
- */
- A_UINT32 status;
- } wmi_update_rcpi_event_fixed_param;
- /* Definition of mask for various package id */
- #define WMI_PKGID_MASK_AUTO 0x00000080
- typedef struct {
- /** TLV tag and len; tag equals*/
- A_UINT32 tlv_header;
- /**
- * The value field is filled with WMI_PKGID_MASK values.
- * Currently, the only flag used within values is
- * WMI_PKGID_MASK_AUTO, where bit7=1 for automotive systems.
- */
- A_UINT32 value;
- } wmi_pkgid_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_add_mac_addr_to_rx_filter_cmd_fixed_params */
- A_UINT32 vdev_id; /* vdev id whose mac to be randomized */
- /* enable is set to 1 if mac randomization to be enabled */
- A_UINT32 enable;
- /* randomization mac address if randomization is enabled */
- wmi_mac_addr mac_addr;
- /* To get the PMAC from freq param */
- A_UINT32 freq; /* units in MHz */
- } wmi_vdev_add_mac_addr_to_rx_filter_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_add_mac_addr_to_rx_filter_event_fixed_params */
- A_UINT32 vdev_id; /* vdev of id whose mac address was randomized */
- A_UINT32 status; /* status is 1 if success and 0 if failed */
- } wmi_vdev_add_mac_addr_to_rx_filter_status_event_fixed_param;
- /* Definition of HW data filtering */
- typedef enum {
- WMI_HW_DATA_FILTER_DROP_NON_ARP_BC = 0x01,
- WMI_HW_DATA_FILTER_DROP_NON_ICMPV6_MC = 0x02,
- } WMI_HW_DATA_FILTER_BITMAP_TYPE;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 enable; /* 1 . enable, 0- disable */
- A_UINT32 hw_filter_bitmap; /* see WMI_HW_DATA_FILTER_BITMAP_TYPE */
- } wmi_hw_data_filter_cmd_fixed_param;
- /** values for multiple_vdev_restart_request flags */
- /* Host is expecting consolidated Multiple Vdev Restart Response(MVRR) event. */
- #define WMI_MULTIPLE_VDEV_RESTART_FLAG_IS_MVRR_EVENT_SUPPORT(flag) WMI_GET_BITS(flag, 0, 1)
- #define WMI_MULTIPLE_VDEV_RESTART_FLAG_SET_MVRR_EVENT_SUPPORT(flag,val) WMI_SET_BITS(flag, 0, 1, val)
- /* Host is sending phymode_list for each vdev. */
- #define WMI_MULTIPLE_VDEV_RESTART_FLAG_IS_PHYMODE_PRESENT(flag) WMI_GET_BITS(flag, 1, 1)
- #define WMI_MULTIPLE_VDEV_RESTART_FLAG_SET_PHYMODE_PRESENT(flag,val) WMI_SET_BITS(flag, 1, 1, val)
- #define WMI_MULTIPLE_VDEV_RESTART_FLAG_GET_PHYMODE(phymode) WMI_GET_BITS(phymode, 0, 6)
- #define WMI_MULTIPLE_VDEV_RESTART_FLAG_SET_PHYMODE(phymode, val) WMI_SET_BITS(phymode, 0, 6, val)
- /** Indicates that VDEV ID is in bit-map format
- * If this flag is set, FW will determine the vdev IDs from the positions
- * of the bits that are set, and use these vdev IDs for vdev restart.
- *
- * This flag should not be set from host unless FW has set the service bit
- * WMI_SERVICE_MULTIPLE_VDEV_RESTART_BITMAP_SUPPORT to indicate it supports
- * this interpretation of the vdev IDs as a bitmap.
- *
- * If this flag is set then below is the way it will be parsed
- * vdev_ids[0] = 53 (0011 0101) -> indicates vdev 0,2,4,5 is set
- * vdev_ids[1] = 53 (0000 0101) -> indicates vdev 32,34 is set
- * similar to this the value can be extended in feature for more vdev's
- *
- * If flag is not se then default parsing will be as below
- * vdev_ids[0] = 0
- * vdev_ids[1] = 2
- * vdev_ids[2] = 4
- * .
- * .
- * vdev_ids[5] = 34
- */
- #define WMI_MULTIPLE_VDEV_RESTART_FLAG_BITMAP_SUPPORT(flag) WMI_GET_BITS(flag, 2, 1)
- #define WMI_MULTIPLE_VDEV_RESTART_FLAG_SET_BITMAP_SUPPORT(flag,val) WMI_SET_BITS(flag, 2, 1, val)
- /* This command is used whenever host wants to restart multiple
- * VDEVs using single command and the VDEV that are restarted will
- * need to have same properties they had before restart except for the
- * operating channel
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_multiple_vdev_restart_request_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /** unique id identifying the module, generated by the caller */
- A_UINT32 requestor_id;
- /** Disable H/W ack.
- * During CAC, Our HW shouldn't ack directed frames
- */
- A_UINT32 disable_hw_ack;
- /* Determine the duration of CAC on the given channel 'chan' */
- A_UINT32 cac_duration_ms;
- A_UINT32 num_vdevs;
- /*
- * Flags to indicate which parameters are sent as part of the request.
- * This field is filled with the bitwise combination of the flag values
- * defined by WMI_MULTIPLE_VDEV_RESTART_FLAG_xxx
- */
- A_UINT32 flags;
- A_UINT32 puncture_20mhz_bitmap; /* each bit indicates one 20 MHz BW punctured */
- /* The TLVs follows this structure:
- * A_UINT32 vdev_ids[]; <--- Array of vdev IDs, or bitmap of vdev IDs
- * In flags if WMI_MULTIPLE_VDEV_RESTART_FLAG_BITMAP_SUPPORT is set
- * FW will interpret the vdev_ids values as a bitmap, and will use the
- * position of all the bits set within the bitmap to determine the
- * vdev IDs to use for vdev restart.
- * If this flag is set then below is the way it will be parsed
- * vdev_ids[0] = 53 (0011 0101) -> indicates vdev 0,2,4,5 is set
- * vdev_ids[1] = 53 (0000 0101) -> indicates vdev 32,34 is set
- * The array can be extended in feature for more vdevs.
- * If this flag is not se then default parsing will be as below
- * vdev_ids[0] = 0
- * vdev_ids[1] = 2
- * vdev_ids[2] = 4
- * .
- * .
- * vdev_ids[5] = 34
- * wmi_channel chan; <------ WMI channel
- * A_UINT32 phymode_list[]; <-- Array of Phymode list, with
- * each phymode value stored in bits 5:0 of the A_UINT32.
- * Use the WMI_MULTIPLE_VDEV_RESTART_FLAG_GET/SET_PHYMODE macros
- * to access the phymode value from within each A_UINT32 element.
- * A_UINT32 preferred_tx_streams[]; <-- Array of preferred_tx_streams
- * with vdev ID as index.
- * A_UINT32 preferred_rx_streams[]; <-- Array of preferred_rx_streams
- * with vdev ID as index.
- * wmi_channel dbw_chan; <-- WMI channel
- * optional TLV for dbw_chan
- * wmi_dbw_chan_info dbw_chan_info
- * optional TLV used for dbw_chan_info
- */
- } wmi_pdev_multiple_vdev_restart_request_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_csa_switch_count_status_event_fixed_param */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /** CSA switch count value in the last transmitted beacon */
- A_UINT32 current_switch_count;
- A_UINT32 num_vdevs;
- /* The TLVs follows this structure:
- * A_UINT32 vdev_ids[]; <--- Array of VDEV ids.
- */
- } wmi_pdev_csa_switch_count_status_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_csc_vdev_list */
- A_UINT32 vdev_id;
- A_UINT32 current_switch_count; /** CSC switch count value in the last transmitted beacon */
- } wmi_csc_vdev_list;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_csc_switch_count_status_event_fixed_param */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /** CSC switch count value in the last transmitted beacon */
- A_UINT32 current_switch_count;
- /* The TLVs follows this structure:
- * struct wmi_csc_vdev_list vdev_info[]; // IDs of vdevs and their current switch countdown values
- */
- } wmi_pdev_csc_switch_count_status_event_fixed_param;
- /* Operation types for packet routing command */
- typedef enum {
- WMI_PDEV_ADD_PKT_ROUTING,
- WMI_PDEV_DEL_PKT_ROUTING,
- } wmi_pdev_pkt_routing_op_code;
- /* Packet routing types based on specific data types */
- typedef enum {
- WMI_PDEV_ROUTING_TYPE_ARP_IPV4,
- WMI_PDEV_ROUTING_TYPE_NS_IPV6,
- WMI_PDEV_ROUTING_TYPE_IGMP_IPV4,
- WMI_PDEV_ROUTING_TYPE_MLD_IPV6,
- WMI_PDEV_ROUTING_TYPE_DHCP_IPV4,
- WMI_PDEV_ROUTING_TYPE_DHCP_IPV6,
- WMI_PDEV_ROUTING_TYPE_DNS_TCP_IPV4,
- WMI_PDEV_ROUTING_TYPE_DNS_TCP_IPV6,
- WMI_PDEV_ROUTING_TYPE_DNS_UDP_IPV4,
- WMI_PDEV_ROUTING_TYPE_DNS_UDP_IPV6,
- WMI_PDEV_ROUTING_TYPE_ICMP_IPV4,
- WMI_PDEV_ROUTING_TYPE_ICMP_IPV6,
- WMI_PDEV_ROUTING_TYPE_TCP_IPV4,
- WMI_PDEV_ROUTING_TYPE_TCP_IPV6,
- WMI_PDEV_ROUTING_TYPE_UDP_IPV4,
- WMI_PDEV_ROUTING_TYPE_UDP_IPV6,
- WMI_PDEV_ROUTING_TYPE_IPV4,
- WMI_PDEV_ROUTING_TYPE_IPV6,
- WMI_PDEV_ROUTING_TYPE_EAP,
- WMI_PDEV_ROUTING_TYPE_VLAN,
- } wmi_pdev_pkt_routing_type;
- typedef enum {
- WMI_PDEV_WIFIRXCCE_USE_CCE_E = 0,
- WMI_PDEV_WIFIRXCCE_USE_ASPT_E = 1,
- WMI_PDEV_WIFIRXCCE_USE_FT_E = 2,
- WMI_PDEV_WIFIRXCCE_USE_CCE2_E = 3,
- } wmi_pdev_dest_ring_handler_type;
- typedef enum {
- WMI_SOC_TX_PACKET_TYPE_ARP = 1,
- WMI_SOC_TX_PACKET_TYPE_EAPOL = 2,
- WMI_SOC_TX_PACKET_TYPE_DHCP = 3,
- WMI_SOC_TX_PACKET_TYPE_DNS = 4,
- WMI_SOC_TX_PACKET_TYPE_ICMP = 5,
- } wmi_soc_tx_packet_type;
- /*
- * This command shall be sent only when no VDEV is up.
- * If the command is sent after any VDEV is up, target will ignore the command.
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_soc_tx_packet_custom_classify_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** packet_bitmap:
- * bitmap of the packets to be classified,
- * Refer to wmi_soc_tx_packet_type for the interpretation of the bits
- * within the bitmap.
- */
- A_UINT32 packet_bitmap;
- } wmi_soc_tx_packet_custom_classify_cmd_fixed_param;
- /*
- * This command shall be sent only when no VDEV is up.
- * If the command is sent after any VDEV is up, target will ignore the command.
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_update_pkt_routing_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** Identifies pdev on which routing needs to be applied */
- A_UINT32 pdev_id;
- /** Indicates the routing operation type: add/delete */
- A_UINT32 op_code; /* wmi_pdev_pkt_routing_op_code */
- /** Bitmap of multiple pkt routing types for a given destination ring and meta data */
- A_UINT32 routing_type_bitmap; /* see wmi_pdev_pkt_routing_type */
- /** 5 bits [4:0] are used to specify the destination ring where the CCE matched
- * packet needs to be routed.
- */
- A_UINT32 dest_ring;
- /** 16 bits [15:0] meta data can be passed to CCE. When the superrule matches,
- * CCE copies this back in RX_MSDU_END_TLV.
- */
- A_UINT32 meta_data;
- /**
- * Indicates the dest ring handler type: CCE, APST, FT, CCE2
- * Refer to wmi_pdev_dest_ring_handler_type / WMI_PDEV_WIFIRXCCE_USE_xxx
- */
- A_UINT32 dest_ring_handler;
- } wmi_pdev_update_pkt_routing_cmd_fixed_param;
- typedef enum {
- WMI_CALIBRATION_NO_FEATURE = 0, /* The board was calibrated with a meta which did not have this feature */
- WMI_CALIBRATION_OK, /* The calibration status is OK */
- WMI_CALIBRATION_NOT_OK, /* The calibration status is NOT OK */
- } WMI_CALIBRATION_STATUS;
- #define WMI_BOARD_MCN_STRING_MAX_SIZE 19
- /**
- * WMI_BOARD_MCN_STRING_BUF_SIZE : represents the number of elements in board_mcn_detail.
- * Since board_mcn_detail is of type A_UINT8, the value of WMI_BOARD_MCN_STRING_BUF_SIZE
- * should be multiple of 4 for alignment reason. And the last byte byte is reserved for
- * null-terminator
- */
- #define WMI_BOARD_MCN_STRING_BUF_SIZE (WMI_BOARD_MCN_STRING_MAX_SIZE+1) /* null-terminator */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_check_cal_version_event_fixed_param */
- A_UINT32 software_cal_version; /* Current software level calibration data version */
- A_UINT32 board_cal_version; /* Calibration data version programmed on chip */
- A_UINT32 cal_status; /* filled with WMI_CALIBRATION_STATUS enum value */
- /* board_mcn_detail:
- * Provides board's MCN (Material Control Number) information for the host
- * to display. This is used to track the Hardware level revisions/versions.
- * This array carries the ASCII values of the MCN to the host. And host
- * would just print this in a string format whenever user requests.
- * Note: On a big-endian host, the 4 bytes within each A_UINT32 portion
- * of a WMI message will be automatically byteswapped by the copy engine
- * as the messages are transferred between host and target, to convert
- * between the target's little-endianness and the host's big-endianness.
- * Consequently, a big-endian host will have to manually unswap the bytes
- * within the board_mcn_detail string buffer to get the bytes back into
- * the desired natural order.
- */
- A_UINT8 board_mcn_detail[WMI_BOARD_MCN_STRING_BUF_SIZE];
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_pdev_check_cal_version_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_check_cal_version_cmd_fixed_param */
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- } wmi_pdev_check_cal_version_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_diversity_gain_cmd_fixed_param */
- /** Identifies pdev on which diversity gain to be applied */
- A_UINT32 pdev_id;
- /** The number of spatial stream */
- A_UINT32 nss;
- /** The number of gains */
- A_UINT32 num_gains;
- /*
- * This fixed_param TLV is followed by other TLVs:
- * A_UINT8 diversity_gains[num_gains]; (gain is in dB units)
- */
- } wmi_pdev_set_diversity_gain_cmd_fixed_param;
- /* flags for unit_test_event */
- #define WMI_UNIT_TEST_EVENT_FLAG_STATUS 0 /* 0 = success, 1 = fail */
- #define WMI_UNIT_TEST_EVENT_FLAG_DONE 1 /* 0 = not done, 1 = done */
- /* from bit 2 to bit 31 are reserved */
- #define WMI_SET_UNIT_TEST_EVENT_FLAG_STATUS_SUCCESS(flag) do { \
- (flag) |= (1 << WMI_UNIT_TEST_EVENT_FLAG_STATUS); \
- } while (0)
- #define WMI_SET_UNIT_TEST_EVENT_FLAG_STATUS_FAIL(flag) do { \
- (flag) &= ~(1 << WMI_UNIT_TEST_EVENT_FLAG_STATUS); \
- } while (0)
- #define WMI_GET_UNIT_TEST_EVENT_FLAG_STSTUS(flag) \
- ((flag) & (1 << WMI_UNIT_TEST_EVENT_FLAG_STATUS))
- #define WMI_SET_UNIT_TEST_EVENT_FLAG_DONE(flag) do { \
- (flag) |= (1 << WMI_UNIT_TEST_EVENT_FLAG_DONE); \
- } while (0)
- #define WMI_CLR_UNIT_TEST_EVENT_FLAG_DONE(flag) do { \
- (flag) &= ~(1 << WMI_UNIT_TEST_EVENT_FLAG_DONE); \
- } while (0)
- #define WMI_GET_UNIT_TEST_EVENT_FLAG_DONE(flag) \
- ((flag) & (1 << WMI_UNIT_TEST_EVENT_FLAG_DONE))
- typedef struct {
- /* TLV tag and len; tag equals WMI_UNIT_TEST_EVENTID */
- A_UINT32 tlv_header;
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* Identify the wlan module */
- A_UINT32 module_id;
- /* unique id identifying the unit test cmd, generated by the caller */
- A_UINT32 diag_token;
- /* flag for the status of the unit_test_cmd */
- A_UINT32 flag;
- /* data length number of bytes for current dump */
- A_UINT32 payload_len;
- /* TLV/Payload after this structure is sent in little endian
- * format for the length mentioned in this structure.
- * A_UINT8 payload[1];
- */
- } wmi_unit_test_event_fixed_param;
- /* Definition of latency levels */
- typedef enum {
- WMI_WLM_LL_NORMAL = 0x0,
- /* DEPRECATED */ WMI_WLM_LL_MODERATE = 0x1,
- WMI_WLM_LL_XR = 0x1,
- WMI_WLM_LL_LOW = 0x2,
- WMI_WLM_LL_ULTRA_LOW = 0x3,
- } WMI_WLM_LATENCY_LEVEL;
- typedef struct {
- A_UINT32 tlv_header; /* WMITLV_TAG_STRUC_wmi_vdev_latency_event_fixed_param */
- /** The latency level for specified vdev_id */
- A_UINT32 vdev_id;
- /** latency level enum WMI_WLM_LATENCY_LEVEL honored by FW */
- A_UINT32 latency_level;
- } wmi_vdev_latency_event_fixed_param;
- /*
- * Lay out of flags in wmi_wlm_config_cmd_fixed_param
- *
- * |31 19| 18 | 17|16 14| 13 | 12| 11 | 10 | 9 | 8 |7 6|5 4|3 2| 1 | 0 |
- * +-----+-----+---+-----+----+---+----+----+-----+----+----+----+----+---+---+
- * | RSVD|SRATE|RTS| NSS |EDCA|TRY|SSLP|CSLP|DBMPS|RSVD|Roam|RSVD|DWLT|DFS|SUP|
- * +------------------------------+---------------+---------+-----------------+
- * | WAL | PS | Roam | Scan |
- *
- * Flag values:
- * TRY: (1) enable short limit for retrying unacked tx, where the limit is
- * based on the traffic's latency level
- * (0) default tx retry behavior
- * EDCA: (1) Apply VO parameters on BE
- * (0) default behavior
- * NSS: (0) no Nss limits, other than those negotiatied during association
- * (1) during 2-chain operation, tx only a single spatial stream
- * (2) - (7) reserved / invalid
- * RTS: (0) default protection
- * (1) always enable RTS/CTS protection
- * SRATE: (0) default secondary rate policy
- * (1) disable secondary rate
- */
- /* bit 0-3 of flags is used for scan operation */
- /* bit 0: Avoid scan request from HLOS if bit is set */
- #define WLM_FLAGS_SCAN_SUPPRESS 1 /* suppress all scan request */
- /* bit 1: WLM_FLAGS_SCAN_SKIP_DFS, skip dfs channel if bit is set */
- #define WLM_FLAGS_SCAN_SKIP_DFS 1 /* skip dfs channel operation */
- /* bit 2-3: define policy of dwell time/duration of each foreign channel
- (b3 b2)
- (0 0 ): Default dwell time
- (0 1 ): WLM_FLAGS_STICK_SCAN_DWELL_TIME : Stick to original active/passive dwell time, but split
- foreign channel dwell times into fitting into min (dl_latency, ul_latency). Note it can increase
- overall scan duration.
- (1 0 ): WLM_FLAGS_SHRINK_SCAN_DWELL_TIME: Shrink active/passive dwell time to
- min(dl_latency, ul_latency, dwell_time). It may reduce overall scan duration, but it may decrease
- the accuracy of scan result.
- (1 1 ): reserved
- */
- #define WLM_FLAGS_DEFAULT_SCAN_DWELL_TIME 0 /* Default scan dwell time */
- #define WLM_FLAGS_STICK_SCAN_DWELL_TIME 1 /* Shrink off channel time but extend overall scan duration */
- #define WLM_FLAGS_SHRINK_SCAN_DWELL_TIME 2 /* Shrink scan off channel time */
- /* bit 4-5: reserved for scan */
- /* bit 6-7 of flags is used for roaming operation */
- /* bit 6-7: define roaming policy:
- (b7 b6)
- (0 0 ): WLM_FLAGS_ROAM_ALLOW: Default behavior, allow roaming in all scenarios
- (0 1 ): WLM_FLAGS_ROAM_SUPPRESS: Disallow all roaming
- (1 0 ): WLM_FLAGS_ALLOW_FINAL_BMISS_ROAM: Allow final bmiss roaming only
- (1 1 ): reserved
- */
- #define WLM_FLAGS_ROAM_ALLOW 0
- #define WLM_FLAGS_ROAM_SUPPRESS 1
- #define WLM_FLAGS_ALLOW_FINAL_BMISS_ROAM 2
- /* bit 8: reserved for roaming */
- /* bit 9-11 of flags is used for powersave operation */
- /* bit 9: WLM_FLAGS_PS_DISABLE_BMPS, disable BMPS if bit is set */
- #define WLM_FLAGS_PS_DISABLE_BMPS 1 /* disable BMPS */
- /* bit 10: WLM_FLAGS_PS_DISABLE_CSS_COLLAPSE, disable css power collapse if bit is set */
- #define WLM_FLAGS_PS_DISABLE_CSS_COLLAPSE 1 /* disable css power collapse */
- /* bit 11: WLM_FLAGS_PS_DISABLE_SYS_SLEEP, disable sys sleep if bit is set */
- #define WLM_FLAGS_PS_DISABLE_SYS_SLEEP 1 /* disable sys sleep */
- /* bit 17-31 of flags is reserved for powersave and WAL */
- /* bit 23: WLM_FLAGS_PS_DISABLE_MLO_PROBE_SCAN,
- * disable MLO probe scan if bit is set
- */
- #define WLM_FLAGS_PS_DISABLE_MLO_PROBE_SCAN 1 /* disable MLO probe scan */
- /* bit 24: WLM_FLAGS_PS_DISABLE_ULL_FORCED_MLMR,
- * Disable forced MLMR on ULL if bit is set.
- * (MLMR may still happen due to other reasons.)
- */
- #define WLM_FLAGS_PS_DISABLE_ULL_FORCED_MLMR 1 /* disable forced MLMR on ULL */
- /* bit 25: WLM_FLAGS_PS_DISABLE_ULL_FORCED_EMLSR,
- * Disable forced EMLSR on ULL if bit is set.
- * (eMLSR may still happen due to other reasons.)
- */
- #define WLM_FLAGS_PS_DISABLE_ULL_FORCED_EMLSR 1 /* disable forced EMLSR on ULL */
- #define WLM_FLAGS_SCAN_IS_SUPPRESS(flag) WMI_GET_BITS(flag, 0, 1)
- #define WLM_FLAGS_SCAN_SET_SUPPRESS(flag, val) WMI_SET_BITS(flag, 0, 1, val)
- #define WLM_FLAGS_SCAN_IS_SKIP_DFS(flag) WMI_GET_BITS(flag, 1, 1)
- #define WLM_FLAGS_SCAN_SET_SKIP_DFS(flag, val) WMI_SET_BITS(flag, 1, 1, val)
- #define WLM_FLAGS_SCAN_GET_DWELL_TIME_POLICY(flag) WMI_GET_BITS(flag, 2, 2)
- #define WLM_FLAGS_SCAN_SET_DWELL_TIME_POLICY(flag, val) WMI_SET_BITS(flag, 2, 2, val)
- #define WLM_FLAGS_TSF_LATENCY_COMPENSATE_ENABLED_GET(flag) WMI_GET_BITS(flag, 4, 1)
- #define WLM_FLAGS_TSF_LATENCY_COMPENSATE_ENABLED_SET(flag) WMI_SET_BITS(flag, 4, 1, val)
- #define WLM_FLAGS_ROAM_GET_POLICY(flag) WMI_GET_BITS(flag, 6, 2)
- #define WLM_FLAGS_ROAM_SET_POLICY(flag, val) WMI_SET_BITS(flag, 6, 2, val)
- #define WLM_FLAGS_PS_IS_BMPS_DISABLED(flag) WMI_GET_BITS(flag, 9, 1)
- #define WLM_FLAGS_PS_IS_CSS_CLPS_DISABLED(flag) WMI_GET_BITS(flag, 10, 1)
- #define WLM_FLAGS_PS_SET_CSS_CLPS_DISABLE(flag, val) WMI_SET_BITS(flag, 10, 1, val)
- #define WLM_FLAGS_PS_IS_SYS_SLP_DISABLED(flag) WMI_GET_BITS(flag, 11, 1)
- #define WLM_FLAGS_PS_SET_SYS_SLP_DISABLE(flag, val) WMI_SET_BITS(flag, 11, 1, val)
- #define WLM_FLAGS_WAL_LIMIT_TRY_ENABLED(flag) WMI_GET_BITS(flag, 12, 1)
- #define WLM_FLAGS_WAL_LIMIT_TRY_SET(flag, val) WMI_SET_BITS(flag, 12, 1, val)
- #define WLM_FLAGS_WAL_ADJUST_EDCA_ENABLED(flag) WMI_GET_BITS(flag, 13, 1)
- #define WLM_FLAGS_WAL_ADJUST_EDCA_SET(flag, val) WMI_SET_BITS(flag, 13, 1, val)
- #define WLM_FLAGS_WAL_1NSS_ENABLED(flag) (WMI_GET_BITS(flag, 14, 3) & 0x1)
- #define WLM_FLAGS_WAL_NSS_SET(flag, val) WMI_SET_BITS(flag, 14, 3, val)
- #define WLM_FLAGS_WAL_ALWAYS_RTS_PROTECTION(flag) WMI_GET_BITS(flag, 17, 1)
- #define WLM_FLAGS_WAL_RTS_PROTECTION_SET(flag, val) WMI_SET_BITS(flag, 17, 1, val)
- #define WLM_FLAGS_WAL_DISABLE_SECONDARY_RATE(flag) WMI_GET_BITS(flag, 18, 1)
- #define WLM_FLAGS_WAL_SECONDARY_RATE_SET(flag, val) WMI_SET_BITS(flag, 18, 1, val)
- #define WLM_FLAGS_PS_IS_PCIE_L11_ENABLED(flag) WMI_GET_BITS(flag, 19, 1)
- #define WLM_FLAGS_PS_SET_PCIE_L11_ENABLE(flag, val) WMI_SET_BITS(flag, 19, 1, val)
- #define WLM_FLAGS_PS_IS_PHYRF_PS_ENABLED(flag) WMI_GET_BITS(flag, 20, 1)
- #define WLM_FLAGS_PS_SET_PHYRF_PS_ENABLE(flag, val) WMI_SET_BITS(flag, 20, 1, val)
- #define WLM_FLAGS_SCAN_IS_SPLIT_PAS_CH_ENABLED(flag) WMI_GET_BITS(flag, 21, 1)
- #define WLM_FLAGS_SCAN_SET_SPLIT_PAS_CH_ENABLE(flag, val) WMI_SET_BITS(flag, 21, 1, val)
- #define WLM_FLAGS_SCAN_IS_ADAPT_SCAN_ENABLED(flag) WMI_GET_BITS(flag, 22, 1)
- #define WLM_FLAGS_SCAN_SET_ADAPT_SCAN_ENABLE(flag, val) WMI_SET_BITS(flag, 22, 1, val)
- #define WLM_FLAGS_PS_IS_MLO_PROBE_SCAN_DISABLED(flag) WMI_GET_BITS(flag, 23, 1)
- #define WLM_FLAGS_PS_SET_MLO_PROBE_SCAN_DISABLE(flag, val) WMI_SET_BITS(flag, 23, 1, val)
- #define WLM_FLAGS_PS_IS_ULL_FORCED_MLMR_DISABLED(flag) WMI_GET_BITS(flag, 24, 1)
- #define WLM_FLAGS_PS_SET_ULL_FORCED_MLMR_DISABLE(flag, val) WMI_SET_BITS(flag, 24, 1, val)
- #define WLM_FLAGS_PS_IS_ULL_FORCED_EMLSR_DISABLED(flag) WMI_GET_BITS(flag, 25, 1)
- #define WLM_FLAGS_PS_SET_ULL_FORCED_EMLSR_DISABLE(flag, val) WMI_SET_BITS(flag, 25, 1, val)
- #define WLM_FLAGS_SET_FORCE_DEFAULT_LATENCY(flag, val) WMI_SET_BITS(flag, 0, 1, val)
- #define WLM_FLAGS_GET_FORCE_DEFAULT_LATENCY(flag) WMI_GET_BITS(flag, 0, 1)
- #define WLM_MAX_HOST_CLIENTS 5
- typedef struct {
- /** TLV tag and len; tag equals WMI_WLM_CONFIG_CMD_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /*
- * Refer to WMI_WLM_LATENCY_LEVEL
- * Once latency change detected, WLM will notify modules e.g. STAPS or SCAN/ROAM,
- * who subscribed this event. And subscribers, like SCAN, may disable/cutoff offchan
- * operation to support lower latency of WLAN.
- */
- A_UINT32 latency_level;
- /*
- * represent uplink latency in ms
- * This parameter will be used by STAPS module to decide timing parameters, like
- * ITO or SPEC wakeup interval. For SCAN/ROAM, it may used to calculate offchan
- * durations.
- * For host and FW with multi client LL feature enabled, this field is obsolete.
- */
- A_UINT32 ul_latency;
- /*
- * represent downlink latency in ms
- * Similar usage as ul_latency
- * For host and FW with multi client LL feature enabled, this field is obsolete.
- */
- A_UINT32 dl_latency;
- /*
- * flags for each client of WLM, refer to WLM_FLAGS_ definitions above.
- * For host and FW with multi client LL feature enabled, this field is obsolete.
- */
- A_UINT32 flags;
- /*
- * bit 0 used as force reset:
- * to override the latency level as default
- * for all the wlm clients
- */
- A_UINT32 flags_ext;
- /*
- * clients of WLM Arbiter
- * WLM_MAX_HOST_CLIENTS 5
- */
- A_UINT32 client_id_bitmask;
- } wmi_wlm_config_cmd_fixed_param;
- /* Broadcast TWT enable/disable for both REQUESTER and RESPONDER */
- #define TWT_EN_DIS_FLAGS_GET_BTWT(flag) WMI_GET_BITS(flag, 0, 1)
- #define TWT_EN_DIS_FLAGS_SET_BTWT(flag, val) WMI_SET_BITS(flag, 0, 1, val)
- /* legacy MBSSID enable/disable */
- #define TWT_EN_DIS_FLAGS_GET_L_MBSSID(flag) WMI_GET_BITS(flag, 1, 1)
- #define TWT_EN_DIS_FLAGS_SET_L_MBSSID(flag, val) WMI_SET_BITS(flag, 1, 1, val)
- /* 11ax MBSSID enable/disable */
- #define TWT_EN_DIS_FLAGS_GET_AX_MBSSID(flag) WMI_GET_BITS(flag, 2, 1)
- #define TWT_EN_DIS_FLAGS_SET_AX_MBSSID(flag, val) WMI_SET_BITS(flag, 2, 1, val)
- /* Configuration of TWT Modes,
- * If this BIT is set BIT4/5 will be used in FW, else BIT4/5 will be ignored.
- * Which means when we receive WMI_TWT_ENABLE_CMDID command from host,
- * without BIT3 set we will enable both REQUESTER/RESPONDER.
- *
- * Same interpretation is used in WMI_TWT_DISABLE_CMDID, if BIT3 is not set
- * we will disable both REQUESTER and RESPONDER.
- */
- #define TWT_EN_DIS_FLAGS_GET_SPLIT_CONFIG(flag) WMI_GET_BITS(flag, 3, 1)
- #define TWT_EN_DIS_FLAGS_SET_SPLIT_CONFIG(flag, val) WMI_SET_BITS(flag, 3, 1, val)
- /*
- * The flags are used both in WMI_TWT_ENABLE_CMDID and WMI_TWT_DISABLE_CMDID.
- *
- * BIT4 represents whether the it is for REQUESTER or RESPONDER.
- * BIT5 represents whether it is individual or broadcast mode.
- *
- * For instance, in WMI_TWT_ENABLE_CMDID if BIT4=0 and BIT5=0, then we will
- * enable only Requester, we will not change any configuration of RESPONDER.
- *
- * Same way in WMI_TWT_DISABLE_CMDID if BIT4=0 and BIT5=0, then we will only
- * disable Individual and Broadcast REQUESTER, we will not alter any RESPONDER
- * configuration.
- *
- * If host is enabling or disabling both REQUESTER and RESPONDER host will
- * send two WMI commands, one for REQUESTER and one for RESPONDER.
- *
- * WMI_TWT_ENABLE_CMDID command flags description,
- * |----------------------------------------------------------------------|
- * |BIT4=0, BIT5=0 | Enable Individual TWT requester |
- * |----------------------------------------------------------------------|
- * |BIT4=0, BIT5=1 | Enable both Individual and Broadcast TWT requester |
- * |----------------------------------------------------------------------|
- * |BIT4=1, BIT5=0 | Enable Individual TWT responder |
- * |----------------------------------------------------------------------|
- * |BIT4=1, BIT5=1 | Enable both Individual and Broadcast TWT responder |
- * |----------------------------------------------------------------------|
- *
- *
- * WMI_TWT_DISABLE_CMDID command flags description,
- * |----------------------------------------------------------------------|
- * |BIT4=0, BIT5=0 | Disable both Individual and Broadcast TWT requester |
- * |----------------------------------------------------------------------|
- * |BIT4=0, BIT5=1 | Disable Broadcast TWT requester |
- * |----------------------------------------------------------------------|
- * |BIT4=1, BIT5=0 | Disable both Individual and broadcast TWT responder |
- * |----------------------------------------------------------------------|
- * |BIT4=1, BIT5=1 | Disable Broadcast TWT responder |
- * |----------------------------------------------------------------------|
- *
- * If user has enabled only individual requester at any point and after
- * sometime if user wants to enable broadcast requester then user cannot
- * directly send another WMI_TWT_ENABLE_CMDID with broadcast configuration,
- * user has to disable TWT requester first and then enable both individual
- * requester and broadcast requester. Same way for RESPONDER.
- *
- */
- /* 0: requester; 1: responder */
- #define TWT_EN_DIS_FLAGS_GET_REQ_RESP(flag) WMI_GET_BITS(flag, 4, 1)
- #define TWT_EN_DIS_FLAGS_SET_REQ_RESP(flag, val) WMI_SET_BITS(flag, 4, 1, val)
- /* 0: iTWT; 1: bTWT */
- #define TWT_EN_DIS_FLAGS_GET_I_B_TWT(flag) WMI_GET_BITS(flag, 5, 1)
- #define TWT_EN_DIS_FLAGS_SET_I_B_TWT(flag, val) WMI_SET_BITS(flag, 5, 1, val)
- /* 0: bTWT; 1: rTWT */
- #define TWT_EN_DIS_FLAGS_GET_B_R_TWT(flag) WMI_GET_BITS(flag, 6, 1)
- #define TWT_EN_DIS_FLAGS_SET_B_R_TWT(flag, val) WMI_SET_BITS(flag, 6, 1, val)
- /*
- * disable autonomous bTWT session delete feature
- * This feature will delete client triggered session when number of clients
- * joined decreases to 0.
- */
- #define TWT_EN_DIS_FLAGS_GET_DIS_BTWT_AUTO_DELETE(flag) \
- WMI_GET_BITS(flag, 7, 1)
- #define TWT_EN_DIS_FLAGS_SET_DIS_BTWT_AUTO_DELETE(flag, val) \
- WMI_SET_BITS(flag, 7, 1, val)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_enable_cmd_fixed_param */
- /** pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- A_UINT32 sta_cong_timer_ms; /* STA TWT congestion timer TO value in terms of ms */
- A_UINT32 mbss_support; /* Reserved */
- A_UINT32 default_slot_size; /* This is the default value for the TWT slot setup by AP (units = microseconds) */
- A_UINT32 congestion_thresh_setup; /* Minimum congestion required to start setting up TWT sessions */
- /*
- * The congestion parameters below are in percent of occupied airtime.
- */
- A_UINT32 congestion_thresh_teardown; /* Minimum congestion below which TWT will be torn down */
- A_UINT32 congestion_thresh_critical; /* Threshold above which TWT will not be active */
- /*
- * The interference parameters below use an abstract method of evaluating
- * interference. The parameters are in percent, ranging from 0 for no
- * interference, to 100 for interference extreme enough to completely
- * block the signal of interest.
- */
- A_UINT32 interference_thresh_teardown; /* Minimum interference above that TWT will not be active */
- A_UINT32 interference_thresh_setup; /* Minimum interference below that TWT session can be setup */
- A_UINT32 min_no_sta_setup; /* Minimum no of STA required to start TWT setup */
- A_UINT32 min_no_sta_teardown; /* Minimum no of STA below which TWT will be torn down */
- A_UINT32 no_of_bcast_mcast_slots; /* Number of default slot sizes reserved for BCAST/MCAST delivery */
- A_UINT32 min_no_twt_slots; /* Minimum no of available slots for TWT to be operational */
- A_UINT32 max_no_sta_twt; /* Max no of STA with which TWT is possible (must be <= the wmi_resource_config's twt_ap_sta_count value) */
- /*
- * The below interval parameters have units of milliseconds.
- */
- A_UINT32 mode_check_interval; /* Interval between two successive check to decide the mode of TWT */
- A_UINT32 add_sta_slot_interval; /* Interval between decisions making to create TWT slots for STAs */
- A_UINT32 remove_sta_slot_interval; /* Interval between decisions making to remove TWT slot of STAs */
- A_UINT32 flags; /* enable/disable flags, refer to MACROs TWT_EN_DIS_FLAGS_* (TWT_EN_DIS_FLAGS_GET_BTWT etc.) */
- } wmi_twt_enable_cmd_fixed_param;
- /* status code of enabling TWT */
- typedef enum _WMI_ENABLE_TWT_STATUS_T {
- WMI_ENABLE_TWT_STATUS_OK, /* enabling TWT successfully completed */
- WMI_ENABLE_TWT_STATUS_ALREADY_ENABLED, /* TWT already enabled */
- WMI_ENABLE_TWT_STATUS_NOT_READY, /* FW not ready for enabling TWT */
- WMI_ENABLE_TWT_INVALID_PARAM, /* invalid parameters */
- WMI_ENABLE_TWT_STATUS_UNKNOWN_ERROR, /* enabling TWT failed with an unknown reason */
- } WMI_ENABLE_TWT_STATUS_T;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_enable_complete_event_fixed_param */
- /** pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. In non-DBDC case host should set it to 0 */
- A_UINT32 pdev_id;
- A_UINT32 status; /* WMI_ENABLE_TWT_STATUS_T */
- } wmi_twt_enable_complete_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_disable_cmd_fixed_param */
- /** pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. In non-DBDC case host should set it to 0 */
- A_UINT32 pdev_id; /* host should never set it to WMI_PDEV_ID_SOC */
- A_UINT32 flags; /* enable/disable flags, refer to MACROs TWT_EN_DIS_FLAGS_* (TWT_EN_DIS_FLAGS_GET_BTWT etc.) */
- A_UINT32 reason_code; /* refer to WMI_DISABLE_TWT_REASON_T */
- } wmi_twt_disable_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_disable_complete_event_fixed_param */
- A_UINT32 pdev_id;
- A_UINT32 status; /* refer to WMI_DISABLE_TWT_STATUS_T enum */
- } wmi_twt_disable_complete_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_vdev_config_cmd_fixed_param */
- /** pdev_id for identifying the MAC.
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- A_UINT32 vdev_id;
- /* TWT support flag to be applied to the vdev
- * 0 = ITWT, BTWT and RTWT are disabled.
- * 1 = ITWT is enabled
- * 2 = ITWT and BTWT are enabled
- * 3 = ITWT, BTWT and RTWT are enabled
- */
- A_UINT32 twt_support;
- } wmi_twt_vdev_config_cmd_fixed_param;
- /* status code of TWT Disable */
- typedef enum _WMI_DISABLE_TWT_STATUS_T {
- WMI_DISABLE_TWT_STATUS_OK, /* Disabling TWT successfully completed */
- WMI_DISABLE_TWT_STATUS_ROAM_IN_PROGRESS, /* Roaming in progress */
- WMI_DISABLE_TWT_STATUS_CHAN_SW_IN_PROGRESS, /* Channel switch in progress */
- WMI_DISABLE_TWT_STATUS_SCAN_IN_PROGRESS, /* Scan in progress */
- } WMI_DISABLE_TWT_STATUS_T;
- /* Host reason code of TWT Disable command : Set by Host */
- typedef enum _WMI_DISABLE_TWT_REASON_T {
- /* Host will set one of below reason code while disabling TWT */
- WMI_DISABLE_TWT_REASON_NONE, /* Normal case */
- WMI_DISABLE_TWT_REASON_CONCURRENCY_SCC, /* Concurrency case SCC */
- WMI_DISABLE_TWT_REASON_CONCURRENCY_MCC, /* Concurrency case MCC */
- WMI_DISABLE_TWT_REASON_CHANGE_CONGESTION_TIMEOUT, /* To change congestion time */
- WMI_DISABLE_TWT_REASON_P2P_GO_NOA, /* P2P GO NOA reason */
- } WMI_DISABLE_TWT_REASON_T;
- /* Notification event ID to Host */
- typedef enum _WMI_TWT_NOTIFICATION_ID_T {
- WMI_TWT_NOTIFY_EVENT_READY = 1,
- WMI_TWT_NOTIFY_EVENT_AP_TWT_REQ_BIT_SET = 2,
- WMI_TWT_NOTIFY_EVENT_AP_TWT_REQ_BIT_CLEAR = 3,
- } WMI_TWT_NOTIFICATION_ID_T;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_notify_event_fixed_param */
- A_UINT32 vdev_id; /* vdev id of TWT notify event */
- A_UINT32 event_id; /* refer to WMI_TWT_NOTIFICATION_ID_T */
- } wmi_twt_notify_event_fixed_param;
- /* from IEEE 802.11ah section 9.4.2.200 */
- typedef enum _WMI_TWT_COMMAND_T {
- WMI_TWT_COMMAND_REQUEST_TWT = 0,
- WMI_TWT_COMMAND_SUGGEST_TWT = 1,
- WMI_TWT_COMMAND_DEMAND_TWT = 2,
- WMI_TWT_COMMAND_TWT_GROUPING = 3,
- WMI_TWT_COMMAND_ACCEPT_TWT = 4,
- WMI_TWT_COMMAND_ALTERNATE_TWT = 5,
- WMI_TWT_COMMAND_DICTATE_TWT = 6,
- WMI_TWT_COMMAND_REJECT_TWT = 7,
- } WMI_TWT_COMMAND_T;
- /* TWT command, refer to WMI_TWT_COMMAND_T */
- #define TWT_FLAGS_GET_CMD(flag) WMI_GET_BITS(flag, 0, 8)
- #define TWT_FLAGS_SET_CMD(flag, val) WMI_SET_BITS(flag, 0, 8, val)
- /* 0 means Individual TWT, 1 means Broadcast TWT */
- #define TWT_FLAGS_GET_BROADCAST(flag) WMI_GET_BITS(flag, 8, 1)
- #define TWT_FLAGS_SET_BROADCAST(flag, val) WMI_SET_BITS(flag, 8, 1, val)
- /* 0 means non-Trigger-enabled TWT, 1 means means Trigger-enabled TWT */
- #define TWT_FLAGS_GET_TRIGGER(flag) WMI_GET_BITS(flag, 9, 1)
- #define TWT_FLAGS_SET_TRIGGER(flag, val) WMI_SET_BITS(flag, 9, 1, val)
- /* flow type 0 means announced TWT, 1 means un-announced TWT */
- #define TWT_FLAGS_GET_FLOW_TYPE(flag) WMI_GET_BITS(flag, 10, 1)
- #define TWT_FLAGS_SET_FLOW_TYPE(flag, val) WMI_SET_BITS(flag, 10, 1, val)
- /* 0 means TWT protection is required, 1 means TWT protection is not required */
- #define TWT_FLAGS_GET_PROTECTION(flag) WMI_GET_BITS(flag, 11, 1)
- #define TWT_FLAGS_SET_PROTECTION(flag, val) WMI_SET_BITS(flag, 11, 1, val)
- /* B-TWT ID 0: 0 means non-0 B-TWT ID or I-TWT, 1 means B-TWT ID 0 */
- #define TWT_FLAGS_GET_BTWT_ID0(flag) WMI_GET_BITS(flag, 12, 1)
- #define TWT_FLAGS_SET_BTWT_ID0(flag, val) WMI_SET_BITS(flag, 12, 1, val)
- /* 0 means TWT Information frame is enabled, 1 means TWT Information frame is disabled */
- #define TWT_FLAGS_GET_TWT_INFO_FRAME_DISABLED(flag) WMI_GET_BITS(flag, 13, 1)
- #define TWT_FLAGS_SET_TWT_INFO_FRAME_DISABLED(flag, val) WMI_SET_BITS(flag, 13, 1, val)
- /*
- * 1 means PM_RESPONDER_MODE information sent in BIT15 is valid, 0 means it is not valid.
- * Will be used for backward compatibility if host uses older FW versions
- * then value will be 0 so host will not consider the BIT15 value.
- */
- #define TWT_FLAGS_GET_PM_RESPONDER_MODE_VALID(flag) WMI_GET_BITS(flag, 14, 1)
- #define TWT_FLAGS_SET_PM_RESPONDER_MODE_VALID(flag, val) WMI_SET_BITS(flag, 14, 1, val)
- /* 1 means PM_RESPONDER_MODE supported, 0 means not supported */
- #define TWT_FLAGS_GET_PM_RESPONDER_MODE(flag) WMI_GET_BITS(flag, 15, 1)
- #define TWT_FLAGS_SET_PM_RESPONDER_MODE(flag, val) WMI_SET_BITS(flag, 15, 1, val)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_ack_event_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog ID */
- A_UINT32 twt_cmd; /* TWT command for which this ack is sent */
- A_UINT32 status; /* Status code corresponding to twt_cmd.
- * This status field contains a value from the
- * status enum corresponding to the twt_cmd type
- * (WMI_ADD_TWT_STATUS_T, WMI_DEL_TWT_STATUS_T,
- * WMI_PAUSE_TWT_STATUS_T, etc.)
- */
- } wmi_twt_ack_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_add_dialog_cmd_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog_id (< 0xFF) is per peer, I-TWT & B-TWT use different diaglog ID */
- /* 1. wake_intvl_mantis must be <= 0xFFFF
- * 2. wake_intvl_us must be divided evenly by wake_intvl_mantis,
- * i.e., wake_intvl_us % wake_intvl_mantis == 0
- * 3. the quotient of wake_intvl_us/wake_intvl_mantis must be 2 to N-th(0<=N<=31) power,
- * i.e., wake_intvl_us/wake_intvl_mantis == 2^N, 0<=N<=31
- */
- A_UINT32 wake_intvl_us; /* TWT Wake Interval in units of us */
- A_UINT32 wake_intvl_mantis; /* TWT Wake Interval Mantissa */
- /* wake_dura_us must be divided evenly by 256, i.e., wake_dura_us % 256 == 0 */
- A_UINT32 wake_dura_us; /* TWT Wake Duration in units of us, must be <= 65280 (0xFF00) */
- A_UINT32 sp_offset_us; /* this long time after TWT setup the 1st SP will start */
- A_UINT32 flags; /* TWT flags, refer to MACROs TWT_FLAGS_*(TWT_FLAGS_GET_CMD etc) */
- /* Broadcast TWT(B-TWT) Persistence, when used in Add/update Dialog,
- * indicates for how long(in units of TBTTs) current B-TWT session
- * parameters will not be changed.
- * Refer to 11ax spec session "9.4.2.199 TWT element" for more info.
- */
- A_UINT32 b_twt_persistence;
- /* Broadcast TWT(B-TWT) Recommendation, refer to section
- * "9.4.2.199 TWT element" of latest 11ax draft
- */
- A_UINT32 b_twt_recommendation;
- /* Min tolerance limit of wake interval.
- * If this variable is set to 0 by host, FW will ignore it.
- */
- A_UINT32 min_wake_intvl_us;
- /* Max tolerance limit of wake interval.
- * If this variable is set to 0 by host, FW will ignore it.
- */
- A_UINT32 max_wake_intvl_us;
- /* Min tolerance limit of wake duration.
- * If this variable is set to 0 by host, FW will ignore it.
- */
- A_UINT32 min_wake_dura_us;
- /* Max tolerance limit of wake duration.
- * If this variable is set to 0 by host, FW will ignore it.
- */
- A_UINT32 max_wake_dura_us;
- /*
- * Service period start TSF (absolute)
- * If sp_start_tsf_lo == sp_start_tsf_hi == 0, the specification
- * is invalid, and shall be ignored.
- */
- A_UINT32 sp_start_tsf_lo; /* bits 31:0 */
- A_UINT32 sp_start_tsf_hi; /* bits 63:32 */
- /*
- * In announced mode, wait for announce timeout before explicit announce
- * using QoS NULL.
- * If set to 0, FW will send QoS NULL immediately.
- */
- A_UINT32 announce_timeout_us;
- A_UINT32 link_id_bitmap;
- /* parameters required for R-TWT feature */
- A_UINT32 r_twt_dl_tid_bitmap;
- A_UINT32 r_twt_ul_tid_bitmap;
- } wmi_twt_add_dialog_cmd_fixed_param;
- /* status code of adding TWT dialog */
- typedef enum _WMI_ADD_TWT_STATUS_T {
- WMI_ADD_TWT_STATUS_OK, /* adding TWT dialog successfully completed */
- WMI_ADD_TWT_STATUS_TWT_NOT_ENABLED, /* TWT not enabled */
- WMI_ADD_TWT_STATUS_USED_DIALOG_ID, /* TWT dialog ID is already used */
- WMI_ADD_TWT_STATUS_INVALID_PARAM, /* invalid parameters */
- WMI_ADD_TWT_STATUS_NOT_READY, /* FW not ready */
- WMI_ADD_TWT_STATUS_NO_RESOURCE, /* FW resource exhausted */
- WMI_ADD_TWT_STATUS_NO_ACK, /* peer AP/STA did not ACK the request/response frame */
- WMI_ADD_TWT_STATUS_NO_RESPONSE, /* peer AP did not send the response frame */
- WMI_ADD_TWT_STATUS_DENIED, /* AP did not accept the request */
- WMI_ADD_TWT_STATUS_UNKNOWN_ERROR, /* adding TWT dialog failed with an unknown reason */
- WMI_ADD_TWT_STATUS_AP_PARAMS_NOT_IN_RANGE, /* peer AP wake interval, duration not in range */
- WMI_ADD_TWT_STATUS_AP_IE_VALIDATION_FAILED, /* peer AP IE Validation Failed */
- WMI_ADD_TWT_STATUS_ROAM_IN_PROGRESS, /* Roaming in progress */
- WMI_ADD_TWT_STATUS_CHAN_SW_IN_PROGRESS, /* Channel switch in progress */
- WMI_ADD_TWT_STATUS_SCAN_IN_PROGRESS, /* Scan in progress */
- WMI_ADD_TWT_STATUS_DIALOG_ID_BUSY, /* FW is in the process of handling this dialog */
- WMI_ADD_TWT_STATUS_BTWT_NOT_ENBABLED, /* Broadcast TWT is not enabled */
- WMI_ADD_TWT_STATUS_RTWT_NOT_ENBABLED, /* Restricted TWT is not enabled */
- WMI_ADD_TWT_STATUS_LINK_SWITCH_IN_PROGRESS, /* Link switch is ongoing */
- WMI_ADD_TWT_STATUS_UNSUPPORTED_MODE_MLMR, /* Unsupported in MLMR mode */
- } WMI_ADD_TWT_STATUS_T;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_add_dialog_additional_params */
- A_UINT32 flags; /* TWT flags, refer to MACROs TWT_FLAGS_*(TWT_FLAGS_GET_CMD etc) */
- A_UINT32 wake_dur_us; /* Wake duration in uS */
- A_UINT32 wake_intvl_us; /* Wake Interval in uS */
- A_UINT32 sp_offset_us; /* SP Starting Offset */
- A_UINT32 sp_tsf_us_lo; /* SP start TSF bits 31:0 */
- A_UINT32 sp_tsf_us_hi; /* SP start TSF bits 63:32 */
- } wmi_twt_add_dialog_additional_params;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_add_dialog_complete_event_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog ID */
- A_UINT32 status; /* refer to WMI_ADD_TWT_STATUS_T */
- /*
- * This fixed_param TLV is followed by the below TLVs:
- * wmi_twt_add_dialog_additional_params twt_params[]; // TWT params received
- * // from peer
- */
- } wmi_twt_add_dialog_complete_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_del_dialog_cmd_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog ID */
- /* Broadcast TWT(B-TWT) Persistence, when used in Del Dialog,
- * indicates for how long(in units of TBTTs) current B-TWT session
- * parameters will be present.
- * Refer to 11ax spec session "9.4.2.199 TWT element" for more info.
- */
- A_UINT32 b_twt_persistence;
- A_UINT32 is_bcast_twt;
- } wmi_twt_del_dialog_cmd_fixed_param;
- /* status code of deleting TWT dialog */
- typedef enum _WMI_DEL_TWT_STATUS_T {
- WMI_DEL_TWT_STATUS_OK, /* deleting TWT dialog successfully completed */
- WMI_DEL_TWT_STATUS_DIALOG_ID_NOT_EXIST, /* TWT dialog ID not exists */
- WMI_DEL_TWT_STATUS_INVALID_PARAM, /* invalid parameters */
- WMI_DEL_TWT_STATUS_DIALOG_ID_BUSY, /* FW is in the process of handling this dialog */
- WMI_DEL_TWT_STATUS_NO_RESOURCE, /* FW resource exhausted */
- WMI_DEL_TWT_STATUS_NO_ACK, /* peer AP/STA did not ACK the request/response frame */
- WMI_DEL_TWT_STATUS_UNKNOWN_ERROR, /* deleting TWT dialog failed with an unknown reason */
- WMI_DEL_TWT_STATUS_PEER_INIT_TEARDOWN, /* Peer Initiated Teardown */
- WMI_DEL_TWT_STATUS_ROAMING, /* Reason Roaming Start*/
- WMI_DEL_TWT_STATUS_CONCURRENCY, /* Teardown due to concurrency */
- WMI_DEL_TWT_STATUS_CHAN_SW_IN_PROGRESS, /* Channel switch in progress */
- WMI_DEL_TWT_STATUS_SCAN_IN_PROGRESS, /* Reason Scan in progress */
- WMI_DEL_TWT_STATUS_CHANGE_CONGESTION_TIMEOUT, /* Congestion timeout changed */
- WMI_DEL_TWT_STATUS_P2P_GO_NOA, /* P2P GO NOA */
- } WMI_DEL_TWT_STATUS_T;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_del_dialog_complete_event_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog ID */
- A_UINT32 status; /* refer to WMI_DEL_TWT_STATUS_T */
- } wmi_twt_del_dialog_complete_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_pause_dialog_cmd_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog ID */
- } wmi_twt_pause_dialog_cmd_fixed_param;
- /* status code of pausing TWT dialog */
- typedef enum _WMI_PAUSE_TWT_STATUS_T {
- WMI_PAUSE_TWT_STATUS_OK, /* pausing TWT dialog successfully completed */
- WMI_PAUSE_TWT_STATUS_DIALOG_ID_NOT_EXIST, /* TWT dialog ID not exists */
- WMI_PAUSE_TWT_STATUS_INVALID_PARAM, /* invalid parameters */
- WMI_PAUSE_TWT_STATUS_DIALOG_ID_BUSY, /* FW is in the process of handling this dialog */
- WMI_PAUSE_TWT_STATUS_NO_RESOURCE, /* FW resource exhausted */
- WMI_PAUSE_TWT_STATUS_NO_ACK, /* peer AP/STA did not ACK the request/response frame */
- WMI_PAUSE_TWT_STATUS_UNKNOWN_ERROR, /* pausing TWT dialog failed with an unknown reason */
- WMI_PAUSE_TWT_STATUS_ALREADY_PAUSED, /* The TWT dialog is already paused */
- WMI_PAUSE_TWT_STATUS_TWT_INFO_FRM_NOT_SUPPORTED, /* TWT information frame is not supported by AP */
- WMI_PAUSE_TWT_STATUS_CHAN_SW_IN_PROGRESS, /* Channel switch in progress */
- WMI_PAUSE_TWT_STATUS_ROAM_IN_PROGRESS, /* Roam in progress */
- WMI_PAUSE_TWT_STATUS_SCAN_IN_PROGRESS, /* Scan in progress */
- } WMI_PAUSE_TWT_STATUS_T;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_pause_dialog_complete_event_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog ID */
- A_UINT32 status; /* refer to WMI_PAUSE_TWT_STATUS_T */
- } wmi_twt_pause_dialog_complete_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_resume_dialog_cmd_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog ID */
- A_UINT32 sp_offset_us; /* this long time after TWT resumed the 1st SP will start */
- A_UINT32 next_twt_size; /* Next TWT subfield Size, refer to IEEE 802.11ax section "9.4.1.60 TWT Information field" */
- } wmi_twt_resume_dialog_cmd_fixed_param;
- /* status code of resuming TWT dialog */
- typedef enum _WMI_RESUME_TWT_STATUS_T {
- WMI_RESUME_TWT_STATUS_OK, /* resuming TWT dialog successfully completed */
- WMI_RESUME_TWT_STATUS_DIALOG_ID_NOT_EXIST, /* TWT dialog ID not exists */
- WMI_RESUME_TWT_STATUS_INVALID_PARAM, /* invalid parameters */
- WMI_RESUME_TWT_STATUS_DIALOG_ID_BUSY, /* FW is in the process of handling this dialog */
- WMI_RESUME_TWT_STATUS_NOT_PAUSED, /* dialog not paused currently */
- WMI_RESUME_TWT_STATUS_NO_RESOURCE, /* FW resource exhausted */
- WMI_RESUME_TWT_STATUS_NO_ACK, /* peer AP/STA did not ACK the request/response frame */
- WMI_RESUME_TWT_STATUS_UNKNOWN_ERROR, /* resuming TWT dialog failed with an unknown reason */
- WMI_RESUME_TWT_STATUS_TWT_INFO_FRM_NOT_SUPPORTED, /* TWT information frame is not supported by AP */
- WMI_RESUME_TWT_STATUS_CHAN_SW_IN_PROGRESS, /* Channel switch in progress */
- WMI_RESUME_TWT_STATUS_ROAM_IN_PROGRESS, /* Roam in progress */
- WMI_RESUME_TWT_STATUS_SCAN_IN_PROGRESS, /* Scan in progress */
- } WMI_RESUME_TWT_STATUS_T;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_resume_dialog_complete_event_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog ID */
- A_UINT32 status; /* refer to WMI_RESUME_TWT_STATUS_T */
- } wmi_twt_resume_dialog_complete_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_nudge_dialog_cmd_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog ID */
- A_UINT32 suspend_duration_ms; /* this long time after TWT paused the 1st SP will start (millisecond) */
- A_UINT32 next_twt_size; /* Next TWT subfield Size, refer to IEEE 802.11ax section "9.4.1.60 TWT Information field" */
- A_INT32 sp_start_offset; /* Next TWT service period will be offset by this time (microsecond) */
- } wmi_twt_nudge_dialog_cmd_fixed_param;
- /* status code of nudging TWT dialog */
- typedef enum _WMI_TWT_NUDGE_STATUS_T {
- WMI_NUDGE_TWT_STATUS_OK, /* nudging TWT dialog successfully completed */
- WMI_NUDGE_TWT_STATUS_DIALOG_ID_NOT_EXIST, /* TWT dialog ID doesn't exist */
- WMI_NUDGE_TWT_STATUS_INVALID_PARAM, /* invalid parameters */
- WMI_NUDGE_TWT_STATUS_DIALOG_ID_BUSY, /* FW is in the process of handling this dialog */
- WMI_NUDGE_TWT_STATUS_NO_RESOURCE, /* FW resource exhausted */
- WMI_NUDGE_TWT_STATUS_NO_ACK, /* peer AP/STA did not ACK the request/response frame */
- WMI_NUDGE_TWT_STATUS_UNKNOWN_ERROR, /* nudging TWT dialog failed with an unknown reason */
- WMI_NUDGE_TWT_STATUS_ALREADY_PAUSED, /* The TWT dialog is already paused */
- WMI_NUDGE_TWT_STATUS_TWT_INFO_FRM_NOT_SUPPORTED, /* TWT information frame is not supported by AP */
- WMI_NUDGE_TWT_STATUS_CHAN_SW_IN_PROGRESS, /* Channel switch in progress */
- WMI_NUDGE_TWT_STATUS_ROAM_IN_PROGRESS, /* Roam in progress */
- WMI_NUDGE_TWT_STATUS_SCAN_IN_PROGRESS, /* Scan in progress */
- } WMI_TWT_NUDGE_STATUS_T;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_nudge_dialog_complete_event_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog ID */
- A_UINT32 status; /* refer to WMI_NUDGE_TWT_STATUS_T */
- A_UINT32 sp_tsf_us_lo; /* SP resume TSF bits 31:0 */
- A_UINT32 sp_tsf_us_hi; /* SP resume TSF bits 63:32 */
- } wmi_twt_nudge_dialog_complete_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_btwt_invite_sta_cmd_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog ID */
- /* parameters required for R-TWT feature */
- A_UINT32 r_twt_dl_tid_bitmap;
- A_UINT32 r_twt_ul_tid_bitmap;
- } wmi_twt_btwt_invite_sta_cmd_fixed_param;
- /* status code of inviting STA to B-TWT dialog */
- typedef enum _WMI_TWT_BTWT_INVITE_STA_STATUS_T {
- WMI_TWT_BTWT_INVITE_STA_STATUS_OK, /* inviting STA to B-TWT successfully completed */
- WMI_TWT_BTWT_INVITE_STA_STATUS_DIALOG_ID_NOT_EXIST, /* TWT dialog ID not exists */
- WMI_TWT_BTWT_INVITE_STA_STATUS_INVALID_PARAM, /* invalid parameters */
- WMI_TWT_BTWT_INVITE_STA_STATUS_DIALOG_ID_BUSY, /* FW is in the process of handling this dialog */
- WMI_TWT_BTWT_INVITE_STA_STATUS_ALREADY_JOINED, /* peer STA already joined the session */
- WMI_TWT_BTWT_INVITE_STA_STATUS_NO_RESOURCE, /* FW resource exhausted */
- WMI_TWT_BTWT_INVITE_STA_STATUS_NO_ACK, /* peer STA did not ACK the request/response frame */
- WMI_TWT_BTWT_INVITE_STA_STATUS_UNKNOWN_ERROR, /* failed with an unknown reason */
- } WMI_TWT_BTWT_INVITE_STA_STATUS_T;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals wmi_twt_btwt_invite_sta_complete_event_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog ID */
- A_UINT32 status; /* refer to WMI_TWT_BTWT_INVITE_STA_STATUS_T */
- } wmi_twt_btwt_invite_sta_complete_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals wmi_twt_btwt_remove_sta_cmd_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog ID */
- /* parameters required for R-TWT feature */
- A_UINT32 r_twt_dl_tid_bitmap;
- A_UINT32 r_twt_ul_tid_bitmap;
- } wmi_twt_btwt_remove_sta_cmd_fixed_param;
- /* status code of removing STA from B-TWT dialog */
- typedef enum _WMI_TWT_BTWT_REMOVE_STA_STATUS_T {
- WMI_TWT_BTWT_REMOVE_STA_STATUS_OK, /* removing STA from B-TWT successfully completed */
- WMI_TWT_BTWT_REMOVE_STA_STATUS_DIALOG_ID_NOT_EXIST, /* TWT dialog ID not exists */
- WMI_TWT_BTWT_REMOVE_STA_STATUS_INVALID_PARAM, /* invalid parameters */
- WMI_TWT_BTWT_REMOVE_STA_STATUS_DIALOG_ID_BUSY, /* FW is in the process of handling this dialog */
- WMI_TWT_BTWT_REMOVE_STA_STATUS_NOT_JOINED, /* peer STA not joined yet */
- WMI_TWT_BTWT_REMOVE_STA_STATUS_NO_RESOURCE, /* FW resource exhausted */
- WMI_TWT_BTWT_REMOVE_STA_STATUS_NO_ACK, /* peer STA did not ACK the request/response frame */
- WMI_TWT_BTWT_REMOVE_STA_STATUS_UNKNOWN_ERROR, /* failed with an unknown reason */
- } WMI_TWT_BTWT_REMOVE_STA_STATUS_T;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals wmi_twt_btwt_remove_sta_complete_event_fixed_param */
- A_UINT32 vdev_id; /* VDEV identifier */
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- A_UINT32 dialog_id; /* TWT dialog ID */
- A_UINT32 status; /* refer to WMI_TWT_BTWT_REMOVE_STA_STATUS_T */
- } wmi_twt_btwt_remove_sta_complete_event_fixed_param;
- typedef enum {
- WMI_DMA_RING_CONFIG_MODULE_SPECTRAL,
- WMI_DMA_RING_CONFIG_MODULE_RTT,
- WMI_DMA_RING_CONFIG_MODULE_CV_UPLOAD,
- WMI_DMA_RING_CONFIG_MODULE_WIFI_RADAR,
- } WMI_DMA_RING_SUPPORTED_MODULE;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_DMA_RING_CAPABILITIES */
- A_UINT32 pdev_id;
- A_UINT32 mod_id; /* see WMI_DMA_RING_SUPPORTED_MODULE */
- A_UINT32 ring_elems_min; /* minimum spaces in the DMA ring for this pdev */
- A_UINT32 min_buf_size; /* minimum size in bytes of each buffer in the DMA ring */
- A_UINT32 min_buf_align; /* minimum alignment in bytes of each buffer in the DMA ring */
- /**************************************************************************
- * DON'T ADD ANY FURTHER FIELDS HERE -
- * It would cause the size of the READY_EXT message within some targets
- * to exceed the size of the buffer used for the message.
- **************************************************************************/
- } WMI_DMA_RING_CAPABILITIES;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUCT_ wmi_chan_rf_characterization_info */
- /**
- * [7:0] : channel metric - 0 = unusable, 1 = worst, 100 = best
- * [11:8] : channel BW - This bit-field uses values compatible with
- * enum definitions used internally within the target's
- * halphy code. This bit field uses wmi_channel_width.
- * [15:12]: Reserved
- * [31:16]: Frequency - Center frequency of the channel for which
- * the RF characterisation info applies (MHz)
- */
- A_UINT32 freq_info;
- /**************************************************************************
- * DON'T ADD ANY FURTHER FIELDS HERE -
- * It would cause the size of the READY_EXT message within some targets
- * to exceed the size of the buffer used for the message.
- **************************************************************************/
- } WMI_CHAN_RF_CHARACTERIZATION_INFO;
- #define WMI_CHAN_RF_CHARACTERIZATION_FREQ_INFO_CHAN_METRIC 0x000000ff
- #define WMI_CHAN_RF_CHARACTERIZATION_FREQ_INFO_CHAN_METRIC_S 0
- #define WMI_CHAN_RF_CHARACTERIZATION_FREQ_INFO_BW 0x00000f00
- #define WMI_CHAN_RF_CHARACTERIZATION_FREQ_INFO_BW_S 8
- #define WMI_CHAN_RF_CHARACTERIZATION_FREQ_INFO_FREQ 0xffff0000
- #define WMI_CHAN_RF_CHARACTERIZATION_FREQ_INFO_FREQ_S 16
- #define WMI_CHAN_RF_CHARACTERIZATION_CHAN_METRIC_SET(dword,val) \
- WMI_F_RMW((dword)->freq_info,(val), \
- WMI_CHAN_RF_CHARACTERIZATION_FREQ_INFO_CHAN_METRIC)
- #define WMI_CHAN_RF_CHARACTERIZATION_CHAN_METRIC_GET(dword) \
- WMI_F_MS((dword)->freq_info,WMI_CHAN_RF_CHARACTERIZATION_FREQ_INFO_CHAN_METRIC)
- #define WMI_CHAN_RF_CHARACTERIZATION_BW_SET(dword, val) \
- WMI_F_RMW((dword)->freq_info,(val), \
- WMI_CHAN_RF_CHARACTERIZATION_FREQ_INFO_BW)
- #define WMI_CHAN_RF_CHARACTERIZATION_BW_GET(dword) \
- WMI_F_MS((dword)->freq_info,WMI_CHAN_RF_CHARACTERIZATION_FREQ_INFO_BW)
- #define WMI_CHAN_RF_CHARACTERIZATION_FREQ_SET(dword, val) \
- WMI_F_RMW((dword)->freq_info,(val), \
- WMI_CHAN_RF_CHARACTERIZATION_FREQ_INFO_FREQ)
- #define WMI_CHAN_RF_CHARACTERIZATION_FREQ_GET(dword) \
- WMI_F_MS((dword)->freq_info,WMI_CHAN_RF_CHARACTERIZATION_FREQ_INFO_FREQ)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_COEX_FIX_CHANNEL_CAPABILITIES */
- /**************************************************************************
- * 1: SAP fix channel has higher priority than ACS
- * 0: SAP fix channel has lower priority than ACS
- **************************************************************************/
- A_UINT32 fix_channel_priority;
- } WMI_COEX_FIX_CHANNEL_CAPABILITIES;
- #define WMI_DMA_RING_PADDR_LO_S 0
- #define WMI_DMA_RING_PADDR_LO 0xffffffff
- #define WMI_DMA_RING_BASE_PADDR_LO_GET(dword) WMI_F_MS(dword, WMI_DMA_RING_PADDR_LO)
- #define WMI_DMA_RING_BASE_PADDR_LO_SET(dword, val) WMI_F_RMW(dword, val, WMI_DMA_RING_PADDR_LO)
- #define WMI_DMA_RING_HEAD_IDX_PADDR_LO_GET(dword) WMI_F_MS(dword, WMI_DMA_RING_PADDR_LO)
- #define WMI_DMA_RING_HEAD_IDX_PADDR_LO_SET(dword, val) WMI_F_RMW(dword, val, WMI_DMA_RING_PADDR_LO)
- #define WMI_DMA_RING_TAIL_IDX_PADDR_LO_GET(dword) WMI_F_MS(dword, WMI_DMA_RING_PADDR_LO)
- #define WMI_DMA_RING_TAIL_IDX_PADDR_LO_SET(dword, val) WMI_F_RMW(dword, val, WMI_DMA_RING_PADDR_LO)
- #define WMI_DMA_RING_PADDR_HI_S 0
- #define WMI_DMA_RING_PADDR_HI 0xffff
- #define WMI_DMA_RING_BASE_PADDR_HI_GET(dword) WMI_F_MS(dword, WMI_DMA_RING_PADDR_HI)
- #define WMI_DMA_RING_BASE_PADDR_HI_SET(dword, val) WMI_F_RMW(dword, val, WMI_DMA_RING_PADDR_HI)
- #define WMI_DMA_RING_HEAD_IDX_PADDR_HI_GET(dword) WMI_F_MS(dword, WMI_DMA_RING_PADDR_HI)
- #define WMI_DMA_RING_HEAD_IDX_PADDR_HI_SET(dword, val) WMI_F_RMW(dword, val, WMI_DMA_RING_PADDR_HI)
- #define WMI_DMA_RING_TAIL_IDX_PADDR_HI_GET(dword) WMI_F_MS(dword, WMI_DMA_RING_PADDR_HI)
- #define WMI_DMA_RING_TAIL_IDX_PADDR_HI_SET(dword, val) WMI_F_RMW(dword, val, WMI_DMA_RING_PADDR_HI)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_dma_ring_cfg_req_fixed_param */
- A_UINT32 pdev_id;
- A_UINT32 mod_id; /* see WMI_DMA_RING_SUPPORTED_MODULE */
- /**
- * Bits 31:0: base address of ring [31:0]
- */
- A_UINT32 base_paddr_lo;
- /**
- * Bits 15:0: base address of ring [47:32]
- * Bits 31:16: reserved (set to 0x0)
- */
- A_UINT32 base_paddr_hi;
- /**
- * Bits 31:0: address of head index [31:0]
- */
- A_UINT32 head_idx_paddr_lo;
- /**
- * Bits 15:0: address of head index [47:32]
- * Bits 31:16: reserved (set to 0x0)
- */
- A_UINT32 head_idx_paddr_hi;
- /**
- * Bits 31:0: address of tail index [31:0]
- */
- A_UINT32 tail_idx_paddr_lo;
- /**
- * Bits 15:0: address of tail index [47:32]
- * Bits 31:16: reserved (set to 0x0)
- */
- A_UINT32 tail_idx_paddr_hi;
- A_UINT32 num_elems; /** Number of elems in the ring */
- A_UINT32 buf_size; /** size of allocated buffer in bytes */
- A_UINT32 num_resp_per_event; /** Number of wmi_dma_buf_release_entry packed together */
- /**
- * This parameter specifies the timeout in milliseconds.
- * Target should timeout and send whatever resp it has if this time expires.
- */
- A_UINT32 event_timeout_ms;
- } wmi_dma_ring_cfg_req_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_dma_ring_cfg_rsp_fixed_param */
- A_UINT32 pdev_id;
- A_UINT32 mod_id; /* see WMI_DMA_RING_SUPPORTED_MODULE */
- A_UINT32 cfg_status; /** Configuration status; see A_STATUS */
- } wmi_dma_ring_cfg_rsp_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_dma_buf_release_fixed_param */
- A_UINT32 pdev_id; /** ID of pdev whose DMA ring produced the data */
- A_UINT32 mod_id; /* see WMI_DMA_RING_SUPPORTED_MODULE */
- A_UINT32 num_buf_release_entry;
- A_UINT32 num_meta_data_entry;
- /* This TLV is followed by another TLV of array of structs.
- * wmi_dma_buf_release_entry entries[num_buf_release_entry];
- * wmi_dma_buf_release_spectral_meta_data meta_datat[num_meta_data_entry];
- * wmi_dma_buf_release_cv_upload_meta_data cv_meta_data[num_meta_data_entry]
- * wmi_dma_buf_release_cqi_upload_meta_data
- * cqi_meta_data[num_meta_data_entry]
- * wmi_dma_buf_release_wifi_radar_meta_data
- * wifi_radar_meta_data[num_meta_data_entry]
- */
- } wmi_dma_buf_release_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_dma_buf_release_entry */
- /**
- * Bits 31:0: address of data [31:0]
- */
- A_UINT32 paddr_lo;
- /**
- * Bits 11:0: address of data [43:32]
- * Bits 31:12: host context data [19:0]
- */
- A_UINT32 paddr_hi;
- } wmi_dma_buf_release_entry;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_dma_buf_release_spectral_meta_data */
- /**
- * meta data information.
- * Host uses the noise floor values as one of the major parameter
- * to classify the spectral data.
- * This information will not be provided by ucode unlike the fft reports
- * which gets DMAed to DDR buffer.
- * Hence sending the NF values in dBm units as meta data information.
- */
- A_INT32 noise_floor[WMI_MAX_CHAINS];
- /**
- * The time taken by target in micro seconds to complete the reset routine
- * and re-initiate the spectral scan.
- * If the delay is 0, the WAR to bookkeep the timestamp won't be exercised
- * in HOST.
- */
- A_UINT32 reset_delay;
- /**
- * Current center freq1 (MHz units)
- */
- A_UINT32 freq1;
- /**
- * Current center freq2 (MHz units)
- */
- A_UINT32 freq2;
- /**
- * Channel Width (MHz units)
- */
- A_UINT32 ch_width;
- } wmi_dma_buf_release_spectral_meta_data;
- typedef enum {
- NO_SCALING = 0, /* No bin scaling*/
- /**
- * scaled_bin_mag = bin_mag *
- * sqrt(10^(max(legacy_max_gain - default_agc_max_gain + low_level_offset - RSSI_corr,
- * (agc_total_gain_db < default_agc_max_gain) * high_level_offset)/10)) *
- * 2^(DET{0,1,2}_SPECTRAL_SCAN_BIN_SCALE - legacy_spectral_scan_bin_scale)
- */
- AGC_GAIN_RSSI_CORR_BASED = 1,
- } WMI_SPECTRAL_SCALING_FORMULA_ID;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_spectral_bin_scaling_params */
- A_UINT32 pdev_id; /* ID of pdev to which the scaling parameters are to be applied */
- WMI_SPECTRAL_SCALING_FORMULA_ID formula_id; /* Represets the formula to be used */
- A_UINT32 low_level_offset; /* low level offset for fine tuning the scaling factor based on RSSI and AGC gain */
- A_UINT32 high_level_offset; /* high level offset for fine tuning the scaling factor based on RSSI and AGC gain */
- A_UINT32 rssi_thr; /* RSSI threshold to be used to adjust the inband power of the given spectral report */
- A_UINT32 default_agc_max_gain;/* DEFAULT AGC MAX GAIN used. Fetched from register RXTD_RADAR_SBS_CTRL_1_L bits20:13 */
- /**************************************************************************
- * DON'T ADD ANY FURTHER FIELDS HERE -
- * It would cause the size of the READY_EXT message within some targets
- * to exceed the size of the buffer used for the message.
- **************************************************************************/
- } wmi_spectral_bin_scaling_params;
- #define WMI_SPECTRAL_BW_CAPS_GET(bw_caps, index) WMI_GET_BITS(bw_caps, index, 1)
- #define WMI_SPECTRAL_BW_CAPS_SET(bw_caps, index, value) WMI_SET_BITS(bw_caps, index, 1, value)
- #define WMI_SPECTRAL_FFT_SIZE_CAPS_GET(fft_size_caps, index) WMI_GET_BITS(ft_size_caps, index, 1)
- #define WMI_SPECTRAL_FFT_SIZE_CAPS_SET(fft_size_caps, index, value) WMI_SET_BITS(fft_size_caps, index, 1, value)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_spectral_scan_bw_capabilities */
- A_UINT32 pdev_id; /* ID of pdev for which the bandwidth capabilities are advertised */
- A_UINT32 sscan_mode; /* scan mode to denote whether this is a normal/agile scan (refer to wmi_spectral_scan_mode) */
- A_UINT32 operating_bw; /* Operating bandwidth which supports the bandwidth capabilities, as per enum wmi_channel_width */
- union {
- struct { /* To indicate the scan bandwidths support for the operating bandwidth and scan mode */
- A_UINT32 supports_sscan_bw_20:1,
- supports_sscan_bw_40:1,
- supports_sscan_bw_80:1,
- supports_sscan_bw_160:1,
- supports_sscan_bw_80p80:1,
- supports_sscan_bw_320:1,
- reserved:26;
- };
- A_UINT32 supported_flags;
- };
- } wmi_spectral_scan_bw_capabilities;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_spectral_fft_size_capabilities */
- A_UINT32 pdev_id; /* ID of pdev for which the bandwidth capabilities are advertised */
- A_UINT32 sscan_bw; /* sscan bandwidth, as per enum wmi_channel_width */
- union {
- struct { /* To indicate the scan FFT sizes supported in the sscan bandwidth */
- A_UINT32 supports_fft_size_1:1,
- supports_fft_size_2:1,
- supports_fft_size_3:1,
- supports_fft_size_4:1,
- supports_fft_size_5:1,
- supports_fft_size_6:1,
- supports_fft_size_7:1,
- supports_fft_size_8:1,
- supports_fft_size_9:1,
- supports_fft_size_10:1,
- supports_fft_size_11:1,
- reserved:21;
- };
- A_UINT32 supported_flags;
- };
- } wmi_spectral_fft_size_capabilities;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_ctl_failsafe_event_params */
- A_UINT32 pdev_id; /* ID of pdev to which ctl failsafe status is sent */
- A_UINT32 ctl_FailsafeStatus; /* To indicate if Failsafe value is imposed on CTL. 0- Success, 1- Failsafe imposed */
- } wmi_pdev_ctl_failsafe_check_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_runtime_dpd_recal_cmd_fixed_param */
- A_UINT32 enable; /* Enable/disable */
- /* Thermal Thresholds,
- * DPD recalibration will be triggered, when current temperature is
- * either greater than (tmpt_base_c + dlt_tmpt_c_h),
- * or less than (tmpt_base_c + dlt_tmpt_c_l).
- * Here tmpt_base_c is the temperature in centigrade when first run dpd calibration.
- */
- A_UINT32 dlt_tmpt_c_h;
- A_UINT32 dlt_tmpt_c_l;
- /* cooling_time_ms
- * The time (in milliseconds) expected to be needed for the unit
- * to cool from dlt_tmpt_c_h to dlt_tmpt_c_l.
- */
- A_UINT32 cooling_time_ms;
- /* Max duration for dpd re-cal. Unit: ms */
- A_UINT32 dpd_dur_max_ms;
- } wmi_runtime_dpd_recal_cmd_fixed_param;
- typedef enum {
- WMI_ROAM_TRIGGER_REASON_NONE = 0,
- WMI_ROAM_TRIGGER_REASON_PER,
- WMI_ROAM_TRIGGER_REASON_BMISS,
- WMI_ROAM_TRIGGER_REASON_LOW_RSSI,
- WMI_ROAM_TRIGGER_REASON_HIGH_RSSI,
- WMI_ROAM_TRIGGER_REASON_PERIODIC,
- WMI_ROAM_TRIGGER_REASON_MAWC,
- WMI_ROAM_TRIGGER_REASON_DENSE,
- WMI_ROAM_TRIGGER_REASON_BACKGROUND,
- WMI_ROAM_TRIGGER_REASON_FORCED,
- WMI_ROAM_TRIGGER_REASON_BTM,
- WMI_ROAM_TRIGGER_REASON_UNIT_TEST,
- WMI_ROAM_TRIGGER_REASON_BSS_LOAD,
- WMI_ROAM_TRIGGER_REASON_DEAUTH,
- WMI_ROAM_TRIGGER_REASON_IDLE,
- /*
- * NOTE: don't add any more ROAM_TRIGGER_REASON values here.
- * There are checks in the FW that require the value of
- * WMI_ROAM_TRIGGER_REASON_MAX to be < 16.
- * Add new ROAM_TRIGGER_REASON values below, inside the
- * WMI_ROAM_TRIGGER_EXT_REASON_ID enum.
- */
- WMI_ROAM_TRIGGER_REASON_MAX,
- } WMI_ROAM_TRIGGER_REASON_ID;
- /*
- * The WMI_ROAM_TRIGGER_REASON_ID enum cannot be expanded with new values,
- * due to checks in the FW that require WMI_ROAM_TRIGGER_REASON_MAX to be
- * less than 16.
- * The WMI_ROAM_TRIGGER_EXT_REASON_ID enum is used to hold further roam
- * trigger reasons.
- */
- typedef enum {
- WMI_ROAM_TRIGGER_REASON_STA_KICKOUT = WMI_ROAM_TRIGGER_REASON_MAX,
- WMI_ROAM_TRIGGER_REASON_ESS_RSSI,
- WMI_ROAM_TRIGGER_REASON_WTC_BTM,
- WMI_ROAM_TRIGGER_REASON_PMK_TIMEOUT,
- WMI_ROAM_TRIGGER_REASON_BTC,
- WMI_ROAM_TRIGGER_EXT_REASON_MAX
- } WMI_ROAM_TRIGGER_EXT_REASON_ID;
- /* value for DENSE roam trigger */
- #define WMI_RX_TRAFFIC_ABOVE_THRESHOLD 0x1
- #define WMI_TX_TRAFFIC_ABOVE_THRESHOLD 0x2
- typedef struct {
- A_UINT32 trigger_id; /* id from WMI_ROAM_TRIGGER_REASON_ID */
- /* interpretation of trigger value is as follows, for different trigger IDs
- * ID = PER -> value = PER percentage
- * ID = LOW_RSSI -> value = RSSI in dB wrt noise floor,
- * ID = HIGH_RSSI -> value = RSSI in dB wrt to noise floor,
- * ID = DENSE -> value = specification if it is tx or rx traffic threshold,
- * (see WMI_[RX,TX]_TRAFFIC_ABOVE_THRESHOLD)
- * ID = PERIODIC -> value = periodicity in ms
- *
- * for other IDs trigger_value would be 0 (invalid)
- */
- A_UINT32 trigger_value;
- } wmi_roam_scan_trigger_reason;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_request_roam_scan_stats_cmd_fixed_param */
- A_UINT32 vdev_id;
- } wmi_request_roam_scan_stats_cmd_fixed_param;
- /** BSS load configuration parameters for roam trigger */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_bss_load_cmd_fixed_param */
- A_UINT32 vdev_id;
- /** Minimum number of beacons to be consider for calculating average AP BSS load within time monitor_time_window */
- A_UINT32 beacons_min_count;
- /** Monitor time window in seconds */
- A_UINT32 monitor_time_window;
- /** BSS load threshold after which roam scan should trigger */
- A_UINT32 bss_load_threshold;
- /** rssi_2g_threshold
- * If connected AP is in 2.4 GHz, then consider bss load roam triggered
- * only if load % > bss_load_threshold && connected AP RSSI is worse
- * than rssi_2g_threshold.
- */
- A_INT32 rssi_2g_threshold; /* units = dBm */
- /** rssi_5g_threshold
- * If connected AP is in 5 GHz, then consider bss load roam triggered
- * only if load % > bss_load_threshold && connected AP RSSI is worse
- * than rssi_5g_threshold.
- */
- A_INT32 rssi_5g_threshold; /* units = dBm */
- /** rssi_6g_threshold
- * If connected AP is in 6 GHz, then consider bss load roam triggered
- * only if load % > bss_load_threshold && connected AP RSSI is worse
- * than rssi_6g_threshold. If rssi_6g_threshold is 0, it should be ignored.
- */
- A_INT32 rssi_6g_threshold; /* units = dBm */
- /** bss_load_alpha_pct
- * This parameter is used for updating the exponential average of the
- * BSS load:
- * new avg BSS load =
- * new BSS load measurement * alpha / 100 +
- * old avg BSS load * (100 - alpha) / 100
- * This parameter uses percent units. E.g. if bss_load_alpha_pct == 10,
- * the new average will be the sum of 10% of the new measurement + 90% of
- * the old average.
- */
- A_UINT32 bss_load_alpha_pct;
- } wmi_roam_bss_load_config_cmd_fixed_param;
- /** Deauth roam trigger parameters */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_deauth_config_cmd_fixed_param */
- A_UINT32 vdev_id;
- /* 1-Enable, 0-Disable */
- A_UINT32 enable;
- } wmi_roam_deauth_config_cmd_fixed_param;
- /** IDLE roam trigger parameters */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_idle_config_cmd_fixed_param */
- A_UINT32 vdev_id;
- /* 1: Enable, 0: Disable */
- A_UINT32 enable;
- /* Connected AP band. 0: Any Band, 1: 2.4 GHz Band, 2: 5 GHz Band */
- A_UINT32 band;
- /* Trigger Idle roaming only if RSSI change of connected AP is within rssi_delta during idle time */
- A_UINT32 rssi_delta; /* units = dB */
- /* Trigger idle roam only if connected RSSI is better than min_rssi */
- A_INT32 min_rssi; /* units = dBm */
- /* Inactive/Idle time duration
- * After screen is OFF (or whatever condition is suitable in a given
- * system as an indication that the system is likely idle)
- * and if below conditions are met then idle roaming will be triggered.
- * 1. Connected AP band is matching with band value configured
- * 2. No TX/RX data for more than idle_time configured
- * or TX/RX data packets count is less than data_packet_count
- * during idle_time
- * 3. Connected AP RSSI change is not more than rssi_delta
- * 4. Connected AP RSSI is better than min_rssi.
- * The purpose of this trigger for idle scan is to issue the scan
- * even if (moreover, particularly if) the connection to the
- * existing AP is still good, to keep the STA from getting locked
- * onto the current good AP and thus missing out on an available
- * even better AP. This min_rssi threshold can be used to adjust
- * the connection quality level at which the STA considers doing an
- * idle scan.
- */
- A_UINT32 idle_time; /* units = seconds */
- /* Maximum allowed data packets count during idle time */
- A_UINT32 data_packet_count;
- } wmi_roam_idle_config_cmd_fixed_param;
- /** trigger to start/stop monitoring if system is idle command parameters */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_idle_trigger_monitor_cmd_fixed_param */
- /* idle_trigger_monitor values are from WMI_IDLE_TRIGGER_MONITOR_ID */
- A_UINT32 idle_trigger_monitor;
- } wmi_idle_trigger_monitor_cmd_fixed_param;
- typedef enum {
- WMI_IDLE_TRIGGER_MONITOR_NONE = 0, /* no-op */
- /* IDLE_TRIGGER_MONITOR_ON
- * The host's screen has turned off (or some other event indicating that
- * the system is likely idle) -
- * start monitoring to check if the system is idle.
- */
- WMI_IDLE_TRIGGER_MONITOR_ON,
- /* IDLE_TRIGGER_MONITOR_OFF
- * The host's screen has turned on (or some other event indicating that
- * the system is not idle)
- */
- WMI_IDLE_TRIGGER_MONITOR_OFF,
- } WMI_SCREEN_STATUS_NOTIFY_ID;
- typedef struct {
- /** TLV tag and len; tag equals wmi_pdev_dsm_filter_fixed_param */
- A_UINT32 tlv_header;
- /**
- * TLV (tag length value) parameter's following pdev_dsm_filter_cmd are,
- *
- * wmi_pdev_bssid_disallow_list_config_param bssid_disallow_list[];
- * i.e array containing all disallow AP filter lists including
- * the new DSM lists (avoidlist / driver_blacklist) and existing
- * lists (supplicant_blacklist / rssi_rejectlist etc.)
- */
- } wmi_pdev_dsm_filter_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_bssid_disallow_list_config_param */
- A_UINT32 tlv_header;
- /** bssid type i.e whether bssid falls in avoid list or driver_blacklist etc.
- see WMI_BSSID_DISALLOW_LIST_TYPE **/
- A_UINT32 bssid_type;
- /** mac address of disallow BSSID */
- wmi_mac_addr bssid;
- /** Disallow AP for certain duration, in units of milliseconds */
- A_UINT32 remaining_disallow_duration;
- /** AP will be allowed for candidate, when AP RSSI better than expected RSSI units in dBm */
- A_INT32 expected_rssi;
- /* Blacklist reason from WMI_BLACKLIST_REASON_ID */
- A_UINT32 reason;
- /* Source of adding AP to BL from WMI_BLACKLIST_SOURCE_ID */
- A_UINT32 source;
- /*
- * timestamp is the absolute time w.r.t host timer which is synchronized
- * between the host and target.
- * This timestamp indicates the time when AP added to blacklist.
- */
- A_UINT32 timestamp;
- /* Original timeout value in milli seconds when AP added to BL */
- A_UINT32 original_timeout;
- /*
- * The disallow link ID bitmap indicates links which should not be allowed
- * for any assoc or partner link combination.
- * If all links for MLD AP are disallowed, then the value shall be
- * 0xffffffff.
- */
- A_UINT32 disallow_linkid_bitmap;
- /* MLD address of AP */
- wmi_mac_addr mld;
- /* List of link combinations for which association is failed */
- A_UINT32 ml_failed_links_combo_bitmap[WMI_MAX_FAILED_LINK_COMBO_COUNT];
- /* Failed link combo count filled in ml_failed_links_combo_bitmap[] */
- A_UINT32 ml_failed_link_combo_count;
- } wmi_pdev_bssid_disallow_list_config_param;
- typedef enum {
- /* USER_SPACE_BLACK_LIST
- * Black Listed AP's by host's user space
- */
- WMI_BSSID_DISALLOW_USER_SPACE_BLACK_LIST = 1,
- /* DRIVER_BLACK_LIST
- * Black Listed AP's by host driver
- * used for data stall migitation
- */
- WMI_BSSID_DISALLOW_DRIVER_BLACK_LIST,
- /* USER_SPACE_AVOID_LIST
- * Avoid List AP's by host's user space
- * used for data stall migitation
- */
- WMI_BSSID_DISALLOW_USER_SPACE_AVOID_LIST,
- /* DRIVER_AVOID_LIST
- * Avoid List AP's by host driver
- * used for data stall migitation
- */
- WMI_BSSID_DISALLOW_DRIVER_AVOID_LIST,
- /* RSSI_REJECT_LIST
- * OCE AP's
- */
- WMI_BSSID_DISALLOW_RSSI_REJECT_LIST,
- } WMI_BSSID_DISALLOW_LIST_TYPE;
- /* WLAN_PDEV_MAX_NUM_BSSID_DISALLOW_LIST:
- * Maximum number of BSSID disallow entries which host is allowed to send
- * to firmware within the WMI_PDEV_DSM_FILTER_CMDID message.
- */
- #define WLAN_PDEV_MAX_NUM_BSSID_DISALLOW_LIST 28
- /** Roam Pre-Authentication completion status */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_preauth_status_cmd_fixed_param */
- A_UINT32 vdev_id;
- /* preauth_status, 0 - Success, Non Zero - Failure
- * Refer to IEEE Std 802.11-2016 Table 9-46 for meaning of status values.
- */
- A_UINT32 preauth_status;
- /* AP BSSID for which pre-authentication is completed */
- wmi_mac_addr candidate_ap_bssid;
- /**
- * This fixed_param TLV is followed by the below TLVs:
- *
- * PMKID computed after successful pre-authentication. This is valid only if preauth_status is success
- * A_UINT8 pmkid[];
- *
- * PMK computed after successful pre-authentication. This is valid only if preauth_status is success
- * A_UINT8 pmk[];
- */
- } wmi_roam_preauth_status_cmd_fixed_param;
- /** Roam Pre-Authentication start event */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_preauth_start_event_fixed_param */
- A_UINT32 vdev_id;
- /* AP BSSID for which host needs to start pre-authentication */
- wmi_mac_addr candidate_ap_bssid;
- /*
- * Transmit address for which host needs to start pre-authentication
- * in MLO case. In non MLO cases, transmit_addr will be filled with 0x0.
- */
- wmi_mac_addr transmit_addr;
- /* AKM suite type (as defined in the IEEE 802.11 spec) */
- A_UINT32 akm_suite_type;
- } wmi_roam_preauth_start_event_fixed_param;
- typedef struct {
- /*
- * The timestamp is in units of ticks of a 19.2MHz clock.
- * The timestamp is taken at roam scan start.
- */
- A_UINT32 lower32bit;
- A_UINT32 upper32bit;
- } wmi_roaming_timestamp;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_scan_stats_event_fixed_param */
- A_UINT32 vdev_id;
- /* number of roam scans */
- A_UINT32 num_roam_scans;
- /* This TLV is followed by TLV's:
- * A_UINT32 client_id[num_roam_scans]; based on WMI_SCAN_CLIENT_ID
- * wmi_roaming_timestamp timestamp[num_roam_scans]; clock ticks at the time of scan start
- * A_UINT32 num_channels[num_roam_scans]; number of channels that are scanned
- * A_UINT32 chan_info[]; channel frequencies (MHz) in each scan
- * The num_channels[] elements specify how many elements there are
- * within chan_info[] for each scan.
- * For example, if num_channels = [2, 3] then chan_info will have 5
- * elements, with the first 2 elements from the first scan, and
- * the last 3 elements from the second scan.
- * wmi_mac_addr old_bssid[num_roam_scans]; bssid we are connected to at the time of roaming
- * A_UINT32 is_roaming_success[num_roam_scans]; value is 1 if roaming is successful, 0 if roaming failed
- * wmi_mac_addr new_bssid[num_roam_scans]; bssid after roaming
- * A_UINT32 num_of_roam_candidates[num_roam_scans]; number of candidates found in each roam scan
- * roam_scan_trigger_reason roam_reason[num_roam_scans]; reason for each roam scan
- * wmi_mac_addr bssid[]; bssids of candidates in each roam scan
- * The num_of_roam_candidates[] elements specify how many elements
- * there are within bssid[] for each scan.
- * For example, if num_of_roam_candidates = [2, 3] then bssid will
- * have 5 elements, with the first 2 elements from the first scan,
- * and the last 3 elements from the second scan.
- * A_UINT32 score[]; score of candidates in each roam scan
- * The num_of_roam_candidates[] elements specify how many elements
- * there are within score[] for each scan.
- * For example, if num_of_roam_candidates = [2, 3] then score will
- * have 5 elements, with the first 2 elements from the first scan,
- * and the last 3 elements from the second scan.
- * A_UINT32 channel[]; channel frequency (MHz) of candidates in each roam scan
- * The num_of_roam_candidates[] elements specify how many elements
- * there are within channel[] for each scan.
- * For example, if num_of_roam_candidates = [2, 3] then channel will
- * have 5 elements, with the first 2 elements from the first scan,
- * and the last 3 elements from the second scan.
- * A_UINT32 rssi[]; RSSI in dB w.r.t. noise floor of candidates
- * in each roam scan.
- * The num_of_roam_candidates[] elements specify how many elements
- * there are within rssi[] for each scan.
- * For example, if num_of_roam_candidates = [2, 3] then rssi will
- * have 5 elements, with the first 2 elements from the first scan,
- * and the last 3 elements from the second scan.
- */
- } wmi_roam_scan_stats_event_fixed_param;
- typedef enum {
- WMI_ROAM_TRIGGER_SUB_REASON_PERIODIC_TIMER = 1, /* Roam scan triggered due to periodic timer expiry */
- WMI_ROAM_TRIGGER_SUB_REASON_INACTIVITY_TIMER, /* Roam scan triggered due to inactivity detection */
- /* INACTIVITY_TIMER_LOW_RSSI - alias for INACTIVITY_TIMER */
- WMI_ROAM_TRIGGER_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI =
- WMI_ROAM_TRIGGER_SUB_REASON_INACTIVITY_TIMER,
- WMI_ROAM_TRIGGER_SUB_REASON_BTM_DI_TIMER, /* Roam scan triggered due to BTM Disassoc Imminent timeout */
- WMI_ROAM_TRIGGER_SUB_REASON_FULL_SCAN, /* Roam scan triggered due to partial scan failure */
- WMI_ROAM_TRIGGER_SUB_REASON_LOW_RSSI_PERIODIC, /* Roam scan triggered due to Low RSSI periodic timer */
- WMI_ROAM_TRIGGER_SUB_REASON_CU_PERIODIC, /* Roam scan triggered due to CU periodic timer */
- /* PERIODIC_TIMER_AFTER_INACTIVITY:
- * Roam scan triggered due to periodic timer after device in
- * inactivity state.
- * This timer is enabled/used for roaming in a vendor-specific manner.
- */
- WMI_ROAM_TRIGGER_SUB_REASCON_PERIODIC_TIMER_AFTER_INACTIVITY,
- WMI_ROAM_TRIGGER_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY =
- WMI_ROAM_TRIGGER_SUB_REASCON_PERIODIC_TIMER_AFTER_INACTIVITY,
- /*
- * PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI - alias for
- * PERIODIC_TIMER_AFTER_INACTIVITY
- */
- WMI_ROAM_TRIGGER_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI =
- WMI_ROAM_TRIGGER_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY,
- WMI_ROAM_TRIGGER_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU,
- WMI_ROAM_TRIGGER_SUB_REASON_INACTIVITY_TIMER_CU,
- /* MLD_EXTRA_PARTIAL_SCAN:
- * FW triggers extra partial scan when all ml links are not found
- * during first partial scan.
- */
- WMI_ROAM_TRIGGER_SUB_REASON_MLD_EXTRA_PARTIAL_SCAN,
- } WMI_ROAM_TRIGGER_SUB_REASON_ID;
- typedef enum wmi_roam_invoke_status_error {
- WMI_ROAM_INVOKE_STATUS_SUCCESS = 0,
- WMI_ROAM_INVOKE_STATUS_VDEV_INVALID = 0x11, /* Invalid VDEV */
- WMI_ROAM_INVOKE_STATUS_BSS_INVALID, /* Invalid VDEV BSS */
- WMI_ROAM_INVOKE_STATUS_VDEV_DOWN, /* VDEV is not UP */
- WMI_ROAM_INVOKE_STATUS_ROAM_HANDLE_INVALID, /* VDEV ROAM handle is invalid */
- WMI_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE, /* Roam offload is not enabled */
- WMI_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID, /* Connected AP profile SSID length is zero */
- WMI_ROAM_INVOKE_STATUS_HO_DISALLOW, /* Already FW internal roaming is in progress */
- WMI_ROAM_INVOKE_STATUS_ALREADY_RUNNING, /* Roam Invoke already in progress either from internal FW BTM request or from host*/
- WMI_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP, /* Roam HO is not triggered due to non roamable AP */
- WMI_ROAM_INVOKE_STATUS_HO_INTERNAL_FAIL, /* Candidate AP save failed */
- WMI_ROAM_INVOKE_STATUS_DISALLOW, /* Roam invoke trigger is not enabled */
- WMI_ROAM_INVOKE_STATUS_SCAN_FAIL, /* Scan start fail */
- WMI_ROAM_INVOKE_STATUS_START_HO_FAIL, /* Roam HO start fail */
- WMI_ROAM_INVOKE_STATUS_INVALID_PARAMS, /* Roam invoke params are invalid */
- WMI_ROAM_INVOKE_STATUS_INVALID_SCAN_MODE, /* Roam scan mode is invalid */
- WMI_ROAM_INVOKE_STATUS_NO_CAND_AP, /* No candidate AP found to roam to */
- WMI_ROAM_INVOKE_STATUS_HO_FAIL, /* handoff failed */
- } wmi_roam_invoke_status_error_t;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_trigger_reason_tlv_param */
- /*
- * timestamp is the absolute time w.r.t host timer which is synchronized
- * between the host and target.
- * This timestamp indicates the time when roam trigger happened.
- */
- A_UINT32 timestamp; /* Timestamp in milli seconds */
- /* trigger_reason:
- * Roam trigger reason from WMI_ROAM_TRIGGER_REASON_ID
- */
- A_UINT32 trigger_reason;
- /* trigger_sub_reason:
- * Reason for each roam scan from WMI_ROAM_TRIGGER_SUB_REASON_ID,
- * if multiple scans are triggered for a single roam trigger.
- */
- A_UINT32 trigger_sub_reason;
- A_UINT32 current_rssi; /* Connected AP RSSI in dBm */
- /* roam_rssi_threshold:
- * RSSI threshold value in dBm for low RSSI roam trigger.
- */
- A_UINT32 roam_rssi_threshold;
- A_UINT32 cu_load; /* Connected AP CU load percentage (0-100) */
- /* deauth_type:
- * 1 -> De-authentication
- * 2 -> Disassociation
- */
- A_UINT32 deauth_type;
- /* deauth_reason:
- * De-authentication or disassociation reason.
- * De-authentication / disassociation Values are enumerated in the
- * 802.11 spec.
- */
- A_UINT32 deauth_reason;
- /* btm_request_mode:
- * Mode Values are enumerated in the 802.11 spec.
- */
- A_UINT32 btm_request_mode;
- A_UINT32 disassoc_imminent_timer; /* in Milli seconds */
- /* validity_internal:
- * Preferred candidate list validity interval in Milli seconds.
- */
- A_UINT32 validity_internal;
- /* candidate_list_count:
- * Number of preferred candidates from BTM request.
- */
- A_UINT32 candidate_list_count;
- /* btm_response_status_code:
- * Response status Values are enumerated in the 802.11 spec.
- */
- A_UINT32 btm_response_status_code;
- union {
- /*
- * If a definition of these vendor-specific files has been provided,
- * use the vendor-specific names for these fields as an alias for
- */
- #ifdef WMI_ROAM_TRIGGER_REASON_VENDOR_SPECIFIC1
- WMI_ROAM_TRIGGER_REASON_VENDOR_SPECIFIC1;
- #endif
- struct {
- /* opaque space reservation for vendor-specific fields */
- A_UINT32 vendor_specific1[7];
- };
- };
- /* BTM BSS termination timeout value in milli seconds */
- A_UINT32 btm_bss_termination_timeout;
- /* BTM MBO assoc retry timeout value in milli seconds */
- A_UINT32 btm_mbo_assoc_retry_timeout;
- union {
- /*
- * If a definition of these vendor-specific files has been provided,
- * use the vendor-specific names for these fields as an alias for
- */
- #ifdef WMI_ROAM_TRIGGER_REASON_VENDOR_SPECIFIC2
- WMI_ROAM_TRIGGER_REASON_VENDOR_SPECIFIC2;
- #endif
- struct {
- /* opaque space reservation for vendor-specific fields */
- A_UINT32 vendor_specific2[4];
- };
- };
- /* btm_req_dialog_token: dialog token number in BTM request frame */
- A_UINT32 btm_req_dialog_token;
- /* data RSSI in dBm when abort to roam scan */
- A_INT32 data_rssi;
- /* data RSSI threshold in dBm */
- A_INT32 data_rssi_threshold;
- /* rx linkspeed status, 0:good linkspeed, 1:bad */
- A_UINT32 rx_linkspeed_status;
- } wmi_roam_trigger_reason;
- #define WMI_GET_BTCONNECT_STATUS(flags) WMI_GET_BITS(flags, 0, 1)
- #define WMI_SET_BTCONNECT_STATUS(flags, val) WMI_SET_BITS(flags, 0, 1, val)
- #define WMI_GET_MLO_BAND(flags) WMI_GET_BITS(flags, 1, 3)
- #define WMI_SET_MLO_BAND(flags, val) WMI_SET_BITS(flags, 1, 3, val)
- typedef enum wmi_mlo_band_info {
- WMI_MLO_BAND_NO_MLO = 0,
- WMI_MLO_BAND_2GHZ_MLO,
- WMI_MLO_BAND_5GHZ_MLO,
- WMI_MLO_BAND_6GHZ_MLO,
- } wmi_mlo_band_info_t;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_scan_info_tlv_param */
- /* roam_scan_type:
- * 0 -> Partial roam scan
- * 1 -> Full roam scan
- */
- A_UINT32 roam_scan_type;
- /* next_rssi_trigger_threshold:
- * Updated RSSI threshold value in dBm for next roam trigger.
- */
- A_UINT32 next_rssi_trigger_threshold;
- A_UINT32 roam_scan_channel_count; /* Number of channels scanned during roam scan */
- A_UINT32 roam_ap_count; /* Number of roamable APs */
- A_UINT32 frame_info_count; /* Number of frame info */
- /*
- * scan_complete_timestamp is the absolute time w.r.t host timer
- * which is synchronized between the host and target.
- * This timestamp indicates the time when roam scan finished.
- */
- A_UINT32 scan_complete_timestamp; /* milli second units */
- /*
- * Flags capturing factors involved during roam scan:
- * Bit 0 : Bluetooth connect status, 0(not connected) or 1(connected).
- * Bit 1-3 : Indicates which link triggered roaming in MLD cases.
- * The value is one of the wmi_mlo_band_info_t enum constants.
- * Refer to WMI_[GET,SET]_MLO_BAND macros.
- * Bit 4-31 : reserved for future use.
- */
- A_UINT32 flags;
- } wmi_roam_scan_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_scan_channel_info_tlv_param */
- A_UINT32 channel; /* Channel frequency in MHz */
- A_UINT32 ch_dwell_type; /* indicates channel dwell type:
- * 0 -> unspecified
- * 1 -> active
- * 2 -> passive
- */
- } wmi_roam_scan_channel_info;
- #define WMI_GET_AP_INFO_MLO_STATUS(flags) WMI_GET_BITS(flags, 0, 1)
- #define WMI_SET_AP_INFO_MLO_STATUS(flags, val) WMI_SET_BITS(flags, 0, 1, val)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_ap_info_tlv_param */
- /*
- * timestamp is the absolute time w.r.t host timer which is synchronized
- * between the host and target.
- * This timestamp indicates the time when candidate AP is found
- * during roam scan.
- */
- A_UINT32 timestamp; /* Timestamp in milli seconds */
- A_UINT32 candidate_type; /* 0 - Candidate AP, 1 - Connected AP */
- wmi_mac_addr bssid; /* AP MAC address */
- A_UINT32 channel; /* AP channel frequency in MHz */
- A_UINT32 rssi; /* AP current RSSI in dBm */
- A_UINT32 cu_load; /* AP current cu load percentage (0-100) */
- /*
- * The score fields below don't have a pre-determined range,
- * but use the sense that a higher score indicates a better
- * roam candidate.
- */
- A_UINT32 rssi_score; /* AP current RSSI score */
- A_UINT32 cu_score; /* AP current cu score */
- A_UINT32 total_score; /* AP total score */
- A_UINT32 etp; /* AP Estimated Throughput (ETP) value in mbps */
- /* Blacklist reason from WMI_BLACKLIST_REASON_ID */
- A_UINT32 bl_reason;
- /* Source of adding AP to BL from WMI_BLACKLIST_SOURCE_ID */
- A_UINT32 bl_source;
- /*
- * timestamp is the absolute time w.r.t host timer which is synchronized
- * between the host and target.
- * This timestamp indicates the time when AP added to blacklist.
- */
- A_UINT32 bl_timestamp;
- /* Original timeout value in milli seconds when AP added to BL */
- A_UINT32 bl_original_timeout;
- /* flags:
- * bit 0: MLD AP FLAG -> 1: MLD AP, 0: non-MLD AP
- * Refer to WMI_[GET,SET]_AP_INFO_MLO_STATUS macros.
- * bit 1-31: reserved.
- */
- A_UINT32 flags;
- wmi_mac_addr mld_addr;
- } wmi_roam_ap_info;
- typedef enum {
- /* Failures reasons for not triggering roaming */
- WMI_ROAM_FAIL_REASON_NO_SCAN_START = 1, /* Roam scan not started */
- WMI_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = WMI_ROAM_FAIL_REASON_NO_SCAN_START, /* Roam scan is not allowed to start */
- WMI_ROAM_FAIL_REASON_NO_AP_FOUND, /* No roamable APs found during roam scan */
- WMI_ROAM_FAIL_REASON_NO_CAND_AP_FOUND, /* No candidate APs found during roam scan */
- /* Failure reasons after roaming is triggered */
- WMI_ROAM_FAIL_REASON_HOST, /* Roam fail due to VDEV STOP issued from Host */
- WMI_ROAM_FAIL_REASON_AUTH_SEND, /* Unable to send auth request frame */
- WMI_ROAM_FAIL_REASON_AUTH_RECV, /* Received auth response with error status code */
- WMI_ROAM_FAIL_REASON_NO_AUTH_RESP, /* Not receiving auth response frame */
- WMI_ROAM_FAIL_REASON_REASSOC_SEND, /* Unable to send reassoc request frame */
- WMI_ROAM_FAIL_REASON_REASSOC_RECV, /* Received reassoc response with error status code */
- WMI_ROAM_FAIL_REASON_NO_REASSOC_RESP, /* Not receiving reassoc response frame */
- WMI_ROAM_FAIL_REASON_EAPOL_TIMEOUT, /* EAPOL TIMEOUT */
- WMI_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = WMI_ROAM_FAIL_REASON_EAPOL_TIMEOUT, /* EAPOL M1 is not received */
- WMI_ROAM_FAIL_REASON_MLME, /* MLME internal error */
- WMI_ROAM_FAIL_REASON_INTERNAL_ABORT, /* Internal abort */
- WMI_ROAM_FAIL_REASON_SCAN_START, /* Unable to start roam scan */
- WMI_ROAM_FAIL_REASON_AUTH_NO_ACK, /* No ACK is received for Auth request */
- WMI_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP, /* Auth request is dropped internally */
- WMI_ROAM_FAIL_REASON_REASSOC_NO_ACK, /* No ACK is received for Reassoc request */
- WMI_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP, /* Reassoc request is dropped internally */
- WMI_ROAM_FAIL_REASON_EAPOL_M2_SEND, /* Unable to send EAPOL M2 frame */
- WMI_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP, /* EAPOL M2 frame dropped internally */
- WMI_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK, /* No Ack is received for EAPOL M2 frame */
- WMI_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT, /* M3 is not received */
- WMI_ROAM_FAIL_REASON_EAPOL_M4_SEND, /* Unable to send EAPOL M4 frame */
- WMI_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP, /* EAPOL M4 frame dropped internally */
- WMI_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK, /* No Ack is received for EAPOL M4 frame */
- WMI_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BMISS, /* Roam scan is not started for Final Bmiss case */
- WMI_ROAM_FAIL_REASON_DISCONNECT, /* Deauth or Disassoc received from AP during roaming handoff */
- WMI_ROAM_FAIL_REASON_SYNC, /* when host wakes-up during roaming in-progress, abort current roaming if previous sync is pending */
- WMI_ROAM_FAIL_REASON_SAE_INVALID_PMKID, /* WPA3-SAE invalid PMKID */
- WMI_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT, /* WPA3-SAE pre-authentication timeout */
- WMI_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL, /* WPA3-SAE pre-authentication failed */
- WMI_ROAM_FAIL_REASON_UNABLE_TO_START_ROAM_HO, /* Roam HO is not started due to FW internal issue */
- /* Failure reasons to indicate no candidate and final bmiss event sent */
- WMI_ROAM_FAIL_REASON_NO_AP_FOUND_AND_FINAL_BMISS_SENT, /* No roamable APs found during roam scan and final bmiss event sent */
- WMI_ROAM_FAIL_REASON_NO_CAND_AP_FOUND_AND_FINAL_BMISS_SENT, /* No candidate APs found during roam scan and final bmiss event sent */
- WMI_ROAM_FAIL_REASON_CURR_AP_STILL_OK, /* Roam scan not happen due to current network condition is fine */
- WMI_ROAM_FAIL_REASON_SCAN_CANCEL, /* Roam scan canceled */
- WMI_ROAM_FAIL_REASON_MLD_EXTRA_SCAN_REQUIRED, /* Roaming is not triggered for current roam scan as extra scan is required to scan all MLD links */
- WMI_ROAM_FAIL_REASON_UNKNOWN = 255,
- } WMI_ROAM_FAIL_REASON_ID;
- typedef enum {
- WMI_ROAM_ABORT_UNSPECIFIED = 0, /* Target did not specify detailed reason for roam scan being aborted */
- WMI_ROAM_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1, /* Roam scan is not started due to high data RSSI during low-RSSI roaming */
- WMI_ROAM_ABORT_LOWRSSI_LINK_SPEED_GOOD, /* Roam scan is not started due to good link speed during low-RSSI roaming */
- WMI_ROAM_ABORT_BG_DATA_RSSI_HIGH, /* Roam scan is not started due to high data RSSI during background roaming */
- WMI_ROAM_ABORT_BG_RSSI_ABOVE_THRESHOLD, /* Roam scan is not started due to high beacon RSSI during background roaming */
- WMI_ROAM_SCAN_CANCEL_IDLE_SCREEN_ON, /* Idle roam scan is canceled due to screen on */
- WMI_ROAM_SCAN_CANCEL_OTHER_PRIORITY_ROAM_SCAN, /* Roam scan is canceled due to other high priority roam scan */
- } WMI_ROAM_FAIL_SUB_REASON_ID;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_result_tlv_param */
- /*
- * timestamp is the absolute time w.r.t host timer which is synchronized
- * between the host and target.
- * This timestamp indicates the time when roaming is completed.
- */
- A_UINT32 timestamp; /* Timestamp in milli seconds */
- A_UINT32 roam_status; /* 0 - Roaming is success, 1 - Roaming is failed */
- A_UINT32 roam_fail_reason; /* from WMI_ROAM_FAIL_REASON_ID */
- wmi_mac_addr bssid; /* bssid corresponds to roam_fail_reason */
- A_UINT32 roam_abort_reason; /* Detail reason for roam scan not start, from WMI_ROAM_FAIL_SUB_REASON_ID */
- } wmi_roam_result;
- #define WMI_ROAM_NEIGHBOR_REPORT_INFO_REQUEST_TOKEN_GET(detail) WMI_GET_BITS(detail, 0, 8)
- #define WMI_ROAM_NEIGHBOR_REPORT_INFO_REQUEST_TOKEN_SET(detail,val) WMI_SET_BITS(detail, 0, 8, val)
- #define WMI_ROAM_NEIGHBOR_REPORT_INFO_RESPONSE_TOKEN_GET(detail) WMI_GET_BITS(detail, 8, 8)
- #define WMI_ROAM_NEIGHBOR_REPORT_INFO_RESPONSE_TOKEN_SET(detail,val) WMI_SET_BITS(detail, 8, 8, val)
- #define WMI_ROAM_NEIGHBOR_REPORT_INFO_NUM_OF_NRIE_GET(detail) WMI_GET_BITS(detail, 16, 8)
- #define WMI_ROAM_NEIGHBOR_REPORT_INFO_NUM_OF_NRIE_SET(detail,val) WMI_SET_BITS(detail, 16, 8, val)
- #define WMI_ROAM_NEIGHBOR_REPORT_INFO_MLO_BAND_INFO_GET(detail) WMI_GET_BITS(detail, 24, 3)
- #define WMI_ROAM_NEIGHBOR_REPORT_INFO_MLO_BAND_INFO_SET(detail,val) WMI_SET_BITS(detail, 24, 3, val)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_neighbor_report_info_tlv_param */
- /* request_type:
- * 1 -> BTM query
- * 2 -> 11K neighbor report request
- */
- A_UINT32 request_type;
- /* neighbor_report_request_timestamp:
- * timestamp is the absolute time w.r.t host timer which is synchronized
- * between the host and target.
- * This timestamp indicates the time when neighbor report request
- * is received.
- */
- A_UINT32 neighbor_report_request_timestamp; /* in milli seconds */
- /* neighbor_report_response_timestamp:
- * This timestamp indicates the time when neighbor report response is sent.
- */
- A_UINT32 neighbor_report_response_timestamp; /* in milli seconds */
- A_UINT32 neighbor_report_channel_count; /* Number of channels received in neighbor report response */
- A_UINT32 btm_query_token; /* btm query dialog token */
- /* btm_query_reason_code:
- * Transition Query Reasons are enumerated in table 7-43x
- * of the 802.11v spec.
- */
- A_UINT32 btm_query_reason_code;
- /* neighbor_report_detail:
- * [7:0] : neighbor report request token
- * [15:8] : neighbor report response token
- * [23:16] : the number of neighbor report elements in response frame
- * [26:24] : band on which frame is sent; the value will be one of the
- * wmi_mlo_band_info enum constants
- * Refer to WMI_ROAM_NEIGHBOR_REPORT_INFO_MLO_BAND_INFO_GET,SET
- * macros.
- * [31:27] : reserved
- * Refer to the above WMI_ROAM_NEIGHBOR_REPORT_INFO_*_GET,_SET macros for
- * reading and writing these bitfields.
- */
- A_UINT32 neighbor_report_detail;
- } wmi_roam_neighbor_report_info;
- #define WMI_ROAM_BTM_RESP_MLO_BAND_INFO_GET(detail) WMI_GET_BITS(detail, 0, 3)
- #define WMI_ROAM_BTM_RESP_MLO_BAND_INFO_SET(detail,val) WMI_SET_BITS(detail, 0, 3, val)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_btm_response_info_tlv_param */
- /*enum STATUS_CODE_WNM_BTM defined in ieee80211_defs.h*/
- A_UINT32 btm_status;
- /* AP MAC address */
- wmi_mac_addr target_bssid;
- /* vsie_reason value:
- * 0x00 Will move to Cellular
- * 0x01 Unspecified
- * 0x02 Not supported
- * 0x03 No Cellular Network
- * 0x04 Controlled by framework
- * 0x05 Roam to better AP
- * 0x06 Suspend mode
- * 0x07 RSSI is strong enough
- * 0x08-0xFF TBD
- */
- A_UINT32 vsie_reason;
- /*
- * timestamp is the absolute time w.r.t host timer which is synchronized
- * between the host and target.
- * This timestamp indicates the time when btm response is sent.
- */
- A_UINT32 timestamp; /* milli second units */
- A_UINT32 btm_resp_dialog_token; /* dialog_token in btm response frame */
- /* btm_resp_bss_termination_delay:
- * bss_termination_delay in btm response frame is the number of minutes
- * that the responding STA requests the BSS to delay termination.
- */
- A_UINT32 btm_resp_bss_termination_delay;
- /* info:
- * Bit[0:2] - band on which frame is sent, band value will be one of the
- * wmi_mlo_band_info_t enum constants
- * Refer to WMI_ROAM_BTM_RESP_MLO_BAND_INFO_GET,SET macros.
- * Bit[3:31] - reserved.
- */
- A_UINT32 info;
- } wmi_roam_btm_response_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_btm_request_candidate_info_tlv_param */
- wmi_mac_addr btm_candidate_bssid; /* BTM candidate MAC address */
- A_UINT32 preference; /* preference in Preference IE */
- } wmi_roam_btm_request_candidate_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_neighbor_report_channel_info_tlv_param */
- A_UINT32 channel; /* Channel frequency in MHz */
- } wmi_roam_neighbor_report_channel_info;
- #define WMI_GET_ASSOC_ID(frame_info_ext) WMI_GET_BITS(frame_info_ext, 0, 16)
- #define WMI_SET_ASSOC_ID(frame_info_ext, val) WMI_SET_BITS(frame_info_ext, 0, 16, val)
- #define WMI_GET_MLO_BITMAP_BAND_INFO(frame_info_ext) WMI_GET_BITS(frame_info_ext, 16, 5)
- #define WMI_SET_MLO_BITMAP_BAND_INFO(frame_info_ext, val) WMI_SET_BITS(frame_info_ext, 16, 5, val)
- #define WMI_GET_RX_INDICATE(frame_info_ext) WMI_GET_BITS(frame_info_ext, 21, 1)
- #define WMI_SET_RX_INDICATE(frame_info_ext, val) WMI_SET_BITS(frame_info_ext, 21, 1, val)
- #define WMI_GET_TX_FAILED_REASON(frame_info_ext) WMI_GET_BITS(frame_info_ext, 22, 4)
- #define WMI_SET_TX_FAILED_REASON(frame_info_ext, val) WMI_SET_BITS(frame_info_ext, 22, 4, val)
- #define WMI_GET_MAP_ID(frame_info_ext) WMI_GET_BITS(frame_info_ext, 26, 6)
- #define WMI_SET_MAP_ID(frame_info_ext, val) WMI_SET_BITS(frame_info_ext, 26, 6, val)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_frame_info_tlv_param */
- /* timestamp is the absolute time w.r.t host timer which is synchronized between the host and target */
- A_UINT32 timestamp; /* Timestamp when frame is sent or received */
- /*
- * frame_info = frame_type | (frame_subtype << 2) | (request_or_response << 6) | (auth_algo_num << 7) | (seq_num << 16)
- * frame_type(2 bits), frame_subtype(4 bits) are from 802.11 spec.
- * If frame_type is WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT, frame_subtype
- * should be one of value in WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT_SUBTYPE.
- * request_or_response(1 bit) - Valid if frame_subtype is authentication.
- * 0 - Authentication request 1 - Authentication response
- * auth_algo_num(5bits) : Lower 5 bits of 9.4.1.1 Authentication Algorithm
- * Number field
- * The auth_algo_num bits shall be ignored unless
- * WMI_SERVICE_ROAM_STAT_PER_CANDIDATE_FRAME_INFO_SUPPORT is set and
- * frame_subtype is auth frame.
- * seq_num(16 bits) - frame sequence number
- */
- A_UINT32 frame_info;
- /* status_code:
- * For Rx frames : Status code from 802.11 spec, section 9.4.1.9
- * For Rx frames (deauth / disassoc) : Reason code from 802.11 spec,
- * section 9.4.1.7
- * For Tx frames : Status_code should be one of value in
- * WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT_STATUS
- */
- A_UINT32 status_code;
- /*
- * rssi_dbm_abs
- * Last known RSSI of the current BSSID at the moment when the frame
- * was sent and received.
- * This RSSI value is valid for deauth / disassoc frame only.
- * The rssi_dbm_abs value is the absolute value of the RSSI in dBm units.
- * For example, if the RSSI is -40 dBm, rssi_dbm_abs will be 40.
- */
- A_UINT32 rssi_dbm_abs;
- /* retry_count
- * To show how many times the same frame (but with different
- * sequence number) is retransmitted, in protocol level.
- */
- A_UINT32 retry_count;
- wmi_mac_addr bssid; /* AP MAC address */
- /*
- * frame_info_ext captures below fields:
- * Bit 0-15 : (re)assoc id of (re)association response frame,
- * section 9.4.1.8 AID field.
- * Bit 16-20 : MLO bitmap band info,
- * bit0: 2GHz, bit1: 5GHz, bit2: 6GHz, bits 3-4: reserved
- * Refer to WMI_[GET,SET]_MLO_BITMAP_BAND_INFO macros.
- * Bit 21 : indicate whether this frame is rx :0-not rx; 1-rx
- * Refer to WMI_[GET,SET]_RX_INDICATE macros.
- * Bit 22-25 : opaque tx failure reason
- * Refer to WMI_[GET,SET]_TX_FAILED_REASON macros.
- * Bit 26-31 : Indicate the map id, used to identify the all the
- * ML link info corresponding to current roaming candidate.
- */
- A_UINT32 frame_info_ext;
- } wmi_roam_frame_info;
- typedef enum {
- WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT = 3,
- } WMI_ROAM_FRAME_INFO_FRAME_TYPE;
- typedef enum {
- WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT_SUBTYPE_M1 = 1,
- WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT_SUBTYPE_M2,
- WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT_SUBTYPE_M3,
- WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT_SUBTYPE_M4,
- WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT_SUBTYPE_GTK_M1,
- WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT_SUBTYPE_GTK_M2,
- } WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT_SUBTYPE;
- typedef enum {
- WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT_STATUS_ACK = 0,
- WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT_STATUS_NO_ACK,
- WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT_STATUS_TX_FAIL,
- } WMI_ROAM_FRAME_INFO_FRAME_TYPE_EXT_STATUS;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_initial_info_tlv_param */
- /* count of full scan */
- A_UINT32 roam_full_scan_count;
- A_INT32 rssi_th; /* unit: dBm */
- A_UINT32 cu_th; /* channel utilization threshold: uses units of percent */
- /* timer_canceled:
- * bit0: timer1 canceled
- * bit1: timer2 canceled
- * bit2: inactive timer canceled
- */
- A_UINT32 timer_canceled;
- } wmi_roam_initial_info;
- typedef enum {
- WMI_ROAM_MSG_RSSI_RECOVERED = 1, /* Connected AP RSSI is recovered to good region */
- WMI_ROAM_MSG_CONNECTED_IN_POOR_RSSI = 2, /* DUT connected to AP whose RSSI is below low RSSI threshold */
- } WMI_ROAM_MSG_ID;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_msg_info_tlv_param */
- /*
- * timestamp is the absolute time (in milliseconds) w.r.t host timer
- * which is synchronized between the host and target
- */
- A_UINT32 timestamp;
- A_UINT32 msg_id; /* Message ID from WMI_ROAM_MSG_ID */
- /* msg_param values are interpreted differently for different msg_id values.
- * if msg_id == WMI_ROAM_MSG_RSSI_RECOVERED:
- * msg_param1 contains current AP RSSI in dBm
- * (unsigned -> signed conversion is required)
- * msg_param2 contains next trigger RSSI threshold in dBm
- * (unsigned -> signed conversion is required)
- */
- A_UINT32 msg_param1;
- A_UINT32 msg_param2;
- } wmi_roam_msg_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_stats_event_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 roam_scan_trigger_count; /* Number of roam scans triggered */
- } wmi_roam_stats_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_trigger_reason_cmm_tlv_param */
- /*
- * timestamp is the absolute time w.r.t host timer which is synchronized
- * between the host and target.
- * This timestamp indicates the time when roam trigger happened.
- */
- A_UINT32 timestamp; /* Timestamp in milli seconds */
- /* trigger_reason:
- * Roam trigger reason from WMI_ROAM_TRIGGER_REASON_ID
- */
- A_UINT32 trigger_reason;
- /* trigger_sub_reason:
- * Reason for each roam scan from WMI_ROAM_TRIGGER_SUB_REASON_ID,
- * if multiple scans are triggered for a single roam trigger.
- */
- A_UINT32 trigger_sub_reason;
- A_UINT32 current_rssi; /* Connected AP RSSI in dBm */
- } wmi_roam_trigger_reason_cmm;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_trigger_rssi_tlv_param */
- /* roam_rssi_threshold:
- * RSSI threshold value in dBm for low RSSI roam trigger.
- */
- A_UINT32 roam_rssi_threshold;
- /* data RSSI in dBm */
- A_UINT32 data_rssi;
- /* data RSSI threshold in dBm */
- A_UINT32 data_rssi_threshold;
- /* rx linkspeed status, 0:good linkspeed, 1:bad */
- A_UINT32 rx_linkspeed_status;
- } wmi_roam_trigger_rssi;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_trigger_bss_load_tlv_param */
- A_UINT32 cu_load; /* Connected AP CU load percentage (0-100) */
- } wmi_roam_trigger_bss_load;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_trigger_deauth_tlv_param */
- /* deauth_type:
- * 1 -> De-authentication
- * 2 -> Disassociation
- */
- A_UINT32 deauth_type;
- /* deauth_reason:
- * De-authentication or disassociation reason.
- * De-authentication / disassociation Values are enumerated in the
- * 802.11 spec.
- */
- A_UINT32 deauth_reason;
- } wmi_roam_trigger_deauth;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_trigger_btm_tlv_param */
- /* btm_request_mode:
- * Mode Values are enumerated in the 802.11 spec.
- */
- A_UINT32 btm_request_mode;
- A_UINT32 disassoc_imminent_timer; /* in Milli seconds */
- /* validity_internal:
- * Preferred candidate list validity interval in Milli seconds.
- */
- A_UINT32 validity_internal;
- /* candidate_list_count:
- * Number of preferred candidates from BTM request.
- */
- A_UINT32 candidate_list_count;
- /* btm_response_status_code:
- * Response status Values are enumerated in the 802.11 spec.
- */
- A_UINT32 btm_response_status_code;
- /* BTM BSS termination timeout value in milli seconds */
- A_UINT32 btm_bss_termination_timeout;
- /* BTM MBO assoc retry timeout value in milli seconds */
- A_UINT32 btm_mbo_assoc_retry_timeout;
- /* btm_req_dialog_token: dialog token number in BTM request frame */
- A_UINT32 btm_req_dialog_token;
- } wmi_roam_trigger_btm;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_trigger_bmiss_tlv_param */
- /* B[0-6]: final bmiss cnt.
- * B[7-23]: consecutive bmiss cnt
- * B[24]: isQosNullSuccess: 0: success, 1:fail
- */
- A_UINT32 bmiss_status;
- } wmi_roam_trigger_bmiss;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_trigger_dense_tlv_param */
- /* RX Throughput in bytes per second in dense env */
- A_UINT32 rx_tput;
- /* TX Throughput in bytes per second in dense env */
- A_UINT32 tx_tput;
- /* dense_status: b[0-7]: roamable AP count info in dense env */
- A_UINT32 dense_status;
- } wmi_roam_trigger_dense;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_trigger_force_tlv_param */
- A_UINT32 invoke_reason; /* from wlan_roam_invoke_reason */
- } wmi_roam_trigger_force;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_trigger_kickout_tlv_param */
- /* consecutive tx failure threshold */
- A_UINT32 kickout_th;
- A_UINT32 kickout_reason; /* from PEER_KICKOUT_REASON */
- } wmi_roam_trigger_kickout;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_trigger_per_tlv_param */
- /* For PER roam,
- * If the number of PPDUs with PHY rate < low_rate_thresh exceeds
- * N * tx/rx_rate_thresh_percnt / 100, roaming will be triggered.
- * b[0-7]: tx_rate_thresh_percnt
- * b[16-23]:rx_rate_thresh_percnt
- */
- A_UINT32 rate_thresh_percnt;
- } wmi_roam_trigger_per;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_trigger_periodic_tlv_param */
- /* roam scan periodic : units = milliseconds*/
- A_UINT32 periodic_timer_ms;
- } wmi_roam_trigger_periodic;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_trigger_hi_rssi_tlv_param */
- /* roam High RSSI threshold */
- A_UINT32 hi_rssi_threshold;
- } wmi_roam_trigger_hi_rssi;
- #define WMI_MLO_LINK_INFO_GET_MAP_ID(link_info) WMI_GET_BITS(link_info, 0, 6)
- #define WMI_MLO_LINK_INFO_SET_MAP_ID(link_info, val) WMI_SET_BITS(link_info, 0, 6, val)
- #define WMI_MLO_LINK_INFO_GET_STATUS(link_info) WMI_GET_BITS(link_info, 6, 1)
- #define WMI_MLO_LINK_INFO_SET_STATUS(link_info, val) WMI_SET_BITS(link_info, 6, 1, val)
- #define WMI_MLO_LINK_INFO_GET_BAND(link_info) WMI_GET_BITS(link_info, 7, 3)
- #define WMI_MLO_LINK_INFO_SET_BAND(link_info, val) WMI_SET_BITS(link_info, 7, 3, val)
- #define WMI_MLO_LINK_INFO_GET_IEEE_LINK_ID(link_info) WMI_GET_BITS(link_info, 10, 4)
- #define WMI_MLO_LINK_INFO_SET_IEEE_LINK_ID(link_info, val) WMI_SET_BITS(link_info, 10, 4, val)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_link_info_tlv_param */
- wmi_mac_addr link_addr;
- A_UINT32 link_info;
- /*
- * b[0-5] : Map Id - maps the corresponding candidate AP for which
- * re-assoc resp received.
- * b[6] : Status - link status, AP accepted/rejected this link
- * 0 - accepted
- * 1 - rejected
- * b[7-9] : Band - link band info (band value is from wmi_mlo_band_info)
- * b[10-13] : IEEE link id - Link id associated with AP
- */
- } wmi_mlo_link_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_get_scan_channel_list_cmd_fixed_param */
- A_UINT32 vdev_id;
- } wmi_roam_get_scan_channel_list_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_scan_channel_list_event_fixed_param */
- A_UINT32 vdev_id;
- wmi_ssid ssid; /* SSID of connected AP */
- /*
- * This event can be sent as a response to
- * WMI_ROAM_GET_SCAN_CHANNEL_LIST_CMDID or
- * can be sent asynchronously during disconnection.
- * command_response = 1, when it is sent as a response to
- * WMI_ROAM_GET_SCAN_CHANNEL_LIST_CMDID
- * = 0, for other cases
- */
- A_UINT32 command_response;
- /*
- * This fixed_param TLV is followed by the below TLVs:
- *
- * List of roam scan channel frequencies in MHz
- * A_UINT32 channel_list[];
- */
- } wmi_roam_scan_channel_list_event_fixed_param;
- typedef enum {
- WMI_ROAM_CND_RSSI_SCORING = 0x00000001, /* FW considers RSSI scoring */
- WMI_ROAM_CND_HT_SCORING = 0x00000002, /* FW considers HT scoring */
- WMI_ROAM_CND_VHT_SCORING = 0x00000004, /* FW considers VHT scoring */
- WMI_ROAM_CND_HE_SCORING = 0x00000008, /* FW considers 11ax scoring */
- WMI_ROAM_CND_BW_SCORING = 0x00000010, /* FW considers Bandwidth scoring */
- WMI_ROAM_CND_BAND_SCORING = 0x00000020, /* FW considers Band(2G/5G) scoring */
- WMI_ROAM_CND_NSS_SCORING = 0x00000040, /* FW considers NSS(1x1 / 2x2) scoring */
- WMI_ROAM_CND_CHAN_CONGESTION_SCORING = 0x00000080, /* FW considers ESP/QBSS scoring */
- WMI_ROAM_CND_BEAMFORMING_SCORING = 0x00000100, /* FW considers Beamforming scoring */
- WMI_ROAM_CND_PCL_SCORING = 0x00000200, /* FW considers PCL scoring */
- WMI_ROAM_CND_OCE_WAN_SCORING = 0x00000400, /* FW considers OCE WAN metrics scoring */
- WMI_ROAM_CND_OCE_AP_TX_PWR_SCORING = 0x00000800, /* FW considers OCE AP Tx power scoring */
- WMI_ROAM_CND_OCE_AP_SUBNET_ID_SCORING = 0x00001000, /* FW considers OCE AP subnet id scoring */
- WMI_ROAM_CND_SAE_PK_AP_SCORING = 0x00002000, /* FW considers SAE-PK enabled AP scoring */
- WMI_ROAM_CND_SECURITY_SCORING = 0x00004000, /* FW considers security scoring */
- } WMI_ROAM_CND_SCORING_PARAMS;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_capability_report_event_fixed_param */
- /*
- * This event is sent asynchronously during FW init.
- * It indicates FW roam related capabilities to host.
- *
- * scoring_capability_bitmap = Indicates firmware candidate scoring
- * capabilities. It's a bitmap of values
- * from enum WMI_ROAM_CND_SCORING_PARAMS.
- */
- A_UINT32 scoring_capability_bitmap;
- } wmi_roam_capability_report_event_fixed_param;
- /*
- * Definition of disallow connection modes.
- */
- typedef enum {
- /* Bit 0: roam to 5GL+5GH MLSR is not allowed if the bit is set. */
- WMI_ROAM_MLO_CONNECTION_MODE_5GL_5GH_MLSR = 0x1,
- } WMI_ROAM_MLO_CONNECTION_MODES;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_mlo_config_cmd_fixed_param */
- wmi_mac_addr partner_link_addr; /* Assigned link address which can be used as self link addr when vdev is not created */
- A_UINT32 vdev_id;
- /*
- * Configure max number of link mlo connection supports.
- * Invalid value or 0 will use max supported value by fw.
- */
- A_UINT32 support_link_num;
- /*
- * Bit 0: 2G band support if 1
- * Bit 1: 5G band support if 1
- * Bit 2: 6G band support if 1
- */
- A_UINT32 support_link_band; /* Configure the band bitmap of mlo connection supports. */
- A_UINT32 max_active_links; /* Max active links supported for STA */
- /*
- * Disallow the specified connection mode(s) when roaming to MLD AP.
- * Refer to the WMI_ROAM_MLO_CONNECTION_MODES enum for the connection mode
- * each bit represents.
- */
- A_UINT32 disallow_connect_modes;
- /*
- * If max_link_combo_count is non-zero, STA should try to roam to next
- * candidate once max allowed link combinations is reached with current
- * candidate AP.
- */
- A_UINT32 max_link_combo_count;
- } wmi_roam_mlo_config_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_param_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** parameter id - see WMI_ROAM_PARAM */
- A_UINT32 param_id;
- /** parameter value */
- A_UINT32 param_value;
- } wmi_roam_set_param_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_enable_vendor_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** abstract mechanism for differentiating vendors */
- A_UINT32 vendor_id;
- /** 1 - Enable, 0 - Disable */
- A_UINT32 enable;
- } wmi_roam_enable_vendor_control_cmd_fixed_param;
- typedef enum {
- ROAM_VENDOR_CONTROL_PARAM_TRIGGER = 1,
- ROAM_VENDOR_CONTROL_PARAM_DELTA,
- ROAM_VENDOR_CONTROL_PARAM_FULL_SCANPERIOD,
- ROAM_VENDOR_CONTROL_PARAM_PARTIAL_SCANPERIOD,
- ROAM_VENDOR_CONTROL_PARAM_ACTIVE_CH_DWELLTIME,
- ROAM_VENDOR_CONTROL_PARAM_PASSIVE_CH_DWELLTIME,
- ROAM_VENDOR_CONTROL_PARAM_HOME_CH_TIME,
- ROAM_VENDOR_CONTROL_PARAM_AWAY_TIME,
- /* Sending query for all roam_vendor_control_param */
- ROAM_VENDOR_CONTROL_PARAM_ALL = 0xFFFFFFFF,
- } WMI_ROAM_GET_VENDOR_CONTROL_PARAM_ID;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_vendor_param_cmd_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /** Vendor Control Param ID from enum WMI_ROAM_GET_VENDOR_CONTROL_PARAM_ID */
- A_UINT32 param_id;
- } wmi_roam_get_vendor_control_param_cmd_fixed_param;
- /* WMI_ROAM_GET_VENDOR_CONTROL_PARAM_EVENTID - No need to make this event as wakeable event
- * Host ensures to take wakelock after sending WMI_ROAM_GET_VENDOR_CONTROL_PARAM_CMDID command */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_get_vendor_control_param_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /**
- * Vendor Control Param ID from enum WMI_ROAM_GET_VENDOR_CONTROL_PARAM_ID
- * If param_id is ROAM_VENDOR_CONTROL_PARAM_ALL, send all vendor control
- * param value defined in enum WMI_ROAM_GET_VENDOR_CONTROL_PARAM_ID
- * using wmi_vendor_control_param tlv
- */
- A_UINT32 param_id;
- /** Vendor control param value */
- A_UINT32 param_value;
- } wmi_roam_get_vendor_control_param_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vendor_control_param */
- /** Vendor Control Param ID from enum WMI_ROAM_GET_VENDOR_CONTROL_PARAM_ID */
- A_UINT32 param_id;
- /** Vendor control param value */
- A_UINT32 param_value;
- } wmi_vendor_control_param;
- /** the definition of different ROAM parameters */
- typedef enum {
- /*
- * roam param to configure below roam events
- * Bit : 0 disabled - do not send WMI_ROAM_NOTIF_SCAN_END in WMI_ROAM_EVENTID
- * Bit : 0 enabled - send WMI_ROAM_NOTIF_SCAN_END in WMI_ROAM_EVENTID
- * Bit : 1 disabled - do not send 1) WMI_ROAM_STATS_EVENTID 2) WMI_ROAM_NOTIF_SCAN_START and WMI_ROAM_NOTIF_SCAN_END notifs in WMI_ROAM_EVENTID in suspend mode
- * Bit : 1 enabled - send 1) WMI_ROAM_STATS_EVENTID 2) WMI_ROAM_NOTIF_SCAN_START and WMI_ROAM_NOTIF_SCAN_END notifs in WMI_ROAM_EVENTID in suspend mode
- * Bit : 2-31 - reserved
- */
- WMI_ROAM_PARAM_ROAM_EVENTS_CONFIG = 1,
- /*
- * Bit : 0 if unset, POOR_LINKSPEED
- * Bit : 0 if set, GOOD_LINKSPEED
- */
- WMI_ROAM_PARAM_LINKSPEED_STATE = 2,
- /*
- * roam param to configure roam scan params for DFS jitter reduction
- * Bit : 0 enabled - DFS channel jitter reduction is enabled.
- * Bit : 0 disabled - DFS channel jitter reduction is disabled.
- *
- * Bit : 1-7 - To indicate the passive-to-active conversion timeout
- * with range 40 to 70 in ms, default value is 50ms.
- * If an invalid (out of range) value is provided, the
- * default value will be used.
- * Bit : 8-13 - To indicate the DFS RSSI threshold for current AP
- * with range 0 to 58, default value is 0 dB
- * (DFS RSSI threshold = -70 dBm + 0 dB = -70 dBm).
- * The specified value (in dB) is added to the -70 dBm
- * baseline value to get the RSSI threshold in dBm.
- * If an invalid (out of range) value is provided, the
- * default value will be used.
- * Bit : 14-19 - To indicate the DFS RSSI threshold for candidate AP
- * with range 0 to 58, default value is 0 dB
- * (DFS RSSI threshold = -70 - 0 = -70 dBm).
- * The specified value (in dB) is added to the -70 dBm
- * baseline value to get the RSSI threshold in dBm.
- * If an invalid (out of range) value is provided, the
- * default value will be used.
- * Bit : 20 disabled - To indicate DFS roam scan policy is AGILE
- * Bit : 20 enabled - To indicate DFS roam scan policy is Legacy
- *
- * Bit : 21-31 are reserved
- */
- WMI_ROAM_PARAM_ROAM_SCAN_DFS_CONFIG_BITMAP = 3,
- /*
- * roam param to configure HO_DELAY_RX value at runtime
- * The configured value of ho_delay_rx will be in milliseconds
- * Maximum value which user can configure using this Param ID is 1000 msec.
- *
- * If any value beyond this Maximum value is provided by user, FW will
- * configure the ho_delay_rx value to Maximum allowed value i.e. 1000 msec.
- */
- WMI_ROAM_PARAM_ROAM_HO_DELAY_RUNTIME_CONFIG = 4,
- /*
- * Roam param to enable/disable full scan channel optimization
- * As per current implementation of roam scan, if there are no APs found
- * during partial scan, immediately a full scan will be initiated as a
- * fallback. This includes all channels that were already scanned as part
- * of partial scan.
- * This flag controls the optimization, to exclude all channels, which are
- * already scanned as part of partial scan.
- */
- WMI_ROAM_PARAM_ROAM_CONTROL_FULL_SCAN_CHANNEL_OPTIMIZATION = 5,
- /*
- * Roam param to enable/disable scanning of 6 GHz PSC channels
- * As per current implementation, Wi-Fi STA scans on all 6 GHz PSC channels
- * as part of full scan during a roam scan irrespective of whether APs are
- * present in 6 GHz or not.
- * This flag controls the optimization to do the scan in 6 GHz PSC channels
- * only if channel map or newly received RNR indicates 6 GHz APs during
- * current 2.4 GHz or 5 GHz scanning of Roam Full scan.
- */
- WMI_ROAM_PARAM_ROAM_CONTROL_FULL_SCAN_6GHZ_PSC_ONLY_WITH_RNR = 6,
- /*
- * Flag to tell whether MCC is disallowed or not in sta + sta currrent case.
- * If flag is unset, then no limitation for channels which sta can roam to.
- * If flag is set, then the channels which one of STA roam to cause MCC with other STA, it will be disallowed.
- */
- WMI_ROAM_PARAM_ROAM_MCC_DISALLOW = 7,
- /*
- * Roam param to provide additional RSSI Boost for 6 GHz Candidate AP
- * during Roam Scan in case any 6 GHz candidate has better Roam score
- * but fails RSSI Delta Check.
- * This configurable RSSI Boost value for 6GHz Candidate AP will be
- * configured via ini RoamRssiDiff6GHz
- * This configured RSSI boost value will only be applicable for 6GHz
- * Candidate AP when the STA is connected to 2.4/5 GHz Band AP and will
- * not impact if STA is connected to 6GHz Band AP
- */
- WMI_ROAM_PARAM_ROAM_RSSI_BOOST_FOR_6GHZ_CAND_AP = 8,
- /*
- * Roam param to indicate unsupported Power Type for 6 GHz Candidate AP
- * found during Roam Scan. If AP operates on the power type disabled by
- * the host, then that candidate should not be selected.
- * This unsupported Power Type will be configured based
- * on disabled 6GHz Power Types in Regdomain
- *
- * If below bits in the obtianed Bitmap is set then any AP
- * broadcasting these Power Types should not be selected
- * BIT 0 - Indoor Access Point
- * BIT 1 - Standard Power (SP) Access Point
- * BIT 2 - Very Low Power (VLP) Access Point
- * BIT 3-7 - Reserved
- */
- WMI_ROAM_PARAM_ROAM_UNSUPPORTED_6GHZ_POWERTYPE = 9,
- /*
- * crypto params to allow EHT/MLO in WPA2/WPA3 security.
- * BITMAP of wlan_crypto_roam_eht_config
- */
- WMI_ROAM_PARAM_CRYPTO_EHT_CONFIG = 10,
- /*
- * Roam Param for enabling/disabling Roam Latency Optimization via below
- * BITMAP of wlan_roam_latency_optimization_t
- */
- WMI_ROAM_PARAM_ROAM_LATENCY_OPTIMIZATION_BITMAP = 11,
- /*=== END ROAM_PARAM_PROTOTYPE SECTION ===*/
- } WMI_ROAM_PARAM;
- typedef enum {
- /*
- * BIT 0 - WLAN_CRYPTO_WPA2_ALLOW_NON_MLO_EHT:
- * Connect to non-MLO/MLO WPA2 EHT APs in EHT without PMF support.
- *
- * BIT 1 - WLAN_CRYPTO_WPA2_ALLOW_MLO:
- * Connect to MLO WPA2 EHT APs in MLO without PMF support.
- *
- * BIT 2 - WLAN_CRYPTO_WPA2_ALLOW_NON_MLO_EHT_MFPC_SET:
- * Connect to non-MLO/MLO WPA2 EHT APs in EHT.
- * (PMF capable is mandatory).
- *
- * BIT 3 - WLAN_CRYPTO_WPA2_ALLOW_MLO_MFPC_SET:
- * Connect to MLO WPA2 EHT APs in MLO
- * (PMF capable is mandatory).
- *
- * BIT 4 - 15 - reserved for future WPA2 security configs
- *
- * BIT 16 - WLAN_CRYPTO_WPA3_SAE_ALLOW_NON_MLO_EHT_HNP:
- * Connect to non-MLO/MLO WPA3-SAE without support for H2E
- * (or no RSNXE IE in beacon) in non-MLO EHT.
- *
- * BIT 17 - WLAN_CRYPTO_WPA3_SAE_ALLOW_MLO_HNP:
- * Connect to MLO WPA3-SAE without support for H2E
- * (or no RSNXE IE in beacon).
- */
- WLAN_CRYPTO_WPA2_ALLOW_NON_MLO_EHT = 0x00000001,
- WLAN_CRYPTO_WPA2_ALLOW_MLO = 0x00000002,
- WLAN_CRYPTO_WPA2_ALLOW_NON_MLO_EHT_MFPC_SET = 0x00000004,
- WLAN_CRYPTO_WPA2_ALLOW_MLO_MFPC_SET = 0x00000008,
- WLAN_CRYPTO_WPA3_SAE_ALLOW_NON_MLO_EHT_HNP = 0x00010000,
- WLAN_CRYPTO_WPA3_SAE_ALLOW_MLO_HNP = 0x00020000,
- } wlan_crypto_roam_eht_config;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_big_data_cmd_fixed_param */
- A_UINT32 vdev_id;
- } wmi_vdev_get_big_data_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_send_big_data_event_fixed_param */
- A_UINT32 vdev_id;
- /** param list **/
- /* Target power (dBm units) - 2.4G/5G */
- A_UINT32 target_power_2g_dsss;
- A_UINT32 target_power_2g_ofdm;
- A_UINT32 target_power_2g_mcs0;
- A_UINT32 target_power_5g_ofdm;
- A_UINT32 target_power_5g_mcs0;
- /* ANI level from hal-phy */
- A_UINT32 ani_level;
- /* Number of probe requests sent while roaming after BMISS */
- A_UINT32 tx_probe_req;
- /* Number of probe responses received while roaming after BMISS */
- A_UINT32 rx_probe_response;
- /*
- * Number of retries (both by HW and FW) for tx data MPDUs sent by this vdev
- */
- A_UINT32 num_data_retries;
- /* Number of tx data MPDUs dropped from this vdev due to tx retry limit */
- A_UINT32 num_tx_data_fail;
- /* Number of aggregated unicast tx expecting response ppdu */
- A_UINT32 data_tx_ppdu_count;
- /* Number of aggregated unicast tx expecting response mpdu */
- A_UINT32 data_tx_mpdu_count;
- /* number of rx frames with good PCLP */
- A_UINT32 rx_frame_good_pclp_count;
- /* Number of occasions that no valid delimiter is detected by ampdu parser */
- A_UINT32 invalid_delimiter_count;
- /* Number of frames for which the CRC check failed in the MAC */
- A_UINT32 rx_crc_check_fail_count;
- /* tx fifo overflows count for transmissions by this vdev */
- A_UINT32 txpcu_fifo_overflows_count;
- /* Number of ucast ACKS received good FCS (doesn't include block acks) */
- A_UINT32 successful_acks_count;
- /*
- * RX BlockACK Counts
- * Note that this counts the number of block acks received by this vdev,
- * not the number of MPDUs acked by block acks.
- */
- A_UINT32 rx_block_ack_count;
- /* Beacons received from member of BSS */
- A_UINT32 member_bss_beacon_count;
- /* Beacons received from other BSS */
- A_UINT32 non_bss_beacon_count;
- /* Number of RX Data multicast frames dropped by the HW */
- A_UINT32 rx_data_mc_frame_filtered_count;
- } wmi_vdev_send_big_data_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_big_data_p2_cmd_fixed_param */
- A_UINT32 vdev_id;
- } wmi_vdev_get_big_data_p2_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_send_big_data_p2_event_fixed_param */
- A_UINT32 vdev_id;
- /** param list **/
- /* total number of TSF out of sync */
- A_UINT32 tsf_out_of_sync;
- /**
- * ANI (noise interference) level corresponding to the channel.
- * The range of values is different for chips of different target
- * architectures. Helium values range from 0 to 9, while Lithium
- * and Beryllium values range from -5 to 15.
- * In all cases, higher values indicate more noise interference.
- */
- A_INT32 ani_level;
- /*
- * This fixed_param TLV is followed by the below TLVs:
- * List of datapath big data stats. This stat is not interpreted by
- * host. This gets directly updated on big data server and later FW
- * team will analyze this data.
- *
- * A_UINT32 bd_datapath_stats[]; // DEPRECATED
- * wmi_big_data_dp_stats_tlv_param big_data_dp_stats[];
- */
- } wmi_vdev_send_big_data_p2_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_bd_datapath_stats_tlv_param */
- A_UINT32 tlv_header;
- /* Tx power before disconnection.
- * The units of the following tx power fields are 0.5 dBm for Helium
- * architecture target (e.g. a value of 1 means tx power = 0.5 dBm),
- * and are 0.25 dBm for subsequent target architectures.
- */
- A_UINT32 last_data_tx_pwr;
- A_UINT32 target_power_dsss;
- A_UINT32 target_power_ofdm;
- /* Rate index of last data frame before disconnection */
- A_UINT32 last_tx_data_rix;
- /* Tx rate (in kbps) of last data frame before disconnection */
- A_UINT32 last_tx_data_rate_kbps;
- } wmi_big_data_dp_stats_tlv_param;
- typedef enum {
- WMI_6GHZ_REG_PWRMODE_LPI = 0, /* LPI mode for AP and client products */
- WMI_6GHZ_REG_PWRMODE_SP = 1, /* SP mode for AP and client products */
- WMI_6GHZ_REG_PWRMODE_VLP = 2, /* VLP mode for AP and client products */
- WMI_6GHZ_REG_PWRMODE_SP_STA = 3, /* SP client mode for AP products */
- WMI_6GHZ_REG_PWRMODE_MAX = 5
- } WMI_6GHZ_REG_PWRMODE_TYPE;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_tpc_power_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 psd_power; /* Value: 0 or 1, is PSD power or not */
- A_UINT32 eirp_power; /* Maximum EIRP power (dDm units), valid only if power is PSD */
- A_UINT32 power_type_6ghz; /* Type: WMI_6GHZ_REG_TYPE, used for halphy CTL lookup */
- /*
- * This fixed_param TLV is followed by the below TLVs:
- *
- * Based on power_type_6ghz sent in fixed param, the array TLVs
- * will be interpreted as described below:
- *
- * For power_type_6ghz - LPI and VLP power mode:
- * num_pwr_levels of wmi_vdev_ch_power_info
- * This array TLV will be filled based on psd_power field in
- * fixed param.
- * If psd_power = 1, TLV carries 20MHz sub-channel center frequency
- * and PSD-power values.
- * If psd_power = 0, TLV carries Cfreq and EIRP for all BWs
- * (<= current channel BSS BW).
- * wmi_vdev_ch_power_psd_info & wmi_vdev_ch_power_eirp_info are not used
- * for LPI and VLP power mode.
- *
- * For power_type_6ghz SP and SP_CLIENT power mode:
- * num_pwr_levels of wmi_vdev_ch_power_psd_info is filled as below
- * Holds BSS sub-channel center frequency and OOBE PSD-power values.
- * OOBE PSD values for AP and STA are filled in below manner:
- * AP case:
- * For example, DUT is operating in 160 MHz and pri20
- * lies in first sub-channel,
- * OOBE_PSD_20 | MIN_OOBE_PSD_40 | MIN_OOBE_PSD_80 |
- * MIN_OOBE_PSD_80 | MIN_OOBE_PSD_160 | MIN_OOBE__PSD_160 |
- * MIN_OOBE_PSD_160 | MIN_OOBE_PSD_160
- * STA case:
- * For example,STA is operating in 160 MHz
- * OOBE_PSD_20 | OOBE_PSD_20 | OOBE_PSD_20 | OOBE_PSD_20 |
- * OOBE_PSD_20 | OOBE_PSD_20 | OOBE_PSD_20 | OOBE_PSD_20
- *
- * num_pwr_levels of wmi_vdev_ch_power_eirp_info
- * Carries Cfreq and EIRP for all BWs (<= current channel BSS BW).
- * For both AP and STA, EIRP are filled in below manner:
- * Example: If operating BW is 160 MHz
- * EIRP_20 | EIRP_40 | EIRP_80 | EIRP_160
- *
- * If the wmi_vdev_ch_power_psd_info or wmi_vdev_ch_power_eirp_info TLV
- * arrays are not both present, check for older TLV
- * (wmi_vdev_ch_power_info) as explained for LPI and VLP.
- */
- } wmi_vdev_set_tpc_power_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 chan_cfreq; /* Channel center frequency (MHz) */
- A_UINT32 tx_power; /* Unit: dBm, either PSD/EIRP power for this frequency or incremental for non-PSD BW */
- } wmi_vdev_ch_power_info;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 chan_cfreq; /* Channel center frequency (MHz) of all BSS Sub-channel */
- /* psd_power:
- * Unit: 0.25dBm/MHz, OOBE PSD power of sub-channel
- * Example: a power spectral density of 1 dBm / MHz will be reported
- * as the value 4.
- */
- A_INT32 psd_power;
- } wmi_vdev_ch_power_psd_info;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 chan_cfreq; /* Channel center frequency (MHz) for all BWs (<= current channel BSS BW) */
- /* eirp_power:
- * Unit: 0.25dBm, EIRP power for all BWs (<= current channel BSS BW)
- * Example: a power of 1 dBm will be reported as the value 4.
- */
- A_INT32 eirp_power;
- } wmi_vdev_ch_power_eirp_info;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals wmi_txpower_query_cmd_fixed_param */
- A_UINT32 request_id; /* unique request ID to distinguish the command / event set */
- /* The mode value has the following meaning :
- * 0 : 11a
- * 1 : 11bg
- * 2 : 11b
- * 3 : 11g only
- * 4 : 11a HT20
- * 5 : 11g HT20
- * 6 : 11a HT40
- * 7 : 11g HT40
- * 8 : 11a VHT20
- * 9 : 11a VHT40
- * 10 : 11a VHT80
- * 11 : 11g VHT20
- * 12 : 11g VHT40
- * 13 : 11g VHT80
- * 14 : unknown
- */
- A_UINT32 mode;
- A_UINT32 rate; /* rate index */
- A_UINT32 nss; /* number of spatial stream */
- A_UINT32 beamforming; /* beamforming parameter 0:disabled, 1:enabled */
- A_UINT32 chain_mask; /* mask for the antenna set to get power */
- A_UINT32 chain_index; /* index for the antenna */
- } wmi_get_tpc_power_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_get_tpc_power_evt_fixed_param */
- A_UINT32 request_id; /* request ID set by the command */
- A_INT32 tx_power; /* TX power for the specified HALPHY parameters in half dBm unit */
- } wmi_get_tpc_power_evt_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_dpd_status_cmd_fixed_param */
- A_UINT32 pdev_id; /* PDEV ID set by the command */
- } wmi_pdev_get_dpd_status_cmd_fixed_param;
- typedef enum {
- WMI_DPD_STATUS_DISABLE = 0,
- WMI_DPD_STATUS_ENABLE = 1,
- WMI_DPD_STATUS_INVALID = 2,
- } WMI_DPD_STATUS;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_dpd_status_evt_fixed_param */
- A_UINT32 pdev_id; /* PDEV Id set by the command */
- A_UINT32 dpd_status; /* DPD status obtained from HALPHY, refer to WMI_DPD_STATUS */
- } wmi_pdev_get_dpd_status_evt_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_halphy_cal_status_cmd_fixed_param */
- A_UINT32 pdev_id; /* PDEV ID set by the command */
- } wmi_pdev_get_halphy_cal_status_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_aoa_phasedelta_evt_fixed_param */
- A_UINT32 pdev_id; /* PDEV Id set by the command */
- A_UINT32 freq; /* Current channel in MHz */
- /*
- * Chain Info
- * LSB 16 bits - Max chain supported,
- * MSB 16 bits - Chain pair which has phase values:
- * 0x0003 - chain 0 and 1
- * 0x000c - chain 2 and 3
- * 0x0030 - chain 4 and 5
- * 0x00c0 - chain 6 and 7
- */
- A_UINT32 chainInfo;
- /*
- * Phase Delta values:
- * Two phase delta values are packed into each A_UINT32 word
- * LSB 16-bit is 1st value and MSB 16-bit is 2nd value
- * Phasedelta values will be 0-1023 (mapped to 0-360 degree)
- * Each gain from 0 to 61 has a phasedelta value, e.g.
- * gain 0's phase delta occupies bits 15:0 of phasedelta[chain][0],
- * gain 1's phase delta occupies bits 31:16 of phasedelta[chain][0],
- * gain 2's phase delta occupies bits 15:0 of phasedelta[chain][1], etc.
- */
- A_UINT32 phasedelta[WMI_MAX_CHAINS_FOR_AOA_RCC][MAX_AOA_PHASEDELTA];
- /*
- * IBF cal values:
- * Used for final AoA calculation
- * [AoAPhase = ( PhaseDeltaValue + IBFcalValue ) % 1024]
- */
- A_UINT32 perChainIbfCalVal[WMI_MAX_CHAINS_FOR_AOA_RCC];
- } wmi_pdev_aoa_phasedelta_evt_fixed_param;
- #define WMI_AOA_MAX_SUPPORTED_CHAINS_GET(chain_data) \
- WMI_GET_BITS(chain_data, 0, 16)
- #define WMI_AOA_MAX_SUPPORTED_CHAINS_SET(chain_data, value) \
- WMI_SET_BITS(chain_data, 0, 16, value)
- #define WMI_AOA_SUPPORTED_CHAINMASK_GET(chain_data) \
- WMI_GET_BITS(chain_data, 16, 16)
- #define WMI_AOA_SUPPORTED_CHAINMASK_SET(chain_data, value) \
- WMI_SET_BITS(chain_data, 16, 16, value)
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_enhanced_aoa_phasedelta_eventid */
- A_UINT32 tlv_header;
- /* Current Operating Channel Frequency in MHz */
- A_UINT32 freq;
- /** pdev_id:
- * Identify the MAC.
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0.
- */
- A_UINT32 pdev_id;
- /** chain_info:
- * B0 -- B15 : Max number of chains supported
- * B16 --B31 : Data shared for chainmask -
- * indicates the chains to which the data shared.
- */
- union {
- struct {
- A_UINT32 max_supported_chains:16,
- data_for_chainmask:16;
- };
- A_UINT32 chain_info;
- };
- /** XBAR configuration to get RF2BB/BB2RF chain mapping
- * Samples of xbar_config,
- * If xbar_config is 0xFAC688(hex):
- * RF chains 0-7 are connected to BB chains 0-7
- * here,
- * bits 0 to 2 = 0, maps BB chain 0 for RF chain 0
- * bits 3 to 5 = 1, maps BB chain 1 for RF chain 1
- * bits 6 to 8 = 2, maps BB chain 2 for RF chain 2
- * bits 9 to 11 = 3, maps BB chain 3 for RF chain 3
- * bits 12 to 14 = 4, maps BB chain 4 for RF chain 4
- * bits 15 to 17 = 5, maps BB chain 5 for RF chain 5
- * bits 18 to 20 = 6, maps BB chain 6 for RF chain 6
- * bits 21 to 23 = 7, maps BB chain 7 for RF chain 7
- *
- * If xbar_config is 0x688FAC(hex):
- * RF chains 0-3 are connected to BB chains 4-7
- * RF chains 4-7 are connected to BB chains 0-3
- * here,
- * bits 0 to 2 = 4, maps BB chain 4 for RF chain 0
- * bits 3 to 5 = 5, maps BB chain 5 for RF chain 1
- * bits 6 to 8 = 6, maps BB chain 6 for RF chain 2
- * bits 9 to 11 = 7, maps BB chain 7 for RF chain 3
- * bits 12 to 14 = 0, maps BB chain 0 for RF chain 4
- * bits 15 to 17 = 1, maps BB chain 1 for RF chain 5
- * bits 18 to 20 = 2, maps BB chain 2 for RF chain 6
- * bits 21 to 23 = 3, maps BB chain 3 for RF chain 7
- */
- A_UINT32 xbar_config;
- /**
- * IBF cal values:
- * Used for final AoA calculation
- * [AoAPhase = ( PhaseDeltaValue + IBFcalValue ) % 1024]
- */
- A_UINT32 per_chain_ibf_cal_val[WMI_MAX_CHAINS];
- /**
- * This TLV is followed by TLV arrays containing
- * different types of data header and data buffer TLVs:
- * 1. wmi_enhanced_aoa_gain_phase_data_hdr.
- * This TLV contains the array of structure fields which indicate
- * the type and format of data carried in the following data buffer
- * TLV.
- * 2. aoa_data_buf[] - Data buffer TLV.
- * TLV header contains the total buffer size.
- * Data buffer contains the phase_delta_array[Chains][GainEntries]
- * in absolute phase values ranging 0-1024 and
- * gain_delta_array[Chains][GainEntries] are gain index values.
- */
- } wmi_pdev_enhanced_aoa_phasedelta_evt_fixed_param;
- #define WMI_AOA_DATA_TYPE_GET(data_info) \
- WMI_GET_BITS(data_info, 0, 8)
- #define WMI_AOA_DATA_TYPE_SET(data_info,value) \
- WMI_SET_BITS(data_info, 0, 8, value)
- #define WMI_AOA_NUM_ENTIRES_GET(data_info) \
- WMI_GET_BITS(data_info, 8, 8)
- #define WMI_AOA_NUM_DATA_ENTRIES_SET(data_info,value) \
- WMI_SET_BITS(data_info, 8, 8, value)
- typedef enum _WMI_AOA_EVENT_DATA_TYPE {
- WMI_PHASE_DELTA_ARRAY = 0x0,
- WMI_GAIN_GROUP_STOP_ARRAY = 0x1,
- /* add new types here */
- WMI_MAX_DATA_TYPE_ARRAY,
- } WMI_AOA_EVENT_DATA_TYPE;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_enhanced_aoa_phasedelta_eventid */
- A_UINT32 tlv_header;
- /** data_info:
- * Data follows the LSB first and MSB second order in a 32bit word
- * bit mapping:
- * B0 -- B7 : Data type
- * B8 -- B15 : Number of entries to be parsed in terms of 32bit word
- *
- * If data is Phase delta values - Data type is 0x0
- * group stop gain index values - Data type is 0x1
- *
- * num_entries - Total number of data entries in uint32
- */
- union {
- struct {
- A_UINT32 data_type:8,
- num_entries:8,
- reserved:16;
- };
- A_UINT32 data_info;
- };
- } wmi_enhanced_aoa_gain_phase_data_hdr;
- typedef enum _WMI_AGC_GAIN_TABLE_IDX {
- WMI_AGC_DG_TABLE_IDX = 0,
- WMI_AGC_LG_TABLE_IDX,
- WMI_AGC_VLG_TABLE_IDX,
- WMI_AGC_MAX_GAIN_TABLE_IDX = 8,
- } WMI_AGC_GAIN_TABLE_IDX;
- #define WMI_AOA_BDF_NUM_GAIN_TBL_ELEMS_PER_WORD 4
- #define WMI_AOA_NUM_GAIN_TBL_ELEMS_PER_WORD 2
- #define WMI_AOA_NUM_BYTES_FOR_BDF_GAIN_TBL_ELEM 1
- #define WMI_AOA_NUM_BYTES_FOR_GAIN_TBL_ELEM 2
- /* Number of words required to store max number of gain table elements = ((max number of gain table elements)/(number of gain table elements per word)) */
- /* 2 bytes (at most)used to store each gain table elements */
- #define WMI_AOA_NUM_WORD_ENTRIES_FOR_MAX_NUM_AGC_TBL_ELEMS (WMI_AGC_MAX_GAIN_TABLE_IDX / WMI_AOA_NUM_GAIN_TBL_ELEMS_PER_WORD)
- /* 1 byte (at most) used to store each gain table elements obtained from BDF */
- #define WMI_AOA_BDF_NUM_WORD_ENTRIES_FOR_MAX_NUM_AGC_TBL_ELEMS (WMI_AGC_MAX_GAIN_TABLE_IDX / WMI_AOA_BDF_NUM_GAIN_TBL_ELEMS_PER_WORD)
- typedef enum {
- WMI_AOA_2G = 0,
- WMI_AOA_5G,
- WMI_AOA_6G,
- WMI_AOA_MAX_BAND,
- } WMI_AOA_SUPPORTED_BANDS;
- #define WMI_AOA_MAX_AGC_GAIN_GET(pcap_var, tbl_idx, output) \
- do { \
- A_UINT8 word_idx = 0; \
- A_UINT8 bit_index = 0; \
- A_UINT8 nth_byte = 0; \
- word_idx = tbl_idx >> 1; \
- nth_byte = (tbl_idx % WMI_AOA_NUM_GAIN_TBL_ELEMS_PER_WORD); \
- bit_index = nth_byte * 8 * WMI_AOA_NUM_BYTES_FOR_GAIN_TBL_ELEM; \
- output = WMI_GET_BITS(*(pcap_var + word_idx), bit_index, 16); \
- } while (0)
- #define WMI_AOA_MAX_AGC_GAIN_SET(pcap_var, tbl_idx, value) \
- do { \
- A_UINT8 word_idx = 0; \
- A_UINT8 bit_index = 0; \
- A_UINT8 nth_byte = 0; \
- word_idx = tbl_idx >> 1; \
- nth_byte = (tbl_idx % WMI_AOA_NUM_GAIN_TBL_ELEMS_PER_WORD); \
- bit_index = nth_byte * 8 * WMI_AOA_NUM_BYTES_FOR_GAIN_TBL_ELEM; \
- WMI_SET_BITS(*(pcap_var+word_idx), bit_index, 16, value); \
- } while (0)
- #define WMI_AOA_MAX_BDF_ENTRIES_GET(pcap_var, tbl_idx, output) \
- do { \
- A_UINT8 word_idx = 0; \
- A_UINT8 bit_index = 0; \
- A_UINT8 nth_byte = 0; \
- word_idx = tbl_idx >> 2; \
- nth_byte = (tbl_idx % WMI_AOA_BDF_NUM_GAIN_TBL_ELEMS_PER_WORD); \
- bit_index = nth_byte * 8 * WMI_AOA_NUM_BYTES_FOR_BDF_GAIN_TBL_ELEM; \
- output = WMI_GET_BITS(*(pcap_var+word_idx), bit_index, 8); \
- } while (0)
- #define WMI_AOA_MAX_BDF_ENTRIES_SET(pcap_var, tbl_idx, value) \
- do { \
- A_UINT8 word_idx = 0; \
- A_UINT8 nth_byte = 0; \
- A_UINT8 bit_index = 0; \
- word_idx = tbl_idx >> 2; \
- nth_byte = (tbl_idx % WMI_AOA_BDF_NUM_GAIN_TBL_ELEMS_PER_WORD); \
- bit_index = nth_byte * 8 * WMI_AOA_NUM_BYTES_FOR_BDF_GAIN_TBL_ELEM; \
- WMI_SET_BITS(*(pcap_var+word_idx), bit_index, 8, value); \
- } while (0)
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_enhanced_aoa_caps_param */
- A_UINT32 tlv_header;
- /* Maximum number of Rx AGC gain tables supported */
- A_UINT32 max_agc_gain_tbls;
- /* 1 byte is used to store bdf max number of elements in each gain tables */
- A_UINT32 max_bdf_gain_entries[WMI_AOA_BDF_NUM_WORD_ENTRIES_FOR_MAX_NUM_AGC_TBL_ELEMS];
- /** This TLV is followed by TLV array - wmi_enhanced_aoa_per_band_caps_param
- * containing band specifc agc gain table information.
- */
- } wmi_enhanced_aoa_caps_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_enhanced_aoa_per_band_caps_param */
- A_UINT32 tlv_header;
- /* Band information - WMI_AOA_SUPPORTED_BANDS */
- A_UINT32 band_info;
- /* 2 bytes are used to store agc max number of elements in each gain tables */
- A_UINT32 max_agc_gain[WMI_AOA_NUM_WORD_ENTRIES_FOR_MAX_NUM_AGC_TBL_ELEMS];
- } wmi_enhanced_aoa_per_band_caps_param;
- /* WMI_HALPHY_CAL_LIST:
- *
- * Below is the list of HALPHY online CAL currently enabled in
- * WIN chipsets
- */
- typedef enum {
- WMI_HALPHY_CAL_ADC = 0,
- WMI_HALPHY_CAL_BWFILTER,
- WMI_HALPHY_CAL_PDET_AND_PAL,
- WMI_HALPHY_CAL_RXDCO,
- WMI_HALPHY_CAL_COMB_TXLO_TXIQ_RXIQ,
- WMI_HALPHY_CAL_IBF,
- WMI_HALPHY_CAL_PA_DROOP,
- WMI_HALPHY_CAL_DAC,
- WMI_HALPHY_CAL_ANI,
- WMI_HALPHY_CAL_NOISE_FLOOR,
- WMI_HALPHY_CAL_MAX_CAL_LIST
- } WMI_HALPHY_CAL_LIST;
- /* WMI_HALPHY_CAL_VALID_BITMAP_STATUS
- *
- * In WMI wmi_pdev_get_halphy_cal_status_evt_fixed_param
- * (halphy_cal_valid_bmap member), below enum list must be used
- * to get which calibration status indication is sent by FW to HOST.
- * Only if that particular bit it set, corresponding bit of the
- * halphy_cal_status variable will be valid.
- */
- typedef enum {
- WMI_HALPHY_CAL_ADC_BMAP = (1 << WMI_HALPHY_CAL_ADC),
- WMI_HALPHY_CAL_BWFILTER_BMAP = (1 << WMI_HALPHY_CAL_BWFILTER),
- WMI_HALPHY_CAL_PDET_AND_PAL_BMAP = (1 << WMI_HALPHY_CAL_PDET_AND_PAL),
- WMI_HALPHY_CAL_RXDCO_BMAP = (1 << WMI_HALPHY_CAL_RXDCO),
- WMI_HALPHY_CAL_COMB_TXLO_TXIQ_RXIQ_BMAP = (1 << WMI_HALPHY_CAL_COMB_TXLO_TXIQ_RXIQ),
- WMI_HALPHY_CAL_IBF_BMAP = (1 << WMI_HALPHY_CAL_IBF),
- WMI_HALPHY_CAL_PA_DROOP_BMAP = (1 << WMI_HALPHY_CAL_PA_DROOP),
- WMI_HALPHY_CAL_DAC_BMAP = (1 << WMI_HALPHY_CAL_DAC),
- WMI_HALPHY_CAL_ANI_BMAP = (1 << WMI_HALPHY_CAL_ANI),
- WMI_HALPHY_CAL_NOISE_FLOOR_BMAP = (1 << WMI_HALPHY_CAL_NOISE_FLOOR),
- } WMI_HALPHY_CAL_VALID_BITMAP_STATUS;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_get_halphy_cal_status_evt_fixed_param */
- A_UINT32 pdev_id; /* PDEV Id set by the command */
- /*
- * Calibration valid bitmap from HALPHY, refer to
- * WMI_HALPHY_CAL_VALID_BITMAP_STATUS.
- * Only if this particular bit it set, corresponding bit of the
- * halphy_cal_status variable will be valid.
- */
- A_UINT32 halphy_cal_valid_bmap;
- /* Calibration result status bitmap from HALPHY.
- * The WMI_HALPHY_CAL_VALID_BITMAP_STATUS enum identifies which bit
- * in the bitmap corresponds to which cal type.
- * Each valid bit uses the following settings:
- * 1 - SUCCESS
- * 0 - FAILURE
- */
- A_UINT32 halphy_cal_status;
- } wmi_pdev_get_halphy_cal_status_evt_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_halphy_cal_bmap_cmd_fixed_param */
- A_UINT32 pdev_id; /* PDEV ID set by the command */
- /*
- * Calibration valid bitmap from HOST, refer to
- * WMI_HALPHY_CAL_VALID_BITMAP_STATUS.
- * Based on the bitmap value, HALPHY will set corresponding mask values
- * to each of the online calibrations
- */
- A_UINT32 online_halphy_cals_bmap;
- /* Calibration enable/disable support for home/scan channel
- * 0 - home channel
- * 1 - scan channel
- * 2 - both home and scan channel
- */
- A_UINT32 home_scan_channel;
- } wmi_pdev_set_halphy_cal_bmap_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_halphy_cal_bmap_evt_fixed_param */
- A_UINT32 pdev_id; /* PDEV Id set by the command */
- /* Status indication for calibration
- * 0 - SUCCESS
- * 1 - FAIL
- * This WMI command will by sent from HOST dynamically but only one
- * at a time. So no need of cookie/request handshake.
- */
- A_UINT32 status;
- } wmi_pdev_set_halphy_cal_bmap_evt_fixed_param;
- /* below structures are related to Motion Detection. */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_motion_det_config_params_cmd_fixed_param */
- A_UINT32 tlv_header; /** TLV Header */
- A_UINT32 vdev_id; /** Vdev ID */
- A_UINT32 time_t1; /** Time gap of successive bursts of
- * measurement frames during coarse
- * motion detection (in ms) */
- A_UINT32 time_t2; /** Time gap of successive bursts of
- * measurement frames during fine
- * motion detection (in ms) */
- A_UINT32 n1; /** number of measurement frames in one
- * burst, for coarse detection */
- A_UINT32 n2; /** number of measurement frames in one
- * burst, for fine detection */
- A_UINT32 time_t1_gap; /** gap between measurement frames in
- * course detection (in ms) */
- A_UINT32 time_t2_gap; /** gap between measurement frames in
- * fine detection (in ms) */
- A_UINT32 coarse_K; /** number of times motion detection has to
- * be performed for coarse detection */
- A_UINT32 fine_K; /** number of times motion detection has to
- * be performed for fine detection */
- A_UINT32 coarse_Q; /** number of times motion is expected
- * to be detected for success case in
- * coarse detection */
- A_UINT32 fine_Q; /** number of times motion is expected
- * to be detected for success case in
- * fine detection */
- A_UINT32 md_coarse_thr_high; /** higher threshold value (in percent)
- * from host to FW, which will be used in
- * coarse detection phase of motion detection.
- * This is the threshold for the correlation
- * of the old RF local-scattering environment
- * with the current RF local-scattering
- * environment. A value of 100(%) indicates
- * that neither the transceiver nor any
- * nearby objects have changed position. */
- A_UINT32 md_fine_thr_high; /** higher threshold value (in percent)
- * from host to FW, which will be used in
- * fine detection phase of motion detection.
- * This is the threshold for correlation
- * between the old and current RF environments,
- * as explained above. */
- A_UINT32 md_coarse_thr_low; /** lower threshold value (in percent)
- * for immediate detection of motion in
- * coarse detection phase.
- * This is the threshold for correlation
- * between the old and current RF environments,
- * as explained above. */
- A_UINT32 md_fine_thr_low; /** lower threshold value (in percent)
- * for immediate detection of motion in
- * fine detection phase.
- * This is the threshold for correlation
- * between the old and current RF environments,
- * as explained above. */
- } wmi_motion_det_config_params_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_motion_det_base_line_config_params_cmd_fixed_param */
- A_UINT32 tlv_header; /** TLV Header */
- A_UINT32 vdev_id; /** Vdev ID */
- A_UINT32 bl_time_t; /** time T for baseline (in ms)
- * Every bl_time_t, bl_n packets are sent */
- A_UINT32 bl_packet_gap; /** gap between measurement frames for baseline
- * (in ms) */
- A_UINT32 bl_n; /** number of measurement frames to be sent
- * during one baseline */
- A_UINT32 bl_num_meas; /** number of times the baseline measurement
- * to be done */
- } wmi_motion_det_base_line_config_params_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_motion_det_start_stop_cmd_fixed_param */
- A_UINT32 tlv_header; /** TLV Header */
- A_UINT32 vdev_id; /** Vdev ID */
- A_UINT32 enable; /** start = 1, stop =0 */
- } wmi_motion_det_start_stop_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_motion_det_base_line_start_stop_cmd_fixed_param */
- A_UINT32 tlv_header; /** TLV Header */
- A_UINT32 vdev_id; /** Vdev ID */
- A_UINT32 enable; /** start = 1, stop =0 */
- } wmi_motion_det_base_line_start_stop_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_motion_det_event */
- A_UINT32 tlv_header; /** TLV Header */
- A_UINT32 vdev_id; /** Vdev ID */
- A_UINT32 status; /** status = 1 -> motion detected */
- } wmi_motion_det_event;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_motion_det_base_line_event */
- A_UINT32 tlv_header; /** TLV Header */
- A_UINT32 vdev_id; /** Vdev ID */
- A_UINT32 bl_baseline_value; /** baseline correlation value calculated
- * during baselining phase (in %) */
- A_UINT32 bl_max_corr_reserved; /** max corr value obtained during baselining
- * phase (in %); reserved for future */
- A_UINT32 bl_min_corr_reserved; /** min corr value obtained during baselining
- * phase (in %); reserved for future */
- } wmi_motion_det_base_line_event;
- /* Below structures are related to OBSS_PD_SPATIAL Reuse */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_obss_set_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** Enable/Disable Spatial Reuse */
- A_UINT32 enable;
- /*
- * In the below fields, "OBSS level" refers to the power of the
- * signals received from "Other BSS".
- * Spatial reuse will only be permitted if the Other BSS's signal power
- * is within the min to max range specified by the below fields.
- */
- /** Minimum OBSS level to use */
- A_INT32 obss_min; /* RSSI in dBm */
- /** Maximum OBSS level to use */
- A_INT32 obss_max; /* RSSI in dBm */
- /** Vdev id*/
- A_UINT32 vdev_id;
- } wmi_obss_spatial_reuse_set_cmd_fixed_param;
- /*
- * Below structure is related to WMI CMD that configures the default
- * minimum (OBSS_MIN) and maximum (OBSS_MAX) Other BSS levels (RSSI in dBm)
- * for VDEV of a give type (STA or AP). These thresholds are configured
- * within the Host and passed down to the FW. FW will use these
- * default OBSS_MIN and OBSS_MAX values during roaming if the assoc response
- * from the AP does not include spatial reuse parameter set Info Element.
- */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_obss_spatial_reuse_set_def_obss_thresh_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /*
- * In the below fields, "OBSS level" refers to the power of the
- * signals received from "Other BSS".
- * Spatial reuse will only be permitted if the Other BSS's signal power
- * is within the min to max range specified by the below fields.
- */
- /** Minimum OBSS level to use */
- A_INT32 obss_min; /* RSSI in dBm */
- /** Maximum OBSS level to use */
- A_INT32 obss_max; /* RSSI in dBm */
- /** Type of VDEV for which these threshold are applicable.
- * vdev_type should be one of WMI_VDEV_TYPE_STA or WMI_VDEV_TYPE_AP
- */
- A_UINT32 vdev_type;
- } wmi_obss_spatial_reuse_set_def_obss_thresh_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUCT_wmi_chan_width_peer_list */
- wmi_mac_addr peer_macaddr;
- A_UINT32 chan_width; /* wmi_channel_width */
- A_UINT32 puncture_20mhz_bitmap; /* per peer wmi puncture_bitmap,
- * each bit indicates one 20 MHz BW
- * punctured.
- * This variable should be read from left,
- * LSb will point to the lowest-frequency
- * 20 MHz frequency slice.
- * bit value:
- * 0 - 20 MHz BW is punctured
- * 1 - not punctured
- */
- } wmi_chan_width_peer_list;
- #define WMI_PEER_CHAN_WIDTH_SWITCH_SET_VALID_VDEV_ID(comp) WMI_SET_BITS(comp, 31,1, 1)
- #define WMI_PEER_CHAN_WIDTH_SWITCH_GET_VALID_VDEV_ID(comp) WMI_GET_BITS(comp, 31, 1)
- #define WMI_PEER_CHAN_WIDTH_SWITCH_SET_VALID_PUNCTURE_BITMAP(comp) WMI_SET_BITS(comp, 30, 1, 1)
- #define WMI_PEER_CHAN_WIDTH_SWITCH_GET_VALID_PUNCTURE_BITMAP(comp) WMI_GET_BITS(comp, 30, 1)
- /* bits 29:8 currently unused */
- #define WMI_PEER_CHAN_WIDTH_SWITCH_SET_VDEV_ID(comp, value) WMI_SET_BITS(comp, 0, 8, value)
- #define WMI_PEER_CHAN_WIDTH_SWITCH_GET_VDEV_ID(comp) WMI_GET_BITS(comp, 0, 8)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_chan_width_switch_cmd_fixed_param */
- A_UINT32 num_peers;
- /* vdev_var:
- * The MSb (bit 31) indicates that the vdev_id is valid.
- * Bit 30 indicates that the puncture bitmap is valid.
- * The LSB (bits 0-7) is used to infer the actual vdev_id.
- * The other bits can be used for future enhancements.
- */
- A_UINT32 vdev_var;
- /*
- * Following this structure is the TLV:
- * struct wmi_chan_width_peer_list chan_width_peer_info[num_peers];
- */
- } wmi_peer_chan_width_switch_cmd_fixed_param;
- #define WMI_PEER_BULK_SET_VDEV_ID(comp, value) WMI_SET_BITS(comp, 0, 8, value)
- #define WMI_PEER_BULK_GET_VDEV_ID(comp) WMI_GET_BITS(comp, 0, 8)
- /* bits 30:8 currently unused */
- #define WMI_PEER_BULK_SET_VALID_VDEV_ID(comp) WMI_SET_BITS(comp, 31, 1, 1)
- #define WMI_PEER_BULK_GET_VALID_VDEV_ID(comp) WMI_GET_BITS(comp, 31, 1)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUCT_wmi_peer_list */
- wmi_mac_addr peer_macaddr;
- /** parameter id */
- A_UINT32 param_id;
- A_UINT32 param_value;
- } wmi_peer_list;
- /* WMI_PEER_BULK_SET_CMDID */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_bulk_set_cmd_fixed_param */
- /* vdev_var:
- * The MSb (bit 31) indicates that the vdev_id is valid.
- * The LSB (bits 0-7) is used to infer the actual vdev_id.
- * The other bits can be used for future enhancements.
- */
- A_UINT32 vdev_var;
- /*
- * Following this structure is the TLV array:
- * struct wmi_peer_list peer_info[];
- */
- } wmi_peer_bulk_set_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_he_tb_action_frm_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* enable or disable HE TB Action frame */
- A_UINT32 enable;
- /* length of action frame body in bytes */
- A_UINT32 data_len;
- /* This TLV is followed by another TLV of array of bytes
- * A_UINT8 data[];
- * This data array contains the action frame raw data
- */
- } wmi_pdev_he_tb_action_frm_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_hpcs_pulse_start_cmd_fixed_param */
- A_UINT32 tlv_header; /** TLV Header */
- A_UINT32 vdev_id; /** Vdev ID */
- A_UINT32 start; /** Start/Stop */
- A_UINT32 sync_time; /** Lower 32-bit of the TSF at which the
- * pulse should be synced. */
- A_UINT32 pulse_interval; /** Periodicity of pulses in micro seconds */
- A_UINT32 active_sync_period; /** Number of beacons to sync before generating
- * pulse in units of beacon interval.
- * Valid for clock slaves only. */
- A_UINT32 gpio_pin; /** GPIO Pin number to be used */
- A_UINT32 pulse_width; /** Duration of pulse in micro seconds */
- } wmi_hpcs_pulse_start_cmd_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_muedca_params_config_event_fixed_param */
- A_UINT32 tlv_header; /** TLV Header */
- A_UINT32 pdev_id;
- /*
- * The following per-AC arrays are indexed using the
- * WMI_AC_xxx / wmi_traffic_ac enum values.
- */
- /* aifsn
- * Arbitration inter frame spacing number (AIFSN)
- * Values are integers used for back off computation.
- */
- A_UINT32 aifsn[WMI_AC_MAX];
- /* ecwmin
- * Exponent form of ContentionWindow min (ECWmin)
- * Values are integers used for back off computation.
- */
- A_UINT32 ecwmin[WMI_AC_MAX];
- /* ecwmax
- * Exponent form of ContentionWindow max (ECWmax)
- * Values are integers used for back off computation.
- */
- A_UINT32 ecwmax[WMI_AC_MAX];
- /* muedca_expiration_time
- * MU EDCA Expiration time refers to the length of time after the most
- * recent UL trigger time. The MU EDCA Timer field indicates the time
- * limit, in units of 8 TUs
- */
- A_UINT32 muedca_expiration_time[WMI_AC_MAX];
- } wmi_muedca_params_config_event_fixed_param;
- /* Default PE Duration subfield indicates the PE duration in units of 4 us */
- #define WMI_HEOPS_DEFPE_GET_D3(he_ops) WMI_GET_BITS(he_ops, 0, 3)
- #define WMI_HEOPS_DEFPE_SET_D3(he_ops, value) WMI_SET_BITS(he_ops, 0, 3, value)
- /* TWT required */
- #define WMI_HEOPS_TWT_REQUIRED_GET_D3(he_ops) WMI_GET_BITS(he_ops, 3, 1)
- #define WMI_HEOPS_TWT_REQUIRED_SET_D3(he_ops, value) WMI_SET_BITS(he_ops, 3, 1, value)
- /* RTS threshold in units of 32 us,0 - always use RTS 1023 - this is disabled */
- #define WMI_HEOPS_RTSTHLD_GET_D3(he_ops) WMI_GET_BITS(he_ops, 4, 10)
- #define WMI_HEOPS_RTSTHLD_SET_D3(he_ops, value) WMI_SET_BITS(he_ops, 4, 10, value)
- /* VHT Operation Information Present */
- #define WMI_HEOPS_VHTOPSPRSNT_GET_D3(he_ops) WMI_GET_BITS(he_ops, 14, 1)
- #define WMI_HEOPS_VHTOPSPRSNT_SET_D3(he_ops, value) WMI_SET_BITS(he_ops, 14, 1, value)
- /* Co-Located BSS */
- #define WMI_HEOPS_COLOCBSS_GET_D3(he_ops) WMI_GET_BITS(he_ops, 15, 1)
- #define WMI_HEOPS_COLOCBSS_SET_D3(he_ops, value) WMI_SET_BITS(he_ops, 15, 1, value)
- /* ER SU Disable */
- #define WMI_HEOPS_ERSUDIS_GET_D3(he_ops) WMI_GET_BITS(he_ops, 16, 1)
- #define WMI_HEOPS_ERSUDIS_SET_D3(he_ops, value) WMI_SET_BITS(he_ops, 16, 1, value)
- /* bit17 - bit23 are reserved */
- /* BSS color */
- #define WMI_HEOPS_COLOR_GET_D3(he_ops) WMI_GET_BITS(he_ops, 24, 6)
- #define WMI_HEOPS_COLOR_SET_D3(he_ops, value) WMI_SET_BITS(he_ops, 24, 6, value)
- /* Partial BSS Color field indicates whether BSS applies an AID assignment rule using partial BSS color bits */
- #define WMI_HEOPS_PARTBSSCOLOR_GET_D3(he_ops) WMI_GET_BITS(he_ops, 30, 1)
- #define WMI_HEOPS_PARTBSSCOLOR_SET_D3(he_ops, value) WMI_SET_BITS(he_ops, 30, 1, value)
- /* when set to 1 disables use of BSS color */
- #define WMI_HEOPS_BSSCOLORDISABLE_GET_D3(he_ops) WMI_GET_BITS(he_ops, 31, 1)
- #define WMI_HEOPS_BSSCOLORDISABLE_SET_D3(he_ops, value) WMI_SET_BITS(he_ops, 31, 1, value)
- /* PHY Capabilities Information field */
- /* bit 0 reserved */
- /*
- * B0: Indicates STA support 40 MHz channel width in 2.4 GHz
- * B1: Indicates STA support 40 MHz and 80 MHz channel width in 5 GHz
- * B2: Indicates STA supports 160 MHz channel width in 5 GHz
- * B3: Indicates STA supports 160/80+80 MHz channel width in 5 GHz
- * B4: If B1 is set to 0, then B5 indicates support of 242/106/52/26-tone
- * RU mapping in 40 MHz channel width in 2.4 GHz. Otherwise Reserved.
- * B5: If B2, B3, and B4 are set to 0, then B6 indicates support of
- * 242-tone RU mapping in 40 MHz and 80
- * MHz channel width in 5 GHz. Otherwise Reserved.
- * B6: Reserved
- */
- #define WMI_HECAP_PHY_CBW_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 1, 7)
- #define WMI_HECAP_PHY_CBW_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 1, 7, value)
- /*
- * B0: Indicates STA supports reception of preamble puncturing in 80 MHz,
- * where in the preamble only the secondary 20 MHz is punctured
- * B1: Indicates STA supports reception of preamble puncturing in 80 MHz,
- * where in the preamble only one of the two 20 MHz sub-channels in the
- * secondary 40 MHz is punctured
- * B2: Indicates STA supports reception of preamble puncturing in 160 MHz
- * or 80+80 MHz, where in the primary 80 MHz of the preamble only the
- * secondary 20 MHz is punctured
- * B3: Indicates STA supports reception of preamble puncturing in 160 MHz
- * or 80+80 MHz, where in the primary 80 MHz of the preamble, the
- * primary 40 MHz is present
- */
- #define WMI_HECAP_PHY_PREAMBLEPUNCRX_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 8, 4)
- #define WMI_HECAP_PHY_PREAMBLEPUNCRX_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 8, 4, value)
- /* Indicates transmitting STA is a Class A (1) or a Class B (0) device */
- #define WMI_HECAP_PHY_COD_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 12, 1)
- #define WMI_HECAP_PHY_COD_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 12, 1, value)
- /* Indicates support of transmission and reception of LDPC encoded packets */
- #define WMI_HECAP_PHY_LDPC_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 13, 1)
- #define WMI_HECAP_PHY_LDPC_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 13, 1, value)
- /*
- * B0: Indicates support of reception of 1x LTF and 0.8us guard interval duration for HE SU PPDUs.
- */
- #define WMI_HECAP_PHY_LTFGIFORHE_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 14, 1)
- #define WMI_HECAP_PHY_LTFGIFORHE_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 14, 1, value)
- /*
- * If the Doppler Rx subfield is 1, indicates the maximum number of space-time streams supported for reception
- * when a midamble is present in the Data field.
- * If the Doppler Tx subfield is 1, indicates the maximum number of space-time streams supported for transmission
- * when a midamble is present in the Data field.
- * If both Doppler Rx and Doppler Tx subfields are 1, indicates the maximum number of space-time streams
- * supported for transmission and reception when a midamble is present in the Data field.
- */
- #define WMI_HECAP_PHY_MIDAMBLETXRXMAXNSTS_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 15, 2)
- #define WMI_HECAP_PHY_MIDAMBLETXRXMAXNSTS_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 15, 2, value)
- /*
- * B0: For a transmitting STA acting as beamformee, it indicates support of
- * NDP reception using 4x LTF and 3.2 us guard interval duration
- */
- #define WMI_HECAP_PHY_LTFGIFORNDP_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 17, 1)
- #define WMI_HECAP_PHY_LTFGIFORNDP_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 17, 1, value)
- /*
- * indicates support for the transmission of an HE TB PPDU that has a
- * bandwidth less than or equal to 80 MHz and is using STBC and with
- * one spatial stream
- */
- #define WMI_HECAP_PHY_TXSTBC_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 18, 1)
- #define WMI_HECAP_PHY_TXSTBC_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 18, 1, value)
- /* indicates support for the reception of HE PPDUs using STBC with one spatial stream for <= 80MHz Tx */
- #define WMI_HECAP_PHY_RXSTBC_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 19, 1)
- #define WMI_HECAP_PHY_RXSTBC_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 19, 1, value)
- /* indicates transmitting STA supports transmitting HE PPDUs with Doppler procedure */
- #define WMI_HECAP_PHY_TXDOPPLER_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 20, 1)
- #define WMI_HECAP_PHY_TXDOPPLER_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 20, 1, value)
- /* indicates transmitting STA supports receiving HE PPDUs with Doppler procedure */
- #define WMI_HECAP_PHY_RXDOPPLER_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 21, 1)
- #define WMI_HECAP_PHY_RXDOPPLER_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 21, 1, value)
- /*
- * If the transmitting STA is an AP:
- * indicates STA supports of reception of full bandwidth UL MU-MIMO
- * transmission.
- * If the transmitting STA is a non-AP STA:
- * indicates STA supports of transmission of full bandwidth UL MU-MIMO
- * transmission.
- */
- #define WMI_HECAP_PHY_UL_MU_MIMO_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 22, 1)
- #define WMI_HECAP_PHY_UL_MU_MIMO_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 22, 1, value)
- /*
- * If the transmitting STA is an AP:
- * indicates STA supports of reception of UL MUMIMO transmission on an
- * RU in an HE MU PPDU where the RU does not span the entire PPDU bandwidth.
- * If the transmitting STA is a non-AP STA:
- * indicates STA supports of transmission of UL MU-MIMO transmission on an
- * RU in an HE MU PPDU where the RU does not span the entire PPDU bandwidth.
- */
- #define WMI_HECAP_PHY_ULMUMIMOOFDMA_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 23, 1)
- #define WMI_HECAP_PHY_ULMUMIMOOFDMA_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 23, 1, value)
- /* Tx DCM
- * B0:B1
- * 00: Does not support DCM
- * 01: BPSK
- * 10: QPSK
- * 11: 16-QAM
- * B2 signals maximum number of spatial streams with DCM
- * 0: 1 spatial stream
- * 1: 2 spatial streams
- */
- #define WMI_HECAP_PHY_DCMTX_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 24, 3)
- #define WMI_HECAP_PHY_DCMTX_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 24, 3, value)
- /* Rx DCM
- * B0:B1
- * 00: Does not support DCM
- * 01: BPSK
- * 10: QPSK
- * 11: 16-QAM
- * B2 signals maximum number of spatial streams with DCM
- * 0: 1 spatial stream
- * 1: 2 spatial streams
- */
- #define WMI_HECAP_PHY_DCMRX_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 27, 3)
- #define WMI_HECAP_PHY_DCMRX_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 27, 3, value)
- /*
- * Indicates that the STA supports the reception of an HE MU PPDU payload
- * over full bandwidth and partial bandwidth (106-tone RU within 20 MHz).
- */
- #define WMI_HECAP_PHY_ULHEMU_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 30, 1)
- #define WMI_HECAP_PHY_ULHEMU_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 30, 1, value)
- /* Indicates support for operation as an SU beamformer */
- #define WMI_HECAP_PHY_SUBFMR_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[0], 31, 1)
- #define WMI_HECAP_PHY_SUBFMR_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[0], 31, 1, value)
- /* Indicates support for operation as an SU beamformee */
- #define WMI_HECAP_PHY_SUBFME_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 0, 1)
- #define WMI_HECAP_PHY_SUBFME_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 0, 1, value)
- /* Indicates support for operation as an MU Beamformer */
- #define WMI_HECAP_PHY_MUBFMR_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 1, 1)
- #define WMI_HECAP_PHY_MUBFMR_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 1, 1, value)
- /*
- * Num STS -1 for <= 80MHz (min val 3)
- * The maximum number of space-time streams minus 1 that the STA can
- * receive in an HE NDP
- */
- #define WMI_HECAP_PHY_BFMESTSLT80MHZ_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 2, 3)
- #define WMI_HECAP_PHY_BFMESTSLT80MHZ_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 2, 3, value)
- /*
- * Num STS -1 for > 80MHz (min val 3)
- * The maximum number of space-time streams minus 1 that the STA can
- * receive in an HE NDP
- */
- #define WMI_HECAP_PHY_BFMESTSGT80MHZ_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 5, 3)
- #define WMI_HECAP_PHY_BFMESTSGT80MHZ_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 5, 3, value)
- /*
- * Number Of Sounding Dimensions For <= 80 MHz
- * If SU beamformer capable, set to the maximum supported value of the
- * TXVECTOR parameter NUM_STS minus 1.
- * Otherwise, reserved.
- */
- #define WMI_HECAP_PHY_NUMSOUNDLT80MHZ_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 8, 3)
- #define WMI_HECAP_PHY_NUMSOUNDLT80MHZ_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 8, 3, value)
- /*
- * Number Of Sounding Dimensions For > 80 MHz
- * If SU beamformer capable, set to the maximum supported value of the
- * TXVECTOR parameter NUM_STS minus 1.
- * Otherwise, reserved.
- */
- #define WMI_HECAP_PHY_NUMSOUNDGT80MHZ_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 11, 3)
- #define WMI_HECAP_PHY_NUMSOUNDGT80MHZ_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 11, 3, value)
- /*
- * Indicates if the HE beamformee is capable of feedback with tone
- * grouping of 16 in the HE Compressed Beamforming Report field for
- * a SU-type feedback.
- */
- #define WMI_HECAP_PHY_NG16SUFEEDBACKLT80_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 14, 1)
- #define WMI_HECAP_PHY_NG16SUFEEDBACKLT80_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 14, 1, value)
- /*
- * Indicates if the HE beamformee is capable of feedback with tone
- * grouping of 16 in the HE Compressed Beamforming Report field for
- * a MU-type feedback.
- */
- #define WMI_HECAP_PHY_NG16MUFEEDBACKGT80_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 15, 1)
- #define WMI_HECAP_PHY_NG16MUFEEDBACKGT80_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 15, 1, value)
- /*
- * Indicates if HE beamformee is capable of feedback with codebook
- * size {4, 2} in the HECompressed Beamforming Report field for
- * a SU-type feedback.
- */
- #define WMI_HECAP_PHY_CODBK42SU_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 16, 1)
- #define WMI_HECAP_PHY_CODBK42SU_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 16, 1, value)
- /*
- * Indicates if HE beamformee is capable of feedback with codebook
- * size {7, 5} in the HE Compressed Beamforming Report field for
- * a MU-type feedback.
- */
- #define WMI_HECAP_PHY_CODBK75MU_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 17, 1)
- #define WMI_HECAP_PHY_CODBK75MU_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 17, 1, value)
- /*
- * Beamforming Feedback With Trigger Frame
- * If the transmitting STA is an AP STA:
- * B0: indicates support of reception of SU-Type partial(1) and full bandwidth feedback(0)
- * B1: indicates support of reception of MU-Type partial(1) bandwidth feedback
- * B2: indicates support of reception of CQI-Only partial and full bandwidth feedback
- * If the transmitting STA is a non-AP STA:
- * B0: indicates support of transmission of SU-Type partial(1) and full bandwidth(0) feedback
- * B1: indicates support of transmission of MU-Type partial(1) bandwidth feedback
- * B2: indicates support of transmission of CQI-Onlypartial (1)and full bandwidth feedback
- */
- #define WMI_HECAP_PHY_BFFEEDBACKTRIG_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 18, 3)
- #define WMI_HECAP_PHY_BFFEEDBACKTRIG_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 18, 3, value)
- /* Indicates the support of transmission and reception of an HE extended range SU PPDU payload transmitted
- * over the right 106-tone RU or partial BW ER
- */
- #define WMI_HECAP_PHY_HEERSU_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 21, 1)
- #define WMI_HECAP_PHY_HEERSU_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 21, 1, value)
- /* Indicates that the non-AP STA supports reception of a DL MU-MIMO transmission on an RU in an HE MU PPDU
- * where the RU does not span the entire PPDU bandwidth.
- */
- #define WMI_HECAP_PHY_DLMUMIMOPARTIALBW_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 22, 1)
- #define WMI_HECAP_PHY_DLMUMIMOPARTIALBW_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 22, 1, value)
- /* Indicates whether or not the PPE Threshold field is present */
- #define WMI_HECAP_PHY_PETHRESPRESENT_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 23, 1)
- #define WMI_HECAP_PHY_PETHRESPRESENT_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 23, 1, value)
- /* Indicates that the STA supports SRP-based SR operation */
- #define WMI_HECAP_PHY_SRPSPRESENT_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 24, 1)
- #define WMI_HECAP_PHY_SRPPRESENT_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 24, 1, value)
- /* Indicates that the STA supports a power boost factor ar for the r-th RU in the range [0.5, 2] */
- #define WMI_HECAP_PHY_PWRBOOSTAR_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 25, 1)
- #define WMI_HECAP_PHY_PWRBOOSTAR_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 25, 1, value)
- /* Indicates support for the reception of 4x LTF and 0.8us guard interval duration for HE SU PPDUs. */
- #define WMI_HECAP_PHY_4XLTFAND800NSECSGI_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 26, 1)
- #define WMI_HECAP_PHY_4XLTFAND800NSECSGI_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 26, 1, value)
- /* For a transmitting STA acting as a beamformee, it indicates the maximum Nc for beamforming sounding
- * feedback supported If SU beamformee capable, then set to the maximum Nc for beamforming sounding feedback
- * minus 1. Otherwise, reserved.
- */
- #define WMI_HECAP_PHY_MAXNC_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 27, 3)
- #define WMI_HECAP_PHY_MAXNC_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 27, 3, value)
- /* Indicates support for the transmission of an HE PPDU that has a bandwidth greater than 80 MHz and is using
- * STBC with one spatial stream
- */
- #define WMI_HECAP_PHY_STBCTXGT80_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 30, 1)
- #define WMI_HECAP_PHY_STBCTXGT80_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 30, 1, value)
- /* Indicates support for the reception of an HE PPDU that has a bandwidth greater than 80 MHz and is using
- * STBC with one spatial stream
- */
- #define WMI_HECAP_PHY_STBCRXGT80_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[1], 31, 1)
- #define WMI_HECAP_PHY_STBCRXGT80_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[1], 31, 1, value)
- /* Indicates support for the reception of an HE ER SU PPDU with 4x LTF and 0.8 us guard interval duration */
- #define WMI_HECAP_PHY_ERSU4X800NSECGI_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 0, 1)
- #define WMI_HECAP_PHY_ERSU4X800NSECGI_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 0, 1, value)
- /*
- * Indicates support of 26-, 52-, and 106-tone mapping for a 20 MHz operating non-AP HE STA that is the
- * receiver of a 40 MHz HE MU PPDU in 2.4 GHz band, or the transmitter of a 40 MHz HE TB PPDU in 2.4GHz band.
- */
- #define WMI_HECAP_PHY_HEPPDU20IN40MHZ2G_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 1, 1)
- #define WMI_HECAP_PHY_HEPPDU20IN40MHZ2G_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 1, 1, value)
- /*
- * Indicates support of 26-, 52-, and 106-tone mapping for a 20 MHz operating non-AP HE STA that is the
- * receiver of a 80+80 MHz or a 160 MHz HE MU PPDU, or the transmitter of a 80+80 MHz or 160 MHz HE TB PPDU.
- */
- #define WMI_HECAP_PHY_HEPPDU20IN160OR80P80MHZ_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 2, 1)
- #define WMI_HECAP_PHY_HEPPDU20IN160OR80P80MHZ_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 2, 1, value)
- /*
- * Indicates supports of 160 MHz OFDMA for a non-AP HE STA that sets bit B1 of Channel Width Set to 1, and
- * sets B2 and B3 of Channel Width Set each to 0, when operating with 80 MHz channel width. The capability
- * bit is applicable while receiving a 80+80 MHz or a 160 MHz HE MU PPDU, or transmitting a 80+80 MHz or a
- * 160 MHz HE TB PPDU.
- */
- #define WMI_HECAP_PHY_HEPPDU80IN160OR80P80MHZ_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 3, 1)
- #define WMI_HECAP_PHY_HEPPDU80IN160OR80P80MHZ_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 3, 1, value)
- /* Indicates support for the reception of an HE ER SU PPDU with 1x LTF and 0.8 us guard interval duration */
- #define WMI_HECAP_PHY_ERSU1X800NSECGI_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 4, 1)
- #define WMI_HECAP_PHY_ERSU1X800NSECGI_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 4, 1, value)
- /*
- * If the Doppler Rx subfield is 1, indicates support for receiving midambles with 2x HE-LTF, 1x HE-LTF in
- * HE SU PPDU if the HE SU PPDU With 1x HE-LTF And 0.8 s GI subfield is set to 1, and 1x HE-LTF in
- * HE ER SU PPDU if the HE ER SU PPDU With 1x HELTF And 0.8 s GI subfield is set to 1.
- *
- * If the Doppler Tx subfield is 1, indicates support for transmitting midambles with 2x HE-LTF, 1x HE-LTF
- * in HE TB PPDU when allowed.
- * If both the Doppler Rx and Doppler Tx subfields are 1, indicates support for receiving midambles with 2x HELTF,
- * 1x HE-LTF in HE SU PPDU if the HE SU PPDU With 1x HE-LTF And 0.8 s GI subfield is set to 1, and
- * 1x HE-LTF in HE ER SU PPDU if the HE ER SU PPDU With 1x HE-LTF And 0.8 s GI subfield is set
- * to 1; and also support for transmitting midambles with 2x HE-LTF, 1x HE-LTF in HE TB PPDU when allowed.
- */
- #define WMI_HECAP_PHY_MIDAMBLETXRX2XAND1XHELTF_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 5, 1)
- #define WMI_HECAP_PHY_MIDAMBLETXRX2XAND1XHELTF_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 5, 1, value)
- /*
- * If the DCM Max Constellation Tx subfield is greater than 0, then the DCM Max BW subfield indicates the
- * maximum bandwidth of a PPDU that the STA might transmit with DCM applied.
- *
- * If the DCM Max Constellation Rx subfield is greater than 0, then the DCM Max BW subfield indicates the
- * maximum bandwidth of a PPDU with DCM applied that the STA can receive.
- *
- * If both the DCM Max Constellation Tx subfield and DCM Max Constellation Rx subfield are 0, then this
- * subfield is reserved.
- *
- * 0=20MHz, 1=40Mhz, 2=80Mhz, 3=160Mhz or 80+80Mhz
- */
- #define WMI_HECAP_PHY_DCMMAXBW_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 6, 2)
- #define WMI_HECAP_PHY_DCMMAXBW_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 6, 2, value)
- /*
- * For a non-AP STA, indicates support for receiving a DL HE MU PPDU where the number of OFDM symbols
- * in the HE SIG-B field is greater than 16.
- */
- #define WMI_HECAP_PHY_LNG16SIGBSYMBSUPRT_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 8, 1)
- #define WMI_HECAP_PHY_LNG16SIGBSYMBSUPRT_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 8, 1, value)
- /*
- * For an AP, indicates support for the reception of full bandwidth non-triggered CQI-only feedback.
- * For a non-AP STA, indicates support for the transmission of full bandwidth non-triggered CQI-only feedback.
- */
- #define WMI_HECAP_PHY_NONTRIGCQIFEEDBK_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 9, 1)
- #define WMI_HECAP_PHY_NONTRIGCQIFEEDBK_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 9, 1, value)
- /*
- * For a non-AP STA, indicates support for the transmission of 1024-QAM on a 26-, 52-, and 106-tone RU.
- * Reserved for an AP.
- */
- #define WMI_HECAP_PHY_TX1024QAM242RUSUPRT_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 10, 1)
- #define WMI_HECAP_PHY_TX1024QAM242RUSUPRT_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 10, 1, value)
- /*
- * Indicates support for the reception of 1024-QAM on a 26-, 52-, and 106-tone RU.
- */
- #define WMI_HECAP_PHY_RX1024QAM242RUSUPRT_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 11, 1)
- #define WMI_HECAP_PHY_RX1024QAM242RUSUPRT_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 11, 1, value)
- /*
- * Indicates support for reception of an HE MU PPDU with an RU spanning the entire PPDU bandwidth and a
- * compressed HE-SIG-B format.
- */
- #define WMI_HECAP_PHY_RXFULBWSUWCMPRSSIGB_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 12, 1)
- #define WMI_HECAP_PHY_RXFULBWSUWCMPRSSIGB_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 12, 1, value)
- /*
- * Indicates support for reception of an HE MU PPDU with a bandwidth less than or equal to 80 MHz, an RU
- * spanning the entire PPDU bandwidth and a non-compressed HE-SIG-B format.
- */
- #define WMI_HECAP_PHY_RXFULBWSUWNONCMPRSSIGB_GET_D3(he_cap_phy) WMI_GET_BITS(he_cap_phy[2], 13, 1)
- #define WMI_HECAP_PHY_RXFULBWSUWNONCMPRSSIGB_SET_D3(he_cap_phy, value) WMI_SET_BITS(he_cap_phy[2], 13, 1, value)
- /* HE MAC Capabilities Information field format */
- /* HTC + HE Support Set to 1 if STA supports reception of HE Variant HT control Field */
- #define WMI_HECAP_MAC_HECTRL_GET_D3(he_cap) WMI_GET_BITS(he_cap, 0, 1)
- #define WMI_HECAP_MAC_HECTRL_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 0, 1, value)
- /* set to 1 to for TWT Requestor support */
- #define WMI_HECAP_MAC_TWTREQ_GET_D3(he_cap) WMI_GET_BITS(he_cap, 1, 1)
- #define WMI_HECAP_MAC_TWTREQ_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 1, 1, value)
- /* set to 1 to for TWT Responder support */
- #define WMI_HECAP_MAC_TWTRSP_GET_D3(he_cap) WMI_GET_BITS(he_cap, 2, 1)
- #define WMI_HECAP_MAC_TWTRSP_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 2, 1, value)
- /* Level of frag support
- Set to 0 for no support for dynamic fragmentation.
- Set to 1 for support for dynamic fragments that are contained within a S-MPDU
- Set to 2 for support for dynamic fragments that are contained within a Single MPDU and support for up to
- one dynamic fragment for each MSDU and each MMPDU within an A-MPDU or multi-TID A-MPDU.
- Set to 3 for support for dynamic fragments that are contained within a Single MPDU and support for multiple
- dynamic fragments for each MSDU within an AMPDU or multi-TID AMPDU and up to one dynamic fragment
- for each MMPDU in a multi-TID A-MPDU that is not a Single MPDU
- */
- #define WMI_HECAP_MAC_HEFRAG_GET_D3(he_cap) WMI_GET_BITS(he_cap, 3, 2)
- #define WMI_HECAP_MAC_HEFRAG_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 3, 2, value)
- /* The maximum number of fragmented MSDUs, Nmax,defined by this field is Nmax = 2 Maximum Number Of FMPDUs */
- #define WMI_HECAP_MAC_MAXFRAGMSDU_GET_D3(he_cap) WMI_GET_BITS(he_cap, 5, 3)
- #define WMI_HECAP_MAC_MAXFRAGMSDU_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 5, 3, value)
- /* 0 = no restriction on the minimum payload , 1 = 128 octets min, 2 = 256 octets min, 3 = 512 octets min */
- #define WMI_HECAP_MAC_MINFRAGSZ_GET_D3(he_cap) WMI_GET_BITS(he_cap, 8, 2)
- #define WMI_HECAP_MAC_MINFRAGSZ_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 8, 2, value)
- /*0 = no additional processing time, 1 = 8us,2 = 16us */
- #define WMI_HECAP_MAC_TRIGPADDUR_GET_D3(he_cap) WMI_GET_BITS(he_cap, 10, 2)
- #define WMI_HECAP_MAC_TRIGPADDUR_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 10, 2, value)
- /* Indicates the number of TIDs of QoS Data frames that an HE STA can receive in a multi-TID AMPDU */
- #define WMI_HECAP_MAC_MTID_RX_GET_D3(he_cap) WMI_GET_BITS(he_cap, 12, 3)
- #define WMI_HECAP_MAC_MTID_RX_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 12, 3, value)
- /* Indicates support for link adaptation using the HLA Control subfield. */
- #define WMI_HECAP_MAC_HELINK_ADPT_GET_D3(he_cap) WMI_GET_BITS(he_cap, 15, 2)
- #define WMI_HECAP_MAC_HELINK_ADPT_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 15, 2, value)
- /* Set to 1 for reception of AllAck support */
- #define WMI_HECAP_MAC_AACK_GET_D3(he_cap) WMI_GET_BITS(he_cap, 17, 1)
- #define WMI_HECAP_MAC_AACK_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 17, 1, value)
- /* Set to 1 if the STA supports reception of the UL MU Response Scheduling A-Control field */
- #define WMI_HECAP_MAC_TRS_GET_D3(he_cap) WMI_GET_BITS(he_cap, 18, 1)
- #define WMI_HECAP_MAC_TRS_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 18, 1, value)
- /* Set to 1 if the STA supports the BSR A-Control field functionality.*/
- #define WMI_HECAP_MAC_BSR_GET_D3(he_cap) WMI_GET_BITS(he_cap, 19, 1)
- #define WMI_HECAP_MAC_BSR_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 19, 1, value)
- /* Set to 1 when the STA supports broadcast TWT functionality.*/
- #define WMI_HECAP_MAC_BCSTTWT_GET_D3(he_cap) WMI_GET_BITS(he_cap, 20, 1)
- #define WMI_HECAP_MAC_BCSTTWT_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 20, 1, value)
- /* Set to 1 if STA supports rx of Multi-STA BA that has 32-bit Block Ack Bitmap */
- #define WMI_HECAP_MAC_32BITBA_GET_D3(he_cap) WMI_GET_BITS(he_cap, 21, 1)
- #define WMI_HECAP_MAC_32BITBA_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 21, 1, value)
- /* Set to 1 if the STA supports MU cascading operation */
- #define WMI_HECAP_MAC_MUCASCADE_GET_D3(he_cap) WMI_GET_BITS(he_cap, 22, 1)
- #define WMI_HECAP_MAC_MUCASCADE_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 22, 1, value)
- /* Set to 1 when the STA supports reception of this multi-TID A-MPDU format */
- #define WMI_HECAP_MAC_ACKMTIDAMPDU_GET_D3(he_cap) WMI_GET_BITS(he_cap, 23, 1)
- #define WMI_HECAP_MAC_ACKMTIDAMPDU_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 23, 1, value)
- /* bit 24 - reserved */
- /* Set to 1 if the STA supports reception of the OMI A-Control field */
- #define WMI_HECAP_MAC_OMI_GET_D3(he_cap) WMI_GET_BITS(he_cap, 25, 1)
- #define WMI_HECAP_MAC_OMI_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 25, 1, value)
- /*1 if OFDMA Random Access Supported */
- #define WMI_HECAP_MAC_OFDMARA_GET_D3(he_cap) WMI_GET_BITS(he_cap, 26, 1)
- #define WMI_HECAP_MAC_OFDMARA_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 26, 1, value)
- /* Maximum AMPDU Length Exponent.
- * If the HE STA includes a VHT Capabilities element, the Maximum A-MPDU Length Exponent subfield in
- * HE Capabilities element combined with the Maximum A-MPDU Length Exponent subfield in VHT
- * Capabilities element indicate the maximum length of A-MPDU that the STA can Receive where EOF
- * padding is not included in this limit.
- */
- #define WMI_HECAP_MAC_MAXAMPDULEN_EXP_GET_D3(he_cap) WMI_GET_BITS(he_cap, 27, 2)
- #define WMI_HECAP_MAC_MAXAMPDULEN_EXP_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 27, 2, value)
- /* A-MSDU Fragmentation Support */
- #define WMI_HECAP_MAC_AMSDUFRAG_GET_D3(he_cap) WMI_GET_BITS(he_cap, 29, 1)
- #define WMI_HECAP_MAC_AMSDUFRAG_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 29, 1, value)
- /* Flexible TWT Schedule Support */
- #define WMI_HECAP_MAC_FLEXTWT_GET_D3(he_cap) WMI_GET_BITS(he_cap, 30, 1)
- #define WMI_HECAP_MAC_FLEXTWT_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 30, 1, value)
- /* Rx Control Frame to MultiBSS */
- #define WMI_HECAP_MAC_MBSS_GET_D3(he_cap) WMI_GET_BITS(he_cap, 31, 1)
- #define WMI_HECAP_MAC_MBSS_SET_D3(he_cap, value) WMI_SET_BITS(he_cap, 31, 1, value)
- /* 2nd DWORD of HE MAC Capabilities */
- /* BSRP A-MPDU Aggregation
- * maintaining compatibility since we don't support this now so not wasting memory
- */
- #define WMI_HECAP_MAC_BSRPAMPDU_GET_D3(he_cap2) WMI_GET_BITS(he_cap2, 0, 1)
- #define WMI_HECAP_MAC_BSRPAMPDU_SET_D3(he_cap2, value) WMI_SET_BITS(he_cap2, 0, 1, value)
- /* Quiet Time Period (QTP) operation
- * maintaining compatibility since we don't support this now so not wasting memory
- */
- #define WMI_HECAP_MAC_QTP_GET_D3(he_cap2) WMI_GET_BITS(he_cap2, 1, 1)
- #define WMI_HECAP_MAC_QTP_SET_D3(he_cap2, value) WMI_SET_BITS(he_cap2, 1, 1, value)
- /* support by an AP for receiving an (A-)MPDU that contains a BQR in the
- * A-Control subfield and support by a non-AP STA for generating an (A-)MPDU
- * that contains a BQR in the A-Control subfield
- * maintaining compatibility since we don't support this now so not wasting memory
- */
- #define WMI_HECAP_MAC_ABQR_GET_D3(he_cap2) WMI_GET_BITS(he_cap2, 2, 1)
- #define WMI_HECAP_MAC_ABQR_SET_D3(he_cap2, value) WMI_SET_BITS(he_cap2, 2, 1, value)
- /* Indicates support by the STA for the role of SRP Responder.*/
- #define WMI_HECAP_MAC_SRPRESP_GET_D3(he_cap2) WMI_GET_BITS(he_cap2, 3, 1)
- #define WMI_HECAP_MAC_SRPRESP_SET_D3(he_cap2, value) WMI_SET_BITS(he_cap2, 3, 1, value)
- /* Indicates support for a non-AP STA to follow the NDP feedback report procedure and respond to
- * the NDP Feedback Report Poll Trigger frame.
- */
- #define WMI_HECAP_MAC_NDPFDBKRPT_GET_D3(he_cap2) WMI_GET_BITS(he_cap2, 4, 1)
- #define WMI_HECAP_MAC_NDPFDBKRPT_SET_D3(he_cap2, value) WMI_SET_BITS(he_cap2, 4, 1, value)
- /* Indicates support for an AP to encode OPS information to TIM element of the FILS Discovery
- * frames or TIM frames as described in AP operation for opportunistic power save.
- * Indicates support for a non-AP STA to receive the opportunistic power save encoded TIM elements
- */
- #define WMI_HECAP_MAC_OPS_GET_D3(he_cap2) WMI_GET_BITS(he_cap2, 5, 1)
- #define WMI_HECAP_MAC_OPS_SET_D3(he_cap2, value) WMI_SET_BITS(he_cap2, 5, 1, value)
- /* Indicates support by a STA to receive an ack-enabled A-MPDU in which an A-MSDU is carried in
- * a QoS Data frame for which no block ack agreement exists.
- */
- #define WMI_HECAP_MAC_AMSDUINAMPDU_GET_D3(he_cap2) WMI_GET_BITS(he_cap2, 6, 1)
- #define WMI_HECAP_MAC_AMSDUINAMPDU_SET_D3(he_cap2, value) WMI_SET_BITS(he_cap2, 6, 1, value)
- /* Indicates the number of TIDs of QoS Data frames that an HE STA can transmit in a multi-TID AMPDU */
- #define WMI_HECAP_MAC_MTID_TX_GET_D3(he_cap2) WMI_GET_BITS(he_cap2, 7, 3)
- #define WMI_HECAP_MAC_MTID_TX_SET_D3(he_cap2, value) WMI_SET_BITS(he_cap2, 7, 3, value)
- /* Indicates whether an HE STA supports an HE subchannel selective transmission operation */
- #define WMI_HECAP_MAC_SUBCHANSELTX_GET_D3(he_cap2) WMI_GET_BITS(he_cap2, 10, 1)
- #define WMI_HECAP_MAC_SUBCHANSELTX_SET_D3(he_cap2, value) WMI_SET_BITS(he_cap2, 10, 1, value)
- /* Indicates support by a STA to receive a TRS Control subfield or a Trigger frame with a User Info
- * field addressed to the STA with the RU Allocation subfield of the TRS Control subfield or the User
- * Info field indicating 2x996-tone.
- */
- #define WMI_HECAP_MAC_UL2X996RU_GET_D3(he_cap2) WMI_GET_BITS(he_cap2, 11, 1)
- #define WMI_HECAP_MAC_UL2X996RU_SET_D3(he_cap2, value) WMI_SET_BITS(he_cap2, 11, 1, value)
- /* Indicates whether an AP supports interpretation of the UL MU Data Disable subfield of the OM Control subfield */
- #define WMI_HECAP_MAC_OMCULMUDDIS_GET_D3(he_cap2) WMI_GET_BITS(he_cap2, 12, 1)
- #define WMI_HECAP_MAC_OMCULMUDDIS_SET_D3(he_cap2, value) WMI_SET_BITS(he_cap2, 12, 1, value)
- /* Indicates the spatial multiplexing power save mode after receiving a
- * Trigger frame that is in operation immediately after (re)association.
- */
- #define WMI_HECAP_MAC_DYNSMPWRSAVE_GET_D3(he_cap2) WMI_GET_BITS(he_cap2, 13, 1)
- #define WMI_HECAP_MAC_DYNSMPWRSAVE_SET_D3(he_cap2, value) WMI_SET_BITS(he_cap2, 13, 1, value)
- /* Indicates support for Punctured Sounding */
- #define WMI_HECAP_MAC_PUNCSOUNDING_GET_D3(he_cap2) WMI_GET_BITS(he_cap2, 14, 1)
- #define WMI_HECAP_MAC_PUNCSOUNDING_SET_D3(he_cap2, value) WMI_SET_BITS(he_cap2, 14, 1, value)
- /* Indicates support for receiving a Trigger frame in an HT PPDU and
- * receiving a Trigger frame in a VHT PPDU
- */
- #define WMI_HECAP_MAC_HTVHTTRIGRX_GET_D3(he_cap2) WMI_GET_BITS(he_cap2, 15, 1)
- #define WMI_HECAP_MAC_HTVHTTRIGRX_SET_D3(he_cap2, value) WMI_SET_BITS(he_cap2, 15, 1, value)
- /*
- * The following conditionally-defined macros can be used in systems
- * which only support either 802.11ax draft 2 or 802.11ax draft 3,
- * but not both, and which make this D2 vs. D3 selection at build time.
- */
- #ifdef SUPPORT_11AX_D3
- #define WMI_HEOPS_COLOR_GET WMI_HEOPS_COLOR_GET_D3
- #define WMI_HEOPS_COLOR_SET WMI_HEOPS_COLOR_SET_D3
- #define WMI_HEOPS_DEFPE_GET WMI_HEOPS_DEFPE_GET_D3
- #define WMI_HEOPS_DEFPE_SET WMI_HEOPS_DEFPE_SET_D3
- #define WMI_HEOPS_TWT_REQUIRED_GET WMI_HEOPS_TWT_REQUIRED_GET_D3
- #define WMI_HEOPS_TWT_REQUIRED_SET WMI_HEOPS_TWT_REQUIRED_SET_D3
- #define WMI_HEOPS_TWT_GET WMI_HEOPS_TWT_REQUIRED_GET_D3 /* DEPRECATED, use WMI_HEOPS_TWT_REQUIRED_GET */
- #define WMI_HEOPS_TWT_SET WMI_HEOPS_TWT_REQUIRED_SET_D3 /* DEPRECATED, use WMI_HEOPS_TWT_REQUIRED_SET */
- #define WMI_HEOPS_RTSTHLD_GET WMI_HEOPS_RTSTHLD_GET_D3
- #define WMI_HEOPS_RTSTHLD_SET WMI_HEOPS_RTSTHLD_SET_D3
- #define WMI_HEOPS_PARTBSSCOLOR_GET WMI_HEOPS_PARTBSSCOLOR_GET_D3
- #define WMI_HEOPS_PARTBSSCOLOR_SET WMI_HEOPS_PARTBSSCOLOR_SET_D3
- #define WMI_HEOPS_COLOCBSS_GET WMI_HEOPS_COLOCBSS_GET_D3
- #define WMI_HEOPS_COLOCBSS_SET WMI_HEOPS_COLOCBSS_SET_D3
- #define WMI_HEOPS_VHTOPSPRSNT_GET WMI_HEOPS_VHTOPSPRSNT_GET_D3
- #define WMI_HEOPS_VHTOPSPRSNT_SET WMI_HEOPS_VHTOPSPRSNT_SET_D3
- #define WMI_HEOPS_ERSUDIS_GET WMI_HEOPS_ERSUDIS_GET_D3
- #define WMI_HEOPS_ERSUDIS_SET WMI_HEOPS_ERSUDIS_SET_D3
- #define WMI_HEOPS_BSSCOLORDISABLE_GET WMI_HEOPS_BSSCOLORDISABLE_GET_D3
- #define WMI_HEOPS_BSSCOLORDISABLE_SET WMI_HEOPS_BSSCOLORDISABLE_SET_D3
- #define WMI_HEOPS_TXBSSID_GET(he_ops) (0) /* DEPRECATED - DO NOT USE */
- #define WMI_HEOPS_TXBSSID_SET(he_ops, value) /* DEPRECATED - DO NOT USE */
- #define WMI_HECAP_PHY_CBW_GET WMI_HECAP_PHY_CBW_GET_D3
- #define WMI_HECAP_PHY_CBW_SET WMI_HECAP_PHY_CBW_SET_D3
- #define WMI_HECAP_PHY_PREAMBLEPUNCRX_GET WMI_HECAP_PHY_PREAMBLEPUNCRX_GET_D3
- #define WMI_HECAP_PHY_PREAMBLEPUNCRX_SET WMI_HECAP_PHY_PREAMBLEPUNCRX_SET_D3
- #define WMI_HECAP_PHY_COD_GET WMI_HECAP_PHY_COD_GET_D3
- #define WMI_HECAP_PHY_COD_SET WMI_HECAP_PHY_COD_SET_D3
- #define WMI_HECAP_PHY_LDPC_GET WMI_HECAP_PHY_LDPC_GET_D3
- #define WMI_HECAP_PHY_LDPC_SET WMI_HECAP_PHY_LDPC_SET_D3
- #define WMI_HECAP_PHY_TXLDPC_GET WMI_HECAP_PHY_LDPC_GET /* Deprecated use WMI_HECAP_PHY_LDPC */
- #define WMI_HECAP_PHY_TXLDPC_SET WMI_HECAP_PHY_LDPC_SET /* Deprecated use WMI_HECAP_PHY_LDPC */
- #define WMI_HECAP_PHY_RXLDPC_GET WMI_HECAP_PHY_LDPC_GET /* Deprecated use WMI_HECAP_PHY_LDPC */
- #define WMI_HECAP_PHY_RXLDPC_SET WMI_HECAP_PHY_LDPC_SET /* Deprecated use WMI_HECAP_PHY_LDPC */
- #define WMI_HECAP_PHY_LTFGIFORHE_GET WMI_HECAP_PHY_LTFGIFORHE_GET_D3
- #define WMI_HECAP_PHY_LTFGIFORHE_SET WMI_HECAP_PHY_LTFGIFORHE_SET_D3
- #define WMI_HECAP_PHY_MIDAMBLETXRXMAXNSTS_GET WMI_HECAP_PHY_MIDAMBLETXRXMAXNSTS_GET_D3
- #define WMI_HECAP_PHY_MIDAMBLETXRXMAXNSTS_SET WMI_HECAP_PHY_MIDAMBLETXRXMAXNSTS_SET_D3
- #define WMI_HECAP_PHY_LTFGIFORNDP_GET WMI_HECAP_PHY_LTFGIFORNDP_GET_D3
- #define WMI_HECAP_PHY_LTFGIFORNDP_SET WMI_HECAP_PHY_LTFGIFORNDP_SET_D3
- #define WMI_HECAP_PHY_TXSTBC_GET WMI_HECAP_PHY_TXSTBC_GET_D3
- #define WMI_HECAP_PHY_TXSTBC_SET WMI_HECAP_PHY_TXSTBC_SET_D3
- #define WMI_HECAP_PHY_RXSTBC_GET WMI_HECAP_PHY_RXSTBC_GET_D3
- #define WMI_HECAP_PHY_RXSTBC_SET WMI_HECAP_PHY_RXSTBC_SET_D3
- #define WMI_HECAP_PHY_TXDOPPLER WMI_HECAP_PHY_TXDOPPLER_GET_D3
- #define WMI_HECAP_PHY_TXDOPPLER_SET WMI_HECAP_PHY_TXDOPPLER_SET_D3
- #define WMI_HECAP_PHY_RXDOPPLER_GET WMI_HECAP_PHY_RXDOPPLER_GET_D3
- #define WMI_HECAP_PHY_RXDOPPLER_SET WMI_HECAP_PHY_RXDOPPLER_SET_D3
- #define WMI_HECAP_PHY_UL_MU_MIMO_GET WMI_HECAP_PHY_UL_MU_MIMO_GET_D3
- #define WMI_HECAP_PHY_UL_MU_MIMO_SET WMI_HECAP_PHY_UL_MU_MIMO_SET_D3
- #define WMI_HECAP_PHY_ULMUMIMOOFDMA_GET WMI_HECAP_PHY_ULMUMIMOOFDMA_GET_D3
- #define WMI_HECAP_PHY_ULMUMIMOOFDMA_SET WMI_HECAP_PHY_ULMUMIMOOFDMA_SET_D3
- #define WMI_HECAP_PHY_DCMTX_GET WMI_HECAP_PHY_DCMTX_GET_D3
- #define WMI_HECAP_PHY_DCMTX_SET WMI_HECAP_PHY_DCMTX_SET_D3
- #define WMI_HECAP_PHY_DCMRX_GET WMI_HECAP_PHY_DCMRX_GET_D3
- #define WMI_HECAP_PHY_DCMRX_SET WMI_HECAP_PHY_DCMRX_SET_D3
- /* DEPRECATED - use WMI_HECAP_PHY_DCMRX or WMI_HECAP_PHY_DCMTX */
- #define WMI_HECAP_PHY_DCM_GET WMI_HECAP_PHY_DCMRX_GET_D3
- #define WMI_HECAP_PHY_DCM_SET WMI_HECAP_PHY_DCMRX_SET_D3
- #define WMI_HECAP_PHY_ULHEMU_GET WMI_HECAP_PHY_ULHEMU_GET_D3
- #define WMI_HECAP_PHY_ULHEMU_SET WMI_HECAP_PHY_ULHEMU_SET_D3
- #define WMI_HECAP_PHY_SUBFMR_GET WMI_HECAP_PHY_SUBFMR_GET_D3
- #define WMI_HECAP_PHY_SUBFMR_SET WMI_HECAP_PHY_SUBFMR_SET_D3
- #define WMI_HECAP_PHY_SUBFME_GET WMI_HECAP_PHY_SUBFME_GET_D3
- #define WMI_HECAP_PHY_SUBFME_SET WMI_HECAP_PHY_SUBFME_SET_D3
- #define WMI_HECAP_PHY_MUBFMR_GET WMI_HECAP_PHY_MUBFMR_GET_D3
- #define WMI_HECAP_PHY_MUBFMR_SET WMI_HECAP_PHY_MUBFMR_SET_D3
- #define WMI_HECAP_PHY_BFMESTSLT80MHZ_GET WMI_HECAP_PHY_BFMESTSLT80MHZ_GET_D3
- #define WMI_HECAP_PHY_BFMESTSLT80MHZ_SET WMI_HECAP_PHY_BFMESTSLT80MHZ_SET_D3
- #define WMI_HECAP_PHY_BFMESTSGT80MHZ_GET WMI_HECAP_PHY_BFMESTSGT80MHZ_GET_D3
- #define WMI_HECAP_PHY_BFMESTSGT80MHZ_SET WMI_HECAP_PHY_BFMESTSGT80MHZ_SET_D3
- #define WMI_HECAP_PHY_NSTSLT80MHZ_GET WMI_HECAP_PHY_BFMESTSLT80MHZ_GET_D3
- #define WMI_HECAP_PHY_NSTSLT80MHZ_SET WMI_HECAP_PHY_BFMESTSLT80MHZ_SET_D3
- #define WMI_HECAP_PHY_NSTSGT80MHZ_GET WMI_HECAP_PHY_BFMESTSGT80MHZ_GET_D3
- #define WMI_HECAP_PHY_NSTSGT80MHZ_SET WMI_HECAP_PHY_BFMESTSGT80MHZ_SET_D3
- #define WMI_HECAP_PHY_NUMSOUNDLT80MHZ_GET WMI_HECAP_PHY_NUMSOUNDLT80MHZ_GET_D3
- #define WMI_HECAP_PHY_NUMSOUNDLT80MHZ_SET WMI_HECAP_PHY_NUMSOUNDLT80MHZ_SET_D3
- #define WMI_HECAP_PHY_NUMSOUNDGT80MHZ_GET WMI_HECAP_PHY_NUMSOUNDGT80MHZ_GET_D3
- #define WMI_HECAP_PHY_NUMSOUNDGT80MHZ_SET WMI_HECAP_PHY_NUMSOUNDGT80MHZ_SET_D3
- #define WMI_HECAP_PHY_NG16SUFEEDBACKLT80_GET WMI_HECAP_PHY_NG16SUFEEDBACKLT80_GET_D3
- #define WMI_HECAP_PHY_NG16SUFEEDBACKLT80_SET WMI_HECAP_PHY_NG16SUFEEDBACKLT80_SET_D3
- #define WMI_HECAP_PHY_NG16MUFEEDBACKGT80_GET WMI_HECAP_PHY_NG16MUFEEDBACKGT80_GET_D3
- #define WMI_HECAP_PHY_NG16MUFEEDBACKGT80_SET WMI_HECAP_PHY_NG16MUFEEDBACKGT80_SET_D3
- #define WMI_HECAP_PHY_CODBK42SU_GET WMI_HECAP_PHY_CODBK42SU_GET_D3
- #define WMI_HECAP_PHY_CODBK42SU_SET WMI_HECAP_PHY_CODBK42SU_SET_D3
- #define WMI_HECAP_PHY_CODBK75MU_GET WMI_HECAP_PHY_CODBK75MU_GET_D3
- #define WMI_HECAP_PHY_CODBK75MU_SET WMI_HECAP_PHY_CODBK75MU_SET_D3
- #define WMI_HECAP_PHY_BFFEEDBACKTRIG_GET WMI_HECAP_PHY_BFFEEDBACKTRIG_GET_D3
- #define WMI_HECAP_PHY_BFFEEDBACKTRIG_SET WMI_HECAP_PHY_BFFEEDBACKTRIG_SET_D3
- #define WMI_HECAP_PHY_HEERSU_GET WMI_HECAP_PHY_HEERSU_GET_D3
- #define WMI_HECAP_PHY_HEERSU_SET WMI_HECAP_PHY_HEERSU_SET_D3
- #define WMI_HECAP_PHY_DLMUMIMOPARTIALBW_GET WMI_HECAP_PHY_DLMUMIMOPARTIALBW_GET_D3
- #define WMI_HECAP_PHY_DLMUMIMOPARTIALBW_SET WMI_HECAP_PHY_DLMUMIMOPARTIALBW_SET_D3
- #define WMI_HECAP_PHY_PETHRESPRESENT_GET WMI_HECAP_PHY_PETHRESPRESENT_GET_D3
- #define WMI_HECAP_PHY_PETHRESPRESENT_SET WMI_HECAP_PHY_PETHRESPRESENT_SET_D3
- #define WMI_HECAP_PHY_SRPSPRESENT_GET WMI_HECAP_PHY_SRPSPRESENT_GET_D3
- #define WMI_HECAP_PHY_SRPPRESENT_SET WMI_HECAP_PHY_SRPPRESENT_SET_D3
- #define WMI_HECAP_PHY_PWRBOOSTAR_GET WMI_HECAP_PHY_PWRBOOSTAR_GET_D3
- #define WMI_HECAP_PHY_PWRBOOSTAR_SET WMI_HECAP_PHY_PWRBOOSTAR_SET_D3
- #define WMI_HECAP_PHY_4XLTFAND800NSECSGI_GET WMI_HECAP_PHY_4XLTFAND800NSECSGI_GET_D3
- #define WMI_HECAP_PHY_4XLTFAND800NSECSGI_SET WMI_HECAP_PHY_4XLTFAND800NSECSGI_SET_D3
- #define WMI_HECAP_PHY_MAXNC_GET WMI_HECAP_PHY_MAXNC_GET_D3
- #define WMI_HECAP_PHY_MAXNC_SET WMI_HECAP_PHY_MAXNC_SET_D3
- #define WMI_HECAP_PHY_STBCTXGT80_GET WMI_HECAP_PHY_STBCTXGT80_GET_D3
- #define WMI_HECAP_PHY_STBCTXGT80_SET WMI_HECAP_PHY_STBCTXGT80_SET_D3
- #define WMI_HECAP_PHY_STBCRXGT80_GET WMI_HECAP_PHY_STBCRXGT80_GET_D3
- #define WMI_HECAP_PHY_STBCRXGT80_SET WMI_HECAP_PHY_STBCRXGT80_SET_D3
- #define WMI_HECAP_PHY_ERSU4X800NSECGI_GET WMI_HECAP_PHY_ERSU4X800NSECGI_GET_D3
- #define WMI_HECAP_PHY_ERSU4X800NSECGI_SET WMI_HECAP_PHY_ERSU4X800NSECGI_SET_D3
- #define WMI_HECAP_PHY_HEPPDU20IN40MHZ2G_GET WMI_HECAP_PHY_HEPPDU20IN40MHZ2G_GET_D3
- #define WMI_HECAP_PHY_HEPPDU20IN40MHZ2G_SET WMI_HECAP_PHY_HEPPDU20IN40MHZ2G_SET_D3
- #define WMI_HECAP_PHY_HEPPDU20IN160OR80P80MHZ_GET WMI_HECAP_PHY_HEPPDU20IN160OR80P80MHZ_GET_D3
- #define WMI_HECAP_PHY_HEPPDU20IN160OR80P80MHZ_SET WMI_HECAP_PHY_HEPPDU20IN160OR80P80MHZ_SET_D3
- #define WMI_HECAP_PHY_HEPPDU80IN160OR80P80MHZ_GET WMI_HECAP_PHY_HEPPDU80IN160OR80P80MHZ_GET_D3
- #define WMI_HECAP_PHY_HEPPDU80IN160OR80P80MHZ_SET WMI_HECAP_PHY_HEPPDU80IN160OR80P80MHZ_SET_D3
- #define WMI_HECAP_PHY_ERSU1X800NSECGI_GET WMI_HECAP_PHY_ERSU1X800NSECGI_GET_D3
- #define WMI_HECAP_PHY_ERSU1X800NSECGI_SET WMI_HECAP_PHY_ERSU1X800NSECGI_SET_D3
- #define WMI_HECAP_PHY_MIDAMBLETXRX2XAND1XHELTF_GET WMI_HECAP_PHY_MIDAMBLETXRX2XAND1XHELTF_GET_D3
- #define WMI_HECAP_PHY_MIDAMBLETXRX2XAND1XHELTF_SET WMI_HECAP_PHY_MIDAMBLETXRX2XAND1XHELTF_SET_D3
- #define WMI_HECAP_PHY_MIDAMBLERX2XAND1XHELTF_GET WMI_HECAP_PHY_MIDAMBLETXRX2XAND1XHELTF_GET /* DEPRECATED */
- #define WMI_HECAP_PHY_MIDAMBLERX2XAND1XHELTF_SET WMI_HECAP_PHY_MIDAMBLETXRX2XAND1XHELTF_SET /* DEPRECATED */
- #define WMI_HECAP_PHY_DCMMAXBW_GET WMI_HECAP_PHY_DCMMAXBW_GET_D3
- #define WMI_HECAP_PHY_DCMMAXBW_SET WMI_HECAP_PHY_DCMMAXBW_SET_D3
- #define WMI_HECAP_PHY_LNG16SIGBSYMBSUPRT_GET WMI_HECAP_PHY_LNG16SIGBSYMBSUPRT_GET_D3
- #define WMI_HECAP_PHY_LNG16SIGBSYMBSUPRT_SET WMI_HECAP_PHY_LNG16SIGBSYMBSUPRT_SET_D3
- #define WMI_HECAP_PHY_NONTRIGCQIFEEDBK_GET WMI_HECAP_PHY_NONTRIGCQIFEEDBK_GET_D3
- #define WMI_HECAP_PHY_NONTRIGCQIFEEDBK_SET WMI_HECAP_PHY_NONTRIGCQIFEEDBK_SET_D3
- #define WMI_HECAP_PHY_TX1024QAM242RUSUPRT_GET WMI_HECAP_PHY_TX1024QAM242RUSUPRT_GET_D3
- #define WMI_HECAP_PHY_TX1024QAM242RUSUPRT_SET WMI_HECAP_PHY_TX1024QAM242RUSUPRT_SET_D3
- #define WMI_HECAP_PHY_RX1024QAM242RUSUPRT_GET WMI_HECAP_PHY_RX1024QAM242RUSUPRT_GET_D3
- #define WMI_HECAP_PHY_RX1024QAM242RUSUPRT_SET WMI_HECAP_PHY_RX1024QAM242RUSUPRT_SET_D3
- #define WMI_HECAP_PHY_RXFULBWSUWCMPRSSIGB_GET WMI_HECAP_PHY_RXFULBWSUWCMPRSSIGB_GET_D3
- #define WMI_HECAP_PHY_RXFULBWSUWCMPRSSIGB_SET WMI_HECAP_PHY_RXFULBWSUWCMPRSSIGB_SET_D3
- #define WMI_HECAP_PHY_RXFULBWSUWNONCMPRSSIGB_GET WMI_HECAP_PHY_RXFULBWSUWNONCMPRSSIGB_GET_D3
- #define WMI_HECAP_PHY_RXFULBWSUWNONCMPRSSIGB_SET WMI_HECAP_PHY_RXFULBWSUWNONCMPRSSIGB_SET_D3
- #define WMI_HECAP_PHY_DB_GET(he_phy_cap) (0) /* DEPRECATED - DO NOT USE */
- #define WMI_HECAP_PHY_DB_SET(he_phy_cap, value) /* DEPRECATED - DO NOT USE */
- #define WMI_HECAP_MAC_HECTRL_GET WMI_HECAP_MAC_HECTRL_GET_D3
- #define WMI_HECAP_MAC_HECTRL_SET WMI_HECAP_MAC_HECTRL_SET_D3
- #define WMI_HECAP_MAC_TWTREQ_GET WMI_HECAP_MAC_TWTREQ_GET_D3
- #define WMI_HECAP_MAC_TWTREQ_SET WMI_HECAP_MAC_TWTREQ_SET_D3
- #define WMI_HECAP_MAC_TWTRSP_GET WMI_HECAP_MAC_TWTRSP_GET_D3
- #define WMI_HECAP_MAC_TWTRSP_SET WMI_HECAP_MAC_TWTRSP_SET_D3
- #define WMI_HECAP_MAC_HEFRAG_GET WMI_HECAP_MAC_HEFRAG_GET_D3
- #define WMI_HECAP_MAC_HEFRAG_SET WMI_HECAP_MAC_HEFRAG_SET_D3
- #define WMI_HECAP_MAC_MAXFRAGMSDU_GET WMI_HECAP_MAC_MAXFRAGMSDU_GET_D3
- #define WMI_HECAP_MAC_MAXFRAGMSDU_SET WMI_HECAP_MAC_MAXFRAGMSDU_SET_D3
- #define WMI_HECAP_MAC_MINFRAGSZ_GET WMI_HECAP_MAC_MINFRAGSZ_GET_D3
- #define WMI_HECAP_MAC_MINFRAGSZ_SET WMI_HECAP_MAC_MINFRAGSZ_SET_D3
- #define WMI_HECAP_MAC_TRIGPADDUR_GET WMI_HECAP_MAC_TRIGPADDUR_GET_D3
- #define WMI_HECAP_MAC_TRIGPADDUR_SET WMI_HECAP_MAC_TRIGPADDUR_SET_D3
- #define WMI_HECAP_MAC_MTID_RX_GET WMI_HECAP_MAC_MTID_RX_GET_D3
- #define WMI_HECAP_MAC_MTID_RX_SET WMI_HECAP_MAC_MTID_RX_SET_D3
- #define WMI_HECAP_MAC_HELINK_ADPT_GET WMI_HECAP_MAC_HELINK_ADPT_GET_D3
- #define WMI_HECAP_MAC_HELINK_ADPT_SET WMI_HECAP_MAC_HELINK_ADPT_SET_D3
- #define WMI_HECAP_MAC_AACK_GET WMI_HECAP_MAC_AACK_GET_D3
- #define WMI_HECAP_MAC_AACK_SET WMI_HECAP_MAC_AACK_SET_D3
- #define WMI_HECAP_MAC_TRS_GET WMI_HECAP_MAC_TRS_GET_D3
- #define WMI_HECAP_MAC_TRS_SET WMI_HECAP_MAC_TRS_SET_D3
- #define WMI_HECAP_MAC_ULMURSP_GET(he_cap) (0) /* DEPRECATED, DO NOT USE */
- #define WMI_HECAP_MAC_ULMURSP_SET(he_cap, value) /* DEPRECATED, DO NOT USE */
- #define WMI_HECAP_MAC_BSR_GET WMI_HECAP_MAC_BSR_GET_D3
- #define WMI_HECAP_MAC_BSR_SET WMI_HECAP_MAC_BSR_SET_D3
- #define WMI_HECAP_MAC_BCSTTWT_GET WMI_HECAP_MAC_BCSTTWT_GET_D3
- #define WMI_HECAP_MAC_BCSTTWT_SET WMI_HECAP_MAC_BCSTTWT_SET_D3
- #define WMI_HECAP_MAC_32BITBA_GET WMI_HECAP_MAC_32BITBA_GET_D3
- #define WMI_HECAP_MAC_32BITBA_SET WMI_HECAP_MAC_32BITBA_SET_D3
- #define WMI_HECAP_MAC_MUCASCADE_GET WMI_HECAP_MAC_MUCASCADE_GET_D3
- #define WMI_HECAP_MAC_MUCASCADE_SET WMI_HECAP_MAC_MUCASCADE_SET_D3
- #define WMI_HECAP_MAC_ACKMTIDAMPDU_GET WMI_HECAP_MAC_ACKMTIDAMPDU_GET_D3
- #define WMI_HECAP_MAC_ACKMTIDAMPDU_SET WMI_HECAP_MAC_ACKMTIDAMPDU_SET_D3
- #define WMI_HECAP_MAC_GROUPMSTABA_GET(he_cap) (0) /* DEPRECATED, DO NOT USE */
- #define WMI_HECAP_MAC_GROUPMSTABA_SET(he_cap, value) /* DEPRECATED, DO NOT USE */
- #define WMI_HECAP_MAC_OMI_GET WMI_HECAP_MAC_OMI_GET_D3
- #define WMI_HECAP_MAC_OMI_SET WMI_HECAP_MAC_OMI_SET_D3
- #define WMI_HECAP_MAC_OFDMARA_GET WMI_HECAP_MAC_OFDMARA_GET_D3
- #define WMI_HECAP_MAC_OFDMARA_SET WMI_HECAP_MAC_OFDMARA_SET_D3
- #define WMI_HECAP_MAC_MAXAMPDULEN_EXP_GET WMI_HECAP_MAC_MAXAMPDULEN_EXP_GET_D3
- #define WMI_HECAP_MAC_MAXAMPDULEN_EXP_SET WMI_HECAP_MAC_MAXAMPDULEN_EXP_SET_D3
- #define WMI_HECAP_MAC_AMSDUFRAG_GET WMI_HECAP_MAC_AMSDUFRAG_GET_D3
- #define WMI_HECAP_MAC_AMSDUFRAG_SET WMI_HECAP_MAC_AMSDUFRAG_SET_D3
- #define WMI_HECAP_MAC_FLEXTWT_GET WMI_HECAP_MAC_FLEXTWT_GET_D3
- #define WMI_HECAP_MAC_FLEXTWT_SET WMI_HECAP_MAC_FLEXTWT_SET_D3
- #define WMI_HECAP_MAC_MBSS_GET WMI_HECAP_MAC_MBSS_GET_D3
- #define WMI_HECAP_MAC_MBSS_SET WMI_HECAP_MAC_MBSS_SET_D3
- #define WMI_HECAP_MAC_BSRPAMPDU_GET WMI_HECAP_MAC_BSRPAMPDU_GET_D3
- #define WMI_HECAP_MAC_BSRPAMPDU_SET WMI_HECAP_MAC_BSRPAMPDU_SET_D3
- #define WMI_HECAP_MAC_QTP_GET WMI_HECAP_MAC_QTP_GET_D3
- #define WMI_HECAP_MAC_QTP_SET WMI_HECAP_MAC_QTP_SET_D3
- #define WMI_HECAP_MAC_ABQR_GET WMI_HECAP_MAC_ABQR_GET_D3
- #define WMI_HECAP_MAC_ABQR_SET WMI_HECAP_MAC_ABQR_SET_D3
- #define WMI_HECAP_MAC_SRPRESP_GET WMI_HECAP_MAC_SRPRESP_GET_D3
- #define WMI_HECAP_MAC_SRPRESP_SET WMI_HECAP_MAC_SRPRESP_SET_D3
- #define WMI_HECAP_MAC_SRRESP_GET(he_cap2) (0) /* DEPRECATED, DO NOT USE */
- #define WMI_HECAP_MAC_SRRESP_SET(he_cap2, value) /* DEPRECATED, DO NOT USE */
- #define WMI_HECAP_MAC_NDPFDBKRPT_GET WMI_HECAP_MAC_NDPFDBKRPT_GET_D3
- #define WMI_HECAP_MAC_NDPFDBKRPT_SET WMI_HECAP_MAC_NDPFDBKRPT_SET_D3
- #define WMI_HECAP_MAC_OPS_GET WMI_HECAP_MAC_OPS_GET_D3
- #define WMI_HECAP_MAC_OPS_SET WMI_HECAP_MAC_OPS_SET_D3
- #define WMI_HECAP_MAC_AMSDUINAMPDU_GET WMI_HECAP_MAC_AMSDUINAMPDU_GET_D3
- #define WMI_HECAP_MAC_AMSDUINAMPDU_SET WMI_HECAP_MAC_AMSDUINAMPDU_SET_D3
- #define WMI_HECAP_MAC_MTID_TX_GET WMI_HECAP_MAC_MTID_TX_GET_D3
- #define WMI_HECAP_MAC_MTID_TX_SET WMI_HECAP_MAC_MTID_TX_SET_D3
- #define WMI_HECAP_MAC_SUBCHANSELTX_GET WMI_HECAP_MAC_SUBCHANSELTX_GET_D3
- #define WMI_HECAP_MAC_SUBCHANSELTX_SET WMI_HECAP_MAC_SUBCHANSELTX_SET_D3
- #define WMI_HECAP_MAC_UL2X996RU_GET WMI_HECAP_MAC_UL2X996RU_GET_D3
- #define WMI_HECAP_MAC_UL2X996RU_SET WMI_HECAP_MAC_UL2X996RU_SET_D3
- #define WMI_HECAP_MAC_OMCULMUDDIS_GET WMI_HECAP_MAC_OMCULMUDDIS_GET_D3
- #define WMI_HECAP_MAC_OMCULMUDDIS_SET WMI_HECAP_MAC_OMCULMUDDIS_SET_D3
- #define WMI_HECAP_MAC_HELKAD_GET(he_cap) (0) /* DEPRECATED, DO NOT USE */
- #define WMI_HECAP_MAC_HELKAD_SET(he_cap, value) /* DEPRECATED, DO NOT USE */
- #define WMI_HECAP_PHY_MIDAMBLERXMAXNSTS_GET WMI_HECAP_PHY_MIDAMBLETXRXMAXNSTS_GET_D3 /* DEPRECATED - DO NOT USE */
- #define WMI_HECAP_PHY_MIDAMBLERXMAXNSTS_SET WMI_HECAP_PHY_MIDAMBLETXRXMAXNSTS_SET_D3 /* DEPRECATED - DO NOT USE */
- #define WMI_HECAP_MAC_DYNSMPWRSAVE_GET WMI_HECAP_MAC_DYNSMPWRSAVE_GET_D3
- #define WMI_HECAP_MAC_DYNSMPWRSAVE_SET WMI_HECAP_MAC_DYNSMPWRSAVE_SET_D3
- #define WMI_HECAP_MAC_PUNCSOUNDING_GET WMI_HECAP_MAC_PUNCSOUNDING_GET_D3
- #define WMI_HECAP_MAC_PUNCSOUNDING_SET WMI_HECAP_MAC_PUNCSOUNDING_SET_D3
- #define WMI_HECAP_MAC_HTVHTTRIGRX_GET WMI_HECAP_MAC_HTVHTTRIGRX_GET_D3
- #define WMI_HECAP_MAC_HTVHTTRIGRX_SET WMI_HECAP_MAC_HTVHTTRIGRX_SET_D3
- #else /* SUPPORT_11AX_D3 vs. D2 */
- /* D2 and D2- */
- #define WMI_HEOPS_COLOR_GET WMI_HEOPS_COLOR_GET_D2
- #define WMI_HEOPS_COLOR_SET WMI_HEOPS_COLOR_SET_D2
- #define WMI_HEOPS_DEFPE_GET WMI_HEOPS_DEFPE_GET_D2
- #define WMI_HEOPS_DEFPE_SET WMI_HEOPS_DEFPE_SET_D2
- #define WMI_HEOPS_TWT_REQUIRED_GET WMI_HEOPS_TWT_REQUIRED_GET_D2
- #define WMI_HEOPS_TWT_REQUIRED_SET WMI_HEOPS_TWT_REQUIRED_SET_D2
- #define WMI_HEOPS_TWT_GET WMI_HEOPS_TWT_GET_D2 /* Deprecated */
- #define WMI_HEOPS_TWT_SET WMI_HEOPS_TWT_SET_D2 /* Deprecated */
- #define WMI_HEOPS_RTSTHLD_GET WMI_HEOPS_RTSTHLD_GET_D2
- #define WMI_HEOPS_RTSTHLD_SET WMI_HEOPS_RTSTHLD_SET_D2
- #define WMI_HEOPS_PARTBSSCOLOR_GET WMI_HEOPS_PARTBSSCOLOR_GET_D2
- #define WMI_HEOPS_PARTBSSCOLOR_SET WMI_HEOPS_PARTBSSCOLOR_SET_D2
- #define WMI_HEOPS_MAXBSSID_GET WMI_HEOPS_MAXBSSID_GET_D2
- #define WMI_HEOPS_MAXBSSID_SET WMI_HEOPS_MAXBSSID_SET_D2
- #define WMI_HEOPS_TXBSSID_GET WMI_HEOPS_TXBSSID_GET_D2
- #define WMI_HEOPS_TXBSSID_SET WMI_HEOPS_TXBSSID_SET_D2
- #define WMI_HEOPS_BSSCOLORDISABLE_GET WMI_HEOPS_BSSCOLORDISABLE_GET_D2
- #define WMI_HEOPS_BSSCOLORDISABLE_SET WMI_HEOPS_BSSCOLORDISABLE_SET_D2
- #define WMI_HEOPS_DUALBEACON_GET WMI_HEOPS_DUALBEACON_GET_D2
- #define WMI_HEOPS_DUALBEACON_SET WMI_HEOPS_DUALBEACON_SET_D2
- #define WMI_HECAP_PHY_DB_GET WMI_HECAP_PHY_DB_GET_D2
- #define WMI_HECAP_PHY_DB_SET WMI_HECAP_PHY_DB_SET_D2
- #define WMI_HECAP_PHY_CBW_GET WMI_HECAP_PHY_CBW_GET_D2
- #define WMI_HECAP_PHY_CBW_SET WMI_HECAP_PHY_CBW_SET_D2
- #define WMI_HECAP_PHY_PREAMBLEPUNCRX_GET WMI_HECAP_PHY_PREAMBLEPUNCRX_GET_D2
- #define WMI_HECAP_PHY_PREAMBLEPUNCRX_SET WMI_HECAP_PHY_PREAMBLEPUNCRX_SET_D2
- #define WMI_HECAP_PHY_COD_GET WMI_HECAP_PHY_COD_GET_D2
- #define WMI_HECAP_PHY_COD_SET WMI_HECAP_PHY_COD_SET_D2
- #define WMI_HECAP_PHY_LDPC_GET WMI_HECAP_PHY_LDPC_GET_D2
- #define WMI_HECAP_PHY_LDPC_SET WMI_HECAP_PHY_LDPC_SET_D2
- #define WMI_HECAP_PHY_TXLDPC_GET WMI_HECAP_PHY_TXLDPC_GET_D2
- #define WMI_HECAP_PHY_TXLDPC_SET WMI_HECAP_PHY_TXLDPC_SET_D2
- #define WMI_HECAP_PHY_RXLDPC_GET WMI_HECAP_PHY_RXLDPC_GET_D2
- #define WMI_HECAP_PHY_RXLDPC_SET WMI_HECAP_PHY_RXLDPC_SET_D2
- #define WMI_HECAP_PHY_LTFGIFORHE_GET WMI_HECAP_PHY_LTFGIFORHE_GET_D2
- #define WMI_HECAP_PHY_LTFGIFORHE_SET WMI_HECAP_PHY_LTFGIFORHE_SET_D2
- #define WMI_HECAP_PHY_MIDAMBLERXMAXNSTS_GET WMI_HECAP_PHY_MIDAMBLERXMAXNSTS_GET_D2
- #define WMI_HECAP_PHY_MIDAMBLERXMAXNSTS_SET WMI_HECAP_PHY_MIDAMBLERXMAXNSTS_SET_D2
- #define WMI_HECAP_PHY_LTFGIFORNDP_GET WMI_HECAP_PHY_LTFGIFORNDP_GET_D2
- #define WMI_HECAP_PHY_LTFGIFORNDP_SET WMI_HECAP_PHY_LTFGIFORNDP_SET_D2
- #define WMI_HECAP_PHY_TXSTBC_GET WMI_HECAP_PHY_TXSTBC_GET_D2
- #define WMI_HECAP_PHY_TXSTBC_SET WMI_HECAP_PHY_TXSTBC_SET_D2
- #define WMI_HECAP_PHY_RXSTBC_GET WMI_HECAP_PHY_RXSTBC_GET_D2
- #define WMI_HECAP_PHY_RXSTBC_SET WMI_HECAP_PHY_RXSTBC_SET_D2
- #define WMI_HECAP_PHY_TXDOPPLER_GET WMI_HECAP_PHY_TXDOPPLER_GET_D2
- #define WMI_HECAP_PHY_TXDOPPLER_SET WMI_HECAP_PHY_TXDOPPLER_SET_D2
- #define WMI_HECAP_PHY_RXDOPPLER_GET WMI_HECAP_PHY_RXDOPPLER_GET_D2
- #define WMI_HECAP_PHY_RXDOPPLER_SET WMI_HECAP_PHY_RXDOPPLER_SET_D2
- #define WMI_HECAP_PHY_UL_MU_MIMO_GET WMI_HECAP_PHY_UL_MU_MIMO_GET_D2
- #define WMI_HECAP_PHY_UL_MU_MIMO_SET WMI_HECAP_PHY_UL_MU_MIMO_SET_D2
- #define WMI_HECAP_PHY_ULMUMIMOOFDMA_GET WMI_HECAP_PHY_ULMUMIMOOFDMA_GET_D2
- #define WMI_HECAP_PHY_ULMUMIMOOFDMA_SET WMI_HECAP_PHY_ULMUMIMOOFDMA_SET_D2
- #define WMI_HECAP_PHY_DCMTX_GET WMI_HECAP_PHY_DCMTX_GET_D2
- #define WMI_HECAP_PHY_DCMTX_SET WMI_HECAP_PHY_DCMTX_SET_D2
- #define WMI_HECAP_PHY_DCMRX_GET WMI_HECAP_PHY_DCMRX_GET_D2
- #define WMI_HECAP_PHY_DCMRX_SET WMI_HECAP_PHY_DCMRX_SET_D2
- #define WMI_HECAP_PHY_ULHEMU_GET WMI_HECAP_PHY_ULHEMU_GET_D2
- #define WMI_HECAP_PHY_ULHEMU_SET WMI_HECAP_PHY_ULHEMU_SET_D2
- #define WMI_HECAP_PHY_SUBFMR_GET WMI_HECAP_PHY_SUBFMR_GET_D2
- #define WMI_HECAP_PHY_SUBFMR_SET WMI_HECAP_PHY_SUBFMR_SET_D2
- #define WMI_HECAP_PHY_SUBFME_GET WMI_HECAP_PHY_SUBFME_GET_D2
- #define WMI_HECAP_PHY_SUBFME_SET WMI_HECAP_PHY_SUBFME_SET_D2
- #define WMI_HECAP_PHY_MUBFMR_GET WMI_HECAP_PHY_MUBFMR_GET_D2
- #define WMI_HECAP_PHY_MUBFMR_SET WMI_HECAP_PHY_MUBFMR_SET_D2
- #define WMI_HECAP_PHY_BFMESTSLT80MHZ_GET WMI_HECAP_PHY_BFMESTSLT80MHZ_GET_D2
- #define WMI_HECAP_PHY_BFMESTSLT80MHZ_SET WMI_HECAP_PHY_BFMESTSLT80MHZ_SET_D2
- #define WMI_HECAP_PHY_BFMESTSGT80MHZ_GET WMI_HECAP_PHY_BFMESTSGT80MHZ_GET_D2
- #define WMI_HECAP_PHY_BFMESTSGT80MHZ_SET WMI_HECAP_PHY_BFMESTSGT80MHZ_SET_D2
- #define WMI_HECAP_PHY_NUMSOUNDLT80MHZ_GET WMI_HECAP_PHY_NUMSOUNDLT80MHZ_GET_D2
- #define WMI_HECAP_PHY_NUMSOUNDLT80MHZ_SET WMI_HECAP_PHY_NUMSOUNDLT80MHZ_SET_D2
- #define WMI_HECAP_PHY_NUMSOUNDGT80MHZ_GET WMI_HECAP_PHY_NUMSOUNDGT80MHZ_GET_D2
- #define WMI_HECAP_PHY_NUMSOUNDGT80MHZ_SET WMI_HECAP_PHY_NUMSOUNDGT80MHZ_SET_D2
- #define WMI_HECAP_PHY_NG16SUFEEDBACKLT80_GET WMI_HECAP_PHY_NG16SUFEEDBACKLT80_GET_D2
- #define WMI_HECAP_PHY_NG16SUFEEDBACKLT80_SET WMI_HECAP_PHY_NG16SUFEEDBACKLT80_SET_D2
- #define WMI_HECAP_PHY_NG16MUFEEDBACKGT80_GET WMI_HECAP_PHY_NG16MUFEEDBACKGT80_GET_D2
- #define WMI_HECAP_PHY_NG16MUFEEDBACKGT80_SET WMI_HECAP_PHY_NG16MUFEEDBACKGT80_SET_D2
- #define WMI_HECAP_PHY_CODBK42SU_GET WMI_HECAP_PHY_CODBK42SU_GET_D2
- #define WMI_HECAP_PHY_CODBK42SU_SET WMI_HECAP_PHY_CODBK42SU_SET_D2
- #define WMI_HECAP_PHY_CODBK75MU_GET WMI_HECAP_PHY_CODBK75MU_GET_D2
- #define WMI_HECAP_PHY_CODBK75MU_SET WMI_HECAP_PHY_CODBK75MU_SET_D2
- #define WMI_HECAP_PHY_BFFEEDBACKTRIG_GET WMI_HECAP_PHY_BFFEEDBACKTRIG_GET_D2
- #define WMI_HECAP_PHY_BFFEEDBACKTRIG_SET WMI_HECAP_PHY_BFFEEDBACKTRIG_SET_D2
- #define WMI_HECAP_PHY_HEERSU_GET WMI_HECAP_PHY_HEERSU_GET_D2
- #define WMI_HECAP_PHY_HEERSU_SET WMI_HECAP_PHY_HEERSU_SET_D2
- #define WMI_HECAP_PHY_DLMUMIMOPARTIALBW_GET WMI_HECAP_PHY_DLMUMIMOPARTIALBW_GET_D2
- #define WMI_HECAP_PHY_DLMUMIMOPARTIALBW_SET WMI_HECAP_PHY_DLMUMIMOPARTIALBW_SET_D2
- #define WMI_HECAP_PHY_PETHRESPRESENT_GET WMI_HECAP_PHY_PETHRESPRESENT_GET_D2
- #define WMI_HECAP_PHY_PETHRESPRESENT_SET WMI_HECAP_PHY_PETHRESPRESENT_SET_D2
- #define WMI_HECAP_PHY_SRPSPRESENT_GET WMI_HECAP_PHY_SRPSPRESENT_GET_D2
- #define WMI_HECAP_PHY_SRPPRESENT_SET WMI_HECAP_PHY_SRPPRESENT_SET_D2
- #define WMI_HECAP_PHY_PWRBOOSTAR_GET WMI_HECAP_PHY_PWRBOOSTAR_GET_D2
- #define WMI_HECAP_PHY_PWRBOOSTAR_SET WMI_HECAP_PHY_PWRBOOSTAR_SET_D2
- #define WMI_HECAP_PHY_4XLTFAND800NSECSGI_GET WMI_HECAP_PHY_4XLTFAND800NSECSGI_GET_D2
- #define WMI_HECAP_PHY_4XLTFAND800NSECSGI_SET WMI_HECAP_PHY_4XLTFAND800NSECSGI_SET_D2
- #define WMI_HECAP_PHY_MAXNC_GET WMI_HECAP_PHY_MAXNC_GET_D2
- #define WMI_HECAP_PHY_MAXNC_SET WMI_HECAP_PHY_MAXNC_SET_D2
- #define WMI_HECAP_PHY_STBCTXGT80_GET WMI_HECAP_PHY_STBCTXGT80_GET_D2
- #define WMI_HECAP_PHY_STBCTXGT80_SET WMI_HECAP_PHY_STBCTXGT80_SET_D2
- #define WMI_HECAP_PHY_STBCRXGT80_GET WMI_HECAP_PHY_STBCRXGT80_GET_D2
- #define WMI_HECAP_PHY_STBCRXGT80_SET WMI_HECAP_PHY_STBCRXGT80_SET_D2
- #define WMI_HECAP_PHY_ERSU4X800NSECGI_GET WMI_HECAP_PHY_ERSU4X800NSECGI_GET_D2
- #define WMI_HECAP_PHY_ERSU4X800NSECGI_SET WMI_HECAP_PHY_ERSU4X800NSECGI_SET_D2
- #define WMI_HECAP_PHY_HEPPDU20IN40MHZ2G_GET WMI_HECAP_PHY_HEPPDU20IN40MHZ2G_GET_D2
- #define WMI_HECAP_PHY_HEPPDU20IN40MHZ2G_SET WMI_HECAP_PHY_HEPPDU20IN40MHZ2G_SET_D2
- #define WMI_HECAP_PHY_HEPPDU20IN160OR80P80MHZ_GET WMI_HECAP_PHY_HEPPDU20IN160OR80P80MHZ_GET_D2
- #define WMI_HECAP_PHY_HEPPDU20IN160OR80P80MHZ_SET WMI_HECAP_PHY_HEPPDU20IN160OR80P80MHZ_SET_D2
- #define WMI_HECAP_PHY_HEPPDU80IN160OR80P80MHZ_GET WMI_HECAP_PHY_HEPPDU80IN160OR80P80MHZ_GET_D2
- #define WMI_HECAP_PHY_HEPPDU80IN160OR80P80MHZ_SET WMI_HECAP_PHY_HEPPDU80IN160OR80P80MHZ_SET_D2
- #define WMI_HECAP_PHY_ERSU1X800NSECGI_GET WMI_HECAP_PHY_ERSU1X800NSECGI_GET_D2
- #define WMI_HECAP_PHY_ERSU1X800NSECGI_SET WMI_HECAP_PHY_ERSU1X800NSECGI_SET_D2
- #define WMI_HECAP_PHY_MIDAMBLERX2XAND1XHELTF_GET WMI_HECAP_PHY_MIDAMBLERX2XAND1XHELTF_GET_D2
- #define WMI_HECAP_PHY_MIDAMBLERX2XAND1XHELTF_SET WMI_HECAP_PHY_MIDAMBLERX2XAND1XHELTF_SET_D2
- #define WMI_HECAP_MAC_HECTRL_GET WMI_HECAP_MAC_HECTRL_GET_D2
- #define WMI_HECAP_MAC_HECTRL_SET WMI_HECAP_MAC_HECTRL_SET_D2
- #define WMI_HECAP_MAC_TWTREQ_GET WMI_HECAP_MAC_TWTREQ_GET_D2
- #define WMI_HECAP_MAC_TWTREQ_SET WMI_HECAP_MAC_TWTREQ_SET_D2
- #define WMI_HECAP_MAC_TWTRSP_GET WMI_HECAP_MAC_TWTRSP_GET_D2
- #define WMI_HECAP_MAC_TWTRSP_SET WMI_HECAP_MAC_TWTRSP_SET_D2
- #define WMI_HECAP_MAC_HEFRAG_GET WMI_HECAP_MAC_HEFRAG_GET_D2
- #define WMI_HECAP_MAC_HEFRAG_SET WMI_HECAP_MAC_HEFRAG_SET_D2
- #define WMI_HECAP_MAC_MAXFRAGMSDU_GET WMI_HECAP_MAC_MAXFRAGMSDU_GET_D2
- #define WMI_HECAP_MAC_MAXFRAGMSDU_SET WMI_HECAP_MAC_MAXFRAGMSDU_SET_D2
- #define WMI_HECAP_MAC_MINFRAGSZ_GET WMI_HECAP_MAC_MINFRAGSZ_GET_D2
- #define WMI_HECAP_MAC_MINFRAGSZ_SET WMI_HECAP_MAC_MINFRAGSZ_SET_D2
- #define WMI_HECAP_MAC_TRIGPADDUR_GET WMI_HECAP_MAC_TRIGPADDUR_GET_D2
- #define WMI_HECAP_MAC_TRIGPADDUR_SET WMI_HECAP_MAC_TRIGPADDUR_SET_D2
- #define WMI_HECAP_MAC_MTID_GET WMI_HECAP_MAC_MTID_GET_D2
- #define WMI_HECAP_MAC_MTID_SET WMI_HECAP_MAC_MTID_SET_D2
- #define WMI_HECAP_MAC_AMSDUINAMPDU_GET WMI_HECAP_MAC_AMSDUINAMPDU_GET_D2
- #define WMI_HECAP_MAC_AMSDUINAMPDU_SET WMI_HECAP_MAC_AMSDUINAMPDU_SET_D2
- #define WMI_HECAP_MAC_HELKAD_GET WMI_HECAP_MAC_HELKAD_GET_D2
- #define WMI_HECAP_MAC_HELKAD_SET WMI_HECAP_MAC_HELKAD_SET_D2
- #define WMI_HECAP_MAC_AACK_GET WMI_HECAP_MAC_AACK_GET_D2
- #define WMI_HECAP_MAC_AACK_SET WMI_HECAP_MAC_AACK_SET_D2
- #define WMI_HECAP_MAC_ULMURSP_GET WMI_HECAP_MAC_ULMURSP_GET_D2
- #define WMI_HECAP_MAC_ULMURSP_SET WMI_HECAP_MAC_ULMURSP_SET_D2
- #define WMI_HECAP_MAC_BSR_GET WMI_HECAP_MAC_BSR_GET_D2
- #define WMI_HECAP_MAC_BSR_SET WMI_HECAP_MAC_BSR_SET_D2
- #define WMI_HECAP_MAC_BCSTTWT_GET WMI_HECAP_MAC_BCSTTWT_GET_D2
- #define WMI_HECAP_MAC_BCSTTWT_SET WMI_HECAP_MAC_BCSTTWT_SET_D2
- #define WMI_HECAP_MAC_32BITBA_GET WMI_HECAP_MAC_32BITBA_GET_D2
- #define WMI_HECAP_MAC_32BITBA_SET WMI_HECAP_MAC_32BITBA_SET_D2
- #define WMI_HECAP_MAC_MUCASCADE_GET WMI_HECAP_MAC_MUCASCADE_GET_D2
- #define WMI_HECAP_MAC_MUCASCADE_SET WMI_HECAP_MAC_MUCASCADE_SET_D2
- #define WMI_HECAP_MAC_ACKMTIDAMPDU_GET WMI_HECAP_MAC_ACKMTIDAMPDU_GET_D2
- #define WMI_HECAP_MAC_ACKMTIDAMPDU_SET WMI_HECAP_MAC_ACKMTIDAMPDU_SET_D2
- #define WMI_HECAP_MAC_GROUPMSTABA_GET WMI_HECAP_MAC_GROUPMSTABA_GET_D2
- #define WMI_HECAP_MAC_GROUPMSTABA_SET WMI_HECAP_MAC_GROUPMSTABA_SET_D2
- #define WMI_HECAP_MAC_OMI_GET WMI_HECAP_MAC_OMI_GET_D2
- #define WMI_HECAP_MAC_OMI_SET WMI_HECAP_MAC_OMI_SET_D2
- #define WMI_HECAP_MAC_OFDMARA_GET WMI_HECAP_MAC_OFDMARA_GET_D2
- #define WMI_HECAP_MAC_OFDMARA_SET WMI_HECAP_MAC_OFDMARA_SET_D2
- #define WMI_HECAP_MAC_MAXAMPDULEN_EXP_GET WMI_HECAP_MAC_MAXAMPDULEN_EXP_GET_D2
- #define WMI_HECAP_MAC_MAXAMPDULEN_EXP_SET WMI_HECAP_MAC_MAXAMPDULEN_EXP_SET_D2
- #define WMI_HECAP_MAC_AMSDUFRAG_GET WMI_HECAP_MAC_AMSDUFRAG_GET_D2
- #define WMI_HECAP_MAC_AMSDUFRAG_SET WMI_HECAP_MAC_AMSDUFRAG_SET_D2
- #define WMI_HECAP_MAC_FLEXTWT_GET WMI_HECAP_MAC_FLEXTWT_GET_D2
- #define WMI_HECAP_MAC_FLEXTWT_SET WMI_HECAP_MAC_FLEXTWT_SET_D2
- #define WMI_HECAP_MAC_MBSS_GET WMI_HECAP_MAC_MBSS_GET_D2
- #define WMI_HECAP_MAC_MBSS_SET WMI_HECAP_MAC_MBSS_SET_D2
- #define WMI_HECAP_MAC_BSRPAMPDU_GET WMI_HECAP_MAC_BSRPAMPDU_GET_D2
- #define WMI_HECAP_MAC_BSRPAMPDU_SET WMI_HECAP_MAC_BSRPAMPDU_SET_D2
- #define WMI_HECAP_MAC_QTP_GET WMI_HECAP_MAC_QTP_GET_D2
- #define WMI_HECAP_MAC_QTP_SET WMI_HECAP_MAC_QTP_SET_D2
- #define WMI_HECAP_MAC_ABQR_GET WMI_HECAP_MAC_ABQR_GET_D2
- #define WMI_HECAP_MAC_ABQR_SET WMI_HECAP_MAC_ABQR_SET_D2
- #define WMI_HECAP_MAC_SRRESP_GET WMI_HECAP_MAC_SRRESP_GET_D2
- #define WMI_HECAP_MAC_SRRESP_SET WMI_HECAP_MAC_SRRESP_SET_D2
- #define WMI_HECAP_MAC_OPS_GET WMI_HECAP_MAC_OPS_GET_D2
- #define WMI_HECAP_MAC_OPS_SET WMI_HECAP_MAC_OPS_SET_D2
- #define WMI_HECAP_MAC_NDPFDBKRPT_GET WMI_HECAP_MAC_NDPFDBKRPT_GET_D2
- #define WMI_HECAP_MAC_NDPFDBKRPT_SET WMI_HECAP_MAC_NDPFDBKRPT_SET_D2
- #define WMI_HECAP_MAC_MBAHECTRL_GET WMI_HECAP_MAC_MBAHECTRL_GET_D2
- #define WMI_HECAP_MAC_MBAHECTRL_SET WMI_HECAP_MAC_MBAHECTRL_SET_D2
- #define WMI_HECAP_MAC_MURTS_GET WMI_HECAP_MAC_MURTS_GET_D2
- #define WMI_HECAP_MAC_MURTS_SET WMI_HECAP_MAC_MURTS_SET_D2
- #define WMI_HECAP_PHY_CBMODE_GET WMI_HECAP_PHY_CBMODE_GET_D2
- #define WMI_HECAP_PHY_CBMODE_SET WMI_HECAP_PHY_CBMODE_SET_D2
- #define WMI_HECAP_PHY_OLTF_GET WMI_HECAP_PHY_OLTF_GET_D2
- #define WMI_HECAP_PHY_OLTF_SET WMI_HECAP_PHY_OLTF_SET_D2
- #define WMI_HECAP_PHY_SUBFMESTS_GET WMI_HECAP_PHY_SUBFMESTS_GET_D2
- #define WMI_HECAP_PHY_SUBFMESTS_SET WMI_HECAP_PHY_SUBFMESTS_SET_D2
- #define WMI_HECAP_PHY_PADDING_GET WMI_HECAP_PHY_PADDING_GET_D2
- #define WMI_HECAP_PHY_PADDING_SET WMI_HECAP_PHY_PADDING_SET_D2
- #define WMI_HECAP_PHY_DLOFMAMUMIMO_GET WMI_HECAP_PHY_DLOFMAMUMIMO_GET_D2
- #define WMI_HECAP_PHY_DLOFDMAMUMIO_SET WMI_HECAP_PHY_DLOFDMAMUMIO_SET_D2
- #define WMI_HECAP_PHY_32GI_GET WMI_HECAP_PHY_32GI_GET_D2
- #define WMI_HECAP_PHY_32GI_SET WMI_HECAP_PHY_32GI_SET_D2
- #define WMI_HECAP_PHY_NOSUNDIMENS_GET WMI_HECAP_PHY_NOSUNDIMENS_GET_D2
- #define WMI_HECAP_PHY_NOSUNDIMENS_SET WMI_HECAP_PHY_NOSUNDIMENS_SET_D2
- #define WMI_HECAP_PHY_40MHZNSS_GET WMI_HECAP_PHY_40MHZNSS_GET_D2
- #define WMI_HECAP_PHY_40MHZNSS_SET WMI_HECAP_PHY_40MHZNSS_SET_D2
- #define WMI_HECAP_PHY_ULOFDMA_GET WMI_HECAP_PHY_ULOFDMA_GET_D2
- #define WMI_HECAP_PHY_ULOFDMA_SET WMI_HECAP_PHY_ULOFDMA_SET_D2
- #define WMI_HECAP_PHY_DCM_GET WMI_HECAP_PHY_DCM_GET_D2
- #define WMI_HECAP_PHY_DCM_SET WMI_HECAP_PHY_DCM_SET_D2
- #define WMI_HECAP_PHY_NSTSLT80MHZ_GET WMI_HECAP_PHY_NSTSLT80MHZ_GET_D2
- #define WMI_HECAP_PHY_NSTSLT80MHZ_SET WMI_HECAP_PHY_NSTSLT80MHZ_SET_D2
- #define WMI_HECAP_PHY_NSTSGT80MHZ_GET WMI_HECAP_PHY_NSTSGT80MHZ_GET_D2
- #define WMI_HECAP_PHY_NSTSGT80MHZ_SET WMI_HECAP_PHY_NSTSGT80MHZ_SET_D2
- #define WMI_HECAP_MAC_DYNSMPWRSAVE_GET WMI_HECAP_MAC_DYNSMPWRSAVE_GET_D2
- #define WMI_HECAP_MAC_DYNSMPWRSAVE_SET WMI_HECAP_MAC_DYNSMPWRSAVE_SET_D2
- #define WMI_HECAP_MAC_PUNCSOUNDING_GET WMI_HECAP_MAC_PUNCSOUNDING_GET_D2
- #define WMI_HECAP_MAC_PUNCSOUNDING_SET WMI_HECAP_MAC_PUNCSOUNDING_SET_D2
- #define WMI_HECAP_MAC_HTVHTTRIGRX_GET WMI_HECAP_MAC_HTVHTTRIGRX_GET_D2
- #define WMI_HECAP_MAC_HTVHTTRIGRX_SET WMI_HECAP_MAC_HTVHTTRIGRX_SET_D2
- #endif /* SUPPORT_11AX_D3 */
- /****** 11BE EHT PHY Capabilities Information field ******/
- /* Bit 0: reserved */
- /* Bit 1: support for 320Mhz in 6 GHz */
- #define WMI_EHTCAP_PHY_320MHZIN6GHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 1, 1)
- #define WMI_EHTCAP_PHY_320MHZIN6GHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 1, 1, value)
- /* Bit 2: support for 242-tone RU in BW wider than 20Mhz */
- #define WMI_EHTCAP_PHY_242TONERUBWLT20MHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 2, 1)
- #define WMI_EHTCAP_PHY_242TONERUBWLT20MHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 2, 1, value)
- /* Bit 3: NDP with 4x EHT-LTF and 3.2us GI */
- #define WMI_EHTCAP_PHY_NDP4XEHTLTFAND320NSGI_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 3, 1)
- #define WMI_EHTCAP_PHY_NDP4XEHTLTFAND320NSGI_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 3, 1, value)
- /* Bit 4: partial bandwidth UL MU-MIMO */
- #define WMI_EHTCAP_PHY_PARTIALBWULMU_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 4, 1)
- #define WMI_EHTCAP_PHY_PARTIALBWULMU_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 4, 1, value)
- /* Bit 5: SU beamformer */
- #define WMI_EHTCAP_PHY_SUBFMR_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 5, 1)
- #define WMI_EHTCAP_PHY_SUBFMR_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 5, 1, value)
- /* Bit 6: SU beamformee */
- #define WMI_EHTCAP_PHY_SUBFME_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 6, 1)
- #define WMI_EHTCAP_PHY_SUBFME_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 6, 1, value)
- /* Bit 7-9: beamformee SS (<=80Mhz) */
- #define WMI_EHTCAP_PHY_BFMESSLT80MHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 7, 3)
- #define WMI_EHTCAP_PHY_BFMESSLT80MHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 7, 3, value)
- /* Bit 10-12: beamformee SS (=160Mhz) */
- #define WMI_EHTCAP_PHY_BFMESS160MHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 10, 3)
- #define WMI_EHTCAP_PHY_BFMESS160MHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 10, 3, value)
- /* Bit 13-15: beamformee SS (=320Mhz) */
- #define WMI_EHTCAP_PHY_BFMESS320MHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 13, 3)
- #define WMI_EHTCAP_PHY_BFMESS320MHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 13, 3, value)
- /* Bit 16-18: number of sounding dimensions (<=80Mhz) */
- #define WMI_EHTCAP_PHY_NUMSOUNDLT80MHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 16, 3)
- #define WMI_EHTCAP_PHY_NUMSOUNDLT80MHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 16, 3, value)
- /* Bit 19-21: number of sounding dimensions (=160Mhz) */
- #define WMI_EHTCAP_PHY_NUMSOUND160MHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 19, 3)
- #define WMI_EHTCAP_PHY_NUMSOUND160MHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 19, 3, value)
- /* Bit 22-24: number of sounding dimensions (=320Mhz) */
- #define WMI_EHTCAP_PHY_NUMSOUND320MHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 22, 3)
- #define WMI_EHTCAP_PHY_NUMSOUND320MHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 22, 3, value)
- /* Bit 25: ng = 16 SU feedback */
- #define WMI_EHTCAP_PHY_NG16SUFB_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 25, 1)
- #define WMI_EHTCAP_PHY_NG16SUFB_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 25, 1, value)
- /* Bit 26: ng = 16 MU feedback */
- #define WMI_EHTCAP_PHY_NG16MUFB_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 26, 1)
- #define WMI_EHTCAP_PHY_NG16MUFB_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 26, 1, value)
- /* Bit 27: codebook size {4,2} SU feedback */
- #define WMI_EHTCAP_PHY_CODBK42SUFB_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 27, 1)
- #define WMI_EHTCAP_PHY_CODBK42SUFB_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 27, 1, value)
- /* Bit 28: codebook size {7,5} MU feedback */
- #define WMI_EHTCAP_PHY_CODBK75MUFB_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 28, 1)
- #define WMI_EHTCAP_PHY_CODBK75MUFB_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 28, 1, value)
- /* Bit 29: triggered SU beamforming feedback */
- #define WMI_EHTCAP_PHY_TRIGSUBFFB_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 29, 1)
- #define WMI_EHTCAP_PHY_TRIGSUBFFB_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 29, 1, value)
- /* Bit 30: triggered MU beamforming partial BW feedback */
- #define WMI_EHTCAP_PHY_TRIGMUBFPARTBWFB_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 30, 1)
- #define WMI_EHTCAP_PHY_TRIGMUBFPARTBWFB_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 30, 1, value)
- /* Bit 31: triggered CQI feedback */
- #define WMI_EHTCAP_PHY_TRIGCQIFB_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[0], 31, 1)
- #define WMI_EHTCAP_PHY_TRIGCQIFB_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[0], 31, 1, value)
- /* Bit 32: partial bandwidth DL MU-MIMO */
- #define WMI_EHTCAP_PHY_PARTBWDLMUMIMO_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 0, 1)
- #define WMI_EHTCAP_PHY_PARTBWDLMUMIMO_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 0, 1, value)
- /* Bit 33: PSR-based SR support */
- #define WMI_EHTCAP_PHY_PSRSR_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 1, 1)
- #define WMI_EHTCAP_PHY_PSRSR_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 1, 1, value)
- /* Bit 34: power boost factor support */
- #define WMI_EHTCAP_PHY_PWRBSTFACTOR_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 2, 1)
- #define WMI_EHTCAP_PHY_PWRBSTFACTOR_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 2, 1, value)
- /* Bit 35: EHT MU PPDU with 4xEHT-LTF and 0.8us GI */
- #define WMI_EHTCAP_PHY_4XEHTLTFAND800NSGI_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 3, 1)
- #define WMI_EHTCAP_PHY_4XEHTLTFAND800NSGI_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 3, 1, value)
- /* Bit 36-39: max NC */
- #define WMI_EHTCAP_PHY_MAXNC_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 4, 4)
- #define WMI_EHTCAP_PHY_MAXNC_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 4, 4, value)
- /* Bit 40: non-triggered CQI feedback */
- #define WMI_EHTCAP_PHY_NONTRIGCQIFB_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 8, 1)
- #define WMI_EHTCAP_PHY_NONTRIGCQIFB_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 8, 1, value)
- /* Bit 41: Tx 1024-QAM and 4096-QAM < 242-tone RU support */
- #define WMI_EHTCAP_PHY_TX1024AND4096QAMLS242TONERU_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 9, 1)
- #define WMI_EHTCAP_PHY_TX1024AND4096QAMLS242TONERU_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 9, 1, value)
- /* Bit 42: Rx 1024-QAM and 4096-QAM < 242-tone RU support */
- #define WMI_EHTCAP_PHY_RX1024AND4096QAMLS242TONERU_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 10, 1)
- #define WMI_EHTCAP_PHY_RX1024AND4096QAMLS242TONERU_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 10, 1, value)
- /* Bit 43: PPE thresholds present */
- #define WMI_EHTCAP_PHY_PPETHRESPRESENT_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 11, 1)
- #define WMI_EHTCAP_PHY_PPETHRESPRESENT_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 11, 1, value)
- /* Bit 44-45: common nominal packet padding */
- #define WMI_EHTCAP_PHY_CMNNOMPKTPAD_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 12, 2)
- #define WMI_EHTCAP_PHY_CMNNOMPKTPAD_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 12, 2, value)
- /* Bit 46-50: max number of supported EHT-LTFs */
- #define WMI_EHTCAP_PHY_MAXNUMEHTLTF_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 14, 5)
- #define WMI_EHTCAP_PHY_MAXNUMEHTLTF_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 14, 5, value)
- /* Bit 51-54: support of MCS 15 */
- #define WMI_EHTCAP_PHY_SUPMCS15_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 19, 4)
- #define WMI_EHTCAP_PHY_SUPMCS15_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 19, 4, value)
- /* Bit 55: support of EHT DUP in 6 GHz */
- #define WMI_EHTCAP_PHY_EHTDUPIN6GHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 23, 1)
- #define WMI_EHTCAP_PHY_EHTDUPIN6GHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 23, 1, value)
- /* Bit 56: support for 20Mhz operating STA receiving NDP with wider bandwidth */
- #define WMI_EHTCAP_PHY_20MHZOPSTARXNDPWIDERBW_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 24, 1)
- #define WMI_EHTCAP_PHY_20MHZOPSTARXNDPWIDERBW_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 24, 1, value)
- /* Bit 57: non-OFDMA UL MU-MIMO (bw <= 80Mhz) */
- #define WMI_EHTCAP_PHY_NONOFDMAULMUMIMOLT80MHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 25, 1)
- #define WMI_EHTCAP_PHY_NONOFDMAULMUMIMOLT80MHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 25, 1, value)
- /* Bit 58: non-OFDMA UL MU-MIMO (bw = 160Mhz) */
- #define WMI_EHTCAP_PHY_NONOFDMAULMUMIMO160MHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 26, 1)
- #define WMI_EHTCAP_PHY_NONOFDMAULMUMIMO160MHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 26, 1, value)
- /* Bit 59: non-OFDMA UL MU-MIMO (bw = 320Mhz) */
- #define WMI_EHTCAP_PHY_NONOFDMAULMUMIMO320MHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 27, 1)
- #define WMI_EHTCAP_PHY_NONOFDMAULMUMIMO320MHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 27, 1, value)
- /* Bit 60: MU beamformer (bw <= 80Mhz) */
- #define WMI_EHTCAP_PHY_MUBFMRLT80MHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 28, 1)
- #define WMI_EHTCAP_PHY_MUBFMRLT80MHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 28, 1, value)
- /* Bit 61: MU beamformer (bw = 160Mhz) */
- #define WMI_EHTCAP_PHY_MUBFMR160MHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 29, 1)
- #define WMI_EHTCAP_PHY_MUBFMR160MHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 29, 1, value)
- /* Bit 62: MU beamformer (bw = 320Mhz) */
- #define WMI_EHTCAP_PHY_MUBFMR320MHZ_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 30, 1)
- #define WMI_EHTCAP_PHY_MUBFMR320MHZ_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 30, 1, value)
- /* Bit 63: TB sounding feedback rate limit */
- #define WMI_EHTCAP_PHY_TBSUNDFBRATELIMIT_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[1], 31, 1)
- #define WMI_EHTCAP_PHY_TBSUNDFBRATELIMIT_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[1], 31, 1, value)
- /* Bit 64: Rx 1024-QAM in wider bandwidth DL OFDMA support */
- #define WMI_EHTCAP_PHY_RX1024QAMWIDERBWDLOFDMA_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[2], 0, 1)
- #define WMI_EHTCAP_PHY_RX1024QAMWIDERBWDLOFDMA_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[2], 0, 1, value)
- /* Bit 65: Rx 4096-QAM in wider bandwidth DL OFDMA support */
- #define WMI_EHTCAP_PHY_RX4096QAMWIDERBWDLOFDMA_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[2], 1, 1)
- #define WMI_EHTCAP_PHY_RX4096QAMWIDERBWDLOFDMA_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[2], 1, 1, value)
- /* Bit 66: 20Mhz-only limited capabilities support */
- #define WMI_EHTCAP_PHY_20MHZ_ONLY_CAPS_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[2], 2, 1)
- #define WMI_EHTCAP_PHY_20MHZ_ONLY_CAPS_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[2], 2, 1, value)
- /* Bit 67: 20Mhz-only triggered MU beamforming full BW feedback and DL MU-MIMO */
- #define WMI_EHTCAP_PHY_20MHZ_ONLY_TRIGGER_MUBF_FULL_BW_FB_AND_DLMUMIMO_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[2], 3, 1)
- #define WMI_EHTCAP_PHY_20MHZ_ONLY_TRIGGER_MUBF_FULL_BW_FB_AND_DLMUMIMO_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[2], 3, 1, value)
- /* Bit 68: 20Mhz-only M-RU support */
- #define WMI_EHTCAP_PHY_20MHZ_ONLY_MRU_SUPP_GET(eht_cap_phy) WMI_GET_BITS(eht_cap_phy[2], 4, 1)
- #define WMI_EHTCAP_PHY_20MHZ_ONLY_MRU_SUPP_SET(eht_cap_phy, value) WMI_SET_BITS(eht_cap_phy[2], 4, 1, value)
- /* Bits 69-71: reserved */
- /****** End of 11BE EHT PHY Capabilities Information field ******/
- /****** 11BE EHT MAC Capabilities Information field ******/
- /* Bit 0: NSEP/EPCS priority access supported: draft1.4 change the name from NSEP to EPCS
- * To compatible with <= draft 1.4 ver, we keep 2 define there, but same bit.
- */
- #define WMI_EHTCAP_MAC_NSEPPRIACCESS_GET(eht_cap_mac) WMI_GET_BITS(eht_cap_mac[0], 0, 1)
- #define WMI_EHTCAP_MAC_NSEPPRIACCESS_SET(eht_cap_mac, value) WMI_SET_BITS(eht_cap_mac[0], 0, 1, value)
- #define WMI_EHTCAP_MAC_EPCSPRIACCESS_GET(eht_cap_mac) WMI_EHTCAP_MAC_NSEPPRIACCESS_GET(eht_cap_mac)
- #define WMI_EHTCAP_MAC_EPCSPRIACCESS_SET(eht_cap_mac, value) WMI_EHTCAP_MAC_NSEPPRIACCESS_SET(eht_cap_mac, value)
- /* Bit 1: EHT OM control support */
- #define WMI_EHTCAP_MAC_EHTOMCTRL_GET(eht_cap_mac) WMI_GET_BITS(eht_cap_mac[0], 1, 1)
- #define WMI_EHTCAP_MAC_EHTOMCTRL_SET(eht_cap_mac, value) WMI_SET_BITS(eht_cap_mac[0], 1, 1, value)
- /* Bit 2: triggered TXOP mode 1 support
- * As in draft 1.4, we define mode2 and to compatible with old version, we keep 2 define there, but same bit.
- */
- #define WMI_EHTCAP_MAC_TRIGTXOP_GET(eht_cap_mac) WMI_GET_BITS(eht_cap_mac[0], 2, 1)
- #define WMI_EHTCAP_MAC_TRIGTXOP_SET(eht_cap_mac, value) WMI_SET_BITS(eht_cap_mac[0], 2, 1, value)
- #define WMI_EHTCAP_MAC_TRIGTXOPMODE1_GET(eht_cap_mac) WMI_EHTCAP_MAC_TRIGTXOP_GET(eht_cap_mac)
- #define WMI_EHTCAP_MAC_TRIGTXOPMODE1_SET(eht_cap_mac, value) WMI_EHTCAP_MAC_TRIGTXOP_SET(eht_cap_mac, value)
- /* Bit 3: triggered TXOP mode 2 support */
- #define WMI_EHTCAP_MAC_TRIGTXOPMODE2_GET(eht_cap_mac) WMI_GET_BITS(eht_cap_mac[0], 3, 1)
- #define WMI_EHTCAP_MAC_TRIGTXOPMODE2_SET(eht_cap_mac, value) WMI_SET_BITS(eht_cap_mac[0], 3, 1, value)
- /* Bit 4: restricted TWT support */
- #define WMI_EHTCAP_MAC_RESTRICTTWT_GET(eht_cap_mac) WMI_GET_BITS(eht_cap_mac[0], 4, 1)
- #define WMI_EHTCAP_MAC_RESTRICTTWT_SET(eht_cap_mac, value) WMI_SET_BITS(eht_cap_mac[0], 4, 1, value)
- /* Bit 5: SCS traffic description support */
- #define WMI_EHTCAP_MAC_SCSTRAFFICDESC_GET(eht_cap_mac) WMI_GET_BITS(eht_cap_mac[0], 5, 1)
- #define WMI_EHTCAP_MAC_SCSTRAFFICDESC_SET(eht_cap_mac, value) WMI_SET_BITS(eht_cap_mac[0], 5, 1, value)
- /* Bit 6-7: maximum MPDU length */
- #define WMI_EHTCAP_MAC_MAXMPDULEN_GET(eht_cap_mac) WMI_GET_BITS(eht_cap_mac[0], 6, 2)
- #define WMI_EHTCAP_MAC_MAXMPDULEN_SET(eht_cap_mac, value) WMI_SET_BITS(eht_cap_mac[0], 6, 2, value)
- /* Bit 8: Maximum A-MPDU Length Exponent Extension */
- #define WMI_EHTCAP_MAC_MAXAMPDULEN_EXP_GET(eht_cap_mac) WMI_GET_BITS(eht_cap_mac[0], 8, 1)
- #define WMI_EHTCAP_MAC_MAXAMPDULEN_EXP_SET(eht_cap_mac, value) WMI_SET_BITS(eht_cap_mac[0], 8, 1, value)
- /* Bit 9: EHT TRS support */
- #define WMI_EHTCAP_MAC_TRS_SUPPORT_GET(eht_cap_mac) WMI_GET_BITS(eht_cap_mac[0], 9, 1)
- #define WMI_EHTCAP_MAC_TRS_SUPPORT_SET(eht_cap_mac, value) WMI_SET_BITS(eht_cap_mac[0], 9, 1, value)
- /* Bit 10: TXOP return support in txop sharing mode 2 */
- #define WMI_EHTCAP_MAC_TXOP_RETURN_SUPP_IN_SHARINGMODE2_GET(eht_cap_mac) WMI_GET_BITS(eht_cap_mac[0], 10, 1)
- #define WMI_EHTCAP_MAC_TXOP_RETURN_SUPP_IN_SHARINGMODE2_SET(eht_cap_mac, value) WMI_SET_BITS(eht_cap_mac[0], 10, 1, value)
- /* Bit 11: two BQRs support */
- #define WMI_EHTCAP_MAC_TWO_BQRS_SUPP_GET(eht_cap_mac) WMI_GET_BITS(eht_cap_mac[0], 11, 1)
- #define WMI_EHTCAP_MAC_TWO_BQRS_SUPP_SET(eht_cap_mac, value) WMI_SET_BITS(eht_cap_mac[0], 11, 1, value)
- /* Bit 12-13: EHT link adaptation support */
- #define WMI_EHTCAP_MAC_EHT_LINK_ADAPTATION_SUPP_GET(eht_cap_mac) WMI_GET_BITS(eht_cap_mac[0], 12, 2)
- #define WMI_EHTCAP_MAC_EHT_LINK_ADAPTATION_SUPP_SET(eht_cap_mac, value) WMI_SET_BITS(eht_cap_mac[0], 12, 2, value)
- /* Bit 14-15: reserved */
- /****** End of 11BE EHT MAC Capabilities Information field ******/
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_cfr_capture_event_fixed_param */
- A_UINT32 tlv_header;
- /* Method used to capture CFR - of type WMI_PEER_CFR_CAPTURE_METHOD */
- A_UINT32 capture_method;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* Peer MAC address. In AP mode, this is the address of the connected peer
- * for which CFR capture is needed. In case of STA mode, this is the address
- * of the AP to which the STA is connected
- */
- wmi_mac_addr mac_addr;
- /* primary 20 MHz channel frequency in mhz */
- A_UINT32 chan_mhz;
- /* BW of measurement - of type WMI_PEER_CFR_CAPTURE_BW */
- A_UINT32 bandwidth;
- /* phy mode WLAN_PHY_MODE of the channel defined in wlan_defs.h*/
- A_UINT32 phy_mode;
- /* Center frequency 1 in MHz*/
- A_UINT32 band_center_freq1;
- /* Center frequency 2 in MHz - valid only for 11acvht 80plus80 mode*/
- A_UINT32 band_center_freq2;
- /* Number of spatial streams */
- A_UINT32 sts_count;
- /* Bits 31:0: address of data from wmi_dma_buf_release_entry [31:0] */
- A_UINT32 correlation_info_1;
- /* Bits 11:0: address of data from wmi_dma_buf_release_entry [43:32]
- * Bits 15:12: reserved (set to 0x0)
- * Bits 31:16: hardware PPDU ID [15:0]
- */
- A_UINT32 correlation_info_2;
- /* Bits 1:0: TX status (if any); values defined in enum
- * WMI_FRAME_TX_STATUS
- * Bits 30:2: reserved (set to 0x0)
- * Bit 31: Status of the CFR capture of the peer
- * 1 (True) - Successful; 0 (False) - Not successful
- */
- A_UINT32 status;
- /* Timestamp in microseconds at which the CFR was captured in the hardware.
- * The clock used for this timestamp is private to the target and
- * is not visible to the host i.e., Host can interpret only the
- * relative timestamp deltas from one message to the next,
- * but can't interpret the absolute timestamp from a single message.
- */
- A_UINT32 timestamp_us;
- /*
- * Count of the current CFR capture from FW.
- * This is helpful to identify any drops in FW.
- */
- A_UINT32 counter;
- /* Per chain RSSI of the peer, for up to WMI_MAX_CHAINS.
- * Each chain's entry reports the RSSI for different bands in dBm units.
- * Use WMI_UNIFIED_CHAIN_RSSI_GET to extract the value for a particular
- * band.
- * A band value of 0x80 (-128) is invalid.
- */
- A_UINT32 chain_rssi[WMI_MAX_CHAINS];
- /* Carrier frequency offset
- It is Difference between down conversion oscillator frequency at the receiver
- versus carrier frequency of the received signal. To convert to ppm, below
- equation needs to be used. Here, Fc is carrier frequency (primary 20 channel frequency) in Hz:
- PPM = cfo_measurement(13 bits)/((2^13)/(800e-9)/2/Fc*1e6)
- PPM ranges from -40 to +40
- Bits 0 : 0 Set to 1 to indicate cfo measurement value is valid
- Bits 1 : 14 14 bits cfo measurement raw data. 14 bit is signed bit.
- For the above ppm equation , use the first 13 bits to calculate.
- */
- A_UINT32 cfo_measurement_valid :1,
- cfo_measurement :14,
- reserved :17;
- /* RX packet start timestamp.
- * It reports the time the first L-STF ADC sample arrived at RX antenna
- * It is in units of 480 MHz clock, i.e. number of clock cycles at 480 MHz.
- */
- A_UINT32 rx_start_ts;
- /*
- * The rx_ts_reset flag will be set to 1 upon every reset of rx_start_ts.
- */
- A_UINT32 rx_ts_reset;
- /*
- * MCS and Guard Interval.
- * MCS: For legacy mode only
- * 0: 48 Mbps
- * 1: 24 Mbps
- * 2: 12 Mbps
- * 3: 6 Mbps
- * 4: 54 Mbps
- * 5: 36 Mbps
- * 6: 18 Mbps
- * 7: 9 Mbps
- * 8-254: reserved
- * 255: invalid entry
- *
- * GI: For Legacy mode only
- * 0: 0.8 us
- * 1: 0.4 us
- * 2: 1.6 us
- * 3: 3.2 us
- * 4-254: reserved
- * 255: invalid entry
- *
- * Bits 0:7 mcs
- * Bits 8:15 gi_type
- * Bits 16:31 reserved
- */
- A_UINT32 mcs_gi_info;
- } wmi_peer_cfr_capture_event_fixed_param;
- #define WMI_CFR_MCS_GET(mcs_gi_info) \
- WMI_GET_BITS(mcs_gi_info, 0, 8)
- #define WMI_CFR_MCS_SET(mcs_gi_info, value) \
- WMI_SET_BITS(mcs_gi_info, 0, 8, value)
- #define WMI_CFR_GI_TYPE_GET(mcs_gi_info) \
- WMI_GET_BITS(mcs_gi_info, 8, 8)
- #define WMI_CFR_GI_TYPE_SET(mcs_gi_info, value) \
- WMI_SET_BITS(mcs_gi_info, 8, 8, value)
- #define WMI_UNIFIED_CHAIN_PHASE_MASK 0x0000ffff
- #define WMI_UNIFIED_CHAIN_PHASE_GET(tlv, chain_idx) \
- ((A_UINT16) ((tlv)->chain_phase[chain_idx] & WMI_UNIFIED_CHAIN_PHASE_MASK))
- #define WMI_UNIFIED_CHAIN_PHASE_SET(tlv, chain_idx, value) \
- (tlv)->chain_phase[chain_idx] = (WMI_UNIFIED_CHAIN_PHASE_MASK & (value))
- #define WMI_CFR_AGC_GAIN_CHAINS_PER_U32 4
- #define WMI_UNIFIED_AGC_GAIN_MASK 0x000000ff
- #define WMI_UNIFIED_AGC_GAIN_GET(tlv, chain_idx) \
- ((A_UINT8) ((tlv)->agc_gain_index[(chain_idx)/WMI_CFR_AGC_GAIN_CHAINS_PER_U32] >> \
- ((chain_idx)%WMI_CFR_AGC_GAIN_CHAINS_PER_U32)*8) & WMI_UNIFIED_AGC_GAIN_MASK)
- #define WMI_UNIFIED_AGC_GAIN_SET(tlv, chain_idx, value) \
- (tlv)->agc_gain_index[chain_idx/WMI_CFR_AGC_GAIN_CHAINS_PER_U32] = \
- (tlv)->agc_gain_index[chain_idx/WMI_CFR_AGC_GAIN_CHAINS_PER_U32] & \
- ~(0xff << (((chain_idx)%WMI_CFR_AGC_GAIN_CHAINS_PER_U32)*8)) | \
- (((value)<<((chain_idx)%WMI_CFR_AGC_GAIN_CHAINS_PER_U32)*8))
- #define WMI_UNIFIED_AGC_GAIN_TBL_IDX_GET(tlv, chain_idx) \
- ((A_UINT8) ((tlv)->agc_gain_tbl_index[(chain_idx)/WMI_CFR_AGC_GAIN_CHAINS_PER_U32] >> \
- ((chain_idx)%WMI_CFR_AGC_GAIN_CHAINS_PER_U32)*8) & WMI_UNIFIED_AGC_GAIN_MASK)
- #define WMI_UNIFIED_AGC_GAIN_TBL_IDX_SET(tlv, chain_idx, value) \
- (tlv)->agc_gain_tbl_index[chain_idx/WMI_CFR_AGC_GAIN_CHAINS_PER_U32] = \
- (tlv)->agc_gain_tbl_index[chain_idx/WMI_CFR_AGC_GAIN_CHAINS_PER_U32] & \
- ~(0xff << (((chain_idx)%WMI_CFR_AGC_GAIN_CHAINS_PER_U32)*8)) | \
- (((value)<<((chain_idx)%WMI_CFR_AGC_GAIN_CHAINS_PER_U32)*8))
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_cfr_capture_event_phase_fixed_param */
- A_UINT32 tlv_header;
- /* Per chain AoA phase data of the Peer, for up to WMI_MAX_CHAINS.
- * USE WMI_UNIFIED_CHAIN_PHASE_GET to extract the phase value for
- * a particular chain.
- * Only lower 2 bytes will contain phase data for a particular chain.
- * The values in phase data will be from 0 1023 as mapping of
- * 0-359 degrees using the formula -
- * phase data = phase in degrees * 1024 / 360
- *
- * Target will set 0xFFFF for all invalid chains.
- *
- * The WMI_UNIFIED_CHAIN_PHASE_GET/SET macros can be used to access
- * the valid portion of the 4-byte word containing the chain phase data.
- */
- A_UINT32 chain_phase[WMI_MAX_CHAINS];
- /* agc_gain_index
- * It shows an index in the AGC gain LUT.
- * agc gain should be in range between 0 to 62.
- * 4 AGC gain index values are packed into each A_UINT32 word;
- * use the WMI_UNITIFED_AGC_GAIN_GET/SET macros to read/write
- * the AGC gain indices for individual chains.
- */
- A_UINT32 agc_gain_index[WMI_MAX_CHAINS/WMI_CFR_AGC_GAIN_CHAINS_PER_U32];
- /*
- * Each chain is provided with 8 bits within agc_gain_tbl_index.
- * The value for each of these 8-bit portions is between 0 to 2:
- * 0 : Default Gain Table
- * 1 : Low RF Gain Table.
- * Low gain applied at RF as compared to gains applied when
- * gain_table _idx = 0 is selected.
- * 2 : Very Low RF Gain Table.
- * It's similar to above with even lower gains applied.
- *
- * AoA should use the normal/regular GLUT, thus GAIN_TABLE_IDX
- * should always be 0. If it is not 0, it means that there was
- * out-of-band blocker causing the hardware to pick a different
- * gain table. In that case, AoA result will not be reliable.
- * Therefore, the recommendation is to stop doing AoA if
- * GAIN_TABLE_IDX != 0 and indicate error.
- */
- A_UINT32 agc_gain_tbl_index[WMI_MAX_CHAINS/WMI_CFR_AGC_GAIN_CHAINS_PER_U32];
- } wmi_peer_cfr_capture_event_phase_fixed_param;
- #define WMI_PEER_CFR_CAPTURE_EVT_STATUS_OK 0x80000000
- #define WMI_PEER_CFR_CAPTURE_EVT_STATUS_OK_S 31
- /* Failed to capture CFR as peer is in power save mode */
- #define WMI_PEER_CFR_CAPTURE_EVT_STATUS_PS_FAILED 0x40000000
- #define WMI_PEER_CFR_CAPTURE_EVT_STATUS_PS_FAILED_S 30
- #define WMI_PEER_CFR_CAPTURE_EVT_STATUS_TX 0x00000003
- #define WMI_PEER_CFR_CAPTURE_EVT_STATUS_TX_S 0
- /**
- * wmi_cold_boot_cal_data config flags
- * BIT 0 : 1 means more data will come, 0 means last event
- * BIT 1-31 : Reserved
- */
- #define WMI_COLD_BOOT_CAL_DATA_SET_IS_MORE_DATA(flags, val) WMI_SET_BITS(flags, 0, 1, val)
- #define WMI_COLD_BOOT_CAL_DATA_GET_IS_MORE_DATA(flags) WMI_GET_BITS(flags, 0, 1)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_cold_boot_cal_data_fixed_param */
- A_UINT32 data_len; /** length in byte of data[]. */
- A_UINT32 flags; /** config flags : Only 0th bit is used, bit 1-31 are reserved */
- /* Following this structure is the TLV:
- * A_UINT8 data[]; <-- length in byte given by field data_len.
- * This data array contains cold boot data calibration raw data.
- */
- } wmi_cold_boot_cal_data_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_rap_info_event_fixed_param */
- /** pdev_id for identifying the MAC, the default value is WMI_PDEV_ID_SOC
- * See macros starting with WMI_PDEV_ID_ for values.
- */
- A_UINT32 pdev_id;
- A_UINT32 type; /** type of the rogue ap, see WMI_ROGUE_AP_TYPE */
- wmi_mac_addr bssid; /** bssid of the rogue ap */
- } wmi_pdev_rap_info_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_sched_tidq_susp_info_event_fixed_param */
- A_UINT32 pdev_id; /** pdev id */
- A_UINT32 tid_num; /** tid_num that is suspended */
- A_UINT32 suspended_time_ms; /** time for which tid has been suspended in ms */
- } wmi_pdev_sched_tidq_susp_info_event_fixed_param;
- /*
- * WMI API for Firmware to indicate iface combinations which Firmware
- * support to Host
- */
- typedef struct {
- A_UINT32 tlv_header; /* tag = WMITLV_TAG_STRUC_wmi_wlanfw_iface_cmb_ind_event_fixed_param */
- /* common part */
- /* Consider DBS/DBDC for this new implementation */
- A_UINT32 pdev_n;
- /* iface combinations part -
- * Use subsequent TLV arrays to list supported combinations of interfaces.
- */
- /*
- * The TLVs listing interface combinations, will follow this TLV.
- * The number of combinations can be calculated by dividing the
- * TLV array length by the TLV array element length.
- *
- * The fixed_param TLV is directly followed by a list of
- * wlanfw_iface_combination elements:
- * wlanfw_iface_combination combinations[0];
- * wlanfw_iface_combination combinations[1];
- * ...
- * wlanfw_iface_combination combinations[N];
- *
- * After the list of wlanfw_iface_combinations is a list of interface limits.
- * The cmb_limits field of each wlanfw_iface_combination show which of the
- * limits within the "wlanfw_ifact_limit limits" list belong to that
- * iface_combination:
- * limits[0] <- cmb 0, limit 0
- * ...
- * limits[cmb[0].cmb_limits-1] <- cmb 0, limit N
- * limits[cmb[0].cmb_limits] <- cmb 1, limit 0
- * ...
- * limits[cmb[0].cmb_limits+cmb[1].cmb_limits-1] <- cmb 1, limit N
- * limits[cmb[0].cmb_limits+cmb[1].cmb_limits] <- cmb 2, limit 0
- * ...
- */
- } wmi_wlanfw_iface_cmb_ind_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* tag = WMITLV_TAG_STRUC_wmi_wlanfw_iface_limit_param */
- /*
- * How many vdevs can work as below vdev_type/vdev_subtype
- * in one combination.
- */
- A_UINT32 vdev_limit_n;
- /*
- * Indicate what role above vdevs can work as.
- * Refer to "WMI_VDEV_TYPE_xx, WMI_UNIFIED_VDEV_SUBTYPE_xx"
- * for roles definition.
- */
- A_UINT32 vdev_type;
- A_UINT32 vdev_subtype;
- } wlanfw_iface_limit;
- /**
- * @brief specific configuration of valid_fields for host.
- * These flags are used for indicating which fields in wlanfw_iface_combination
- * contains valid value for Host Driver.
- * 0: Host can ignore this field
- * 1: field contains valid value for Host Driver
- */
- #define WMI_CMB_VALID_FIELDS_FLAG_PEER_MAX_S 0
- #define WMI_CMB_VALID_FIELDS_FLAG_PEER_MAX_M 0x1
- #define WMI_CMB_VALID_FIELDS_FLAG_STA_AP_BCN_INT_MATCH_S 1
- #define WMI_CMB_VALID_FIELDS_FLAG_STA_AP_BCN_INT_MATCH_M 0x2
- #define WMI_CMB_VALID_FIELDS_FLAG_BCN_INT_MIN_S 2
- #define WMI_CMB_VALID_FIELDS_FLAG_BCN_INT_MIN_M 0x4
- #define WMI_CMB_VALID_FIELDS_FLAG_BCN_INT_N_S 3
- #define WMI_CMB_VALID_FIELDS_FLAG_BCN_INT_N_M 0x8
- #define WMI_CMB_VALID_FIELDS_FLAG_SET(word32, flag, value) \
- do { \
- (word32) &= ~WMI_CMB_VALID_FIELDS_FLAG_ ## flag ## _M; \
- (word32) |= ((value) << WMI_CMB_VALID_FIELDS_FLAG_ ## flag ## _S) & \
- WMI_CMB_VALID_FIELDS_FLAG_ ## flag ## _M; \
- } while (0)
- #define WMI_CMB_VALID_FIELDS_FLAG_GET(word32, flag) \
- (((word32) & WMI_CMB_VALID_FIELDS_FLAG_ ## flag ## _M) >> \
- WMI_CMB_VALID_FIELDS_FLAG_ ## flag ## _S)
- #define WMI_CMB_VALID_FIELDS_FLAG_PEER_MAX_SET(word32, value) \
- WMI_CMB_VALID_FIELDS_FLAG_SET((word32), PEER_MAX, (value))
- #define WMI_CMB_VALID_FIELDS_FLAG_PEER_MAX_GET(word32) \
- WMI_CMB_VALID_FIELDS_FLAG_GET((word32), PEER_MAX)
- #define WMI_CMB_VALID_FIELDS_FLAG_STA_AP_BCN_INT_MATCH_SET(word32, value) \
- WMI_CMB_VALID_FIELDS_FLAG_SET((word32), STA_AP_BCN_INT_MATCH, (value))
- #define WMI_CMB_VALID_FIELDS_FLAG_STA_AP_BCN_INT_MATCH_GET(word32) \
- WMI_CMB_VALID_FIELDS_FLAG_GET((word32), STA_AP_BCN_INT_MATCH)
- #define WMI_CMB_VALID_FIELDS_FLAG_BCN_INT_MIN_SET(word32, value) \
- WMI_CMB_VALID_FIELDS_FLAG_SET((word32), BCN_INT_MIN, (value))
- #define WMI_CMB_VALID_FIELDS_FLAG_BCN_INT_MIN_GET(word32) \
- WMI_CMB_VALID_FIELDS_FLAG_GET((word32), BCN_INT_MIN)
- #define WMI_CMB_VALID_FIELDS_FLAG_BCN_INT_N_SET(word32, value) \
- WMI_CMB_VALID_FIELDS_FLAG_SET((word32), BCN_INT_N, (value))
- #define WMI_CMB_VALID_FIELDS_FLAG_BCN_INT_N_GET(word32) \
- WMI_CMB_VALID_FIELDS_FLAG_GET((word32), BCN_INT_N)
- typedef struct {
- A_UINT32 tlv_header;
- /*
- * Max num Peers can be supported in this combination.
- * It excludes the self-peers associated with each vdev.
- * It's the number of real remote peers.
- * eg: when working as AP mode, indicating how many clients can be
- * supported to connect with this AP.
- */
- A_UINT32 peer_max;
- /* Home Channels supported on one single phy concurrently */
- A_UINT32 channel_n;
- /*
- * The number of "wlanfw_iface_limit" for a specified combination.
- * eg: there is 2 vdev, including 1 AP vdev and 1 STA vdev, then this
- * cmb_limits will be 2 for this combination.
- */
- A_UINT32 cmb_limits;
- /*
- * Beacon intervals for STA and AP types need to be match or not.
- * 1: need to be match
- * 0: not need
- */
- A_UINT32 sta_ap_bcn_int_match;
- /*
- * This combination supports different beacon intervals or not.
- * 0: Beacon interval is same for all interface
- * !0: STA Beacon interval AND GCD of AP Beacon intervals
- * should be greater or equal to this value.
- */
- A_UINT32 bcn_int_min;
- /*
- * Number of different Beacon intervals
- */
- A_UINT32 bcn_int_n;
- /*
- * This indicates which field in this struct
- * contains valid value for Host Driver.
- * Refer to definitions for "WMI_CMB_VALID_FIELDS_FLAG_xx".
- */
- A_UINT32 valid_fields;
- } wlanfw_iface_combination;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_set_elna_bypass_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /** 1-Enable, 0-Disable */
- A_UINT32 en_dis;
- } wmi_set_elna_bypass_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_get_elna_bypass_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- } wmi_get_elna_bypass_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_get_elna_bypass_event_fixed_param */
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /** 1-Enable, 0-Disable */
- A_UINT32 en_dis;
- } wmi_get_elna_bypass_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_get_channel_ani_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /**
- * TLV (tag length value) parameters follow the
- * structure. The TLV's are:
- * list of channels (center freq of primary 20 MHz of the channel, in MHz)
- * A_UINT32 channel_list[];
- */
- } wmi_get_channel_ani_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_get_channel_ani_event_fixed_param
- */
- A_UINT32 tlv_header;
- /**
- * TLV (tag length value) parameters follow the
- * structure. The TLV's are:
- * wmi_channel_ani_info_tlv_param ani_info[];
- */
- } wmi_get_channel_ani_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_channel_ani_info_tlv_param */
- A_UINT32 tlv_header;
- /** channel freq (center of 20 MHz primary channel) in MHz */
- A_UINT32 chan_freq;
- /**
- * ANI (noise interference) level corresponding to the channel.
- * Values range from [0-9], with higher values indicating more
- * noise interference.
- */
- A_UINT32 ani_level;
- } wmi_channel_ani_info_tlv_param;
- /* This command is to specify to enable/disable audio frame aggr */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_audio_aggr_enable_cmd_fixed_param */
- A_UINT32 aggr_enable; /* enable aggregation for audio frame */
- A_UINT32 tbd_enable; /* enable time_based discarding for audio frame */
- A_UINT32 vdev_id;
- } wmi_audio_aggr_enable_cmd_fixed_param;
- typedef struct wmi_audio_aggr_rate_set_s {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_audio_aggr_rate_set */
- A_UINT32 mcs;
- A_UINT32 bandwidth; /* 0 for 20M, 1 for 40M and 2 for 80M, etc. */
- A_UINT32 vdev_id;
- } WMI_AUDIO_AGGR_RATE_SET_T;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_audio_aggr_add_group */
- A_UINT32 group_id; /* id of audio group */
- wmi_mac_addr multicast_addr; /* multicast address of audio group */
- A_UINT32 vdev_id;
- } wmi_audio_aggr_add_group_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_audio_aggr_del_group */
- A_UINT32 group_id;
- A_UINT32 vdev_id;
- } wmi_audio_aggr_del_group_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_audio_aggr_set_group_rate */
- A_UINT32 group_id;
- A_UINT32 vdev_id;
- /**
- * TLV (tag length value) parameters follow the
- * structure. The TLV's are:
- * WMI_AUDIO_AGGR_RATE_SET_T rate_set[];
- **/
- } wmi_audio_aggr_set_group_rate_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_audio_aggr_set_group_retry */
- A_UINT32 group_id;
- A_UINT32 retry_thresh;
- A_UINT32 vdev_id;
- } wmi_audio_aggr_set_group_retry_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 group_id;
- /*
- * bit0: if set, Enable HT20
- * bit1: if set, Enable HT40
- * bit2, bit3: Reserved
- * bit4: if set, Enable VHT20
- * bit5: if set, Enable VHT40
- * bit6: if set, Enable VHT80
- * bit7 ~ bit31: Reserved
- */
- A_UINT32 bw;
- A_UINT32 mcs_min;
- A_UINT32 mcs_max;
- A_UINT32 mcs_offset;
- A_UINT32 nss;
- } wmi_audio_aggr_set_group_auto_rate_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 group_id;
- A_UINT32 interval;
- } wmi_audio_aggr_set_group_probe_cmd_fixed_param;
- typedef struct {
- /**
- * TLV tag and len;
- * tag equals WMITLV_TAG_STRUC_wmi_audio_aggr_update_sta_group_info */
- A_UINT32 tlv_header;
- /* vdev id */
- A_UINT32 vdev_id; /* which STA/vdev's group membership is being specified */
- /* bitmap that indicates which groups this sta belongs to */
- A_UINT32 group_bmap;
- /*
- * This fixed_param struct is followed by a TLV array of wmi_mac_addr,
- * which specifies the multi-cast MAC address used for each group.
- * The number of elements within the TLV array matches the number of bits
- * set within group_bmap.
- */
- } wmi_audio_aggr_update_sta_group_info_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len **/
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /*
- * Identifier from Host to indicate how many this cmd been sent to FW.
- * This value will be echoed back in the response_id field
- * of the WMI_AUDIO_AGGR_REPORT_STATISTICS_EVENTID.
- */
- A_UINT32 request_id;
- } wmi_audio_aggr_get_statistics_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len **/
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- } wmi_audio_aggr_reset_statistics_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len **/
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /*
- * The user_mode and user_profile fields are passed through
- * the host driver to the target FW, but are never interpreted
- * by the host driver. The values for these fields are opaque
- * to the host, and are only interpreted by the FW.
- */
- A_UINT32 user_mode;
- A_UINT32 user_profile;
- } wmi_audio_aggr_set_rtscts_config_cmd_fixed_param;
- typedef enum {
- /* audio aggr scheduler method list */
- WMI_AUDIO_AGGR_SCHED_METHOD_HOST_CONTROL = 1,
- WMI_AUDIO_AGGR_SCHED_METHOD_HOST_CONTROL_PER_CYCLE = 2,
- WMI_AUDIO_AGGR_SCHED_METHOD_MAX,
- } WMI_AUDIO_AGGR_SCHED_METHOD_TYPE;
- typedef enum {
- /* audio aggr RTS-CTS Config */
- WMI_AUDIO_AGGR_RTS_CTS_CONFIG_DISABLED = 0,
- WMI_AUDIO_AGGR_RTS_CTS_CONFIG_PPDU = 1,
- WMI_AUDIO_AGGR_RTS_CTS_CONFIG_CYCLE = 2,
- WMI_AUDIO_AGGR_RTS_CTS_MAX,
- } WMI_AUDIO_AGGR_RTS_CTS_CONFIG_TYPE;
- typedef struct {
- /* TLV tag and len */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* selected audio aggr scheduler method
- * valid methods can be found in WMI_AUDIO_AGGR_SCHED_METHOD_TYPE
- */
- A_UINT32 sched_method;
- /* rts-cts config
- * valid config can be found in WMI_AUDIO_AGGR_RTS_CTS_CONFIG_TYPE
- */
- A_UINT32 rtscts_config;
- } wmi_audio_aggr_set_sched_method_cmd_fixed_param;
- typedef struct {
- /* TLV tag and len */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- } wmi_audio_aggr_get_sched_method_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_set_ocl_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /** enable/disable OCL, 1 - enable, 0 - disable*/
- A_UINT32 en_dis_chain;
- } wmi_set_ocl_cmd_fixed_param;
- typedef enum {
- /* HPA Handshake Stages */
- WMI_HPA_SMCK_REQUEST = 0,
- WMI_HPA_SMCK_RESPONSE = 1,
- WMI_HPA_SIGN_REQUEST = 2,
- WMI_HPA_SIGN_RESPONSE = 3,
- WMI_HPA_HANDSHAKE_STAGE_MAX,
- } WMI_HPA_STAGE_TYPE;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_hpa_cmd_fixed_param */
- /* stage:
- * HPA Handshake Stage, filled with a WMI_HPA_STAGE_TYPE enum value
- */
- A_UINT32 stage;
- /* the base address and length of data on host memory */
- A_UINT32 base_paddr_low; /* bits 31:0 */
- A_UINT32 base_paddr_high; /* bits 63:32 */
- A_UINT32 len; /* units = bytes */
- } wmi_hpa_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_hpa_evt_fixed_param */
- /* stage:
- * HPA Handshake Stage, filled with a WMI_HPA_STAGE_TYPE enum value
- */
- A_UINT32 stage;
- A_UINT32 nonce;
- } wmi_hpa_evt_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_audio_sync_qtimer */
- A_UINT32 vdev_id;
- A_UINT32 qtimer_l32;
- A_UINT32 qtimer_u32;
- } wmi_audio_sync_qtimer_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_audio_sync_trigger */
- A_UINT32 vdev_id;
- /* agg_relation:
- * indicates whether host needs only one pair of Qmaster and Qslave,
- * or Qmaster and Qslave pairs derived for each FTM frame exchange.
- * 0 indicates one pair for each FTM frame exchanged
- * 1 indicates only one pair of Qmaster and Qslave times.
- */
- A_UINT32 agg_relation;
- } wmi_audio_sync_trigger_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_mec_aging_timer_config_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /** SOC level Command. pdev_id - WMI_PDEV_ID_SOC is used.
- */
- A_UINT32 pdev_id;
- /* The Threshold for mec aging timer in ms
- */
- A_UINT32 mec_aging_timer_threshold;
- } wmi_pdev_mec_aging_timer_config_cmd_fixed_param;
- #define WMI_CFR_GROUP_TA_ADDR_VALID_BIT_POS 0
- #define WMI_CFR_GROUP_TA_ADDR_MASK_VALID_BIT_POS 1
- #define WMI_CFR_GROUP_RA_ADDR_VALID_BIT_POS 2
- #define WMI_CFR_GROUP_RA_ADDR_MASK_VALID_BIT_POS 3
- #define WMI_CFR_GROUP_BW_VALID_BIT_POS 4
- #define WMI_CFR_GROUP_NSS_VALID_BIT_POS 5
- #define WMI_CFR_GROUP_MGMT_SUBTYPE_VALID_BIT_POS 6
- #define WMI_CFR_GROUP_CTRL_SUBTYPE_VALID_BIT_POS 7
- #define WMI_CFR_GROUP_DATA_SUBTYPE_VALID_BIT_POS 8
- /* The bits in this mask mapped to WMI_PEER_CFR_CAPTURE_BW enum */
- #define WMI_CFR_GROUP_BW_MASK_NUM_BITS 6
- #define WMI_CFR_GROUP_BW_BIT_POS 0
- /* The bits in this mask correspond to the values as below
- * bit 0 -> Nss 1
- * bit 1 -> Nss 2
- * ...
- * bit 7 -> Nss 8
- */
- #define WMI_CFR_GROUP_NSS_MASK_NUM_BITS 8
- #define WMI_CFR_GROUP_NSS_BIT_POS 16
- #define WMI_CFR_GROUP_TA_ADDR_VALID_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_GROUP_TA_ADDR_VALID_BIT_POS, 1, value)
- #define WMI_CFR_GROUP_TA_ADDR_VALID_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_GROUP_TA_ADDR_VALID_BIT_POS, 1)
- #define WMI_CFR_GROUP_TA_ADDR_MASK_VALID_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_GROUP_TA_ADDR_MASK_VALID_BIT_POS, 1, value)
- #define WMI_CFR_GROUP_TA_ADDR_MASK_VALID_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_GROUP_TA_ADDR_MASK_VALID_BIT_POS, 1)
- #define WMI_CFR_GROUP_RA_ADDR_VALID_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_GROUP_RA_ADDR_VALID_BIT_POS, 1, value)
- #define WMI_CFR_GROUP_RA_ADDR_VALID_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_GROUP_RA_ADDR_VALID_BIT_POS, 1)
- #define WMI_CFR_GROUP_RA_ADDR_MASK_VALID_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_GROUP_RA_ADDR_MASK_VALID_BIT_POS, 1, value)
- #define WMI_CFR_GROUP_RA_ADDR_MASK_VALID_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_GROUP_RA_ADDR_MASK_VALID_BIT_POS, 1)
- #define WMI_CFR_GROUP_BW_VALID_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_GROUP_BW_VALID_BIT_POS, 1, value)
- #define WMI_CFR_GROUP_BW_VALID_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_GROUP_BW_VALID_BIT_POS, 1)
- #define WMI_CFR_GROUP_NSS_VALID_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_GROUP_NSS_VALID_BIT_POS, 1, value)
- #define WMI_CFR_GROUP_NSS_VALID_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_GROUP_NSS_VALID_BIT_POS, 1)
- #define WMI_CFR_GROUP_MGMT_SUBTYPE_VALID_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_GROUP_MGMT_SUBTYPE_VALID_BIT_POS, 1, value)
- #define WMI_CFR_GROUP_MGMT_SUBTYPE_VALID_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_GROUP_MGMT_SUBTYPE_VALID_BIT_POS, 1)
- #define WMI_CFR_GROUP_CTRL_SUBTYPE_VALID_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_GROUP_CTRL_SUBTYPE_VALID_BIT_POS, 1, value)
- #define WMI_CFR_GROUP_CTRL_SUBTYPE_VALID_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_GROUP_CTRL_SUBTYPE_VALID_BIT_POS, 1)
- #define WMI_CFR_GROUP_DATA_SUBTYPE_VALID_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_GROUP_DATA_SUBTYPE_VALID_BIT_POS, 1, value)
- #define WMI_CFR_GROUP_DATA_SUBTYPE_VALID_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_GROUP_DATA_SUBTYPE_VALID_BIT_POS, 1)
- #define WMI_CFR_GROUP_BW_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_GROUP_BW_BIT_POS, WMI_CFR_GROUP_BW_MASK_NUM_BITS, value)
- #define WMI_CFR_GROUP_BW_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_GROUP_BW_BIT_POS, WMI_CFR_GROUP_BW_MASK_NUM_BITS)
- #define WMI_CFR_GROUP_NSS_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_GROUP_NSS_BIT_POS, WMI_CFR_GROUP_NSS_MASK_NUM_BITS, value)
- #define WMI_CFR_GROUP_NSS_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_GROUP_NSS_BIT_POS, WMI_CFR_GROUP_NSS_MASK_NUM_BITS)
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_cfr_filter_group_config */
- A_UINT32 tlv_header;
- /* Filter group number for which the below filters needs to be applied */
- A_UINT32 filter_group_id;
- /* Indicates which of the below filter's value is valid
- * Bit 0: Ta_addr is valid if set
- * Bit 1: Ta_addr_mask is valid if set
- * Bit 2: Ra_addr is valid if set
- * Bit 3: Ra_addr_mask is valid if set
- * Bit 4: Bandwidth is valid if set
- * Bit 5: NSS is valid if set
- * Bit 6: Mgmt_subtype is valid if set
- * Bit 7: Ctrl_subtype is valid if set
- * Bit 8: Data_subtype is valid if set
- * Bits 31:9 Reserved for future use
- */
- A_UINT32 filter_set_valid_mask;
- /* ta_addr:
- * Packets matching the TA_mac addr will be filtered in by MAC
- * for CFR capture.
- */
- wmi_mac_addr ta_addr;
- /* ta_addr_mask:
- * Packets matching the TA_mac addr Mask will be filtered in by MAC
- * for CFR capture.
- */
- wmi_mac_addr ta_addr_mask;
- /* ra_addr:
- * Packets matching the RA_mac addr will be filtered in by MAC
- * for CFR capture.
- */
- wmi_mac_addr ra_addr;
- /* ra_addr_mask:
- * Packets matching the RA_mac addr Mask will be filtered in by MAC
- * for CFR capture.
- */
- wmi_mac_addr ra_addr_mask;
- /* bw_nss_filter:
- * Indicates which bw and nss packets will be filtered for CFR capture
- * Bits 4:0 CFR capture will be done for packets matching the bandwidths
- * specified within this bitmask
- * Bits 15:5 Reserved for future
- * Bits 23:16 CFR capture will be done for packets matching the Nss
- * specified within this bitmask
- * Bits 31:24 Reserved for future
- */
- A_UINT32 bw_nss_filter;
- /* mgmt_subtype_filter:
- * Managments Packets matching the subtype filter categories will be
- * filtered in by MAC for CFR capture.
- * This is a bitmask, in which each bit represents the corresponding
- * mgmt subtype value as per ieee80211_defs.h
- */
- A_UINT32 mgmt_subtype_filter;
- /* ctrl_subtype_filter:
- * Control Packets matching the subtype filter category will be
- * filtered in by MAC for CFR capture.
- * This is a bitmask, in which each bit represents the corresponding
- * ctrl subtype value as per ieee80211_defs.h
- */
- A_UINT32 ctrl_subtype_filter;
- /* data_subtype_filter:
- * Data Packets matching the subtype filter category will be
- * filtered in by MAC for CFR capture.
- * This is a bitmask, in which each bit represents the corresponding
- * data subtype value as per ieee80211_defs.h
- */
- A_UINT32 data_subtype_filter;
- } wmi_cfr_filter_group_config;
- #define WMI_CFR_DIRECTED_FTM_ACK_EN_BIT_POS 0
- #define WMI_CFR_ALL_FTM_ACK_EN_BIT_POS 1
- #define WMI_CFR_NDPA_NDP_DIRECTED_EN_BIT_POS 2
- #define WMI_CFR_NDPA_NDP_ALL_EN_BIT_POS 3
- #define WMI_CFR_TA_RA_TYPE_FILTER_EN_BIT_POS 4
- #define WMI_CFR_ALL_PACKET_EN_BIT_POS 5
- #define WMI_CFR_FILTER_IN_AS_FP_TA_RA_TYPE_BIT_POS 6
- #define WMI_CFR_CAPTURE_INTERVAL_NUM_BITS 24
- #define WMI_CFR_CAPTURE_INTERVAL_BIT_POS 0
- #define WMI_CFR_CAPTURE_DURATION_NUM_BITS 24
- #define WMI_CFR_CAPTURE_DURATION_BIT_POS 0
- #define WMI_CFR_FILTER_GROUP_BITMAP_NUM_BITS 16
- #define WMI_CFR_FILTER_GROUP_BITMAP_BIT_POS 0
- #define WMI_CFR_UL_MU_USER_UPPER_NUM_BITS 5
- #define WMI_CFR_UL_MU_USER_UPPER_BIT_POS 0
- #define WMI_CFR_FREEZE_DELAY_CNT_EN_MASK 1
- #define WMI_CFR_FREEZE_DELAY_CNT_EN_BIT_POS 0
- #define WMI_CFR_FREEZE_DELAY_CNT_THR_NUM_BITS 8
- #define WMI_CFR_FREEZE_DELAY_CNT_THR_BIT_POS 1
- #define WMI_CFR_CAPTURE_COUNT_NUM_BITS 16
- #define WMI_CFR_CAPTURE_COUNT_BIT_POS 0
- #define WMI_CFR_CAPTURE_INTERVAL_MODE_SEL_NUM_BITS 1
- #define WMI_CFR_CAPTURE_INTERVAL_MODE_SEL_BIT_POS 16
- #define WMI_CFR_DIRECTED_FTM_ACK_EN_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_DIRECTED_FTM_ACK_EN_BIT_POS, 1, value)
- #define WMI_CFR_DIRECTED_FTM_ACK_EN_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_DIRECTED_FTM_ACK_EN_BIT_POS, 1)
- #define WMI_CFR_ALL_FTM_ACK_EN_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_ALL_FTM_ACK_EN_BIT_POS, 1, value)
- #define WMI_CFR_ALL_FTM_ACK_EN_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_ALL_FTM_ACK_EN_BIT_POS, 1)
- #define WMI_CFR_NDPA_NDP_DIRECTED_EN_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_NDPA_NDP_DIRECTED_EN_BIT_POS, 1, value)
- #define WMI_CFR_NDPA_NDP_DIRECTED_EN_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_NDPA_NDP_DIRECTED_EN_BIT_POS, 1)
- #define WMI_CFR_NDPA_NDP_ALL_EN_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_NDPA_NDP_ALL_EN_BIT_POS, 1, value)
- #define WWMI_CFR_NDPA_NDP_ALL_EN_GET WMI_CFR_NDPA_NDP_ALL_EN_GET
- #define WMI_CFR_NDPA_NDP_ALL_EN_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_NDPA_NDP_ALL_EN_BIT_POS, 1)
- #define WMI_CFR_TA_RA_TYPE_FILTER_EN_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_TA_RA_TYPE_FILTER_EN_BIT_POS, 1, value)
- #define WMI_CFR_TA_RA_TYPE_FILTER_EN_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_TA_RA_TYPE_FILTER_EN_BIT_POS, 1)
- #define WWMI_CFR_ALL_PACKET_EN_SET WMI_CFR_ALL_PACKET_EN_SET
- #define WMI_CFR_ALL_PACKET_EN_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_ALL_PACKET_EN_BIT_POS, 1, value)
- #define WMI_CFR_ALL_PACKET_EN_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_ALL_PACKET_EN_BIT_POS, 1)
- #define WMI_CFR_FILTER_IN_AS_FP_TA_RA_TYPE_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_FILTER_IN_AS_FP_TA_RA_TYPE_BIT_POS, 1, value)
- #define WMI_CFR_FILTER_IN_AS_FP_TA_RA_TYPE_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_FILTER_IN_AS_FP_TA_RA_TYPE_BIT_POS, 1)
- #define WMI_CFR_CAPTURE_INTERVAL_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_CAPTURE_INTERVAL_BIT_POS, WMI_CFR_CAPTURE_INTERVAL_NUM_BITS, value)
- #define WMI_CFR_CAPTURE_INTERVAL_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_CAPTURE_INTERVAL_BIT_POS, WMI_CFR_CAPTURE_INTERVAL_NUM_BITS)
- #define WMI_CFR_CAPTURE_DURATION_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_CAPTURE_DURATION_BIT_POS, WMI_CFR_CAPTURE_DURATION_NUM_BITS, value)
- #define WMI_CFR_CAPTURE_DURATION_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_CAPTURE_DURATION_BIT_POS, WMI_CFR_CAPTURE_DURATION_NUM_BITS)
- #define WMI_CFR_FILTER_GROUP_BITMAP_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_FILTER_GROUP_BITMAP_BIT_POS, WMI_CFR_FILTER_GROUP_BITMAP_NUM_BITS, value)
- #define WMI_CFR_FILTER_GROUP_BITMAP_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_FILTER_GROUP_BITMAP_BIT_POS, WMI_CFR_FILTER_GROUP_BITMAP_NUM_BITS)
- #define WMI_CFR_UL_MU_USER_UPPER_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_UL_MU_USER_UPPER_BIT_POS, WMI_CFR_UL_MU_USER_UPPER_NUM_BITS, value)
- #define WMI_CFR_UL_MU_USER_UPPER_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_UL_MU_USER_UPPER_BIT_POS, WMI_CFR_UL_MU_USER_UPPER_NUM_BITS)
- #define WMI_CFR_FREEZE_DELAY_CNT_EN_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_FREEZE_DELAY_CNT_EN_BIT_POS, WMI_CFR_FREEZE_DELAY_CNT_EN_MASK, value)
- #define WMI_CFR_FREEZE_DELAY_CNT_EN_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_FREEZE_DELAY_CNT_EN_BIT_POS, WMI_CFR_FREEZE_DELAY_CNT_EN_MASK)
- #define WMI_CFR_FREEZE_DELAY_CNT_THR_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_FREEZE_DELAY_CNT_THR_BIT_POS, WMI_CFR_FREEZE_DELAY_CNT_THR_NUM_BITS, value)
- #define WMI_CFR_FREEZE_DELAY_CNT_THR_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_FREEZE_DELAY_CNT_THR_BIT_POS, WMI_CFR_FREEZE_DELAY_CNT_THR_NUM_BITS)
- #define WMI_CFR_CAPTURE_COUNT_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_CAPTURE_COUNT_BIT_POS, WMI_CFR_CAPTURE_COUNT_NUM_BITS, value)
- #define WMI_CFR_CAPTURE_COUNT_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_CAPTURE_COUNT_BIT_POS, WMI_CFR_CAPTURE_COUNT_NUM_BITS)
- #define WMI_CFR_CAPTURE_INTERVAL_MODE_SEL_SET(param, value) \
- WMI_SET_BITS(param, WMI_CFR_CAPTURE_INTERVAL_MODE_SEL_BIT_POS, WMI_CFR_CAPTURE_INTERVAL_MODE_SEL_NUM_BITS, value)
- #define WMI_CFR_CAPTURE_INTERVAL_MODE_SEL_GET(param) \
- WMI_GET_BITS(param, WMI_CFR_CAPTURE_INTERVAL_MODE_SEL_BIT_POS, WMI_CFR_CAPTURE_INTERVAL_MODE_SEL_NUM_BITS)
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_cfr_capture_filter_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /* filter_type:
- * Indicates the type of filter to be enabled
- * Bit 0: Filter Directed FTM ACK frames for CFR capture
- * Bit 1: Filter All FTM ACK frames for CFR capture
- * Bit 2: Filter NDPA NDP Directed Frames for CFR capture
- * Bit 3: Filter NDPA NDP All Frames for CFR capture
- * Bit 4: Filter Frames based on TA/RA/Subtype as provided
- * in CFR Group config
- * Bit 5: Filter in All packets for CFR Capture
- * Bit 6: Filter in TA/RA frames as FP if this bit is set else as MO
- * Bits 31:7 Reserved for future use
- */
- A_UINT32 filter_type;
- /* capture_interval:
- * Capture interval field which is time in between consecutive
- * CFR capture, in microsecond units
- * Bits 23:0 Capture interval
- * Bits 31:24 Reserved for future use
- */
- A_UINT32 capture_interval;
- /* capture_duration:
- * Capture Duration field for which CFR capture has to happen,
- * in microsecond units
- * Bits 23:0 Capture Duration
- * Bits 31:24 Reserved for future use
- */
- A_UINT32 capture_duration;
- /* Bitfields set indicates which of the CFR group config is enabled
- * Bits 15:0 Filter Group enable Bits
- * Bits 31:16 Reserved for future use
- * If Bit 0 is set, then CFR filter group 0 alone is enabled and so on
- */
- A_UINT32 filter_group_bitmap;
- /* ul_mu_user_mask_lower:
- * Bitfields indicates which of the users in the current UL MU
- * transmission are enabled for CFR capture.
- * Bits 31 to 0 indicates user indexes for 32 users in a UL MU transmission.
- * If bit 0 is set, then the CFR capture will happen for user index 0
- * in the current UL MU Transmission.
- * If bits 0,2 are set, then CFR capture for UL MU TX corresponds to
- * user indices 0 and 2.
- */
- A_UINT32 ul_mu_user_mask_lower;
- /* ul_mu_user_mask_upper:
- * This is continuation of the above lower mask.
- * Bits 4:0 Bitfields indicates user indices from 33 to 37 users.
- * Bits 31:5 Reserved for future use
- * If bit 0 is set, then CFR capture is enabled for user index 33
- * in a UL MU transmission.
- */
- A_UINT32 ul_mu_user_mask_upper;
- /* freeze_tlv_delay_cnt
- * Indicates the number of consecutive Rx packets to be skipped
- * before CFR capture is enabled again.
- * Bits 8:0 Freeze Delay Count value
- * Bits 31:9 Reserved for future use
- */
- A_UINT32 freeze_tlv_delay_cnt;
- /* capture_count:
- * Indicates the number of consecutive packets for which CFR capture
- * is to be enabled.
- * Interpretation of capture_interval_mode_select (bit 16):
- * Value 0: capture_interval + capture_duration fields are used
- * to capture CFR for capture_duration after every
- * capture_interval.
- * Value 1: capture_interval + capture_count fields are used to
- * capture CFR for capture_count+1 number of packets
- * after every capture interval
- * Bit 15:0 : capture_count
- * Refer to WMI_CFR_CAPTURE_COUNT_GET/SET macros.
- * Bit 16 : capture_interval_mode_select
- * Refer to WMI_CFR_CAPTURE_INTERVAL_MODE_SEL_GET/SET macros.
- * Bits 31:17 : Reserved
- */
- A_UINT32 capture_count;
- /*
- * A variable-length TLV array of wmi_cfr_filter_group_config will
- * follow this fixed_param TLV
- * wmi_cfr_filter_group_config filter_group_config[];
- */
- } wmi_cfr_capture_filter_cmd_fixed_param;
- enum wmi_oem_data_evt_cause {
- WMI_OEM_DATA_EVT_CAUSE_UNSPECIFIED = 0,
- WMI_OEM_DATA_EVT_CAUSE_CMD_REQ = 1,
- WMI_OEM_DATA_EVT_CAUSE_ASYNC = 2,
- WMI_OEM_DATA_EVT_CAUSE_QMS = 3, /* DEPRECATED */
- WMI_OEM_DATA_EVT_CAUSE_SMEM_MAILBOX = 3,
- };
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_oem_data_event_fixed_param */
- A_UINT32 data_len; /** length in byte of data[]. */
- /* Event Cause reason from enum wmi_oem_data_evt_cause */
- A_UINT32 event_cause;
- /* Following this structure is the TLV:
- * A_UINT8 data[]; <-- length in byte given by field data_len.
- * This data array contains OEM data, the payload begins with a field to tell the HOST regarding the kind of the OEM data.
- * A_UINT8 file_name[]; <-- Name of the file to which HOST needs to write this OEM specific data.
- */
- } wmi_oem_data_event_fixed_param;
- #define WMI_VLAN_TX_BIT_POS 0
- #define WMI_VLAN_RX_BIT_POS 1
- #define WMI_TX_INSERT_OR_STRIP_BIT_POS 2
- #define WMI_TX_STRIP_INSERT_VLAN_INNER_BIT_POS 3
- #define WMI_TX_STRIP_INSERT_VLAN_OUTER_BIT_POS 4
- #define WMI_RX_STRIP_VLAN_C_TAG_BIT_POS 5
- #define WMI_RX_STRIP_VLAN_S_TAG_BIT_POS 6
- #define WMI_RX_INSERT_VLAN_C_TAG_BIT_POS 7
- #define WMI_RX_INSERT_VLAN_S_TAG_BIT_POS 8
- #define WMI_TX_INSERT_VLAN_INNER_TCI_NUM_BITS 16
- #define WMI_TX_INSERT_VLAN_INNER_TCI_BIT_POS 0
- #define WMI_TX_INSERT_VLAN_OUTER_TCI_NUM_BITS 16
- #define WMI_TX_INSERT_VLAN_OUTER_TCI_BIT_POS 16
- #define WMI_VLAN_TX_SET(param, value) \
- WMI_SET_BITS(param, WMI_VLAN_TX_BIT_POS, 1, value)
- #define WMI_VLAN_TX_GET(param) \
- WMI_GET_BITS(param, WMI_VLAN_TX_BIT_POS, 1)
- #define WMI_VLAN_RX_SET(param, value) \
- WMI_SET_BITS(param, WMI_VLAN_RX_BIT_POS, 1, value)
- #define WMI_VLAN_RX_GET(param) \
- WMI_GET_BITS(param, WMI_VLAN_RX_BIT_POS, 1)
- #define WMI_TX_INSERT_OR_STRIP_SET(param, value) \
- WMI_SET_BITS(param, WMI_TX_INSERT_OR_STRIP_BIT_POS, 1, value)
- #define WMI_TX_INSERT_OR_STRIP_GET(param) \
- WMI_GET_BITS(param, WMI_TX_INSERT_OR_STRIP_BIT_POS, 1)
- #define WMI_TX_STRIP_INSERT_VLAN_INNER_SET(param, value) \
- WMI_SET_BITS(param, WMI_TX_STRIP_INSERT_VLAN_INNER_BIT_POS, 1, value)
- #define WMI_TX_STRIP_INSERT_VLAN_INNER_GET(param) \
- WMI_GET_BITS(param, WMI_TX_STRIP_INSERT_VLAN_INNER_BIT_POS, 1)
- #define WMI_TX_STRIP_INSERT_VLAN_OUTER_SET(param, value) \
- WMI_SET_BITS(param, WMI_TX_STRIP_INSERT_VLAN_OUTER_BIT_POS, 1, value)
- #define WMI_TX_STRIP_INSERT_VLAN_OUTER_GET(param) \
- WMI_GET_BITS(param, WMI_TX_STRIP_INSERT_VLAN_OUTER_BIT_POS, 1)
- #define WMI_RX_STRIP_VLAN_C_TAG_SET(param, value) \
- WMI_SET_BITS(param, WMI_RX_STRIP_VLAN_C_TAG_BIT_POS, 1, value)
- #define WMI_RX_STRIP_VLAN_C_TAG_GET(param) \
- WMI_GET_BITS(param, WMI_RX_STRIP_VLAN_C_TAG_BIT_POS, 1)
- #define WMI_RX_STRIP_VLAN_S_TAG_SET(param, value) \
- WMI_SET_BITS(param, WMI_RX_STRIP_VLAN_S_TAG_BIT_POS, 1, value)
- #define WMI_RX_STRIP_VLAN_S_TAG_GET(param) \
- WMI_GET_BITS(param, WMI_RX_STRIP_VLAN_S_TAG_BIT_POS, 1)
- #define WMI_RX_INSERT_VLAN_C_TAG_SET(param, value) \
- WMI_SET_BITS(param, WMI_RX_INSERT_VLAN_C_TAG_BIT_POS, 1, value)
- #define WMI_RX_INSERT_VLAN_C_TAG_GET(param) \
- WMI_GET_BITS(param, WMI_RX_INSERT_VLAN_C_TAG_BIT_POS, 1)
- #define WMI_RX_INSERT_VLAN_S_TAG_SET(param, value) \
- WMI_SET_BITS(param, WMI_RX_INSERT_VLAN_S_TAG_BIT_POS, 1, value)
- #define WMI_RX_INSERT_VLAN_S_TAG_GET(param) \
- WMI_GET_BITS(param, WMI_RX_INSERT_VLAN_S_TAG_BIT_POS, 1)
- #define WMI_TX_INSERT_VLAN_INNER_TCI_SET(param, value) \
- WMI_SET_BITS(param, WMI_TX_INSERT_VLAN_INNER_TCI_BIT_POS, WMI_TX_INSERT_VLAN_INNER_TCI_NUM_BITS, value)
- #define WMI_TX_INSERT_VLAN_INNER_TCI_GET(param) \
- WMI_GET_BITS(param, WMI_TX_INSERT_VLAN_INNER_TCI_BIT_POS, WMI_TX_INSERT_VLAN_INNER_TCI_NUM_BITS)
- #define WMI_TX_INSERT_VLAN_OUTER_TCI_SET(param, value) \
- WMI_SET_BITS(param, WMI_TX_INSERT_VLAN_OUTER_TCI_BIT_POS, WMI_TX_INSERT_VLAN_OUTER_TCI_NUM_BITS, value)
- #define WMI_TX_INSERT_VLAN_OUTER_TCI_GET(param) \
- WMI_GET_BITS(param, WMI_TX_INSERT_VLAN_OUTER_TCI_BIT_POS, WMI_TX_INSERT_VLAN_OUTER_TCI_NUM_BITS)
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_config_vlan_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /* peer_vlan_config_mask:
- * Field indicates VLAN settings that need to set in RX and TX peer
- * Bit 0: Indicates if the settings are present for TX peer
- * [1 - present for TX peer]
- * Bit 1: Indicates if the settings are present for RX peer
- * [1 - present for RX peer]
- * Bit 2: Setting the insert_or_strip bit in TX peer
- * [0 - Strip, 1 - Insert]
- * Bit 3: Setting the strip_insert_vlan_inner bit in TX peer
- * [0 - Strip, 1 - Insert]
- * Bit 4: Setting the strip_insert_vlan_outer bit in TX peer
- * [0 - Strip, 1 - Insert]
- * Bit 5: Setting the strip_vlan_c_tag_decap bit in RX peer [1 - Strip]
- * Bit 6: Setting the strip_vlan_s_tag_decap bit in RX peer [1 - Strip]
- * Bit 7: Setting the rx_insert_vlan_c_tag_padding bit in RX peer
- * [1 - Insert]
- * Bit 8: Setting the rx_insert_vlan_s_tag_padding bit in RX peer
- * [1 - Insert]
- */
- A_UINT32 peer_vlan_config_mask;
- /* insert_vlan_tci:
- * Field indicates the word that needs to be inserted in the
- * inner or outer tag, if insertion is enabled by the
- * TX peer strip_insert_vlan_{inner,outer} fields along with
- * insert_or_strip field
- * Bits 0:15 insert_vlan_inner_tci
- * Bits 16:31 insert_vlan_outer_tci
- */
- A_UINT32 insert_vlan_tci;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- } wmi_peer_config_vlan_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_peer_config_ppe_ds_cmd_fixed_param */
- A_UINT32 tlv_header;
- wmi_mac_addr peer_macaddr;
- A_UINT32 ppe_routing_enable; /* enum WMI_PPE_ROUTING_TYPE */
- /* The processing stages in PPE that this packet buffer need to go through
- * and on to which PPE queues these buffers should be mapped to.
- * Refer pkg/ppe/src/ppe_sc.h for service code types
- */
- A_UINT32 service_code;
- A_UINT32 priority_valid;
- /* Unique number that represents a VAP's vdev_id in PPE domain */
- A_UINT32 src_info;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- } wmi_peer_config_ppe_ds_cmd_fixed_param;
- typedef enum {
- WMI_PPE_ROUTING_DISABLED = 0,
- WMI_AST_USE_PPE_ENABLED = 1,
- WMI_AST_USE_PPE_DISABLED = 2,
- WMI_PPE_ROUTING_TYPE_MAX,
- } WMI_PPE_ROUTING_TYPE;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_multiple_vdev_restart_resp_event_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 pdev_id; /* ID of the pdev this response belongs to */
- A_UINT32 requestor_id;
- /** Return status. As per WMI_VDEV_START_RESPONSE_XXXXX */
- A_UINT32 status;
- /* The TLVs follows this structure:
- * A_UINT32 vdev_ids_bitmap[]; <--- Array of VDEV id bitmap.
- */
- } wmi_pdev_multiple_vdev_restart_resp_event_fixed_param;
- /** WMI event for Firmware to report soundbar audio frame statistics to Host **/
- typedef struct {
- /** TLV tag and len **/
- A_UINT32 tlv_header;
- A_UINT32 vdev_id; /* ID of the vdev this response belongs to */
- /** identify which request this responds to **/
- A_UINT32 response_id;
- /* audio frame statistics part -
- * Use subsequent TLV arrays to list group_stats and peer_stats.
- */
- /*
- * The TLVs listing group_stats, will follow this TLV.
- * The number of group_stats can be calculated by dividing the
- * TLV array length by the TLV array element length.
- *
- * The fixed_param TLV is directly followed by a list of
- * wmi_audio_aggr_group_stats elements:
- * wmi_audio_aggr_group_stats group_stats[0];
- * wmi_audio_aggr_group_stats group_stats[1];
- * ...
- * wmi_audio_aggr_group_stats group_stats[N];
- *
- * After the list of wmi_audio_aggr_group_stats is a list of peer_stats.
- * wmi_audio_aggr_peer_stats peer_stats[0];
- * wmi_audio_aggr_peer_stats peer_stats[1];
- * ...
- * wmi_audio_aggr_peer_stats peer_stats[N];
- *
- */
- } wmi_audio_aggr_statistics_event_fixed_param;
- typedef struct {
- /** TLV tag and len **/
- A_UINT32 tlv_header;
- /* Group mac_address */
- wmi_mac_addr group_addr;
- /* Group identity */
- A_UINT32 group_id;
- /* Multicast MSDU Data Packets received from Host for this Group */
- A_UINT32 mcast_tx;
- /*
- * Multicast MSDU Data Packets sent to OTA.
- * Customer defined SW Retry Packets not included, as these
- * SW Retry packets generated in FW locally, but not from Host.
- */
- A_UINT32 mcast_tx_ok;
- /*
- * Multicast MSDU Data Packets sent to OTA.
- * Only include Customer defined SW Retry Packets.
- */
- A_UINT32 mcast_tx_ok_retry;
- /*
- * Multicast MSDU Data Packets not sent to OTA,
- * discarded by tbd function due to timeout.
- * Customer defined SW Retry Packets not included.
- */
- A_UINT32 mcast_tx_tbd_lost;
- /*
- * Multicast MSDU Data Packets not sent to OTA,
- * discarded by tbd function due to timeout.
- * Only include Customer defined SW Retry Packets.
- */
- A_UINT32 mcast_tx_tbd_lost_retry;
- } wmi_audio_aggr_group_stats;
- typedef struct {
- /** TLV tag and len **/
- A_UINT32 tlv_header;
- /* STA mac_address */
- wmi_mac_addr peer_addr;
- /* Unicast MSDU Data Packets received from peer STA */
- A_UINT32 ucast_rx;
- /* Unicast MSDU Data Packets received from Host for Peer STA */
- A_UINT32 ucast_tx;
- /*
- * Unicast MSDU Data Packets received from Host,
- * and SW retry times for these packets.
- */
- A_UINT32 ucast_tx_retry;
- /*
- * Unicast MSDU Data Packets received from Host,
- * and sent to Peer STA successfully.
- */
- A_UINT32 ucast_tx_ok;
- /*
- * Unicast MSDU Data Packets received from Host,
- * but sent to Peer STA fail. not OTA, or no ACK from Peer.
- */
- A_UINT32 ucast_tx_lost;
- /*
- * Periodic NULL Data frames for multicast tx rate auto control.
- * Generated by FW locally, and sent to Peer STA successfully.
- */
- A_UINT32 null_frame_tx;
- /*
- * Periodic NULL Data frames for multicast tx rate auto control.
- * Generated by FW locally, but sent to Peer STA fail.
- */
- A_UINT32 null_frame_tx_lost;
- } wmi_audio_aggr_peer_stats;
- typedef struct {
- /** TLV tag and len **/
- A_UINT32 tlv_header;
- /* ID of the vdev this response belongs to */
- A_UINT32 vdev_id;
- /* selected audio aggr scheduler method
- * valid methods can be found in WMI_AUDIO_AGGR_SCHED_METHOD_TYPE
- */
- A_UINT32 sched_method;
- /* rts-cts config
- * valid config can be found in WMI_AUDIO_AGGR_RTS_CTS_CONFIG_TYPE
- */
- A_UINT32 rtscts_config;
- } wmi_audio_aggr_sched_method_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- *WMITLV_TAG_STRUC_wmi_pdev_srg_bss_color_bitmap_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /* 64 bit bss color bitmap used by SRG based spatial reuse feature
- * bitmap[0] contains lower 32 bits and bitmap[1] contains
- * upper 32 bits.
- */
- A_UINT32 srg_bss_color_bitmap[2];
- } wmi_pdev_srg_bss_color_bitmap_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- *WMITLV_TAG_STRUC_wmi_pdev_srg_partial_bssid_bitmap_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /* 64 bit partial bssid bitmap used by SRG based spatial reuse feature
- * bitmap[0] contains lower 32 bits and bitmap[1] contains
- * upper 32 bits.
- */
- A_UINT32 srg_partial_bssid_bitmap[2];
- } wmi_pdev_srg_partial_bssid_bitmap_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_srg_obss_color_enable_bitmap_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /* 64 bit SRG obss color enable bitmap used by SRG based spatial reuse feature
- * bitmap[0] contains lower 32 bits and bitmap[1] contains
- * upper 32 bits.
- */
- A_UINT32 srg_obss_en_color_bitmap[2];
- } wmi_pdev_srg_obss_color_enable_bitmap_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_srg_obss_bssid_enable_bitmap_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /* 64 bit obss bssid enable bitmap used by SRG based spatial reuse feature
- * bitmap[0] contains lower 32 bits and bitmap[1] contains
- * upper 32 bits.
- */
- A_UINT32 srg_obss_en_bssid_bitmap[2];
- } wmi_pdev_srg_obss_bssid_enable_bitmap_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_non_srg_obss_color_enable_bitmap_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /* 64 bit Non_SRG obss color enable bitmap used by Non_SRG based spatial reuse feature
- * bitmap[0] contains lower 32 bits and bitmap[1] contains
- * upper 32 bits.
- */
- A_UINT32 non_srg_obss_en_color_bitmap[2];
- } wmi_pdev_non_srg_obss_color_enable_bitmap_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_non_srg_obss_bssid_enable_bitmap_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /* 64 bit obss bssid enable bitmap used by Non_SRG based spatial reuse feature
- * bitmap[0] contains lower 32 bits and bitmap[1] contains
- * upper 32 bits.
- */
- A_UINT32 non_srg_obss_en_bssid_bitmap[2];
- } wmi_pdev_non_srg_obss_bssid_enable_bitmap_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_enable_duration_based_tx_mode_selection_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0
- */
- A_UINT32 pdev_id;
- /* enable/disable Duration based Tx Mode selection */
- A_UINT32 duration_based_tx_mode_selection;
- } wmi_pdev_enable_duration_based_tx_mode_selection_cmd_fixed_param;
- typedef enum {
- /* Simulation test command types */
- WMI_SIM_TEST_FRAME_CONTENT_CHANGE_CMD,
- WMI_SIM_TEST_DROP_FRAME_CMD,
- WMI_SIM_TEST_DELAY_FRAME_CMD,
- WMI_SIM_TEST_CONFIGURATION_CMD,
- WMI_SIM_TEST_CMD_UNKNOWN = 255,
- } WMI_SIMULATION_TEST_CMD_TYPE;
- typedef enum {
- /* Simulation test sub-command types */
- WMI_SIM_TEST_SUB_CMD_UNKNOWN = 255,
- } WMI_SIMULATION_TEST_SUB_CMD_TYPE;
- #define WMI_SIM_FRAME_TYPE_BIT_POS 0
- #define WMI_SIM_FRAME_SUBTYPE_BIT_POS 8
- #define WMI_SIM_FRAME_SEQ_BIT_POS 16
- #define WMI_SIM_FRAME_OFFSET_BIT_POS 0
- #define WMI_SIM_FRAME_LENGTH_BIT_POS 16
- #define WMI_SIM_FRAME_TYPE_SET(param, value) \
- WMI_SET_BITS(param, WMI_SIM_FRAME_TYPE_BIT_POS, 8, value)
- #define WMI_SIM_FRAME_TYPE_GET(param) \
- WMI_GET_BITS(param, WMI_SIM_FRAME_TYPE_BIT_POS, 8)
- #define WMI_SIM_FRAME_SUBTYPE_SET(param, value) \
- WMI_SET_BITS(param, WMI_SIM_FRAME_SUBTYPE_BIT_POS, 8, value)
- #define WMI_SIM_FRAME_SUBTYPE_GET(param) \
- WMI_GET_BITS(param, WMI_SIM_FRAME_SUBTYPE_BIT_POS, 8)
- #define WMI_SIM_FRAME_SEQ_SET(param, value) \
- WMI_SET_BITS(param, WMI_SIM_FRAME_SEQ_BIT_POS, 8, value)
- #define WMI_SIM_FRAME_SEQ_GET(param) \
- WMI_GET_BITS(param, WMI_SIM_FRAME_SEQ_BIT_POS, 8)
- #define WMI_SIM_FRAME_OFFSET_SET(param, value) \
- WMI_SET_BITS(param, WMI_SIM_FRAME_OFFSET_BIT_POS, 16, value)
- #define WMI_SIM_FRAME_OFFSET_GET(param) \
- WMI_GET_BITS(param, WMI_SIM_FRAME_OFFSET_BIT_POS, 16)
- #define WMI_SIM_FRAME_LENGTH_SET(param, value) \
- WMI_SET_BITS(param, WMI_SIM_FRAME_LENGTH_BIT_POS, 16, value)
- #define WMI_SIM_FRAME_LENGTH_GET(param) \
- WMI_GET_BITS(param, WMI_SIM_FRAME_LENGTH_BIT_POS, 16)
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_simulation_test_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC.
- * See macros starting with WMI_PDEV_ID_ for values.
- * In non-DBDC case host should set it to 0.
- */
- A_UINT32 pdev_id;
- /** vdev_id for identifying the vap simulation command needs to be applied.
- * This is for future purpose, currently only 1 vap is supported for
- * simulation test mode.
- * Host will always set it to 0 for now.
- */
- A_UINT32 vdev_id;
- /** peer MAC address for identifying the peer for which the simulation
- * command needs to be applied.
- * peer_macaddr needs to be set to '0' for simulation commands which
- * needs to be applied at pdev or vdev level.
- */
- wmi_mac_addr peer_macaddr;
- /** test command type, as per WMI_SIMULATION_TEST_CMD_TYPE */
- A_UINT32 test_cmd_type;
- /** test command type, as per WMI_SIMULATION_TEST_SUB_CMD_TYPE */
- A_UINT32 test_subcmd_type;
- /**
- * The frame type, frame subtype, and frame sequence number
- * are stored as bitfields within the below A_UINT32 "word".
- * Use the WMI_SIM_xxx_GET/SET macros to read and
- * write these bitfields.
- **/
- A_UINT32 frame_type_subtype_seq;
- /**
- * The frame offset and frame length,
- * are stored as bitfields within the below A_UINT32 "word".
- * Use the WMI_SIM_xxx_GET/SET macros to read and
- * write these bitfields.
- **/
- A_UINT32 frame_offset_length;
- /** buf_len: Buffer length in bytes
- * In some cases buf_len == frame_length, but not always.
- * For example, a DELAY_FRAME command will not involve any frame
- * contents, so frame_length will be zero, but buf_len will be
- * non-zero because it will contain command-specific parameters.
- */
- A_UINT32 buf_len;
- /* This TLV is followed by array of bytes:
- * A_UINT8 bufp[];
- * For FRAME_CONTENT_CHANGE commands, bufp contains the first 64 bytes
- * of the frame.
- */
- } wmi_simulation_test_cmd_fixed_param;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wfa_config_rsnxe */
- A_UINT32 tlv_header;
- /* rsnxe_param
- * Override RSNXE Used bit in FT reassoc request.
- * Possible values from host are:
- * 0 use default value based on capability
- * 1 override with 1
- * 2 override with 0
- */
- A_UINT32 rsnxe_param;
- } wmi_wfa_config_rsnxe;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wfa_config_csa */
- A_UINT32 tlv_header;
- /* ignore_csa
- * Ignore CSA from AP and keep STA in current channel and don't deauth AP.
- * Possible values from host are:
- * 0 default behavior
- * 1 ignore CSA
- */
- A_UINT32 ignore_csa;
- } wmi_wfa_config_csa;
- typedef enum {
- WMI_WFA_CONFIG_OCV_FRMTYPE_SAQUERY_REQ = 0x00000001,
- WMI_WFA_CONFIG_OCV_FRMTYPE_SAQUERY_RSP = 0x00000002,
- WMI_WFA_CONFIG_OCV_FRMTYPE_FT_REASSOC_REQ = 0x00000004,
- WMI_WFA_CONFIG_OCV_FRMTYPE_FILS_REASSOC_REQ = 0x00000008,
- } WMI_WFA_CONFIG_OCV_FRMTYPE;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wfa_config_ocv */
- A_UINT32 tlv_header;
- /* frame_types
- * Override OCI channel number in specified frames.
- * Possible frame types from host are enum WMI_WFA_CONFIG_OCV_FRMTYPE.
- */
- A_UINT32 frame_types;
- /* Frequency value in mhz to override in specified frame type */
- A_UINT32 chan_freq;
- } wmi_wfa_config_ocv;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wfa_config_saquery */
- A_UINT32 tlv_header;
- /* remain_connect_on_saquery_timeout
- * Don't send deauth on SA Query response timeout.
- * Possible values from host are:
- * 0 default behavior
- * 1 don't send deauth on SA Query response timeout
- */
- A_UINT32 remain_connect_on_saquery_timeout;
- } wmi_wfa_config_saquery;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wfa_config_ofdma */
- A_UINT32 tlv_header;
- /* force_he_trigger_to_eht_sta
- * Possible values from host are:
- * 0 default behavior
- * 1 instead of sending EHT triggers to EHT stations, send HE triggers
- */
- A_UINT32 force_he_trigger_to_eht_sta;
- } wmi_wfa_config_ofdma;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_wfa_config_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** VDEV identifier */
- A_UINT32 vdev_id;
- /* The below TLV arrays follow this structure:
- * wmi_wfa_config_rsnxe wfa_config_rsnxe[]; (0 or 1 elements)
- * wmi_wfa_config_csa wfa_config_csa[]; (0 or 1 elements)
- * wmi_wfa_config_ocv wfa_config_ocv[]; (0 or 1 elements)
- * wmi_wfa_config_saquery wfa_config_saquery[]; (0 or 1 elements)
- * wmi_wfa_config_ofdma wfa_config_ofdma[]; (0 or 1 elements)
- */
- } wmi_wfa_config_cmd_fixed_param;
- #define WMI_TWT_SESSION_FLAG_FLOW_ID_GET(_var) WMI_GET_BITS(_var, 0, 16)
- #define WMI_TWT_SESSION_FLAG_FLOW_ID_SET(_var, _val) WMI_SET_BITS(_var, 0, 16, _val)
- #define WMI_TWT_SESSION_FLAG_BCAST_TWT_GET(_var) WMI_GET_BITS(_var, 16, 1)
- #define WMI_TWT_SESSION_FLAG_BCAST_TWT_SET(_var, _val) WMI_SET_BITS(_var, 16, 1, _val)
- #define WMI_TWT_SESSION_FLAG_TRIGGER_TWT_GET(_var) WMI_GET_BITS(_var, 17, 1)
- #define WMI_TWT_SESSION_FLAG_TRIGGER_TWT_SET(_var, _val) WMI_SET_BITS(_var, 17, 1, _val)
- #define WMI_TWT_SESSION_FLAG_ANNOUN_TWT_GET(_var) WMI_GET_BITS(_var, 18, 1)
- #define WMI_TWT_SESSION_FLAG_ANNOUN_TWT_SET(_var, _val) WMI_SET_BITS(_var, 18, 1, _val)
- #define WMI_TWT_SESSION_FLAG_TWT_PROTECTION_GET(_var) WMI_GET_BITS(_var, 19, 1)
- #define WMI_TWT_SESSION_FLAG_TWT_PROTECTION_SET(_var, _val) WMI_SET_BITS(_var, 19, 1, _val)
- #define WMI_TWT_SESSION_FLAG_TWT_INFO_FRAME_DISABLED_GET(_var) WMI_GET_BITS(_var, 20, 1)
- #define WMI_TWT_SESSION_FLAG_TWT_INFO_FRAME_DISABLED_SET(_var, _val) WMI_SET_BITS(_var, 20, 1, _val)
- #define WMI_TWT_SESSION_FLAG_TWT_PM_RESPONDER_MODE_VALID_GET(_var) WMI_GET_BITS(_var, 21, 1)
- #define WMI_TWT_SESSION_FLAG_TWT_PM_RESPONDER_MODE_VALID_SET(_var, _val) WMI_SET_BITS(_var, 21, 1, _val)
- #define WMI_TWT_SESSION_FLAG_TWT_PM_RESPONDER_MODE_GET(_var) WMI_GET_BITS(_var, 22, 1)
- #define WMI_TWT_SESSION_FLAG_TWT_PM_RESPONDER_MODE_SET(_var, _val) WMI_SET_BITS(_var, 22, 1, _val)
- #define WMI_TWT_SESSION_FLAG_RESTRICTED_TWT_GET(_var) WMI_GET_BITS(_var, 23, 1)
- #define WMI_TWT_SESSION_FLAG_RESTRICTED_TWT_SET(_var, _val) WMI_SET_BITS(_var, 23, 1, _val)
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_twt_session_stats_info */
- A_UINT32 tlv_hdr;
- A_UINT32 vdev_id;
- wmi_mac_addr peer_mac;
- A_UINT32 event_type; /* event type - defined in enum wmi_twt_session_stats_type */
- /*
- * Flags to provide information on TWT session and session types.
- * This field is filled with the bitwise combination of the flag values
- * defined by WMI_TWT_SESSION_FLAG_xxx
- */
- A_UINT32 flow_id_flags;
- A_UINT32 dialog_id;
- A_UINT32 wake_dura_us;
- A_UINT32 wake_intvl_us;
- /* this long time after TWT resumed the 1st Service Period will start */
- A_UINT32 sp_offset_us;
- /* service period start TSF */
- A_UINT32 sp_tsf_us_lo; /* bits 31:0 */
- A_UINT32 sp_tsf_us_hi; /* bits 63:32 */
- /* Current TSF */
- A_UINT32 curr_tsf_us_lo; /* bits 31:0 */
- A_UINT32 curr_tsf_us_hi; /* bits 63:32 */
- } wmi_twt_session_stats_info;
- enum wmi_twt_session_stats_type {
- WMI_TWT_SESSION_SETUP = 1,
- WMI_TWT_SESSION_TEARDOWN = 2,
- WMI_TWT_SESSION_UPDATE = 3,
- WMI_TWT_SESSION_QUERY_RSP = 4,
- };
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_twt_session_stats_event_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 pdev_id; /* ID of the pdev this response belongs to */
- /* The TLVs follows this structure:
- * wmi_twt_session_stats_info twt_sessions[]; <--- Array of twt_session.
- */
- } wmi_pdev_twt_session_stats_event_fixed_param;
- typedef struct wmi_pdev_vendor_event
- {
- /* type is WMITLV_TAG_STRUC_wmi_vendor_pdev_event_fixed_param */
- A_UINT32 tlv_header;
- /* pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 pdev_id;
- /* Any vendor specialization cases will need to add sub_type enum defs. */
- A_UINT32 sub_type;
- wmi_pdev_vendor_event_val evt;
- /* NOTE:
- * Future changes may increase the size of pdev_vendor_event.
- * Consequently, no fields can be added here after pdev_vendor_event,
- * because their offsets within wmi_pdev_vendor_event_fixed_param
- * would change, causing backwards incompatibilities.
- */
- /*
- * This fixed_param TLV may be followed by the below TLVs:
- * - A_UINT32 opaque_vendor_var_len_data[]:
- * Variable-length array of opaque data.
- * The _fixed_param.sub_type value clarifies how to interpret the
- * contents of this opaque data.
- */
- } wmi_pdev_vendor_event_fixed_param;
- typedef wmi_pdev_vendor_event_fixed_param wmi_vendor_pdev_event_fixed_param;
- typedef struct wmi_vdev_vendor_event
- {
- /* type is WMITLV_TAG_STRUC_wmi_vendor_vdev_event_fixed_param */
- A_UINT32 tlv_header;
- /* pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 pdev_id;
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* Any vendor specialization cases will need to add sub_type enum defs. */
- A_UINT32 sub_type;
- wmi_vdev_vendor_event_val evt;
- /* NOTE:
- * Future changes may increase the size of vdev_vendor_event.
- * Consequently, no fields can be added here after vdev_vendor_event,
- * because their offsets within wmi_vdev_vendor_event_fixed_param
- * would change, causing backwards incompatibilities.
- */
- /*
- * This fixed_param TLV may be followed by the below TLVs:
- * - A_UINT32 opaque_vendor_var_len_data[]:
- * Variable-length array of opaque data.
- * The _fixed_param.sub_type value clarifies how to interpret the
- * contents of this opaque data.
- */
- } wmi_vdev_vendor_event_fixed_param;
- typedef wmi_vdev_vendor_event_fixed_param wmi_vendor_vdev_event_fixed_param;
- typedef struct wmi_peer_vendor_event
- {
- /* type is WMITLV_TAG_STRUC_wmi_vendor_peer_event_fixed_param */
- A_UINT32 tlv_header;
- /* pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 pdev_id;
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* peer MAC address */
- wmi_mac_addr peer_macaddr;
- /* Any vendor specialization cases will need to add sub_type enum defs. */
- A_UINT32 sub_type;
- wmi_peer_vendor_event_val evt;
- /* NOTE:
- * Future changes may increase the size of peer_vendor_event.
- * Consequently, no fields can be added here after peer_vendor_event,
- * because their offsets within wmi_peer_vendor_event_fixed_param
- * would change, causing backwards incompatibilities.
- */
- /*
- * This fixed_param TLV may be followed by the below TLVs:
- * - A_UINT32 opaque_vendor_var_len_data[]:
- * Variable-length array of opaque data.
- * The _fixed_param.sub_type value clarifies how to interpret the
- * contents of this opaque data.
- */
- } wmi_peer_vendor_event_fixed_param;
- typedef wmi_peer_vendor_event_fixed_param wmi_vendor_peer_event_fixed_param;
- typedef struct wmi_pdev_vendor_cmd
- {
- /* type is WMITLV_TAG_STRUC_wmi_vendor_pdev_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 pdev_id;
- /* Any vendor specialization cases will need to add sub_type enum defs. */
- A_UINT32 sub_type;
- wmi_pdev_vendor_cmd_val cmd;
- /* NOTE:
- * Future changes may increase the size of pdev_vendor_cmd.
- * Consequently, no fields can be added here after pdev_vendor_cmd,
- * because their offsets within wmi_pdev_vendor_cmd_fixed_param
- * would change, causing backwards incompatibilities.
- */
- /*
- * This fixed_param TLV may be followed by the below TLVs:
- * - A_UINT32 opaque_vendor_var_len_data[]:
- * Variable-length array of opaque data.
- * The _fixed_param.sub_type value clarifies how to interpret the
- * contents of this opaque data.
- */
- } wmi_pdev_vendor_cmd_fixed_param;
- typedef wmi_pdev_vendor_cmd_fixed_param wmi_vendor_pdev_cmd_fixed_param;
- typedef struct wmi_vdev_vendor_cmd
- {
- /* type is WMITLV_TAG_STRUC_wmi_vendor_vdev_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 pdev_id;
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* Any vendor specialization cases will need to add sub_type enum defs. */
- A_UINT32 sub_type;
- wmi_vdev_vendor_cmd_val cmd;
- /* NOTE:
- * Future changes may increase the size of vdev_vendor_cmd.
- * Consequently, no fields can be added here after vdev_vendor_cmd,
- * because their offsets within wmi_vdev_vendor_cmd_fixed_param
- * would change, causing backwards incompatibilities.
- */
- /*
- * This fixed_param TLV may be followed by the below TLVs:
- * - A_UINT32 opaque_vendor_var_len_data[]:
- * Variable-length array of opaque data.
- * The _fixed_param.sub_type value clarifies how to interpret the
- * contents of this opaque data.
- */
- } wmi_vdev_vendor_cmd_fixed_param;
- typedef wmi_vdev_vendor_cmd_fixed_param wmi_vendor_vdev_cmd_fixed_param;
- typedef struct wmi_peer_vendor_cmd
- {
- /* type is WMITLV_TAG_STRUC_wmi_vendor_peer_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* pdev_id for identifying the MAC. See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 pdev_id;
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* peer MAC address */
- wmi_mac_addr peer_macaddr;
- /* Any vendor specialization cases will need to add sub_type enum defs. */
- A_UINT32 sub_type;
- wmi_peer_vendor_cmd_val cmd;
- /* NOTE:
- * Future changes may increase the size of peer_vendor_cmd.
- * Consequently, no fields can be added here after peer_vendor_cmd,
- * because their offsets within wmi_peer_vendor_cmd_fixed_param
- * would change, causing backwards incompatibilities.
- */
- /*
- * This fixed_param TLV may be followed by the below TLVs:
- * - A_UINT32 opaque_vendor_var_len_data[]:
- * Variable-length array of opaque data.
- * The _fixed_param.sub_type value clarifies how to interpret the
- * contents of this opaque data.
- */
- } wmi_peer_vendor_cmd_fixed_param;
- typedef wmi_peer_vendor_cmd_fixed_param wmi_vendor_peer_cmd_fixed_param;
- typedef enum {
- WMI_MLO_LINK_FORCE_ACTIVE = 1, /* Force specific links active */
- WMI_MLO_LINK_FORCE_INACTIVE = 2, /* Force specific links inactive */
- WMI_MLO_LINK_FORCE_ACTIVE_LINK_NUM = 3, /* Force active a number of links, firmware to decide which links to inactive */
- WMI_MLO_LINK_FORCE_INACTIVE_LINK_NUM = 4, /* Force inactive a number of links, firmware to decide which links to inactive */
- WMI_MLO_LINK_NO_FORCE = 5, /* Cancel the force operation of specific links, allow firmware to decide */
- WMI_MLO_LINK_FORCE_ACTIVE_INACTIVE = 6, /* combination of force specific links active & force specific links inactive */
- WMI_MLO_LINK_NON_FORCE_UPDATE = 7, /* Used when host wants to update other fields like disallow_mlo_mode_bmap */
- } WMI_MLO_LINK_FORCE_MODE;
- typedef enum {
- WMI_MLO_LINK_FORCE_REASON_NEW_CONNECT = 1, /* Set force specific links because of new connection */
- WMI_MLO_LINK_FORCE_REASON_NEW_DISCONNECT = 2, /* Set force specific links because of new dis-connection */
- WMI_MLO_LINK_FORCE_REASON_LINK_REMOVAL = 3, /* Set force specific links because of AP-side link removal */
- WMI_MLO_LINK_FORCE_REASON_TDLS = 4, /* Set force specific links because of 11BE MLO TDLS setup/teardown */
- WMI_MLO_LINK_FORCE_REASON_REVERT_FAILURE = 5, /* Set force specific links for revert previous failed due to host reject */
- } WMI_MLO_LINK_FORCE_REASON;
- #define WMI_MLO_CONTROL_FLAGS_GET_OVERWRITE_FORCE_ACTIVE(mlo_flags) \
- WMI_GET_BITS(control_flags, 0, 1)
- #define WMI_MLO_CONTROL_FLAGS_SET_OVERWRITE_FORCE_ACTIVE(mlo_flags, value) \
- WMI_SET_BITS(control_flags, 0, 1, value)
- #define WMI_MLO_CONTROL_FLAGS_GET_OVERWRITE_FORCE_INACTIVE(mlo_flags) \
- WMI_GET_BITS(control_flags, 1, 1)
- #define WMI_MLO_CONTROL_FLAGS_SET_OVERWRITE_FORCE_INACTIVE(mlo_flags, value) \
- WMI_SET_BITS(control_flags, 1, 1, value)
- #define WMI_MLO_CONTROL_FLAGS_GET_DYNAMIC_FORCE_LINK_NUM(mlo_flags) \
- WMI_GET_BITS(control_flags, 2, 1)
- #define WMI_MLO_CONTROL_FLAGS_SET_DYNAMIC_FORCE_LINK_NUM(mlo_flags, value) \
- WMI_SET_BITS(control_flags, 2, 1, value)
- /*
- * This structure is used for passing wmi_mlo_control_flags.
- *
- * - When force_mode is WMI_MLO_LINK_FORCE_ACTIVE or
- * WMI_MLO_LINK_FORCE_INACTIVE host can pass below control flags,
- * to indicate if FW need to clear earlier force bitmap config.
- *
- * - When force mode is WMI_MLO_LINK_FORCE_ACTIVE_LINK_NUM or
- * WMI_MLO_LINK_FORCE_INACTIVE_LINK_NUM, host can pass below control flags,
- * to indicate if FW need to use force link number instead of force link
- * bitmap.
- */
- typedef struct {
- union {
- struct {
- A_UINT32 overwrite_force_active_bitmap:1, /* indicate overwrite all earlier force_active bitmaps */
- overwrite_force_inactive_bitmap:1, /* indicate overwrite all earlier force_inactive bitmaps */
- dynamic_force_link_num:1, /* indicate fw to use force link number instead of force link bitmap */
- unused: 29;
- };
- A_UINT32 control_flags;
- };
- } wmi_mlo_control_flags;
- typedef struct wmi_mlo_link_set_active_cmd
- {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_link_set_active_cmd_fixed_param; */
- A_UINT32 tlv_header;
- /** enum WMI_MLO_LINK_FORCE_MODE */
- A_UINT32 force_mode;
- /** reason of force link active / inactive, enum WMI_MLO_LINK_FORCE_REASON */
- A_UINT32 reason;
- /* indicate use vdev_id bitmap or link_id_bitmap */
- A_UINT32 use_ieee_link_id_bitmap;
- wmi_mac_addr ap_mld_mac_addr;
- wmi_mlo_control_flags ctrl_flags;
- /* The TLVs follows this structure:
- * wmi_mlo_set_active_link_number_param link_number_param[];
- * Link number parameters, optional TLV.
- * Present when force type is WMI_MLO_LINK_FORCE_ACTIVE_LINK_NUM or
- * WMI_MLO_LINK_FORCE_INACTIVE_LINK_NUM.
- * In other cases the length of array should be 0.
- *---
- * If use_ieee_link_id_bitmap equals 0 vdev_id_bitmap[] & vdev_id_bitmap2[]
- * are valid.
- * A_UINT32 vdev_id_bitmap[];
- * Optional TLV, present when force type is WMI_MLO_LINK_FORCE_ACTIVE
- * or WMI_MLO_LINK_FORCE_INACTIVE or WMI_MLO_LINK_NO_FORCE,
- * to specific the vdevs to configure.
- * For force mode WMI_MLO_LINK_FORCE_ACTIVE_INACTIVE vdev_id_bitmap[]
- * carry the active vdev bitmap.
- * In other cases the length of the array should be 0.
- * A_UINT32 vdev_id_bitmap2[];
- * For force mode WMI_MLO_LINK_FORCE_ACTIVE_INACTIVE vdev_id_bitmap2[]
- * carry the inactive vdev bitmap.
- * In other cases the length of the array should be 0.
- *---
- * If use_ieee_link_id_bitmap equals 1 ieee_link_id_bitmap[] &
- * ieee_link_id_bitmap2[] are valid.
- * A_UINT32 ieee_link_id_bitmap[];
- * present for WMI_MLO_LINK_FORCE_ACTIVE
- * or WMI_MLO_LINK_FORCE_INACTIVE or WMI_MLO_LINK_NO_FORCE
- * or WMI_MLO_LINK_FORCE_ACTIVE_LINK_NUM or
- * WMI_MLO_LINK_FORCE_INACTIVE_LINK_NUM
- * A_UINT32 ieee_link_id_bitmap2[];
- * For force mode WMI_MLO_LINK_FORCE_ACTIVE_INACTIVE ieee_link_id_bitmap2[]
- * carry the inactive linkid bitmap.
- * In other cases the length of the array should be 0.
- *---
- * wmi_disallowed_mlo_mode_bitmap_param_t disallow_mlo_mode_bmap[];
- */
- } wmi_mlo_link_set_active_cmd_fixed_param;
- typedef struct wmi_mlo_set_active_link_number_param
- {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_set_active_link_number_param */
- A_UINT32 tlv_header;
- /** number of link to be config */
- A_UINT32 num_of_link;
- /** VDEV type, see values for vdev_type (WMI_VDEV_TYPE_AP,WMI_VDEV_TYPE_STA,
- * WMI_VDEV_TYPE_IBSS, WMI_VDEV_TYPE_MONITOR,WMI_VDEV_TYPE_NAN,WMI_VDEV_TYPE_NDI ...)
- */
- A_UINT32 vdev_type;
- /** VDEV subtype, see values for vdev_subtype (WMI_UNIFIED_VDEV_SUBTYPE_P2P_DEVICE,
- * WMI_UNIFIED_VDEV_SUBTYPE_P2P_CLIENT, WMI_UNIFIED_VDEV_SUBTYPE_P2P_GO ...)*/
- A_UINT32 vdev_subtype;
- /** home channel frequency in MHz of the vdev*/
- A_UINT32 home_freq;
- } wmi_mlo_set_active_link_number_param;
- #define WMI_MLO_MODE_MLMR 0x1
- #define WMI_MLO_MODE_EMLSR 0x2
- #define WMI_MLO_IEEE_LINK_ID_INVALID 0xFF
- #define WMI_MLO_IEEE_LINK_ID_COMB_GET_LINK_ID1(ieee_link_id_comb) WMI_GET_BITS(ieee_link_id_comb, 0, 8)
- #define WMI_MLO_IEEE_LINK_ID_COMB_SET_LINK_ID1(ieee_link_id_comb, value) WMI_SET_BITS(ieee_link_id_comb, 0, 8, value)
- #define WMI_MLO_IEEE_LINK_ID_COMB_GET_LINK_ID2(ieee_link_id_comb) WMI_GET_BITS(ieee_link_id_comb, 8, 8)
- #define WMI_MLO_IEEE_LINK_ID_COMB_SET_LINK_ID2(ieee_link_id_comb, value) WMI_SET_BITS(ieee_link_id_comb, 8, 8, value)
- #define WMI_MLO_IEEE_LINK_ID_COMB_GET_LINK_ID3(ieee_link_id_comb) WMI_GET_BITS(ieee_link_id_comb, 16, 8)
- #define WMI_MLO_IEEE_LINK_ID_COMB_SET_LINK_ID3(ieee_link_id_comb, value) WMI_SET_BITS(ieee_link_id_comb, 16, 8, value)
- #define WMI_MLO_IEEE_LINK_ID_COMB_GET_LINK_ID4(ieee_link_id_comb) WMI_GET_BITS(ieee_link_id_comb, 24, 8)
- #define WMI_MLO_IEEE_LINK_ID_COMB_SET_LINK_ID4(ieee_link_id_comb, value) WMI_SET_BITS(ieee_link_id_comb, 24, 8, value)
- typedef struct wmi_disallowed_mlo_mode_bitmap_param
- {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_disallowed_mlo_mode_bitmap_param */
- A_UINT32 tlv_header;
- /** disallowed_mode_bitmap:
- * Bitmap of MLO Modes like MLMR, eMLSR which are not allowed.
- * Refer to WMI_MLO_MODE_*
- * disallowed_mode_bitmap Meaning
- * ====================== =================
- * 0x0 No restriction
- * 0x1 MLMR is not allowed
- * 0x2 EMLSR is not allowed
- * 0x3 MLMR and EMLSR are not allowed
- */
- A_UINT32 disallowed_mode_bitmap;
- /** ieee_link_id_comb:
- * Give combination of IEEE link IDs for which above disallowed_mode_bitmap
- * is applicable.
- * Each 8-bits in ieee_link_id_comb represents one link ID.
- * A link ID is an integer value between 0 and 14.
- * Please set WMI_MLO_IEEE_LINK_ID_INVALID (0xff) if 8-bits is not used.
- * Use WMI_MLO_IEEE_LINK_ID_COMB_GET_LINK_ID* and _SET_LINK_ID* to get/set
- * link IDs in this field.
- */
- A_UINT32 ieee_link_id_comb;
- /** Example:
- * Say there are 3 MLO links with ieee link IDs as 1,2 and 10.
- * Say host wants to disallow MLMR between links with IDs 1 and 2,
- * disallow eMLSR between links with IDs 1 and 10,
- * disallow MLMR and eMLSR for links with IDs 2 and 10.
- * There will be 3 TLVs of type wmi_disallowed_mlo_mode_bitmap_param
- * like below.
- *
- * wmi_disallowed_mlo_mode_bitmap_param[0]:
- * disallowed_mode_bitmap = 0x1,
- * ieee_link_id_comb = 0xFFFF0201
- * WMI_MLO_IEEE_LINK_ID_COMB_SET_LINK_ID1(ieee_link_id_comb, 0x01)
- * WMI_MLO_IEEE_LINK_ID_COMB_SET_LINK_ID2(ieee_link_id_comb, 0x02)
- *
- * wmi_disallowed_mlo_mode_bitmap_param[1]
- * disallowed_mode_bitmap = 0x2,
- * ieee_link_id_comb = 0xFFFF0A01
- * WMI_MLO_IEEE_LINK_ID_COMB_SET_LINK_ID1(ieee_link_id_comb, 0x01)
- * WMI_MLO_IEEE_LINK_ID_COMB_SET_LINK_ID2(ieee_link_id_comb, 0x0a)
- *
- * wmi_disallowed_mlo_mode_bitmap_param[2]
- * disallowed_mode_bitmap = 0x3,
- * ieee_link_id_comb = 0xFFFF0A02
- * WMI_MLO_IEEE_LINK_ID_COMB_SET_LINK_ID1(ieee_link_id_comb, 0x02)
- * WMI_MLO_IEEE_LINK_ID_COMB_SET_LINK_ID2(ieee_link_id_comb, 0x0a)
- */
- } wmi_disallowed_mlo_mode_bitmap_param;
- typedef enum {
- WMI_MLO_LINK_SET_ACTIVE_STATUS_SUCCESS = 0,
- WMI_MLO_LINK_SET_ACTIVE_STATUS_HOST_REJECT = 1,
- } WMI_MLO_LINK_SET_ACTIVE_STATUS;
- typedef struct wmi_mlo_link_set_active_resp_event
- {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_link_set_active_resp_event_fixed_param; */
- A_UINT32 tlv_header;
- /** Return status. 0 for success, non-zero otherwise */
- A_UINT32 status;
- /* indicate use vdev_id bitmap or link_id_bitmap */
- A_UINT32 use_ieee_link_id_bitmap;
- wmi_mac_addr ap_mld_mac_addr;
- /* The TLVs follows this structure:
- *---
- * If use_ieee_link_id_bitmap equals 0, vdev_bitmap[] are valid.
- * A_UINT32 force_active_vdev_bitmap[]; <-- current force active vdev.
- * A_UINT32 force_inactive_vdev_bitmap[]; <-- current force inactive vdevs
- *---
- * If use_ieee_link_id_bitmap equals 1, ieee_link_id_bitmap[] are valid.
- * A_UINT32 force_active_ieee_link_id_bitmap[];
- * A_UINT32 force_inactive_ieee_link_id_bitmap[];
- *---
- * current active ieee link id bitmap & inactive ieee link id bitmap
- * A_UINT32 current_active_ieee_link_id_bitmap[];
- * A_UINT32 current_inactive_ieee_link_id_bitmap[];
- */
- } wmi_mlo_link_set_active_resp_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_setup_cmd_fixed_param; */
- A_UINT32 tlv_header;
- /** Unique ID representing the hw_links part of the MLD */
- A_UINT32 mld_group_id;
- /** pdev_id for identifying the MAC, See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 pdev_id;
- /*
- * Followed by TLVs:
- * A_UINT32 hw_link_ids[];
- */
- } wmi_mlo_setup_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_setup_complete_event_fixed_param; */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC, See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 pdev_id;
- /** Return status. 0 for success, non-zero otherwise */
- A_UINT32 status;
- /** max_ml_peer_ids:
- * Max number of ml_peerids across the SOC, Derived as
- * max_mlo_peer * num chips.
- * (Max_mlo_peer and num_chips are provided by Host Platform
- * in QMI exchange).
- */
- A_UINT32 max_ml_peer_ids;
- } wmi_mlo_setup_complete_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_ready_cmd_fixed_param; */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC, See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 pdev_id;
- } wmi_mlo_ready_cmd_fixed_param;
- typedef enum wmi_mlo_tear_down_reason_code_type {
- WMI_MLO_TEARDOWN_REASON_SSR,
- /* keep old name as alias for new name */
- WMI_MLO_TEARDOWN_SSR_REASON = WMI_MLO_TEARDOWN_REASON_SSR,
- WMI_MLO_TEARDOWN_REASON_HOST_INITIATED,
- /* keep old name as alias for new name */
- WMI_MLO_TEARDOWN_HOST_INITIATED_REASON =
- WMI_MLO_TEARDOWN_REASON_HOST_INITIATED,
- WMI_MLO_TEARDOWN_REASON_STANDBY_DOWN,
- WMI_MLO_TEARDOWN_REASON_DYNAMIC_WSI_REMAP,
- } WMI_MLO_TEARDOWN_REASON_TYPE;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_teardown_fixed_param; */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC, See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 pdev_id;
- /** reason_code: of type WMI_TEARDOWN_REASON_TYPE */
- A_UINT32 reason_code;
- /* trigger_umac_reset : of type A_BOOL to indicate the umac reset for the partner chip. */
- A_UINT32 trigger_umac_reset;
- /* erp_standby_mode : of type A_BOOL to indicate the chip is going to be active in ERP */
- A_UINT32 erp_standby_mode;
- } wmi_mlo_teardown_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_teardown_complete_fixed_param; */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC, See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 pdev_id;
- /** Return status. 0 for success, non-zero otherwise */
- A_UINT32 status;
- } wmi_mlo_teardown_complete_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_peer_recommended_links; */
- A_UINT32 tlv_header;
- /** AID (association id) of this station */
- A_UINT32 assoc_id;
- /** Request link id set to disable */
- A_UINT32 linkid_bitmap;
- } wmi_mlo_peer_recommended_links;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_link_recommendation_fixed_param */
- A_UINT32 tlv_header;
- /* unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /* DTIM specified in units of num beacon intervals */
- A_UINT32 dtim_period;
- /* The TLVs follows this structure:
- * wmi_mlo_peer_recommended_links recommended_links[];
- */
- } wmi_mlo_link_recommendation_fixed_param;
- #define WMI_TID_TO_LINK_MAP_TID_NUM_GET(_var) WMI_GET_BITS(_var, 0, 5)
- #define WMI_TID_TO_LINK_MAP_TID_NUM_SET(_var, _val) WMI_SET_BITS(_var, 0, 5, _val)
- #define WMI_TID_TO_LINK_MAP_DIR_GET(_var) WMI_GET_BITS(_var, 5, 2)
- #define WMI_TID_TO_LINK_MAP_DIR_SET(_var, _val) WMI_SET_BITS(_var, 5, 2, _val)
- #define WMI_TID_TO_LINK_MAP_DEFAULT_MAPPING_GET(_var) WMI_GET_BITS(_var, 7, 1)
- #define WMI_TID_TO_LINK_MAP_DEFAULT_MAPPING_SET(_var, _val) WMI_SET_BITS(_var, 7, 1, _val)
- #define WMI_TID_TO_LINK_MAP_LINK_MASK_GET(_var) WMI_GET_BITS(_var, 8, 16)
- #define WMI_TID_TO_LINK_MAP_LINK_MASK_SET(_var, _val) WMI_SET_BITS(_var, 8, 16, _val)
- enum {
- WMI_TID_TO_LINK_MAP_DIR_DL,
- WMI_TID_TO_LINK_MAP_DIR_UL,
- WMI_TID_TO_LINK_MAP_DIR_BIDI,
- };
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tid_to_link_map */
- A_UINT32 tlv_header;
- /**
- * A_UINT32
- * WMI_TID_TO_LINK_MAP_TID_NUM_GET / WMI_TID_TO_LINK_MAP_TID_NUM_SET
- * tid_num:5,
- *
- * WMI_TID_TO_LINK_MAP_DIR_GET / WMI_TID_TO_LINK_MAP_DIR_SET
- * dir:2, // 0 - DL, 1 - UL, 2 - BiDi
- *
- * WMI_TID_TO_LINK_MAP_DEFAULT_MAPPING_GET /
- * WMI_TID_TO_LINK_MAP_DEFAULT_MAPPING_SET
- * default_link_mapping:1, // If this is set to 1, ignore
- * // link_mapping_mask for the specific tid
- *
- * WMI_TID_TO_LINK_MAP_LINK_MASK_GET / WMI_TID_TO_LINK_MAP_LINK_MASK_SET
- * link_mapping_mask:16,
- *
- * rsvd:8;
- */
- A_UINT32 tid_to_link_map_info;
- } wmi_tid_to_link_map;
- #define WMI_MAX_NUM_PREFERRED_LINKS 4
- /* NOTE:
- * wmi_peer_preferred_link_map will be deprecated and replaced
- * by wmi_mlo_peer_link_control_param.
- */
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_preferred_link_map */
- A_UINT32 tlv_header;
- /* num_preferred_links:
- * If it is 0, all links are equally preferred and which link to be used
- * in each schedule is decided by FW.
- */
- A_UINT32 num_preferred_links;
- /* [0] - highest preferred link, [1] - 2nd preferred link, etc. */
- A_UINT32 preferred_link_order[WMI_MAX_NUM_PREFERRED_LINKS];
- /* expected_max_latency_ms:
- * 0 - Expected Max Latency to be estimated in Firmware
- * Non 0 - Firmware should try to achieve given max latency
- * in first preferred link.
- * If unable to meet in first preferred link, start scheduling
- * in next preferred link and so on.
- */
- A_UINT32 expected_max_latency_ms[WLAN_MAX_AC];
- } wmi_peer_preferred_link_map;
- #define WMI_MLO_PEER_LINK_CONTROL_PARAM_SET_TX_LINK_TUPLE_CONFIG(comp, value) \
- WMI_SET_BITS(comp, 0, 1, value)
- #define WMI_MLO_PEER_LINK_CONTROL_PARAM_GET_TX_LINK_TUPLE_CONFIG(comp) \
- WMI_GET_BITS(comp, 0, 1)
- #define WMI_MLO_PEER_LINK_CONTROL_PARAM_SET_PREFERRED_LINK_CONFIG(comp, value) \
- WMI_SET_BITS(comp, 1, 1, value)
- #define WMI_MLO_PEER_LINK_CONTROL_PARAM_GET_PREFERRED_LINK_CONFIG(comp) \
- WMI_GET_BITS(comp, 1, 1)
- #define WMI_MAX_NUM_MLO_LINKS 5
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_preferred_link_map */
- A_UINT32 tlv_header;
- /** flags:
- * Bit0 : tx_link_tuple enable/disable.
- * When enabled, f/w picks the links in tx_link_tuple_bitmap
- * for TX scheduling.
- * Bit1 : preferred_link enable/disable.
- * When enabled, f/w schedules the data on preferred link first.
- * If it fails to deliver within a timeout, it additionally
- * starts attempting TX on non-preferred links.
- * Bit2-31 : reserved
- */
- A_UINT32 flags;
- /* num_links: number of links present in link_priority_order array below.
- * 0 - we dont have sorted list of link priority
- * non zero - this should be the max number of links that the peer supports.
- */
- A_UINT32 num_links;
- /* link_priority_order:
- * [0] - ID of highest priority link,
- * [1] - ID of 2nd highest priority link, etc.
- */
- A_UINT32 link_priority_order[WMI_MAX_NUM_MLO_LINKS];
- /* tx_link_tuple_bitmap:
- * bitmap of indices within link_priority_order array that needs to be
- * selected in the TX link tuple.
- * FW will not attempt scheduling on a link if it is not part of the
- * tx_link_tuple.
- */
- A_UINT32 tx_link_tuple_bitmap;
- /* max_timeout_ms: applicable only when preferred_link is enabled
- * 0 - max_timeout_ms to be estimated in Firmware
- * Non 0 - value beyond which, firmware should additionally start
- * scheduling on non preferred links
- */
- A_UINT32 max_timeout_ms[WLAN_MAX_AC];
- } wmi_mlo_peer_link_control_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_tid_to_link_map_fixed_param */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC, See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 pdev_id;
- /** MLO Peer's current link MAC address */
- wmi_mac_addr link_macaddr;
- /** mapping_switch_time from the T2LM IE */
- A_UINT32 mapping_switch_time;
- /** expected_duration from the T2LM IE, in units of TUs */
- A_UINT32 expected_duration;
- /**
- * Following this structure is the TLV:
- * - struct wmi_tid_to_link_map tid_to_link_map[];
- * - struct wmi_peer_preferred_link_map peer_preferred_link_map[];
- * Note - TLV array of peer_preferred_link_map has either 0 or 1
- * entries, not multiple entries.
- * - struct wmi_mlo_peer_link_control_param[];
- * Note: can have 0 or 1 entry.
- */
- } wmi_peer_tid_to_link_map_fixed_param;
- typedef struct{
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_ap_vdev_tid_to_link_map_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** pdev_id for identifying the MAC, See macros starting with WMI_PDEV_ID_ for values. */
- A_UINT32 pdev_id;
- /** vdev_id for identifying the MLO Vap */
- A_UINT32 vdev_id;
- /** DEPRECATED: disabled link bits */
- A_UINT32 disabled_link_bitmap; /* DEPRECATED */
- /**
- * Following this structure is the TLV:
- * struct wmi_mlo_ap_vdev_tid_to_link_map_ie_info[];
- */
- } wmi_mlo_ap_vdev_tid_to_link_map_cmd_fixed_param;
- typedef enum {
- /* Mapping Switch TSF */
- WMI_MAP_SWITCH_TIMER_TSF,
- /* Mapping Switch Timer Expired */
- WMI_MAP_SWITCH_TIMER_EXPIRED,
- /* Expected Duration Expired */
- WMI_EXPECTED_DUR_EXPIRED,
- } WMI_MLO_TID_TO_LINK_MAP_STATUS;
- #define WMI_BCAST_T2LM_MAX 16 /* max number of vdevs covered by T2LM stats */
- typedef struct {
- /* TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ctrl_path_t2lm_stats_struct
- */
- A_UINT32 tlv_header;
- /*
- * The below arrays store per-vdev counters, and are indexed by vdev ID.
- * The number of valid elements is min(WMI_BCAST_T2LM_MAX, num vdevs).
- */
- A_UINT32 bcast_t2lm_wmi_cmd[WMI_BCAST_T2LM_MAX];
- A_UINT32 bcast_t2lm_wmi_evt_map_swt_tme_tsf[WMI_BCAST_T2LM_MAX];
- A_UINT32 bcast_t2lm_wmi_evt_map_swt_tme_exp[WMI_BCAST_T2LM_MAX];
- A_UINT32 bcast_t2lm_wmi_evt_exp_dur_exp[WMI_BCAST_T2LM_MAX];
- } wmi_ctrl_path_t2lm_stats_struct;
- typedef struct{
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_ap_vdev_tid_to_link_map_evt_fixed_param */
- A_UINT32 tlv_header;
- /* vdev_id of AP MLO vap */
- A_UINT32 vdev_id;
- /* containts mapping status of WMI_MLO_TID_TO_LINK_MAP_STATUS */
- A_UINT32 status_type;
- /* Mapping switch time of current TSF value */
- A_UINT32 mapping_switch_tsf;
- } wmi_mlo_ap_vdev_tid_to_link_map_evt_fixed_param;
- /* CTRL Field bit-5-7 reserved */
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_DIR_GET(_var) WMI_GET_BITS(_var, 0, 2)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_DIR_SET(_var, _val) WMI_SET_BITS(_var, 0, 2, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_DEF_LINK_GET(_var) WMI_GET_BITS(_var, 2, 1)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_DEF_LINK_SET(_var, _val) WMI_SET_BITS(_var, 2, 1, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_SWT_TIME_GET(_var) WMI_GET_BITS(_var, 3, 1)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_SWT_TIME_SET(_var, _val) WMI_SET_BITS(_var, 3, 1, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_DUR_TIME_GET(_var) WMI_GET_BITS(_var, 4, 1)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_DUR_TIME_SET(_var, _val) WMI_SET_BITS(_var, 4, 1, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_LINK_MAP_SIZE_GET(_var) WMI_GET_BITS(_var, 5, 1)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_LINK_MAP_SIZE_SET(_var, _val) WMI_SET_BITS(_var, 5, 1, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_LINK_MAP_PRE_GET(_var) WMI_GET_BITS(_var, 8, 8)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_LINK_MAP_PRE_SET(_var, _val) WMI_SET_BITS(_var, 8, 8, _val)
- /* IEEE Link ID 15 bits on each link id 1 bit is reserved */
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_0_GET(_var) WMI_GET_BITS(_var, 0, 15)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_0_SET(_var, _val) WMI_SET_BITS(_var, 0, 15, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_1_GET(_var) WMI_GET_BITS(_var, 16, 15)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_1_SET(_var, _val) WMI_SET_BITS(_var, 16, 15, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_2_GET(_var) WMI_GET_BITS(_var, 0, 15)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_2_SET(_var, _val) WMI_SET_BITS(_var, 0, 15, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_3_GET(_var) WMI_GET_BITS(_var, 16, 15)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_3_SET(_var, _val) WMI_SET_BITS(_var, 16, 15, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_4_GET(_var) WMI_GET_BITS(_var, 0, 15)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_4_SET(_var, _val) WMI_SET_BITS(_var, 0, 15, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_5_GET(_var) WMI_GET_BITS(_var, 16, 15)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_5_SET(_var, _val) WMI_SET_BITS(_var, 16, 15, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_6_GET(_var) WMI_GET_BITS(_var, 0, 15)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_6_SET(_var, _val) WMI_SET_BITS(_var, 0, 15, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_7_GET(_var) WMI_GET_BITS(_var, 16, 15)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_7_SET(_var, _val) WMI_SET_BITS(_var, 16, 15, _val)
- /* HW Link ID each hw link with 16-bit */
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_0_GET(_var) WMI_GET_BITS(_var, 0, 16)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_0_SET(_var, _val) WMI_SET_BITS(_var, 0, 16, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_1_GET(_var) WMI_GET_BITS(_var, 16, 16)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_1_SET(_var, _val) WMI_SET_BITS(_var, 16, 16, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_2_GET(_var) WMI_GET_BITS(_var, 0, 16)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_2_SET(_var, _val) WMI_SET_BITS(_var, 0, 16, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_3_GET(_var) WMI_GET_BITS(_var, 16, 16)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_3_SET(_var, _val) WMI_SET_BITS(_var, 16, 16, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_4_GET(_var) WMI_GET_BITS(_var, 0, 16)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_4_SET(_var, _val) WMI_SET_BITS(_var, 0, 16, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_5_GET(_var) WMI_GET_BITS(_var, 16, 16)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_5_SET(_var, _val) WMI_SET_BITS(_var, 16, 16, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_6_GET(_var) WMI_GET_BITS(_var, 0, 16)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_6_SET(_var, _val) WMI_SET_BITS(_var, 0, 16, _val)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_7_GET(_var) WMI_GET_BITS(_var, 16, 16)
- #define WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_7_SET(_var, _val) WMI_SET_BITS(_var, 16, 16, _val)
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tid_to_link_map */
- A_UINT32 tlv_header;
- /*
- * A_UINT32
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_DIR_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_DIR_SET
- * direction: 2 // 0 - DL, 1 - UL, 2 - BiDi
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_DEF_LINK_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_DEF_LINK_SET
- * default_link_mapping:1 // 1 - Default Link Mapping Present
- * // 0 - Default Link Mapping not present
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_SWT_TIME_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_SWT_TIME_SET
- * mapping_switch_time_present:1 // 1 - Mapping Switch Time
- * // Field Present
- * // 0 - Mapping Switch Time
- * // Field not Present
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_DUR_TIME_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_DUR_TIME_SET
- * expected_duration_present:1 // 1 - Expected Duration Field Present
- * // 0 - Expected Duration Field
- * // not Present
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_LINK_MAP_SIZE_GET
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_LINK_MAP_SIZE_SET
- * link_mapping_size:1 // 1 - Link Mapping Size 1 Octets
- * // 0 - Link Mapping Size 2 Octets
- *
- * reserved:2
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_LINK_MAP_PRE_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_CTRL_LINK_MAP_PRE_SET
- * link_mapping_presence_indicator:8 // Link mapping presence indicator
- *
- * reserved2:16 // upper 16 bits are unused
- */
- A_UINT32 tid_to_link_map_ctrl;
- /*
- * Mapping Switch time represents TSF time for the New TID_TO_LINK Mapping
- * will be established
- * 16 bit of TSF time ( from bits 10 to 25)
- *
- * Default to Non-Default: One TID_TO_LINK Mapping IE
- * (wmi_mlo_ap_vdev_tid_to_link_map_ie_info)
- * Mapping switch time present for New Non-Default Mapping
- *
- * Non-Default to Non-Default: Two TID_TO_LINK Mapping IE
- * (wmi_mlo_ap_vdev_tid_to_link_map_ie_info)
- * Mapping switch time not present for 1st TID_TO_LINK Mapping
- * (Current Non-Default Mapping) value would be zero
- * Mapping switch time present for 2nd TID_TO_LINK Mapping
- * (New Non-Default Mapping)
- *
- * Non_Default to Default: One TID_TO_LINK Mapping IE
- * (wmi_mlo_ap_vdev_tid_to_link_map_ie_info)
- * Mapping switch time not present value would be zero
- */
- A_UINT32 map_switch_time;
- /*
- * Expected duration would be either duration/remaining duration of Mapping
- *
- * Default to Non-Default: One TID_TO_LINK Mapping IE
- * (wmi_mlo_ap_vdev_tid_to_link_map_ie_info)
- * Expected duration represents duration of New Non-Default Mapping
- * will be effective
- *
- * Non-Default to Non-Default: Two TID_TO_LINK Mapping IE
- * (wmi_mlo_ap_vdev_tid_to_link_map_ie_info)
- * Expected duration represents remaing duration of 1st TID_TO_LINK
- * Mapping (Current Non-Default Mapping)
- * Expected duration represents duration of the 2nd TID_TO_LINK
- * Mapping (New Non-Default Mapping ) will be effective
- *
- * Non_Default to Default: One TID_TO_LINK Mapping IE
- * (wmi_mlo_ap_vdev_tid_to_link_map_ie_info)
- * Expected duration represents remaing duration of Current Non-Default
- * Mapping
- */
- A_UINT32 expected_duration;
- /*
- * for default_link_mapping ieee_tid_0_1_link_map value would be zero
- * which means IE should not include this param
- * A_UINT32
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_0_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_0_SET
- * tid_0_link_id:15 // TID_0 Link IDs (0 to 14)
- * // Non-Zero value represents links mapped
- * // to this TID.
- * // Zero value represents links are not mapped
- * // to this TID.
- *
- * reserved:1
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_1_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_1_SET
- * tid_1_link_id:15 // TID_1 Link IDs (0 to 14)
- * // Non-Zero value represents links mapped
- * // to this TID.
- * // Zero value represents links are not mapped
- * // to this TID.
- *
- * reserved:1
- */
- A_UINT32 ieee_tid_0_1_link_map;
- /*
- * for default_link_mapping ieee_tid_2_3_link_map value would be zero
- * which means IE should not include this param
- * A_UINT32
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_2_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_2_SET
- * tid_2_link_id:15 // TID_2 Link IDs (0 to 14)
- * // Non-Zero value represents links mapped
- * // to this TID.
- * // Zero value represents links are not mapped
- * // to this TID.
- *
- * reserved:1
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_3_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_3_SET
- * tid_3_link_id:15 // TID_3 Link IDs (0 to 14)
- * // Non-Zero value represents links mapped
- * // to this TID.
- * // Zero value represents links are not mapped
- * // to this TID.
- *
- * reserved:1
- */
- A_UINT32 ieee_tid_2_3_link_map;
- /*
- * for default_link_mapping ieee_tid_4_5_link_map value would be zero
- * which means IE should not include this param
- * A_UINT32
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_4_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_4_SET
- * tid_4_link_id:15 // TID_4 Link IDs (0 to 14)
- * // Non-Zero value represents links mapped
- * // to this TID.
- * // Zero value represents links are not mapped
- * // to this TID.
- *
- * reserved:1
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_5_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_5_SET
- * tid_5_link_id:15 // TID_5 Link IDs (0 to 14)
- * // Non-Zero value represents links mapped
- * // to this TID.
- * // Zero value represents links are not mapped
- * // to this TID.
- *
- * reserved:1
- */
- A_UINT32 ieee_tid_4_5_link_map;
- /*
- * for default_link_mapping ieee_tid_6_7_link_map value would be zero
- * which means IE should not include this param
- * A_UINT32
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_6_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_6_SET
- * tid_6_link_id:15 // TID_6 Link IDs (0 to 14)
- * // Non-Zero value represents links mapped
- * // to this TID.
- * // Zero value represents links are not mapped
- * // to this TID.
- *
- * reserved:1
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_7_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_IEEE_LINK_ID_7_SET
- * tid_7_link_id:15 // TID_7 Link IDs (0 to 14)
- * // Non-Zero value represents links mapped
- * // to this TID.
- * // Zero value represents links are not mapped
- * // to this TID.
- *
- * reserved:1
- */
- A_UINT32 ieee_tid_6_7_link_map;
- /*
- * hw_link_map will be used by the FW to pause or unpause the TIDs
- * in all the associated MLD STAs in the corresponsing MLD VAP
- * A_UINT32
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_0_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_0_SET
- * hw_tid_0_link_map:16
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_1_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_1_SET
- * hw_tid_1_link_map:16
- */
- A_UINT32 hw_tid_0_1_link_map;
- /*
- * hw_link_map will be used by the FW to pause or unpause the TIDs
- * in all the associated MLD STAs in the corresponsing MLD VAP
- * A_UINT32
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_2_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_2_SET
- * hw_tid_2_link_map:16
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_3_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_3_SET
- * hw_tid_3_link_map:16
- */
- A_UINT32 hw_tid_2_3_link_map;
- /*
- * hw_link_map will be used by the FW to pause or unpause the TIDs
- * in all the associated MLD STAs in the corresponsing MLD VAP
- * A_UINT32
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_4_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_4_SET
- * hw_tid_4_link_map:16
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_5_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_5_SET
- * hw_tid_5_link_map:16
- */
- A_UINT32 hw_tid_4_5_link_map;
- /*
- * hw_link_map will be used by the FW to pause or unpause the TIDs
- * in all the associated MLD STAs in the corresponsing MLD VAP
- * A_UINT32
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_6_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_6_SET
- * hw_tid_6_link_map:16
- *
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_7_GET /
- * WMI_MLO_VDEV_TID_TO_LINK_MAP_HW_LINK_ID_7_SET
- * hw_tid_7_link_map:16
- */
- A_UINT32 hw_tid_6_7_link_map;
- /* Indicates the disabled link map for 802.11be T2LM */
- A_UINT32 disabled_link_bitmap;
- } wmi_mlo_ap_vdev_tid_to_link_map_ie_info;
- #define WMI_NUM_TID_PER_AC 2
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_link_removal_evt_fixed_param */
- A_UINT32 tlv_header;
- wmi_mac_addr mld_mac;
- /* hwlink_priority:
- * Based on capacity, hw chip is ordered here.
- * hwlink_priority[0] holds the HW chip ID which is the top priority,
- * hwlink_priority[1] holds the HW chip ID which is the 2nd priority,
- * etc.
- */
- A_UINT32 hwlink_priority[WMI_MAX_NUM_MLO_LINKS];
- /* link_bmap:
- * Bitmap segments for the primary TIDs (0/1/4/6)
- * are provided in link_bmap[0].
- * Bitmap segments for the secondary TIDs (3/2/5/7)
- * are provided in link_bmap[1].
- * link_bmap[0]:
- * bits 4:0 are used to indicate which links are used for TID 0
- * bits 9:5 are used to indicate which links are used for TID 1
- * bits 14:10 are used to indicate which links are used for TID 4
- * bits 19:15 are used to indicate which links are used for TID 6
- * bits 31:20 are unused
- * link_bmap[0]:
- * bits 4:0 are used to indicate which links are used for TID 3
- * bits 9:5 are used to indicate which links are used for TID 2
- * bits 14:10 are used to indicate which links are used for TID 5
- * bits 19:15 are used to indicate which links are used for TID 7
- * bits 31:20 are unused
- */
- A_UINT32 link_bmap[WMI_NUM_TID_PER_AC];
- } wmi_mlo_tlt_selection_for_tid_spray_event_fixed_param;
- #define WMI_IGMP_OFFLOAD_SUPPORT_DISABLE_BITMASK 0x0
- #define WMI_IGMP_V1_OFFLOAD_SUPPORT_BITMASK 0x1
- #define WMI_IGMP_V2_OFFLOAD_SUPPORT_BITMASK 0x2
- #define WMI_IGMP_V3_OFFLOAD_SUPPORT_BITMASK 0x4
- #define WMI_IGMP_OFFLOAD_SUPPORT_ALL_VERSION 0x7
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_igmp_offload_fixed_param */
- A_UINT32 vdev_id; /** VDEV identifier */
- A_UINT32 enable; /** IGMP offload support enable/disable */
- A_UINT32 version_support_bitmask; /** IGMP version support v1, v2 and/or v3*/
- /* Following this structure are the TLVs:
- * WMI_IPV4_ADDR grp_ip_address[num_mcast_ipv4_addr];
- */
- } wmi_igmp_offload_fixed_param;
- /* flags for ICMP Offload IP4,IP6 */
- #define WMI_ICMP_OFFLOAD_IPV4_ENABLED_BIT 0
- #define WMI_ICMP_OFFLOAD_IPV6_ENABLED_BIT 1
- /* set IPv4 enabled/disabled flag and get the flag */
- #define WMI_SET_ICMP_OFFLOAD_IPV4_ENABLED_BIT(valid_bitmask) \
- WMI_SET_BITS(valid_bitmask, WMI_ICMP_OFFLOAD_IPV4_ENABLED_BIT, 1, 1)
- #define WMI_SET_ICMP_OFFLOAD_IPV4_DISABLED_BIT(valid_bitmask) \
- WMI_SET_BITS(valid_bitmask, WMI_ICMP_OFFLOAD_IPV4_ENABLED_BIT, 1, 0)
- #define WMI_GET_ICMP_OFFLOAD_IPV4_ENABLED(valid_bitmask) \
- WMI_GET_BITS(valid_bitmask, WMI_ICMP_OFFLOAD_IPV4_ENABLED_BIT, 1)
- /* set IPv6 enabled flag, disabled and get the flag */
- #define WMI_SET_ICMP_OFFLOAD_IPV6_ENABLED_BIT(valid_bitmask) \
- WMI_SET_BITS(valid_bitmask, WMI_ICMP_OFFLOAD_IPV6_ENABLED_BIT, 1, 1)
- #define WMI_SET_ICMP_OFFLOAD_IPV6_DISABLED_BIT(valid_bitmask) \
- WMI_SET_BITS(valid_bitmask, WMI_ICMP_OFFLOAD_IPV6_ENABLED_BIT, 1, 0)
- #define WMI_GET_ICMP_OFFLOAD_IPV6_ENABLED(valid_bitmask) \
- WMI_GET_BITS(valid_bitmask, WMI_ICMP_OFFLOAD_IPV6_ENABLED_BIT, 1)
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_vdev_icmp_offload_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 enable;
- /* bitmask for valid ipv4/ipv6 address */
- A_UINT32 valid_bitmask;
- WMI_IPV4_ADDR ipv4_addr;
- /* Following this structure are the TLVs:
- * WMI_IPV6_ADDR ipv6_addr[num_ipv6_addr];
- */
- } wmi_icmp_offload_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_vdev_smart_monitor_event_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /** Average RSSI value of Data Frames */
- A_INT32 avg_rssi_data_dbm;
- /** rx_vht_sgi:
- * Short guard interval state of Data frames obtaining from rx PPDU TLV
- * of VHTSIGA buf.
- * 0: Default (No sgi set)
- * 1: sgi set
- */
- A_UINT32 rx_vht_sgi;
- } wmi_vdev_smart_monitor_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_multiple_vdev_set_param_cmd_fixed_param */
- A_UINT32 pdev_id;
- /** parameter id */
- A_UINT32 param_id;
- /** parameter value */
- A_UINT32 param_value;
- /* The TLVs follows this structure:
- * A_UINT32 vdev_ids[]; <--- Array of VDEV ids.
- */
- } wmi_pdev_multiple_vdev_set_param_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_set_param_info */
- /** ID of the parameter being set */
- A_UINT32 param_id;
- /** value of the parameter being set */
- A_UINT32 param_value;
- } wmi_set_param_info;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_set_multiple_pdev_vdev_param_cmd_fixed_param */
- /** Command is for vdev or pdev: 0 = pdev, 1 = vdev */
- A_UINT32 is_vdev;
- /** unique dev_id identifying the VDEV/PDEV */
- A_UINT32 dev_id;
- /*
- * Following this structure is the TLV:
- * wmi_set_param_info param_info[];
- */
- } wmi_set_multiple_pdev_vdev_param_cmd_fixed_param;
- typedef enum {
- WMI_MU_SNIF_DISABLE,
- WMI_MU_SNIF_USER_INPUT,
- WMI_MU_SNIF_WILDCARD,
- } WMI_MU_SNIF_MODE;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_vdev_set_mu_snif_cmd_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* MU sniffer mode - refer to WMI_MU_SNIF_MODE enum */
- A_UINT32 mode;
- /* max num of user to decode */
- A_UINT32 max_num_user;
- /**
- * TLV (tag length value) parameters follow setting MU sniffer command
- * structure. The TLV's are:
- * A_UINT32 aids[];
- */
- } wmi_vdev_set_mu_snif_cmd_param;
- typedef struct {
- /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_dbs_or_sbs_cap_ext*/
- A_UINT32 tlv_header;
- /* hw_mode_id: refer to WMI_HW_MODE_CAPABILITIES */
- A_UINT32 hw_mode_id;
- /*
- * If sbs_lower_band_end_freq is set to non-zero, it indicates
- * async SBS mode is supported, and lower-band/higher band to MAC
- * mapping is switch-able. unit: MHz. examples 5180, 5320
- * If sbs_mid_band_end_freq is set to non-zero, it indicates
- * async flexible SBS mode is supported, lower/higher band cutoff frequency
- * can be selected from sbs_lower_band_end_freq or sbs_mid_band_end_freq.
- * unit: MHz, examples 5900.
- */
- A_UINT32 sbs_lower_band_end_freq;
- A_UINT32 sbs_mid_band_end_freq;
- } wmi_dbs_or_sbs_cap_ext;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals wmi_cust_bdf_version_capabilities*/
- /* Cust bdf Major version in bdf */
- A_UINT32 cust_bdf_ver_major;
- /* Cust bdf Minor version in bdf */
- A_UINT32 cust_bdf_ver_minor;
- } wmi_cust_bdf_version_capabilities;
- enum WMI_CODEL_ENABLE_VALUES {
- WMI_CODEL_DISABLED,
- WMI_CODEL_ENABLED,
- /* WMI_CODEL_DEBUG:
- * partly enabled – track interval and check target, but don’t drop
- */
- WMI_CODEL_DEBUG,
- };
- typedef enum {
- WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_MIN_THRUPUT = 0,
- WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_MAX_THRUPUT = 0xffffffff,
- WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_BURST_SIZE = 0,
- WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_SVC_INTERVAL = 0xffffffff,
- WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_DELAY_BOUND = 0xffffffff,
- WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_TIME_TO_LIVE = 0xffffffff,
- WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_PRIORITY = 0,
- WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_TID = 0xffffffff,
- WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_MSDU_LOSS_RATE = 0,
- WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_DISABLED_SCHED_MODE = 0,
- WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_CODEL_ENABLED = WMI_CODEL_DISABLED,
- WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_CODEL_LATENCY_TARGET_MS = 0xffffffff,
- WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_CODEL_INTERVAL_MS = 0xffffffff,
- } WMI_SAWF_SVC_CLASS_PARAM_DEFAULTS;
- #define WMI_CODEL_INTERVAL_MAX_MS 0x0000ffff
- #define WMI_CODEL_LATENCY_TARGET_MAX_MS 0x00003fff
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sawf_svc_class_cfg_cmd_fixed_param */
- A_UINT32 svc_class_id; /* which service class is being configured */
- /*-----
- * The below fields specify the values for the parameters of the
- * service class being configured.
- * Each such service class parameter has a default value specified in the
- * above WMI_SAWF_SVC_CLASS_PARAM_DEFAULTS enum.
- * This default value shall be specified for service classes where
- * the parameter in question is not applicable.
- * For example, for service classes that have no minimum throughput
- * requirement, the min_thruput_kbps field should be set to
- * WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_MIN_THRUPUT, i.e. 0.
- *-----*/
- /* min_thruput_kbps:
- * How much throughput should be "guaranteed" for each MSDU queue
- * belonging to this service class.
- * Units are kilobits per second.
- */
- A_UINT32 min_thruput_kbps;
- /* max_thruput_kbps:
- * What upper limit on throughput shall be applied to MSDU queues belonging
- * to this service class, if other peer-TIDs are not meeting their QoS
- * service goals.
- * Units are kilobits per second.
- */
- A_UINT32 max_thruput_kbps;
- /* burst_size_bytes:
- * How much data (i.e. how many MSDUs) should be pulled from a
- * MSDU queue belonging to this service class to be formed into MPDUs
- * and enqueued for transmission.
- * Similarly, how long should a tx op be for MPDUs containing MSDUs from
- * this service class, to ensure that the necessary amount of data gets
- * delivered to the peer.
- * Units are bytes.
- */
- A_UINT32 burst_size_bytes;
- /* svc_interval_ms:
- * How frequently MSDUs belonging to this service class should be
- * formed into MPDUs and enqueued for transmission.
- * The svc_interval_ms parameter is expected to be <= the delay_bound_ms
- * parameter.
- * Units are milliseconds.
- */
- A_UINT32 svc_interval_ms;
- /* delay_bound_ms:
- * How promptly the MSDUs belonging to this service class need to be
- * delivered to the recipient peer.
- * Units are milliseconds.
- */
- A_UINT32 delay_bound_ms;
- /* time_to_live_ms:
- * How long MSDUs belonging to this service class remain valid.
- * If the MSDU has not been successfully transmitted before this
- * time-to-live time has elapsed, the MSDU should be discarded.
- * The time_to_live_ms parameter is expected to be >= the delay_bound_ms
- * parameter.
- * Units are milliseconds.
- */
- A_UINT32 time_to_live_ms;
- /* priority:
- * What degree of precedence shall the WLAN FW's tx scheduler use
- * when considering whether to transmit MPDUs generated from MSDUs
- * belonging to this service class.
- */
- A_UINT32 priority;
- /* tid:
- * Which WLAN TID shall be used for delivering traffic of this
- * service class.
- */
- A_UINT32 tid;
- /* msdu_loss_rate_ppm:
- * This parameter indicates the acceptable rate of MSDU loss.
- * Units are parts per million.
- * E.g. if it is acceptable for 1 MSDU of every 10000 to be lost,
- * the msdu_loss_rate_ppm value would be 100,
- * since 100 / 1000000 = 1 / 10000.
- */
- A_UINT32 msdu_loss_rate_ppm;
- /*
- * The disabled DL and UL scheduler modes bitmap.
- *
- * Each bit in the "disabled_sched_modes" bitmap indicates whether a
- * specific scheduler mode may be selected by the fast loop scheduler. A
- * "1" bit indicates that mode is disabled, and a "0" bit indicates the
- * mode is enabled.
- *
- * The WMI_SCHED_MODE_FLAGS enum defines the bit positions for each mode.
- */
- A_UINT32 disabled_sched_modes;
- A_UINT32 codel_enabled; /* contains a WMI_CODEL_ENABLE_VALUES enum value */
- /* codel_latency_target_ms:
- * The codel_latency_target_ms field specifies the latency target for
- * MSDU queues belonging to this service class.
- * The latency of each such MSDU queue will periodically be checked
- * (with the periodicity controlled by the code_interval_ms parameter).
- * If the MSDU queue's latency is above this target latency, a MSDU will
- * be dropped from the head of the queue, to attempt to get the flow's
- * producer to scale down its rate of MSDU production.
- * This value should be roughly 10% to 30% of the codel_interval_ms value.
- * This value must be <= WMI_CODEL_LATENCY_TARGET_MAX_MS (or must equal
- * WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_CODEL_LATENCY_TARGET_MS).
- */
- A_UINT32 codel_latency_target_ms;
- /* codel_interval_ms:
- * The codel_interval_ms field specifies the baseline interval between
- * successive checks that a given MSDU queue's latency is under the
- * CoDel target latency.
- * If in a given interval a MSDU queue has a latency exceeding the target,
- * the duration of the subsequent interval for that MSDU queue will be
- * reduced. The interval will get reset to the baseline interval when
- * the MSDU queue's latency is again under the CoDel target latency.
- * This value must be <= WMI_CODEL_INTERVAL_MAX_MS (or must equal
- * WMI_SAWF_SVC_CLASS_PARAM_DEFAULT_CODEL_INTERVAL_MS).
- */
- A_UINT32 codel_interval_ms;
- } wmi_sawf_svc_class_cfg_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sawf_svc_class_disable_cmd_fixed_param */
- A_UINT32 svc_class_id; /* which service class is being disabled */
- } wmi_sawf_svc_class_disable_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sw_cal_ver_cap */
- A_UINT32 bdf_cal_ver; /* SW cal version in BDF */
- A_UINT32 ftm_cal_ver; /* SW cal version in factory data */
- A_UINT32 status; /* Return status. 0 for success, non-zero otherwise */
- } wmi_sw_cal_ver_cap;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_soc_tqm_reset_enable_disable_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /** 0 - disable TQM-reset feature, 1 - enable TQM-reset feature */
- A_UINT32 enable;
- } wmi_soc_tqm_reset_enable_disable_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_multiple_peer_group_cmd_fixed_param */
- A_UINT32 vdev_id;
- A_UINT32 pdev_id;
- /** Sub command id - populated with a WMI_CMD_ID value.
- * Currently supported command ids are WMI_PEER_REMOVE_WDS_ENTRY_CMDID.
- */
- A_UINT32 sub_cmd_id;
- /* The TLVs follows this structure:
- * wmi_mac_addr wds_macaddr[]; <--- Array of wds mac addresses.
- */
- } wmi_vdev_multiple_peer_group_cmd_fixed_param;
- /* WMI_VDEV_PN_MGMT_RX_FILTER_CMDID */
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_pn_mgmt_rx_filter_cmd_fixed_param */
- A_UINT32 vdev_id;
- /* RX Filter - MGMT/Action frame type is specified in each bit as per 802.11 spec
- * PN check will be done for all MGMT frames irrespective of RX Filter.
- * Rx filter is only used to decide whether PN failed frames should be forwarded to host
- * Example for forwarding beacon and de-auth pkt alone to host then bit 8(Beacon) and 12(De-auth) must be set */
- A_UINT32 pn_rx_filter;
- } wmi_vdev_pn_mgmt_rx_filter_cmd_fixed_param; /* Filter for Neighbor Rx Packets */
- typedef struct {
- A_UINT32 tlv_header;
- /* egid_info:
- * Identify which ESL group is active and the duty cycle configured
- * for each group.
- * This is a 128-bit bitmap to represent 16 ESL sets, with each set
- * having 8 members.
- * For a given set, the 1-values within the 8-bit bitmap identify
- * which groups are active. The number of active groups within each
- * set of 8 indirectly determines the WLAN/BT duty cycle:
- * number of 1-bits |
- * within 8-bit bitmap | WLAN / BT duty cycle
- * --------------------+----------------
- * 0 | 100 ms WLAN
- * 1 | 87.5 ms WLAN, 12.5 ms BT
- * 2 | 75 ms WLAN, 25 ms BT
- * 3 | 62.5 ms WLAN, 37.5 ms BT
- * 4 | 50 ms WLAN, 50 ms BT
- * 5 | 37.5 ms WLAN, 62.5 ms BT
- * 6 | 25 ms WLAN, 75 ms BT
- * 7 | 12.5 ms WLAN, 87.5 ms BT
- * 8 | 100 ms BT
- * The lowest bits in the bitmap represent the highest ESL groups,
- * E.g. bitmap bit 0 corresponds to ESL group 127, bit 1 corresponds
- * to ESL group 126, bit 7 corresponds to ESL group 120, bit 8
- * corresponds to ESL group 119, etc.
- *
- * So for example, if the lowest 8 bits of egid_info are 0x07, this
- * indicates that groups 125-127 are active and 120-124 are inactive,
- * and that the duty cycle is 62.5 ms WLAN + 37.5 ms BT.
- */
- A_UINT32 egid_info[4];
- } wmi_esl_egid_cmd_fixed_param;
- #define WMI_RTT_PASN_PEER_CREATE_SECURITY_MODE_GET(flag) WMI_GET_BITS(flag, 0, 2)
- #define WMI_RTT_PASN_PEER_CREATE_SECURITY_MODE_SET(flag,val) WMI_SET_BITS(flag, 0, 2, val)
- #define WMI_RTT_PASN_PEER_CREATE_FORCE_SELF_MAC_USE_GET(flag) WMI_GET_BITS(flag, 2, 1)
- #define WMI_RTT_PASN_PEER_CREATE_FORCE_SELF_MAC_USE_SET(flag,val) WMI_SET_BITS(flag, 2, 1, val)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rtt_pasn_peer_create_req_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /**
- * The following TLV will follow this fixed_param TLV:
- *
- * wmi_rtt_pasn_peer_create_req_param rtt_pasn_peer_param[]
- */
- } wmi_rtt_pasn_peer_create_req_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rtt_pasn_peer_create_req_param */
- wmi_mac_addr self_mac_addr; /* self MAC address (can be vdev address or random mac address) */
- wmi_mac_addr dest_mac_addr; /* MAC address of the peer */
- A_UINT32 control_flag; /* some control information here */
- /*********************************************************************************
- * Bits 1:0: Security mode, check wmi_rtt_security_mode for detail.
- * Host driver to request supplicant to derive and install PASN keys if security mode is set.
- * Bit 2: Force_self_mac_addr_use, To indicate supplicant/hostapd to use this self mac addr to (re)generate PASN keys,
- * and flush old cache( if it exists) for dest_mac_addr with old self_mac_addr.
- * Bits 31:3: Reserved
- */
- } wmi_rtt_pasn_peer_create_req_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rtt_pasn_auth_status_cmd_fixed_param */
- /**
- * The following TLV will follow this fixed_param TLV:
- *
- * wmi_rtt_pasn_auth_status_param pasn_auth_status_param[]
- */
- } wmi_rtt_pasn_auth_status_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rtt_pasn_auth_status_param */
- /* MAC address of the peer */
- wmi_mac_addr peer_mac_addr;
- /* Return status. 0 for success, non-zero otherwise */
- A_UINT32 status;
- /* Source address used for doing PASN authentication */
- wmi_mac_addr source_mac_addr;
- } wmi_rtt_pasn_auth_status_param;
- #define WMI_RTT_PASN_PEER_DELETE_DELETED_BIT_GET(flag) WMI_GET_BITS(flag, 0, 1)
- #define WMI_RTT_PASN_PEER_DELETE_DELETED_BIT_SET(flag,val) WMI_SET_BITS(flag, 0, 1, val)
- #define WMI_RTT_PASN_PEER_DELETE_FLUSH_KEYS_GET(flag) WMI_GET_BITS(flag, 1, 1)
- #define WMI_RTT_PASN_PEER_DELETE_FLUSH_KEYS_SET(flag,val) WMI_SET_BITS(flag, 1, 1, val)
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rtt_pasn_peer_delete_event_fixed_param */
- /** unique id identifying the VDEV, generated by the caller */
- A_UINT32 vdev_id;
- /**
- * The following TLV will follow this fixed_param TLV:
- *
- * wmi_rtt_pasn_peer_delete_param rtt_pasn_peer_param[]
- */
- } wmi_rtt_pasn_peer_delete_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rtt_pasn_peer_delete_param */
- /* MAC address of the peer */
- wmi_mac_addr peer_mac_addr;
- /* some control information here */
- A_UINT32 control_flag;
- /**********************************************************************************
- * Bit 0: peer_deleted (This is set to 1 if peer has already been deleted by the target)
- * Bit 1: flush keys (This is set to 1 if target wants the cached PASN keys to be flushed)
- * Bits 31:2: reserved
- */
- } wmi_rtt_pasn_peer_delete_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_rtt_pasn_deauth_cmd_fixed_param */
- /* MAC address of the peer */
- wmi_mac_addr peer_mac_addr;
- } wmi_rtt_pasn_deauth_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pmm_scratch_reg_info */
- /** what the register is used for - see WFSS_PMM_SCRATCH_REG_PURPOSE enum */
- A_UINT32 pmm_scratch_reg_purpose;
- /** Address of scratch register */
- A_UINT32 pmm_scratch_reg_address;
- } wmi_pmm_scratch_reg_info;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pmm_scratch_reg_allocation_cmd_fixed_param */
- /** pdev_id for identifying the MAC */
- A_UINT32 pdev_id;
- /*
- * Following this structure is the TLV:
- * wmi_pmm_scratch_reg_info scratch_reg_info[];
- */
- } wmi_pmm_scratch_reg_allocation_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pmm_available_scratch_reg_info */
- /** Scratch register address */
- A_UINT32 pmm_scratch_reg_address;
- } wmi_pmm_available_scratch_reg_info;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pmm_available_scratch_reg_event_fixed_param */
- /** pdev_id for identifying the MAC */
- A_UINT32 pdev_id;
- /*
- * Following this structure is the TLV:
- * wmi_pmm_available_scratch_reg_info pmm_available_scratch_reg_info[];
- */
- } wmi_pmm_available_scratch_reg_event_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pmm_scratch_reg_allocation_complete_event_fixed_param */
- /** pdev_id for identifying the MAC */
- A_UINT32 pdev_id;
- /** 1 - success, 0 - failed */
- A_UINT32 is_allocated;
- } wmi_pmm_scratch_reg_allocation_complete_event_fixed_param;
- typedef enum {
- WMI_NO_FLUSH,
- WMI_TWT_FLUSH,
- /* Add new flush policies above */
- WMI_MAX_FLUSH_POLICY
- } wmi_peer_flush_policy;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_flush_policy_cmd_fixed_param */
- A_UINT32 vdev_id;
- /** peer MAC address */
- wmi_mac_addr peer_macaddr;
- /** The tids to flush */
- A_UINT32 peer_tid_bitmap;
- /* wmi_peer_flush_policy */
- A_UINT32 flush_policy;
- /* n_TWT_SPs_to_expire:
- * Expire / drop packets whose age is greater than this specified number
- * of TWT service periods.
- */
- A_UINT32 n_TWT_SPs_to_expire;
- } wmi_peer_flush_policy_cmd_fixed_param;
- /* health monitor infra Def */
- typedef struct {
- /** TLV tag and len */
- A_UINT32 tlv_header;
- A_UINT32 ring_buf_paddr_low;
- A_UINT32 ring_buf_paddr_high;
- A_UINT32 initial_upload_period_ms;
- } wmi_health_mon_init_done_fixed_param;
- /** ODD **/
- /* Livedump Data structures */
- #define WMI_ODD_LIVEDUMP_RESP_SET_STATUS(status, val) \
- WMI_SET_BITS(status, 0, 4, val)
- #define WMI_ODD_LIVEDUMP_RESP_GET_STATUS(status) \
- WMI_GET_BITS(status, 0, 4)
- typedef enum {
- ODD_LIVEDUMP_STATUS_SUCCESS = 0,
- ODD_LIVEDUMP_STATUS_FAILURE,
- ODD_MAX_LIVEDUMP_STATUS,
- } odd_livedump_resp_status;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 odd_livedump_request_id;
- /* Following this structure is the TLV:
- * A_UINT32 odd_livedump_id_list[]; <-- array livedump_id list
- */
- } wmi_livedump_request_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- /* odd_livedump_request_id:
- * this echoes the request id that was sent in the wmi_livedump_cmd_param
- */
- A_UINT32 odd_livedump_request_id;
- /*
- * 4 LSB's to indicate status of the odd_livedump_request_id processed
- * by the FW, the other 28bits to kept for future enhancements.
- * The status will be defined in the enum odd_livedump_resp_status
- * 0 - SUCCESS
- * 1 - FAILURE
- * Refer to the WMI_ODD_LIVEDUMP_RESP_SET,_GET_STATUS macros.
- */
- A_UINT32 status;
- } wmi_livedump_response_event_fixed_param;
- #define WMI_MLO_LINK_REMOVAL_GET_VDEVID(tbtt_info) WMI_GET_BITS(tbtt_info, 0, 8)
- #define WMI_MLO_LINK_REMOVAL_SET_VDEVID(tbtt_info, value) WMI_SET_BITS(tbtt_info, 0, 8, value)
- #define WMI_MLO_LINK_REMOVAL_GET_LINKID(tbtt_info) WMI_GET_BITS(tbtt_info, 8, 8)
- #define WMI_MLO_LINK_REMOVAL_SET_LINKID(tbtt_info, value) WMI_SET_BITS(tbtt_info, 8, 8, value)
- #define WMI_MLO_LINK_REMOVAL_GET_TBTT_COUNT(tbtt_info) WMI_GET_BITS(tbtt_info, 16, 16)
- #define WMI_MLO_LINK_REMOVAL_SET_TBTT_COUNT(tbtt_info, value) WMI_SET_BITS(tbtt_info, 16, 16, value)
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_link_removal_tbtt_count; */
- A_UINT32 tlv_header;
- union {
- struct {
- A_UINT32 vdev_id:8,
- link_id:8,
- tbtt_count:16;
- };
- A_UINT32 tbtt_info;
- };
- } wmi_mlo_link_removal_tbtt_count;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_link_removal_tbtt_update; */
- A_UINT32 tlv_header;
- A_UINT32 tbtt_count;
- A_UINT32 qtimer_ts_low; /* lower-32 bits */
- A_UINT32 qtimer_ts_high; /* higher-32 bits */
- A_UINT32 tsf_low; /* lower-32 bits */
- A_UINT32 tsf_high; /* higher-32 bits */
- } wmi_mlo_link_removal_tbtt_update;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_link_removal_evt_fixed_param; */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- /*
- * Followed by TLVs:
- * wmi_mlo_link_removal_tbtt_update
- */
- } wmi_mlo_link_removal_evt_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_link_removal_cmd_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 reconfig_ml_ie_num_bytes_valid;
- /* This TLV is followed by array of bytes:
- * A_UINT8 reconfig_ml_ie[]; <-- Entire reconfiguration element (multi-link control + common-info + 1 per-sta profile)
- */
- } wmi_mlo_link_removal_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_per_peer_sched_mode_disable */
- /* Peer MAC Address */
- wmi_mac_addr peer_macaddr;
- /*
- * The disabled DL and UL scheduler modes bitmap.
- *
- * This command is not supported in STA mode.
- *
- * A value of 1 in a given bit position disables the corresponding mode,
- * and a value of 0 enables the mode. The WMI_SCHED_MODE_FLAGS enum defines
- * the bit positions for each mode.
- *
- * A single 32 bit value is used to store the following configuration
- * bitmap.
- *
- * bit | sched mode
- * ---------------
- * 0 | DL MU-MIMO
- * 1 | UL MU-MIMO
- * 2 | DL OFDMA
- * 3 | UL OFDMA
- * 4..31 | RESERVED
- */
- A_UINT32 disabled_sched_modes;
- } wmi_per_peer_sched_mode_disable;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_sched_mode_disable_fixed_param */
- A_UINT32 pdev_id;
- /* The TLVs for each peer follows:
- * wmi_per_peer_sched_mode_disable per_peer_sched_mode_disable[];
- */
- } wmi_peer_sched_mode_disable_fixed_param;
- typedef enum {
- /*
- * No timestamp source is used, and the start_timestamp field should be
- * ignored. FW will start the probing of the requested mode ASAP after
- * receiving this message.
- */
- WMI_SCHED_MODE_PROBE_TSTAMP_SRC_NONE = 0,
- } WMI_SCHED_MODE_PROBE_TSTAMP_SRC;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_sched_mode_probe_req_fixed_param */
- A_UINT32 vdev_id;
- /*
- * The scheduler mode to probe. Only a single mode may currently be
- * specified in this WMI command (separate commands must be sent to probe
- * multiple modes). This limitation may be removed in a future version of
- * FW.
- *
- * This command is not supported in STA mode.
- *
- * The WMI_SCHED_MODE_FLAGS enum defines the scheduler mode values.
- */
- A_UINT32 sched_mode_to_probe;
- /*
- * 32-bit cookie that will be sent back in the probing completion / stats
- * WMI message. FW does not interpret any bits in this field, and simply
- * replays it back to the host.
- */
- A_UINT32 cookie;
- /*
- * The clock reference to use for the start_timestamp field. The enum
- * WMI_SCHED_MODE_PROBE_TSTAMP_SRC defines the valid timestamp sources.
- */
- A_UINT32 timestamp_source;
- /*
- * The start timestamp indicating when the FW scheduler should start the
- * probing period. Note that although the FW tries to honor this start
- * time, it may not always be possible to. For instance, if the command
- * arrives after the indicated start timestamp, or if channel congestion
- * delays the APs ability to transmit over the air.
- *
- * If the timestamp_source field is set to
- * WMI_SCHED_MODE_PROBE_TSTAMP_SRC_NONE, then the value of this field is
- * ignored by FW.
- */
- A_UINT32 start_timestamp_lo;
- A_UINT32 start_timestamp_hi;
- /*
- * The on and off duration of the probing mode.
- *
- * The scheduler will turn the mode on first for the specified
- * "on_duration_ms", and then turn it off for the specified
- * "off_duration_ms".
- *
- * During the on and off duration, FW will collect delivered bytes
- * statistics to estimate the vdev level throughput achieved for both the
- * on and off region. These statistics will be delivered in the
- * wmi_vdev_sched_mode_probe_resp WMI message after both the "on" and "off"
- * durations have elapsed.
- */
- A_UINT32 on_duration_ms;
- A_UINT32 off_duration_ms;
- } wmi_vdev_sched_mode_probe_req_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_sched_mode_probe_resp_fixed_param */
- A_UINT32 vdev_id;
- /*
- * The 32-bit cookie copied from the wmi_vdev_sched_mode_probe_req
- * message.
- */
- A_UINT32 cookie;
- /*
- * The observed throughput at the vdev level during the mode-enabled
- * portion of the mode probe.
- */
- A_UINT32 tput_mbps_on;
- /*
- * The observed throughput at the vdev level during the mode-disabled
- * portion of the mode probe.
- */
- A_UINT32 tput_mbps_off;
- } wmi_vdev_sched_mode_probe_resp_fixed_param;
- /** Coordinated-AP TDMA **/
- #define WMI_TDMA_MAX_ACTIVE_SCHEDULES 10
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_tdma_schedule_request_cmd_fixed_param **/
- /** pdev_id
- * PDEV ID for identifying the MAC for which this schedule
- * is being requested.
- */
- A_UINT32 pdev_id;
- /** schedule_type
- * 0 = Reserved
- * 1 = Restricted
- * UINT32_MAX = Cancel all TDMA schedules and ignore other parameters below.
- */
- A_UINT32 schedule_type;
- /** schedule_handle_id
- * Unique ID to identify this TDMA schedule
- */
- A_UINT32 schedule_handle_id;
- /** owner_bssid
- * The BSSID this TDMA schedule is reserved for
- */
- wmi_mac_addr owner_bssid;
- /** start_time_tsf_low
- * Lower 32-bits of Synchronized Start time for the first busy slot
- * in this TDMA schedule.
- * It should be a PMM global FW TSF reference
- */
- A_UINT32 start_time_tsf_low;
- /** start_time_tsf_high
- * Higher 32-bits of Synchronized Start time for the first busy slot
- * in this TDMA schedule.
- * It should be a PMM global FW TSF reference
- */
- A_UINT32 start_time_tsf_high;
- /** num_busy_slots
- * Number of busy periods in this schedule
- */
- A_UINT32 num_busy_slots;
- /** busy_slot_dur_ms
- * The fixed duration of each busy slot in milliseconds
- */
- A_UINT32 busy_slot_dur_ms;
- /** busy_slot_intvl_ms
- * The fixed interval between the start of two consecutive busy slots
- * in milliseconds.
- */
- A_UINT32 busy_slot_intvl_ms;
- /** edca_params_valid
- * Indicates whether the following EDCA fields aifsn, ecwmin, ecwmax
- * are valid or not
- * 1 = Valid. 0 = Not Valid.
- */
- A_UINT32 edca_params_valid;
- /** aifsn
- * Arbitration inter frame spacing number for this schedule type.
- * Range: 2-15.
- * For voice, video, best-effort, background ACs
- */
- A_UINT32 aifsn[WMI_AC_MAX];
- /** ecwmin
- * Exponent form of Contention Window minimum value for this schedule type.
- * Range: 2 - 1024.
- * For voice, video, best-effort, background ACs
- */
- A_UINT32 ecwmin[WMI_AC_MAX];
- /** ecwmax
- * Exponent form of Contention Window maximum value for this schedule type.
- * Range: 2 - 1024.
- * For voice, video, best-effort, background ACs
- */
- A_UINT32 ecwmax[WMI_AC_MAX];
- } wmi_tdma_schedule_request_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_tgtr2p_table _fixed_param */
- A_UINT32 pdev_id;
- /* freq_band:
- * Indicates the intended FreqBand for updating targetPowerR2PTable.
- * 0: 5G
- * 1: 2G
- * 2: 6G
- */
- A_UINT32 freq_band;
- /* sub_band:
- * Denotes band defined in targetPowerR2PFreqRangexG BDF fields.
- * Valid values for each target is listed below
- * For 11AX targets,
- * 2G - 0
- * 5G/6G - 0/1/2
- *
- * For 11BE targets,
- * 2G - 0
- * 5G/6G - 0/1
- */
- A_UINT32 sub_band;
- /* is_ext:
- * Applicable only for 11BE targets
- * 0 - Default targetPowerR2PTable
- * 1 - To update targetPowerR2PTable in extension fields
- * For 11AX targets, value is expected to be 0.
- */
- A_UINT32 is_ext;
- A_UINT32 target_type; /* 0 - IPQ95xx, 1 - QCN90xx, 0x10 - QCN92xx */
- A_UINT32 r2p_array_len; /* length of targetPowerR2PTable */
- /* end_of_r2ptable_update:
- * This field can be used to indicate FW to trigger update of SW structures
- * once user has updated for all the sub-bands of the Frequency band.
- * This would be used when there are multiple sub-bands.
- */
- A_UINT32 end_of_r2ptable_update;
- /*
- * Following this structure is the TLV containing targetPowerR2PTablexG
- * of type INT8 and with a unit of 0.25dBm.
- */
- } wmi_pdev_set_tgtr2p_table_cmd_fixed_param;
- typedef enum {
- WMI_PDEV_TGTR2P_SUCCESS = 0,
- WMI_PDEV_TGTR2P_SUCCESS_WAITING_FOR_END_OF_UPDATE,
- WMI_PDEV_TGTR2P_ERROR_INVALID_FREQ_BAND,
- WMI_PDEV_TGTR2P_ERROR_INVALID_SUB_BAND,
- WMI_PDEV_TGTR2P_ERROR_EXTENSION_FIELDS_NOT_ENABLED_IN_BDF,
- WMI_PDEV_TGTR2P_ERROR_INVALID_TARGET_TPYE,
- WMI_PDEV_TGTR2P_ERROR_R2P_ARRAY_LEN_MISMATCH,
- } wmi_pdev_set_tgtr2p_event_status_type;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_tgtr2p_table_event_fixed_param */
- /* status:
- * enum wmi_pdev_set_tgtr2p_event_status_type to indicate the status
- * code/result
- */
- A_UINT32 status;
- A_UINT32 pdev_id; /* to identify for which pdev the response is received */
- } wmi_pdev_set_tgtr2p_table_event_fixed_param;
- #define WMI_PDEV_SET_CUSTOM_TX_PWR_MAX_CHAIN_NUM 4
- #define WMI_PDEV_SET_CUSTOM_TX_PWR_MAX_2G_RATE_NUM 18
- #define WMI_PDEV_SET_CUSTOM_TX_PWR_MAX_2G_RATE_NUM_EXT 8
- #define WMI_PDEV_SET_CUSTOM_TX_PWR_MAX_5G_6G_RATE_NUM 24
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_custom_tx_power_per_mcs_cmd_fixed_param */
- A_UINT32 pdev_id;
- /* Every band's bitmap is per chain per mcs, the bit set indicate the txpower value existed
- * in txpower_array, otherwise, it means no setting from up-layer and need treat the setting
- * txpower as zero
- */
- /* currently 2GHz band has 2 chains (though space is allocated for up
- * to 4 chains) and each chain has 18 rates and 8 extended rates.
- * bitmap_of_2GHz_band[0] -> chain 0 bitmap:
- * |bit 0|bit 1|......|bit 17| bit 18 |......| bit 25 |
- * |rate 0|rate 1|......|rate 17|ext rate 0|......|ext rate 7|
- *
- * bitmap_of_2GHz_band[1] -> chain 1 bitmap:
- * |bit 0|bit 1|......|bit 17| bit 18 |......| bit 25 |
- * |rate 0|rate 1|......|rate 17|ext rate 0|......|ext rate 7|
- *
- * bitmap_of_2GHz_band[2] -> reserved
- * bitmap_of_2GHz_band[3] -> reserved
- */
- A_UINT32 bitmap_of_2GHz_band[WMI_PDEV_SET_CUSTOM_TX_PWR_MAX_CHAIN_NUM];
- /* 5GHz band has 4 chains and each chain has 24 rates.
- * bitmap_of_5GHz_band[0] -> chain 0 bitmap:
- * |bit 0|bit 1|......|bit 23|
- * |rate 0|rate 1|......|rate 23|
- *
- * bitmap_of_5GHz_band[1] -> chain 1 bitmap:
- * |bit 0|bit 1|......|bit 23|
- * |rate 0|rate 1|......|rate 23|
- *
- * bitmap_of_5GHz_band[2] -> chain 2 bitmap:
- * |bit 0|bit 1|......|bit 23|
- * |rate 0|rate 1|......|rate 23|
- *
- * bitmap_of_5GHz_band[3] -> chain 3 bitmap:
- * |bit 0|bit 1|......|bit 23|
- * |rate 0|rate 1|......|rate 23|
- */
- A_UINT32 bitmap_of_5GHz_band[WMI_PDEV_SET_CUSTOM_TX_PWR_MAX_CHAIN_NUM];
- /* 6GHz band has 4 chains and each chain has 24 rates.
- * bitmap_of_6GHz_band[0] -> chain 0 bitmap:
- * |bit 0|bit 1|......|bit 23|
- * |rate 0|rate 1|......|rate 23|
- *
- * bitmap_of_6GHz_band[1] -> chain 1 bitmap:
- * |bit 0|bit 1|......|bit 23|
- * |rate 0|rate 1|......|rate 23|
- *
- * bitmap_of_6GHz_band[2] -> chain 2 bitmap:
- * |bit 0|bit 1|......|bit 23|
- * |rate 0|rate 1|......|rate 23|
- *
- * bitmap_of_6GHz_band[3] -> chain 3 bitmap:
- * |bit 0|bit 1|......|bit 23|
- * |rate 0|rate 1|......|rate 23|
- */
- A_UINT32 bitmap_of_6GHz_band[WMI_PDEV_SET_CUSTOM_TX_PWR_MAX_CHAIN_NUM];
- A_UINT32 txpower_array_len;
- /* This TLV is followed by array of bytes:
- * A_UINT8 txpower_bkoff_array[]:
- * The txpower backoff value for each bit set within the per-band bitmaps
- * above, in dB units.
- * The elements from the 2GHz band occur first, then the elements from the
- * 5GHz band, then the elements from the 6GHz band.
- * Within each band, the elements from the lower chain numbers (i.e. the
- * lower words within the bitmap array) occur first.
- * Within each chain of each band, the element from the lower rate indices
- * (i.e. the least significant bits within the bitmap word) occur first.
- */
- } wmi_pdev_set_custom_tx_power_per_mcs_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_vdev_get_link_info_cmd_fixed_param */
- A_UINT32 vdev_id;
- wmi_mac_addr mld_macaddr; /* MLD MAC address */
- } wmi_mlo_vdev_get_link_info_cmd_fixed_param;
- typedef enum {
- WMI_LINK_INFO_EVENT_SUCCESS = 0,
- /* reject due to common failure reason */
- WMI_LINK_INFO_EVENT_REJECT_FAILURE,
- /* reject as vdev is not up */
- WMI_LINK_INFO_EVENT_REJECT_VDEV_NOT_UP,
- /* reject as roaming is in progress */
- WMI_LINK_INFO_EVENT_REJECT_ROAMING_IN_PROGRESS,
- /* reject as it's not MLO connection */
- WMI_LINK_INFO_EVENT_REJECT_NON_MLO_CONNECTION,
- } wmi_mlo_vdev_link_info_event_status_type;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_vdev_link_info_event_fixed_param */
- /* status:
- * enum wmi_mlo_vdev_link_info_event_status_type to indicate the status
- */
- A_UINT32 status;
- /* vdev_id:
- * unique id identifying the VDEV, generated by the caller
- */
- A_UINT32 vdev_id;
- wmi_mac_addr mld_macaddr; /* MLD MAC address */
- /* hw_mode_index:
- * current hardware mode index, see soc_hw_mode_t for values
- */
- A_UINT32 hw_mode_index;
- } wmi_mlo_vdev_link_info_event_fixed_param;
- #define WMI_MLO_VDEV_LINK_INFO_GET_VDEVID(link_info) WMI_GET_BITS(link_info, 0, 8)
- #define WMI_MLO_VDEV_LINK_INFO_SET_VDEVID(link_info, value) WMI_SET_BITS(link_info, 0, 8, value)
- #define WMI_MLO_VDEV_LINK_INFO_GET_LINKID(link_info) WMI_GET_BITS(link_info, 8, 8)
- #define WMI_MLO_VDEV_LINK_INFO_SET_LINKID(link_info, value) WMI_SET_BITS(link_info, 8, 8, value)
- #define WMI_MLO_VDEV_LINK_INFO_GET_LINK_STATUS(link_info) WMI_GET_BITS(link_info, 16, 2)
- #define WMI_MLO_VDEV_LINK_INFO_SET_LINK_STATUS(link_info, value) WMI_SET_BITS(link_info, 16, 2, value)
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_vdev_link_info */
- union {
- struct {
- A_UINT32 vdev_id:8, /* vdev id for this link */
- link_id:8, /* link id defined as in 802.11 BE spec. */
- link_status:2, /* link_status - 0: inactive, 1: active */
- reserved:14;
- };
- A_UINT32 link_info;
- };
- A_UINT32 chan_freq; /* Channel frequency in MHz */
- } wmi_mlo_vdev_link_info;
- /* Manual UL OFDMA trigger frame data structures */
- typedef enum {
- WMI_UL_OFDMA_MANUAL_TRIG_TXERR_NONE,
- WMI_UL_OFDMA_MANUAL_TRIG_TXERR_RESP, /* response timeout, mismatch,
- * BW mismatch, mimo ctrl mismatch,
- * CRC error.. */
- WMI_UL_OFDMA_MANUAL_TRIG_TXERR_FILT, /* blocked by tx filtering */
- WMI_UL_OFDMA_MANUAL_TRIG_TXERR_FIFO, /* fifo, misc errors in HW */
- WMI_UL_OFDMA_MANUAL_TRIG_TXERR_SWABORT, /* software initiated abort
- * (TX_ABORT) */
- WMI_UL_OFDMA_MANUAL_TRIG_TXERR_MAX = 0xff,
- WMI_UL_OFDMA_MANUAL_TRIG_TXERR_INVALID =
- WMI_UL_OFDMA_MANUAL_TRIG_TXERR_MAX
- } wmi_ul_ofdma_manual_trig_txerr_t;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_manual_ul_ofdma_trig_feedback_evt_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* To indicate whether feedback event is for SU (0) or MU trigger (1) */
- A_UINT32 feedback_trig_type;
- /* Feedback Params */
- A_UINT32 curr_su_manual_trig_count;
- A_UINT32 remaining_su_manual_trig;
- A_UINT32 remaining_mu_trig_peers;
- A_UINT32 manual_trig_status; /* holds a wmi_ul_ofdma_manual_trig_txerr_t */
- /**
- * This TLV is followed by TLVs below:
- * wmi_mac_addr peer_macaddr[];
- * Array length corresponds to the number of triggered peers
- */
- } wmi_manual_ul_ofdma_trig_feedback_evt_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_manual_mu_trig_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* Configurable Parameters for manual UL OFDMA Multi-User Trigger frame */
- A_UINT32 manual_trig_preferred_ac;
- /**
- * This TLV is followed by TLVs below:
- * wmi_mac_addr peer_macaddr[];
- * The array has one element for each peer to be included in the
- * manually-triggered UL MU transmission.
- */
- } wmi_vdev_set_manual_mu_trig_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_set_manual_su_trig_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* Configurable Parameters for manual UL OFDMA Single-User Trigger frame */
- wmi_mac_addr peer_macaddr;
- A_UINT32 manual_trig_preferred_ac;
- A_UINT32 num_su_manual_trig;
- A_UINT32 manual_trig_length;
- A_UINT32 manual_trig_mcs;
- A_UINT32 manual_trig_nss;
- A_INT32 manual_trig_target_rssi; /* units = dBm */
- } wmi_vdev_set_manual_su_trig_cmd_fixed_param;
- #define CQI_UPLOAD_META_DATA_NC_IDX(idx) \
- (MAX_NUM_CQI_USERS_IN_STANDALONE_SND + (idx * 2))
- #define WMI_DMA_BUF_RELEASE_CV_UPLOAD_SET_ASNR_LENGTH(asnr_params, value) \
- WMI_SET_BITS(asnr_params, 0, 16, value)
- #define WMI_DMA_BUF_RELEASE_CV_UPLOAD_GET_ASNR_LENGTH(asnr_params) \
- WMI_GET_BITS(asnr_params, 0, 16)
- #define WMI_DMA_BUF_RELEASE_CV_UPLOAD_SET_ASNR_OFFSET(asnr_params, value) \
- WMI_SET_BITS(asnr_params, 16, 16, value)
- #define WMI_DMA_BUF_RELEASE_CV_UPLOAD_GET_ASNR_OFFSET(asnr_params) \
- WMI_GET_BITS(asnr_params, 16, 16)
- #define WMI_DMA_BUF_RELEASE_CV_UPLOAD_SET_DSNR_LENGTH(dsnr_params, value) \
- WMI_SET_BITS(dsnr_params, 0, 16, value)
- #define WMI_DMA_BUF_RELEASE_CV_UPLOAD_GET_DSNR_LENGTH(dsnr_params) \
- WMI_GET_BITS(dsnr_params, 0, 16)
- #define WMI_DMA_BUF_RELEASE_CV_UPLOAD_SET_DSNR_OFFSET(dsnr_params, value) \
- WMI_SET_BITS(dsnr_params, 16, 16, value)
- #define WMI_DMA_BUF_RELEASE_CV_UPLOAD_GET_DSNR_OFFSET(dsnr_params) \
- WMI_GET_BITS(dsnr_params, 16, 16)
- #define WMI_DMA_BUF_RELEASE_CV_UPLOAD_SET_FB_PARAMS_NC(fb_params, value) \
- WMI_SET_BITS(fb_params, 0, 2, value)
- #define WMI_DMA_BUF_RELEASE_CV_UPLOAD_GET_FB_PARAMS_NC(fb_params) \
- WMI_GET_BITS(fb_params, 0, 2)
- #define WMI_DMA_BUF_RELEASE_CV_UPLOAD_SET_FB_PARAMS_NSS_NUM(fb_params, value) \
- WMI_SET_BITS(fb_params, 2, 2, value)
- #define WMI_DMA_BUF_RELEASE_CV_UPLOAD_GET_FB_PARAMS_NSS_NUM(fb_params) \
- WMI_GET_BITS(fb_params, 2, 2)
- #define WMI_DMA_BUF_RELEASE_CV_UPLOAD_SET_DDR_BUF_IDX(ddr_buffer_idx, value) \
- WMI_SET_BITS(ddr_buffer_idx, 4, 2, value)
- #define WMI_DMA_BUF_RELEASE_CV_UPLOAD_GET_DDR_BUF_IDX(ddr_buffer_idx) \
- WMI_GET_BITS(ddr_buffer_idx, 4, 2)
- #define WMI_SET_STANDALONE_SOUND_PARAMS_FB_TYPE(snd_params, value) \
- WMI_SET_BITS(snd_params, 0, 2, value)
- #define WMI_GET_STANDALONE_SOUND_PARAMS_FB_TYPE(snd_params) \
- WMI_GET_BITS(snd_params, 0, 2)
- #define WMI_SET_STANDALONE_SOUND_PARAMS_NG(snd_params, value) \
- WMI_SET_BITS(snd_params, 2, 2, value)
- #define WMI_GET_STANDALONE_SOUND_PARAMS_NG(snd_params) \
- WMI_GET_BITS(snd_params, 2, 2)
- #define WMI_SET_STANDALONE_SOUND_PARAMS_CB(snd_params, value) \
- WMI_SET_BITS(snd_params, 4, 1, value)
- #define WMI_GET_STANDALONE_SOUND_PARAMS_CB(snd_params) \
- WMI_GET_BITS(snd_params, 4, 1)
- #define WMI_SET_STANDALONE_SOUND_PARAMS_BW(snd_params, value) \
- WMI_SET_BITS(snd_params, 5, 3, value)
- #define WMI_GET_STANDALONE_SOUND_PARAMS_BW(snd_params) \
- WMI_GET_BITS(snd_params, 5, 3)
- #define WMI_SET_STANDALONE_SOUND_PARAMS_CQI_TYPE(snd_params, value) \
- WMI_SET_BITS(snd_params, 8, 1, value)
- #define WMI_GET_STANDALONE_SOUND_PARAMS_CQI_TYPE(snd_params) \
- WMI_GET_BITS(snd_params, 8, 1)
- #define WMI_DMA_BUF_RELEASE_CQI_UPLOAD_SET_FB_PARAMS_IS_VALID(fb_params_cqi, value, idx) \
- WMI_SET_BITS(fb_params_cqi, idx, 1, value)
- #define WMI_DMA_BUF_RELEASE_CQI_UPLOAD_GET_FB_PARAMS_IS_VALID(fb_params_cqi, idx) \
- WMI_GET_BITS(fb_params_cqi, idx, 1)
- #define WMI_DMA_BUF_RELEASE_CQI_UPLOAD_SET_FB_PARAMS_NC(fb_params_cqi, value, idx) \
- WMI_SET_BITS(fb_params_cqi, CQI_UPLOAD_META_DATA_NC_IDX(idx), 2, value)
- #define WMI_DMA_BUF_RELEASE_CQI_UPLOAD_GET_FB_PARAMS_NC(fb_params_cqi, idx) \
- WMI_GET_BITS(fb_params_cqi, CQI_UPLOAD_META_DATA_NC_IDX(idx), 2)
- typedef enum _WMI_STANDALONE_SOUND_STATUS_T {
- WMI_STANDALONE_SOUND_STATUS_OK,
- WMI_STANDALONE_SOUND_STATUS_ERR_NUM_PEERS_EXCEEDED,
- WMI_STANDALONE_SOUND_STATUS_ERR_NG_INVALID,
- WMI_STANDALONE_SOUND_STATUS_ERR_NUM_REPEAT_EXCEEDED,
- WMI_STANDALONE_SOUND_STATUS_ERR_PEER_DOESNOT_SUPPORT_BW,
- WMI_STANDALONE_SOUND_STATUS_ERR_INVALID_PEER,
- WMI_STANDALONE_SOUND_STATUS_ERR_INVALID_VDEV,
- WMI_STANDALONE_SOUND_STATUS_ERR_PEER_DOES_NOT_SUPPORT_MU_FB,
- WMI_STANDALONE_SOUND_STATUS_ERR_DMA_NOT_CONFIGURED,
- WMI_STANDALONE_SOUND_STATUS_ERR_COMPLETE_FAILURE,
- } WMI_STANDALONE_SOUND_STATUS_T;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_dma_buf_release_cv_upload_meta_data */
- /** Set if the CV is valid */
- A_UINT32 is_valid;
- /** Feedback type */
- A_UINT32 fb_type;
- /**
- * [15:0] ASNR length
- * [31:16] ASNR offset
- */
- A_UINT32 asnr_params;
- /**
- * [15:0] DSNR length
- * [31:16] DSNR offset
- */
- A_UINT32 dsnr_params;
- /** Peer mac address */
- wmi_mac_addr peer_mac_address;
- /** fb_params:
- * [1:0] Nc
- * Refer to WMI_DMA_BUF_RELEASE_CV_UPLOAD_[SET,GET]_FB_PARAMS_NC
- * [3:2] nss_num
- * Refer to WMI_DMA_BUF_RELEASE_CV_UPLOAD_[SET,GET]_FB_PARAMS_NSS_NUM
- * [5:4] ddr_buffer_idx
- * Refer to WMI_DMA_BUF_RELEASE_CV_UPLOAD_[SET,GET]_DDR_BUF_IDX
- */
- A_UINT32 fb_params;
- } wmi_dma_buf_release_cv_upload_meta_data;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_dma_buf_release_radar_meta_data */
- /* timestamp at the time of the capture */
- A_UINT32 timestamp_us;
- /* phy mode WLAN_PHY_MODE of the channel defined in wlan_defs.h */
- A_UINT32 phy_mode;
- /* frequency (in MHz) of the primary 20 MHz channel */
- A_UINT32 chan_mhz;
- /* Center frequency 1 in MHz */
- A_UINT32 band_center_freq1;
- /* Center frequency 2 in MHz - valid only for 11acvht 80plus80 mode */
- A_UINT32 band_center_freq2;
- /* tx chain mask */
- A_UINT32 tx_chain_mask;
- /* rx chain mask */
- A_UINT32 rx_chain_mask;
- /* number of LTFs sent for capture */
- A_UINT32 num_ltf_tx;
- /* number of LTFs skipped in rx */
- A_UINT32 num_skip_ltf_rx;
- /* number of LTFs used for accumulation */
- A_UINT32 num_ltf_accumulation;
- } wmi_dma_buf_release_wifi_radar_meta_data;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_dma_buf_release_cqi_upload_meta_data */
- A_UINT32 tlv_header;
- /**
- * [15:0] ASNR length
- * [31:16] ASNR offset
- */
- A_UINT32 asnr_params;
- /** Peer mac address */
- wmi_mac_addr peer_mac_address[MAX_NUM_CQI_USERS_IN_STANDALONE_SND];
- /**
- * [0] is_user0_valid
- * [1] is_user1_valid
- * [2] is_user2_valid
- * [4:3] User0_Nc
- * [6:5] User1_Nc
- * [8:7] User2_Nc
- */
- A_UINT32 fb_params_cqi : 9,
- reserved : 23;
- } wmi_dma_buf_release_cqi_upload_meta_data;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_standalone_sounding_cmd_fixed_param */
- /** vdev identifier */
- A_UINT32 vdev_id;
- /** sounding_params:
- * [1:0] Feedback type
- * [3:2] Ng
- * [4] Codebook
- * [7:5] BW
- * 0 = 20 MHz
- * 1 = 40 MHz
- * 2 = 80 MHz
- * 3 = 160 MHz
- * 4 = 320 MHz
- * [8] Triggered/Non-Triggered CQI
- * [31:9] Reserved
- */
- A_UINT32 sounding_params;
- /** The number of sounding repeats */
- A_UINT32 num_sounding_repeats;
- /**
- * TLV (tag length value) parameters follow the
- * structure. The TLV's are:
- * wmi_mac_addr peer_list[num_peers];
- */
- } wmi_standalone_sounding_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_standalone_sounding_evt_fixed_param */
- /** vdev identifier */
- A_UINT32 vdev_id;
- /** status:
- * standalone sounding command status -
- * refer to WMI_STANDALONE_SOUND_STATUS_T
- */
- A_UINT32 status;
- /** number of CV buffers uploaded */
- A_UINT32 buffer_uploaded;
- /** TLV (tag length value) parameters follow the
- * structure. The TLV's are:
- * A_UINT32 snd_failed[num_sounding_repeats];
- * snd_failed[] array's elements hold the number of failures
- * for each sounding.
- */
- } wmi_standalone_sounding_evt_fixed_param;
- typedef struct {
- /*
- * TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_rf_path_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /* pdev_id for identifying the MAC */
- A_UINT32 pdev_id;
- /*
- * rf_path :
- * 0 - primary RF path
- * 1 - secondary RF path
- */
- A_UINT32 rf_path;
- } wmi_pdev_set_rf_path_cmd_fixed_param;
- typedef struct {
- /*
- * TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_set_rf_path_event_fixed_param
- */
- A_UINT32 tlv_header;
- /* pdev_id for identifying the MAC */
- A_UINT32 pdev_id;
- /*
- * rf_path :
- * 0 - primary RF path
- * 1 - secondary RF path
- */
- A_UINT32 rf_path;
- /*
- * status :
- * TRUE (0) - for recieved and cache the value in FW
- * FALSE (1) :
- * a. pdev_id for which secondary RF path is not available
- * b. caching of the rf_path got failed in FW
- */
- A_UINT32 status;
- } wmi_pdev_set_rf_path_event_fixed_param;
- #define WMI_SET_RX_PEER_STATS_RESP_TYPE(rx_params, value) \
- WMI_SET_BITS(rx_params, 0, 1, value)
- #define WMI_GET_RX_PEER_STATS_RESP_TYPE(rx_params) \
- WMI_GET_BITS(rx_params, 0, 1)
- #define WMI_SET_RX_PEER_STATS_MCS(rx_params, value) \
- WMI_SET_BITS(rx_params, 1, 5, value)
- #define WMI_GET_RX_PEER_STATS_MCS(rx_params) \
- WMI_GET_BITS(rx_params, 1, 5)
- #define WMI_SET_RX_PEER_STATS_NSS(rx_params, value) \
- WMI_SET_BITS(rx_params, 6, 4, value)
- #define WMI_GET_RX_PEER_STATS_NSS(rx_params) \
- WMI_GET_BITS(rx_params, 6, 4)
- #define WMI_SET_RX_PEER_STATS_GI_LTF_TYPE(rx_params, value) \
- WMI_SET_BITS(rx_params, 10, 4, value)
- #define WMI_GET_RX_PEER_STATS_GI_LTF_TYPE(rx_params) \
- WMI_GET_BITS(rx_params, 10, 4)
- typedef enum {
- WMI_PEER_RX_RESP_SU = 0,
- WMI_PEER_RX_RESP_MIMO = 1,
- WMI_PEER_RX_RESP_OFDMA = 2,
- } WMI_PEER_RX_RESP_TYPE;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_manual_ul_ofdma_trig_rx_peer_userinfo */
- A_UINT32 tlv_header;
- /* Peer mac address */
- wmi_mac_addr peer_macaddr;
- /* Per peer RX parameters */
- /* [0] - Flag to indicate if peer responded with QoS Data or QoS NULL.
- * 0 -> indicates QoS NULL, 1-> indicates QoS Data response
- * [5:1] - MCS - Peer response MCS
- * [9:6] - NSS - Peer response NSS
- * [13:10] - GI LTF Type - Peer response GI/LTF type
- * 0 => gi == GI_1600 && ltf == 1x LTF
- * 1 => gi == GI_1600 && ltf == 2x LTF
- * 2 => gi == GI_3200 && ltf == 4x LTF
- * [31:14] - Reserved
- */
- A_UINT32 rx_peer_stats;
- /* Peer response per chain RSSI */
- A_INT32 peer_per_chain_rssi[WMI_MAX_CHAINS];
- } wmi_manual_ul_ofdma_trig_rx_peer_userinfo;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_manual_ul_ofdma_trig_rx_peer_userinfo_evt_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id; /* VDEV identifier */
- /* combined_rssi:
- * RX Combined RSSI in dBm
- * Value indicates the average RSSI per 20MHz by averaging the total RSSI
- * across entire BW for each OFDMA STA
- */
- A_INT32 combined_rssi;
- /* rx_ppdu_resp_type:
- * RX PPDU Response Type
- * Refer WMI_PEER_RX_RESP_TYPE for possible values
- */
- A_UINT32 rx_ppdu_resp_type;
- /* rx_resp_bw:
- * RX response bandwidth
- * 0 = 20 MHz
- * 1 = 40 MHz
- * 2 = 80 MHz
- * 3 = 160 MHz
- * 4 = 320 MHz
- */
- A_UINT32 rx_resp_bw;
- /**
- * This TLV is followed by TLVs below:
- * wmi_manual_ul_ofdma_trig_rx_peer_userinfo rx_peer_userinfo[]
- * TLV length specified by number of peer responses for manual
- * UL OFDMA trigger
- */
- } wmi_manual_ul_ofdma_trig_rx_peer_userinfo_evt_fixed_param;
- typedef enum _WMI_VDEV_PAUSE_TYPE
- {
- WMI_VDEV_PAUSE_TYPE_UNKNOWN = 0,
- WMI_VDEV_PAUSE_TYPE_MLO_LINK = 1,
- WMI_VDEV_PAUSE_TYPE_TX = 2,
- } WMI_VDEV_PAUSE_TYPE;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_vdev_pause_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /** type of pause, refer to WMI_VDEV_PAUSE_TYPE */
- A_UINT32 pause_type;
- /** duration of pause, in unit of ms */
- A_UINT32 pause_dur_ms;
- } wmi_vdev_pause_cmd_fixed_param;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 ieee_link_id; /* key to identify a link */
- wmi_channel wmi_chan;
- } wmi_mlo_link_bss_param;
- typedef struct {
- A_UINT32 tlv_header;
- wmi_mac_addr ap_mld_macaddr;
- /* max num of active links recommended by AP or applications */
- A_UINT32 recommended_max_num_simultaneous_links;
- /*
- * The TLVs listed below follow this fixed_param TLV:
- * wmi_mlo_link_bss_param link_bss_params[]:
- * an array of links to be updated
- */
- } wmi_mlo_set_link_bss_params_cmd_fixed_param;
- typedef enum _WMI_LINK_SWITCH_REASON {
- WMI_MLO_LINK_SWITCH_REASON_RSSI_CHANGE = 1,
- WMI_MLO_LINK_SWITCH_REASON_LOW_QUALITY = 2,
- WMI_MLO_LINK_SWITCH_REASON_C2_CHANGE = 3,
- WMI_MLO_LINK_SWITCH_REASON_HOST_FORCE = 4,
- WMI_MLO_LINK_SWITCH_REASON_T2LM = 5,
- WMI_MLO_LINK_SWITCH_REASON_WLM = 6,
- WMI_MLO_LINK_SWITCH_REASON_HOST_FORCE_FOLLOWUP = 7,
- WMI_MLO_LINK_SWITCH_REASON_MAX,
- } WMI_LINK_SWITCH_REASON;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id; /*the vdev id assigned to curr_ieee_link_id*/
- A_UINT32 curr_ieee_link_id; /*current link id on above vdev_id*/
- A_UINT32 new_ieee_link_id; /*new link id on above vdev_id*/
- A_UINT32 new_primary_freq; /*primay_freq for the new link on the vdev, in units of MHZ*/
- A_UINT32 new_phymode; /*phymode for the new link on the vdev, see WLAN_PHY_MODE for definitions*/
- A_UINT32 reason; /*see WMI_LINK_SWITCH_REASON for definition*/
- } wmi_mlo_link_switch_req_evt_fixed_param;
- typedef enum _WMI_LINK_SWITCH_CNF_REASON{
- WMI_MLO_LINK_SWITCH_CNF_REASON_BSS_PARAMS_CHANGED = 1,
- WMI_MLO_LINK_SWITCH_CNF_REASON_CONCURRECNY_CONFLICT = 2,
- WMI_MLO_LINK_SWITCH_CNF_REASON_HOST_INTERNAL_ERROR = 3,
- WMI_MLO_LINK_SWITCH_CNF_REASON_HOST_RESTORE_FORCE = 4,
- WMI_MLO_LINK_SWITCH_CNF_REASON_MAX,
- } WMI_LINK_SWITCH_CNF_REASON;
- typedef enum _WMI_LINK_SWITCH_CNF_STATUS{
- WMI_MLO_LINK_SWITCH_CNF_STATUS_ACCEPT = 0,
- WMI_MLO_LINK_SWITCH_CNF_STATUS_REJECT = 1,
- } WMI_LINK_SWITCH_CNF_STATUS;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 status; /* see definition of WMI_LINK_SWITCH_CNF_STATUS */
- A_UINT32 reason; /* see definition of WMI_LINK_SWITCH_CNF_REASON */
- /*
- * The following optional TLVs may follow this fixed_praam TLV,
- * depending on the value of the reason field.
- *
- * wmi_mlo_link_set_active_cmd_fixed_param set_link_params[];
- * The set_link_params array has one element when reason is
- * WMI_MLO_LINK_SWITCH_CNF_REASON_HOST_RESTORE_FORCE and
- * use_ieee_link_id_bitmap should always be filled with 1.
- * In other cases the length of the set_link_params array shall be 0.
- *
- * wmi_mlo_set_active_link_number_param link_number_param[];
- * Link number parameters, optional TLV.
- * Present when force type is WMI_MLO_LINK_FORCE_ACTIVE_LINK_NUM or
- * WMI_MLO_LINK_FORCE_INACTIVE_LINK_NUM.
- * In other cases the length of array shall be 0.
- *
- * A_UINT32 ieee_link_id_bitmap[];
- * present for WMI_MLO_LINK_FORCE_ACTIVE
- * or WMI_MLO_LINK_FORCE_INACTIVE or WMI_MLO_LINK_NO_FORCE
- * or WMI_MLO_LINK_FORCE_ACTIVE_LINK_NUM or
- * WMI_MLO_LINK_FORCE_INACTIVE_LINK_NUM
- * In other cases the length of array shall be 0.
- *
- * A_UINT32 ieee_link_id_bitmap2[];
- * For force mode WMI_MLO_LINK_FORCE_ACTIVE_INACTIVE ieee_link_id_bitmap2[]
- * carries the inactive linkid bitmap.
- * In other cases the length of the array shall be 0.
- */
- } wmi_mlo_link_switch_cnf_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_link_state_switch_req_evt_fixed_param */
- A_UINT32 link_state_switch_count; /* Number of link state switch event pending, MAX 5 iteration */
- } wmi_mlo_link_state_switch_req_evt_fixed_param;
- typedef struct {
- A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_link_state_switch_trigger_reason_tlv_param */
- A_UINT32 cur_active_ieee_bitmap; /* current active ieee linkbitmap */
- A_UINT32 prev_active_ieee_bitmap; /* previous active iee linkbitmap */
- A_UINT32 host_ref_fw_timestamp_ms; /* fw time stamp on refrence of TIME_STAMP_SYNC_CMD */
- A_UINT32 reason_code; /* reason for link state switch trigger -
- * refer to WMI_LINK_STATE_SWITCH_REASON
- */
- wmi_mac_addr ml_bssid; /* mac address of mld device */
- } wmi_mlo_link_state_switch_trigger_reason;
- typedef enum _WMI_LINK_STATE_SWITCH_REASON {
- WMI_MLO_PS_LINK_STATE_SWITCH_REASON_VDEV_READY = 0,
- WMI_MLO_PS_LINK_STATE_SWITCH_REASON_ULL_MODE = 1,
- WMI_MLO_PS_LINK_STATE_SWITCH_REASON_T2LM_ENABLED = 2,
- WMI_MLO_PS_LINK_STATE_SWITCH_REASON_T2LM_DISABLED = 3,
- WMI_MLO_PS_LINK_STATE_SWITCH_REASON_FORCE_ENABLED = 4,
- WMI_MLO_PS_LINK_STATE_SWITCH_REASON_FORCE_DISABLED = 5,
- WMI_MLO_PS_LINK_STATE_SWITCH_REASON_LINK_QUALITY = 6,
- WMI_MLO_PS_LINK_STATE_SWITCH_REASON_LINK_CAPACITY = 7,
- WMI_MLO_PS_LINK_STATE_SWITCH_REASON_RSSI = 8,
- WMI_MLO_PS_LINK_STATE_SWITCH_REASON_BMISS = 9,
- WMI_MLO_PS_LINK_STATE_SWITCH_REASON_BT_STATUS = 10,
- WMI_MLO_PS_LINK_STATE_SWITCH_REASON_MAX,
- } WMI_LINK_STATE_SWITCH_REASON;
- #define WMI_MLO_PRIMARY_LINK_PEER_MIGRATION_ML_PEER_ID_GET(new_link_info) WMI_GET_BITS(new_link_info, 0, 16)
- #define WMI_MLO_PRIMARY_LINK_PEER_MIGRATION_ML_PEER_ID_SET(new_link_info, value) WMI_SET_BITS(new_link_info, 0, 16, value)
- #define WMI_MLO_PRIMARY_LINK_PEER_MIGRATION_HW_LINK_ID_GET(new_link_info) WMI_GET_BITS(new_link_info, 16, 16)
- #define WMI_MLO_PRIMARY_LINK_PEER_MIGRATION_HW_LINK_ID_SET(new_link_info, value) WMI_SET_BITS(new_link_info, 16, 16, value)
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_new_primary_link_peer_info */
- A_UINT32 tlv_header;
- union {
- A_UINT32 new_link_info;
- struct {
- A_UINT32 ml_peer_id :16,
- hw_link_id :16;
- };
- };
- } wmi_mlo_new_primary_link_peer_info;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_primary_link_peer_migration_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- /**
- * Following this structure is
- * the array of "wmi_mlo_new_primary_link_peer_info" TLVs.
- */
- } wmi_mlo_primary_link_peer_migration_fixed_param;
- #define WMI_MLO_PRIMARY_LINK_PEER_MIGRATION_STATUS_ML_PEER_ID_GET(status_info) WMI_GET_BITS(status_info, 0, 16)
- #define WMI_MLO_PRIMARY_LINK_PEER_MIGRATION_STATUS_ML_PEER_ID_SET(status_info, value) WMI_SET_BITS(status_info, 0, 16, value)
- #define WMI_MLO_PRIMARY_LINK_PEER_MIGRATION_STATUS_STATUS_GET(status_info) WMI_GET_BITS(status_info, 16, 8)
- #define WMI_MLO_PRIMARY_LINK_PEER_MIGRATION_STATUS_STATUS_SET(status_info, value) WMI_SET_BITS(status_info, 16, 8, value)
- typedef enum {
- WMI_PRIMARY_LINK_PEER_MIGRATION_SUCCESS,
- WMI_PRIMARY_LINK_PEER_MIGRATION_IN_PROGRESS,
- WMI_PRIMARY_LINK_PEER_MIGRATION_DELETE_IN_PROGRESS,
- WMI_PRIMARY_LINK_PEER_MIGRATION_DELETED,
- WMI_PRIMARY_LINK_PEER_MIGRATION_TX_PIPES_FAILED,
- WMI_PRIMARY_LINK_PEER_MIGRATION_RX_PIPES_FAILED,
- /* Add any new status above this line */
- WMI_PRIMARY_LINK_PEER_MIGRATION_FAIL = 255,
- } WMI_PRIMARY_LINK_PEER_MIGRATION_STATUS;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_primary_link_peer_migration_status */
- A_UINT32 tlv_header;
- union {
- A_UINT32 status_info;
- struct {
- A_UINT32 ml_peer_id :16,
- status :8, /* WMI_PRIMARY_LINK_PEER_MIGRATION_STATUS */
- reserved :8;
- };
- };
- } wmi_mlo_primary_link_peer_migration_status;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_mlo_primary_link_peer_migration_compl_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- /**
- * Following the fixed param is
- * the array of TLVs "wmi_mlo_primary_link_peer_migration_status".
- */
- } wmi_mlo_primary_link_peer_migration_compl_fixed_param;
- /* WMI_AUX_DEV_CAPS_SUPPORTED_MODE:
- * How many bits to shift for each supported mode.
- * This works just like Linux file permission bits
- * (i.e. user|group|other values for each rwx perms).
- */
- typedef enum _WMI_AUX_DEV_CAPS_SUPPORTED_MODE {
- WMI_AUX_DEV_SUPPORTED_MODE_SCAN = 0,
- WMI_AUX_DEV_SUPPORTED_MODE_LISTEN = 1,
- WMI_AUX_DEV_SUPPORTED_MODE_EMLSR = 2,
- } WMI_AUX_DEV_CAPS_SUPPORTED_MODE;
- /* wmi_aux_dev_capabilities:
- * TLV representing AUX mode capabilities
- * A one-dimensional "flattened" array of these structs shall represent
- * all AUX capabilities regardless of the actual AUX count.
- *
- * For example, if 2x AUX are present, then the array is expected to look
- * something like this:
- * wmi_aux_dev_capabilities caps[] = {
- * // 4 elements for AUX_0 - one element for each HW mode:
- * AUX_0_single_mac,
- * AUX_0_dual_mac,
- * AUX_0_single_mac_emlsr,
- * AUX_0_split_emlsr,
- * // 4 elements for AUX_1:
- * AUX_1_single_mac,
- * AUX_1_dual_mac,
- * AUX_1_single_mac_emlsr,
- * AUX_1_split_emlsr,
- * };
- * In effect, indexes 0 to 3 (inclusive) represent the first AUX,
- * 4 to 7 (inclusive) represent the second, and so on.
- * Note that each element explicitly identifies which AUX and HW mode it
- * corresponds to, via the aux_index and hw_mode_id fields respectively.
- * So the receiver should not assume the ordering will be as shown above
- * (AUX0 single, AUX0 dual, AUX0 single emlsr, AUX0 split emlsr,
- * AUX1 single, AUX1 dual, AUX1 single emlsr, AUX1 split emlsr)
- * but instead should directly check each element's aux_index and hw_mode_id
- * fields.
- */
- typedef struct {
- /* tlv_header -- WMITLV_TAG_STRUC_wmi_aux_dev_capabilities */
- A_UINT32 tlv_header;
- /* aux_index -- Which AUX this TLV applies to.
- Ex: aux_index=0 is first AUX, aux_index=1 is second AUX, etc */
- A_UINT32 aux_index;
- /*
- * This TLV represents which AUX capabilities are supported by
- * which MAC for the given HW mode.
- * pdev ID value of 0x0 denotes that the AUX mode is not applicable
- * for the given HW mode.
- *
- * hw_mode_id | Single DBS_OR_SBS AUX eMLSR AUX eMLSR
- * | Phy single split
- * --------------------------------------------------------------
- * supported_modes | SCAN/ SCAN/ EMLSR EMLSR
- * | LISTEN LISTEN
- * listen_pdev_id_map | 0x1 0x2 0x0 0x0
- * emlsr_pdev_id_map | 0x0 0x0 0x1 0x2
- */
- /* hw_mode_id:
- * Which HW mode this TLV applies to.
- * HW mode values are defined in WMI_HW_MODE_CONFIG_TYPE.
- */
- A_UINT32 hw_mode_id;
- /* supported_modes:
- * Which mode this AUX supports for the HW mode defined in hw_mode_id.
- * Shift amounts are defined in WMI_AUX_DEV_CAPS_SUPPORTED_MODE.
- * This works just like user|group|other bits for Linux file permissions:
- * 0x1 = SCAN (0 0 1)
- * 0x2 = LISTEN (0 1 0)
- * 0x3 = SCAN+LISTEN (0 1 1)
- * 0x4 = EMLSR (1 0 0)
- */
- A_UINT32 supported_modes_bitmap;
- /* listen_pdev_id_map:
- * Which AUX MAC can listen/scan for the HW mode described in hw_mode_id.
- * 0x0 - AUX cannot be used for listen mode.
- * 0x1 - AUX can be attached to MAC-0 in AUX listen mode.
- * 0x2 - AUX can be attached to MAC-1 in AUX listen mode.
- */
- A_UINT32 listen_pdev_id_map;
- /* emlsr_pdev_id_map:
- * Which AUX MAC can perform eMLSR for the HW mode described in hw_mode_id.
- * 0x0 - AUX cannot be used for eMLSR mode.
- * 0x1 - AUX can be attached to MAC-0 in AUX eMLSR mode.
- * 0x2 - AUX can be attached to MAC-1 in AUX eMLSR mode.
- */
- A_UINT32 emlsr_pdev_id_map;
- } wmi_aux_dev_capabilities;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_wsi_stats_info_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- A_UINT32 pdev_id; /* for identifying the MAC */
- A_UINT32 wsi_ingress_load_info;
- A_UINT32 wsi_egress_load_info;
- } wmi_pdev_wsi_stats_info_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_csa_event_status_ind_fixed_param
- */
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 status; /* accept: 1 reject : 0 */
- } wmi_csa_event_status_ind_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_utf_cmd_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 pdev_id;
- } wmi_pdev_utf_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_utf_event_fixed_param */
- A_UINT32 tlv_header;
- A_UINT32 pdev_id;
- } wmi_pdev_utf_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_led_blink_rate_table */
- A_UINT32 tlv_header;
- A_UINT32 on_time; /* units = milliseconds */
- A_UINT32 off_time; /* units = milliseconds */
- } wmi_led_blink_rate_table;
- typedef struct {
- /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_enable_led_blink_download_rate_table_fixed_param */
- A_UINT32 tlv_header;
- /* Pdev Id 0 or 1 based on split phy */
- A_UINT32 pdev_id;
- /* Feature enable or disable flag 0-disable 1-enable */
- A_UINT32 blink_enable_flag;
- /* Bandwidth (Mbps) of each index in the blink rate table.
- * This quantum specification tells the FW which of the blink rate table
- * elements to use; the FW will divide the data rate by this bw_per_index
- * and round down, to obtain the index into the rate table for the blink
- * rate corresponding to the data rate.
- */
- A_UINT32 bw_per_index;
- /**
- * Following this fixed_param TLV are the following additional TLVs:
- * - wmi_led_blink_rate_table led_blink_rate_table[]
- * The led_blink_rate_table[] elements need to be ordered by
- * increasing data rate, so that by dividing the data rate by
- * bw_per_index, the FW can find which index/element of the
- * led_blink_rate_table[] array to use.
- */
- } wmi_enable_led_blink_download_rate_table_fixed_param;
- typedef enum {
- /* Used when peer attempts connection with vdev */
- VDEV_OOB_CONNECT_REQUEST = 0,
- /* Used when upper layers wanted to cancel the connect request */
- VDEV_OOB_CONNECT_CANCEL = 1,
- /* Used as a response from FW that start request is accepted */
- VDEV_OOB_CONNECT_STARTED = 2,
- /*
- * Used as a response when connection is complete, or as a response
- * to cancel command.
- */
- VDEV_OOB_CONNECT_COMPLETED = 3,
- /* Used as a response if connect request can not be honored in FW */
- VDEV_OOB_CONNECT_CANCELLED = 4,
- VDEV_OOB_CONNECT_INVALID = 255,
- } VDEV_OOB_CONNECT_REQ_RESP_TYPE;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_vdev_oob_connection_req_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* OOB connection request type based on VDEV_OOB_CONNECT_REQ_RESP_TYPE */
- A_UINT32 connect_req_type;
- /* vdev_available_duration:
- * specifies duration in msecs for which device needs to be available
- * on vdev chan
- */
- A_UINT32 vdev_available_duration;
- } wmi_vdev_oob_connection_req_cmd_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_vdev_oob_connection_resp_event_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /* OOB connection response type based on VDEV_OOB_CONNECT_REQ_RESP_TYPE */
- A_UINT32 connect_resp_type;
- } wmi_vdev_oob_connection_resp_event_fixed_param;
- typedef enum {
- WMI_AUDIO_TRANSPORT_SWITCH_STATUS_FAIL = 0,
- WMI_AUDIO_TRANSPORT_SWITCH_STATUS_SUCCESS,
- WMI_AUDIO_TRANSPORT_SWITCH_STATUS_TIMEOUT,
- } WMI_AUDIO_TRANSPORT_SWITCH_RESPONSE_STATUS;
- typedef enum {
- WMI_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0,
- WMI_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1,
- } WMI_AUDIO_TRANSPORT_SWITCH_TYPE;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_audio_transport_switch_type_event_fixed_param */
- A_UINT32 tlv_header;
- /** This indicates whether FW is requesting for switch to WLAN(XPAN) or non-WLAN(BLE) */
- A_UINT32 switch_type; /*see definition of WMI_AUDIO_TRANSPORT_SWITCH_TYPE */
- } wmi_audio_transport_switch_type_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_audio_transport_switch_resp_status_cmd_fixed_param */
- A_UINT32 tlv_header;
- /** This indicates whether switch response status is success, fail, timeout */
- A_UINT32 switch_response_status; /* see definition of WMI_AUDIO_TRANSPORT_SWITCH_RESPONSE_STATUS */
- /** This indicates for which switch type (WLAN(XPAN) or non-WLAN(BLE)) the switch response status is intended to */
- A_UINT32 switch_type; /* see definition of WMI_AUDIO_TRANSPORT_SWITCH_TYPE */
- } wmi_audio_transport_switch_resp_status_cmd_fixed_param;
- enum wmi_wifi_radar_cmd {
- wmi_wifi_radar_capture_disable,
- wmi_wifi_radar_capture_enable,
- wmi_wifi_radar_rx_cal,
- wmi_wifi_radar_tx_cal,
- wmi_wifi_radar_cmd_max = 0xff
- };
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_pdev_enable_wifi_radar_cmd_fixed_param
- */
- A_UINT32 tlv_header;
- /* host pdev id */
- A_UINT32 pdev_id;
- /* tx_chain_mask:
- * tx chain mask to use for wifi radar tx.
- * Only one chain is supposed to be set.
- */
- A_UINT32 tx_chain_mask;
- /* rx chain mask for wifi radar capture. Can have multiple bits set. */
- A_UINT32 rx_chain_mask;
- /* number of LTFs to send for capture */
- A_UINT32 num_ltf_tx;
- /* number of extra LTFs that are to be skipped for accumulation */
- A_UINT32 num_skip_ltf_rx;
- /* number of LTFs to use for accumulation. Must be power of 2. */
- A_UINT32 num_ltf_accumulation;
- /* bandwidth to use for capture
- * 0 = 20 MHz
- * 1 = 40 MHz
- * 2 = 80 MHz
- * 3 = 160 MHz
- * 4 = 320 MHz
- */
- A_UINT32 bw;
- /* enum wmi_wifi_radar_cmd */
- A_UINT32 capture_calibrate;
- /* periodicity of capture in milliseconds */
- A_UINT32 capture_interval_ms;
- } wmi_pdev_enable_wifi_radar_cmd_fixed_param;
- #define WMI_PDEV_WIFI_RADAR_CAL_COMPLETION_STATUS_GET(cal_status_array, txchnIdx, rxchnIdx) WMI_GET_BITS(*(cal_status_array + txchnIdx), rxchnIdx, 1)
- #define WMI_PDEV_WIFI_RADAR_CAL_COMPLETION_STATUS_SET(cal_status_array, txchnIdx, rxchnIdx, value) WMI_SET_BITS(*(cal_status_array + txchnIdx), rxchnIdx, 1, value)
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_wifi_radar_cal_configuration
- */
- A_UINT32 tlv_header;
- /* ID of pdev for which the calibration is completed */
- A_UINT32 pdev_id;
- /* Packet bandwidth of WiFi Radar packet used for calibration
- * 0 = 20 MHz
- * 1 = 40 MHz
- * 2 = 80 MHz
- * 3 = 160 MHz
- * 4 = 320 MHz
- */
- A_UINT32 wifi_radar_pkt_bw;
- /* Channel bandwidth
- * 0 = 20 MHz
- * 1 = 40 MHz
- * 2 = 80 MHz
- * 3 = 160 MHz
- * 4 = 320 MHz
- */
- A_UINT32 channel_bw;
- /* Channel Center frequency in MHz */
- A_UINT32 band_center_freq;
- /* Number of LTF configured in the WiFi Radar Tx packet during calibration */
- A_UINT32 num_ltf_tx;
- /* Number of LTF skipped during Rx of the calibration packet */
- A_UINT32 num_skip_ltf_rx;
- /* Number of LTF accumulated during Rx of the calibration packet */
- A_UINT32 num_ltf_accumulation;
- /* Calibration status for each chain combination
- * Word 0: tx chain 0 cal statuses:
- * Bit 0: rx chain 0 cal status
- * Bit 1: rx chain 1 cal status
- * etc.
- * Word 1: tx chain 1 cal statuses:
- * Bit 0: rx chain 0 cal status
- * Bit 1: rx chain 1 cal status
- * etc.
- * etc.
- * Cal status values: success = 1, Failure = 0
- */
- A_UINT32 per_chain_cal_status[WMI_MAX_CHAINS];
- } wmi_pdev_wifi_radar_cal_completion_status_event_param;
- typedef struct {
- /* WMITLV_TAG_STRUC_wmi_pdev_enable_xlna_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* ID of pdev for which the xLNA needs to be configured */
- A_UINT32 pdev_id;
- /* 1 - Enable, 0 - Disable */
- A_UINT32 xLNA_enable;
- } wmi_pdev_enable_xlna_cmd_fixed_param;
- typedef struct {
- /* WMITLV_TAG_STRUC_wmi_pdev_enable_xlna_event_fixed_param */
- A_UINT32 tlv_header;
- /* to identify for which pdev the response is received */
- A_UINT32 pdev_id;
- /* Return status: 0 - Success, else - Failure */
- A_UINT32 status;
- } wmi_pdev_enable_xlna_event_fixed_param;
- /**
- * bits 0-15 are used for non interative traffic types like video streaming,
- * or ping
- * bit 16-31 are reserved for interactive traffic types like gaming, VoIP,
- * or video conferencing
- */
- #define WMI_PEER_ACTIVE_TRAFFIC_TYPE_STREAMING_M 0x00000001
- #define WMI_PEER_ACTIVE_TRAFFIC_TYPE_STREAMING_S 0
- #define WMI_PEER_ACTIVE_TRAFFIC_TYPE_PING_M 0x00000002
- #define WMI_PEER_ACTIVE_TRAFFIC_TYPE_PING_S 1
- #define WMI_PEER_ACTIVE_TRAFFIC_TYPE_BACKGROUND_M 0x00000004
- #define WMI_PEER_ACTIVE_TRAFFIC_TYPE_BACKGROUND_S 2
- /* bits 3-15 are reserved for new non-interactive traffic types */
- #define WMI_PEER_ACTIVE_TRAFFIC_TYPE_GAMING_M 0x00010000
- #define WMI_PEER_ACTIVE_TRAFFIC_TYPE_GAMING_S 16
- #define WMI_PEER_ACTIVE_TRAFFIC_TYPE_VOIP_M 0x00020000
- #define WMI_PEER_ACTIVE_TRAFFIC_TYPE_VOIP_S 17
- #define WMI_PEER_ACTIVE_TRAFFIC_TYPE_VIDEO_CONF_M 0x00040000
- #define WMI_PEER_ACTIVE_TRAFFIC_TYPE_VIDEO_CONF_S 18
- /* bits 19-31 are reserved for new interactive traffic types */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_active_traffic_map_cmd_fixed_param */
- A_UINT32 vdev_id;
- wmi_mac_addr peer_macaddr; /* peer MAC address */
- /* active_traffic_map:
- * This field is a bitmap showing traffic types known to be currently
- * present within the vdev.
- * Refer to the WMI_PEER_ACTIVE_TRAFFIC_ definitions that specify which
- * bits within the bitmap correspond to which traffic types.
- */
- A_UINT32 active_traffic_map;
- } wmi_peer_active_traffic_map_cmd_fixed_param;
- /*
- * WMI_REQUEST_OPM_STATS_CMDID triggered by host to collect OPM stats for trafic types identified by STC
- * in respose this FW will send OEM_respose_event_id WMI_OEM_DATA_CMD_OPM_STATS
- *
- */
- typedef struct {
- A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_request_opm_stats_cmd_fixed_param */
- A_UINT32 pdev_id; /** pdev_id for identifying the MAC */
- } wmi_request_opm_stats_cmd_fixed_param;
- /* wmi command to suspend SAP vdev */
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_set_ap_suspend_resume_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id; /* If 0xFF, find vdevs corresponding to MLD MAC address */
- wmi_mac_addr mld_mac_address; /* MLD MAC address */
- A_UINT32 is_ap_suspend; /* 1 = suspend, 0 = resume */
- } wmi_set_ap_suspend_resume_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_mgmt_srng_reap_event_fixed_param */
- A_UINT32 tlv_header;
- /** timestamp_tp_update_ms:
- * This indicates the last time the tail pointer was updated by FW
- * after filling MGMT SRNG entry.
- * The timestamp is from the FW CPU's internal clock, in milliseconds units.
- */
- A_UINT32 timestamp_tp_update_ms;
- /** This indicates the position of the tail pointer as last updated by FW */
- A_UINT32 tail_pointer;
- } wmi_mgmt_srng_reap_event_fixed_param;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_mlo_peer_tid_to_link_map_event_fixed_param */
- A_UINT32 tlv_header;
- /* status takes values from WMI_MLO_TID_TO_LINK_MAP_STATUS */
- A_UINT32 status;
- /* Vdev_id on which T2LM command request is received */
- A_UINT32 vdev_id;
- } wmi_mlo_peer_tid_to_link_map_event_fixed_param;
- /* ADD NEW DEFS HERE */
- // {
- /*****************************************************************************
- * The following structures are deprecated. DO NOT USE THEM!
- */
- /** Max number of channels in the schedule. */
- #define OCB_CHANNEL_MAX (5)
- /* NOTE: Make sure these data structures are identical to those
- * defined in sirApi.h */
- typedef struct
- {
- /** Arbitration Inter-Frame Spacing. Range: 2-15 */
- A_UINT32 aifsn;
- /** Contention Window minimum. Range: 1 - 10 */
- A_UINT32 cwmin;
- /** Contention Window maximum. Range: 1 - 10 */
- A_UINT32 cwmax;
- } wmi_qos_params_t;
- typedef struct {
- A_UINT32 tlv_header;
- A_UINT32 vdev_id;
- A_UINT32 tidmap; /* Bitmap specifying the TIDs for which prohibit would be set/unset */
- A_UINT32 prohibit_enable; /* 0 for Disable, 1 for Enable */
- } wmi_vdev_param_enable_sr_prohibit_fixed_param;
- typedef struct
- {
- /** Channel frequency in MHz */
- A_UINT32 chan_freq;
- /** Channel duration in ms */
- A_UINT32 duration;
- /** Start guard interval in ms */
- A_UINT32 start_guard_interval;
- /** End guard interval in ms */
- A_UINT32 end_guard_interval;
- /** Transmit power in dBm, range 0 - 23 */
- A_UINT32 tx_power;
- /** Transmit datarate in Mbps */
- A_UINT32 tx_rate;
- /** QoS parameters for each AC */
- wmi_qos_params_t qos_params[WLAN_MAX_AC];
- /** 1 to enable RX stats for this channel, 0 otherwise */
- A_UINT32 rx_stats;
- } wmi_ocb_channel_t;
- typedef struct {
- /** TLV tag and len; tag equals
- * WMITLV_TAG_STRUC_wmi_ocb_set_sched_cmd_fixed_param */
- A_UINT32 tlv_header;
- /* VDEV identifier */
- A_UINT32 vdev_id;
- /** Number of valid channels in the channels array */
- A_UINT32 num_channels;
- /** The array of channels */
- wmi_ocb_channel_t channels[OCB_CHANNEL_MAX];
- /** 1 to allow off-channel tx, 0 otherwise */
- A_UINT32 off_channel_tx; /* Not supported */
- } wmi_ocb_set_sched_cmd_fixed_param;
- typedef struct {
- /** Return status. 0 for success, non-zero otherwise */
- A_UINT32 status;
- } wmi_ocb_set_sched_event_fixed_param;
- /*****************************************************************************
- * END DEPRECATED
- */
- // }
- /* ADD NEW DEFS ABOVE THIS DEPRECATED SECTION */
- #ifdef __cplusplus
- }
- #endif
- #endif /*_WMI_UNIFIED_H_*/
- /**@}*/
|