qca_vendor.h 433 KB

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