qca_vendor.h 431 KB

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