qca_vendor.h 546 KB

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