qca_vendor.h 530 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /**
  19. * DOC: declares vendor commands interfacing with linux kernel
  20. */
  21. #ifndef _WLAN_QCA_VENDOR_H_
  22. #define _WLAN_QCA_VENDOR_H_
  23. /* Vendor id to be used in vendor specific command and events
  24. * to user space.
  25. * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
  26. * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
  27. * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
  28. * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
  29. */
  30. #define QCA_NL80211_VENDOR_ID 0x001374
  31. #ifndef BIT
  32. #define BIT(x) (1U << (x))
  33. #endif
  34. /**
  35. * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
  36. *
  37. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
  38. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
  39. * Sub commands 2 to 8 are not used
  40. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
  41. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
  42. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
  43. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  44. * NAN Request/Response and NAN Indication messages. These messages are
  45. * interpreted between the framework and the firmware component. While
  46. * sending the command from userspace to the driver, payload is not
  47. * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
  48. * is used when receiving vendor events in userspace from the driver.
  49. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
  50. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
  51. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
  52. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
  53. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
  54. * results
  55. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
  56. * results
  57. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
  58. * results
  59. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
  60. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
  61. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
  62. * channels
  63. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
  64. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
  65. * results
  66. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
  67. * available. Used when report_threshold is reached in scan cache.
  68. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
  69. * result. Used to report scan results when each probe rsp. is received,
  70. * if report_events enabled in wifi_scan_cmd_params.
  71. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
  72. * Indicates progress of scanning state-machine.
  73. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
  74. * ap found
  75. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
  76. * bssid
  77. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
  78. * hotlist bssid
  79. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
  80. * change
  81. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
  82. * significant change
  83. * ap found
  84. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
  85. * significant change
  86. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
  87. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
  88. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
  89. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
  90. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  91. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  92. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  93. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  94. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  95. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  96. * roaming and auth information.
  97. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  98. *
  99. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  100. * invoke the ACS function in device and pass selected channels to
  101. * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
  102. *
  103. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  104. * driver.
  105. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  106. * started CAC on DFS channel
  107. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  108. * completed the CAC check on DFS channel
  109. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  110. * check was aborted by the driver
  111. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  112. * driver completed NOP
  113. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  114. * driver detected radar signal on the current operating channel
  115. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  116. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  117. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  118. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  119. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  120. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  121. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  122. * extscan reset ssid hotlist
  123. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  124. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  125. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  126. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  127. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  128. * reset passpoint list
  129. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  130. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  131. * passpoint network found
  132. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  133. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  134. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  135. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  136. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  137. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  138. list
  139. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  140. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
  141. * to the host driver. This command sets the band through either
  142. * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
  143. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
  144. * refers enum qca_set_band as unsigned integer values and
  145. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
  146. * values. Also, the acceptable values for
  147. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
  148. * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
  149. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
  150. * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
  151. * implementations configure using both the attributes, the configurations
  152. * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
  153. * precedence.
  154. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  155. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  156. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  157. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  158. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  159. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  160. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  161. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  162. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  163. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  164. * start the P2P Listen Offload function in device and pass the listen
  165. * channel, period, interval, count, number of device types, device
  166. * types and vendor information elements to device driver and firmware.
  167. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  168. * indicate stop request/response of the P2P Listen Offload function in
  169. * device. As an event, it indicates either the feature stopped after it
  170. * was already running or feature has actually failed to start.
  171. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  172. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  173. * beaconing, this sub command provides the driver, the frequencies on the
  174. * 5 GHz to check for any radar activity. Driver selects one channel from
  175. * this priority list provided through
  176. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  177. * to check for radar activity on it. If no radar activity is detected
  178. * during the channel availability check period, driver internally switches
  179. * to the selected frequency of operation. If the frequency is zero, driver
  180. * internally selects a channel. The status of this conditional switch is
  181. * indicated through an event using the same sub command through
  182. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  183. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  184. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  185. * indication period and threshold for MAC layer counters.
  186. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  187. * in the host driver. The different TDLS configurations are defined
  188. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  189. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  190. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  191. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  192. * require methods to set SAR limits on TX power of WLAN/WWAN.
  193. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  194. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  195. * configuration of vendor ACS.
  196. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  197. * requisite information leading to a power save failure. The information
  198. * carried as part of this event is represented by the
  199. * enum qca_attr_chip_power_save_failure attributes.
  200. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  201. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  202. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  203. * statistics are represented by the enum qca_attr_nud_stats_get
  204. * attributes.
  205. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  206. * the BSS transition status, whether accept or reject, for a list of
  207. * candidate BSSIDs provided by the userspace. This uses the vendor
  208. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  209. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  210. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  211. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  212. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  213. * the driver shall specify array of
  214. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  215. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  216. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  217. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  218. * specific QCA module. The trace levels are represented by
  219. * enum qca_attr_trace_level attributes.
  220. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  221. * Protocol antenna limit in different modes. See enum
  222. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  223. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  224. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  225. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  226. * identifying the operation in success case. In failure cases an
  227. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  228. * describing the reason for the failure is returned.
  229. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  230. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  231. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  232. * be stopped.
  233. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  234. * specific interface. This can be used to modify some of the low level
  235. * scan parameters (off channel dwell time, home channel time) in the
  236. * driver/firmware. These parameters are maintained within the host
  237. * driver.
  238. * This command is valid only when the interface is in the connected
  239. * state.
  240. * These scan parameters shall be reset by the driver/firmware once
  241. * disconnected. The attributes used with this command are defined in
  242. * enum qca_wlan_vendor_attr_active_tos.
  243. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  244. * driver has detected an internal failure. This event carries the
  245. * information indicating the reason that triggered this detection. The
  246. * attributes for this command are defined in
  247. * enum qca_wlan_vendor_attr_hang.
  248. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  249. * of spectral parameters used. The spectral scan parameters are specified
  250. * by enum qca_wlan_vendor_attr_spectral_scan.
  251. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  252. * for spectral scan functionality. The debug stats are specified by
  253. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  254. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  255. * scan system capabilities. The capabilities are specified
  256. * by enum qca_wlan_vendor_attr_spectral_cap.
  257. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  258. * status of spectral scan. The status values are specified
  259. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  260. * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
  261. * peer pending packets. Specify the peer MAC address in
  262. * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
  263. * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
  264. * in enum qca_wlan_vendor_attr_flush_pending.
  265. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  266. * RF Operating Parameter (RROP) information. The attributes for this
  267. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  268. * intended for use by external Auto Channel Selection applications.
  269. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  270. * (SAR) power limits. This is a companion to the command
  271. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  272. * settings currently in use. The attributes returned by this command are
  273. * defined by enum qca_vendor_attr_sar_limits.
  274. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  275. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  276. * This works both as a query (user space asks the current mode) or event
  277. * interface (driver advertizing the current mode to the user space).
  278. * Driver does not trigger this event for temporary hardware mode changes.
  279. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  280. * channel change etc ) are updated with this event. Attributes for this
  281. * interface are defined in enum qca_wlan_vendor_attr_mac.
  282. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  283. * per peer per TID. Attributes for this command are define in
  284. * enum qca_wlan_set_qdepth_thresh_attr
  285. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
  286. * guide for WLAN driver. Request to suspend of driver and FW if the
  287. * temperature is higher than the suspend threshold; resume action is
  288. * requested to driver if the temperature is lower than the resume
  289. * threshold. In user poll mode, request temperature data by user. For test
  290. * purpose, getting thermal shutdown configuration parameters is needed.
  291. * Attributes for this interface are defined in
  292. * enum qca_wlan_vendor_attr_thermal_cmd.
  293. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
  294. * driver. Thermal temperature and indication of resume completion are
  295. * reported as thermal events. The attributes for this command are defined
  296. * in enum qca_wlan_vendor_attr_thermal_event.
  297. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  298. * test configuration. Attributes for this command are defined in
  299. * enum qca_wlan_vendor_attr_wifi_test_config.
  300. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  301. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  302. * carried a payload which was a binary blob of data. The command was not
  303. * extendable to send more information. The newer version carries the
  304. * legacy blob encapsulated within an attribute and can be extended with
  305. * additional vendor attributes that can enhance the NAN command
  306. * interface.
  307. * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
  308. * configure parameters per peer to capture Channel Frequency Response
  309. * (CFR) and enable Periodic CFR capture. The attributes for this command
  310. * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
  311. * can also be used to send CFR data from the driver to userspace when
  312. * netlink events are used to send CFR data.
  313. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  314. * The returned firmware state is specified in the attribute
  315. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  316. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  317. * is used by host driver to flush per-peer cached statistics to user space
  318. * application. This interface is used as an event from host driver to
  319. * user space application. Attributes for this event are specified in
  320. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  321. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  322. * sent as event from host driver.
  323. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  324. * improve the success rate of Zigbee joining network.
  325. * Due to PTA master limitation, zigbee joining network success rate is
  326. * low while wlan is working. Wlan host driver need to configure some
  327. * parameters including Zigbee state and specific WLAN periods to enhance
  328. * PTA master. All this parameters are delivered by the NetLink attributes
  329. * defined in "enum qca_mpta_helper_vendor_attr".
  330. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  331. * implement Beacon frame reporting feature.
  332. *
  333. * Userspace can request the driver/firmware to periodically report
  334. * received Beacon frames whose BSSID is same as the current connected
  335. * BSS's MAC address.
  336. *
  337. * In case the STA seamlessly (without sending disconnect indication to
  338. * userspace) roams to a different BSS, Beacon frame reporting will be
  339. * automatically enabled for the Beacon frames whose BSSID is same as the
  340. * MAC address of the new BSS. Beacon reporting will be stopped when the
  341. * STA is disconnected (when the disconnect indication is sent to
  342. * userspace) and need to be explicitly enabled by userspace for next
  343. * connection.
  344. *
  345. * When a Beacon frame matching configured conditions is received, and if
  346. * userspace has requested to send asynchronous beacon reports, the
  347. * driver/firmware will encapsulate the details of the Beacon frame in an
  348. * event and send it to userspace along with updating the BSS information
  349. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  350. * scan cache with the information from the received Beacon frame but
  351. * will not send any active report to userspace.
  352. *
  353. * The userspace can request the driver/firmware to stop reporting Beacon
  354. * frames. If the driver/firmware is not able to receive Beacon frames
  355. * due to other Wi-Fi operations such as off-channel activities, etc.,
  356. * the driver/firmware will send a pause event to userspace and stop
  357. * reporting Beacon frames. Whether the beacon reporting will be
  358. * automatically resumed or not by the driver/firmware later will be
  359. * reported to userspace using the
  360. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  361. * reporting shall be resumed for all the cases except either when
  362. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  363. * in the command which triggered the current beacon reporting or during
  364. * any disconnection case as indicated by setting
  365. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  366. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  367. * driver.
  368. *
  369. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  370. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  371. * flag not set, the next first
  372. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  373. * shall be considered as un-pause event.
  374. *
  375. * All the attributes used with this command are defined in
  376. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  377. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  378. * interop issues with the DUT. This sub command is used to transfer the
  379. * ap info between driver and user space. This works both as a command
  380. * or event. As a command, it configs the stored list of aps from user
  381. * space to firmware; as an event, it indicates the ap info detected by
  382. * firmware to user space for persistent storage. The attributes defined
  383. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  384. * parameters.
  385. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  386. * binary blobs from application/service to firmware. The attributes
  387. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  388. * deliver the parameters.
  389. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
  390. * to send/receive avoid frequency data using
  391. * enum qca_wlan_vendor_attr_avoid_frequency_ext.
  392. * This new command is alternative to existing command
  393. * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  394. * is using stream of bytes instead of structured data using vendor
  395. * attributes.
  396. * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
  397. * add the STA node details in driver/firmware. Attributes for this event
  398. * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  399. * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
  400. * coex chain mode from application/service.
  401. * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
  402. * to deliver the parameters.
  403. * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
  404. * get information of a station from driver to userspace. This command can
  405. * be used in both STA and AP modes. For STA mode, it provides information
  406. * of the current association when in connected state or the last
  407. * association when in disconnected state. For AP mode, only information
  408. * of the currently connected stations is available. This command uses
  409. * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
  410. * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
  411. * Host drivers can request the user space entity to set the SAR power
  412. * limits with this event. Accordingly, the user space entity is expected
  413. * to set the SAR power limits. Host drivers can retry this event to the
  414. * user space for the SAR power limits configuration from user space. If
  415. * the driver does not get the SAR power limits from user space for all
  416. * the retried attempts, it can configure a default SAR power limit.
  417. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
  418. * is used to update the information about the station from the driver to
  419. * userspace. Uses attributes from enum
  420. * qca_wlan_vendor_attr_update_sta_info.
  421. *
  422. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
  423. * The host driver initiates the disconnection for scenarios such as beacon
  424. * miss, NUD failure, peer kick out, etc. The disconnection indication
  425. * through cfg80211_disconnected() expects the reason codes from enum
  426. * ieee80211_reasoncode which does not signify these various reasons why
  427. * the driver has triggered the disconnection. This event will be used to
  428. * send the driver specific reason codes by the host driver to userspace.
  429. * Host drivers should trigger this event and pass the respective reason
  430. * code immediately prior to triggering cfg80211_disconnected(). The
  431. * attributes used with this event are defined in enum
  432. * qca_wlan_vendor_attr_driver_disconnect_reason.
  433. *
  434. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
  435. * add/delete TSPEC for each AC. One command is for one specific AC only.
  436. * This command can only be used in STA mode and the STA must be
  437. * associated with an AP when the command is issued. Uses attributes
  438. * defined in enum qca_wlan_vendor_attr_config_tspec.
  439. *
  440. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
  441. * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
  442. *
  443. * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
  444. * the host driver. The band configurations obtained are referred through
  445. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
  446. *
  447. * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
  448. * assessment.
  449. * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
  450. *
  451. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  452. * used to update SSID information in hostapd when it is updated in the
  453. * driver. Uses the attribute NL80211_ATTR_SSID.
  454. *
  455. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
  456. * the driver to send opaque data from the firmware to userspace. The
  457. * driver sends an event to userspace whenever such data is received from
  458. * the firmware.
  459. *
  460. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
  461. * send this opaque data for this event.
  462. *
  463. * The format of the opaque data is specific to the particular firmware
  464. * version and there is no guarantee of the format remaining same.
  465. *
  466. * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
  467. * The host driver selects Tx VDEV, and notifies user. The attributes
  468. * used with this event are defined in enum
  469. * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
  470. *
  471. * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY: Vendor command to
  472. * configure the concurrent session policies when multiple STA interfaces
  473. * are (getting) active. The attributes used by this command are defined
  474. * in enum qca_wlan_vendor_attr_concurrent_sta_policy.
  475. *
  476. * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
  477. * to query usable channels for different interface types such as STA,
  478. * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
  479. * channels in the response based on country code, different static
  480. * configurations, concurrency combinations, etc. The attributes used
  481. * with this command are defined in
  482. * enum qca_wlan_vendor_attr_usable_channels.
  483. *
  484. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
  485. * to get DFS radar history from the driver to userspace. The driver
  486. * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
  487. * array of nested entries.
  488. * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
  489. * enable/disable mDNS offload to the firmware. The attributes used with
  490. * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
  491. *
  492. * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
  493. * important debug events that are required for various issues. The
  494. * attributes used with this command are defined in
  495. * enum qca_wlan_vendor_attr_diag.
  496. */
  497. enum qca_nl80211_vendor_subcmds {
  498. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  499. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  500. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  501. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  502. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  503. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  504. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  505. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  506. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  507. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  508. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  509. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  510. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  511. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  512. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  513. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  514. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  515. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  516. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  517. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  518. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  519. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  520. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  521. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  522. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  523. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  524. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  525. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  526. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  527. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  528. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  529. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  530. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  531. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  532. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  533. /* Get Concurrency Matrix */
  534. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  535. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  536. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  537. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  538. /* Deprecated */
  539. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  540. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  541. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  542. /* Off loaded DFS events */
  543. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  544. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  545. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  546. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  547. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  548. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  549. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  550. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  551. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  552. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  553. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  554. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  555. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  556. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  557. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  558. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  559. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  560. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  561. /* Wi-Fi Configuration subcommands */
  562. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  563. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  564. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  565. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  566. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  567. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  568. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  569. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  570. /* NS Offload enable/disable cmd */
  571. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  572. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  573. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  574. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  575. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  576. /* OCB commands */
  577. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  578. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  579. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  580. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  581. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  582. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  583. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  584. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  585. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  586. /* subcommand to get link properties */
  587. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  588. /* LFR Subnet Detection */
  589. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  590. /* DBS subcommands */
  591. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  592. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  593. /* Vendor setband command */
  594. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  595. /* Vendor scan commands */
  596. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  597. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  598. /* OTA test subcommand */
  599. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  600. /* Tx power scaling subcommands */
  601. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  602. /* Tx power scaling in db subcommands */
  603. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  604. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  605. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  606. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  607. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  608. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  609. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  610. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  611. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  612. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  613. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  614. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  615. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  616. /* FTM/indoor location subcommands */
  617. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  618. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  619. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  620. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  621. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  622. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  623. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  624. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  625. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  626. /* Encrypt/Decrypt command */
  627. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  628. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  629. /* DMG low level RF sector operations */
  630. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  631. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  632. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  633. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  634. /* Configure the TDLS mode from user space */
  635. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  636. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  637. /* Vendor abort scan command */
  638. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  639. /* Set Specific Absorption Rate(SAR) Power Limits */
  640. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  641. /* External Auto channel configuration setting */
  642. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  643. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  644. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  645. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  646. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  647. /* Set the trace level for QDF */
  648. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  649. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  650. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  651. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  652. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  653. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  654. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  655. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  656. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  657. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  658. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  659. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  660. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  661. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  662. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  663. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  664. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  665. /* Wi-Fi test configuration subcommand */
  666. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  667. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  668. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  669. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  670. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  671. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  672. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  673. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  674. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  675. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  676. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  677. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  678. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  679. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  680. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  681. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  682. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  683. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  684. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  685. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  686. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  687. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  688. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  689. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  690. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  691. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY = 197,
  692. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  693. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  694. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  695. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  696. };
  697. enum qca_wlan_vendor_tos {
  698. QCA_WLAN_VENDOR_TOS_BK = 0,
  699. QCA_WLAN_VENDOR_TOS_BE = 1,
  700. QCA_WLAN_VENDOR_TOS_VI = 2,
  701. QCA_WLAN_VENDOR_TOS_VO = 3,
  702. };
  703. /**
  704. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  705. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  706. */
  707. enum qca_wlan_vendor_attr_active_tos {
  708. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  709. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  710. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  711. /* Flag attribute representing the start (attribute included) or stop
  712. * (attribute not included) of the respective TOS.
  713. */
  714. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  715. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  716. };
  717. enum qca_wlan_vendor_hang_reason {
  718. /* Unspecified reason */
  719. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  720. /* No Map for the MAC entry for the received frame */
  721. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  722. /* peer deletion timeout happened */
  723. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  724. /* peer unmap timeout */
  725. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  726. /* Scan request timed out */
  727. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  728. /* Consecutive Scan attempt failures */
  729. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  730. /* Unable to get the message buffer */
  731. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  732. /* Current command processing is timedout */
  733. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  734. /* Timeout for an ACK from FW for suspend request */
  735. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  736. /* Timeout for an ACK from FW for resume request */
  737. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  738. /* Transmission timeout for consecutive data frames */
  739. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  740. /* Timeout for the TX completion status of data frame */
  741. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  742. /* DXE failure for tx/Rx, DXE resource unavailability */
  743. QCA_WLAN_HANG_DXE_FAILURE = 12,
  744. /* WMI pending commands exceed the maximum count */
  745. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  746. /* Timeout for peer STA connection accept command's response from the
  747. * FW in AP mode. This command is triggered when a STA (peer) connects
  748. * to AP (DUT).
  749. */
  750. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  751. /* Timeout for the AP connection accept command's response from the FW
  752. * in STA mode. This command is triggered when the STA (DUT) connects
  753. * to an AP (peer).
  754. */
  755. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  756. /* Timeout waiting for the response to the MAC HW mode change command
  757. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  758. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  759. * Channel Concurrency) mode.
  760. */
  761. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  762. /* Timeout waiting for the response from FW to configure the MAC HW's
  763. * mode. This operation is to configure the single/two MACs in either
  764. * SCC/MCC/DBS mode.
  765. */
  766. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  767. /* Timeout waiting for response of VDEV start command from the FW */
  768. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  769. /* Timeout waiting for response of VDEV restart command from the FW */
  770. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  771. /* Timeout waiting for response of VDEV stop command from the FW */
  772. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  773. /* Timeout waiting for response of VDEV delete command from the FW */
  774. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  775. /* Timeout waiting for response of peer all delete request command to
  776. * the FW on a specific VDEV.
  777. */
  778. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  779. /* WMI sequence mismatch between WMI command and Tx completion */
  780. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  781. /* Write to Device HAL register failed */
  782. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  783. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  784. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  785. /* Bus failure */
  786. QCA_WLAN_HANG_BUS_FAILURE = 26,
  787. /* tasklet/credit latency found */
  788. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  789. };
  790. /**
  791. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  792. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  793. */
  794. enum qca_wlan_vendor_attr_hang {
  795. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  796. /*
  797. * Reason for the Hang - Represented by enum
  798. * qca_wlan_vendor_hang_reason.
  799. */
  800. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  801. /* The binary blob data associated with the hang reason specified by
  802. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  803. * contain the required dump to analyze the reason for the hang.
  804. * NLA_BINARY attribute, the max size is 1024 bytes.
  805. */
  806. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  807. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  808. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  809. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  810. };
  811. /**
  812. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  813. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  814. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  815. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  816. level needs to be updated.
  817. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  818. * to be set.
  819. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  820. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  821. */
  822. enum qca_vendor_attr_set_trace_level {
  823. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  824. /*
  825. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  826. * attributes.
  827. */
  828. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  829. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  830. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  831. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  832. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  833. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  834. };
  835. /**
  836. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  837. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  838. * station information. The information obtained through these
  839. * commands signify the current info in connected state and
  840. * latest cached information during the connected state , if queried
  841. * when in disconnected state.
  842. *
  843. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  844. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  845. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  846. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  847. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  848. */
  849. enum qca_wlan_vendor_attr_get_station {
  850. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  851. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  852. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  853. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  854. /* keep last */
  855. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  856. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  857. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  858. };
  859. /**
  860. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  861. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  862. *
  863. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  864. * Used in STA mode. This attribute represents the list of channel center
  865. * frequencies in MHz (u32) the station has learnt during the last connection
  866. * or roaming attempt. This information shall not signify the channels for
  867. * an explicit scan request from the user space. Host drivers can update this
  868. * information to the user space in both connected and disconnected state.
  869. * In the disconnected state this information shall signify the channels
  870. * scanned in the last connection/roam attempt that lead to the disconnection.
  871. */
  872. enum qca_wlan_vendor_attr_update_sta_info {
  873. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  874. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  875. /* keep last */
  876. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  877. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  878. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  879. };
  880. /**
  881. * enum qca_wlan_802_11_mode - dot11 mode
  882. * @QCA_WLAN_802_11_MODE_11B: mode B
  883. * @QCA_WLAN_802_11_MODE_11G: mode G
  884. * @QCA_WLAN_802_11_MODE_11N: mode N
  885. * @QCA_WLAN_802_11_MODE_11A: mode A
  886. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  887. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  888. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  889. */
  890. enum qca_wlan_802_11_mode {
  891. QCA_WLAN_802_11_MODE_11B,
  892. QCA_WLAN_802_11_MODE_11G,
  893. QCA_WLAN_802_11_MODE_11N,
  894. QCA_WLAN_802_11_MODE_11A,
  895. QCA_WLAN_802_11_MODE_11AC,
  896. QCA_WLAN_802_11_MODE_11AX,
  897. QCA_WLAN_802_11_MODE_INVALID,
  898. };
  899. /**
  900. * enum qca_wlan_auth_type - Authentication key management type
  901. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  902. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  903. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  904. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  905. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  906. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  907. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  908. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  909. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  910. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  911. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  912. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  913. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  914. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  915. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  916. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  917. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  918. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  919. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  920. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  921. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  922. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  923. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  924. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  925. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  926. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  927. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  928. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  929. */
  930. enum qca_wlan_auth_type {
  931. QCA_WLAN_AUTH_TYPE_INVALID,
  932. QCA_WLAN_AUTH_TYPE_OPEN,
  933. QCA_WLAN_AUTH_TYPE_SHARED,
  934. QCA_WLAN_AUTH_TYPE_WPA,
  935. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  936. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  937. QCA_WLAN_AUTH_TYPE_RSN,
  938. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  939. QCA_WLAN_AUTH_TYPE_FT,
  940. QCA_WLAN_AUTH_TYPE_FT_PSK,
  941. QCA_WLAN_AUTH_TYPE_SHA256,
  942. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  943. QCA_WLAN_AUTH_TYPE_WAI,
  944. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  945. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  946. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  947. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  948. QCA_WLAN_AUTH_TYPE_FT_SAE,
  949. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  950. QCA_WLAN_AUTH_TYPE_SAE,
  951. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  952. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  953. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  954. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  955. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  956. QCA_WLAN_AUTH_TYPE_OWE,
  957. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  958. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  959. };
  960. /**
  961. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  962. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  963. *
  964. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  965. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  966. * Get the standard NL attributes Nested with this attribute.
  967. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  968. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  969. * NL80211_ATTR_STA_INFO
  970. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  971. * Get the standard NL attributes Nested with this attribute.
  972. * Ex : Query HT/VHT Capability advertized by the AP.
  973. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  974. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  975. * Number of successful Roam attempts before a
  976. * disconnect, Unsigned 32 bit value
  977. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  978. * Authentication Key Management Type used for the connected session.
  979. * Signified by enum qca_wlan_auth_type
  980. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  981. * connected Session, signified by enum qca_wlan_802_11_mode
  982. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  983. * HS20 Indication Element
  984. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  985. * Status Code Corresponding to the Association Failure.
  986. * Unsigned 32 bit value.
  987. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  988. * Max phy rate of remote station
  989. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  990. * TX packets to remote station
  991. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  992. * TX bytes to remote station
  993. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  994. * RX packets from remote station
  995. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  996. * RX bytes from remote station
  997. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  998. * Last TX rate with remote station
  999. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1000. * Last RX rate with remote station
  1001. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1002. * Remote station enable/disable WMM
  1003. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1004. * Remote station connection mode
  1005. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1006. * Remote station AMPDU enable/disable
  1007. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1008. * Remote station TX Space-time block coding enable/disable
  1009. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1010. * Remote station RX Space-time block coding enable/disable
  1011. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1012. * Remote station channel width
  1013. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1014. * Remote station short GI enable/disable
  1015. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1016. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1017. * containing the raw information elements from Beacon frames. Represents
  1018. * the Beacon frames of the current BSS in the connected state. When queried
  1019. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1020. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1021. * disconnect reason for the last disconnection if the disconnection is
  1022. * triggered from the host driver. The values are referred from
  1023. * enum qca_disconnect_reason_codes. If the disconnect is from
  1024. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1025. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1026. * Applicable in AP mode only. It contains the raw information elements
  1027. * from assoc request frame of the given peer station. User queries with the
  1028. * mac address of peer station when it disconnects. Host driver sends
  1029. * assoc request frame of the given station. Host driver doesn't provide
  1030. * the IEs when the peer station is still in connected state.
  1031. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1032. * sending HE operation info.
  1033. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1034. *
  1035. */
  1036. enum qca_wlan_vendor_attr_get_station_info {
  1037. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1038. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1039. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1040. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1041. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1042. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1043. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1044. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1045. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1046. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1047. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1048. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1049. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1050. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1051. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1052. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1053. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1054. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1055. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1056. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1057. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1058. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1059. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1060. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1061. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1062. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1063. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1064. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1065. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1066. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1067. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1068. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1069. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1070. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1071. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1072. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1073. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1074. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1075. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1076. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1077. /* keep last */
  1078. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1079. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1080. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1081. };
  1082. /**
  1083. * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
  1084. *
  1085. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
  1086. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
  1087. * value
  1088. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
  1089. * keep as unsigned for now
  1090. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
  1091. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
  1092. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
  1093. * in KBPS
  1094. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
  1095. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
  1096. */
  1097. enum qca_wlan_vendor_attr_tdls_enable {
  1098. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  1099. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
  1100. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
  1101. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
  1102. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
  1103. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
  1104. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  1105. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  1106. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  1107. };
  1108. /**
  1109. * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
  1110. *
  1111. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
  1112. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
  1113. * 8-bit value
  1114. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
  1115. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
  1116. */
  1117. enum qca_wlan_vendor_attr_tdls_disable {
  1118. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  1119. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
  1120. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  1121. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  1122. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  1123. };
  1124. /**
  1125. * qca_chip_power_save_failure_reason: Power save failure reason
  1126. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1127. * due to protocol/module.
  1128. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1129. * due to hardware
  1130. */
  1131. enum qca_chip_power_save_failure_reason {
  1132. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1133. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1134. };
  1135. /**
  1136. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1137. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1138. * information leading to the power save failure.
  1139. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1140. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1141. * represented by enum qca_chip_power_save_failure_reason
  1142. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1143. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1144. */
  1145. enum qca_attr_chip_power_save_failure {
  1146. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1147. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1148. /* keep last */
  1149. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1150. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1151. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1152. };
  1153. /**
  1154. * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
  1155. *
  1156. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
  1157. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
  1158. * 8-bit value
  1159. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
  1160. * unsigned 32-bit value
  1161. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
  1162. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
  1163. * unsigned 32-bit value
  1164. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
  1165. * class, unsigned 32-bit value
  1166. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
  1167. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
  1168. */
  1169. enum qca_wlan_vendor_attr_tdls_get_status {
  1170. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  1171. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
  1172. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
  1173. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
  1174. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
  1175. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
  1176. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  1177. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  1178. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  1179. };
  1180. /**
  1181. * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
  1182. *
  1183. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
  1184. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
  1185. * 8-bit value
  1186. * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
  1187. * unsigned 32-bit value
  1188. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
  1189. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
  1190. * unsigned 32-bit value
  1191. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
  1192. * operating class, unsigned 32-bit value
  1193. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
  1194. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
  1195. */
  1196. enum qca_wlan_vendor_attr_tdls_state {
  1197. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  1198. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
  1199. QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
  1200. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
  1201. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
  1202. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
  1203. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  1204. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  1205. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  1206. };
  1207. /* enum's to provide TDLS capabilities */
  1208. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1209. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1210. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1211. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1212. /* keep last */
  1213. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1214. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1215. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1216. };
  1217. enum qca_wlan_vendor_attr {
  1218. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1219. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1220. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1221. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1222. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1223. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1224. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1225. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1226. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1227. /*
  1228. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1229. * by enum qca_roaming_policy.
  1230. */
  1231. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1232. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1233. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1234. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1235. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1236. /*
  1237. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1238. * Unsigned 32-bit value.
  1239. */
  1240. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1241. /* Unsigned 32-bit value */
  1242. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1243. /* Unsigned 32-bit value */
  1244. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1245. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1246. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1247. * is deprecated. Recommendation is to use
  1248. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1249. * using both the attributes, the ones configured through
  1250. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1251. */
  1252. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1253. /* Dummy (NOP) attribute for 64 bit padding */
  1254. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1255. /*
  1256. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1257. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1258. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1259. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1260. */
  1261. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1262. /*
  1263. * Indoor location capabilities, returned by
  1264. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1265. * see enum qca_wlan_vendor_attr_loc_capa.
  1266. */
  1267. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1268. /*
  1269. * Array of nested attributes containing information about each peer
  1270. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1271. * for supported attributes for each peer.
  1272. */
  1273. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1274. /*
  1275. * Array of nested attributes containing measurement results for
  1276. * one or more peers, reported by the
  1277. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1278. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1279. * attributes.
  1280. */
  1281. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1282. /* Flag attribute for enabling or disabling responder functionality. */
  1283. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1284. /*
  1285. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1286. * command to specify the LCI report that will be sent by
  1287. * the responder during a measurement exchange. The format is
  1288. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1289. */
  1290. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1291. /*
  1292. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1293. * command to specify the location civic report that will
  1294. * be sent by the responder during a measurement exchange.
  1295. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1296. */
  1297. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1298. /*
  1299. * Session/measurement completion status code,
  1300. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1301. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1302. * see enum qca_vendor_attr_loc_session_status.
  1303. */
  1304. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1305. /*
  1306. * Initial dialog token used by responder (0 if not specified),
  1307. * unsigned 8 bit value.
  1308. */
  1309. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1310. /*
  1311. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1312. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1313. * AOA measurements are needed as part of an FTM session.
  1314. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1315. * enum qca_wlan_vendor_attr_aoa_type.
  1316. */
  1317. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1318. /*
  1319. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1320. * by indoor location measurements. Refers to the antenna
  1321. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1322. */
  1323. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1324. /*
  1325. * AOA measurement data. Its contents depends on the AOA measurement
  1326. * type and antenna array mask:
  1327. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1328. * phase of the strongest CIR path for each antenna in the measured
  1329. * array(s).
  1330. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1331. * values, phase and amplitude of the strongest CIR path for each
  1332. * antenna in the measured array(s).
  1333. */
  1334. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1335. /*
  1336. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1337. * to specify the chain number (unsigned 32 bit value) to inquire
  1338. * the corresponding antenna RSSI value */
  1339. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1340. /*
  1341. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1342. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1343. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1344. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1345. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1346. /*
  1347. * TSF timer value, unsigned 64 bit value.
  1348. * May be returned by various commands.
  1349. */
  1350. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1351. /*
  1352. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1353. * 0..127 for sector indices or 65535 as special value used to
  1354. * unlock sector selection in
  1355. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1356. */
  1357. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1358. /*
  1359. * DMG RF sector type, unsigned 8 bit value. One of the values
  1360. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1361. */
  1362. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1363. /*
  1364. * Bitmask of DMG RF modules for which information is requested. Each
  1365. * bit corresponds to an RF module with the same index as the bit
  1366. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1367. * all DMG chips currently have up to 8 RF modules.
  1368. */
  1369. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1370. /*
  1371. * Array of nested attributes where each entry is DMG RF sector
  1372. * configuration for a single RF module.
  1373. * Attributes for each entry are taken from enum
  1374. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1375. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1376. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1377. */
  1378. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1379. /*
  1380. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1381. * to report frame aggregation statistics to userspace.
  1382. */
  1383. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1384. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1385. /*
  1386. * Unsigned 8-bit value representing MBO transition reason code as
  1387. * provided by the AP used by subcommand
  1388. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1389. * specified by the userspace in the request to the driver.
  1390. */
  1391. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1392. /*
  1393. * Array of nested attributes, BSSID and status code, used by subcommand
  1394. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1395. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1396. * The userspace space specifies the list/array of candidate BSSIDs in
  1397. * the order of preference in the request. The driver specifies the
  1398. * status code, for each BSSID in the list, in the response. The
  1399. * acceptable candidates are listed in the order preferred by the
  1400. * driver.
  1401. */
  1402. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1403. /*
  1404. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1405. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1406. */
  1407. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1408. /*
  1409. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1410. * to define the number of antennas to use for BRP.
  1411. * different purpose in each ANT_LIMIT_MODE:
  1412. * DISABLE - ignored
  1413. * EFFECTIVE - upper limit to number of antennas to be used
  1414. * FORCE - exact number of antennas to be used
  1415. * unsigned 8 bit value
  1416. */
  1417. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1418. /*
  1419. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1420. * to report the corresponding antenna index to the chain RSSI value
  1421. */
  1422. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1423. /*
  1424. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1425. * to report the specific antenna EVM value (unsigned 32 bit value).
  1426. * With a determinate group of antennas, the driver specifies the
  1427. * EVM value for each antenna ID, and application extract them
  1428. * in user space.
  1429. */
  1430. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1431. /*
  1432. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1433. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1434. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1435. */
  1436. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1437. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1438. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1439. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1440. * This attribute shall consider the bitmask combinations to define
  1441. * the respective Band combinations and always takes precedence over
  1442. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1443. */
  1444. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1445. /* keep last */
  1446. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1447. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1448. };
  1449. enum qca_wlan_vendor_attr_extscan_config_params {
  1450. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1451. /* Unsigned 32-bit value */
  1452. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1453. /*
  1454. * Attributes for data used by
  1455. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1456. */
  1457. /* Unsigned 32-bit value */
  1458. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1459. = 2,
  1460. /* Unsigned 32-bit value */
  1461. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1462. = 3,
  1463. /*
  1464. * Attributes for input params used by
  1465. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1466. */
  1467. /* Unsigned 32-bit value; channel frequency */
  1468. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1469. /* Unsigned 32-bit value; dwell time in ms. */
  1470. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1471. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1472. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1473. /* Unsigned 8-bit value; channel class */
  1474. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1475. /* Unsigned 8-bit value; bucket index, 0 based */
  1476. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1477. /* Unsigned 8-bit value; band. */
  1478. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1479. /* Unsigned 32-bit value; desired period, in ms. */
  1480. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1481. /* Unsigned 8-bit value; report events semantics. */
  1482. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1483. /*
  1484. * Unsigned 32-bit value. Followed by a nested array of
  1485. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1486. */
  1487. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1488. /*
  1489. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1490. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1491. */
  1492. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1493. /* Unsigned 32-bit value; base timer period in ms. */
  1494. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1495. /*
  1496. * Unsigned 32-bit value; number of APs to store in each scan in the
  1497. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1498. */
  1499. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1500. /*
  1501. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1502. * up AP.
  1503. */
  1504. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1505. = 16,
  1506. /*
  1507. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1508. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1509. * of the array is determined by NUM_BUCKETS.
  1510. */
  1511. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1512. /*
  1513. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1514. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1515. */
  1516. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1517. /* Unsigned 8-bit value */
  1518. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1519. = 19,
  1520. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1521. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1522. = 20,
  1523. /* An array of 6 x unsigned 8-bit value */
  1524. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1525. /* Signed 32-bit value */
  1526. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1527. /* Signed 32-bit value */
  1528. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1529. /* Unsigned 32-bit value */
  1530. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1531. /*
  1532. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1533. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1534. * array is determined by NUM_AP.
  1535. */
  1536. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1537. /*
  1538. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1539. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1540. */
  1541. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1542. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1543. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1544. = 27,
  1545. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1546. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1547. = 28,
  1548. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1549. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1550. /*
  1551. * Unsigned 32-bit value; number of APs. Followed by an array of
  1552. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1553. */
  1554. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1555. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1556. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1557. = 31,
  1558. /*
  1559. * Unsigned 32-bit value. If max_period is non zero or different than
  1560. * period, then this bucket is an exponential backoff bucket.
  1561. */
  1562. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1563. /* Unsigned 32-bit value. */
  1564. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1565. /*
  1566. * Unsigned 32-bit value. For exponential back off bucket, number of
  1567. * scans to perform for a given period.
  1568. */
  1569. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1570. /*
  1571. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1572. * many scans.
  1573. */
  1574. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1575. = 35,
  1576. /*
  1577. * Attributes for data used by
  1578. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1579. */
  1580. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1581. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1582. = 36,
  1583. /*
  1584. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1585. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1586. * size of the array is determined by NUM_SSID.
  1587. */
  1588. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1589. /*
  1590. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1591. * attributes.
  1592. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1593. */
  1594. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1595. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1596. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1597. /* Unsigned 8-bit value */
  1598. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1599. /* Signed 32-bit value */
  1600. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1601. /* Signed 32-bit value */
  1602. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1603. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1604. */
  1605. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1606. /* keep last */
  1607. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1608. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1609. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1610. };
  1611. enum qca_wlan_vendor_attr_extscan_results {
  1612. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1613. /*
  1614. * Unsigned 32-bit value; must match the request Id supplied by
  1615. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1616. */
  1617. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1618. /*
  1619. * Unsigned 32-bit value; used to indicate the status response from
  1620. * firmware/driver for the vendor sub-command.
  1621. */
  1622. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1623. /*
  1624. * EXTSCAN Valid Channels attributes */
  1625. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1626. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1627. /*
  1628. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1629. * representing channel numbers.
  1630. */
  1631. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1632. /* EXTSCAN Capabilities attributes */
  1633. /* Unsigned 32-bit value */
  1634. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1635. /* Unsigned 32-bit value */
  1636. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1637. /* Unsigned 32-bit value */
  1638. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1639. = 7,
  1640. /* Unsigned 32-bit value */
  1641. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1642. = 8,
  1643. /* Signed 32-bit value */
  1644. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1645. = 9,
  1646. /* Unsigned 32-bit value */
  1647. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1648. /* Unsigned 32-bit value */
  1649. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1650. = 11,
  1651. /* Unsigned 32-bit value */
  1652. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1653. = 12,
  1654. /*
  1655. * EXTSCAN Attributes used with
  1656. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1657. */
  1658. /* Unsigned 32-bit value */
  1659. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1660. /*
  1661. * EXTSCAN attributes used with
  1662. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1663. */
  1664. /*
  1665. * An array of NUM_RESULTS_AVAILABLE x
  1666. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1667. */
  1668. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1669. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1670. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1671. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1672. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1673. /* An array of 6 x unsigned 8-bit value */
  1674. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1675. /* Unsigned 32-bit value; channel frequency in MHz */
  1676. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1677. /* Signed 32-bit value */
  1678. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1679. /* Unsigned 32-bit value */
  1680. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1681. /* Unsigned 32-bit value */
  1682. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  1683. /* Unsigned 16-bit value */
  1684. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  1685. /* Unsigned 16-bit value */
  1686. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  1687. /* Unsigned 32-bit value; size of the IE DATA blob */
  1688. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  1689. /*
  1690. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  1691. * information elements found in the beacon; this data should be a
  1692. * packed list of wifi_information_element objects, one after the
  1693. * other.
  1694. */
  1695. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  1696. /*
  1697. * Unsigned 8-bit value; set by driver to indicate more scan results are
  1698. * available.
  1699. */
  1700. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  1701. /*
  1702. * EXTSCAN attributes for
  1703. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  1704. */
  1705. /* Unsigned 8-bit value */
  1706. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  1707. /* Unsigned 32-bit value */
  1708. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  1709. /*
  1710. * EXTSCAN attributes for
  1711. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  1712. */
  1713. /*
  1714. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1715. * to indicate number of results.
  1716. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1717. * list of results.
  1718. */
  1719. /*
  1720. * EXTSCAN attributes for
  1721. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  1722. */
  1723. /* An array of 6 x unsigned 8-bit value */
  1724. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  1725. /* Unsigned 32-bit value */
  1726. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  1727. = 30,
  1728. /* Unsigned 32-bit value. */
  1729. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  1730. = 31,
  1731. /*
  1732. * A nested array of signed 32-bit RSSI values. Size of the array is
  1733. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  1734. */
  1735. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  1736. = 32,
  1737. /*
  1738. * EXTSCAN attributes used with
  1739. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  1740. */
  1741. /*
  1742. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1743. * to indicate number of extscan cached results returned.
  1744. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  1745. * the list of extscan cached results.
  1746. */
  1747. /*
  1748. * An array of NUM_RESULTS_AVAILABLE x
  1749. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  1750. */
  1751. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  1752. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  1753. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  1754. /*
  1755. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  1756. */
  1757. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  1758. /*
  1759. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1760. * to indicate number of wifi scan results/bssids retrieved by the scan.
  1761. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1762. * list of wifi scan results returned for each cached result block.
  1763. */
  1764. /*
  1765. * EXTSCAN attributes for
  1766. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  1767. */
  1768. /*
  1769. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  1770. * number of results.
  1771. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  1772. * list of wifi scan results returned for each
  1773. * wifi_passpoint_match_result block.
  1774. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  1775. */
  1776. /*
  1777. * EXTSCAN attributes for
  1778. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  1779. */
  1780. /* Unsigned 32-bit value */
  1781. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  1782. = 36,
  1783. /*
  1784. * A nested array of
  1785. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  1786. * attributes. Array size =
  1787. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  1788. */
  1789. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  1790. /* Unsigned 32-bit value; network block id for the matched network */
  1791. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  1792. /*
  1793. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  1794. * list of wifi scan results returned for each
  1795. * wifi_passpoint_match_result block.
  1796. */
  1797. /* Unsigned 32-bit value */
  1798. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  1799. /*
  1800. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  1801. * ANQP data in the information_element format.
  1802. */
  1803. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  1804. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1805. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  1806. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1807. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  1808. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1809. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  1810. = 43,
  1811. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1812. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  1813. = 44,
  1814. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  1815. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  1816. /* keep last */
  1817. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  1818. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  1819. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  1820. };
  1821. /**
  1822. * enum qca_vendor_interop_issues_ap_type - interop issues type
  1823. * This enum defines the valid set of values of interop issues type. These
  1824. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  1825. *
  1826. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  1827. * when the STA's Qpower feature is enabled.
  1828. */
  1829. enum qca_vendor_interop_issues_ap_type {
  1830. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  1831. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  1832. };
  1833. /**
  1834. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  1835. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  1836. *
  1837. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  1838. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  1839. * 32-bit unsigned value, The type defined in enum
  1840. * qca_vendor_interop_issues_ap_type are used.
  1841. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  1842. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  1843. * it is present and mandatory for the command but is not used for
  1844. * the event since only a single BSSID is reported in an event.
  1845. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  1846. * 6-byte MAC address. It is used within the nested
  1847. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  1848. * and without such encapsulation in the event case.
  1849. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  1850. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  1851. */
  1852. enum qca_vendor_attr_interop_issues_ap {
  1853. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  1854. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  1855. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  1856. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  1857. /* keep last */
  1858. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  1859. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  1860. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  1861. };
  1862. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  1863. /**
  1864. * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
  1865. *
  1866. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
  1867. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
  1868. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
  1869. * Aggresive stats gathering
  1870. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
  1871. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
  1872. */
  1873. enum qca_wlan_vendor_attr_ll_stats_set {
  1874. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  1875. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  1876. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
  1877. /* keep last */
  1878. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  1879. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  1880. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
  1881. };
  1882. /**
  1883. * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
  1884. *
  1885. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
  1886. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
  1887. * provided by the caller issuing the GET stats command. When reporting
  1888. * the stats results, the driver uses the same value to indicate which
  1889. * GET request the results correspond to.
  1890. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
  1891. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  1892. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  1893. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
  1894. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
  1895. */
  1896. enum qca_wlan_vendor_attr_ll_stats_get {
  1897. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  1898. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
  1899. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
  1900. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  1901. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  1902. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
  1903. };
  1904. /**
  1905. * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
  1906. *
  1907. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
  1908. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
  1909. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
  1910. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  1911. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  1912. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
  1913. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
  1914. */
  1915. enum qca_wlan_vendor_attr_ll_stats_clr {
  1916. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  1917. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
  1918. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
  1919. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
  1920. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
  1921. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  1922. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  1923. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
  1924. };
  1925. /**
  1926. * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
  1927. *
  1928. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
  1929. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
  1930. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
  1931. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
  1932. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
  1933. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
  1934. */
  1935. enum qca_wlan_vendor_attr_ll_stats_results_type {
  1936. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
  1937. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
  1938. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
  1939. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
  1940. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
  1941. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
  1942. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
  1943. };
  1944. /**
  1945. * enum qca_wlan_vendor_attr_ll_stats_results - vendor attribute stats results
  1946. *
  1947. * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are nested
  1948. * within the interface stats.
  1949. *
  1950. * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could be nested
  1951. * within the interface stats.
  1952. *
  1953. * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are nested
  1954. * within the interface stats.
  1955. *
  1956. * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* could be nested
  1957. * within the peer info stats.
  1958. *
  1959. * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could be
  1960. * nested within the channel stats.
  1961. *
  1962. * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ could be nested
  1963. * within the radio stats.
  1964. *
  1965. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID: Invalid initial value
  1966. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID: Unsigned 32bit value
  1967. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX: Unsigned 32bit value
  1968. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX: Unsigned 32bit value
  1969. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX: Unsigned 32bit value
  1970. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX: Unsigned 32bit value
  1971. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT: Unsigned 32bit value
  1972. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA: Unsigned 32bit value
  1973. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK: Unsigned 32bit value
  1974. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE: Interface mode, e.g., STA,
  1975. * SOFTAP, IBSS, etc. Type = enum wifi_interface_mode
  1976. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR: Interface MAC address.
  1977. * An array of 6 Unsigned int8_t
  1978. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE:
  1979. * Type = enum wifi_connection_state, e.g., DISCONNECTED, AUTHENTICATING,
  1980. * etc. Valid for STA, CLI only
  1981. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING:
  1982. * Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  1983. * (is that valid for STA only?)
  1984. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES: Unsigned 32bit value.
  1985. * WIFI_CAPABILITY_XXX
  1986. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID: NULL terminated SSID. An
  1987. * array of 33 Unsigned 8bit values
  1988. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID: BSSID. An array of 6
  1989. * Unsigned 8bit values
  1990. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR: Country string
  1991. * advertised by AP. An array of 3 Unsigned 8bit values
  1992. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR: Country string for
  1993. * this association. An array of 3 Unsigned 8bit values
  1994. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC: Type = enum wifi_traffic_ac e.g.
  1995. * V0, VI, BE and BK
  1996. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU: Unsigned int 32 value
  1997. * corresponding to respective AC
  1998. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU: Unsigned int 32 value
  1999. * corresponding to respective AC
  2000. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST: Unsigned int 32 value
  2001. * corresponding to respective AC
  2002. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST: Unsigned int 32 value
  2003. * corresponding to respective AC
  2004. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU: Unsigned int 32 value
  2005. * corresponding to respective AC
  2006. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU: Unsigned int 32 value
  2007. * corresponding to respective AC
  2008. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST: Unsigned int 32 value
  2009. * corresponding to respective AC
  2010. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES: Unsigned int 32 value
  2011. * corresponding to respective AC
  2012. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT: Unsigned int 32 value
  2013. * corresponding to respective AC
  2014. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN: Unsigned int 32
  2015. * value corresponding to respective AC
  2016. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX: Unsigned int 32
  2017. * value corresponding to respective AC
  2018. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG: Unsigned int 32
  2019. * value corresponding to respective AC
  2020. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES: Unsigned int 32
  2021. * value corresponding to respective AC
  2022. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS: Unsigned int 32
  2023. * value corresponding to respective AC
  2024. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE: Type = enum wifi_peer_type
  2025. * Peer type, e.g., STA, AP, P2P GO etc
  2026. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS: MAC addr corresponding
  2027. * to respective peer. An array of 6 Unsigned 8bit values
  2028. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES: Unsigned int 32bit
  2029. * value representing capabilities corresponding to respective peer.
  2030. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES: Unsigned 32bit value.
  2031. * Number of rates
  2032. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE: Unsigned int 8bit value:
  2033. * 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved
  2034. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS: Unsigned int 8bit value:
  2035. * 0:1x1, 1:2x2, 3:3x3, 4:4x4
  2036. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW: Unsigned int 8bit value:
  2037. * 0:20MHz, 1:40Mhz, 2:80Mhz, 3:160Mhz
  2038. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX: Unsigned int 8bit value:
  2039. * OFDM/CCK rate code would be as per IEEE Std in the units of 0.5mbps
  2040. * HT/VHT it would be mcs index
  2041. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE: Unsigned 32bit value.
  2042. * Bit rate in units of 100Kbps
  2043. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU: Unsigned int 32bit value.
  2044. * Number of successfully transmitted data pkts i.e., with ACK received
  2045. * corresponding to the respective rate
  2046. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU: Unsigned int 32bit value.
  2047. * Number of received data pkts corresponding to the respective rate
  2048. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST: Unsigned int 32bit value.
  2049. * Number of data pkts losses, i.e., no ACK received corresponding to
  2050. * the respective rate
  2051. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES: Unsigned int 32bit value.
  2052. * Total number of data pkt retries for the respective rate
  2053. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT: Unsigned int 32bit value.
  2054. * Total number of short data pkt retries for the respective rate
  2055. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG: Unsigned int 32bit value.
  2056. * Total number of long data pkt retries for the respective rate
  2057. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID: Radio id
  2058. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME: Unsigned 32bit value.
  2059. * Total number of msecs the radio is awake accruing over time
  2060. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME: Unsigned 32bit value.
  2061. * Total number of msecs the radio is transmitting accruing over time
  2062. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME: Unsigned 32bit value.
  2063. * Total number of msecs the radio is in active receive accruing over time
  2064. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN: Unsigned 32bit value.
  2065. * Total number of msecs the radio is awake due to all scan accruing
  2066. * over time
  2067. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD: Unsigned 32bit value.
  2068. * Total number of msecs the radio is awake due to NAN accruing over time.
  2069. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN: Unsigned 32bit value.
  2070. * Total number of msecs the radio is awake due to GSCAN accruing over time
  2071. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN: Unsigned 32bit value.
  2072. * Total number of msecs the radio is awake due to roam scan accruing over
  2073. * time.
  2074. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN: Unsigned 32bit value.
  2075. * Total number of msecs the radio is awake due to PNO scan accruing over
  2076. * time.
  2077. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20: Unsigned 32bit value.
  2078. * Total number of msecs the radio is awake due to HS2.0 scans and GAS
  2079. * exchange accruing over time.
  2080. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS: Unsigned 32bit value.
  2081. * Number of channels
  2082. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH:
  2083. * Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80, etc.
  2084. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ:
  2085. * Unsigned 32bit value. Primary 20MHz channel.
  2086. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0:
  2087. * Unsigned 32bit value. Center frequency (MHz) first segment.
  2088. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1:
  2089. * Unsigned 32bit value. Center frequency (MHz) second segment.
  2090. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME: Unsigned int 32bit value
  2091. * representing total number of msecs the radio is awake on that channel
  2092. * accruing over time, corresponding to the respective channel.
  2093. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME: Unsigned int 32bit
  2094. * value representing total number of msecs the CCA register is busy
  2095. * accruing over time corresponding to the respective channel.
  2096. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS: Number of radios
  2097. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO: Channel info
  2098. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO: Peer info
  2099. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO: Peer rate info
  2100. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO: WMM info
  2101. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA: Unsigned 8bit value.
  2102. * Used by the driver; if set to 1, it indicates that more stats, e.g.,
  2103. * peers or radio, are to follow in the next
  2104. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. Otherwise, it
  2105. * is set to 0.
  2106. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET: tsf offset
  2107. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED: leaky ap detected
  2108. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED:
  2109. * average number of frames leaked
  2110. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME: guard time
  2111. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE: Link Layer stats type
  2112. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS: LL Radio Number of
  2113. * Tx Levels
  2114. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL:Number of msecs the
  2115. * radio spent in transmitting for each power level
  2116. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT: RTS successful count
  2117. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT: RTS fail count
  2118. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT: PPDU successful count
  2119. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT: PPDU fail count
  2120. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME: Unsigned int 32bit
  2121. * value representing total number of msecs the radio is transmitting on
  2122. * this channel.
  2123. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME: Unsigned int 32bit
  2124. * value representing total number of msecs the radio is receiving all
  2125. * 802.11 frames intended for this device on this channel.
  2126. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE: u8 value
  2127. * representing the channel load percentage. Possible values are 0-100.
  2128. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST: After last
  2129. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2130. */
  2131. enum qca_wlan_vendor_attr_ll_stats_results {
  2132. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  2133. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  2134. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  2135. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  2136. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  2137. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  2138. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  2139. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  2140. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  2141. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  2142. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  2143. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  2144. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  2145. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  2146. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  2147. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  2148. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  2149. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  2150. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  2151. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2152. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2153. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2154. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2155. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2156. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2157. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2158. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2159. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2160. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2161. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2162. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2163. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2164. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2165. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2166. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2167. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2168. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2169. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2170. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2171. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2172. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2173. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2174. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2175. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2176. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2177. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2178. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2179. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2180. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2181. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2182. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2183. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2184. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2185. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2186. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2187. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2188. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2189. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2190. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2191. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2192. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2193. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2194. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2195. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2196. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2197. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2198. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2199. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2200. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2201. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2202. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2203. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2204. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2205. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2206. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2207. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2208. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2209. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2210. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2211. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2212. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2213. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2214. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2215. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2216. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2217. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2218. /* keep last */
  2219. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2220. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2221. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1
  2222. };
  2223. enum qca_wlan_vendor_attr_ll_stats_type {
  2224. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2225. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2226. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2227. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2228. /* keep last */
  2229. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2230. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2231. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2232. };
  2233. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2234. /**
  2235. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2236. *
  2237. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2238. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2239. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2240. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2241. */
  2242. enum qca_wlan_vendor_attr_get_supported_features {
  2243. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2244. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2245. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2246. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2247. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2248. };
  2249. /**
  2250. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2251. *
  2252. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2253. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2254. * value
  2255. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2256. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2257. */
  2258. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2259. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2260. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2261. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2262. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2263. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2264. };
  2265. /**
  2266. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2267. *
  2268. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2269. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2270. * with frequencies to be scanned (in MHz)
  2271. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2272. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2273. * rates to be included
  2274. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2275. * at non CCK rate in 2GHz band
  2276. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2277. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2278. * driver for the specific scan request
  2279. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2280. * request decoded as in enum scan_status
  2281. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2282. * scan flag is set
  2283. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2284. * randomisation
  2285. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2286. * specific BSSID to scan for.
  2287. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2288. * microseconds. This is a common value which applies across all
  2289. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2290. */
  2291. enum qca_wlan_vendor_attr_scan {
  2292. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2293. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2294. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2295. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2296. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2297. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2298. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2299. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2300. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2301. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2302. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2303. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2304. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2305. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2306. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2307. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2308. };
  2309. /**
  2310. * enum scan_status - Specifies the valid values the vendor scan attribute
  2311. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2312. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2313. * new scan results
  2314. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2315. */
  2316. enum scan_status {
  2317. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2318. VENDOR_SCAN_STATUS_ABORTED,
  2319. VENDOR_SCAN_STATUS_MAX,
  2320. };
  2321. /**
  2322. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2323. *
  2324. * NL attributes for data used by
  2325. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2326. *
  2327. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2328. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2329. * Unsigned 32-bit value
  2330. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2331. * Unsigned 32-bit value
  2332. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2333. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2334. * combinations
  2335. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2336. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2337. */
  2338. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2339. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2340. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2341. = 1,
  2342. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2343. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2344. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2345. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2346. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2347. };
  2348. /**
  2349. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2350. *
  2351. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2352. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2353. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2354. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2355. */
  2356. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2357. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2358. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2359. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2360. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2361. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2362. };
  2363. /**
  2364. * enum qca_vendor_attr_wisa_cmd
  2365. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2366. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2367. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2368. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2369. * WISA setup vendor commands
  2370. */
  2371. enum qca_vendor_attr_wisa_cmd {
  2372. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2373. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2374. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2375. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2376. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2377. };
  2378. enum qca_roaming_policy {
  2379. QCA_ROAMING_NOT_ALLOWED,
  2380. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2381. };
  2382. /**
  2383. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2384. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2385. *
  2386. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2387. * reasons.
  2388. *
  2389. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2390. * the configured threshold.
  2391. *
  2392. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2393. * beacon misses from the then connected AP.
  2394. *
  2395. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2396. * by the connected AP.
  2397. *
  2398. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2399. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2400. * not poor.
  2401. *
  2402. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2403. * or environment being very noisy / congested.
  2404. *
  2405. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2406. * from the user (user space).
  2407. *
  2408. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2409. * connected AP.
  2410. *
  2411. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2412. * breaching out the configured threshold.
  2413. *
  2414. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2415. * transition request.
  2416. *
  2417. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2418. * there is no data activity with the AP and the current rssi falls below a
  2419. * certain threshold.
  2420. *
  2421. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2422. * deauthentication or disassociation frames received from the connected AP.
  2423. *
  2424. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2425. * scan that happens when there is no candiate AP found during the poor
  2426. * RSSI scan trigger.
  2427. *
  2428. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2429. * results obtained from an external scan (not aimed at roaming).
  2430. *
  2431. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2432. * connection is established when the station is connected in 2.4 Ghz band.
  2433. */
  2434. enum qca_roam_reason {
  2435. QCA_ROAM_REASON_UNKNOWN,
  2436. QCA_ROAM_REASON_PER,
  2437. QCA_ROAM_REASON_BEACON_MISS,
  2438. QCA_ROAM_REASON_POOR_RSSI,
  2439. QCA_ROAM_REASON_BETTER_RSSI,
  2440. QCA_ROAM_REASON_CONGESTION,
  2441. QCA_ROAM_REASON_USER_TRIGGER,
  2442. QCA_ROAM_REASON_BTM,
  2443. QCA_ROAM_REASON_BSS_LOAD,
  2444. QCA_ROAM_REASON_WTC,
  2445. QCA_ROAM_REASON_IDLE,
  2446. QCA_ROAM_REASON_DISCONNECTION,
  2447. QCA_ROAM_REASON_PERIODIC_TIMER,
  2448. QCA_ROAM_REASON_BACKGROUND_SCAN,
  2449. QCA_ROAM_REASON_BT_ACTIVITY,
  2450. };
  2451. /**
  2452. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2453. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID: BSSID of the roamed AP
  2454. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2455. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2456. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2457. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2458. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2459. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2460. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2461. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2462. * Indicates the status of re-association requested by user space for
  2463. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2464. * Type u16.
  2465. * Represents the status code from AP. Use
  2466. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2467. * real status code for failures.
  2468. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2469. * This attribute indicates that the old association was maintained when
  2470. * a re-association is requested by user space and that re-association
  2471. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2472. * remain associated with the BSS with which the association was in
  2473. * place when being requested to roam). Used along with
  2474. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2475. * re-association status. Type flag.
  2476. * This attribute is applicable only for re-association failure cases.
  2477. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  2478. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  2479. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  2480. * seq number
  2481. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  2482. * representing the reasons for the roaming. Defined by enum
  2483. * qca_roam_reason.
  2484. */
  2485. enum qca_wlan_vendor_attr_roam_auth {
  2486. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  2487. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  2488. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  2489. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  2490. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  2491. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  2492. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  2493. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  2494. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  2495. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  2496. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  2497. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  2498. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  2499. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  2500. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  2501. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  2502. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  2503. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  2504. };
  2505. /**
  2506. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  2507. *
  2508. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  2509. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  2510. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  2511. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  2512. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  2513. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  2514. */
  2515. enum qca_wlan_vendor_attr_wifi_config {
  2516. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  2517. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  2518. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  2519. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  2520. /* keep last */
  2521. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  2522. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  2523. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  2524. };
  2525. /**
  2526. * enum qca_wlan_epno_type - the type of request to the EPNO command
  2527. * @QCA_WLAN_EPNO: epno type request
  2528. * @QCA_WLAN_PNO: pno type request
  2529. */
  2530. enum qca_wlan_epno_type {
  2531. QCA_WLAN_EPNO,
  2532. QCA_WLAN_PNO
  2533. };
  2534. /**
  2535. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  2536. *
  2537. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  2538. *
  2539. * NL attributes for data used by
  2540. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  2541. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  2542. * Unsigned 32-bit value; pno passpoint number of networks
  2543. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  2544. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  2545. * attributes. Array size =
  2546. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  2547. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  2548. * Unsigned 32-bit value; network id
  2549. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  2550. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  2551. * realm, 0 if unspecified.
  2552. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  2553. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  2554. * to match, 0 if unspecified.
  2555. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  2556. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  2557. * unspecified.
  2558. *
  2559. * NL attributes for data used by
  2560. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  2561. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  2562. * Unsigned 32-bit value; set pno number of networks
  2563. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  2564. * Array of nested
  2565. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  2566. * attributes. Array size =
  2567. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  2568. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  2569. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  2570. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  2571. * Signed 8-bit value; threshold for considering this SSID as found,
  2572. * required granularity for this threshold is 4dBm to 8dBm
  2573. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  2574. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  2575. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  2576. * Unsigned 8-bit value; auth bit field for matching WPA IE
  2577. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  2578. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  2579. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  2580. * Nested attribute to send the channel list
  2581. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  2582. * Unsigned 32-bit value; indicates the Interval between PNO scan
  2583. * cycles in msec
  2584. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  2585. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  2586. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  2587. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  2588. * This attribute is obsolete now.
  2589. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  2590. * Signed 32-bit value; the maximum score that a network
  2591. * can have before bonuses
  2592. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  2593. * Signed 32-bit value; only report when there is a network's
  2594. * score this much higher han the current connection
  2595. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  2596. * Signed 32-bit value; score bonus for all networks with
  2597. * the same network flag
  2598. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  2599. * Signed 32-bit value; score bonus for networks that are not open
  2600. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  2601. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  2602. * 5GHz networks
  2603. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  2604. * Unsigned 32-bit value, representing the PNO Request ID
  2605. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  2606. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  2607. */
  2608. enum qca_wlan_vendor_attr_pno_config_params {
  2609. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  2610. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  2611. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  2612. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  2613. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  2614. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  2615. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  2616. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  2617. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  2618. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  2619. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  2620. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  2621. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  2622. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  2623. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  2624. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  2625. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  2626. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  2627. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  2628. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  2629. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  2630. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  2631. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  2632. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  2633. /* keep last */
  2634. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  2635. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  2636. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  2637. };
  2638. /**
  2639. * enum qca_scan_freq_list_type: Frequency list types
  2640. *
  2641. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  2642. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2643. * a preferred frequency list for roaming.
  2644. *
  2645. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  2646. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2647. * a specific frequency list for roaming.
  2648. */
  2649. enum qca_scan_freq_list_type {
  2650. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  2651. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  2652. };
  2653. /**
  2654. * enum qca_roam_scan_scheme: scan scheme
  2655. *
  2656. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  2657. * Indicates the driver to not scan on a Roam Trigger scenario, but
  2658. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  2659. * disconnect from the current connected AP by notifying a failure
  2660. * code in the BTM response.
  2661. *
  2662. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  2663. * trigger partial frequency scans. These frequencies are the ones learnt
  2664. * or maintained by the driver based on the probability of finding the
  2665. * BSSID's in the ESS for which the roaming is triggered.
  2666. *
  2667. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  2668. * trigger the scan on all the valid frequencies to find the better
  2669. * candidates to roam.
  2670. */
  2671. enum qca_roam_scan_scheme {
  2672. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  2673. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  2674. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  2675. };
  2676. /**
  2677. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  2678. *
  2679. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  2680. * List of frequencies in MHz to be considered for a roam scan.
  2681. *
  2682. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  2683. * Type of frequency list scheme being configured/gotten as defined by the
  2684. * enum qca_scan_freq_list_type.
  2685. */
  2686. enum qca_vendor_attr_scan_freq_list_scheme {
  2687. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  2688. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  2689. /* keep last */
  2690. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  2691. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  2692. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  2693. };
  2694. /*
  2695. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  2696. *
  2697. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  2698. * a bad packet error rates (PER).
  2699. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  2700. * based on beacon misses from the connected AP.
  2701. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  2702. * due to poor RSSI of the connected AP.
  2703. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  2704. * upon finding a BSSID with a better RSSI than the connected BSSID.
  2705. * Here the RSSI of the current BSSID need not be poor.
  2706. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  2707. * by triggering a periodic scan to find a better AP to roam.
  2708. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  2709. * when the connected channel environment is too noisy/congested.
  2710. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  2711. * when BTM Request frame is received from the connected AP.
  2712. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  2713. * when the channel utilization is goes above the configured threshold.
  2714. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  2715. * based on the request from the user (space).
  2716. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  2717. * device receives Deauthentication/Disassociation frame from connected
  2718. * AP.
  2719. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  2720. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  2721. * is determined to be a poor one.
  2722. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  2723. * based on continuous TX Data Frame failures to the connected AP.
  2724. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  2725. * based on the scan results obtained from an external scan (not
  2726. * triggered to aim roaming)
  2727. *
  2728. * Set the corresponding roam trigger reason bit to consider it for roam
  2729. * trigger.
  2730. * Userspace can set multiple bits and send to the driver. The driver shall
  2731. * consider all of them to trigger/initiate a roam scan.
  2732. */
  2733. enum qca_vendor_roam_triggers {
  2734. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  2735. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  2736. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  2737. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  2738. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  2739. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  2740. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  2741. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  2742. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  2743. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  2744. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  2745. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  2746. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  2747. };
  2748. /*
  2749. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  2750. * fail reasons. This enum value is used in
  2751. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  2752. *
  2753. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  2754. * able to trigger the scan.
  2755. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  2756. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  2757. * scan.
  2758. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  2759. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  2760. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  2761. * status code.
  2762. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  2763. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  2764. * frame.
  2765. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  2766. * with error status code.
  2767. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  2768. * received.
  2769. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  2770. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  2771. * frame.
  2772. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  2773. * internally before transmission.
  2774. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  2775. * Request frame.
  2776. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  2777. * dropped internally.
  2778. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  2779. * times out.
  2780. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  2781. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  2782. * internally.
  2783. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  2784. * M2 frame.
  2785. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  2786. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  2787. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  2788. * internally.
  2789. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  2790. * frame.
  2791. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  2792. * started for final beacon miss case.
  2793. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  2794. * received from the AP during roaming handoff.
  2795. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  2796. * or host is suspended and gives the indication of the last roamed AP only
  2797. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  2798. * progress, this ongoing roaming is aborted and the last roamed AP is
  2799. * indicated to host.
  2800. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  2801. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  2802. * out.
  2803. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  2804. */
  2805. enum qca_vendor_roam_fail_reasons {
  2806. QCA_ROAM_FAIL_REASON_NONE = 0,
  2807. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  2808. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  2809. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  2810. QCA_ROAM_FAIL_REASON_HOST = 4,
  2811. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  2812. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  2813. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  2814. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  2815. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  2816. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  2817. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  2818. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  2819. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  2820. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  2821. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  2822. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  2823. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  2824. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  2825. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  2826. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  2827. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  2828. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  2829. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  2830. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  2831. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  2832. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  2833. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  2834. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  2835. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  2836. };
  2837. /*
  2838. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  2839. * invoke fail reasons. This enum value is used in
  2840. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  2841. *
  2842. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  2843. * in roam invoke command.
  2844. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  2845. * enabled.
  2846. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  2847. * length is invalid.
  2848. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  2849. * in progress.
  2850. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  2851. * of the AP in the roam invoke command to firmware. This reason is sent by the
  2852. * firmware when the given AP is configured to be ignored or SSID/security
  2853. * does not match.
  2854. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  2855. * firmware internal reasons.
  2856. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  2857. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  2858. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  2859. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  2860. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  2861. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  2862. */
  2863. enum qca_vendor_roam_invoke_fail_reasons {
  2864. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  2865. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  2866. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  2867. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  2868. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  2869. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  2870. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  2871. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  2872. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  2873. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  2874. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  2875. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  2876. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  2877. };
  2878. /**
  2879. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  2880. *
  2881. * Each attribute carries a weightage in percentage (%).
  2882. *
  2883. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  2884. * Represents the weightage to be given for the RSSI selection
  2885. * criteria among other parameters.
  2886. *
  2887. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  2888. * Represents the weightage to be given for the rate selection
  2889. * criteria among other parameters.
  2890. *
  2891. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  2892. * Represents the weightage to be given for the band width selection
  2893. * criteria among other parameters.
  2894. *
  2895. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  2896. * Represents the weightage to be given for the band selection
  2897. * criteria among other parameters.
  2898. *
  2899. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  2900. * Represents the weightage to be given for the NSS selection
  2901. * criteria among other parameters.
  2902. *
  2903. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  2904. * Represents the weightage to be given for the channel congestion
  2905. * selection criteria among other parameters.
  2906. *
  2907. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  2908. * Represents the weightage to be given for the beamforming selection
  2909. * criteria among other parameters.
  2910. *
  2911. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  2912. * Represents the weightage to be given for the OCE selection
  2913. * criteria among other parameters.
  2914. */
  2915. enum qca_vendor_attr_roam_candidate_selection_criteria {
  2916. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  2917. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  2918. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  2919. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  2920. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  2921. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  2922. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  2923. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  2924. /* keep last */
  2925. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  2926. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  2927. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  2928. };
  2929. /**
  2930. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  2931. * The following attributes are used to set/get/clear the respective
  2932. * configurations to/from the driver.
  2933. * For the get, the attribute for the configuration to be queried shall
  2934. * carry any of its acceptable values to the driver. In return, the driver
  2935. * shall send the configured values within the same attribute to the user
  2936. * space.
  2937. *
  2938. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  2939. * Signifies to enable/disable roam control in driver.
  2940. * 1-enable, 0-disable
  2941. * Enable: Mandates the driver to do the further roams using the
  2942. * configuration parameters set through
  2943. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  2944. * Disable: Disables the driver/firmware roaming triggered through
  2945. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  2946. * expected to continue with the default configurations.
  2947. *
  2948. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  2949. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  2950. * Roam control status is obtained through this attribute.
  2951. *
  2952. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  2953. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  2954. * is to be cleared in the driver.
  2955. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  2956. * and shall be ignored if used with other sub commands.
  2957. * If this attribute is specified along with subcmd
  2958. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  2959. * all other attributes, if there are any.
  2960. * If this attribute is not specified when the subcmd
  2961. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  2962. * clear the data corresponding to the attributes specified.
  2963. *
  2964. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  2965. * list of frequencies and its type, represented by
  2966. * enum qca_vendor_attr_scan_freq_list_scheme.
  2967. * Frequency list and its type are mandatory for this attribute to set
  2968. * the frequencies.
  2969. * Frequency type is mandatory for this attribute to get the frequencies
  2970. * and the frequency list is obtained through
  2971. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  2972. * Frequency list type is mandatory for this attribute to clear the
  2973. * frequencies.
  2974. *
  2975. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  2976. * Carries the value of scan period in seconds to set.
  2977. * The value of scan period is obtained with the same attribute for get.
  2978. * Clears the scan period in the driver when specified with clear command.
  2979. * Scan period is the idle time in seconds between each subsequent
  2980. * channel scans.
  2981. *
  2982. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  2983. * Carries the value of full scan period in seconds to set.
  2984. * The value of full scan period is obtained with the same attribute for
  2985. * get.
  2986. * Clears the full scan period in the driver when specified with clear
  2987. * command. Full scan period is the idle period in seconds between two
  2988. * successive full channel roam scans.
  2989. *
  2990. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  2991. * Carries a bitmap of the roam triggers specified in
  2992. * enum qca_vendor_roam_triggers.
  2993. * The driver shall enable roaming by enabling corresponding roam triggers
  2994. * based on the trigger bits sent with this attribute.
  2995. * If this attribute is not configured, the driver shall proceed with
  2996. * default behavior.
  2997. * The bitmap configured is obtained with the same attribute for get.
  2998. * Clears the bitmap configured in driver when specified with clear
  2999. * command.
  3000. *
  3001. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3002. * weightage in percentage (%) to be given for each selection criteria.
  3003. * Different roam candidate selection criteria are represented by
  3004. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3005. * The driver shall select the roam candidate based on corresponding
  3006. * candidate selection scores sent.
  3007. *
  3008. * An empty nested attribute is used to indicate that no specific
  3009. * preference score/criteria is configured (i.e., to disable this mechanism
  3010. * in the set case and to show that the mechanism is disabled in the get
  3011. * case).
  3012. *
  3013. * Userspace can send multiple attributes out of this enum to the driver.
  3014. * Since this attribute represents the weight/percentage of preference for
  3015. * the respective selection criteria, it is preferred to configure 100%
  3016. * total weightage. The value in each attribute or cumulative weight of the
  3017. * values in all the nested attributes should not exceed 100%. The driver
  3018. * shall reject such configuration.
  3019. *
  3020. * If the weights configured through this attribute are less than 100%,
  3021. * the driver shall honor the weights (x%) passed for the corresponding
  3022. * selection criteria and choose/distribute rest of the weight (100-x)%
  3023. * for the other selection criteria, based on its internal logic.
  3024. *
  3025. * The selection criteria configured is obtained with the same
  3026. * attribute for get.
  3027. *
  3028. * Clears the selection criteria configured in the driver when specified
  3029. * with clear command.
  3030. *
  3031. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3032. * Represents value of scan frequency scheme from
  3033. * enum qca_roam_scan_scheme.
  3034. *
  3035. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3036. * signifying the RSSI threshold of the current connected AP, indicating
  3037. * the driver to trigger roam only when the current connected AP's RSSI
  3038. * is lesser than this threshold.
  3039. *
  3040. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3041. * signifying the RSSI threshold of the candidate AP, indicating
  3042. * the driver to trigger roam only to the candidate AP with RSSI
  3043. * better than this threshold. If RSSI thresholds for candidate APs found
  3044. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3045. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3046. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3047. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3048. * will take precedence over the value configured using
  3049. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3050. *
  3051. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3052. * user triggered reason code to be sent to the AP in response to AP's
  3053. * request to trigger the roam if the roaming cannot be triggered.
  3054. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3055. *
  3056. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3057. * Carries a bitmap of the roam triggers specified in
  3058. * enum qca_vendor_roam_triggers.
  3059. * Represents the roam triggers for which the specific scan scheme from
  3060. * enum qca_roam_scan_scheme has to be applied.
  3061. * It's an optional attribute. If this attribute is not configured, but
  3062. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3063. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3064. * all the roams.
  3065. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3066. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3067. * driver shall proceed with the default behavior.
  3068. *
  3069. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3070. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3071. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3072. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3073. * threshold. Optional attribute. If this attribute is not included, then
  3074. * threshold value specified by the
  3075. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3076. *
  3077. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3078. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3079. * band. The driver/firmware shall trigger roaming to the candidate AP
  3080. * found in 5GHz band only if it's RSSI value is better than this
  3081. * threshold. Optional attribute. If this attribute is not included, then
  3082. * threshold value specified by the
  3083. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3084. *
  3085. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3086. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3087. * band. The driver/firmware shall trigger roaming to the candidate AP
  3088. * found in 6GHz band only if it's RSSI value is better than this
  3089. * threshold. Optional attribute. If this attribute is not included, then
  3090. * threshold value specified by the
  3091. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3092. *
  3093. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3094. * Carries bitmask value of bits from &enum qca_set_band and represents
  3095. * all the bands in which roaming is allowed. The configuration is valid
  3096. * until next disconnection. If this attribute is not present, the
  3097. * existing configuration shall be used. By default, roaming is allowed
  3098. * on all bands supported by local device. When the value is set to
  3099. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3100. *
  3101. */
  3102. enum qca_vendor_attr_roam_control {
  3103. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3104. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3105. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3106. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3107. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3108. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3109. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3110. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3111. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3112. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3113. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3114. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3115. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3116. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3117. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3118. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3119. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3120. /* keep last */
  3121. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3122. QCA_ATTR_ROAM_CONTROL_MAX =
  3123. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3124. };
  3125. /**
  3126. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3127. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3128. *
  3129. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3130. * Represents the different roam sub commands referred by
  3131. * enum qca_wlan_vendor_roaming_subcmd.
  3132. *
  3133. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3134. * Represents the Request ID for the specific set of commands.
  3135. * This also helps to map specific set of commands to the respective
  3136. * ID / client. e.g., helps to identify the user entity configuring the
  3137. * Blacklist BSSID and accordingly clear the respective ones with the
  3138. * matching ID.
  3139. *
  3140. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3141. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3142. *
  3143. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3144. * to carry the list of Whitelist SSIDs.
  3145. *
  3146. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3147. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3148. * represent the list of SSIDs to which the firmware/driver can consider
  3149. * to roam to.
  3150. *
  3151. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3152. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3153. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3154. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3155. *
  3156. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3157. * value, RSSI threshold above which 5GHz RSSI is favored.
  3158. *
  3159. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3160. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3161. *
  3162. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3163. * value, factor by which 5GHz RSSI is boosted.
  3164. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3165. *
  3166. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3167. * value, factor by which 5GHz RSSI is penalized.
  3168. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3169. *
  3170. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3171. * value, maximum boost that can be applied to a 5GHz RSSI.
  3172. *
  3173. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3174. * value, boost applied to current BSSID to ensure the currently
  3175. * associated BSSID is favored so as to prevent ping-pong situations.
  3176. *
  3177. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3178. * value, RSSI below which "Alert" roam is enabled.
  3179. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3180. * because the RSSI is low, or because many successive beacons have been
  3181. * lost or other bad link conditions.
  3182. *
  3183. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3184. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3185. * firmware is hunting for a better BSSID or white listed SSID even though
  3186. * the RSSI of the link is good. The parameters enabling the roaming are
  3187. * configured through the PARAM_A_BAND_XX attrbutes.
  3188. *
  3189. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3190. * represents the BSSIDs preferred over others while evaluating them
  3191. * for the roaming.
  3192. *
  3193. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3194. * 32-bit value. Represents the number of preferred BSSIDs set.
  3195. *
  3196. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3197. * address representing the BSSID to be preferred.
  3198. *
  3199. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3200. * 32-bit value, representing the modifier to be applied to the RSSI of
  3201. * the BSSID for the purpose of comparing it with other roam candidate.
  3202. *
  3203. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3204. * represents the BSSIDs to get blacklisted for roaming.
  3205. *
  3206. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3207. * 32-bit value, represents the number of blacklisted BSSIDs.
  3208. *
  3209. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3210. * address representing the Blacklisted BSSID.
  3211. *
  3212. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3213. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3214. * select this BSSID in the worst case (when no other BSSIDs are better).
  3215. *
  3216. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3217. * set/get/clear the roam control config as
  3218. * defined @enum qca_vendor_attr_roam_control.
  3219. *
  3220. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3221. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3222. */
  3223. enum qca_wlan_vendor_attr_roaming_config_params {
  3224. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3225. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3226. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3227. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3228. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3229. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3230. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3231. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3232. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3233. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3234. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3235. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3236. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3237. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3238. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3239. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3240. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3241. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3242. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3243. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3244. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3245. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3246. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3247. /* keep last */
  3248. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3249. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3250. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3251. };
  3252. /**
  3253. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3254. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3255. *
  3256. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3257. * configure the white list SSIDs. These are configured through
  3258. * the following attributes.
  3259. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3260. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3261. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3262. *
  3263. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3264. * configure the Roam params. These parameters are evaluated on the extscan
  3265. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3266. * params.
  3267. *
  3268. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3269. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3270. * to enable/disable Lazy roam.
  3271. *
  3272. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3273. * preference. Contains the attribute
  3274. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3275. * preference.
  3276. *
  3277. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3278. *
  3279. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3280. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3281. * set the same.
  3282. *
  3283. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3284. * roam control config to the driver with the attribute
  3285. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3286. *
  3287. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3288. * roam control config from driver with the attribute
  3289. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3290. * For the get, the attribute for the configuration to be queried shall
  3291. * carry any of its acceptable value to the driver. In return, the driver
  3292. * shall send the configured values within the same attribute to the user
  3293. * space.
  3294. *
  3295. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3296. * roam control config in the driver with the attribute
  3297. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3298. * The driver shall continue with its default roaming behavior when data
  3299. * corresponding to an attribute is cleared.
  3300. */
  3301. enum qca_wlan_vendor_roaming_subcmd {
  3302. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3303. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3304. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3305. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3306. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3307. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3308. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3309. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3310. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3311. };
  3312. /**
  3313. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3314. *
  3315. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3316. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3317. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3318. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3319. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3320. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3321. */
  3322. enum qca_wlan_vendor_attr_get_wifi_info {
  3323. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3324. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3325. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3326. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3327. /* KEEP LAST */
  3328. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3329. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3330. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3331. };
  3332. enum qca_wlan_vendor_attr_logger_results {
  3333. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3334. /*
  3335. * Unsigned 32-bit value; must match the request Id supplied by
  3336. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3337. */
  3338. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3339. /*
  3340. * Unsigned 32-bit value; used to indicate the size of memory
  3341. * dump to be allocated.
  3342. */
  3343. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3344. /* keep last */
  3345. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3346. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3347. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3348. };
  3349. /**
  3350. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3351. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3352. */
  3353. enum qca_wlan_vendor_channel_prop_flags {
  3354. /* Bits 0, 1, 2, and 3 are reserved */
  3355. /* Turbo channel */
  3356. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3357. /* CCK channel */
  3358. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3359. /* OFDM channel */
  3360. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3361. /* 2.4 GHz spectrum channel. */
  3362. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3363. /* 5 GHz spectrum channel */
  3364. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3365. /* Only passive scan allowed */
  3366. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3367. /* Dynamic CCK-OFDM channel */
  3368. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3369. /* GFSK channel (FHSS PHY) */
  3370. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3371. /* Radar found on channel */
  3372. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3373. /* 11a static turbo channel only */
  3374. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3375. /* Half rate channel */
  3376. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3377. /* Quarter rate channel */
  3378. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3379. /* HT 20 channel */
  3380. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3381. /* HT 40 with extension channel above */
  3382. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3383. /* HT 40 with extension channel below */
  3384. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3385. /* HT 40 intolerant */
  3386. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3387. /* VHT 20 channel */
  3388. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  3389. /* VHT 40 with extension channel above */
  3390. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  3391. /* VHT 40 with extension channel below */
  3392. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  3393. /* VHT 80 channel */
  3394. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  3395. /* HT 40 intolerant mark bit for ACS use */
  3396. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  3397. /* Channel temporarily blocked due to noise */
  3398. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  3399. /* VHT 160 channel */
  3400. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  3401. /* VHT 80+80 channel */
  3402. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  3403. /* HE 20 channel */
  3404. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  3405. /* HE 40 with extension channel above */
  3406. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  3407. /* HE 40 with extension channel below */
  3408. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  3409. /* HE 40 intolerant */
  3410. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
  3411. };
  3412. /**
  3413. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  3414. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  3415. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  3416. */
  3417. enum qca_wlan_vendor_channel_prop_flags_2 {
  3418. /* HE 40 intolerant mark bit for ACS use */
  3419. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  3420. /* HE 80 channel */
  3421. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  3422. /* HE 160 channel */
  3423. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  3424. /* HE 80+80 channel */
  3425. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  3426. };
  3427. /**
  3428. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  3429. * each channel. This is used by
  3430. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  3431. */
  3432. enum qca_wlan_vendor_channel_prop_flags_ext {
  3433. /* Radar found on channel */
  3434. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  3435. /* DFS required on channel */
  3436. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  3437. /* DFS required on channel for 2nd band of 80+80 */
  3438. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  3439. /* If channel has been checked for DFS */
  3440. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  3441. /* Excluded in 802.11d */
  3442. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  3443. /* Channel Switch Announcement received on this channel */
  3444. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  3445. /* Ad-hoc is not allowed */
  3446. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  3447. /* Station only channel */
  3448. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  3449. /* DFS radar history for slave device (STA mode) */
  3450. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  3451. /* DFS CAC valid for slave device (STA mode) */
  3452. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  3453. };
  3454. /**
  3455. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  3456. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  3457. * information to start/stop the NUD statistics collection.
  3458. */
  3459. enum qca_attr_nud_stats_set {
  3460. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  3461. /*
  3462. * Flag to start/stop the NUD statistics collection.
  3463. * Start - If included, Stop - If not included
  3464. */
  3465. QCA_ATTR_NUD_STATS_SET_START = 1,
  3466. /* IPv4 address of the default gateway (in network byte order) */
  3467. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  3468. /*
  3469. * Represents the data packet type to be monitored.
  3470. * Host driver tracks the stats corresponding to each data frame
  3471. * represented by these flags.
  3472. * These data packets are represented by
  3473. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  3474. */
  3475. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  3476. /* keep last */
  3477. QCA_ATTR_NUD_STATS_SET_LAST,
  3478. QCA_ATTR_NUD_STATS_SET_MAX =
  3479. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  3480. };
  3481. /**
  3482. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  3483. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3484. * information to start / stop the NUD stats collection.
  3485. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  3486. * Bitmap to Flag to Start / Stop the NUD stats collection
  3487. * Start - If included , Stop - If not included
  3488. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gatway ipv4 address
  3489. * IPv4 address of Default Gateway (in network byte order)
  3490. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3491. * information to start / stop the NUD stats collection.
  3492. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  3493. * Flag to Start / Stop the NUD stats collection
  3494. * Start - If included , Stop - If not included
  3495. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gatway ipv4 address
  3496. * IPv4 address of Default Gateway (in network byte order)
  3497. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3498. * information to start / stop the NUD stats collection.
  3499. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  3500. * Flag to Start / Stop the NUD stats collection
  3501. * Start - If included , Stop - If not included
  3502. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gatway ipv4 address
  3503. * IPv4 address of Default Gateway (in network byte order)
  3504. */
  3505. enum qca_attr_connectivity_check_stats_set {
  3506. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  3507. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  3508. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  3509. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  3510. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  3511. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  3512. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  3513. /* keep last */
  3514. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  3515. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  3516. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  3517. };
  3518. /**
  3519. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  3520. * data types for which the stats have to get collected.
  3521. */
  3522. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  3523. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  3524. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  3525. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  3526. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  3527. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  3528. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  3529. * to represent the stats of respective data type.
  3530. */
  3531. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  3532. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  3533. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  3534. };
  3535. enum qca_attr_connectivity_check_stats {
  3536. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  3537. /* Data packet type for which the stats are collected.
  3538. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  3539. */
  3540. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  3541. /* ID corresponding to the DNS frame for which the respective DNS stats
  3542. * are monitored (u32).
  3543. */
  3544. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  3545. /* source / destination port on which the respective proto stats are
  3546. * collected (u32).
  3547. */
  3548. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  3549. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  3550. /* IPv4/IPv6 address for which the destined data packets are
  3551. * monitored. (in network byte order)
  3552. */
  3553. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  3554. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  3555. /* Data packet Request count received from netdev */
  3556. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  3557. /* Data packet Request count sent to lower MAC from upper MAC */
  3558. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  3559. /* Data packet Request count received by lower MAC from upper MAC */
  3560. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  3561. /* Data packet Request count successfully transmitted by the device */
  3562. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  3563. /* Data packet Response count received by lower MAC */
  3564. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  3565. /* Data packet Response count received by upper MAC */
  3566. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  3567. /* Data packet Response count delivered to netdev */
  3568. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  3569. /* Data Packet Response count that are dropped out of order */
  3570. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  3571. /* keep last */
  3572. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  3573. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  3574. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  3575. };
  3576. /**
  3577. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  3578. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  3579. * NUD statistics collected when queried.
  3580. */
  3581. enum qca_attr_nud_stats_get {
  3582. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  3583. /* ARP Request count from netdev */
  3584. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  3585. /* ARP Request count sent to lower MAC from upper MAC */
  3586. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  3587. /* ARP Request count received by lower MAC from upper MAC */
  3588. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  3589. /* ARP Request count successfully transmitted by the device */
  3590. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  3591. /* ARP Response count received by lower MAC */
  3592. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  3593. /* ARP Response count received by upper MAC */
  3594. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  3595. /* ARP Response count delivered to netdev */
  3596. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  3597. /* ARP Response count delivered to netdev */
  3598. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  3599. /*
  3600. * Flag indicating if the station's link to the AP is active.
  3601. * Active Link - If included, Inactive link - If not included
  3602. */
  3603. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  3604. /*
  3605. * Flag indicating if there is any duplicate address detected (DAD).
  3606. * Yes - If detected, No - If not detected.
  3607. */
  3608. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  3609. /*
  3610. * List of Data types for which the stats are requested.
  3611. * This list does not carry ARP stats as they are done by the
  3612. * above attributes. Represented by enum qca_attr_nud_data_stats.
  3613. */
  3614. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  3615. /* keep last */
  3616. QCA_ATTR_NUD_STATS_GET_LAST,
  3617. QCA_ATTR_NUD_STATS_GET_MAX =
  3618. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  3619. };
  3620. enum qca_wlan_btm_candidate_status {
  3621. QCA_STATUS_ACCEPT = 0,
  3622. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  3623. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  3624. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  3625. QCA_STATUS_REJECT_LOW_RSSI = 4,
  3626. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  3627. QCA_STATUS_REJECT_UNKNOWN = 6,
  3628. };
  3629. enum qca_wlan_vendor_attr_btm_candidate_info {
  3630. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  3631. /* 6-byte MAC address representing the BSSID of transition candidate */
  3632. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  3633. /*
  3634. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  3635. * returned by the driver. It says whether the BSSID provided in
  3636. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  3637. * the driver, if not it specifies the reason for rejection.
  3638. * Note that the user-space can overwrite the transition reject reason
  3639. * codes provided by driver based on more information.
  3640. */
  3641. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  3642. /* keep last */
  3643. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  3644. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  3645. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  3646. };
  3647. enum qca_attr_trace_level {
  3648. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  3649. /*
  3650. * Nested array of the following attributes:
  3651. * QCA_ATTR_TRACE_LEVEL_MODULE,
  3652. * QCA_ATTR_TRACE_LEVEL_MASK.
  3653. */
  3654. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  3655. /*
  3656. * Specific QCA host driver module. Please refer to the QCA host
  3657. * driver implementation to get the specific module ID.
  3658. */
  3659. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  3660. /* Different trace level masks represented in the QCA host driver. */
  3661. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  3662. /* keep last */
  3663. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  3664. QCA_ATTR_TRACE_LEVEL_MAX =
  3665. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  3666. };
  3667. /**
  3668. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  3669. * supported features
  3670. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  3671. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  3672. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  3673. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  3674. *
  3675. * enum values are used for NL attributes for data used by
  3676. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  3677. */
  3678. enum qca_wlan_vendor_attr_get_logger_features {
  3679. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  3680. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  3681. /* keep last */
  3682. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  3683. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  3684. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  3685. };
  3686. /**
  3687. * enum qca_wlan_vendor_attr_link_properties - link properties
  3688. *
  3689. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  3690. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  3691. * specify the number of spatial streams negotiated
  3692. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  3693. * to specify negotiated rate flags i.e. ht, vht and channel width
  3694. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  3695. * specify the operating frequency
  3696. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  3697. * (STA / AP ) for the connected link.
  3698. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  3699. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  3700. * address of the peer represented by
  3701. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  3702. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  3703. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  3704. */
  3705. enum qca_wlan_vendor_attr_link_properties {
  3706. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  3707. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  3708. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  3709. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  3710. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  3711. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  3712. /* KEEP LAST */
  3713. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  3714. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  3715. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  3716. };
  3717. /**
  3718. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  3719. *
  3720. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  3721. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  3722. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  3723. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  3724. *
  3725. * enum values are used for NL attributes for data used by
  3726. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  3727. */
  3728. enum qca_wlan_vendor_attr_nd_offload {
  3729. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  3730. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  3731. /* Keep last */
  3732. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  3733. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  3734. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  3735. };
  3736. /**
  3737. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  3738. *
  3739. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  3740. * management offload, a mechanism where the station's firmware
  3741. * does the exchange with the AP to establish the temporal keys
  3742. * after roaming, rather than having the user space wpa_supplicant do it.
  3743. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  3744. * band selection based on channel selection results.
  3745. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  3746. * simultaneous off-channel operations.
  3747. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  3748. * Listen offload; a mechanism where the station's firmware takes care of
  3749. * responding to incoming Probe Request frames received from other P2P
  3750. * Devices whilst in Listen state, rather than having the user space
  3751. * wpa_supplicant do it. Information from received P2P requests are
  3752. * forwarded from firmware to host whenever the host processor wakes up.
  3753. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  3754. * specific features.
  3755. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  3756. * features.
  3757. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  3758. * specific features only. If a Device sets this bit but not the
  3759. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  3760. * this Device may not support all OCE AP functionalities but can support
  3761. * only OCE STA-CFON functionalities.
  3762. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  3763. * managed regulatory.
  3764. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  3765. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  3766. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  3767. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  3768. * and applying thermal configuration through
  3769. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  3770. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  3771. * userspace.
  3772. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  3773. * With Adaptive 11r feature, access points advertise the vendor
  3774. * specific IEs and MDE but do not include FT AKM in the RSNE.
  3775. * The Adaptive 11r supported stations are expected to identify
  3776. * such vendor specific IEs and connect to the AP in FT mode though
  3777. * the profile is configured in non-FT mode.
  3778. * The driver-based SME cases also need to have this support for
  3779. * Adaptive 11r to handle the connection and roaming scenarios.
  3780. * This flag indicates the support for the same to the user space.
  3781. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  3782. * concurrent network sessions on different Wi-Fi Bands. This feature
  3783. * capability is attributed to the hardware's capability to support
  3784. * the same (e.g., DBS).
  3785. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  3786. * responses for the respective TWT operations are asynchronous (separate)
  3787. * event message) from the driver. If not specified, the responses are
  3788. * synchronous (in vendor command reply) to the request. Each TWT
  3789. * operation is specifically mentioned (against its respective)
  3790. * documentation) to support either of these or both modes.
  3791. *
  3792. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  3793. */
  3794. enum qca_wlan_vendor_features {
  3795. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  3796. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  3797. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  3798. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  3799. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  3800. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  3801. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  3802. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  3803. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  3804. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  3805. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  3806. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  3807. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  3808. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  3809. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  3810. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  3811. };
  3812. /**
  3813. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  3814. * conditional channel switch
  3815. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  3816. * value
  3817. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  3818. * frequency list (an array of u32 values in host byte order)
  3819. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  3820. * conditional switch (u32)- 0: Success, Non-zero: Failure
  3821. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  3822. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  3823. */
  3824. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  3825. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  3826. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  3827. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  3828. /* Keep Last */
  3829. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  3830. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  3831. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  3832. };
  3833. /**
  3834. * enum wifi_logger_supported_features - values for supported logger features
  3835. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  3836. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  3837. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  3838. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  3839. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  3840. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  3841. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  3842. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  3843. */
  3844. enum wifi_logger_supported_features {
  3845. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  3846. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  3847. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  3848. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  3849. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  3850. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  3851. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  3852. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  3853. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  3854. };
  3855. /**
  3856. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  3857. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  3858. *
  3859. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  3860. * Used with event to notify the primary channel number selected in ACS
  3861. * operation.
  3862. * Note: If both the driver and user-space application supports the 6 GHz band,
  3863. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  3864. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  3865. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  3866. * is still used if either of the driver or user space application doesn't
  3867. * support the 6 GHz band.
  3868. *
  3869. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  3870. * Used with event to notify the secondary channel number selected in ACS
  3871. * operation.
  3872. * Note: If both the driver and user-space application supports the 6 GHz band,
  3873. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  3874. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  3875. * To maintain backward compatibility,
  3876. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  3877. * the driver or user space application doesn't support 6 GHz band.
  3878. *
  3879. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  3880. * (a) Used with command to configure hw_mode from
  3881. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  3882. * (b) Also used with event to notify the hw_mode of selected primary channel
  3883. * in ACS operation.
  3884. *
  3885. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  3886. * Used with command to configure ACS operation for HT mode.
  3887. * Disable (flag attribute not present) - HT disabled and
  3888. * Enable (flag attribute present) - HT enabled.
  3889. *
  3890. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  3891. * Used with command to configure ACS operation for HT40 mode.
  3892. * Disable (flag attribute not present) - HT40 disabled and
  3893. * Enable (flag attribute present) - HT40 enabled.
  3894. *
  3895. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  3896. * Used with command to configure ACS operation for VHT mode.
  3897. * Disable (flag attribute not present) - VHT disabled and
  3898. * Enable (flag attribute present) - VHT enabled.
  3899. *
  3900. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  3901. * mandatory with event.
  3902. * If specified in command path, ACS operation is configured with the given
  3903. * channel width (in MHz).
  3904. * In event path, specifies the channel width of the primary channel selected.
  3905. *
  3906. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  3907. * Used with command to configure channel list using an array of
  3908. * channel numbers (u8).
  3909. * Note: If both the driver and user-space application supports the 6 GHz band,
  3910. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  3911. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  3912. *
  3913. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  3914. * Used with event to notify the VHT segment 0 center channel number selected in
  3915. * ACS operation.
  3916. * Note: If both the driver and user-space application supports the 6 GHz band,
  3917. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  3918. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  3919. * To maintain backward compatibility,
  3920. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  3921. * the driver or user space application doesn't support the 6 GHz band.
  3922. *
  3923. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  3924. * Used with event to notify the VHT segment 1 center channel number selected in
  3925. * ACS operation.
  3926. * Note: If both the driver and user-space application supports the 6 GHz band,
  3927. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  3928. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  3929. * To maintain backward compatibility,
  3930. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  3931. * the driver or user space application doesn't support the 6 GHz band.
  3932. *
  3933. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  3934. * Used with command to configure the channel list using an array of channel
  3935. * center frequencies in MHz (u32).
  3936. * Note: If both the driver and user-space application supports the 6 GHz band,
  3937. * the driver first parses the frequency list and if it fails to get a frequency
  3938. * list, parses the channel list specified using
  3939. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  3940. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  3941. *
  3942. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  3943. * Used with event to notify the primary channel center frequency (MHz) selected
  3944. * in ACS operation.
  3945. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  3946. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  3947. *
  3948. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  3949. * Used with event to notify the secondary channel center frequency (MHz)
  3950. * selected in ACS operation.
  3951. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  3952. * includes this attribute along with
  3953. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  3954. *
  3955. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  3956. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  3957. * selected in ACS operation.
  3958. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  3959. * includes this attribute along with
  3960. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  3961. *
  3962. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  3963. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  3964. * selected in ACS operation.
  3965. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  3966. * includes this attribute along with
  3967. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  3968. *
  3969. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  3970. * Used with command to notify the driver of EDMG request for ACS
  3971. * operation.
  3972. *
  3973. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  3974. * Used with event to notify the EDMG channel number selected in ACS
  3975. * operation.
  3976. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  3977. */
  3978. enum qca_wlan_vendor_attr_acs_offload {
  3979. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  3980. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  3981. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  3982. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  3983. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  3984. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  3985. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  3986. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  3987. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  3988. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  3989. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  3990. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  3991. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  3992. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  3993. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  3994. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  3995. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  3996. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  3997. /* keep last */
  3998. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  3999. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4000. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4001. };
  4002. /**
  4003. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4004. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4005. *
  4006. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4007. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4008. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4009. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4010. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4011. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4012. */
  4013. enum qca_wlan_vendor_acs_hw_mode {
  4014. QCA_ACS_MODE_IEEE80211B,
  4015. QCA_ACS_MODE_IEEE80211G,
  4016. QCA_ACS_MODE_IEEE80211A,
  4017. QCA_ACS_MODE_IEEE80211AD,
  4018. QCA_ACS_MODE_IEEE80211ANY,
  4019. QCA_ACS_MODE_IEEE80211AX,
  4020. };
  4021. /**
  4022. * enum qca_access_policy - access control policy
  4023. *
  4024. * Access control policy is applied on the configured IE
  4025. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4026. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4027. *
  4028. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4029. *» with the specific configuration (IE) set, i.e. allow all the
  4030. *» connections which do not match the configuration.
  4031. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4032. *» with the specific configuration (IE) set, i.e. deny all the
  4033. *» connections which do not match the configuration.
  4034. */
  4035. enum qca_access_policy {
  4036. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4037. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4038. };
  4039. /**
  4040. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4041. *
  4042. * The valid values for the ignore assoc disallowed
  4043. *
  4044. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4045. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4046. *
  4047. */
  4048. enum qca_ignore_assoc_disallowed {
  4049. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4050. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4051. };
  4052. /* Attributes for data used by
  4053. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4054. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4055. */
  4056. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4057. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4058. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4059. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4060. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4061. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4062. enum qca_wlan_vendor_attr_config {
  4063. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4064. /*
  4065. * Unsigned 32-bit value to set the DTIM period.
  4066. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4067. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4068. * DTIM beacons.
  4069. */
  4070. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  4071. /*
  4072. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4073. * used to calculate statistics like average the TSF offset or average
  4074. * number of frame leaked.
  4075. * For instance, upon Beacon frame reception:
  4076. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4077. * For instance, when evaluating leaky APs:
  4078. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4079. */
  4080. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4081. /*
  4082. * Unsigned 32-bit value to configure guard time, i.e., when
  4083. * implementing IEEE power management based on frame control PM bit, how
  4084. * long the driver waits before shutting down the radio and after
  4085. * receiving an ACK frame for a Data frame with PM bit set.
  4086. */
  4087. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4088. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4089. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4090. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4091. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4092. /*
  4093. * Unsigned 32-bit value to configure the number of continuous
  4094. * Beacon Miss which shall be used by the firmware to penalize
  4095. * the RSSI.
  4096. */
  4097. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4098. /*
  4099. * Unsigned 8-bit value to configure the channel avoidance indication
  4100. * behavior. Firmware to send only one indication and ignore duplicate
  4101. * indications when set to avoid multiple Apps wakeups.
  4102. */
  4103. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4104. /*
  4105. * 8-bit unsigned value to configure the maximum TX MPDU for
  4106. * aggregation.
  4107. */
  4108. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4109. /*
  4110. * 8-bit unsigned value to configure the maximum RX MPDU for
  4111. * aggregation.
  4112. */
  4113. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4114. /*
  4115. * 8-bit unsigned value to configure the Non aggregrate/11g sw
  4116. * retry threshold (0 disable, 31 max).
  4117. */
  4118. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4119. /*
  4120. * 8-bit unsigned value to configure the aggregrate sw
  4121. * retry threshold (0 disable, 31 max).
  4122. */
  4123. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4124. /*
  4125. * 8-bit unsigned value to configure the MGMT frame
  4126. * retry threshold (0 disable, 31 max).
  4127. */
  4128. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4129. /*
  4130. * 8-bit unsigned value to configure the CTRL frame
  4131. * retry threshold (0 disable, 31 max).
  4132. */
  4133. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4134. /*
  4135. * 8-bit unsigned value to configure the propagation delay for
  4136. * 2G/5G band (0~63, units in us)
  4137. */
  4138. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4139. /*
  4140. * Unsigned 32-bit value to configure the number of unicast TX fail
  4141. * packet count. The peer is disconnected once this threshold is
  4142. * reached.
  4143. */
  4144. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4145. /*
  4146. * Attribute used to set scan default IEs to the driver.
  4147. *
  4148. * These IEs can be used by scan operations that will be initiated by
  4149. * the driver/firmware.
  4150. *
  4151. * For further scan requests coming to the driver, these IEs should be
  4152. * merged with the IEs received along with scan request coming to the
  4153. * driver. If a particular IE is present in the scan default IEs but not
  4154. * present in the scan request, then that IE should be added to the IEs
  4155. * sent in the Probe Request frames for that scan request.
  4156. */
  4157. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4158. /* Unsigned 32-bit attribute for generic commands */
  4159. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4160. /* Unsigned 32-bit value attribute for generic commands */
  4161. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4162. /* Unsigned 32-bit data attribute for generic command response */
  4163. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4164. /*
  4165. * Unsigned 32-bit length attribute for
  4166. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4167. */
  4168. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4169. /*
  4170. * Unsigned 32-bit flags attribute for
  4171. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4172. */
  4173. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4174. /*
  4175. * Unsigned 32-bit, defining the access policy.
  4176. * See enum qca_access_policy. Used with
  4177. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4178. */
  4179. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4180. /*
  4181. * Sets the list of full set of IEs for which a specific access policy
  4182. * has to be applied. Used along with
  4183. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4184. * Zero length payload can be used to clear this access constraint.
  4185. */
  4186. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4187. /*
  4188. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4189. * corresponding configurations are applied. If the interface index is
  4190. * not specified, the configurations are attributed to the respective
  4191. * wiphy.
  4192. */
  4193. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4194. /*
  4195. * 8-bit unsigned value to trigger QPower:
  4196. * 1-Enable, 0-Disable
  4197. */
  4198. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4199. /*
  4200. * 8-bit unsigned value to configure the driver and below layers to
  4201. * ignore the assoc disallowed set by APs while connecting
  4202. * 1-Ignore, 0-Don't ignore
  4203. */
  4204. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4205. /*
  4206. * 32-bit unsigned value to trigger antenna diversity features:
  4207. * 1-Enable, 0-Disable
  4208. */
  4209. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4210. /* 32-bit unsigned value to configure specific chain antenna */
  4211. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4212. /*
  4213. * 32-bit unsigned value to trigger cycle selftest
  4214. * 1-Enable, 0-Disable
  4215. */
  4216. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4217. /*
  4218. * 32-bit unsigned to configure the cycle time of selftest
  4219. * the unit is micro-second
  4220. */
  4221. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4222. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4223. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4224. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4225. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4226. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4227. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4228. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4229. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4230. /* 6-byte MAC address to point out the specific peer */
  4231. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
  4232. /* 32-bit unsigned value to set window size for specific peer */
  4233. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4234. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4235. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4236. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4237. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4238. /*
  4239. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4240. * station device while in disconnect state. The attribute use the
  4241. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4242. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4243. * 10 MHz channel width, the station will not connect to a BSS using 20
  4244. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4245. * clear this constraint.
  4246. */
  4247. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4248. /*
  4249. * 32-bit unsigned value to configure the propagation absolute delay
  4250. * for 2G/5G band (units in us)
  4251. */
  4252. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4253. /* 32-bit unsigned value to set probe period */
  4254. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4255. /* 32-bit unsigned value to set stay period */
  4256. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4257. /* 32-bit unsigned value to set snr diff */
  4258. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4259. /* 32-bit unsigned value to set probe dwell time */
  4260. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4261. /* 32-bit unsigned value to set mgmt snr weight */
  4262. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4263. /* 32-bit unsigned value to set data snr weight */
  4264. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4265. /* 32-bit unsigned value to set ack snr weight */
  4266. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4267. /*
  4268. * 32-bit unsigned value to configure the listen interval.
  4269. * This is in units of beacon intervals. This configuration alters
  4270. * the negotiated listen interval with the AP during the connection.
  4271. * It is highly recommended to configure a value less than or equal to
  4272. * the one negotiated during the association. Configuring any greater
  4273. * value can have adverse effects (frame loss, AP disassociating STA,
  4274. * etc.).
  4275. */
  4276. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4277. /*
  4278. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4279. * disable operations that would cause the AP/GO to leave its operating
  4280. * channel.
  4281. *
  4282. * This will restrict the scans to the AP/GO operating channel and the
  4283. * channels of the other band, if DBS is supported.A STA/CLI interface
  4284. * brought up after this setting is enabled, will be restricted to
  4285. * connecting to devices only on the AP/GO interface's operating channel
  4286. * or on the other band in DBS case. P2P supported channel list is
  4287. * modified, to only include AP interface's operating-channel and the
  4288. * channels of the other band if DBS is supported.
  4289. *
  4290. * These restrictions are only applicable as long as the AP/GO interface
  4291. * is alive. If the AP/GO interface is brought down then this
  4292. * setting/restriction is forgotten.
  4293. *
  4294. * If this variable is set on an AP/GO interface while a multi-channel
  4295. * concurrent session is active, it has no effect on the operation of
  4296. * the current interfaces, other than restricting the scan to the AP/GO
  4297. * operating channel and the other band channels if DBS is supported.
  4298. * However, if the STA is brought down and restarted then the new STA
  4299. * connection will either be formed on the AP/GO channel or on the
  4300. * other band in a DBS case. This is because of the scan being
  4301. * restricted on these channels as mentioned above.
  4302. *
  4303. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  4304. */
  4305. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  4306. /*
  4307. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  4308. * on an interface.
  4309. * 1 - Enable , 0 - Disable.
  4310. */
  4311. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  4312. /*
  4313. * 8 bit unsigned value to globally enable/disable scan
  4314. * 1 - Enable, 0 - Disable.
  4315. */
  4316. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  4317. /* 8-bit unsigned value to set the total beacon miss count */
  4318. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  4319. /*
  4320. * Unsigned 32-bit value to configure the number of continuous
  4321. * Beacon Miss which shall be used by the firmware to penalize
  4322. * the RSSI for BTC.
  4323. */
  4324. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  4325. /*
  4326. * 8-bit unsigned value to configure the driver and below layers to
  4327. * enable/disable all fils features.
  4328. * 0-enable, 1-disable
  4329. */
  4330. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  4331. /* 16-bit unsigned value to configure the level of WLAN latency
  4332. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  4333. */
  4334. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  4335. /*
  4336. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  4337. * the connect interface. Exclusively used for the scenarios where the
  4338. * device is used as a test bed device with special functionality and
  4339. * not recommended for production. This helps driver to not validate the
  4340. * RSNE passed from user space and thus allow arbitrary IE data to be
  4341. * used for testing purposes.
  4342. * 1-enable, 0-disable.
  4343. * Applications set/reset this configuration. If not reset, this
  4344. * parameter remains in use until the driver is unloaded.
  4345. */
  4346. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  4347. /*
  4348. * 8-bit unsigned value to trigger green Tx power saving.
  4349. * 1-Enable, 0-Disable
  4350. */
  4351. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  4352. /*
  4353. * Attribute to configure disconnect IEs to the driver.
  4354. * This carries an array of unsigned 8-bit characters.
  4355. *
  4356. * If this is configured, driver shall fill the IEs in disassoc/deauth
  4357. * frame.
  4358. * These IEs are expected to be considered only for the next
  4359. * immediate disconnection (disassoc/deauth frame) originated by
  4360. * the DUT, irrespective of the entity (user space/driver/firmware)
  4361. * triggering the disconnection.
  4362. * The host drivers are not expected to use the IEs set through
  4363. * this interface for further disconnections after the first immediate
  4364. * disconnection initiated post the configuration.
  4365. * If the IEs are also updated through cfg80211 interface (after the
  4366. * enhancement to cfg80211_disconnect), host driver is expected to
  4367. * take the union of IEs from both of these interfaces and send in
  4368. * further disassoc/deauth frames.
  4369. */
  4370. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  4371. /* 8-bit unsigned value for ELNA bypass.
  4372. * 1-Enable, 0-Disable
  4373. */
  4374. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  4375. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4376. * to send the Beacon Report response with failure reason for the
  4377. * scenarios where STA cannot honor the Beacon report request from AP.
  4378. * 1-Enable, 0-Disable.
  4379. */
  4380. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  4381. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4382. * to send roam reason information in the reassociation request to the
  4383. * AP. 1-Enable, 0-Disable.
  4384. */
  4385. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  4386. /* 32-bit unsigned value to configure different PHY modes to the
  4387. * driver/firmware. The possible values are defined in
  4388. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  4389. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  4390. * the driver.
  4391. */
  4392. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  4393. /* 8-bit unsigned value to configure the maximum supported channel width
  4394. * for STA mode. If this value is configured when STA is in connected
  4395. * state, it should not exceed the negotiated channel width. If it is
  4396. * configured when STA is in disconnected state, the configured value
  4397. * will take effect for the next immediate connection.
  4398. * Possible values are:
  4399. * NL80211_CHAN_WIDTH_20
  4400. * NL80211_CHAN_WIDTH_40
  4401. * NL80211_CHAN_WIDTH_80
  4402. * NL80211_CHAN_WIDTH_80P80
  4403. * NL80211_CHAN_WIDTH_160
  4404. */
  4405. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  4406. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  4407. * This attribute is only applicable for STA mode. When dynamic
  4408. * bandwidth adjustment is disabled, STA will use static channel width
  4409. * the value of which is negotiated during connection.
  4410. * 1-enable (default), 0-disable
  4411. */
  4412. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  4413. /* 8-bit unsigned value to configure the maximum number of subframes of
  4414. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  4415. * it is decided by hardware.
  4416. */
  4417. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  4418. /* 8-bit unsigned value to configure the maximum number of subframes of
  4419. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  4420. * it is decided by hardware.
  4421. */
  4422. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  4423. /* 8-bit unsigned value. This attribute is used to dynamically
  4424. * enable/disable the LDPC capability of the device. When configured in
  4425. * the disconnected state, the updated configuration will be considered
  4426. * for the immediately following connection attempt. If this
  4427. * configuration is modified while the device is in the connected state,
  4428. * the LDPC TX will be updated with this configuration immediately,
  4429. * while the LDPC RX configuration update will take place starting from
  4430. * the subsequent association attempt.
  4431. * 1-Enable, 0-Disable.
  4432. */
  4433. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  4434. /* 8-bit unsigned value. This attribute is used to dynamically
  4435. * enable/disable the TX STBC capability of the device. When configured
  4436. * in the disconnected state, the updated configuration will be
  4437. * considered for the immediately following connection attempt. If the
  4438. * connection is formed with TX STBC enabled and if this configuration
  4439. * is disabled during that association, the TX will be impacted
  4440. * immediately. Further connection attempts will disable TX STBC.
  4441. * However, enabling the TX STBC for a connected session with disabled
  4442. * capability is not allowed and will fail.
  4443. * 1-Enable, 0-Disable.
  4444. */
  4445. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  4446. /* 8-bit unsigned value. This attribute is used to dynamically
  4447. * enable/disable the RX STBC capability of the device. When configured
  4448. * in the disconnected state, the updated configuration will be
  4449. * considered for the immediately following connection attempt. If the
  4450. * configuration is modified in the connected state, there will be no
  4451. * impact for the current association, but further connection attempts
  4452. * will use the updated configuration.
  4453. * 1-Enable, 0-Disable.
  4454. */
  4455. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  4456. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4457. * the number of spatial streams. When configured in the disconnected
  4458. * state, the updated configuration will be considered for the
  4459. * immediately following connection attempt. If the NSS is updated after
  4460. * the connection, the updated NSS value is notified to the peer using
  4461. * the Operating Mode Notification/Spatial Multiplexing Power Save
  4462. * frame. The updated NSS value after the connection shall not be
  4463. * greater than the one negotiated during the connection. Any such
  4464. * higher value configuration shall be returned with a failure.
  4465. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  4466. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  4467. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  4468. * configure the asymmetric NSS configuration (such as 1X2).
  4469. */
  4470. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  4471. /*
  4472. * 8-bit unsigned value to trigger Optimized Power Management:
  4473. * 1-Enable, 0-Disable
  4474. */
  4475. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  4476. /* 8-bit unsigned value. This attribute takes the QOS/access category
  4477. * value represented by the enum qca_wlan_ac_type and expects the driver
  4478. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  4479. * is invalid for this attribute. This will override the DSCP value
  4480. * configured in the frame with the intention to only upgrade the QOS.
  4481. * That said, it is not intended to downgrade the QOS for the frames.
  4482. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  4483. * to disable.
  4484. */
  4485. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  4486. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4487. * the number of chains to be used for transmitting data. This
  4488. * configuration is allowed only when in connected state and will be
  4489. * effective until disconnected. The driver rejects this configuration
  4490. * if the number of spatial streams being used in the current connection
  4491. * cannot be supported by this configuration.
  4492. */
  4493. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  4494. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4495. * the number of chains to be used for receiving data. This
  4496. * configuration is allowed only when in connected state and will be
  4497. * effective until disconnected. The driver rejects this configuration
  4498. * if the number of spatial streams being used in the current connection
  4499. * cannot be supported by this configuration.
  4500. */
  4501. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  4502. /* 8-bit unsigned value to configure ANI setting type.
  4503. * See &enum qca_wlan_ani_setting for possible values.
  4504. */
  4505. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  4506. /* 32-bit signed value to configure ANI level. This is used when
  4507. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  4508. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  4509. * is invalid, the driver will return a failure.
  4510. */
  4511. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  4512. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4513. * the number of spatial streams used for transmitting the data. When
  4514. * configured in the disconnected state, the configured value will
  4515. * be considered for the following connection attempt.
  4516. * If the NSS is updated after the connection, the updated NSS value
  4517. * is notified to the peer using the Operating Mode Notification/Spatial
  4518. * Multiplexing Power Save frame.
  4519. * The TX NSS value configured after the connection shall not be greater
  4520. * than the value negotiated during the connection. Any such higher
  4521. * value configuration shall be treated as invalid configuration by
  4522. * the driver. This attribute shall be configured along with
  4523. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  4524. * configuration (such as 2X2 or 1X1) or the asymmetric
  4525. * configuration (such as 1X2).
  4526. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  4527. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  4528. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  4529. */
  4530. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  4531. /* 8-bit unsigned value. This attribute is used to dynamically configure
  4532. * the number of spatial streams used for receiving the data. When
  4533. * configured in the disconnected state, the configured value will
  4534. * be considered for the following connection attempt.
  4535. * If the NSS is updated after the connection, the updated NSS value
  4536. * is notified to the peer using the Operating Mode Notification/Spatial
  4537. * Multiplexing Power Save frame.
  4538. * The RX NSS value configured after the connection shall not be greater
  4539. * than the value negotiated during the connection. Any such higher
  4540. * value configuration shall be treated as invalid configuration by
  4541. * the driver. This attribute shall be configured along with
  4542. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  4543. * configuration (such as 2X2 or 1X1) or the asymmetric
  4544. * configuration (such as 1X2).
  4545. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  4546. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  4547. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  4548. */
  4549. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  4550. /*
  4551. * 8-bit unsigned value. This attribute, when set, indicates whether the
  4552. * specified interface is the primary STA interface when there are more
  4553. * than one STA interfaces concurrently active.
  4554. *
  4555. * This configuration helps the firmware/hardware to support certain
  4556. * features (e.g., roaming) on this primary interface, if the same
  4557. * cannot be supported on the concurrent STA interfaces simultaneously.
  4558. *
  4559. * This configuration is only applicable for a single STA interface on
  4560. * a device and gives the priority for it only over other concurrent STA
  4561. * interfaces.
  4562. *
  4563. * If the device is a multi wiphy/soc, this configuration applies to a
  4564. * single STA interface across the wiphys.
  4565. *
  4566. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  4567. */
  4568. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  4569. /*
  4570. * 8-bit unsigned value. This attribute can be used to configure the
  4571. * driver to enable/disable FT-over-DS feature. Possible values for
  4572. * this attribute are 1-Enable and 0-Disable.
  4573. */
  4574. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  4575. /* keep last */
  4576. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  4577. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  4578. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  4579. };
  4580. /**
  4581. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  4582. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  4583. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  4584. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  4585. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  4586. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  4587. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  4588. */
  4589. enum qca_wlan_vendor_attr_wifi_logger_start {
  4590. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  4591. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  4592. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  4593. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  4594. /* keep last */
  4595. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  4596. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  4597. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  4598. };
  4599. /*
  4600. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  4601. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  4602. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  4603. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  4604. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  4605. */
  4606. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  4607. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  4608. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  4609. /* keep last */
  4610. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  4611. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  4612. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  4613. };
  4614. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  4615. /**
  4616. * enum wlan_offloaded_packets_control - control commands
  4617. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  4618. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  4619. *
  4620. */
  4621. enum wlan_offloaded_packets_control {
  4622. WLAN_START_OFFLOADED_PACKETS = 1,
  4623. WLAN_STOP_OFFLOADED_PACKETS = 2
  4624. };
  4625. /**
  4626. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  4627. *
  4628. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  4629. * the offloaded data.
  4630. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  4631. * data.
  4632. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  4633. * indication.
  4634. */
  4635. enum qca_wlan_vendor_attr_data_offload_ind {
  4636. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  4637. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  4638. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  4639. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  4640. /* keep last */
  4641. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  4642. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  4643. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  4644. };
  4645. /**
  4646. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  4647. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  4648. */
  4649. enum qca_wlan_vendor_attr_offloaded_packets {
  4650. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  4651. /* Takes valid value from the enum
  4652. * qca_wlan_offloaded_packets_sending_control
  4653. * Unsigned 32-bit value
  4654. */
  4655. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  4656. /* Unsigned 32-bit value */
  4657. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  4658. /* array of u8 len: Max packet size */
  4659. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  4660. /* 6-byte MAC address used to represent source MAC address */
  4661. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  4662. /* 6-byte MAC address used to represent destination MAC address */
  4663. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  4664. /* Unsigned 32-bit value, in milli seconds */
  4665. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  4666. /* This optional unsigned 16-bit attribute is used for specifying
  4667. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  4668. */
  4669. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  4670. /* keep last */
  4671. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  4672. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  4673. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  4674. };
  4675. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  4676. /**
  4677. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  4678. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  4679. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  4680. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  4681. */
  4682. enum qca_wlan_rssi_monitoring_control {
  4683. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  4684. QCA_WLAN_RSSI_MONITORING_START,
  4685. QCA_WLAN_RSSI_MONITORING_STOP,
  4686. };
  4687. /**
  4688. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  4689. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  4690. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  4691. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  4692. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  4693. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  4694. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  4695. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  4696. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  4697. */
  4698. enum qca_wlan_vendor_attr_rssi_monitoring {
  4699. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  4700. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  4701. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  4702. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  4703. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  4704. /* attributes to be used/received in callback */
  4705. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  4706. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  4707. /* keep last */
  4708. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  4709. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  4710. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  4711. };
  4712. /**
  4713. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  4714. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  4715. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  4716. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  4717. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  4718. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicats a service info
  4719. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  4720. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  4721. * address
  4722. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  4723. * created
  4724. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  4725. * NCS_SK_TYPE/PMK/SCID instead
  4726. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  4727. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  4728. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  4729. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  4730. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  4731. * code: accept/reject
  4732. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  4733. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  4734. * driver
  4735. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  4736. * driver
  4737. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  4738. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  4739. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  4740. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  4741. * PMKID
  4742. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  4743. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  4744. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  4745. * update:
  4746. * BIT_0: NSS Update
  4747. * BIT_1: Channel list update
  4748. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  4749. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  4750. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  4751. * 0:20 MHz,
  4752. * 1:40 MHz,
  4753. * 2:80 MHz,
  4754. * 3:160 MHz
  4755. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  4756. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  4757. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  4758. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  4759. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  4760. * transport port used by NDP.
  4761. * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  4762. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  4763. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  4764. */
  4765. enum qca_wlan_vendor_attr_ndp_params {
  4766. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  4767. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  4768. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  4769. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  4770. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  4771. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  4772. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  4773. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  4774. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  4775. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  4776. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  4777. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  4778. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  4779. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  4780. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  4781. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  4782. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  4783. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  4784. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  4785. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  4786. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  4787. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  4788. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  4789. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  4790. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  4791. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  4792. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  4793. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  4794. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  4795. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  4796. /* keep last */
  4797. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  4798. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  4799. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  4800. };
  4801. /**
  4802. * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
  4803. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  4804. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  4805. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: create a ndi
  4806. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: delete a ndi
  4807. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST: initiate a ndp session
  4808. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  4809. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  4810. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  4811. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  4812. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  4813. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  4814. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  4815. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  4816. * being received
  4817. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  4818. * update
  4819. */
  4820. enum qca_wlan_ndp_sub_cmd {
  4821. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  4822. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  4823. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  4824. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  4825. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  4826. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  4827. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  4828. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  4829. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  4830. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  4831. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  4832. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  4833. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  4834. };
  4835. /**
  4836. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  4837. * information. These attributes are sent as part of
  4838. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  4839. * attributes correspond to a single channel.
  4840. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  4841. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  4842. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  4843. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  4844. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  4845. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  4846. * regulatory transmission power
  4847. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  4848. * transmission power
  4849. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  4850. * transmission power
  4851. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  4852. * class id
  4853. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  4854. * antenna gain in dbm
  4855. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  4856. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  4857. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  4858. * segment 0 in center freq in MHz.
  4859. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  4860. * segment 1 in center freq in MHz.
  4861. *
  4862. */
  4863. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  4864. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  4865. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  4866. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  4867. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  4868. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  4869. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  4870. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  4871. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  4872. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  4873. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  4874. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  4875. /*
  4876. * A bitmask (u32) with flags specified in
  4877. * enum qca_wlan_vendor_channel_prop_flags_2.
  4878. */
  4879. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  4880. /*
  4881. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  4882. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  4883. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  4884. * along with
  4885. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  4886. *
  4887. * If both the driver and user-space application supports the 6 GHz
  4888. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  4889. * is deprecated and
  4890. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  4891. * should be used.
  4892. *
  4893. * To maintain backward compatibility,
  4894. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  4895. * is still used if either of the driver or user space application
  4896. * doesn't support the 6 GHz band.
  4897. */
  4898. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12,
  4899. /*
  4900. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  4901. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  4902. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  4903. * along with
  4904. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  4905. *
  4906. * If both the driver and user-space application supports the 6 GHz
  4907. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  4908. * is deprecated and
  4909. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  4910. * should be considered.
  4911. *
  4912. * To maintain backward compatibility,
  4913. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  4914. * is still used if either of the driver or user space application
  4915. * doesn't support the 6 GHz band.
  4916. */
  4917. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13,
  4918. /* keep last */
  4919. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  4920. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  4921. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  4922. };
  4923. /**
  4924. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  4925. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  4926. * driver.
  4927. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  4928. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  4929. * ACS need to be started
  4930. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  4931. * driver supports spectral scanning or not
  4932. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  4933. * offloaded to firmware.
  4934. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  4935. * provides additional channel capability as part of scan operation.
  4936. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  4937. * interface status is UP
  4938. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  4939. * interface. It takes one of nl80211_iftype values.
  4940. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  4941. * of chan width. ACS logic should try to get a channel with specified width
  4942. * if not found then look for lower values.
  4943. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  4944. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  4945. * a/b/g/n/ac.
  4946. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  4947. * among which ACS should choose best frequency.
  4948. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  4949. * driver which will have <channel(u8), weight(u8)> format as array of
  4950. * nested values.
  4951. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  4952. * for each channel. It takes attr as defined in
  4953. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  4954. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  4955. * qca_wlan_vendor_attr_external_acs_policy.
  4956. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  4957. * Operating Parameter (RROP) availability information (u16). It uses values
  4958. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  4959. */
  4960. enum qca_wlan_vendor_attr_external_acs_event {
  4961. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  4962. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  4963. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  4964. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  4965. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  4966. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  4967. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  4968. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  4969. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  4970. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  4971. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  4972. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  4973. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  4974. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  4975. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  4976. /* keep last */
  4977. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  4978. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  4979. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  4980. };
  4981. enum qca_iface_type {
  4982. QCA_IFACE_TYPE_STA,
  4983. QCA_IFACE_TYPE_AP,
  4984. QCA_IFACE_TYPE_P2P_CLIENT,
  4985. QCA_IFACE_TYPE_P2P_GO,
  4986. QCA_IFACE_TYPE_IBSS,
  4987. QCA_IFACE_TYPE_TDLS,
  4988. };
  4989. /**
  4990. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  4991. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  4992. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  4993. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  4994. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  4995. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  4996. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  4997. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  4998. */
  4999. enum qca_wlan_vendor_attr_pcl_config {
  5000. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  5001. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  5002. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  5003. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  5004. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  5005. };
  5006. enum qca_set_band {
  5007. QCA_SETBAND_AUTO = 0,
  5008. QCA_SETBAND_5G = BIT(0),
  5009. QCA_SETBAND_2G = BIT(1),
  5010. QCA_SETBAND_6G = BIT(2),
  5011. };
  5012. /**
  5013. * enum set_reset_packet_filter - set packet filter control commands
  5014. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  5015. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  5016. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  5017. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  5018. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  5019. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  5020. */
  5021. enum set_reset_packet_filter {
  5022. QCA_WLAN_SET_PACKET_FILTER = 1,
  5023. QCA_WLAN_GET_PACKET_FILTER = 2,
  5024. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  5025. QCA_WLAN_READ_PACKET_FILTER = 4,
  5026. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  5027. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  5028. };
  5029. /**
  5030. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  5031. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  5032. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  5033. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  5034. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  5035. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  5036. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  5037. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  5038. * section in packet filter buffer
  5039. */
  5040. enum qca_wlan_vendor_attr_packet_filter {
  5041. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  5042. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  5043. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  5044. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  5045. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  5046. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  5047. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  5048. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  5049. /* keep last */
  5050. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  5051. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  5052. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  5053. };
  5054. /**
  5055. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  5056. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  5057. */
  5058. enum qca_wlan_vendor_attr_wake_stats {
  5059. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  5060. /* Unsigned 32-bit value indicating the total count of wake event */
  5061. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  5062. /* Array of individual wake count, each index representing wake reason
  5063. */
  5064. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  5065. /* Unsigned 32-bit value representing wake count array */
  5066. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  5067. /* Unsigned 32-bit total wake count value of driver/fw */
  5068. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  5069. /* Array of wake stats of driver/fw */
  5070. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  5071. /* Unsigned 32-bit total wake count value of driver/fw */
  5072. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  5073. /* Unsigned 32-bit total wake count value of packets received */
  5074. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  5075. /* Unsigned 32-bit wake count value unicast packets received */
  5076. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  5077. /* Unsigned 32-bit wake count value multicast packets received */
  5078. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  5079. /* Unsigned 32-bit wake count value broadcast packets received */
  5080. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  5081. /* Unsigned 32-bit wake count value of ICMP packets */
  5082. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  5083. /* Unsigned 32-bit wake count value of ICMP6 packets */
  5084. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  5085. /* Unsigned 32-bit value ICMP6 router advertisement */
  5086. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  5087. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  5088. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  5089. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  5090. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  5091. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  5092. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  5093. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  5094. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  5095. /* Unsigned 32-bit wake count value of receive side multicast */
  5096. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  5097. /* Unsigned 32-bit wake count value of a given RSSI breach */
  5098. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  5099. /* Unsigned 32-bit wake count value of low RSSI */
  5100. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  5101. /* Unsigned 32-bit value GSCAN count */
  5102. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  5103. /* Unsigned 32-bit value PNO complete count */
  5104. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  5105. /* Unsigned 32-bit value PNO match count */
  5106. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  5107. /* keep last */
  5108. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  5109. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  5110. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  5111. };
  5112. /**
  5113. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  5114. * configured by userspace to the driver/firmware. The values will be
  5115. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  5116. * The driver/firmware takes necessary actions requested by userspace
  5117. * such as throttling wifi tx etc. in order to mitigate high temperature.
  5118. *
  5119. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  5120. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  5121. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  5122. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  5123. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  5124. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  5125. */
  5126. enum qca_wlan_vendor_thermal_level {
  5127. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  5128. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  5129. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  5130. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  5131. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  5132. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  5133. };
  5134. /**
  5135. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  5136. * cmd value. Used for NL attributes for data used by
  5137. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  5138. */
  5139. enum qca_wlan_vendor_attr_thermal_cmd {
  5140. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  5141. /* The value of command, driver will implement different operations
  5142. * according to this value. It uses values defined in
  5143. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  5144. * u32 attribute.
  5145. */
  5146. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  5147. /* Userspace uses this attribute to configure thermal level to the
  5148. * driver/firmware, or get thermal level from the driver/firmware.
  5149. * Used in request or response, u32 attribute,
  5150. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  5151. */
  5152. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  5153. /* Userspace uses this attribute to configure the time in which the
  5154. * driver/firmware should complete applying settings it received from
  5155. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  5156. * command type. Used in request, u32 attribute, value is in
  5157. * milliseconds. A value of zero indicates to apply the settings
  5158. * immediately. The driver/firmware can delay applying the configured
  5159. * thermal settings within the time specified in this attribute if
  5160. * there is any critical ongoing operation.
  5161. */
  5162. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  5163. /* Nested attribute, driver/firmware uses this attribute to report
  5164. * thermal stats of different thermal levels to userspace when requested
  5165. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  5166. * type. This attribute contains nested array of records of thermal
  5167. * statistics of multiple levels. The attributes used inside this nested
  5168. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  5169. */
  5170. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  5171. /* keep last */
  5172. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  5173. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  5174. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  5175. };
  5176. /**
  5177. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  5178. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  5179. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  5180. * thermal command types sent to driver.
  5181. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  5182. * get thermal shutdown configuration parameters for display. Parameters
  5183. * responded from driver are defined in
  5184. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  5185. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  5186. * get temperature. Host should respond with a temperature data. It is defined
  5187. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  5188. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  5189. * suspend action.
  5190. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  5191. * resume action.
  5192. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  5193. * the driver/firmware.
  5194. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  5195. * thermal level from the driver/firmware. The driver should respond with a
  5196. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  5197. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  5198. * current thermal stats from the driver/firmware. The driver should respond
  5199. * with stats of all thermal levels encapsulated in attribute
  5200. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  5201. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  5202. * the current thermal stats all thermal levels maintained in the
  5203. * driver/firmware and start counting from zero again.
  5204. */
  5205. enum qca_wlan_vendor_attr_thermal_cmd_type {
  5206. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  5207. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  5208. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  5209. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  5210. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  5211. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  5212. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  5213. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  5214. };
  5215. /**
  5216. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  5217. * to get chip temperature by user.
  5218. * enum values are used for NL attributes for data used by
  5219. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  5220. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  5221. */
  5222. enum qca_wlan_vendor_attr_thermal_get_temperature {
  5223. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  5224. /* Temperature value (degree Celsius) from driver.
  5225. * u32 attribute.
  5226. */
  5227. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  5228. /* keep last */
  5229. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  5230. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  5231. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  5232. };
  5233. /**
  5234. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  5235. * report thermal events from driver to user space.
  5236. * enum values are used for NL attributes for data used by
  5237. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  5238. */
  5239. enum qca_wlan_vendor_attr_thermal_event {
  5240. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  5241. /* Temperature value (degree Celsius) from driver.
  5242. * u32 attribute.
  5243. */
  5244. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  5245. /* Indication of resume completion from power save mode.
  5246. * NLA_FLAG attribute.
  5247. */
  5248. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  5249. /* Thermal level from the driver.
  5250. * u32 attribute. Possible values are defined in
  5251. * enum qca_wlan_vendor_thermal_level.
  5252. */
  5253. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  5254. /* keep last */
  5255. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  5256. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  5257. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  5258. };
  5259. /**
  5260. * enum qca_vendor_element_id - QCA Vendor Specific element types
  5261. *
  5262. * These values are used to identify QCA Vendor Specific elements. The
  5263. * payload of the element starts with the three octet OUI (OUI_QCA) and
  5264. * is followed by a single octet type which is defined by this enum.
  5265. *
  5266. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  5267. * This element can be used to specify preference order for supported
  5268. * channels. The channels in this list are in preference order (the first
  5269. * one has the highest preference) and are described as a pair of
  5270. * (global) Operating Class and Channel Number (each one octet) fields.
  5271. *
  5272. * This extends the standard P2P functionality by providing option to have
  5273. * more than one preferred operating channel. When this element is present,
  5274. * it replaces the preference indicated in the Operating Channel attribute.
  5275. * For supporting other implementations, the Operating Channel attribute is
  5276. * expected to be used with the highest preference channel. Similarly, all
  5277. * the channels included in this Preferred channel list element are
  5278. * expected to be included in the Channel List attribute.
  5279. *
  5280. * This vendor element may be included in GO Negotiation Request, P2P
  5281. * Invitation Request, and Provision Discovery Request frames.
  5282. *
  5283. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  5284. * This element can be used for pre-standard publication testing of HE
  5285. * before P802.11ax draft assigns the element ID. The payload of this
  5286. * vendor specific element is defined by the latest P802.11ax draft.
  5287. * Please note that the draft is still work in progress and this element
  5288. * payload is subject to change.
  5289. *
  5290. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  5291. * This element can be used for pre-standard publication testing of HE
  5292. * before P802.11ax draft assigns the element ID. The payload of this
  5293. * vendor specific element is defined by the latest P802.11ax draft.
  5294. * Please note that the draft is still work in progress and this element
  5295. * payload is subject to change.
  5296. *
  5297. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  5298. * element).
  5299. * This element can be used for pre-standard publication testing of HE
  5300. * before P802.11ax draft assigns the element ID extension. The payload of
  5301. * this vendor specific element is defined by the latest P802.11ax draft
  5302. * (not including the Element ID Extension field). Please note that the
  5303. * draft is still work in progress and this element payload is subject to
  5304. * change.
  5305. *
  5306. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  5307. * This element can be used for pre-standard publication testing of HE
  5308. * before P802.11ax draft assigns the element ID extension. The payload of
  5309. * this vendor specific element is defined by the latest P802.11ax draft
  5310. * (not including the Element ID Extension field). Please note that the
  5311. * draft is still work in progress and this element payload is subject to
  5312. * change.
  5313. *
  5314. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  5315. * This element can be used for pre-standard publication testing of HE
  5316. * before P802.11ax draft assigns the element ID extension. The payload of
  5317. * this vendor specific element is defined by the latest P802.11ax draft
  5318. * (not including the Element ID Extension field). Please note that the
  5319. * draft is still work in progress and this element payload is subject to
  5320. * change.
  5321. */
  5322. enum qca_vendor_element_id {
  5323. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  5324. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  5325. QCA_VENDOR_ELEM_HE_OPER = 2,
  5326. QCA_VENDOR_ELEM_RAPS = 3,
  5327. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  5328. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  5329. };
  5330. /**
  5331. * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
  5332. * @QCA_WLAN_VENDOR_ATTR_TSF_INVALID: Invalid attribute value
  5333. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
  5334. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
  5335. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
  5336. * SOC timer value at TSF capture
  5337. * @QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST: after last
  5338. * @QCA_WLAN_VENDOR_ATTR_TSF_MAX: Max value
  5339. */
  5340. enum qca_vendor_attr_tsf_cmd {
  5341. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  5342. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  5343. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  5344. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  5345. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  5346. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  5347. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  5348. };
  5349. /**
  5350. * enum qca_tsf_operation: TSF driver commands
  5351. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  5352. * @QCA_TSF_GET: Get TSF capture value
  5353. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  5354. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  5355. * will automatically send TSF report to the host. To query
  5356. * QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  5357. * initiated first.
  5358. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  5359. * will not automatically send TSF report to the host. If
  5360. * QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  5361. * QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  5362. * operation needs to be initiated.
  5363. */
  5364. enum qca_tsf_cmd {
  5365. QCA_TSF_CAPTURE,
  5366. QCA_TSF_GET,
  5367. QCA_TSF_SYNC_GET,
  5368. QCA_TSF_AUTO_REPORT_ENABLE,
  5369. QCA_TSF_AUTO_REPORT_DISABLE,
  5370. };
  5371. /**
  5372. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  5373. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  5374. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  5375. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  5376. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  5377. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  5378. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  5379. */
  5380. enum qca_vendor_attr_get_preferred_freq_list {
  5381. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  5382. /* A 32-unsigned value; the interface type/mode for which the preferred
  5383. * frequency list is requested (see enum qca_iface_type for possible
  5384. * values); used in both south- and north-bound.
  5385. */
  5386. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  5387. /* An array of 32-unsigned values; values are frequency (MHz); used
  5388. * in north-bound only.
  5389. */
  5390. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  5391. /* An array of nested values as per enum
  5392. * qca_wlan_vendor_attr_pcl_config attribute.
  5393. * Each element contains frequency (MHz), weight, and flag
  5394. * bit mask indicating how the frequency should be used in P2P
  5395. * negotiation.
  5396. */
  5397. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  5398. /* keep last */
  5399. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  5400. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  5401. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  5402. };
  5403. /**
  5404. * enum qca_vendor_attr_probable_oper_channel - channel hint
  5405. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  5406. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  5407. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  5408. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  5409. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  5410. */
  5411. enum qca_vendor_attr_probable_oper_channel {
  5412. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  5413. /* 32-bit unsigned value; indicates the connection/iface type likely to
  5414. * come on this channel (see enum qca_iface_type).
  5415. */
  5416. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  5417. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  5418. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  5419. /* keep last */
  5420. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  5421. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  5422. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  5423. };
  5424. /**
  5425. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  5426. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  5427. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  5428. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  5429. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  5430. */
  5431. enum qca_wlan_vendor_attr_gw_param_config {
  5432. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  5433. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  5434. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  5435. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  5436. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  5437. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  5438. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  5439. };
  5440. /**
  5441. * enum drv_dbs_capability - DBS capability
  5442. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  5443. * @DRV_DBS_CAPABILITY_1X1: 1x1
  5444. * @DRV_DBS_CAPABILITY_2X2: 2x2
  5445. */
  5446. enum drv_dbs_capability {
  5447. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  5448. DRV_DBS_CAPABILITY_1X1,
  5449. DRV_DBS_CAPABILITY_2X2,
  5450. };
  5451. /**
  5452. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  5453. *
  5454. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  5455. */
  5456. enum qca_vendor_attr_txpower_decr_db {
  5457. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  5458. /*
  5459. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  5460. * a virtual interface.
  5461. */
  5462. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  5463. /* keep last */
  5464. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  5465. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  5466. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  5467. };
  5468. /**
  5469. * enum qca_vendor_attr_ota_test - Enable OTA test
  5470. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  5471. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  5472. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  5473. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  5474. */
  5475. enum qca_vendor_attr_ota_test {
  5476. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  5477. /* 8-bit unsigned value to indicate if OTA test is enabled */
  5478. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  5479. /* keep last */
  5480. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  5481. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  5482. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  5483. };
  5484. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  5485. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  5486. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  5487. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  5488. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  5489. */
  5490. enum qca_vendor_attr_txpower_scale {
  5491. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  5492. /* 8-bit unsigned value to indicate the scaling of tx power */
  5493. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  5494. /* keep last */
  5495. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  5496. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  5497. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  5498. };
  5499. /**
  5500. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  5501. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  5502. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  5503. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  5504. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  5505. */
  5506. enum qca_vendor_attr_txpower_scale_decr_db {
  5507. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  5508. /* 8-bit unsigned value to indicate the scaling of tx power */
  5509. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  5510. /* keep last */
  5511. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  5512. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  5513. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  5514. };
  5515. /**
  5516. * enum dfs_mode - state of DFS mode
  5517. * @DFS_MODE_NONE: DFS mode attribute is none
  5518. * @DFS_MODE_ENABLE: DFS mode is enabled
  5519. * @DFS_MODE_DISABLE: DFS mode is disabled
  5520. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  5521. */
  5522. enum dfs_mode {
  5523. DFS_MODE_NONE,
  5524. DFS_MODE_ENABLE,
  5525. DFS_MODE_DISABLE,
  5526. DFS_MODE_DEPRIORITIZE
  5527. };
  5528. /**
  5529. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  5530. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  5531. *
  5532. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  5533. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  5534. *
  5535. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  5536. * channel number hint for ACS operation, if valid channel is specified then
  5537. * ACS operation gives priority to this channel.
  5538. * Note: If both the driver and user space application supports the 6 GHz band,
  5539. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  5540. * should be used.
  5541. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  5542. * is still used if either of the driver or user space application doesn't
  5543. * support the 6 GHz band.
  5544. *
  5545. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  5546. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  5547. * frequency is specified, ACS operation gives priority to this channel.
  5548. */
  5549. enum qca_wlan_vendor_attr_acs_config {
  5550. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  5551. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  5552. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  5553. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  5554. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  5555. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  5556. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  5557. };
  5558. /**
  5559. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  5560. */
  5561. enum qca_wlan_vendor_attr_get_hw_capability {
  5562. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  5563. /*
  5564. * Antenna isolation
  5565. * An attribute used in the response.
  5566. * The content of this attribute is encoded in a byte array. Each byte
  5567. * value is an antenna isolation value. The array length is the number
  5568. * of antennas.
  5569. */
  5570. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  5571. /*
  5572. * Request HW capability
  5573. * An attribute used in the request.
  5574. * The content of this attribute is a u32 array for one or more of
  5575. * hardware capabilities (attribute IDs) that are being requested. Each
  5576. * u32 value has a value from this
  5577. * enum qca_wlan_vendor_attr_get_hw_capability
  5578. * identifying which capabilities are requested.
  5579. */
  5580. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  5581. /* keep last */
  5582. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  5583. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  5584. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  5585. };
  5586. /**
  5587. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  5588. * config params for sta roam policy
  5589. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  5590. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  5591. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  5592. * If sta should skip unsafe channels or not in scanning
  5593. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  5594. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  5595. */
  5596. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  5597. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  5598. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  5599. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  5600. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  5601. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  5602. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  5603. };
  5604. /* Attributes for FTM commands and events */
  5605. /**
  5606. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  5607. *
  5608. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  5609. * enum qca_wlan_vendor_attr_loc_capa_flags.
  5610. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  5611. * of measurement sessions that can run concurrently.
  5612. * Default is one session (no session concurrency).
  5613. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  5614. * peers that are supported in running sessions. For example,
  5615. * if the value is 8 and maximum number of sessions is 2, you can
  5616. * have one session with 8 unique peers, or 2 sessions with 4 unique
  5617. * peers each, and so on.
  5618. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  5619. * of bursts per peer, as an exponent (2^value). Default is 0,
  5620. * meaning no multi-burst support.
  5621. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  5622. * of measurement exchanges allowed in a single burst.
  5623. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  5624. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  5625. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  5626. */
  5627. enum qca_wlan_vendor_attr_loc_capa {
  5628. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  5629. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  5630. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  5631. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  5632. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  5633. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  5634. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  5635. /* keep last */
  5636. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  5637. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  5638. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  5639. };
  5640. /**
  5641. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  5642. *
  5643. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  5644. * can be configured as an FTM responder (for example, an AP that
  5645. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  5646. * will be supported if set.
  5647. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  5648. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  5649. * will be supported if set.
  5650. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  5651. * supports immediate (ASAP) response.
  5652. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  5653. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  5654. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  5655. * requesting AOA measurements as part of an FTM session.
  5656. */
  5657. enum qca_wlan_vendor_attr_loc_capa_flags {
  5658. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  5659. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  5660. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  5661. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  5662. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  5663. };
  5664. /**
  5665. * enum qca_wlan_ani_setting - ANI setting type
  5666. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  5667. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  5668. */
  5669. enum qca_wlan_ani_setting {
  5670. QCA_WLAN_ANI_SETTING_AUTO = 0,
  5671. QCA_WLAN_ANI_SETTING_FIXED = 1,
  5672. };
  5673. /**
  5674. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  5675. *
  5676. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  5677. * Channel number on which Access Point should restart.
  5678. * Note: If both the driver and user space application supports the 6 GHz band,
  5679. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  5680. * should be used.
  5681. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  5682. * is still used if either of the driver or user space application doesn't
  5683. * support the 6 GHz band.
  5684. *
  5685. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  5686. * Nested attribute to hold list of center frequencies on which AP is
  5687. * expected to operate. This is irrespective of ACS configuration.
  5688. * This list is a priority based one and is looked for before the AP is
  5689. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  5690. * co-exist in the system.
  5691. *
  5692. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  5693. * Channel center frequency (MHz) on which the access point should restart.
  5694. */
  5695. enum qca_wlan_vendor_attr_sap_config {
  5696. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  5697. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  5698. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  5699. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  5700. /* Keep last */
  5701. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  5702. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  5703. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  5704. };
  5705. /**
  5706. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  5707. * a single peer in a measurement session.
  5708. *
  5709. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  5710. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  5711. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  5712. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  5713. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  5714. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  5715. * list of supported attributes.
  5716. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  5717. * secure measurement.
  5718. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  5719. * measurement every <value> bursts. If 0 or not specified,
  5720. * AOA measurements will be disabled for this peer.
  5721. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  5722. * the measurement frames are exchanged. Optional; if not
  5723. * specified, try to locate the peer in the kernel scan
  5724. * results cache and use frequency from there.
  5725. */
  5726. enum qca_wlan_vendor_attr_ftm_peer_info {
  5727. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  5728. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  5729. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  5730. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  5731. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  5732. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  5733. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  5734. /* keep last */
  5735. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  5736. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  5737. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  5738. };
  5739. /**
  5740. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  5741. * per-peer
  5742. *
  5743. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  5744. * immediate (ASAP) response from peer.
  5745. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  5746. * LCI report from peer. The LCI report includes the absolute
  5747. * location of the peer in "official" coordinates (similar to GPS).
  5748. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  5749. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  5750. * Location civic report from peer. The LCR includes the location
  5751. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  5752. * 11.24.6.7 for more information.
  5753. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  5754. * request a secure measurement.
  5755. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  5756. */
  5757. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  5758. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  5759. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  5760. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  5761. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  5762. };
  5763. /**
  5764. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  5765. *
  5766. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  5767. * to perform in a single burst.
  5768. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  5769. * perform, specified as an exponent (2^value).
  5770. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  5771. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  5772. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  5773. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  5774. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  5775. */
  5776. enum qca_wlan_vendor_attr_ftm_meas_param {
  5777. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  5778. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  5779. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  5780. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  5781. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  5782. /* keep last */
  5783. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  5784. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  5785. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  5786. };
  5787. /**
  5788. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  5789. *
  5790. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  5791. * peer.
  5792. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  5793. * request for this peer.
  5794. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  5795. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  5796. * to measurement results for this peer.
  5797. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  5798. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  5799. * request failed and peer requested not to send an additional request
  5800. * for this number of seconds.
  5801. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  5802. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  5803. * 9.4.2.22.10.
  5804. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  5805. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  5806. * 9.4.2.22.13.
  5807. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  5808. * overridden some measurement request parameters. See
  5809. * enum qca_wlan_vendor_attr_ftm_meas_param.
  5810. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  5811. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  5812. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  5813. * results. Each entry is a nested attribute defined
  5814. * by enum qca_wlan_vendor_attr_ftm_meas.
  5815. */
  5816. enum qca_wlan_vendor_attr_ftm_peer_result {
  5817. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  5818. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  5819. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  5820. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  5821. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  5822. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  5823. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  5824. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  5825. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  5826. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  5827. /* keep last */
  5828. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  5829. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  5830. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  5831. };
  5832. /**
  5833. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  5834. *
  5835. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  5836. * will be provided. Peer may have overridden some measurement parameters,
  5837. * in which case overridden parameters will be report by
  5838. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  5839. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  5840. * of performing the measurement request. No more results will be sent
  5841. * for this peer in this session.
  5842. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  5843. * failed, and requested not to send an additional request for number
  5844. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  5845. * attribute.
  5846. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  5847. * failed. Request was not sent over the air.
  5848. */
  5849. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  5850. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  5851. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  5852. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  5853. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  5854. };
  5855. /**
  5856. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  5857. * for measurement result, per-peer
  5858. *
  5859. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  5860. * measurement completed for this peer. No more results will be reported
  5861. * for this peer in this session.
  5862. */
  5863. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  5864. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  5865. };
  5866. /**
  5867. * enum qca_vendor_attr_loc_session_status: Session completion status code
  5868. *
  5869. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  5870. * successfully.
  5871. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  5872. * by request.
  5873. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  5874. * was invalid and was not started.
  5875. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  5876. * and did not complete normally (for example out of resources).
  5877. */
  5878. enum qca_vendor_attr_loc_session_status {
  5879. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  5880. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  5881. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  5882. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  5883. };
  5884. /**
  5885. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  5886. *
  5887. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  5888. * recorded by responder, in picoseconds.
  5889. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  5890. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  5891. * initiator, in picoseconds.
  5892. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  5893. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  5894. * initiator, in picoseconds.
  5895. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  5896. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  5897. * responder, in picoseconds.
  5898. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  5899. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  5900. * during this measurement exchange. Optional and will be provided if
  5901. * the hardware can measure it.
  5902. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  5903. * responder. Not always provided.
  5904. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  5905. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  5906. * responder. Not always provided.
  5907. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  5908. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  5909. * initiator. Not always provided.
  5910. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  5911. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  5912. * initiator. Not always provided.
  5913. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  5914. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  5915. */
  5916. enum qca_wlan_vendor_attr_ftm_meas {
  5917. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  5918. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  5919. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  5920. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  5921. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  5922. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  5923. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  5924. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  5925. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  5926. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  5927. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  5928. /* keep last */
  5929. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  5930. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  5931. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  5932. };
  5933. /**
  5934. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  5935. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  5936. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  5937. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  5938. * of the social channels.
  5939. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  5940. * A 32-bit unsigned value; the P2P listen offload period (ms).
  5941. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  5942. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  5943. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  5944. * A 32-bit unsigned value; number of interval times the Firmware needs
  5945. * to run the offloaded P2P listen operation before it stops.
  5946. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  5947. * An array of unsigned 8-bit characters; vendor information elements.
  5948. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  5949. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  5950. * A 32-bit unsigned value; a control flag to indicate whether listen
  5951. * results need to be flushed to wpa_supplicant.
  5952. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  5953. * A 8-bit unsigned value; reason code for P2P listen offload stop
  5954. * event.
  5955. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  5956. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  5957. */
  5958. enum qca_wlan_vendor_attr_p2p_listen_offload {
  5959. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  5960. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  5961. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  5962. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  5963. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  5964. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  5965. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  5966. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  5967. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  5968. /* keep last */
  5969. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  5970. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  5971. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  5972. };
  5973. /**
  5974. * enum qca_wlan_vendor_drv_info - WLAN driver info
  5975. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  5976. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  5977. * between Firmware & Host.
  5978. */
  5979. enum qca_wlan_vendor_drv_info {
  5980. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  5981. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  5982. /* keep last */
  5983. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  5984. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  5985. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  5986. };
  5987. /**
  5988. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  5989. *
  5990. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  5991. * CIR (channel impulse response) path for each antenna.
  5992. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  5993. * of the strongest CIR path for each antenna.
  5994. */
  5995. enum qca_wlan_vendor_attr_aoa_type {
  5996. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  5997. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  5998. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  5999. };
  6000. /**
  6001. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  6002. * validate encryption engine
  6003. *
  6004. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  6005. * This will be included if the request is for decryption; if not included,
  6006. * the request is treated as a request for encryption by default.
  6007. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  6008. * indicating the key cipher suite. Takes same values as
  6009. * NL80211_ATTR_KEY_CIPHER.
  6010. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  6011. * Key Id to be used for encryption
  6012. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  6013. * Key (TK) to be used for encryption/decryption
  6014. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  6015. * Packet number to be specified for encryption/decryption
  6016. * 6 bytes for TKIP/CCMP/GCMP.
  6017. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  6018. * representing the 802.11 packet (header + payload + FCS) that
  6019. * needs to be encrypted/decrypted.
  6020. * Encrypted/decrypted response from the driver will also be sent
  6021. * to userspace with the same attribute.
  6022. */
  6023. enum qca_wlan_vendor_attr_encryption_test {
  6024. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  6025. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  6026. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  6027. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  6028. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  6029. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  6030. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  6031. /* keep last */
  6032. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  6033. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  6034. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  6035. };
  6036. /**
  6037. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  6038. * sector for DMG RF sector operations.
  6039. *
  6040. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  6041. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  6042. */
  6043. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  6044. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  6045. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  6046. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  6047. };
  6048. /**
  6049. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  6050. *
  6051. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  6052. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  6053. */
  6054. enum qca_wlan_vendor_attr_fw_state {
  6055. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  6056. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  6057. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  6058. };
  6059. /**
  6060. * BRP antenna limit mode
  6061. *
  6062. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  6063. * antenna limit, BRP will be performed as usual.
  6064. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  6065. * antennas limit. the hardware may use less antennas than the
  6066. * maximum limit.
  6067. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  6068. * use exactly the specified number of antennas for BRP.
  6069. */
  6070. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  6071. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  6072. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  6073. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  6074. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  6075. };
  6076. /**
  6077. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  6078. * DMG RF sector configuration for a single RF module.
  6079. * The values are defined in a compact way which closely matches
  6080. * the way it is stored in HW registers.
  6081. * The configuration provides values for 32 antennas and 8 distribution
  6082. * amplifiers, and together describes the characteristics of the RF
  6083. * sector - such as a beam in some direction with some gain.
  6084. *
  6085. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  6086. * of RF module for this configuration.
  6087. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  6088. * amplifier gain index. Unsigned 32 bit number containing
  6089. * bits for all 32 antennas.
  6090. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  6091. * amplifier gain index. Unsigned 32 bit number containing
  6092. * bits for all 32 antennas.
  6093. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  6094. * amplifier gain index. Unsigned 32 bit number containing
  6095. * bits for all 32 antennas.
  6096. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  6097. * for first 16 antennas, 2 bits per antenna.
  6098. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  6099. * for last 16 antennas, 2 bits per antenna.
  6100. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  6101. * DTYPE values (3 bits) for each distribution amplifier, followed
  6102. * by X16 switch bits for each distribution amplifier. There are
  6103. * total of 8 distribution amplifiers.
  6104. */
  6105. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  6106. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  6107. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  6108. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  6109. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  6110. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  6111. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  6112. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  6113. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  6114. /* keep last */
  6115. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  6116. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  6117. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  6118. };
  6119. /**
  6120. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  6121. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  6122. *
  6123. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  6124. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  6125. * represents the different TDLS trigger modes.
  6126. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  6127. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  6128. * of packets shall meet the criteria for implicit TDLS setup.
  6129. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  6130. * packets within a duration.
  6131. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  6132. * a TDLS setup.
  6133. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to inititate
  6134. * a TDLS Discovery to the Peer.
  6135. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  6136. * discovery attempts to know the TDLS capability of the peer. A peer is
  6137. * marked as TDLS not capable if there is no response for all the attempts.
  6138. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  6139. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  6140. * number of TX / RX frames meet the criteria for TDLS teardown.
  6141. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  6142. * (u32) of Tx/Rx packets within a duration
  6143. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  6144. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  6145. * corresponding to the RSSI of the peer below which a TDLS
  6146. * setup is triggered.
  6147. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  6148. * corresponding to the RSSI of the peer above which
  6149. * a TDLS teardown is triggered.
  6150. */
  6151. enum qca_wlan_vendor_attr_tdls_configuration {
  6152. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  6153. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  6154. /* Attributes configuring the TDLS Implicit Trigger */
  6155. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  6156. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  6157. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  6158. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  6159. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  6160. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  6161. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  6162. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  6163. /* keep last */
  6164. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  6165. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  6166. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  6167. };
  6168. /**
  6169. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  6170. * the driver.
  6171. *
  6172. * The following are the different values for
  6173. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  6174. *
  6175. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  6176. * initiate/teardown the TDLS connection to a respective peer comes
  6177. * from the user space. wpa_supplicant provides the commands
  6178. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  6179. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  6180. * setup/teardown to the eligible peer once the configured criteria
  6181. * (such as TX/RX threshold, RSSI) is met. The attributes
  6182. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  6183. * the different configuration criteria for the TDLS trigger from the
  6184. * host driver.
  6185. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  6186. * the TDLS setup / teardown through the implicit mode, only to the
  6187. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  6188. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  6189. * External mode works on top of the implicit mode, thus the host Driver
  6190. * is expected to be configured in TDLS Implicit mode too to operate in
  6191. * External mode. Configuring External mode alone without Implicit
  6192. * mode is invalid.
  6193. *
  6194. * All the above implementations work as expected only when the host driver
  6195. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  6196. * representing that the TDLS message exchange is not internal to the host
  6197. * driver, but depends on wpa_supplicant to do the message exchange.
  6198. */
  6199. enum qca_wlan_vendor_tdls_trigger_mode {
  6200. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  6201. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  6202. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  6203. };
  6204. /**
  6205. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  6206. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  6207. * that is hard-coded in the Board Data File (BDF).
  6208. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  6209. * that is hard-coded in the Board Data File (BDF).
  6210. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  6211. * that is hard-coded in the Board Data File (BDF).
  6212. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  6213. * that is hard-coded in the Board Data File (BDF).
  6214. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  6215. * that is hard-coded in the Board Data File (BDF).
  6216. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  6217. * source of SAR power limits, thereby disabling the SAR power
  6218. * limit feature.
  6219. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  6220. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  6221. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  6222. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  6223. *
  6224. * This enumerates the valid set of values that may be supplied for
  6225. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  6226. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  6227. * the response to an instance of the
  6228. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  6229. */
  6230. enum qca_vendor_attr_sar_limits_selections {
  6231. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  6232. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  6233. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  6234. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  6235. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  6236. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  6237. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  6238. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  6239. };
  6240. /**
  6241. * enum qca_vendor_attr_sar_limits_spec_modulations -
  6242. * SAR limits specification modulation
  6243. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  6244. * CCK modulation
  6245. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  6246. * OFDM modulation
  6247. *
  6248. * This enumerates the valid set of values that may be supplied for
  6249. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  6250. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  6251. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  6252. * command or in the response to an instance of the
  6253. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  6254. */
  6255. enum qca_vendor_attr_sar_limits_spec_modulations {
  6256. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  6257. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  6258. };
  6259. /**
  6260. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  6261. *
  6262. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  6263. * select which SAR power limit table should be used. Valid
  6264. * values are enumerated in enum
  6265. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  6266. * power limit selection is unchanged if this attribute is not
  6267. * present.
  6268. *
  6269. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  6270. * which specifies the number of SAR power limit specifications
  6271. * which will follow.
  6272. *
  6273. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  6274. * limit specifications. The number of specifications is
  6275. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  6276. * specification contains a set of
  6277. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  6278. * specification is uniquely identified by the attributes
  6279. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  6280. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  6281. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  6282. * contains as a payload the attribute
  6283. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  6284. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  6285. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  6286. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  6287. * needed based upon the value of
  6288. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  6289. *
  6290. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  6291. * indicate for which band this specification applies. Valid
  6292. * values are enumerated in enum %nl80211_band (although not all
  6293. * bands may be supported by a given device). If the attribute is
  6294. * not supplied then the specification will be applied to all
  6295. * supported bands.
  6296. *
  6297. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  6298. * to indicate for which antenna chain this specification
  6299. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  6300. * attribute is not supplied then the specification will be
  6301. * applied to all chains.
  6302. *
  6303. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  6304. * value to indicate for which modulation scheme this
  6305. * specification applies. Valid values are enumerated in enum
  6306. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  6307. * is not supplied then the specification will be applied to all
  6308. * modulation schemes.
  6309. *
  6310. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  6311. * value to specify the actual power limit value in units of 0.5
  6312. * dBm (i.e., a value of 11 represents 5.5 dBm).
  6313. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  6314. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  6315. *
  6316. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  6317. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  6318. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  6319. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  6320. *
  6321. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  6322. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  6323. */
  6324. enum qca_vendor_attr_sar_limits {
  6325. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  6326. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  6327. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  6328. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  6329. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  6330. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  6331. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  6332. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  6333. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  6334. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  6335. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  6336. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  6337. };
  6338. /**
  6339. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  6340. * offload which is an extension for LL_STATS.
  6341. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  6342. * If MAC counters do not exceed the threshold, FW will report monitored
  6343. * link layer counters periodically as this setting. The first report is
  6344. * always triggered by this timer.
  6345. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  6346. * For each MAC layer counter, FW holds two copies. One is the current value.
  6347. * The other is the last report. Once a current counter's increment is larger
  6348. * than the threshold, FW will indicate that counter to host even if the
  6349. * monitoring timer does not expire.
  6350. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  6351. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  6352. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  6353. * failure code.
  6354. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  6355. * 1: TX packet discarded
  6356. * 2: No ACK
  6357. * 3: Postpone
  6358. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  6359. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  6360. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  6361. * Threshold for all monitored parameters. If per counter dedicated threshold
  6362. * is not enabled, this threshold will take effect.
  6363. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  6364. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  6365. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  6366. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  6367. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  6368. * Bit0: TX counter unit in MSDU
  6369. * Bit1: TX counter unit in MPDU
  6370. * Bit2: TX counter unit in PPDU
  6371. * Bit3: TX counter unit in byte
  6372. * Bit4: Dropped MSDUs
  6373. * Bit5: Dropped Bytes
  6374. * Bit6: MPDU retry counter
  6375. * Bit7: MPDU failure counter
  6376. * Bit8: PPDU failure counter
  6377. * Bit9: MPDU aggregation counter
  6378. * Bit10: MCS counter for ACKed MPDUs
  6379. * Bit11: MCS counter for Failed MPDUs
  6380. * Bit12: TX Delay counter
  6381. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  6382. * Bit0: MAC RX counter unit in MPDU
  6383. * Bit1: MAC RX counter unit in byte
  6384. * Bit2: PHY RX counter unit in PPDU
  6385. * Bit3: PHY RX counter unit in byte
  6386. * Bit4: Disorder counter
  6387. * Bit5: Retry counter
  6388. * Bit6: Duplication counter
  6389. * Bit7: Discard counter
  6390. * Bit8: MPDU aggregation size counter
  6391. * Bit9: MCS counter
  6392. * Bit10: Peer STA power state change (wake to sleep) counter
  6393. * Bit11: Peer STA power save counter, total time in PS mode
  6394. * Bit12: Probe request counter
  6395. * Bit13: Other management frames counter
  6396. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  6397. * Bit0: Idle time
  6398. * Bit1: TX time
  6399. * Bit2: time RX in current bss
  6400. * Bit3: Out of current bss time
  6401. * Bit4: Wireless medium busy time
  6402. * Bit5: RX in bad condition time
  6403. * Bit6: TX in bad condition time
  6404. * Bit7: time wlan card not available
  6405. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  6406. * Bit0: Per channel SNR counter
  6407. * Bit1: Per channel noise floor counter
  6408. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  6409. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  6410. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  6411. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  6412. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  6413. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  6414. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  6415. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  6416. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  6417. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  6418. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  6419. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  6420. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  6421. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  6422. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  6423. * aggregation stats buffer length
  6424. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  6425. * buffer for ACKed MPDUs.
  6426. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  6427. * buffer for failed MPDUs.
  6428. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  6429. * length of delay stats array.
  6430. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  6431. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  6432. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  6433. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  6434. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  6435. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  6436. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  6437. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  6438. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  6439. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  6440. * flagged as retransmissions
  6441. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  6442. * flagged as duplicated
  6443. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  6444. * packets discarded
  6445. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  6446. * stats buffer.
  6447. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  6448. * stats buffer.
  6449. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  6450. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  6451. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  6452. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  6453. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  6454. * requests received
  6455. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  6456. * frames received
  6457. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  6458. * there is no TX, nor RX, nor interference.
  6459. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  6460. * transmitting packets.
  6461. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  6462. * for receiving.
  6463. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  6464. * interference detected.
  6465. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  6466. * receiving packets with errors.
  6467. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  6468. * TX no-ACK.
  6469. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  6470. * the chip is unable to work in normal conditions.
  6471. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  6472. * receiving packets in current BSS.
  6473. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  6474. * receiving packets not in current BSS.
  6475. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  6476. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  6477. * This is a container for per antenna signal stats.
  6478. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  6479. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  6480. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  6481. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  6482. */
  6483. enum qca_wlan_vendor_attr_ll_stats_ext {
  6484. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  6485. /* Attributes for configurations */
  6486. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  6487. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  6488. /* Peer STA power state change */
  6489. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  6490. /* TX failure event */
  6491. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  6492. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  6493. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  6494. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  6495. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  6496. /* MAC counters */
  6497. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  6498. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  6499. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  6500. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  6501. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  6502. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  6503. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  6504. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  6505. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  6506. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  6507. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  6508. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  6509. /* Sub-attributes for PEER_AC_TX */
  6510. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  6511. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  6512. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  6513. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  6514. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  6515. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  6516. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  6517. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  6518. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  6519. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  6520. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  6521. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  6522. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  6523. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  6524. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  6525. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  6526. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  6527. /* Sub-attributes for PEER_AC_RX */
  6528. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  6529. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  6530. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  6531. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  6532. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  6533. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  6534. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  6535. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  6536. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  6537. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  6538. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  6539. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  6540. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  6541. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  6542. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  6543. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  6544. /* Sub-attributes for CCA_BSS */
  6545. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  6546. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  6547. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  6548. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  6549. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  6550. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  6551. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  6552. /* sub-attribute for BSS_RX_TIME */
  6553. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  6554. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  6555. /* Sub-attributes for PEER_SIGNAL */
  6556. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  6557. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  6558. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  6559. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  6560. /* Sub-attributes for IFACE_BSS */
  6561. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  6562. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  6563. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  6564. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  6565. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  6566. };
  6567. /**
  6568. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  6569. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  6570. * in priority order as decided after ACS operation in userspace.
  6571. *
  6572. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  6573. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  6574. *
  6575. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  6576. * Array of nested values for each channel with following attributes:
  6577. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  6578. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  6579. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  6580. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  6581. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  6582. * Note: If both the driver and user-space application supports the 6 GHz band,
  6583. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  6584. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  6585. * To maintain backward compatibility,
  6586. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  6587. * is still used if either of the driver or user space application doesn't
  6588. * support the 6 GHz band.
  6589. *
  6590. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  6591. * Primary channel number
  6592. * Note: If both the driver and user-space application supports the 6 GHz band,
  6593. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  6594. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  6595. * To maintain backward compatibility,
  6596. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  6597. * is still used if either of the driver or user space application doesn't
  6598. * support the 6 GHz band.
  6599. *
  6600. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  6601. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  6602. * Note: If both the driver and user-space application supports the 6 GHz band,
  6603. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  6604. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  6605. * To maintain backward compatibility,
  6606. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  6607. * is still used if either of the driver or user space application
  6608. * doesn't support the 6 GHz band.
  6609. *
  6610. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  6611. * VHT seg0 channel number
  6612. * Note: If both the driver and user-space application supports the 6 GHz band,
  6613. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  6614. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  6615. * To maintain backward compatibility,
  6616. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  6617. * is still used if either of the driver or user space application
  6618. * doesn't support the 6 GHz band.
  6619. *
  6620. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  6621. * VHT seg1 channel number
  6622. * Note: If both the driver and user-space application supports the 6 GHz band,
  6623. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  6624. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  6625. * To maintain backward compatibility,
  6626. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  6627. * is still used if either of the driver or user space application
  6628. * doesn't support the 6 GHz band.
  6629. *
  6630. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  6631. * Takes one of enum nl80211_chan_width values.
  6632. *
  6633. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  6634. * Array of nested values for each channel with following attributes:
  6635. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  6636. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  6637. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  6638. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  6639. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  6640. * Note: If user-space application has no support of the 6 GHz band, this
  6641. * attribute is optional.
  6642. *
  6643. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  6644. * Primary channel frequency in MHz
  6645. * Note: If user-space application has no support of the 6 GHz band, this
  6646. * attribute is optional.
  6647. *
  6648. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  6649. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  6650. * Note: If user-space application has no support of the 6 GHz band, this
  6651. * attribute is optional.
  6652. *
  6653. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  6654. * VHT seg0 channel frequency in MHz
  6655. * Note: If user-space application has no support of the 6GHz band, this
  6656. * attribute is optional.
  6657. *
  6658. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  6659. * VHT seg1 channel frequency in MHz
  6660. * Note: If user-space application has no support of the 6 GHz band, this
  6661. * attribute is optional.
  6662. */
  6663. enum qca_wlan_vendor_attr_external_acs_channels {
  6664. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  6665. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  6666. */
  6667. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  6668. /* Array of nested values for each channel with following attributes:
  6669. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  6670. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  6671. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  6672. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  6673. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  6674. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  6675. */
  6676. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  6677. /* This (u8) will hold values of one of enum nl80211_bands */
  6678. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  6679. /* Primary channel (u8) */
  6680. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  6681. /* Secondary channel (u8) used for HT 40 MHz channels */
  6682. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  6683. /* VHT seg0 channel (u8) */
  6684. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  6685. /* VHT seg1 channel (u8) */
  6686. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  6687. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  6688. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  6689. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  6690. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  6691. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  6692. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  6693. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  6694. /* keep last */
  6695. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  6696. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  6697. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  6698. };
  6699. /**
  6700. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  6701. * the ACS has to be triggered. These values are used by
  6702. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  6703. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  6704. */
  6705. enum qca_wlan_vendor_acs_select_reason {
  6706. /* Represents the reason that the ACS triggered during the AP start */
  6707. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  6708. /* Represents the reason that DFS found with the current channel */
  6709. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  6710. /* Represents the reason that LTE co-exist in the current band. */
  6711. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  6712. /* Represents the reason that generic, uncategorized interference has
  6713. * been found in the current channel.
  6714. */
  6715. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  6716. /* Represents the reason that excessive 802.11 interference has been
  6717. * found in the current channel.
  6718. */
  6719. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  6720. /* Represents the reason that generic Continuous Wave (CW) interference
  6721. * has been found in the current channel.
  6722. */
  6723. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  6724. /* Represents the reason that Microwave Oven (MWO) interference has been
  6725. * found in the current channel.
  6726. */
  6727. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  6728. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  6729. * (FHSS) interference has been found in the current channel. This may
  6730. * include 802.11 waveforms.
  6731. */
  6732. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  6733. /* Represents the reason that non-802.11 generic Frequency-Hopping
  6734. * Spread Spectrum (FHSS) interference has been found in the current
  6735. * channel.
  6736. */
  6737. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  6738. /* Represents the reason that generic Wideband (WB) interference has
  6739. * been found in the current channel. This may include 802.11 waveforms.
  6740. */
  6741. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  6742. /* Represents the reason that non-802.11 generic Wideband (WB)
  6743. * interference has been found in the current channel.
  6744. */
  6745. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  6746. /* Represents the reason that Jammer interference has been found in the
  6747. * current channel.
  6748. */
  6749. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  6750. };
  6751. /**
  6752. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  6753. *
  6754. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  6755. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  6756. * to get the available value that this item can use.
  6757. *
  6758. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  6759. * value to specify the gpio number.
  6760. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6761. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  6762. *
  6763. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  6764. * value to specify the gpio output level, please refer to enum qca_gpio_value
  6765. * to get the available value that this item can use.
  6766. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6767. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  6768. *
  6769. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  6770. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  6771. * to get the available value that this item can use.
  6772. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6773. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  6774. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  6775. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  6776. * attribute is present.
  6777. *
  6778. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  6779. * value to specify the gpio interrupt mode, please refer to enum
  6780. * qca_gpio_interrupt_mode to get the available value that this item can use.
  6781. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6782. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  6783. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  6784. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  6785. * attribute is present.
  6786. *
  6787. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  6788. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  6789. * to get the available value that this item can use.
  6790. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6791. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  6792. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  6793. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  6794. * attribute is present.
  6795. *
  6796. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  6797. * Value to specify the mux config. Meaning of a given value is dependent
  6798. * on the target chipset and gpio pin. Must be of the range 0-15.
  6799. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6800. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  6801. *
  6802. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  6803. * Value to specify the drive, Refer to enum qca_gpio_drive.
  6804. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6805. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  6806. *
  6807. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  6808. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  6809. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  6810. * other parameters for the given GPIO will be obtained from internal
  6811. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  6812. * specified to indicate the GPIO pin being configured.
  6813. */
  6814. enum qca_wlan_gpio_attr {
  6815. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  6816. /* Unsigned 32-bit attribute for GPIO command */
  6817. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  6818. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  6819. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  6820. /* Unsigned 32-bit attribute for GPIO value to configure */
  6821. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  6822. /* Unsigned 32-bit attribute for GPIO pull type */
  6823. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  6824. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  6825. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  6826. /* Unsigned 32-bit attribute for GPIO direction to configure */
  6827. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  6828. /* Unsigned 32-bit attribute for GPIO mux config */
  6829. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  6830. /* Unsigned 32-bit attribute for GPIO drive */
  6831. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  6832. /* Flag attribute for using internal gpio configuration */
  6833. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  6834. /* keep last */
  6835. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  6836. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  6837. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  6838. };
  6839. /**
  6840. * enum gpio_cmd_type - GPIO configuration command type
  6841. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  6842. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  6843. */
  6844. enum qca_gpio_cmd_type {
  6845. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  6846. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  6847. };
  6848. /**
  6849. * enum qca_gpio_pull_type - GPIO pull type
  6850. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  6851. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  6852. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  6853. */
  6854. enum qca_gpio_pull_type {
  6855. QCA_WLAN_GPIO_PULL_NONE = 0,
  6856. QCA_WLAN_GPIO_PULL_UP = 1,
  6857. QCA_WLAN_GPIO_PULL_DOWN = 2,
  6858. QCA_WLAN_GPIO_PULL_MAX,
  6859. };
  6860. /**
  6861. * enum qca_gpio_direction - GPIO direction
  6862. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  6863. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  6864. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  6865. */
  6866. enum qca_gpio_direction {
  6867. QCA_WLAN_GPIO_INPUT = 0,
  6868. QCA_WLAN_GPIO_OUTPUT = 1,
  6869. QCA_WLAN_GPIO_DIR_MAX,
  6870. };
  6871. /**
  6872. * enum qca_gpio_value - GPIO Value
  6873. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  6874. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  6875. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  6876. */
  6877. enum qca_gpio_value {
  6878. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  6879. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  6880. QCA_WLAN_GPIO_LEVEL_MAX,
  6881. };
  6882. /**
  6883. * enum gpio_interrupt_mode - GPIO interrupt mode
  6884. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  6885. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  6886. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  6887. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  6888. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  6889. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  6890. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  6891. */
  6892. enum qca_gpio_interrupt_mode {
  6893. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  6894. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  6895. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  6896. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  6897. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  6898. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  6899. QCA_WLAN_GPIO_INTMODE_MAX,
  6900. };
  6901. /**
  6902. * enum gpio_drive - GPIO drive
  6903. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  6904. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  6905. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  6906. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  6907. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  6908. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  6909. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  6910. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  6911. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  6912. */
  6913. enum qca_gpio_drive {
  6914. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  6915. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  6916. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  6917. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  6918. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  6919. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  6920. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  6921. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  6922. QCA_WLAN_GPIO_DRIVE_MAX,
  6923. };
  6924. /**
  6925. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  6926. * MSDUQ depth threshold per peer per tid in the target
  6927. *
  6928. * Associated Vendor Command:
  6929. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  6930. */
  6931. enum qca_wlan_set_qdepth_thresh_attr {
  6932. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  6933. /* 6-byte MAC address */
  6934. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  6935. /* Unsigned 32-bit attribute for holding the TID */
  6936. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  6937. /* Unsigned 32-bit attribute for holding the update mask
  6938. * bit 0 - Update high priority msdu qdepth threshold
  6939. * bit 1 - Update low priority msdu qdepth threshold
  6940. * bit 2 - Update UDP msdu qdepth threshold
  6941. * bit 3 - Update Non UDP msdu qdepth threshold
  6942. * rest of bits are reserved
  6943. */
  6944. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  6945. /* Unsigned 32-bit attribute for holding the threshold value */
  6946. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  6947. /* keep last */
  6948. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  6949. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  6950. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  6951. };
  6952. /**
  6953. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  6954. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  6955. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  6956. * external ACS policies to select the channels w.r.t. the PCL weights.
  6957. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  6958. * their PCL weights.)
  6959. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  6960. * select a channel with non-zero PCL weight.
  6961. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  6962. * channel with non-zero PCL weight.
  6963. *
  6964. */
  6965. enum qca_wlan_vendor_attr_external_acs_policy {
  6966. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  6967. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  6968. };
  6969. /**
  6970. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  6971. */
  6972. enum qca_wlan_vendor_attr_spectral_scan {
  6973. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  6974. /*
  6975. * Number of times the chip enters spectral scan mode before
  6976. * deactivating spectral scans. When set to 0, chip will enter spectral
  6977. * scan mode continuously. u32 attribute.
  6978. */
  6979. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  6980. /*
  6981. * Spectral scan period. Period increment resolution is 256*Tclk,
  6982. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  6983. */
  6984. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  6985. /* Spectral scan priority. u32 attribute. */
  6986. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  6987. /* Number of FFT data points to compute. u32 attribute. */
  6988. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  6989. /*
  6990. * Enable targeted gain change before starting the spectral scan FFT.
  6991. * u32 attribute.
  6992. */
  6993. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  6994. /* Restart a queued spectral scan. u32 attribute. */
  6995. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  6996. /*
  6997. * Noise floor reference number for the calculation of bin power.
  6998. * u32 attribute.
  6999. */
  7000. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  7001. /*
  7002. * Disallow spectral scan triggers after TX/RX packets by setting
  7003. * this delay value to roughly SIFS time period or greater.
  7004. * u32 attribute.
  7005. */
  7006. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  7007. /*
  7008. * Number of strong bins (inclusive) per sub-channel, below
  7009. * which a signal is declared a narrow band tone. u32 attribute.
  7010. */
  7011. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  7012. /*
  7013. * Specify the threshold over which a bin is declared strong (for
  7014. * scan bandwidth analysis). u32 attribute.
  7015. */
  7016. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  7017. /* Spectral scan report mode. u32 attribute. */
  7018. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  7019. /*
  7020. * RSSI report mode, if the ADC RSSI is below
  7021. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  7022. * then FFTs will not trigger, but timestamps and summaries get
  7023. * reported. u32 attribute.
  7024. */
  7025. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  7026. /*
  7027. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  7028. * to ensure spectral scan reporting with normal error code.
  7029. * u32 attribute.
  7030. */
  7031. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  7032. /*
  7033. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  7034. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  7035. * u32 attribute.
  7036. */
  7037. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  7038. /*
  7039. * Format of FFT report to software for spectral scan triggered FFTs.
  7040. * 0: No FFT report (only spectral scan summary report)
  7041. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  7042. * report
  7043. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  7044. * bins (in-band) per FFT + spectral scan summary report
  7045. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  7046. * bins (all) per FFT + spectral scan summary report
  7047. * u32 attribute.
  7048. */
  7049. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  7050. /*
  7051. * Number of LSBs to shift out in order to scale the FFT bins.
  7052. * u32 attribute.
  7053. */
  7054. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  7055. /*
  7056. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  7057. * in dBm power. u32 attribute.
  7058. */
  7059. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  7060. /*
  7061. * Per chain enable mask to select input ADC for search FFT.
  7062. * u32 attribute.
  7063. */
  7064. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  7065. /*
  7066. * An unsigned 64-bit integer provided by host driver to identify the
  7067. * spectral scan request. This attribute is included in the scan
  7068. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  7069. * and used as an attribute in
  7070. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  7071. * specific scan to be stopped.
  7072. */
  7073. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  7074. /* Skip interval for FFT reports. u32 attribute */
  7075. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  7076. /* Set to report only one set of FFT results.
  7077. * u32 attribute.
  7078. */
  7079. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  7080. /* Debug level for spectral module in driver.
  7081. * 0 : Verbosity level 0
  7082. * 1 : Verbosity level 1
  7083. * 2 : Verbosity level 2
  7084. * 3 : Matched filterID display
  7085. * 4 : One time dump of FFT report
  7086. * u32 attribute.
  7087. */
  7088. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  7089. /* Type of spectral scan request. u32 attribute.
  7090. * It uses values defined in enum
  7091. * qca_wlan_vendor_attr_spectral_scan_request_type.
  7092. */
  7093. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  7094. /* This specifies the frequency span over which spectral
  7095. * scan would be carried out. Its value depends on the
  7096. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  7097. * the relation is as follows.
  7098. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  7099. * Not applicable. Spectral scan would happen in the
  7100. * operating span.
  7101. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  7102. * Center frequency (in MHz) of the span of interest or
  7103. * for convenience, center frequency (in MHz) of any channel
  7104. * in the span of interest. For 80+80 MHz agile spectral scan
  7105. * request it represents center frequency (in MHz) of the primary
  7106. * 80 MHz span or for convenience, center frequency (in MHz) of any
  7107. * channel in the primary 80 MHz span. If agile spectral scan is
  7108. * initiated without setting a valid frequency it returns the
  7109. * error code
  7110. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  7111. * u32 attribute.
  7112. */
  7113. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  7114. /* Spectral scan mode. u32 attribute.
  7115. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  7116. * If this attribute is not present, it is assumed to be
  7117. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  7118. */
  7119. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  7120. /* Spectral scan error code. u32 attribute.
  7121. * It uses values defined in enum
  7122. * qca_wlan_vendor_spectral_scan_error_code.
  7123. * This attribute is included only in failure scenarios.
  7124. */
  7125. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  7126. /* 8-bit unsigned value to enable/disable debug of the
  7127. * Spectral DMA ring.
  7128. * 1-enable, 0-disable
  7129. */
  7130. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  7131. /* 8-bit unsigned value to enable/disable debug of the
  7132. * Spectral DMA buffers.
  7133. * 1-enable, 0-disable
  7134. */
  7135. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  7136. /* This specifies the frequency span over which spectral scan would be
  7137. * carried out. Its value depends on the value of
  7138. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  7139. * follows.
  7140. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  7141. * Not applicable. Spectral scan would happen in the operating span.
  7142. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  7143. * This attribute is applicable only for agile spectral scan
  7144. * requests in 80+80 MHz mode. It represents center frequency (in
  7145. * MHz) of the secondary 80 MHz span or for convenience, center
  7146. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  7147. * u32 attribute.
  7148. */
  7149. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  7150. /* This attribute specifies the bandwidth to be used for Spectral scan
  7151. * operation. This is an u8 attribute and uses the values in enum
  7152. * nl80211_chan_width. This is an optional attribute.
  7153. * If this attribute is not populated, the driver should configure the
  7154. * Spectral scan bandwidth to the maximum value supported by the target
  7155. * for the current operating bandwidth.
  7156. */
  7157. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  7158. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  7159. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  7160. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  7161. };
  7162. /**
  7163. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  7164. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  7165. */
  7166. enum qca_wlan_vendor_attr_spectral_diag_stats {
  7167. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  7168. /* Number of spectral TLV signature mismatches.
  7169. * u64 attribute.
  7170. */
  7171. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  7172. /* Number of spectral phyerror events with insufficient length when
  7173. * parsing for secondary 80 search FFT report. u64 attribute.
  7174. */
  7175. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  7176. /* Number of spectral phyerror events without secondary 80
  7177. * search FFT report. u64 attribute.
  7178. */
  7179. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  7180. /* Number of spectral phyerror events with vht operation segment 1 id
  7181. * mismatches in search fft report. u64 attribute.
  7182. */
  7183. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  7184. /* Number of spectral phyerror events with vht operation segment 2 id
  7185. * mismatches in search fft report. u64 attribute.
  7186. */
  7187. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  7188. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  7189. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  7190. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  7191. };
  7192. /**
  7193. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  7194. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  7195. */
  7196. enum qca_wlan_vendor_attr_spectral_cap {
  7197. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  7198. /* Flag attribute to indicate phydiag capability */
  7199. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  7200. /* Flag attribute to indicate radar detection capability */
  7201. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  7202. /* Flag attribute to indicate spectral capability */
  7203. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  7204. /* Flag attribute to indicate advanced spectral capability */
  7205. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  7206. /* Spectral hardware generation. u32 attribute.
  7207. * It uses values defined in enum
  7208. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  7209. */
  7210. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  7211. /* Spectral bin scaling formula ID. u16 attribute.
  7212. * It uses values defined in enum
  7213. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  7214. */
  7215. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  7216. /* Spectral bin scaling param - low level offset.
  7217. * s16 attribute.
  7218. */
  7219. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  7220. /* Spectral bin scaling param - high level offset.
  7221. * s16 attribute.
  7222. */
  7223. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  7224. /* Spectral bin scaling param - RSSI threshold.
  7225. * s16 attribute.
  7226. */
  7227. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  7228. /* Spectral bin scaling param - default AGC max gain.
  7229. * u8 attribute.
  7230. */
  7231. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  7232. /* Flag attribute to indicate agile spectral scan capability
  7233. * for 20/40/80 MHz modes.
  7234. */
  7235. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  7236. /* Flag attribute to indicate agile spectral scan capability
  7237. * for 160 MHz mode.
  7238. */
  7239. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  7240. /* Flag attribute to indicate agile spectral scan capability
  7241. * for 80+80 MHz mode.
  7242. */
  7243. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  7244. /* Number of spectral detectors used for scan in 20 MHz.
  7245. * u32 attribute.
  7246. */
  7247. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  7248. /* Number of spectral detectors used for scan in 40 MHz.
  7249. * u32 attribute.
  7250. */
  7251. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  7252. /* Number of spectral detectors used for scan in 80 MHz.
  7253. * u32 attribute.
  7254. */
  7255. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  7256. /* Number of spectral detectors used for scan in 160 MHz.
  7257. * u32 attribute.
  7258. */
  7259. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  7260. /* Number of spectral detectors used for scan in 80+80 MHz.
  7261. * u32 attribute.
  7262. */
  7263. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  7264. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  7265. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  7266. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  7267. };
  7268. /**
  7269. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  7270. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  7271. */
  7272. enum qca_wlan_vendor_attr_spectral_scan_status {
  7273. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  7274. /* Flag attribute to indicate whether spectral scan is enabled */
  7275. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  7276. /* Flag attribute to indicate whether spectral scan is in progress*/
  7277. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  7278. /* Spectral scan mode. u32 attribute.
  7279. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  7280. * If this attribute is not present, normal mode
  7281. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  7282. * requested.
  7283. */
  7284. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  7285. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  7286. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  7287. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  7288. };
  7289. /**
  7290. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  7291. * wlan latency module.
  7292. *
  7293. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  7294. * power saving which would causing data exchange out of service, this
  7295. * would be a big impact on latency. For latency sensitive applications over
  7296. * Wi-Fi are intolerant to such operations and thus would configure them
  7297. * to meet their respective needs. It is well understood by such applications
  7298. * that altering the default behavior would degrade the Wi-Fi functionality
  7299. * w.r.t the above pointed WLAN operations.
  7300. *
  7301. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  7302. * Default WLAN operation level which throughput orientated.
  7303. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
  7304. * Use moderate level to improve latency by limit scan duration.
  7305. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  7306. * Use low latency level to benifit application like concurrent
  7307. * downloading or video streaming via constraint scan/adaptive PS.
  7308. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  7309. * Use ultra low latency level to benefit for gaming/voice
  7310. * application via constraint scan/roaming/adaptive PS.
  7311. */
  7312. enum qca_wlan_vendor_attr_config_latency_level {
  7313. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  7314. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  7315. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
  7316. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  7317. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  7318. /* keep last */
  7319. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  7320. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  7321. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  7322. };
  7323. /**
  7324. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  7325. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  7326. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  7327. * spectral scan request types.
  7328. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  7329. * set the spectral parameters and start scan.
  7330. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  7331. * only set the spectral parameters.
  7332. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  7333. * only start the spectral scan.
  7334. */
  7335. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  7336. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  7337. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  7338. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  7339. };
  7340. /**
  7341. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  7342. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  7343. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  7344. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  7345. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  7346. * spectral scan modes.
  7347. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  7348. * spectral scan in the current operating span.
  7349. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  7350. * spectral scan in the configured agile span.
  7351. */
  7352. enum qca_wlan_vendor_spectral_scan_mode {
  7353. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  7354. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  7355. };
  7356. /**
  7357. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  7358. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  7359. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  7360. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  7361. * of a parameter is not supported.
  7362. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  7363. * mode is not supported.
  7364. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  7365. * has invalid value.
  7366. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  7367. * is not initialized.
  7368. */
  7369. enum qca_wlan_vendor_spectral_scan_error_code {
  7370. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  7371. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  7372. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  7373. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  7374. };
  7375. /**
  7376. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  7377. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  7378. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  7379. * spectral hardware generation.
  7380. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  7381. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  7382. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  7383. */
  7384. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  7385. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  7386. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  7387. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  7388. };
  7389. /**
  7390. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  7391. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  7392. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  7393. * Spectral bin scaling formula ID.
  7394. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  7395. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  7396. * and RSSI threshold based formula.
  7397. */
  7398. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  7399. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  7400. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  7401. };
  7402. /**
  7403. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  7404. * RF Operating Parameter (RROP) information is available, and if so, at which
  7405. * point in the application-driver interaction sequence it can be retrieved by
  7406. * the application from the driver. This point may vary by architecture and
  7407. * other factors. This is a u16 value.
  7408. */
  7409. enum qca_wlan_vendor_attr_rropavail_info {
  7410. /* RROP information is unavailable. */
  7411. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  7412. /* RROP information is available and the application can retrieve the
  7413. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  7414. * event from the driver.
  7415. */
  7416. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  7417. /* RROP information is available only after a vendor specific scan
  7418. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  7419. * successfully completed. The application can retrieve the information
  7420. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  7421. * the driver.
  7422. */
  7423. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  7424. };
  7425. /**
  7426. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  7427. * Representative RF Operating Parameter (RROP) information. It is sent for the
  7428. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  7429. * intended for use by external Auto Channel Selection applications. It provides
  7430. * guidance values for some RF parameters that are used by the system during
  7431. * operation. These values could vary by channel, band, radio, and so on.
  7432. */
  7433. enum qca_wlan_vendor_attr_rrop_info {
  7434. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  7435. /* Representative Tx Power List (RTPL) which has an array of nested
  7436. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  7437. */
  7438. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  7439. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  7440. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  7441. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  7442. };
  7443. /**
  7444. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  7445. * entry instances in the Representative Tx Power List (RTPL). It provides
  7446. * simplified power values intended for helping external Auto channel Selection
  7447. * applications compare potential Tx power performance between channels, other
  7448. * operating conditions remaining identical. These values are not necessarily
  7449. * the actual Tx power values that will be used by the system. They are also not
  7450. * necessarily the max or average values that will be used. Instead, they are
  7451. * relative, summarized keys for algorithmic use computed by the driver or
  7452. * underlying firmware considering a number of vendor specific factors.
  7453. */
  7454. enum qca_wlan_vendor_attr_rtplinst {
  7455. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  7456. /* Primary channel number (u8).
  7457. * Note: If both the driver and user space application support the
  7458. * 6 GHz band, this attribute is deprecated and
  7459. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  7460. * maintain backward compatibility,
  7461. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  7462. * driver or user space application or both do not support the 6 GHz
  7463. * band.
  7464. */
  7465. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  7466. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  7467. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  7468. /* Representative Tx power in dBm (s32) with emphasis on range. */
  7469. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  7470. /* Primary channel center frequency (u32) in MHz */
  7471. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  7472. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  7473. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  7474. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  7475. };
  7476. /**
  7477. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  7478. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  7479. *
  7480. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  7481. * array of nested values as per attributes in
  7482. * enum qca_wlan_vendor_attr_mac_mode_info.
  7483. */
  7484. enum qca_wlan_vendor_attr_mac {
  7485. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  7486. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  7487. /* keep last */
  7488. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  7489. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  7490. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  7491. };
  7492. /**
  7493. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  7494. * WiFi netdev interface on a respective MAC. Used by the attribute
  7495. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  7496. *
  7497. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  7498. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  7499. * the connected Wi-Fi interface(u32).
  7500. */
  7501. enum qca_wlan_vendor_attr_mac_iface_info {
  7502. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  7503. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  7504. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  7505. /* keep last */
  7506. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  7507. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  7508. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  7509. };
  7510. /**
  7511. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  7512. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  7513. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  7514. *
  7515. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  7516. * MAC (u32)
  7517. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  7518. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  7519. * in enum nl80211_band.
  7520. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  7521. * interfaces associated with this MAC. Represented by enum
  7522. * qca_wlan_vendor_attr_mac_iface_info.
  7523. */
  7524. enum qca_wlan_vendor_attr_mac_info {
  7525. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  7526. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  7527. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  7528. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  7529. /* keep last */
  7530. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  7531. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  7532. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  7533. };
  7534. /**
  7535. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  7536. * to get thermal status from driver/firmware.
  7537. * enum values are used for NL attributes encapsulated inside
  7538. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  7539. *
  7540. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  7541. * of a thermal level in Celsius. u32 size.
  7542. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  7543. * of a thermal level in Celsius. u32 size.
  7544. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  7545. * thermal level in milliseconds. u32 size.
  7546. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  7547. * of times the temperature crossed into the temperature range defined by the
  7548. * thermal level from both higher and lower directions. u32 size.
  7549. */
  7550. enum qca_wlan_vendor_attr_thermal_stats {
  7551. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  7552. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  7553. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  7554. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  7555. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  7556. /* keep last */
  7557. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  7558. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  7559. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  7560. };
  7561. /**
  7562. * enum he_fragmentation_val - HE fragmentation support values
  7563. * Indicates level of dynamic fragmentation that is supported by
  7564. * a STA as a recipient.
  7565. * HE fragmentation values are defined as per 11ax spec and are used in
  7566. * HE capability IE to advertise the support. These values are validated
  7567. * in the driver to check the device capability and advertised in the HE
  7568. * capability element.
  7569. *
  7570. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  7571. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  7572. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  7573. * within an A-MPDU that is not an S-MPDU.
  7574. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  7575. * contained within an MPDU or S-MPDU and support for up to one dynamic
  7576. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  7577. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  7578. * MPDU or S-MPDU.
  7579. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  7580. * contained within an MPDU or S-MPDU and support for multiple dynamic
  7581. * fragments for each MSDU and for each A-MSDU if supported by the
  7582. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  7583. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  7584. */
  7585. enum he_fragmentation_val {
  7586. HE_FRAG_DISABLE,
  7587. HE_FRAG_LEVEL1,
  7588. HE_FRAG_LEVEL2,
  7589. HE_FRAG_LEVEL3,
  7590. };
  7591. /**
  7592. * enum he_mcs_config - HE MCS support configuration
  7593. *
  7594. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  7595. * These values are used in driver to configure the HE MCS map to advertise
  7596. * Tx/Rx MCS map in HE capability and these values are applied for all the
  7597. * streams supported by the device. To configure MCS for different bandwidths,
  7598. * vendor command needs to be sent using this attribute with appropriate value.
  7599. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  7600. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  7601. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  7602. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  7603. *
  7604. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  7605. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  7606. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  7607. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  7608. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  7609. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  7610. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  7611. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  7612. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  7613. */
  7614. enum he_mcs_config {
  7615. HE_80_MCS0_7 = 0,
  7616. HE_80_MCS0_9 = 1,
  7617. HE_80_MCS0_11 = 2,
  7618. HE_160_MCS0_7 = 4,
  7619. HE_160_MCS0_9 = 5,
  7620. HE_160_MCS0_11 = 6,
  7621. HE_80p80_MCS0_7 = 8,
  7622. HE_80p80_MCS0_9 = 9,
  7623. HE_80p80_MCS0_11 = 10,
  7624. };
  7625. /**
  7626. * enum qca_wlan_ba_session_config - BA session configuration
  7627. *
  7628. * Indicates the configuration values for BA session configuration attribute.
  7629. *
  7630. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  7631. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  7632. */
  7633. enum qca_wlan_ba_session_config {
  7634. QCA_WLAN_ADD_BA = 1,
  7635. QCA_WLAN_DELETE_BA = 2,
  7636. };
  7637. /**
  7638. * enum qca_wlan_ac_type - access category type
  7639. *
  7640. * Indicates the access category type value.
  7641. *
  7642. * @QCA_WLAN_AC_BE: BE access category
  7643. * @QCA_WLAN_AC_BK: BK access category
  7644. * @QCA_WLAN_AC_VI: VI access category
  7645. * @QCA_WLAN_AC_VO: VO access category
  7646. * @QCA_WLAN_AC_ALL: All ACs
  7647. */
  7648. enum qca_wlan_ac_type {
  7649. QCA_WLAN_AC_BE = 0,
  7650. QCA_WLAN_AC_BK = 1,
  7651. QCA_WLAN_AC_VI = 2,
  7652. QCA_WLAN_AC_VO = 3,
  7653. QCA_WLAN_AC_ALL = 4,
  7654. };
  7655. /**
  7656. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  7657. *
  7658. * Indicates the HE LTF configuration value.
  7659. *
  7660. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  7661. * the mandatory HE-LTF based on the GI setting
  7662. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  7663. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  7664. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  7665. */
  7666. enum qca_wlan_he_ltf_cfg {
  7667. QCA_WLAN_HE_LTF_AUTO = 0,
  7668. QCA_WLAN_HE_LTF_1X = 1,
  7669. QCA_WLAN_HE_LTF_2X = 2,
  7670. QCA_WLAN_HE_LTF_4X = 3,
  7671. };
  7672. /**
  7673. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  7674. *
  7675. * Indicates the HE trigger frame MAC padding duration value.
  7676. *
  7677. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  7678. * process the trigger frame.
  7679. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  7680. * trigger frame.
  7681. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  7682. * trigger frame.
  7683. */
  7684. enum qca_wlan_he_mac_padding_dur {
  7685. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  7686. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  7687. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  7688. };
  7689. /**
  7690. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  7691. *
  7692. * Indicates the HE Operating mode control channel width setting value.
  7693. *
  7694. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  7695. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  7696. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  7697. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  7698. */
  7699. enum qca_wlan_he_om_ctrl_ch_bw {
  7700. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  7701. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  7702. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  7703. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  7704. };
  7705. /**
  7706. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  7707. *
  7708. * Indicates the frame types to use for keep alive data.
  7709. *
  7710. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  7711. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  7712. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  7713. */
  7714. enum qca_wlan_keep_alive_data_type {
  7715. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  7716. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  7717. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  7718. };
  7719. /**
  7720. * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
  7721. * HE operating mode control transmit request. These attributes are
  7722. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
  7723. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  7724. *
  7725. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  7726. * indicates the maximum number of spatial streams, NSS, that the STA
  7727. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  7728. * and is set to NSS - 1.
  7729. *
  7730. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  7731. * indicates the operating channel width supported by the STA for both
  7732. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  7733. *
  7734. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  7735. * indicates the all trigger based UL MU operations by the STA.
  7736. * 0 - UL MU operations are enabled by the STA.
  7737. * 1 - All triggered UL MU transmissions are suspended by the STA.
  7738. *
  7739. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  7740. * indicates the maximum number of space-time streams, NSTS, that
  7741. * the STA supports in transmission and is set to NSTS - 1.
  7742. *
  7743. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  7744. * combined with the UL MU Disable subfield and the recipient's setting
  7745. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  7746. * capabilities to determine which HE TB PPDUs are possible by the
  7747. * STA to transmit.
  7748. * 0 - UL MU data operations are enabled by the STA.
  7749. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  7750. * bit is not set, else UL MU Tx is suspended.
  7751. *
  7752. */
  7753. enum qca_wlan_vendor_attr_he_omi_tx {
  7754. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  7755. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  7756. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  7757. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  7758. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  7759. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  7760. /* keep last */
  7761. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
  7762. QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
  7763. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
  7764. };
  7765. /**
  7766. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  7767. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  7768. *
  7769. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  7770. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  7771. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  7772. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  7773. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  7774. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  7775. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  7776. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  7777. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  7778. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  7779. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  7780. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  7781. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  7782. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  7783. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  7784. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  7785. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  7786. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  7787. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  7788. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  7789. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  7790. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  7791. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  7792. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  7793. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  7794. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  7795. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  7796. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  7797. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  7798. */
  7799. enum qca_wlan_vendor_phy_mode {
  7800. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  7801. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  7802. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  7803. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  7804. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  7805. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  7806. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  7807. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  7808. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  7809. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  7810. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  7811. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  7812. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  7813. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  7814. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  7815. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  7816. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  7817. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  7818. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  7819. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  7820. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  7821. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  7822. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  7823. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  7824. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  7825. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  7826. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  7827. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  7828. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  7829. };
  7830. /* Attributes for data used by
  7831. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  7832. */
  7833. enum qca_wlan_vendor_attr_wifi_test_config {
  7834. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  7835. /* 8-bit unsigned value to configure the driver to enable/disable
  7836. * WMM feature. This attribute is used to configure testbed device.
  7837. * 1-enable, 0-disable
  7838. */
  7839. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  7840. /* 8-bit unsigned value to configure the driver to accept/reject
  7841. * the addba request from peer. This attribute is used to configure
  7842. * the testbed device.
  7843. * 1-accept addba, 0-reject addba
  7844. */
  7845. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  7846. /* 8-bit unsigned value to configure the driver to send or not to
  7847. * send the addba request to peer.
  7848. * This attribute is used to configure the testbed device.
  7849. * 1-send addba, 0-do not send addba
  7850. */
  7851. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  7852. /* 8-bit unsigned value to indicate the HE fragmentation support.
  7853. * Uses enum he_fragmentation_val values.
  7854. * This attribute is used to configure the testbed device to
  7855. * allow the advertised hardware capabilities to be downgraded
  7856. * for testing purposes.
  7857. */
  7858. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  7859. /* 8-bit unsigned value to indicate the HE MCS support.
  7860. * Uses enum he_mcs_config values.
  7861. * This attribute is used to configure the testbed device to
  7862. * allow the advertised hardware capabilities to be downgraded
  7863. * for testing purposes.
  7864. */
  7865. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  7866. /* 8-bit unsigned value to configure the driver to allow or not to
  7867. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  7868. * This attribute is used to configure the testbed device.
  7869. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  7870. */
  7871. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  7872. /* 8-bit unsigned value to configure the driver to add a
  7873. * new BA session or delete the existing BA session for
  7874. * given TID. ADDBA command uses the buffer size and tid
  7875. * configuration if user specifies the values else default
  7876. * value for buffer size is used for all tids if the tid
  7877. * also not specified. For DEL_BA command TID value is
  7878. * required to process the command.
  7879. * Uses enum qca_wlan_ba_session_config values.
  7880. * This attribute is used to configure the testbed device.
  7881. */
  7882. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  7883. /* 16-bit unsigned value to configure the buffer size in addba
  7884. * request and response frames.
  7885. * This attribute is used to configure the testbed device.
  7886. * The range of the value is 0 to 256.
  7887. */
  7888. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  7889. /* 8-bit unsigned value to configure the buffer size in addba
  7890. * request and response frames.
  7891. * This attribute is used to configure the testbed device.
  7892. */
  7893. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  7894. /* 8-bit unsigned value to configure the no ack policy.
  7895. * To configure no ack policy, access category value
  7896. * is required to process the command.
  7897. * This attribute is used to configure the testbed device.
  7898. * 1 - enable no ack, 0 - disable no ack
  7899. */
  7900. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  7901. /* 8-bit unsigned value to configure the AC for no ack policy
  7902. * This attribute is used to configure the testbed device.
  7903. * uses the enum qca_wlan_ac_type values
  7904. */
  7905. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  7906. /* 8-bit unsigned value to configure the HE LTF
  7907. * This attribute is used to configure the testbed device.
  7908. * Uses the enum qca_wlan_he_ltf_cfg values.
  7909. */
  7910. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  7911. /* 8-bit unsigned value to configure the tx beamformee.
  7912. * This attribute is used to configure the testbed device.
  7913. * 1 - enable, 0 - disable.
  7914. */
  7915. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  7916. /* 8-bit unsigned value to configure the tx beamformee number of
  7917. * space-time streams.
  7918. * This attribute is used to configure the testbed device.
  7919. * The range of the value is 0 to 8
  7920. */
  7921. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  7922. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  7923. * This attribute is used to configure the testbed device.
  7924. * Uses the enum qca_wlan_ac_type values.
  7925. */
  7926. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  7927. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  7928. * To configure MU EDCA AIFSN value, MU EDCA access category value
  7929. * is required to process the command.
  7930. * This attribute is used to configure the testbed device.
  7931. */
  7932. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  7933. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  7934. * given AC.
  7935. * To configure MU EDCA ECW min value, MU EDCA access category value
  7936. * is required to process the command.
  7937. * This attribute is used to configure the testbed device.
  7938. */
  7939. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  7940. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  7941. * given AC.
  7942. * To configure MU EDCA ECW max value, MU EDCA access category value
  7943. * is required to process the command.
  7944. * This attribute is used to configure the testbed device.
  7945. */
  7946. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  7947. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  7948. * To configure MU EDCA timer value, MU EDCA access category value
  7949. * is required to process the command.
  7950. * This attribute is used to configure the testbed device.
  7951. */
  7952. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  7953. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  7954. * duration.
  7955. * This attribute is used to configure the testbed device.
  7956. * Uses the enum qca_wlan_he_mac_padding_dur values.
  7957. */
  7958. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  7959. /* 8-bit unsigned value to override the MU EDCA params to defaults
  7960. * regardless of the AP beacon MU EDCA params. If it is enabled use
  7961. * the default values else use the MU EDCA params from AP beacon.
  7962. * This attribute is used to configure the testbed device.
  7963. * 1 - enable override, 0 - disable.
  7964. */
  7965. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  7966. /* 8-bit unsigned value to configure the support for receiving
  7967. * an MPDU that contains an operating mode control subfield.
  7968. * This attribute is used to configure the testbed device.
  7969. * 1-enable, 0-disable.
  7970. */
  7971. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  7972. /* Nested attribute values required to setup the TWT session.
  7973. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  7974. * information to set up the session. It contains broadcast flags,
  7975. * set_up flags, trigger value, flow type, flow ID, wake interval
  7976. * exponent, protection, target wake time, wake duration, wake interval
  7977. * mantissa. These nested attributes are used to setup a host triggered
  7978. * TWT session.
  7979. */
  7980. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  7981. /* This nested attribute is used to terminate the current TWT session.
  7982. * It does not currently carry any attributes.
  7983. */
  7984. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  7985. /* This nested attribute is used to suspend the current TWT session.
  7986. * It does not currently carry any attributes.
  7987. */
  7988. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  7989. /* Nested attribute values to indicate the request for resume.
  7990. * This attribute is used to resume the TWT session.
  7991. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  7992. * parameters required to resume the TWT session.
  7993. */
  7994. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  7995. /* 8-bit unsigned value to set the HE operating mode control
  7996. * (OM CTRL) Channel Width subfield.
  7997. * The Channel Width subfield indicates the operating channel width
  7998. * supported by the STA for both reception and transmission.
  7999. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  8000. * This setting is cleared with the
  8001. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8002. * flag attribute to reset defaults.
  8003. * This attribute is used to configure the testbed device.
  8004. */
  8005. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  8006. /* 8-bit unsigned value to configure the number of spatial
  8007. * streams in HE operating mode control field.
  8008. * This setting is cleared with the
  8009. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8010. * flag attribute to reset defaults.
  8011. * This attribute is used to configure the testbed device.
  8012. */
  8013. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  8014. /* Flag attribute to configure the UL MU disable bit in
  8015. * HE operating mode control field.
  8016. * This setting is cleared with the
  8017. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  8018. * flag attribute to reset defaults.
  8019. * This attribute is used to configure the testbed device.
  8020. */
  8021. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  8022. /* Flag attribute to clear the previously set HE operating mode
  8023. * control field configuration.
  8024. * This attribute is used to configure the testbed device to reset
  8025. * defaults to clear any previously set HE operating mode control
  8026. * field configuration.
  8027. */
  8028. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  8029. /* 8-bit unsigned value to configure HE single user PPDU
  8030. * transmission. By default this setting is disabled and it
  8031. * is disabled in the reset defaults of the device configuration.
  8032. * This attribute is used to configure the testbed device.
  8033. * 1-enable, 0-disable
  8034. */
  8035. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  8036. /* 8-bit unsigned value to configure action frame transmission
  8037. * in HE trigger based PPDU transmission.
  8038. * By default this setting is disabled and it is disabled in
  8039. * the reset defaults of the device configuration.
  8040. * This attribute is used to configure the testbed device.
  8041. * 1-enable, 0-disable
  8042. */
  8043. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  8044. /* Nested attribute to indicate HE operating mode control field
  8045. * transmission. It contains operating mode control field Nss,
  8046. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  8047. * These nested attributes are used to send HE operating mode control
  8048. * with configured values.
  8049. * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
  8050. * This attribute is used to configure the testbed device.
  8051. */
  8052. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
  8053. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  8054. * support for the reception of a frame that carries an HE variant
  8055. * HT Control field.
  8056. * This attribute is used to configure the testbed device.
  8057. * 1-enable, 0-disable
  8058. */
  8059. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  8060. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  8061. * This attribute is used to configure the testbed device.
  8062. * 1-enable, 0-disable
  8063. */
  8064. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  8065. /* 8-bit unsigned value to configure HE testbed defaults.
  8066. * This attribute is used to configure the testbed device.
  8067. * 1-set the device HE capabilities to testbed defaults.
  8068. * 0-reset the device HE capabilities to supported config.
  8069. */
  8070. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  8071. /* 8-bit unsigned value to configure twt request support.
  8072. * This attribute is used to configure the testbed device.
  8073. * 1-enable, 0-disable.
  8074. */
  8075. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  8076. /* 8-bit unsigned value to configure protection for Management
  8077. * frames when PMF is enabled for the association.
  8078. * This attribute is used to configure the testbed device.
  8079. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  8080. */
  8081. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  8082. /* Flag attribute to inject Disassociation frame to the connected AP.
  8083. * This attribute is used to configure the testbed device.
  8084. */
  8085. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  8086. /* 8-bit unsigned value to configure an override for the RSNXE Used
  8087. * subfield in the MIC control field of the FTE in FT Reassociation
  8088. * Request frame.
  8089. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  8090. * This attribute is used to configure the testbed device.
  8091. * This attribute can be configured when STA is in disconnected or
  8092. * associated state and the configuration is valid until the next
  8093. * disconnection.
  8094. */
  8095. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  8096. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  8097. * Switch Announcement) when STA is in connected state.
  8098. * 0 - Default behavior, 1 - Ignore CSA.
  8099. * This attribute is used to configure the testbed device.
  8100. * This attribute can be configured when STA is in disconnected or
  8101. * associated state and the configuration is valid until the next
  8102. * disconnection.
  8103. */
  8104. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  8105. /* Nested attribute values required to configure OCI (Operating Channel
  8106. * Information). Attributes defined in enum
  8107. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  8108. * This attribute is used to configure the testbed device.
  8109. * This attribute can be configured when STA is in disconnected or
  8110. * associated state and the configuration is valid until the next
  8111. * disconnection.
  8112. */
  8113. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  8114. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  8115. * Query timeout. If this configuration is enabled STA shall not send
  8116. * Deauthentication frmae when SA Query times out (mainly, after a
  8117. * channel switch when OCV is enabled).
  8118. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  8119. * This attribute is used to configure the testbed device.
  8120. * This attribute can be configured only when STA is in associated state
  8121. * and the configuration is valid until the disconnection.
  8122. */
  8123. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  8124. /* 8-bit unsigned value to configure the driver/firmware to start or
  8125. * stop transmitting FILS discovery frames.
  8126. * 0 - Stop transmitting FILS discovery frames
  8127. * 1 - Start transmitting FILS discovery frames
  8128. * This attribute is used to configure the testbed device.
  8129. * This attribute can be configured only in AP mode and the
  8130. * configuration is valid until AP restart.
  8131. */
  8132. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  8133. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8134. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  8135. * information field.
  8136. * 0 - Disable full bandwidth UL MU-MIMO subfield
  8137. * 1 - Enable full bandwidth UL MU-MIMO subfield
  8138. * This attribute is used to configure the testbed device.
  8139. */
  8140. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  8141. /* 16-bit unsigned value to configure the driver with a specific BSS
  8142. * max idle period to advertise in the BSS Max Idle Period element
  8143. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  8144. * This attribute is used to configure the testbed device.
  8145. */
  8146. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  8147. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  8148. * for data transmission.
  8149. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  8150. * This attribute is used to configure the testbed device.
  8151. */
  8152. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  8153. /* 8-bit unsigned value to configure the driver to disable data and
  8154. * management response frame transmission to test the BSS max idle
  8155. * feature.
  8156. * 0 - Default behavior, 1 - Disable data and management response Tx.
  8157. * This attribute is used to configure the testbed device.
  8158. */
  8159. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  8160. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8161. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  8162. * information field.
  8163. * 0 - Disable Punctured Preamble Rx subfield
  8164. * 1 - Enable Punctured Preamble Rx subfield
  8165. * This attribute is used to configure the testbed device.
  8166. */
  8167. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  8168. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  8169. * requirement mismatch for 6 GHz connection.
  8170. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  8171. * This attribute is used to configure the testbed device.
  8172. */
  8173. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  8174. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  8175. * connection with all security modes.
  8176. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  8177. * modes.
  8178. * This attribute is used for testing purposes.
  8179. */
  8180. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  8181. /* 8-bit unsigned value to configure the driver to transmit data with
  8182. * ER SU PPDU type.
  8183. *
  8184. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  8185. * This attribute is used for testing purposes.
  8186. */
  8187. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  8188. /* 8-bit unsigned value to configure the driver to use Data or
  8189. * Management frame type for keep alive data.
  8190. * Uses enum qca_wlan_keep_alive_data_type values.
  8191. *
  8192. * This attribute is used for testing purposes.
  8193. */
  8194. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  8195. /* 8-bit unsigned value to configure the driver to use scan request
  8196. * BSSID value in Probe Request frame RA(A1) during the scan. The
  8197. * driver saves this configuration and applies this setting to all user
  8198. * space scan requests until the setting is cleared. If this
  8199. * configuration is set, the driver uses the BSSID value from the scan
  8200. * request to set the RA(A1) in the Probe Request frames during the
  8201. * scan.
  8202. *
  8203. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  8204. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  8205. * This attribute is used for testing purposes.
  8206. */
  8207. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  8208. /* 8-bit unsigned value to configure the driver to enable/disable the
  8209. * BSS max idle period support.
  8210. *
  8211. * 0 - Disable the BSS max idle support.
  8212. * 1 - Enable the BSS max idle support.
  8213. * This attribute is used for testing purposes.
  8214. */
  8215. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  8216. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8217. * disable Rx control frame to MultiBSS subfield in the HE MAC
  8218. * capabilities information field.
  8219. * 0 - Disable Rx control frame to MultiBSS subfield
  8220. * 1 - Enable Rx control frame to MultiBSS subfield
  8221. * This attribute is used to configure the testbed device.
  8222. */
  8223. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  8224. /* 8-bit unsigned value to configure the driver/firmware to enable or
  8225. * disable Broadcast TWT support subfield in the HE MAC capabilities
  8226. * information field.
  8227. * 0 - Disable Broadcast TWT support subfield
  8228. * 1 - Enable Broadcast TWT support subfield
  8229. * This attribute is used to configure the testbed device.
  8230. */
  8231. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  8232. /* keep last */
  8233. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  8234. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  8235. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  8236. };
  8237. /**
  8238. * enum qca_wlan_twt_operation - Operation of the config TWT request
  8239. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  8240. * The response for the respective operations can be either synchronous or
  8241. * asynchronous (wherever specified). If synchronous, the response to this
  8242. * operation is obtained in the corresponding vendor command reply to the user
  8243. * space. For the asynchronous case the response is obtained as an event with
  8244. * the same operation type.
  8245. *
  8246. * Drivers shall support either of these modes but not both simultaneously.
  8247. * This support for asynchronous mode is advertised through the flag
  8248. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  8249. * the driver shall support synchronous mode.
  8250. *
  8251. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  8252. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8253. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  8254. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  8255. * synchronous or asynchronous operation.
  8256. *
  8257. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  8258. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8259. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  8260. *
  8261. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  8262. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8263. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  8264. * This terminate can either get triggered by the user space or can as well be
  8265. * a notification from the firmware if it initiates a terminate.
  8266. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  8267. * the request from user space can either be a synchronous or asynchronous
  8268. * operation.
  8269. *
  8270. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  8271. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8272. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  8273. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  8274. * this is either a synchronous or asynchronous operation.
  8275. *
  8276. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  8277. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  8278. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  8279. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  8280. * request.
  8281. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  8282. * capability, this is either a synchronous or asynchronous operation.
  8283. *
  8284. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  8285. * combination of suspend and resume in a single request. Required parameters
  8286. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  8287. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  8288. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  8289. * capability, this is either a synchronous or asynchronous operation.
  8290. *
  8291. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  8292. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  8293. * session is setup. It's a synchronous operation.
  8294. *
  8295. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  8296. * Valid only after the TWT session is setup. It's a synchronous operation.
  8297. *
  8298. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  8299. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  8300. * operation.
  8301. *
  8302. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmare is
  8303. * ready for a new TWT session setup after it issued a twt teardown.
  8304. */
  8305. enum qca_wlan_twt_operation {
  8306. QCA_WLAN_TWT_SET = 0,
  8307. QCA_WLAN_TWT_GET = 1,
  8308. QCA_WLAN_TWT_TERMINATE = 2,
  8309. QCA_WLAN_TWT_SUSPEND = 3,
  8310. QCA_WLAN_TWT_RESUME = 4,
  8311. QCA_WLAN_TWT_NUDGE = 5,
  8312. QCA_WLAN_TWT_GET_STATS = 6,
  8313. QCA_WLAN_TWT_CLEAR_STATS = 7,
  8314. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  8315. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  8316. };
  8317. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  8318. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  8319. *
  8320. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  8321. * u8 attribute. Specify the TWT operation of this request. Possible values
  8322. * are defined in enum qca_wlan_twt_operation. The parameters for the
  8323. * respective operation is specified through
  8324. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  8325. *
  8326. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  8327. * parameters configured for TWT. These parameters are represented by
  8328. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume
  8329. * or enum qca_wlan_vendor_attr_twt_stats based on the operation.
  8330. */
  8331. enum qca_wlan_vendor_attr_config_twt {
  8332. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  8333. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  8334. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  8335. /* keep last */
  8336. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  8337. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  8338. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  8339. };
  8340. /**
  8341. * qca_wlan_twt_setup_state: Represents the TWT session states.
  8342. *
  8343. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  8344. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  8345. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  8346. */
  8347. enum qca_wlan_twt_setup_state {
  8348. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  8349. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  8350. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  8351. };
  8352. /**
  8353. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  8354. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  8355. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  8356. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  8357. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  8358. *
  8359. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  8360. * Disable (flag attribute not present) - Individual TWT
  8361. * Enable (flag attribute present) - Broadcast TWT.
  8362. * Individual means the session is between the STA and the AP.
  8363. * This session is established using a separate negotiation between
  8364. * STA and AP.
  8365. * Broadcast means the session is across multiple STAs and an AP. The
  8366. * configuration parameters are announced in Beacon frames by the AP.
  8367. * This is used in
  8368. * 1. TWT SET Request and Response
  8369. * 2. TWT GET Response
  8370. *
  8371. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  8372. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  8373. * specify the TWT request type. This is used in TWT SET operation.
  8374. *
  8375. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  8376. * Enable (flag attribute present) - TWT with trigger support.
  8377. * Disable (flag attribute not present) - TWT without trigger support.
  8378. * Trigger means the AP will send the trigger frame to allow STA to send data.
  8379. * Without trigger, the STA will wait for the MU EDCA timer before
  8380. * transmitting the data.
  8381. * This is used in
  8382. * 1. TWT SET Request and Response
  8383. * 2. TWT GET Response
  8384. *
  8385. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  8386. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  8387. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  8388. * NULL frame to AP.
  8389. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  8390. * This is a required parameter for
  8391. * 1. TWT SET Request and Response
  8392. * 2. TWT GET Response
  8393. *
  8394. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  8395. * Flow ID is the unique identifier for each TWT session.
  8396. * If not provided then dialog ID will be set to zero.
  8397. * This is an optional parameter for
  8398. * 1. TWT SET Request and Response
  8399. * 2. TWT GET Request and Response
  8400. * 3. TWT TERMINATE Request and Response
  8401. * 4. TWT SUSPEND Request and Response
  8402. * Flow Id values from 0 to 254 represent a single TWT session
  8403. * Flow ID value of 255 represents all twt sessions for the following
  8404. * 1. TWT TERMINATE Request and Response
  8405. * 2. TWT SUSPEND Request and Response
  8406. * 4. TWT CLEAR STATISTICS request
  8407. * 5. TWT GET STATISTICS request and response
  8408. * If an invalid dialog id is provided, status
  8409. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  8410. *
  8411. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  8412. * This attribute (exp) is used along with the mantissa to derive the
  8413. * wake interval using the following formula:
  8414. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  8415. * Wake interval is the interval between 2 successive SP.
  8416. * This is a required parameter for
  8417. * 1. TWT SET Request and Response
  8418. * 2. TWT GET Response
  8419. *
  8420. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  8421. * Enable (flag attribute present) - Protection required.
  8422. * Disable (flag attribute not present) - Protection not required.
  8423. * If protection is enabled, then the AP will use protection
  8424. * mechanism using RTS/CTS to self to reserve the airtime.
  8425. * This is used in
  8426. * 1. TWT SET Request and Response
  8427. * 2. TWT GET Response
  8428. *
  8429. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  8430. * This attribute is used as the SP offset which is the offset from
  8431. * TSF after which the wake happens. The units are in microseconds. If
  8432. * this attribute is not provided, then the value will be set to zero.
  8433. * This is an optional parameter for
  8434. * 1. TWT SET Request and Response
  8435. * 2. TWT GET Response
  8436. *
  8437. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  8438. * This is the duration of the service period. This is specified as
  8439. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  8440. * This is a required parameter for
  8441. * 1. TWT SET Request and Response
  8442. * 2. TWT GET Response
  8443. *
  8444. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  8445. * This attribute is used to configure wake interval mantissa.
  8446. * The units are in TU.
  8447. * This is a required parameter for
  8448. * 1. TWT SET Request and Response
  8449. * 2. TWT GET Response
  8450. *
  8451. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  8452. * This field is applicable for TWT response only.
  8453. * This contains status values in enum qca_wlan_vendor_twt_status
  8454. * and is passed to the userspace. This is used in TWT SET operation.
  8455. * This is a required parameter for
  8456. * 1. TWT SET Response
  8457. * 2. TWT TERMINATE Response
  8458. * 3. TWT SUSPEND Response
  8459. * 4. TWT RESUME Response
  8460. * 5. TWT NUDGE Response
  8461. *
  8462. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  8463. * This field is applicable for TWT response only.
  8464. * This field contains response type from the TWT responder and is
  8465. * passed to the userspace. The values for this field are defined in
  8466. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  8467. * response.
  8468. *
  8469. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  8470. * In TWT setup command this field contains absolute TSF that will
  8471. * be used by TWT requester during setup.
  8472. * In TWT response this field contains absolute TSF value of the
  8473. * wake time received from the TWT responder and is passed to
  8474. * the userspace.
  8475. * This is an optional parameter for
  8476. * 1. TWT SET Request
  8477. * This is a required parameter for
  8478. * 1. TWT SET Response
  8479. * 2. TWT GET Response
  8480. *
  8481. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  8482. * Enable (flag attribute present) - Indicates that the TWT responder
  8483. * supports reception of TWT information frame from the TWT requestor.
  8484. * Disable (flag attribute not present) - Indicates that the responder
  8485. * doesn't support reception of TWT information frame from requestor.
  8486. * This is used in
  8487. * 1. TWT SET Response
  8488. * 2. TWT GET Response
  8489. *
  8490. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  8491. * Represents the MAC address of the peer for which the TWT session
  8492. * is being configured. This is used in AP mode to represent the respective
  8493. * client
  8494. * In AP mode, this is a required parameter in response for
  8495. * 1. TWT SET
  8496. * 2. TWT GET
  8497. * 3. TWT TERMINATE
  8498. * 4. TWT SUSPEND
  8499. * In STA mode, this is an optional parameter in request and response for
  8500. * the above four TWT operations.
  8501. * In AP mode, this is a required parameter in request for
  8502. * 1. TWT GET
  8503. * 2. TWT TERMINATE
  8504. *
  8505. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  8506. * Minimum tolerance limit of wake interval parameter in microseconds.
  8507. *
  8508. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  8509. * Maximum tolerance limit of wake interval parameter in microseconds.
  8510. *
  8511. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  8512. * Minimum tolerance limit of wake duration parameter in microseconds.
  8513. *
  8514. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  8515. * Maximum tolerance limit of wake duration parameter in microseconds.
  8516. *
  8517. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  8518. * TWT state for the given dialog id. The values for this are represented
  8519. * by enum qca_wlan_twt_setup_state.
  8520. * This is obtained through TWT GET operation.
  8521. *
  8522. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  8523. * This attribute is used to configure wake interval mantissa.
  8524. * The unit is microseconds. This attribute, when specified, takes
  8525. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  8526. * This parameter is used for
  8527. * 1. TWT SET Request and Response
  8528. * 2. TWT GET Response
  8529. *
  8530. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  8531. * This attribute is used to configure Broadcast TWT ID.
  8532. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  8533. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  8534. * This parameter is used for
  8535. * 1. TWT SET Request
  8536. * 2. TWT TERMINATE Request
  8537. *
  8538. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  8539. * This attribute is used to configure Broadcast TWT recommendation.
  8540. * The Broadcast TWT Recommendation subfield contains a value that indicates
  8541. * recommendations on the types of frames that are transmitted by TWT
  8542. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  8543. * The allowed values are 0 - 3.
  8544. * This parameter is used for
  8545. * 1. TWT SET Request
  8546. *
  8547. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  8548. * This attribute is used to configure Broadcast TWT Persistence.
  8549. * The Broadcast TWT Persistence subfield indicates the number of
  8550. * TBTTs during which the Broadcast TWT SPs corresponding to this
  8551. * broadcast TWT Parameter set are present. The number of beacon intervals
  8552. * during which the Broadcast TWT SPs are present is equal to the value in the
  8553. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  8554. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  8555. * This parameter is used for
  8556. * 1. TWT SET Request
  8557. *
  8558. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  8559. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  8560. * from TWT response frame.
  8561. * This parameter is used for
  8562. * 1. TWT SET Response
  8563. * 2. TWT GET Response
  8564. */
  8565. enum qca_wlan_vendor_attr_twt_setup {
  8566. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  8567. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  8568. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  8569. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  8570. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  8571. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  8572. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  8573. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  8574. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  8575. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  8576. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  8577. /* TWT Response only attributes */
  8578. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  8579. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  8580. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  8581. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  8582. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  8583. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  8584. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  8585. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  8586. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  8587. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  8588. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  8589. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  8590. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  8591. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  8592. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  8593. /* keep last */
  8594. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  8595. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  8596. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  8597. };
  8598. /**
  8599. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  8600. * TWT operation
  8601. *
  8602. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  8603. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  8604. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  8605. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  8606. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  8607. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  8608. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  8609. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  8610. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  8611. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  8612. * request/response frame
  8613. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  8614. * frame
  8615. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  8616. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  8617. * unknown reason
  8618. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  8619. * suspend state
  8620. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  8621. * invalid IE in the received TWT frame
  8622. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  8623. * the responder are not in the specified range
  8624. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  8625. * session due to request from the responder. Used on the TWT_TERMINATE
  8626. * notification from the firmware.
  8627. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  8628. * session due to roaming. Used on the TWT_TERMINATE notification from the
  8629. * firmware.
  8630. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  8631. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  8632. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  8633. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  8634. * request due to roaming in progress.
  8635. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  8636. * setup request due to channel switch in progress.
  8637. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  8638. * request due to scan in progress.
  8639. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  8640. * terminate an existing TWT session on power save exit request from userspace.
  8641. * Used on the TWT_TERMINATE notification from the driver/firmware.
  8642. */
  8643. enum qca_wlan_vendor_twt_status {
  8644. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  8645. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  8646. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  8647. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  8648. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  8649. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  8650. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  8651. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  8652. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  8653. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  8654. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  8655. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  8656. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  8657. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  8658. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  8659. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  8660. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  8661. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  8662. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  8663. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  8664. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  8665. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  8666. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  8667. };
  8668. /**
  8669. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  8670. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  8671. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  8672. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  8673. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  8674. *
  8675. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  8676. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  8677. * These attributes are used as the SP offset which is the offset from TSF after
  8678. * which the wake happens. The units are in microseconds. Please note that
  8679. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  8680. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  8681. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  8682. * will be set to zero.
  8683. *
  8684. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  8685. * This attribute represents the next TWT subfield size.
  8686. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  8687. * and 4 for 64 bits.
  8688. *
  8689. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  8690. * Flow ID is the unique identifier for each TWT session. This attribute
  8691. * represents the respective TWT session to resume.
  8692. * Flow Id values from 0 to 254 represent a single TWT session
  8693. * Flow ID value of 255 represents all TWT sessions.
  8694. * If an invalid dialog id is provided, status
  8695. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  8696. *
  8697. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  8698. * Represents the MAC address of the peer to which TWT Resume is
  8699. * being sent. This is used in AP mode to represent the respective
  8700. * client and is a required parameter. In STA mode, this is an optional
  8701. * parameter
  8702. *
  8703. */
  8704. enum qca_wlan_vendor_attr_twt_resume {
  8705. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  8706. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  8707. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  8708. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  8709. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  8710. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  8711. /* keep last */
  8712. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  8713. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  8714. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  8715. };
  8716. /**
  8717. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  8718. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  8719. * and resume in a single request. These attributes are sent as part of
  8720. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  8721. *
  8722. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  8723. * Flow ID is the unique identifier for each TWT session. This attribute
  8724. * represents the respective TWT session to suspend and resume.
  8725. *
  8726. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  8727. * Flow ID is the unique identifier for each TWT session. This attribute
  8728. * represents the respective TWT session to suspend and resume.
  8729. * Flow Id values from 0 to 254 represent a single TWT session
  8730. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  8731. * and response.
  8732. * If an invalid dialog id is provided, status
  8733. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  8734. *
  8735. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  8736. * This attribute is used as the SP offset which is the offset from
  8737. * TSF after which the wake happens. The units are in microseconds.
  8738. *
  8739. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  8740. * This attribute represents the next TWT subfield size.
  8741. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  8742. * and 4 for 64 bits.
  8743. *
  8744. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  8745. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  8746. * being sent. This is used in AP mode to represent the respective
  8747. * client and is a required parameter. In STA mode, this is an optional
  8748. * parameter.
  8749. *
  8750. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  8751. * This field contains absolute TSF value of the time at which twt
  8752. * sesion will be resumed.
  8753. */
  8754. enum qca_wlan_vendor_attr_twt_nudge {
  8755. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  8756. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  8757. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  8758. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  8759. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  8760. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  8761. /* keep last */
  8762. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  8763. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  8764. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  8765. };
  8766. /**
  8767. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  8768. * TWT (Target Wake Time) get statistics and clear statistics request.
  8769. * These attributes are sent as part of
  8770. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  8771. *
  8772. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  8773. * Flow ID is the unique identifier for each TWT session. This attribute
  8774. * represents the respective TWT session for get and clear TWT statistics.
  8775. * Flow Id values from 0 to 254 represent a single TWT session
  8776. * Flow ID value of 255 represents all TWT sessions in
  8777. * 1) TWT GET STATISTICS request and response
  8778. * 2) TWT CLEAR STATISTICS request
  8779. *
  8780. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  8781. * Represents the MAC address of the peer for which TWT Statistics
  8782. * is required.
  8783. * In AP mode this is used to represent the respective
  8784. * client and is a required parameter for
  8785. * 1) TWT GET STATISTICS request and response
  8786. * 2) TWT CLEAR STATISTICS request and response
  8787. * In STA mode, this is an optional parameter.
  8788. *
  8789. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  8790. * This is the duration of the service period in microseconds.
  8791. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8792. *
  8793. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  8794. * Average of actual wake duration observed so far. Unit is microseconds.
  8795. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8796. *
  8797. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  8798. * Number of TWT service period elapsed so far.
  8799. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8800. *
  8801. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  8802. * This is the minimum value of wake duration observed across
  8803. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  8804. * microseconds.
  8805. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8806. *
  8807. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  8808. * This is the maximum value of wake duration observed across
  8809. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  8810. * microseconds.
  8811. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8812. *
  8813. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  8814. * Average number of MPDU's transmitted successfully across
  8815. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  8816. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8817. *
  8818. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  8819. * Average number of MPDU's received successfully across
  8820. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  8821. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8822. *
  8823. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  8824. * Average number of bytes transmitted successfully across
  8825. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  8826. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8827. *
  8828. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  8829. * Average number of bytes received successfully across
  8830. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  8831. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8832. *
  8833. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  8834. * Status of the TWT GET STATISTICS request.
  8835. * This contains status values in enum qca_wlan_vendor_twt_status
  8836. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  8837. */
  8838. enum qca_wlan_vendor_attr_twt_stats {
  8839. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  8840. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  8841. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  8842. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  8843. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  8844. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  8845. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  8846. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  8847. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  8848. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  8849. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  8850. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  8851. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  8852. /* keep last */
  8853. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  8854. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  8855. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  8856. };
  8857. /**
  8858. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  8859. * supported by the device and peer.
  8860. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  8861. *
  8862. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  8863. * TWT non-scheduling STA. This capability is advertised in the HE
  8864. * capability/Extended capabilities information element in the
  8865. * Association request frame by the device.
  8866. *
  8867. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  8868. * by the TWT scheduling AP. This capability is advertised in the extended
  8869. * capabilities/HE capabilities information element.
  8870. *
  8871. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  8872. * for the broadcast TWT functionality. On responder side, this indicates
  8873. * support for the role of broadcast TWT scheduling functionality. This
  8874. * capability is advertised in the HE capabilities information element.
  8875. *
  8876. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  8877. * This capability is advertised in the HE capabilities information element.
  8878. *
  8879. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  8880. * that it mandates the associated HE STAs to support TWT. This capability is
  8881. * advertised by AP in the HE Operation Parameters field of the HE operation
  8882. * information element.
  8883. */
  8884. enum qca_wlan_twt_capa {
  8885. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  8886. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  8887. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  8888. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  8889. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  8890. };
  8891. /**
  8892. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  8893. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  8894. * operation.
  8895. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  8896. * Represents the MAC address of the peer for which the TWT capabilities
  8897. * are being queried. This is used in AP mode to represent the respective
  8898. * client. In STA mode, this is an optional parameter.
  8899. *
  8900. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  8901. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  8902. * enum qca_wlan_twt_capa.
  8903. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  8904. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  8905. * enum qca_wlan_twt_capa.
  8906. */
  8907. enum qca_wlan_vendor_attr_twt_capability {
  8908. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  8909. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  8910. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  8911. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  8912. /* keep last */
  8913. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  8914. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  8915. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  8916. };
  8917. /**
  8918. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  8919. * the TWT responder
  8920. *
  8921. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  8922. * parameters that are different from TWT requesting STA suggested
  8923. * or demanded TWT parameters
  8924. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  8925. * parameters that are different from TWT requesting STA TWT suggested
  8926. * or demanded parameters
  8927. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  8928. * setup
  8929. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  8930. * setup.
  8931. */
  8932. enum qca_wlan_vendor_twt_setup_resp_type {
  8933. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  8934. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  8935. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  8936. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  8937. };
  8938. /**
  8939. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  8940. * Represents the setup type being requested for TWT.
  8941. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  8942. * parameters but relying on AP to fill the parameters during the negotiation.
  8943. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  8944. * values which the AP may accept or AP may provide alternative parameters
  8945. * which the STA may accept.
  8946. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  8947. * alternate parameters than the requested ones.
  8948. */
  8949. enum qca_wlan_vendor_twt_setup_req_type {
  8950. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  8951. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  8952. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  8953. };
  8954. /**
  8955. * enum qca_wlan_throughput_level - Current throughput level
  8956. *
  8957. * Indicates the current level of throughput calculated by driver. The driver
  8958. * may choose different thresholds to decide whether the throughput level is
  8959. * low or medium or high based on variety of parameters like physical link
  8960. * capacity of current connection, number of pakcets being dispatched per
  8961. * second etc. The throughput level events might not be consistent with the
  8962. * actual current throughput value being observed.
  8963. *
  8964. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  8965. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  8966. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  8967. */
  8968. enum qca_wlan_throughput_level {
  8969. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  8970. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  8971. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  8972. };
  8973. /**
  8974. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  8975. * report throughput changes from driver to user space. enum values are used
  8976. * for NL attributes sent with
  8977. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  8978. */
  8979. enum qca_wlan_vendor_attr_throughput_change {
  8980. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  8981. /*
  8982. * Indicates the direction of throughput in which the change is being
  8983. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  8984. */
  8985. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  8986. /*
  8987. * Indicates the newly observed throughput level.
  8988. * qca_wlan_throughput_level describes the possible range of values.
  8989. * u8 attribute.
  8990. */
  8991. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  8992. /*
  8993. * Indicates the driver's guidance on the new value to be set to
  8994. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  8995. * may optionally include this attribute.
  8996. */
  8997. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  8998. /*
  8999. * Indicates the driver's guidance on the new value to be set to
  9000. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  9001. * values are from -31 to 31. Driver may optionally include this
  9002. * attribute.
  9003. */
  9004. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  9005. /*
  9006. * Indicates the driver's guidance on the new value to be set to
  9007. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  9008. * optionally include this attribute.
  9009. */
  9010. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  9011. /* keep last */
  9012. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  9013. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  9014. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  9015. };
  9016. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  9017. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  9018. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  9019. */
  9020. enum qca_wlan_nan_ext_subcmd_type {
  9021. /* Subcmd of type NAN Enable Request */
  9022. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  9023. /* Subcmd of type NAN Disable Request */
  9024. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  9025. };
  9026. /**
  9027. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  9028. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  9029. */
  9030. enum qca_wlan_vendor_attr_nan_params {
  9031. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  9032. /* Carries NAN command for firmware component. Every vendor command
  9033. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  9034. * payload containing the NAN command. NLA_BINARY attribute.
  9035. */
  9036. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  9037. /* Indicates the type of NAN command sent with
  9038. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  9039. * describes the possible range of values. This attribute is mandatory
  9040. * if the command being issued is either
  9041. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  9042. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  9043. */
  9044. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  9045. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  9046. * band. This attribute is mandatory when command type is
  9047. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  9048. */
  9049. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  9050. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  9051. * band. This attribute is optional and should be included when command
  9052. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  9053. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  9054. */
  9055. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  9056. /* keep last */
  9057. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  9058. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  9059. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  9060. };
  9061. /**
  9062. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  9063. * transport modes and is used by attribute
  9064. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  9065. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  9066. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  9067. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  9068. * data. The data shall be encapsulated within
  9069. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along withe vendor sub command
  9070. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  9071. */
  9072. enum qca_wlan_vendor_cfr_data_transport_modes {
  9073. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  9074. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  9075. };
  9076. /**
  9077. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  9078. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  9079. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  9080. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  9081. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  9082. * with phase
  9083. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  9084. */
  9085. enum qca_wlan_vendor_cfr_method {
  9086. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  9087. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  9088. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  9089. };
  9090. /**
  9091. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  9092. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  9093. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  9094. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  9095. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  9096. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  9097. * is provided by one or more of below attributes:
  9098. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  9099. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  9100. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  9101. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  9102. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  9103. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  9104. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  9105. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  9106. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  9107. */
  9108. enum qca_wlan_vendor_cfr_capture_type {
  9109. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  9110. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  9111. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  9112. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  9113. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  9114. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  9115. };
  9116. /**
  9117. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  9118. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  9119. * Channel Frequency Response capture parameters and enable periodic CFR
  9120. * capture.
  9121. *
  9122. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  9123. * MAC address of peer. This is for CFR version 1 only.
  9124. *
  9125. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  9126. * Enable peer CFR Capture. This attribute is mandatory to
  9127. * enable peer CFR capture. If this attribute is not present,
  9128. * peer CFR capture is disabled.
  9129. *
  9130. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  9131. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  9132. * Supported values: 20, 40, 80, 80+80, 160.
  9133. * Note that all targets may not support all bandwidths.
  9134. * This attribute is mandatory for version 1 if attribute
  9135. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9136. *
  9137. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  9138. * Periodicity of CFR measurement in msec.
  9139. * Periodicity should be a multiple of Base timer.
  9140. * Current Base timer value supported is 10 msecs (default).
  9141. * 0 for one shot capture.
  9142. * This attribute is mandatory for version 1 if attribute
  9143. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9144. *
  9145. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  9146. * Method used to capture Channel Frequency Response.
  9147. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  9148. * This attribute is mandatory for version 1 if attribute
  9149. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  9150. *
  9151. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  9152. * Enable periodic CFR capture.
  9153. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  9154. * If this attribute is not present, periodic CFR capture is disabled.
  9155. *
  9156. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  9157. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  9158. * can't be enabled at same time. This attribute is mandatory if target
  9159. * support both versions and use one of them.
  9160. *
  9161. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  9162. * This attribute is mandatory for version 2 if
  9163. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  9164. * Bits 15:0 Bit fields indicating which group to be enabled.
  9165. * Bits 31:16 Reserved for future use.
  9166. *
  9167. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  9168. * CFR capture duration in microsecond. This attribute is mandatory for
  9169. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  9170. *
  9171. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  9172. * CFR capture interval in microsecond. This attribute is mandatory for
  9173. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  9174. *
  9175. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  9176. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  9177. * This attribute is mandatory for version 2.
  9178. *
  9179. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  9180. * Bit fields indicating which user in the current UL MU
  9181. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  9182. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  9183. * then the CFR capture will happen for user index 0 in the current
  9184. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  9185. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  9186. * This is for CFR version 2 only.
  9187. *
  9188. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  9189. * Indicates the number of consecutive Rx packets to be skipped
  9190. * before CFR capture is enabled again.
  9191. * This is for CFR version 2 only.
  9192. *
  9193. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  9194. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  9195. *
  9196. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  9197. * the following GROUP attributes:
  9198. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  9199. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  9200. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  9201. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  9202. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  9203. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  9204. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  9205. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  9206. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  9207. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  9208. *
  9209. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  9210. * Target support multiple groups for some configurations. Group number could be
  9211. * any value between 0 and 15. This is for CFR version 2 only.
  9212. *
  9213. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  9214. * Transmitter address which is used to filter packets, this MAC address takes
  9215. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  9216. * This is for CFR version 2 only.
  9217. *
  9218. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  9219. * Receiver address which is used to filter packets, this MAC address takes
  9220. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  9221. * This is for CFR version 2 only.
  9222. *
  9223. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  9224. * Mask of transmitter address which is used to filter packets.
  9225. * This is for CFR version 2 only.
  9226. *
  9227. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  9228. * Mask of receiver address which is used to filter packets.
  9229. * This is for CFR version 2 only.
  9230. *
  9231. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  9232. * Indicates packets with a specific NSS will be filtered for CFR capture.
  9233. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  9234. * be done for packets matching the NSS specified within this bitmask.
  9235. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  9236. * bit 0 : NSS 1
  9237. * bit 1 : NSS 2
  9238. * ...
  9239. * bit 7 : NSS 8
  9240. *
  9241. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  9242. * Indicates packets with a specific BW will be filtered for CFR capture.
  9243. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  9244. * will be done for packets matching the bandwidths specified within this
  9245. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  9246. * numerated in enum nl80211_band (although not all bands may be supported
  9247. * by a given device).
  9248. *
  9249. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  9250. * Management packets matching the subtype filter categories will be
  9251. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9252. * represents the corresponding mgmt subtype value as per
  9253. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9254. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  9255. * This is for CFR version 2 only
  9256. *
  9257. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  9258. * Control packets matching the subtype filter categories will be
  9259. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9260. * represents the corresponding control subtype value as per
  9261. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9262. * This is for CFR version 2 only.
  9263. *
  9264. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  9265. * Data packets matching the subtype filter categories will be
  9266. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  9267. * represents the corresponding data subtype value as per
  9268. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  9269. * This is for CFR version 2 only.
  9270. *
  9271. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  9272. * Userspace can use this attribute to specify the driver about which transport
  9273. * mode shall be used by the driver to send CFR data to userspace. Uses values
  9274. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  9275. * not present, driver shall choose the default transport mechanism which is
  9276. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  9277. *
  9278. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  9279. * Userspace can use this attribute to specify the nl port id of the application
  9280. * which receives the CFR data and processes it further so that the drivers can
  9281. * unicast the NL events to a specific application. Optionally included when
  9282. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  9283. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  9284. * shall multicast the netlink events when this attribute is not included.
  9285. *
  9286. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  9287. * This attribute will be used by the driver to encapsulate and send CFR data
  9288. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  9289. * asynchronous event when the driver is configured to send CFR data using NL
  9290. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  9291. *
  9292. */
  9293. enum qca_wlan_vendor_peer_cfr_capture_attr {
  9294. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  9295. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  9296. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  9297. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  9298. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  9299. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  9300. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  9301. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  9302. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  9303. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  9304. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  9305. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  9306. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  9307. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  9308. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  9309. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  9310. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  9311. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  9312. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  9313. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  9314. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  9315. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  9316. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  9317. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  9318. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  9319. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  9320. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  9321. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  9322. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  9323. /* Keep last */
  9324. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  9325. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  9326. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  9327. };
  9328. /**
  9329. * enum qca_coex_config_profiles - This enum defines different types of
  9330. * traffic streams that can be prioritized one over the other during coex
  9331. * scenarios.
  9332. * The types defined in this enum are categorized in the below manner.
  9333. * 0 - 31 values corresponds to WLAN
  9334. * 32 - 63 values corresponds to BT
  9335. * 64 - 95 values corresponds to Zigbee
  9336. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  9337. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  9338. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  9339. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  9340. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  9341. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  9342. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  9343. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  9344. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  9345. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  9346. * @QCA_BT_A2DP: Prioritize BT A2DP
  9347. * @QCA_BT_BLE: Prioritize BT BLE
  9348. * @QCA_BT_SCO: Prioritize BT SCO
  9349. * @QCA_ZB_LOW: Prioritize Zigbee Low
  9350. * @QCA_ZB_HIGH: Prioritize Zigbee High
  9351. */
  9352. enum qca_coex_config_profiles {
  9353. /* 0 - 31 corresponds to WLAN */
  9354. QCA_WIFI_STA_DISCOVERY = 0,
  9355. QCA_WIFI_STA_CONNECTION = 1,
  9356. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  9357. QCA_WIFI_STA_DATA = 3,
  9358. QCA_WIFI_STA_ALL = 4,
  9359. QCA_WIFI_SAP_DISCOVERY = 5,
  9360. QCA_WIFI_SAP_CONNECTION = 6,
  9361. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  9362. QCA_WIFI_SAP_DATA = 8,
  9363. QCA_WIFI_SAP_ALL = 9,
  9364. QCA_WIFI_CASE_MAX = 31,
  9365. /* 32 - 63 corresponds to BT */
  9366. QCA_BT_A2DP = 32,
  9367. QCA_BT_BLE = 33,
  9368. QCA_BT_SCO = 34,
  9369. QCA_BT_CASE_MAX = 63,
  9370. /* 64 - 95 corresponds to Zigbee */
  9371. QCA_ZB_LOW = 64,
  9372. QCA_ZB_HIGH = 65,
  9373. QCA_ZB_CASE_MAX = 95,
  9374. /* 0xff is default value if the u8 profile value is not set. */
  9375. QCA_PROFILE_DEFAULT_VALUE = 255
  9376. };
  9377. /**
  9378. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  9379. * This enum defines the valid set of values of coex configuration types. These
  9380. * values may used by attribute
  9381. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  9382. *
  9383. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  9384. * weights to default values.
  9385. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  9386. * weights with configurability value.
  9387. */
  9388. enum qca_vendor_attr_coex_config_types {
  9389. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  9390. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  9391. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  9392. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  9393. };
  9394. /**
  9395. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  9396. * attributes
  9397. * Attributes for data used by
  9398. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  9399. *
  9400. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  9401. * Indicate config type.
  9402. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  9403. *
  9404. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  9405. * Indicate the Priority 1 profiles.
  9406. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9407. * In same priority level, maximum to 4 profiles can be set here.
  9408. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  9409. * Indicate the Priority 2 profiles.
  9410. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9411. * In same priority level, maximum to 4 profiles can be set here.
  9412. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  9413. * Indicate the Priority 3 profiles.
  9414. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9415. * In same priority level, maximum to 4 profiles can be set here.
  9416. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  9417. * Indicate the Priority 4 profiles.
  9418. * the profiles are 8-bit values from enum qca_coex_config_profiles
  9419. * In same priority level, maximum to 4 profiles can be set here.
  9420. * NOTE:
  9421. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  9422. * arrangement:
  9423. * 1: In the same u32 attribute(priority x), the profiles enum values own
  9424. * same priority level.
  9425. * 2: 0xff is default value if the u8 profile value is not set.
  9426. * 3: max to 4 rules/profiles in same priority level.
  9427. * 4: max to 4 priority level (priority 1 - priority 4)
  9428. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  9429. * hybrid rules not support.
  9430. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  9431. * remain blank to reset all parameters.
  9432. * For example:
  9433. *
  9434. * If the attributes as follow:
  9435. * priority 1:
  9436. * ------------------------------------
  9437. * | 0xff | 0 | 1 | 2 |
  9438. * ------------------------------------
  9439. * priority 2:
  9440. * -------------------------------------
  9441. * | 0xff | 0xff | 0xff | 32 |
  9442. * -------------------------------------
  9443. * priority 3:
  9444. * -------------------------------------
  9445. * | 0xff | 0xff | 0xff | 65 |
  9446. * -------------------------------------
  9447. * then it means:
  9448. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  9449. * owns same priority level.
  9450. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  9451. * has priority over BT_A2DP and ZB_HIGH.
  9452. * 3: BT_A2DP has priority over ZB_HIGH.
  9453. */
  9454. enum qca_vendor_attr_coex_config_three_way {
  9455. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  9456. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  9457. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  9458. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  9459. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  9460. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  9461. /* Keep last */
  9462. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  9463. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  9464. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  9465. };
  9466. /**
  9467. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  9468. * This enum defines the valid set of values of peer stats cache types. These
  9469. * values are used by attribute
  9470. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  9471. *
  9472. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  9473. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  9474. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  9475. * statistics
  9476. */
  9477. enum qca_vendor_attr_peer_stats_cache_type {
  9478. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  9479. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  9480. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  9481. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  9482. };
  9483. /**
  9484. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  9485. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  9486. * Attributes are required to flush peer rate statistics from driver to
  9487. * user application.
  9488. *
  9489. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  9490. * Indicate peer stats cache type.
  9491. * The statistics types are 32-bit values from
  9492. * qca_vendor_attr_peer_stats_cache_type
  9493. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  9494. * of size 6, representing peer mac address.
  9495. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  9496. * containing buffer of statistics to send event to application layer entity.
  9497. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  9498. * representing cookie for peer unique session.
  9499. */
  9500. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  9501. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  9502. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  9503. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  9504. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  9505. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  9506. /* Keep last */
  9507. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  9508. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  9509. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  9510. };
  9511. /**
  9512. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  9513. * this enum defines all the possible state of zigbee, which can be
  9514. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  9515. *
  9516. * @ZIGBEE_IDLE: zigbee in idle state
  9517. * @ZIGBEE_FORM_NETWORK: zibee forming network
  9518. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  9519. * @ZIGBEE_JOIN: zigbee joining network
  9520. * @ZIGBEE_NETWORK_UP: zigbee network is up
  9521. * @ZIGBEE_HMI: zigbee in HMI mode
  9522. */
  9523. enum qca_mpta_helper_attr_zigbee_state {
  9524. ZIGBEE_IDLE = 0,
  9525. ZIGBEE_FORM_NETWORK = 1,
  9526. ZIGBEE_WAIT_JOIN = 2,
  9527. ZIGBEE_JOIN = 3,
  9528. ZIGBEE_NETWORK_UP = 4,
  9529. ZIGBEE_HMI = 5,
  9530. };
  9531. /**
  9532. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  9533. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  9534. */
  9535. enum qca_mpta_helper_vendor_attr {
  9536. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  9537. /* Optional attribute used to update zigbee state.
  9538. * enum qca_mpta_helper_attr_zigbee_state.
  9539. * NLA_U32 attribute.
  9540. */
  9541. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  9542. /* Optional attribute used to configure wlan duration for Shape-OCS
  9543. * during interrupt.
  9544. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  9545. * Value range 0 ~ 300 (ms).
  9546. * NLA_U32 attribute.
  9547. */
  9548. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  9549. /* Optional attribute used to configure non wlan duration for Shape-OCS
  9550. * during interrupt.
  9551. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  9552. * Value range 0 ~ 300 (ms).
  9553. * NLA_U32 attribute.
  9554. */
  9555. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  9556. /* Optional attribute used to configure wlan duration for Shape-OCS
  9557. * monitor period.
  9558. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  9559. * Value range 0 ~ 300 (ms)
  9560. * NLA_U32 attribute
  9561. */
  9562. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  9563. /* Optional attribute used to configure non wlan duration for Shape-OCS
  9564. * monitor period.
  9565. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  9566. * Value range 0 ~ 300 (ms)
  9567. * NLA_U32 attribute
  9568. */
  9569. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  9570. /* Optional attribute used to configure ocs interrupt duration.
  9571. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  9572. * Value range 1000 ~ 20000 (ms)
  9573. * NLA_U32 attribute
  9574. */
  9575. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  9576. /* Optional attribute used to configure ocs monitor duration.
  9577. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  9578. * Value range 1000 ~ 20000 (ms)
  9579. * NLA_U32 attribute
  9580. */
  9581. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  9582. /* Optional attribute used to notify wlan FW current zigbee channel.
  9583. * Value range 11 ~ 26
  9584. * NLA_U32 attribute
  9585. */
  9586. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  9587. /* Optional attribute used to configure wlan mute duration.
  9588. * Value range 0 ~ 400 (ms)
  9589. * NLA_U32 attribute
  9590. */
  9591. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  9592. /* keep last */
  9593. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  9594. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  9595. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  9596. };
  9597. /**
  9598. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  9599. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  9600. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  9601. *
  9602. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  9603. * to request the driver to start reporting Beacon frames.
  9604. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  9605. * to request the driver to stop reporting Beacon frames.
  9606. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  9607. * userspace to report received Beacon frames.
  9608. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  9609. * to indicate that the driver is going to pause reporting Beacon frames.
  9610. */
  9611. enum qca_wlan_vendor_beacon_reporting_op_types {
  9612. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  9613. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  9614. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  9615. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  9616. };
  9617. /**
  9618. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  9619. * types of reasons for which the driver is pausing reporting Beacon frames.
  9620. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  9621. *
  9622. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  9623. * reasons.
  9624. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  9625. * driver/firmware is starting a scan.
  9626. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  9627. * driver/firmware disconnects from the ESS and indicates the disconnection to
  9628. * userspace (non-seamless roaming case). This reason code will be used by the
  9629. * driver/firmware to indicate stopping of beacon report events. Userspace
  9630. * will need to start beacon reporting again (if desired) by sending vendor
  9631. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  9632. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  9633. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  9634. * completed.
  9635. */
  9636. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  9637. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  9638. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  9639. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  9640. };
  9641. /*
  9642. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  9643. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  9644. */
  9645. enum qca_wlan_vendor_attr_beacon_reporting_params {
  9646. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  9647. /* Specifies the type of operation that the vendor command/event is
  9648. * intended for. Possible values for this attribute are defined in
  9649. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  9650. */
  9651. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  9652. /* Optionally set by userspace to request the driver to report Beacon
  9653. * frames using asynchronous vendor events when the
  9654. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9655. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  9656. * If this flag is not set, the driver will only update Beacon frames
  9657. * in cfg80211 scan cache but not send any vendor events.
  9658. */
  9659. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  9660. /* Optionally used by userspace to request the driver/firmware to
  9661. * report Beacon frames periodically when the
  9662. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9663. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  9664. * u32 attribute, indicates the period of Beacon frames to be reported
  9665. * and in the units of beacon interval.
  9666. * If this attribute is missing in the command, then the default value
  9667. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  9668. * Zero is an invalid value.
  9669. * If a valid value is received for this attribute, the driver will
  9670. * update the cfg80211 scan cache periodically as per the value
  9671. * received in this attribute in addition to updating the cfg80211 scan
  9672. * cache when there is significant change in Beacon frame IEs.
  9673. */
  9674. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  9675. /* Used by the driver to encapsulate the SSID when the
  9676. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9677. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  9678. * u8 array with a maximum size of 32.
  9679. *
  9680. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  9681. * will be taken from the SSID element of the received Beacon frame.
  9682. *
  9683. * When generating beacon report from Multiple BSSID Beacon frame and
  9684. * if the BSSID of the current connected BSS matches the BSSID of the
  9685. * transmitting BSS, the SSID will be taken from the SSID element of
  9686. * the received Beacon frame.
  9687. *
  9688. * When generating beacon report from Multiple BSSID Beacon frame and
  9689. * if the BSSID of the current connected BSS matches the BSSID of one
  9690. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  9691. * field included in the nontransmitted BSS profile whose derived BSSI
  9692. * is same as the BSSID of the current connected BSS. When there is no
  9693. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  9694. * of current connected* BSS, this attribute will not be present.
  9695. */
  9696. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  9697. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  9698. * is currently connected to when the
  9699. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9700. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  9701. * fixed size of 6 bytes.
  9702. *
  9703. * When generating beacon report from a Multiple BSSID beacon and the
  9704. * current connected BSSID matches one of the nontransmitted BSSIDs in
  9705. * a Multiple BSSID set, this BSSID will be that particular
  9706. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  9707. * transmitting address of the Beacon frame).
  9708. */
  9709. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  9710. /* Used by the driver to encapsulate the frequency in MHz on which
  9711. * the Beacon frame was received when the
  9712. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  9713. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  9714. * u32 attribute.
  9715. */
  9716. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  9717. /* Used by the driver to encapsulate the Beacon interval
  9718. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9719. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  9720. * u16 attribute. The value will be copied from the Beacon frame and
  9721. * the units are TUs.
  9722. */
  9723. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  9724. /* Used by the driver to encapsulate the Timestamp field from the
  9725. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  9726. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  9727. * u64 attribute.
  9728. */
  9729. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  9730. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  9731. * Beacon frame is received in the driver when the
  9732. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9733. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  9734. * the units of nanoseconds. This value is expected to have accuracy of
  9735. * about 10 ms.
  9736. */
  9737. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  9738. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  9739. * which this event is generated when the
  9740. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9741. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  9742. */
  9743. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  9744. /* Used by the driver to specify the reason for the driver/firmware to
  9745. * pause sending beacons to userspace when the
  9746. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9747. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  9748. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  9749. * attribute.
  9750. */
  9751. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  9752. /* Used by the driver to specify whether the driver will automatically
  9753. * resume reporting beacon events to userspace later (for example after
  9754. * the ongoing off-channel activity is completed etc.) when the
  9755. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9756. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  9757. */
  9758. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  9759. /* Optionally set by userspace to request the driver not to resume
  9760. * beacon reporting after a pause is completed, when the
  9761. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  9762. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  9763. * If this flag is set, the driver will not resume beacon reporting
  9764. * after any pause in beacon reporting is completed. Userspace has to
  9765. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  9766. * to initiate beacon reporting again. If this flag is set in the recent
  9767. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  9768. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  9769. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  9770. * set by the driver. Setting this flag until and unless there is a
  9771. * specific need is not recommended as there is a chance of some beacons
  9772. * received after pause command and next start command being not
  9773. * reported.
  9774. */
  9775. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  9776. /* Keep last */
  9777. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  9778. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  9779. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  9780. };
  9781. /**
  9782. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  9783. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  9784. *
  9785. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  9786. * a virtual device.
  9787. *
  9788. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  9789. * a physical device.
  9790. */
  9791. enum qca_vendor_oem_device_type {
  9792. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  9793. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  9794. };
  9795. /*
  9796. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  9797. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  9798. *
  9799. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  9800. * used to set/query the data to/from the firmware. On query, the same
  9801. * attribute is used to carry the respective data in the reply sent by the
  9802. * driver to userspace. The request to set/query the data and the format of the
  9803. * respective data from the firmware are embedded in the attribute. The
  9804. * maximum size of the attribute payload is 1024 bytes.
  9805. *
  9806. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  9807. * based on this field. This optional attribute is included to specify whether
  9808. * the device type is a virtual device or a physical device for the command.
  9809. * This attribute can be omitted for a virtual device (default) command.
  9810. * This u8 attribute is used to carry information for the device type using
  9811. * values defined by enum qca_vendor_oem_device_type.
  9812. *
  9813. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  9814. * attribute when the data is queried from the firmware.
  9815. *
  9816. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  9817. * is set when the userspace queries data from the firmware. This attribute
  9818. * should not be set when userspace sets the OEM data to the firmware.
  9819. */
  9820. enum qca_wlan_vendor_attr_oem_data_params {
  9821. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  9822. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  9823. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  9824. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  9825. /* keep last */
  9826. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  9827. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  9828. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  9829. };
  9830. /**
  9831. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  9832. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  9833. *
  9834. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  9835. * Nested attribute containing multiple ranges with following attributes:
  9836. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  9837. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  9838. *
  9839. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  9840. * Starting center frequency in MHz.
  9841. *
  9842. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  9843. * Ending center frequency in MHz.
  9844. */
  9845. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  9846. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  9847. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  9848. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  9849. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  9850. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  9851. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  9852. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  9853. };
  9854. /*
  9855. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  9856. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  9857. */
  9858. enum qca_wlan_vendor_attr_add_sta_node_params {
  9859. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  9860. /* 6 byte MAC address of STA */
  9861. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  9862. /* Authentication algorithm used by the station of size u16;
  9863. * defined in enum nl80211_auth_type.
  9864. */
  9865. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  9866. /* keep last */
  9867. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  9868. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  9869. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  9870. };
  9871. /**
  9872. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  9873. * This enum defines the valid set of values of BT coex chain mode.
  9874. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  9875. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  9876. *
  9877. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared.
  9878. * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated.
  9879. */
  9880. enum qca_btc_chain_mode {
  9881. QCA_BTC_CHAIN_SHARED = 0,
  9882. QCA_BTC_CHAIN_SEPARATED = 1,
  9883. };
  9884. /**
  9885. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  9886. * chain mode.
  9887. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  9888. *
  9889. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  9890. * Indicates the BT coex chain mode, are 32-bit values from
  9891. * enum qca_btc_chain_mode. This attribute is mandatory.
  9892. *
  9893. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  9894. * If set, vdev should be restarted when BT coex chain mode is updated.
  9895. * This attribute is optional.
  9896. */
  9897. enum qca_vendor_attr_btc_chain_mode {
  9898. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  9899. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  9900. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  9901. /* Keep last */
  9902. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  9903. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  9904. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  9905. };
  9906. /**
  9907. * enum qca_vendor_wlan_sta_flags - Station feature flags
  9908. * Bits will be set to 1 if the corresponding features are enabled.
  9909. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  9910. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  9911. for the station
  9912. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  9913. for the station
  9914. */
  9915. enum qca_vendor_wlan_sta_flags {
  9916. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  9917. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  9918. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  9919. };
  9920. /**
  9921. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  9922. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  9923. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  9924. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  9925. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  9926. */
  9927. enum qca_vendor_wlan_sta_guard_interval {
  9928. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  9929. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  9930. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  9931. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  9932. };
  9933. /**
  9934. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  9935. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  9936. *
  9937. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  9938. * Required attribute in request for AP mode only, 6-byte MAC address,
  9939. * corresponding to the station's MAC address for which information is
  9940. * requested. For STA mode this is not required as the info always correspond
  9941. * to the self STA and the current/last association.
  9942. *
  9943. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  9944. * Optionally used in response, u32 attribute, contains a bitmap of different
  9945. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  9946. *
  9947. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  9948. * Optionally used in response, u32 attribute, possible values are defined in
  9949. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  9950. * Guard interval used by the station.
  9951. *
  9952. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  9953. * Optionally used in response, u32 attribute, used in AP mode only.
  9954. * Value indicates the number of data frames received from station with retry
  9955. * bit set to 1 in FC.
  9956. *
  9957. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  9958. * Optionally used in response, u32 attribute, used in AP mode only.
  9959. * Counter for number of data frames with broadcast or multicast address in
  9960. * the destination address received from the station.
  9961. *
  9962. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  9963. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  9964. * Value indicates the number of data frames successfully transmitted only
  9965. * after retrying the packets and for which the TX status has been updated
  9966. * back to host from target.
  9967. *
  9968. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  9969. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  9970. * Value indicates the number of data frames not transmitted successfully even
  9971. * after retrying the packets for the number of times equal to the total number
  9972. * of retries allowed for that packet and for which the TX status has been
  9973. * updated back to host from target.
  9974. *
  9975. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  9976. * Optionally used in response, u32 attribute, used in AP mode only.
  9977. * Counter in the target for the number of data frames successfully transmitted
  9978. * to the station.
  9979. *
  9980. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  9981. * Optionally used in response, u32 attribute, used in AP mode only.
  9982. * Value indicates the number of data frames successfully transmitted only
  9983. * after retrying the packets.
  9984. *
  9985. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  9986. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  9987. * Value indicates the number of data frames not transmitted successfully even
  9988. * after retrying the packets for the number of times equal to the total number
  9989. * of retries allowed for that packet.
  9990. *
  9991. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  9992. * the STA mode only. Represent the number of probe requests sent by the STA
  9993. * while attempting to roam on missing certain number of beacons from the
  9994. * connected AP. If queried in the disconnected state, this represents the
  9995. * count for the last connected state.
  9996. *
  9997. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  9998. * the STA mode. Represent the number of probe responses received by the station
  9999. * while attempting to roam on missing certain number of beacons from the
  10000. * connected AP. When queried in the disconnected state, this represents the
  10001. * count when in last connected state.
  10002. *
  10003. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  10004. * STA mode only. Represents the total number of frames sent out by STA
  10005. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  10006. * only for the connect session. Represents the count of last connected session,
  10007. * when queried in the disconnected state.
  10008. *
  10009. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  10010. * Total number of RTS sent out by the STA. This data is maintained per connect
  10011. * session. Represents the count of last connected session, when queried in the
  10012. * disconnected state.
  10013. *
  10014. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  10015. * STA mode.Represent the number of RTS transmission failure that reach retry
  10016. * limit. This data is maintained per connect session. Represents the count of
  10017. * last connected session, when queried in the disconnected state.
  10018. *
  10019. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  10020. * the STA mode. Represent the total number of non aggregated frames transmitted
  10021. * by the STA. This data is maintained per connect session. Represents the count
  10022. * of last connected session, when queried in the disconnected state.
  10023. *
  10024. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  10025. * STA mode. Represent the total number of aggregated frames transmitted by the
  10026. * STA. This data is maintained per connect session. Represents the count of
  10027. * last connected session, when queried in the disconnected state.
  10028. *
  10029. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  10030. * the STA mode. Represents the number of received frames with a good PLCP. This
  10031. * data is maintained per connect session. Represents the count of last
  10032. * connected session, when queried in the disconnected state.
  10033. *
  10034. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  10035. * used in the STA mode. Represents the number of occasions that no valid
  10036. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  10037. * session. Represents the count of last connected session, when queried in the
  10038. * disconnected state.
  10039. *
  10040. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  10041. * STA mode. Represents the number of frames for which CRC check failed in the
  10042. * MAC. This data is maintained per connect session. Represents the count of
  10043. * last connected session, when queried in the disconnected state.
  10044. *
  10045. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  10046. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  10047. * data is maintained per connect session. Represents the count of last
  10048. * connected session, when queried in the disconnected state.
  10049. *
  10050. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  10051. * mode. Represents the number of received Block Acks. This data is maintained
  10052. * per connect session. Represents the count of last connected session, when
  10053. * queried in the disconnected state.
  10054. *
  10055. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  10056. * mode. Represents the number of beacons received from the connected BSS. This
  10057. * data is maintained per connect session. Represents the count of last
  10058. * connected session, when queried in the disconnected state.
  10059. *
  10060. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  10061. * STA mode. Represents the number of beacons received by the other BSS when in
  10062. * connected state (through the probes done by the STA). This data is maintained
  10063. * per connect session. Represents the count of last connected session, when
  10064. * queried in the disconnected state.
  10065. *
  10066. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  10067. * the STA mode. Represents the number of received DATA frames with good FCS and
  10068. * matching Receiver Address when in connected state. This data is maintained
  10069. * per connect session. Represents the count of last connected session, when
  10070. * queried in the disconnected state.
  10071. *
  10072. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  10073. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  10074. * when in the connected state. This data is maintained per connect session.
  10075. * Represents the count of last connected session, when queried in the
  10076. * disconnected state.
  10077. *
  10078. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  10079. * STA mode. This represents the target power in dBm for the transmissions done
  10080. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  10081. * connect session. Represents the count of last connected session, when
  10082. * queried in the disconnected state.
  10083. *
  10084. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  10085. * STA mode. This represents the Target power in dBm for transmissions done to
  10086. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  10087. * session. Represents the count of last connected session, when queried in the
  10088. * disconnected state.
  10089. *
  10090. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  10091. * STA mode. This represents the Target power in dBm for transmissions done to
  10092. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  10093. * Represents the count of last connected session, when queried in the
  10094. * disconnected state.
  10095. *
  10096. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  10097. * STA mode. This represents the Target power in dBm for transmissions done to
  10098. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  10099. * session. Represents the count of last connected session, when queried in
  10100. * the disconnected state.
  10101. *
  10102. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  10103. * STA mode. This represents the Target power in dBm for for transmissions done
  10104. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  10105. * Represents the count of last connected session, when queried in the
  10106. * disconnected state.
  10107. *
  10108. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  10109. * in the STA mode. This represents the Nested attribute representing the
  10110. * overflow counts of each receive buffer allocated to the hardware during the
  10111. * STA's connection. The number of hw buffers might vary for each WLAN
  10112. * solution and hence this attribute represents the nested array of all such
  10113. * HW buffer count. This data is maintained per connect session. Represents
  10114. * the count of last connected session, when queried in the disconnected state.
  10115. *
  10116. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  10117. * allowed as per the regulatory requirements for the current or last connected
  10118. * session. Used in the STA mode.
  10119. *
  10120. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  10121. * (dBm) used by the station in its latest unicast frame while communicating
  10122. * to the AP in the connected state. When queried in the disconnected state,
  10123. * this represents the TX power used by the STA with last AP communication
  10124. * when in connected state.
  10125. *
  10126. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  10127. * level used to adjust the RX sensitivity. Represents the current ANI level
  10128. * when queried in the connected state. When queried in the disconnected
  10129. * state, this corresponds to the latest ANI level at the instance of
  10130. * disconnection.
  10131. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  10132. * only. This represents the number of group addressed robust management frames
  10133. * received from this station with an invalid MIC or a missing MME when PMF is
  10134. * enabled.
  10135. *
  10136. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  10137. * only. This represents the number of group addressed robust management frames
  10138. * received from this station with the packet number less than or equal to the
  10139. * last received packet number when PMF is enabled.
  10140. *
  10141. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  10142. * mode only. This represents the number of Beacon frames received from this
  10143. * station with an invalid MIC or a missing MME when beacon protection is
  10144. * enabled.
  10145. *
  10146. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  10147. * only. This represents number of Beacon frames received from this station with
  10148. * the packet number less than or equal to the last received packet number when
  10149. * beacon protection is enabled.
  10150. *
  10151. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  10152. * STA mode only. Driver uses this attribute to populate the connection failure
  10153. * reason codes and the values are defined in
  10154. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  10155. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  10156. * connection failure from driver. The driver shall not include this attribute
  10157. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  10158. * connection failure observed in the last attempted connection.
  10159. *
  10160. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  10161. * used by the station in its last TX frame while communicating to the AP in the
  10162. * connected state. When queried in the disconnected state, this represents the
  10163. * rate used by the STA in the last TX frame to the AP when it was connected.
  10164. * This attribute is used for STA mode only.
  10165. *
  10166. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  10167. * This represents the rate index used by the STA for the last TX frame to the
  10168. * AP. When queried in the disconnected state, this gives the last RIX used by
  10169. * the STA in the last TX frame to the AP when it was connected.
  10170. *
  10171. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  10172. * mode only. This represents the number of times the STA TSF goes out of sync
  10173. * from the AP after the connection. If queried in the disconnected state, this
  10174. * gives the count of TSF out of sync for the last connection.
  10175. *
  10176. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  10177. * mode only. This represents the roam trigger reason for the last roaming
  10178. * attempted by the firmware. This can be queried either in connected state or
  10179. * disconnected state. Each bit of this attribute represents the different
  10180. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  10181. *
  10182. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  10183. * only. This represents the roam fail reason for the last failed roaming
  10184. * attempt by the firmware. Different roam failure reason codes are specified
  10185. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  10186. * connected state or disconnected state.
  10187. *
  10188. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  10189. * STA mode only. This represents the roam invoke fail reason for the last
  10190. * failed roam invoke. Different roam invoke failure reason codes
  10191. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  10192. * queried either in connected state or disconnected state.
  10193. *
  10194. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  10195. * This represents the average congestion duration of uplink frames in MAC
  10196. * queue in unit of ms. This can be queried either in connected state or
  10197. * disconnected state.
  10198. */
  10199. enum qca_wlan_vendor_attr_get_sta_info {
  10200. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  10201. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  10202. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  10203. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  10204. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  10205. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  10206. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  10207. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  10208. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  10209. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  10210. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  10211. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  10212. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  10213. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  10214. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  10215. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  10216. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  10217. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  10218. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  10219. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  10220. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  10221. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  10222. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  10223. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  10224. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  10225. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  10226. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  10227. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  10228. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  10229. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  10230. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  10231. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  10232. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  10233. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  10234. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  10235. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  10236. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  10237. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  10238. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  10239. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  10240. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  10241. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  10242. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  10243. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  10244. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  10245. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  10246. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  10247. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  10248. /* keep last */
  10249. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  10250. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  10251. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  10252. };
  10253. /**
  10254. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  10255. * Used when the driver triggers the STA to disconnect from the AP.
  10256. *
  10257. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  10258. * disconnection with the AP due to unspecified reasons.
  10259. *
  10260. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  10261. * disconnection with the AP due to a roaming failure. This roaming is triggered
  10262. * internally (host driver/firmware).
  10263. *
  10264. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  10265. * the AP when the user/external triggered roaming fails.
  10266. *
  10267. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  10268. * by the host driver whenever gateway reachability failure is detected and the
  10269. * driver disconnects with AP.
  10270. *
  10271. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  10272. * the AP on a channel switch announcement from it with an unsupported channel.
  10273. *
  10274. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  10275. * with indoor channels disabled and if the STA is connected on one of these
  10276. * disabled channels, the host driver disconnected the STA with this reason
  10277. * code.
  10278. *
  10279. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  10280. * explicit request from the user to disable the current operating channel.
  10281. *
  10282. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  10283. * the internal host driver/firmware recovery.
  10284. *
  10285. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  10286. * a timeout for the key installations from the user space.
  10287. *
  10288. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  10289. * STA on a band change request from the user space to a different band from the
  10290. * current operation channel/band.
  10291. *
  10292. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  10293. * interface down trigger from the user space.
  10294. *
  10295. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  10296. * STA on getting continuous transmission failures for multiple Data frames.
  10297. *
  10298. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  10299. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  10300. * represents inactivity from AP on such transmissions.
  10301. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  10302. * disconnection when SA Query times out (AP does not respond to SA Query).
  10303. *
  10304. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  10305. * STA on missing the beacons continuously from the AP.
  10306. *
  10307. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  10308. * able to move to the channel mentioned by the AP in CSA.
  10309. *
  10310. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  10311. */
  10312. enum qca_disconnect_reason_codes {
  10313. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  10314. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  10315. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  10316. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  10317. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  10318. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  10319. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  10320. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  10321. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  10322. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  10323. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  10324. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  10325. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  10326. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  10327. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  10328. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  10329. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  10330. };
  10331. /**
  10332. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  10333. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  10334. *
  10335. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  10336. * This attribute represents the driver specific reason codes (local
  10337. * driver/firmware initiated reasons for disconnection) defined
  10338. * in enum qca_disconnect_reason_codes.
  10339. */
  10340. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  10341. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  10342. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  10343. /* keep last */
  10344. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  10345. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  10346. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  10347. };
  10348. /**
  10349. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  10350. *
  10351. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  10352. */
  10353. enum qca_wlan_tspec_operation {
  10354. QCA_WLAN_TSPEC_ADD = 0,
  10355. QCA_WLAN_TSPEC_DEL = 1,
  10356. QCA_WLAN_TSPEC_GET = 2,
  10357. };
  10358. /**
  10359. * enum qca_wlan_tspec_direction - Direction in TSPEC
  10360. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  10361. *
  10362. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  10363. */
  10364. enum qca_wlan_tspec_direction {
  10365. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  10366. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  10367. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  10368. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  10369. };
  10370. /**
  10371. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  10372. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  10373. *
  10374. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  10375. */
  10376. enum qca_wlan_tspec_ack_policy {
  10377. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  10378. QCA_WLAN_TSPEC_NO_ACK = 1,
  10379. /* Reserved */
  10380. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  10381. };
  10382. /**
  10383. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  10384. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  10385. *
  10386. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  10387. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  10388. * are defined in enum qca_wlan_tspec_operation.
  10389. * Mandatory attribute for all kinds of config TSPEC requests.
  10390. *
  10391. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  10392. * u8 attribute. TS ID. Possible values are 0-7.
  10393. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  10394. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  10395. *
  10396. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  10397. * u8 attribute. Direction of data carried by the TS. Possible values are
  10398. * defined in enum qca_wlan_tspec_direction.
  10399. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10400. *
  10401. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  10402. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  10403. * with the TS. set - enabled, not set - disabled.
  10404. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10405. *
  10406. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  10407. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  10408. * belonging to this TS. Possible values are 0-7.
  10409. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10410. *
  10411. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  10412. * u8 attribute. Indicate whether MAC acknowledgements are required for
  10413. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  10414. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  10415. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10416. *
  10417. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  10418. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  10419. * belonging to this TS.
  10420. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10421. *
  10422. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  10423. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  10424. * belonging to this TS.
  10425. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10426. *
  10427. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  10428. * u32 attribute. Specify the minimum interval in microseconds between the
  10429. * start of two successive SPs.
  10430. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10431. *
  10432. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  10433. * u32 attribute. Specify the maximum interval in microseconds between the
  10434. * start of two successive SPs.
  10435. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10436. *
  10437. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  10438. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  10439. * without arrival or transfer of an MPDU belonging to the TS before this TS
  10440. * is deleted by the MAC entity at the HC.
  10441. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10442. *
  10443. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  10444. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  10445. * without arrival or transfer of an MSDU belonging to the TS before the
  10446. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  10447. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  10448. * interval is always less than or equal to the inactivity interval.
  10449. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10450. *
  10451. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  10452. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  10453. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  10454. * bounds of this TSPEC.
  10455. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10456. *
  10457. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  10458. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  10459. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  10460. * bounds of this TSPEC.
  10461. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10462. *
  10463. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  10464. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  10465. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  10466. * the bounds of this TSPEC.
  10467. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10468. *
  10469. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  10470. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  10471. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  10472. * value of 0 indicates that there are no bursts.
  10473. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10474. *
  10475. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  10476. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  10477. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  10478. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  10479. *
  10480. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  10481. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  10482. * and above the stated application rates required to transport an MSDU/A-MSDU
  10483. * belonging to the TS in this TSPEC.
  10484. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  10485. */
  10486. enum qca_wlan_vendor_attr_config_tspec {
  10487. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  10488. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  10489. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  10490. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  10491. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  10492. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  10493. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  10494. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  10495. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  10496. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  10497. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  10498. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  10499. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  10500. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  10501. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  10502. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  10503. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  10504. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  10505. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  10506. /* keep last */
  10507. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  10508. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  10509. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  10510. };
  10511. /**
  10512. * enum qca_wlan_medium_assess_type - Type of medium assess request
  10513. *
  10514. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  10515. */
  10516. enum qca_wlan_medium_assess_type {
  10517. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  10518. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  10519. };
  10520. /**
  10521. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  10522. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  10523. *
  10524. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  10525. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  10526. * Specify the type of medium assess request and indicate its type in response.
  10527. * Possible values are defined in enum qca_wlan_medium_assess_type.
  10528. *
  10529. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  10530. * u32 attribute. Mandatory in CCA request.
  10531. * Specify the assessment period in terms of seconds. Assessment result will be
  10532. * sent as the response to the CCA request after the assessment period.
  10533. *
  10534. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  10535. * u32 attribute. Mandatory in response to CCA request.
  10536. * Total timer tick count of the assessment cycle.
  10537. *
  10538. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  10539. * u32 attribute. Mandatory in response to CCA request.
  10540. * Timer tick count of idle time in the assessment cycle.
  10541. *
  10542. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  10543. * u32 attribute. Mandatory in response to CCA request.
  10544. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  10545. *
  10546. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  10547. * u32 attribute. Mandatory in response to CCA request.
  10548. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  10549. *
  10550. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  10551. * s32 attribute. Mandatory in response to CCA request.
  10552. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  10553. *
  10554. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  10555. * s32 attribute. Mandatory in response to CCA request.
  10556. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  10557. *
  10558. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  10559. * u8 attribute. Mandatory in congestion report request.
  10560. * 1-enable 0-disable.
  10561. *
  10562. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  10563. * u8 attribute. Mandatory in congestion report enable request and will be
  10564. * ignored if present in congestion report disable request. Possible values are
  10565. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  10566. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  10567. * congestion percentage reaches the configured threshold.
  10568. *
  10569. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  10570. * u8 attribute. Optional in congestion report enable request and will be
  10571. * ignored if present in congestion report disable request.
  10572. * Specify the interval of congestion report event in terms of seconds. Possible
  10573. * values are 1-255. Default value 1 will be used if this attribute is omitted
  10574. * or using invalid values.
  10575. *
  10576. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  10577. * u8 attribute. Mandatory in congestion report event.
  10578. * Indicate the actual congestion percentage. Possible values are 0-100.
  10579. */
  10580. enum qca_wlan_vendor_attr_medium_assess {
  10581. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  10582. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  10583. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  10584. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  10585. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  10586. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  10587. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  10588. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  10589. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  10590. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  10591. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  10592. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  10593. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  10594. /* keep last */
  10595. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  10596. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  10597. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  10598. };
  10599. /**
  10600. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  10601. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  10602. *
  10603. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  10604. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  10605. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  10606. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  10607. */
  10608. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  10609. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  10610. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  10611. /* keep last */
  10612. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  10613. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  10614. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  10615. };
  10616. /**
  10617. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  10618. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  10619. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  10620. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  10621. * frame
  10622. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  10623. * Request frame.
  10624. */
  10625. enum qca_wlan_vendor_oci_override_frame_type {
  10626. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  10627. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  10628. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  10629. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  10630. };
  10631. /**
  10632. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  10633. *
  10634. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  10635. * STA interface has to be given while selecting the connection policies
  10636. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  10637. * An interface is set as primary through the attribute
  10638. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  10639. * applicable if the primary interface has not been set earlier.
  10640. *
  10641. * The intention is not to downgrade the primary STA performance, such as:
  10642. * - Do not reduce the number of TX/RX chains of primary connection.
  10643. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  10644. * chains.
  10645. * - If using MCC, should set the MCC duty cycle of the primary connection to
  10646. * be higher than the secondary connection.
  10647. *
  10648. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  10649. * subsequent STA connection shall be chosen to balance with the existing
  10650. * concurrent STA's performance.
  10651. * Such as
  10652. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  10653. * capability.
  10654. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  10655. * to the secondary.
  10656. * - Prefer BSSID candidates which will help provide the best "overall"
  10657. * performance for all the STA connections.
  10658. */
  10659. enum qca_wlan_concurrent_sta_policy_config {
  10660. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  10661. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  10662. };
  10663. /**
  10664. * enum qca_wlan_vendor_attr_concurrent_sta_policy - Defines attributes
  10665. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY vendor command.
  10666. *
  10667. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG:
  10668. * u8 attribute. Configures the concurrent STA policy configuration.
  10669. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  10670. */
  10671. enum qca_wlan_vendor_attr_concurrent_sta_policy {
  10672. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_INVALID = 0,
  10673. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG = 1,
  10674. /* keep last */
  10675. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST,
  10676. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX =
  10677. QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST - 1,
  10678. };
  10679. /**
  10680. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  10681. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  10682. * attribute.
  10683. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  10684. * for unicast probe request.
  10685. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  10686. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  10687. * ath request.
  10688. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  10689. * received from AP.
  10690. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  10691. * request.
  10692. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  10693. * assoc request.
  10694. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  10695. * received from AP.
  10696. */
  10697. enum qca_sta_connect_fail_reason_codes {
  10698. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  10699. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  10700. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  10701. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  10702. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  10703. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  10704. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  10705. };
  10706. /**
  10707. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  10708. * OCI override request. These attributes are used inside nested attribute
  10709. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  10710. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  10711. *
  10712. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  10713. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  10714. * attribute to specify the frame type in which the OCI is to be overridden.
  10715. *
  10716. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  10717. * OCI frequency (in MHz) to override in the specified frame type.
  10718. */
  10719. enum qca_wlan_vendor_attr_oci_override {
  10720. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  10721. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  10722. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  10723. /* keep last */
  10724. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  10725. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  10726. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  10727. };
  10728. /**
  10729. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  10730. * filters defined in this enum are used in attribute
  10731. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  10732. *
  10733. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  10734. * shall filter the channels which are not usable because of coexistence with
  10735. * cellular radio.
  10736. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  10737. * shall filter the channels which are not usable because of existing active
  10738. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  10739. *
  10740. */
  10741. enum qca_wlan_vendor_usable_channels_filter {
  10742. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  10743. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  10744. };
  10745. /**
  10746. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  10747. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  10748. *
  10749. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  10750. * u32 attribute, required. Indicates the center frequency of the primary
  10751. * channel in MHz.
  10752. *
  10753. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  10754. * u32 attribute. Indicates the center frequency of the primary segment of the
  10755. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  10756. * 160 MHz, and 320 MHz channels.
  10757. *
  10758. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  10759. * u32 attribute. Indicates the center frequency of the secondary segment of
  10760. * 80+80 channel in MHz. This attribute is required only when
  10761. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  10762. *
  10763. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  10764. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  10765. * values are defined in enum nl80211_chan_width.
  10766. *
  10767. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  10768. * u32 attribute, required. Indicates all the interface types for which this
  10769. * channel is usable. This attribute encapsulates bitmasks of interface types
  10770. * defined in enum nl80211_iftype.
  10771. *
  10772. */
  10773. enum qca_wlan_vendor_attr_chan_info {
  10774. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  10775. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  10776. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  10777. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  10778. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  10779. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  10780. /* keep last */
  10781. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  10782. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  10783. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  10784. };
  10785. /**
  10786. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  10787. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  10788. *
  10789. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  10790. * u32 attribute. Indicates the bands from which the channels should be reported
  10791. * in response. This attribute encapsulates bit masks of bands defined in enum
  10792. * nl80211_band. Optional attribute, if not present in the request the driver
  10793. * shall return channels from all supported bands.
  10794. *
  10795. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  10796. * u32 attribute. Indicates all the interface types for which the usable
  10797. * channels information is requested. This attribute encapsulates bitmasks of
  10798. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  10799. * present in the request the driver shall send information of all supported
  10800. * interface modes.
  10801. *
  10802. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  10803. * u32 attribute. This attribute carries information of all filters that shall
  10804. * be applied while populating usable channels information by the driver. This
  10805. * attribute carries bit masks of different filters defined in enum
  10806. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  10807. * in the request the driver shall send information of channels without applying
  10808. * any of the filters that can be configured through this attribute.
  10809. *
  10810. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  10811. * Nested attribute. This attribute shall be used by the driver to send
  10812. * usability information of each channel. The attributes defined in enum
  10813. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  10814. */
  10815. enum qca_wlan_vendor_attr_usable_channels {
  10816. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  10817. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  10818. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  10819. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  10820. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  10821. /* keep last */
  10822. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  10823. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  10824. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  10825. };
  10826. /**
  10827. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  10828. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  10829. *
  10830. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  10831. * the list of radar history entries.
  10832. * Each entry contains freq, timestamp, and radar signal detect flag.
  10833. * The driver shall add an entry when CAC has finished, or radar signal
  10834. * has been detected post AP beaconing. The driver shall maintain at least
  10835. * 8 entries in order to save CAC result for a 160 MHz channel.
  10836. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  10837. * Channel frequency in MHz.
  10838. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  10839. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  10840. * or radar detection.
  10841. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  10842. * This flag indicates radar signal has been detected.
  10843. */
  10844. enum qca_wlan_vendor_attr_radar_history {
  10845. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  10846. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  10847. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  10848. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  10849. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  10850. /* keep last */
  10851. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  10852. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  10853. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  10854. };
  10855. /**
  10856. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  10857. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  10858. *
  10859. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  10860. * Enable mDNS offload. This attribute is mandatory to enable
  10861. * mDNS offload feature. If this attribute is not present, mDNS offload
  10862. * is disabled.
  10863. *
  10864. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  10865. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  10866. * attribute is mandatory when enabling the feature, and not required when
  10867. * disabling the feature.
  10868. *
  10869. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  10870. * the following attributes:
  10871. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  10872. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  10873. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  10874. *
  10875. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  10876. * It consists of a hostname and ".local" as the domain name. The character
  10877. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  10878. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  10879. * supported per vdev.
  10880. * For example: myphone.local
  10881. *
  10882. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  10883. * u16 attribute. It specifies the total number of resource records present
  10884. * in the answer section of the answer payload. This attribute is needed by the
  10885. * firmware to populate the mDNS response frame for mNDS queries without having
  10886. * to parse the answer payload.
  10887. *
  10888. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  10889. * attribute sent by the mdnsResponder from userspace. It contains resource
  10890. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  10891. * payload is passed down to firmware and is transmitted in response to
  10892. * mDNS queries.
  10893. * The maximum size of the answer payload supported is 512 bytes.
  10894. */
  10895. enum qca_wlan_vendor_attr_mdns_offload {
  10896. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  10897. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  10898. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  10899. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  10900. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  10901. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  10902. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  10903. /* keep last */
  10904. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  10905. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  10906. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  10907. };
  10908. /**
  10909. * enum qca_vendor_attr_diag_event_type - Attributes used by
  10910. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  10911. *
  10912. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  10913. * driver/firmware during Connection request from Userspace. Uses the
  10914. * following attributes of enum qca_wlan_vendor_attr_diag:
  10915. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  10916. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  10917. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  10918. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  10919. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  10920. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  10921. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  10922. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  10923. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  10924. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  10925. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  10926. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  10927. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  10928. *
  10929. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  10930. * driver/firmware when a connection is failed. Uses the
  10931. * following attributes of enum qca_wlan_vendor_attr_diag:
  10932. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  10933. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  10934. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  10935. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  10936. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE.
  10937. *
  10938. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  10939. * driver/firmware during Authentication request from a device. Uses the
  10940. * following attributes of enum qca_wlan_vendor_attr_diag:
  10941. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  10942. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  10943. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  10944. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  10945. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_FRAME_TYPE,
  10946. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  10947. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  10948. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  10949. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  10950. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  10951. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  10952. *
  10953. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  10954. * driver/firmware when device receives an authentication response. Uses the
  10955. * following attributes of enum qca_wlan_vendor_attr_diag:
  10956. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  10957. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  10958. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  10959. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_FRAME_TYPE,
  10960. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  10961. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  10962. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  10963. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  10964. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  10965. *
  10966. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  10967. * driver/firmware when device sends an association request. Uses the
  10968. * following attributes of enum qca_wlan_vendor_attr_diag:
  10969. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  10970. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  10971. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  10972. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  10973. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  10974. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  10975. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  10976. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  10977. *
  10978. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  10979. * driver/firmware when device receives an association response. Uses the
  10980. * following attributes of enum qca_wlan_vendor_attr_diag:
  10981. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  10982. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  10983. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  10984. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  10985. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  10986. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  10987. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  10988. *
  10989. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  10990. * driver/userspace when device receives a deauthentication response. Uses the
  10991. * following attributes of enum qca_wlan_vendor_attr_diag:
  10992. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  10993. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  10994. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  10995. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  10996. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  10997. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  10998. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME.
  10999. *
  11000. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  11001. * driver/userspace when device sends a deauthentication request. Uses the
  11002. * following attributes of enum qca_wlan_vendor_attr_diag:
  11003. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11004. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11005. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11006. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11007. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11008. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11009. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME.
  11010. *
  11011. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  11012. * driver/firmware when device receives a disassociation response. Uses the
  11013. * following attributes of enum qca_wlan_vendor_attr_diag:
  11014. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11015. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11016. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11017. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11018. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11019. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11020. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME.
  11021. *
  11022. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  11023. * driver/firmware when device sends a disassociation request. Uses the
  11024. * following attributes of enum qca_wlan_vendor_attr_diag:
  11025. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11026. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11027. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11028. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  11029. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11030. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11031. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME.
  11032. *
  11033. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  11034. * driver/firmware when device did not receive beacon packets during connection.
  11035. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  11036. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11037. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11038. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11039. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11040. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11041. *
  11042. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  11043. * driver/firmware when Roaming scan is triggered. Uses the following
  11044. * attributes of enum qca_wlan_vendor_attr_diag:
  11045. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11046. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  11047. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  11048. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11049. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11050. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  11051. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  11052. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11053. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11054. *
  11055. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  11056. * driver/firmware Roam scanning is processed. Uses the following
  11057. * attributes of enum qca_wlan_vendor_attr_diag:
  11058. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11059. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11060. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  11061. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  11062. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11063. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11064. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11065. *
  11066. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  11067. * driver/firmware to provide Roam information of the current AP. Uses the
  11068. * following attributes of enum qca_wlan_vendor_attr_diag:
  11069. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11070. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11071. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11072. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11073. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11074. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  11075. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11076. *
  11077. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  11078. * driver/firmware to provide Roam information of the candid AP. Uses the
  11079. * following attributes of enum qca_wlan_vendor_attr_diag:
  11080. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11081. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11082. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  11083. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  11084. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  11085. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  11086. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  11087. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11088. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11089. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11090. *
  11091. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  11092. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  11093. * following attributes of enum qca_wlan_vendor_attr_diag:
  11094. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11095. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RESULT,
  11096. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11097. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11098. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11099. *
  11100. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  11101. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  11102. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11103. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11104. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  11105. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE.
  11106. *
  11107. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  11108. * /firmware when STA sends a BTM request frame. Uses the following attributes
  11109. * of enum qca_wlan_vendor_attr_diag:
  11110. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11111. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11112. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  11113. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  11114. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  11115. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  11116. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11117. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11118. *
  11119. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  11120. * driver/firmware when STA queries about BTM transition. Uses the following
  11121. * attributes of enum qca_wlan_vendor_attr_diag:
  11122. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11123. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11124. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  11125. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11126. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11127. *
  11128. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  11129. * /firmware when STA receives BTM response frame. Uses the following
  11130. * attributes of enum qca_wlan_vendor_attr_diag:
  11131. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11132. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  11133. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  11134. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  11135. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  11136. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11137. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11138. *
  11139. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  11140. * driver/firmware to provide BTM request candidate information. Uses the
  11141. * following attributes of enum qca_wlan_vendor_attr_diag:
  11142. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11143. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  11144. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  11145. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  11146. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11147. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11148. *
  11149. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  11150. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  11151. * enum qca_wlan_vendor_attr_diag:
  11152. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11153. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  11154. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  11155. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  11156. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11157. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11158. *
  11159. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  11160. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  11161. * attributes of enum qca_wlan_vendor_attr_diag:
  11162. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11163. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11164. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11165. *
  11166. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  11167. * driver/firmware to indicate DHCP offering to AP. Uses the following
  11168. * attributes of enum qca_wlan_vendor_attr_diag:
  11169. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11170. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11171. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11172. *
  11173. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  11174. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  11175. * attributes of enum qca_wlan_vendor_attr_diag:
  11176. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11177. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11178. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11179. *
  11180. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  11181. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  11182. * attributes of enum qca_wlan_vendor_attr_diag:
  11183. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11184. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11185. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11186. *
  11187. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  11188. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  11189. * following attributes of enum qca_wlan_vendor_attr_diag:
  11190. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11191. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11192. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11193. *
  11194. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  11195. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  11196. * enum qca_wlan_vendor_attr_diag:
  11197. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11198. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11199. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11200. *
  11201. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  11202. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  11203. * enum qca_wlan_vendor_attr_diag:
  11204. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11205. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11206. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11207. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11208. *
  11209. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  11210. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  11211. * enum qca_wlan_vendor_attr_diag:
  11212. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11213. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11214. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11215. *
  11216. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  11217. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  11218. * enum qca_wlan_vendor_attr_diag:
  11219. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11220. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11221. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11222. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11223. *
  11224. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  11225. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  11226. * enum qca_wlan_vendor_attr_diag:
  11227. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11228. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11229. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11230. *
  11231. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  11232. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  11233. * enum qca_wlan_vendor_attr_diag:
  11234. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11235. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11236. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID,
  11237. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  11238. *
  11239. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  11240. * /firmware to indicate device sent EAP request. Uses the following attributes
  11241. * of enum qca_wlan_vendor_attr_diag:
  11242. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11243. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  11244. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  11245. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11246. *
  11247. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  11248. * /firmware to indicate device received EAP response. Uses the following
  11249. * attributes of enum qca_wlan_vendor_attr_diag:
  11250. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11251. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  11252. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  11253. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  11254. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11255. *
  11256. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  11257. * /firmware to indicate EAP frame transmission is success. Uses the following
  11258. * attributes of enum qca_wlan_vendor_attr_diag:
  11259. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11260. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11261. *
  11262. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  11263. * /firmware to indicate EAP frame transmission is failed. Uses the following
  11264. * attributes of enum qca_wlan_vendor_attr_diag:
  11265. * QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP,
  11266. * QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID.
  11267. */
  11268. enum qca_vendor_attr_diag_event_type {
  11269. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  11270. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  11271. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  11272. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  11273. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  11274. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  11275. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  11276. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  11277. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  11278. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  11279. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  11280. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  11281. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  11282. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  11283. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  11284. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  11285. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  11286. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  11287. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  11288. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  11289. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  11290. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  11291. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  11292. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  11293. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  11294. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  11295. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  11296. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  11297. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  11298. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  11299. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  11300. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  11301. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  11302. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  11303. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  11304. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  11305. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  11306. /* keep last */
  11307. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  11308. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  11309. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  11310. };
  11311. /**
  11312. * enum qca_wlan_vendor_tx_status - Used by attribute
  11313. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  11314. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  11315. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  11316. * is not received.
  11317. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  11318. * acknowledged.
  11319. */
  11320. enum qca_wlan_vendor_tx_status {
  11321. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  11322. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 3,
  11323. QCA_WLAN_VENDOR_TX_STATUS_ACK = 4,
  11324. };
  11325. /**
  11326. * enum qca_roam_sub_reason - Used by attribute
  11327. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  11328. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  11329. * timer expiry
  11330. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  11331. * to no candidate found during LOW RSSI trigger.
  11332. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  11333. * Imminent timeout
  11334. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  11335. * failure
  11336. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  11337. * emergency like deauth/disassoc.
  11338. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  11339. * BSS transition management request.
  11340. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  11341. * Roam scan triggered due to Low rssi periodic timer
  11342. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  11343. * Roam trigger due to periodic timer after no candidate found during CU
  11344. * inactivity timer scan.
  11345. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  11346. * found in high CU roam trigger.
  11347. */
  11348. enum qca_roam_sub_reason {
  11349. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  11350. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  11351. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  11352. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  11353. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  11354. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  11355. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  11356. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  11357. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  11358. };
  11359. /**
  11360. * enum qca_wlan_vendor_eap_type - Used by attribute
  11361. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE to indicate the type of the EAP
  11362. * packet received.
  11363. * @QCA_WLAN_VENDOR_EAP_TYPE_IDENTITY: Refer the EAP Registry RFC 3748.
  11364. * @QCA_WLAN_VENDOR_EAP_TYPE_TLS: Refer the EAP Registry RFC 2716.
  11365. * @QCA_WLAN_VENDOR_EAP_TYPE_LEAP: Cisco proprietary.
  11366. * @QCA_WLAN_VENDOR_EAP_TYPE_TTLS: Refer the EAP Registry RFC 5281.
  11367. * @QCA_WLAN_VENDOR_EAP_TYPE_AKA: Refer the EAP Registry RFC 4187.
  11368. * @QCA_WLAN_VENDOR_EAP_TYPE_PEAP: Refer
  11369. * draft-josefsson-pppext-eap-tls-eap-06.txt.
  11370. * @QCA_WLAN_VENDOR_EAP_TYPE_FAST: Refer the EAP Registry RFC 4851.
  11371. * @QCA_WLAN_VENDOR_EAP_TYPE_PSK: Refer the EAP Registry RFC 4764.
  11372. * @QCA_WLAN_VENDOR_EAP_TYPE_AKAP: Refer the EAP Registry RFC 5448.
  11373. */
  11374. enum qca_wlan_vendor_eap_type {
  11375. QCA_WLAN_VENDOR_EAP_TYPE_IDENTITY = 1,
  11376. QCA_WLAN_VENDOR_EAP_TYPE_TLS = 13,
  11377. QCA_WLAN_VENDOR_EAP_TYPE_LEAP = 17,
  11378. QCA_WLAN_VENDOR_EAP_TYPE_TTLS = 21,
  11379. QCA_WLAN_VENDOR_EAP_TYPE_AKA = 23,
  11380. QCA_WLAN_VENDOR_EAP_TYPE_PEAP = 25,
  11381. QCA_WLAN_VENDOR_EAP_TYPE_FAST = 43,
  11382. QCA_WLAN_VENDOR_EAP_TYPE_PSK = 47,
  11383. QCA_WLAN_VENDOR_EAP_TYPE_AKAP = 50,
  11384. };
  11385. /*
  11386. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  11387. * to send diag data to the userspace. The attributes defined in this enum are
  11388. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  11389. *
  11390. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  11391. * by driver/firmware to send diag data. Each instance of this nested attribute
  11392. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  11393. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the event
  11394. * type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  11395. * nested attribute can be sent with one vendor command
  11396. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  11397. *
  11398. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  11399. * attribute indicates the type of the diag event from driver/firmware. Uses
  11400. * values from enum qca_vendor_attr_diag_event_type.
  11401. *
  11402. * @QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP: Required u64 attribute. This
  11403. * attribute indicates the kernel timestamp. The value is filled as time of the
  11404. * day converted to microseconds.
  11405. *
  11406. * @QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID: Optional u8 attribute. This attribute
  11407. * indicates VDEV identifier.
  11408. *
  11409. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  11410. * indicates 6-byte MAC address representing the BSSID of the AP.
  11411. *
  11412. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  11413. * indicates the 6-byte MAC address representing the BSSID hint sent in
  11414. * the connect request.
  11415. *
  11416. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute indicates
  11417. * the SSID in hex-decimal bytes. Maximum length is 32-characters.
  11418. *
  11419. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  11420. * indicates the frequency of AP.
  11421. *
  11422. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  11423. * indicates frequency hint given in the connect request.
  11424. *
  11425. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute. This attribute
  11426. * indicates RSSI of the 802.11 frame.
  11427. *
  11428. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  11429. * This attribute indicates Pairwise cipher suite.
  11430. *
  11431. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  11432. * This attribute indicates Group cipher suite.
  11433. *
  11434. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  11435. * attribute indicates Group management cipher suite.
  11436. *
  11437. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  11438. * indicates Auth key management suite.
  11439. *
  11440. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  11441. * indicates authentication algorithm number.
  11442. *
  11443. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  11444. * indicates bluetooth connection status.
  11445. *
  11446. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_FRAME_TYPE: Optional u8 attribute. This
  11447. * attribute indicates authentication frame type. The possible values are
  11448. * 1 - SAE commit frame
  11449. * 2 - SAE confirm frame
  11450. *
  11451. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  11452. * attribute indicates the reason codes defined in
  11453. * IEEE spec. Table 9-49—Reason codes
  11454. *
  11455. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  11456. * attribute indicates sequence number of the frame.
  11457. *
  11458. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This attribute
  11459. * indicates the status codes defined in IEEE spec.Table 9-50—Status codes
  11460. *
  11461. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  11462. * Uses enum qca_wlan_vendor_tx_status.
  11463. *
  11464. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  11465. * indicates if frame transmission is retried.
  11466. *
  11467. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  11468. * Uses enum qca_roam_reason.
  11469. *
  11470. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  11471. * Uses enum qca_roam_sub_reason.
  11472. *
  11473. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  11474. * indicates channel utilization in percentage.
  11475. *
  11476. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  11477. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  11478. *
  11479. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  11480. * This attribute indicates current RSSI threshold.
  11481. *
  11482. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  11483. * This attribute indicates firmware timestamp in microseconds.
  11484. *
  11485. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  11486. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  11487. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  11488. *
  11489. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  11490. * This attribute indicates number of scanned candidate APs.
  11491. *
  11492. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  11493. * attribute indicates roam AP rank computed based on connection preference.
  11494. *
  11495. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  11496. * This attribute indicates expected throughput in kbps.
  11497. *
  11498. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  11499. * This attribute indicates the preference value of candidate AP / connected AP
  11500. * calculated in the firmware.
  11501. *
  11502. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RESULT: Optional flag. This attribute
  11503. * indicates successful connection/roaming.
  11504. *
  11505. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  11506. * This attribute indicates BTM WTC sub reason code.
  11507. *
  11508. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  11509. * This attribute indicates BTM WTC duration in milliseconds.
  11510. *
  11511. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u16 attribute. This attribute
  11512. * indicates dialog token value of BTM query/request/response frames.
  11513. *
  11514. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  11515. * attribute indicates the Transition Reason field indicates the reason why
  11516. * a transition attempt occurred and contains one of the values in IEEE
  11517. * 802.11: Table 9-176.
  11518. *
  11519. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  11520. * indicates BTM mode defined in IEEE 802.11 spec. Figure 9-924—Request Mode field.
  11521. *
  11522. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u32 attribute.
  11523. * This attribute indicates the Disassociation Timer field which is the number
  11524. * of beacon transmission times (TBTTs) until the serving AP will send a
  11525. * Disassociation frame to this STA.
  11526. *
  11527. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u32 attribute.
  11528. * This attribute indicates BTM validity interval field in TBTTs and is defined
  11529. * in IEEE spec. Figure 9-923—BSS Transition Management Request frame Action
  11530. * field format
  11531. *
  11532. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  11533. * This attribute indicates BTM candidate list entries.
  11534. *
  11535. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  11536. * This attribute indicates network preference for BTM transition.
  11537. *
  11538. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  11539. * This attribute indicates BTM transition status code defined in 802.11
  11540. * section: Table 9-357.
  11541. *
  11542. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  11543. * This attribute indicates BSS termination delay defined in IEEE 802.11
  11544. * section: 9.6.13.10.
  11545. *
  11546. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  11547. * This attribute indicates 6-byte MAC address representing the BSSID of the
  11548. * BSS that the non-AP STA transitions to.
  11549. *
  11550. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  11551. * indicates EAP frame type. Uses enum qca_wlan_vendor_eap_type.
  11552. *
  11553. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  11554. * indicates EAP frame length.
  11555. */
  11556. enum qca_wlan_vendor_attr_diag {
  11557. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  11558. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  11559. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  11560. QCA_WLAN_VENDOR_ATTR_DIAG_TIMESTAMP = 3,
  11561. QCA_WLAN_VENDOR_ATTR_DIAG_VDEV_ID = 4,
  11562. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 5,
  11563. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 6,
  11564. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 7,
  11565. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 8,
  11566. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 9,
  11567. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 10,
  11568. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 11,
  11569. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 12,
  11570. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 13,
  11571. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 14,
  11572. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 15,
  11573. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 16,
  11574. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_FRAME_TYPE = 17,
  11575. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 18,
  11576. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 19,
  11577. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 20,
  11578. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 21,
  11579. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 22,
  11580. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 23,
  11581. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 24,
  11582. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 25,
  11583. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 26,
  11584. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 27,
  11585. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 28,
  11586. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  11587. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  11588. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  11589. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  11590. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  11591. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RESULT = 34,
  11592. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  11593. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  11594. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  11595. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  11596. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  11597. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  11598. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  11599. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  11600. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  11601. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  11602. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  11603. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  11604. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  11605. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  11606. /* keep last */
  11607. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  11608. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  11609. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  11610. };
  11611. #endif