qca_vendor.h 328 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806
  1. /*
  2. * Copyright (c) 2012-2019 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. /**
  32. * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
  33. *
  34. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
  35. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
  36. * Sub commands 2 to 8 are not used
  37. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
  38. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
  39. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
  40. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  41. * NAN Request/Response and NAN Indication messages. These messages are
  42. * interpreted between the framework and the firmware component. While
  43. * sending the command from userspace to the driver, payload is not
  44. * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
  45. * is used when receiving vendor events in userspace from the driver.
  46. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
  47. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
  48. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
  49. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
  50. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
  51. * results
  52. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
  53. * results
  54. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
  55. * results
  56. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
  57. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
  58. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
  59. * channels
  60. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
  61. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
  62. * results
  63. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
  64. * available. Used when report_threshold is reached in scan cache.
  65. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
  66. * result. Used to report scan results when each probe rsp. is received,
  67. * if report_events enabled in wifi_scan_cmd_params.
  68. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
  69. * Indicates progress of scanning state-machine.
  70. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
  71. * ap found
  72. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
  73. * bssid
  74. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
  75. * hotlist bssid
  76. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
  77. * change
  78. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
  79. * significant change
  80. * ap found
  81. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
  82. * significant change
  83. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
  84. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
  85. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
  86. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
  87. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  88. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  89. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  90. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  91. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  92. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  93. * roaming and auth information.
  94. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  95. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS offload flag
  96. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  97. * driver.
  98. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  99. * started CAC on DFS channel
  100. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  101. * completed the CAC check on DFS channel
  102. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  103. * check was aborted by the driver
  104. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  105. * driver completed NOP
  106. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  107. * driver detected radar signal on the current operating channel
  108. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  109. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  110. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  111. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  112. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  113. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  114. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  115. * extscan reset ssid hotlist
  116. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  117. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  118. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  119. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  120. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  121. * reset passpoint list
  122. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  123. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  124. * passpoint network found
  125. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  126. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  127. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  128. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  129. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  130. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  131. list
  132. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  133. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: vendor setband command
  134. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  135. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  136. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  137. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  138. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  139. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  140. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  141. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  142. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  143. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  144. * start the P2P Listen Offload function in device and pass the listen
  145. * channel, period, interval, count, number of device types, device
  146. * types and vendor information elements to device driver and firmware.
  147. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  148. * indicate stop request/response of the P2P Listen Offload function in
  149. * device. As an event, it indicates either the feature stopped after it
  150. * was already running or feature has actually failed to start.
  151. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  152. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  153. * beaconing, this sub command provides the driver, the frequencies on the
  154. * 5 GHz to check for any radar activity. Driver selects one channel from
  155. * this priority list provided through
  156. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  157. * to check for radar activity on it. If no radar activity is detected
  158. * during the channel availability check period, driver internally switches
  159. * to the selected frequency of operation. If the frequency is zero, driver
  160. * internally selects a channel. The status of this conditional switch is
  161. * indicated through an event using the same sub command through
  162. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  163. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  164. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  165. * indication period and threshold for MAC layer counters.
  166. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  167. * in the host driver. The different TDLS configurations are defined
  168. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  169. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  170. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  171. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  172. * require methods to set SAR limits on TX power of WLAN/WWAN.
  173. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  174. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  175. * configuration of vendor ACS.
  176. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  177. * requisite information leading to a power save failure. The information
  178. * carried as part of this event is represented by the
  179. * enum qca_attr_chip_power_save_failure attributes.
  180. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  181. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  182. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  183. * statistics are represented by the enum qca_attr_nud_stats_get
  184. * attributes.
  185. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  186. * the BSS transition status, whether accept or reject, for a list of
  187. * candidate BSSIDs provided by the userspace. This uses the vendor
  188. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  189. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  190. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  191. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  192. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  193. * the driver shall specify array of
  194. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  195. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  196. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  197. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  198. * specific QCA module. The trace levels are represented by
  199. * enum qca_attr_trace_level attributes.
  200. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  201. * Protocol antenna limit in different modes. See enum
  202. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  203. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  204. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  205. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  206. * identifying the operation in success case. In failure cases an
  207. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  208. * describing the reason for the failure is returned.
  209. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  210. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  211. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  212. * be stopped.
  213. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  214. * specific interface. This can be used to modify some of the low level
  215. * scan parameters (off channel dwell time, home channel time) in the
  216. * driver/firmware. These parameters are maintained within the host
  217. * driver.
  218. * This command is valid only when the interface is in the connected
  219. * state.
  220. * These scan parameters shall be reset by the driver/firmware once
  221. * disconnected. The attributes used with this command are defined in
  222. * enum qca_wlan_vendor_attr_active_tos.
  223. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  224. * driver has detected an internal failure. This event carries the
  225. * information indicating the reason that triggered this detection. The
  226. * attributes for this command are defined in
  227. * enum qca_wlan_vendor_attr_hang.
  228. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  229. * of spectral parameters used. The spectral scan parameters are specified
  230. * by enum qca_wlan_vendor_attr_spectral_scan.
  231. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  232. * for spectral scan functionality. The debug stats are specified by
  233. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  234. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  235. * scan system capabilities. The capabilities are specified
  236. * by enum qca_wlan_vendor_attr_spectral_cap.
  237. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  238. * status of spectral scan. The status values are specified
  239. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  240. * @QCA_NL80211_VENDOR_SUBCMD_HTT_STATS: Request the firmware
  241. * DP stats for a particualr stats type for response evnet
  242. * it carries the stats data sent from the FW
  243. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  244. * RF Operating Parameter (RROP) information. The attributes for this
  245. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  246. * intended for use by external Auto Channel Selection applications.
  247. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  248. * (SAR) power limits. This is a companion to the command
  249. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  250. * settings currently in use. The attributes returned by this command are
  251. * defined by enum qca_vendor_attr_sar_limits.
  252. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  253. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  254. * This works both as a query (user space asks the current mode) or event
  255. * interface (driver advertizing the current mode to the user space).
  256. * Driver does not trigger this event for temporary hardware mode changes.
  257. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  258. * channel change etc ) are updated with this event. Attributes for this
  259. * interface are defined in enum qca_wlan_vendor_attr_mac.
  260. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  261. * per peer per TID. Attributes for this command are define in
  262. * enum qca_wlan_set_qdepth_thresh_attr
  263. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  264. * test configuration. Attributes for this command are defined in
  265. * enum qca_wlan_vendor_attr_wifi_test_config.
  266. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  267. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  268. * carried a payload which was a binary blob of data. The command was not
  269. * extendable to send more information. The newer version carries the
  270. * legacy blob encapsulated within an attribute and can be extended with
  271. * additional vendor attributes that can enhance the NAN command
  272. * interface.
  273. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  274. * The returned firmware state is specified in the attribute
  275. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  276. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  277. * is used by host driver to flush per-peer cached statistics to user space
  278. * application. This interface is used as an event from host driver to
  279. * user space application. Attributes for this event are specified in
  280. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  281. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  282. * sent as event from host driver.
  283. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  284. * improve the success rate of Zigbee joining network.
  285. * Due to PTA master limitation, zigbee joining network success rate is
  286. * low while wlan is working. Wlan host driver need to configure some
  287. * parameters including Zigbee state and specific WLAN periods to enhance
  288. * PTA master. All this parameters are delivered by the NetLink attributes
  289. * defined in "enum qca_mpta_helper_vendor_attr".
  290. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  291. * implement Beacon frame reporting feature.
  292. *
  293. * Userspace can request the driver/firmware to periodically report
  294. * received Beacon frames whose BSSID is same as the current connected
  295. * BSS's MAC address.
  296. *
  297. * In case the STA seamlessly (without sending disconnect indication to
  298. * userspace) roams to a different BSS, Beacon frame reporting will be
  299. * automatically enabled for the Beacon frames whose BSSID is same as the
  300. * MAC address of the new BSS. Beacon reporting will be stopped when the
  301. * STA is disconnected (when the disconnect indication is sent to
  302. * userspace) and need to be explicitly enabled by userspace for next
  303. * connection.
  304. *
  305. * When a Beacon frame matching configured conditions is received, and if
  306. * userspace has requested to send asynchronous beacon reports, the
  307. * driver/firmware will encapsulate the details of the Beacon frame in an
  308. * event and send it to userspace along with updating the BSS information
  309. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  310. * scan cache with the information from the received Beacon frame but
  311. * will not send any active report to userspace.
  312. *
  313. * The userspace can request the driver/firmware to stop reporting Beacon
  314. * frames. If the driver/firmware is not able to receive Beacon frames
  315. * due to other Wi-Fi operations such as off-channel activities, etc.,
  316. * the driver/firmware will send a pause event to userspace and stop
  317. * reporting Beacon frames. Whether the beacon reporting will be
  318. * automatically resumed or not by the driver/firmware later will be
  319. * reported to userspace using the
  320. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  321. * reporting shall be resumed for all the cases except either when
  322. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  323. * in the command which triggered the current beacon reporting or during
  324. * any disconnection case as indicated by setting
  325. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  326. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  327. * driver.
  328. *
  329. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  330. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  331. * flag not set, the next first
  332. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  333. * shall be considered as un-pause event.
  334. *
  335. * All the attributes used with this command are defined in
  336. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  337. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  338. * interop issues with the DUT. This sub command is used to transfer the
  339. * ap info between driver and user space. This works both as a command
  340. * or event. As a command, it configs the stored list of aps from user
  341. * space to firmware; as an event, it indicates the ap info detected by
  342. * firmware to user space for persistent storage. The attributes defined
  343. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  344. * parameters.
  345. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  346. * binary blobs from application/service to firmware. The attributes
  347. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  348. * deliver the parameters.
  349. */
  350. enum qca_nl80211_vendor_subcmds {
  351. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  352. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  353. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  354. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  355. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  356. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  357. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  358. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  359. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  360. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  361. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  362. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  363. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  364. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  365. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  366. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  367. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  368. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  369. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  370. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  371. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  372. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  373. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  374. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  375. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  376. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  377. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  378. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  379. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  380. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  381. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  382. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  383. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  384. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  385. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  386. /* Get Concurrency Matrix */
  387. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  388. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  389. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  390. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  391. /* Deprecated */
  392. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  393. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  394. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  395. /* Off loaded DFS events */
  396. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  397. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  398. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  399. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  400. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  401. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  402. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  403. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  404. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  405. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  406. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  407. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  408. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  409. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  410. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  411. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  412. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  413. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  414. /* Wi-Fi Configuration subcommands */
  415. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  416. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  417. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  418. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  419. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  420. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  421. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  422. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  423. /* NS Offload enable/disable cmd */
  424. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  425. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  426. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  427. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  428. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  429. /* OCB commands */
  430. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  431. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  432. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  433. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  434. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  435. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  436. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  437. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  438. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  439. /* subcommand to get link properties */
  440. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  441. /* LFR Subnet Detection */
  442. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  443. /* DBS subcommands */
  444. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  445. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  446. /* Vendor setband command */
  447. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  448. /* Vendor scan commands */
  449. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  450. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  451. /* OTA test subcommand */
  452. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  453. /* Tx power scaling subcommands */
  454. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  455. /* Tx power scaling in db subcommands */
  456. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  457. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  458. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  459. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  460. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  461. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  462. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  463. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  464. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  465. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  466. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  467. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  468. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  469. /* FTM/indoor location subcommands */
  470. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  471. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  472. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  473. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  474. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  475. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  476. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  477. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  478. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  479. /* Encrypt/Decrypt command */
  480. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  481. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  482. /* DMG low level RF sector operations */
  483. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  484. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  485. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  486. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  487. /* Configure the TDLS mode from user space */
  488. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  489. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  490. /* Vendor abort scan command */
  491. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  492. /* Set Specific Absorption Rate(SAR) Power Limits */
  493. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  494. /* External Auto channel configuration setting */
  495. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  496. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  497. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  498. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  499. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  500. /* Set the trace level for QDF */
  501. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  502. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  503. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  504. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  505. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  506. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  507. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  508. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  509. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  510. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  511. QCA_NL80211_VENDOR_SUBCMD_HTT_STATS = 162,
  512. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  513. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  514. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  515. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  516. /* Wi-Fi test configuration subcommand */
  517. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  518. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  519. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  520. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  521. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  522. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  523. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  524. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  525. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  526. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  527. };
  528. enum qca_wlan_vendor_tos {
  529. QCA_WLAN_VENDOR_TOS_BK = 0,
  530. QCA_WLAN_VENDOR_TOS_BE = 1,
  531. QCA_WLAN_VENDOR_TOS_VI = 2,
  532. QCA_WLAN_VENDOR_TOS_VO = 3,
  533. };
  534. /**
  535. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  536. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  537. */
  538. enum qca_wlan_vendor_attr_active_tos {
  539. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  540. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  541. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  542. /* Flag attribute representing the start (attribute included) or stop
  543. * (attribute not included) of the respective TOS.
  544. */
  545. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  546. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  547. };
  548. enum qca_wlan_vendor_hang_reason {
  549. /* Unspecified reason */
  550. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  551. /* No Map for the MAC entry for the received frame */
  552. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  553. /* peer deletion timeout happened */
  554. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  555. /* peer unmap timeout */
  556. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  557. /* Scan request timed out */
  558. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  559. /* Consecutive Scan attempt failures */
  560. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  561. /* Unable to get the message buffer */
  562. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  563. /* Current command processing is timedout */
  564. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  565. /* Timeout for an ACK from FW for suspend request */
  566. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  567. /* Timeout for an ACK from FW for resume request */
  568. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  569. /* Transmission timeout for consecutive data frames */
  570. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  571. /* Timeout for the TX completion status of data frame */
  572. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  573. /* DXE failure for tx/Rx, DXE resource unavailability */
  574. QCA_WLAN_HANG_DXE_FAILURE = 12,
  575. /* WMI pending commands exceed the maximum count */
  576. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  577. };
  578. /**
  579. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  580. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  581. */
  582. enum qca_wlan_vendor_attr_hang {
  583. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  584. /*
  585. * Reason for the Hang - Represented by enum
  586. * qca_wlan_vendor_hang_reason.
  587. */
  588. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  589. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  590. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  591. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  592. };
  593. /**
  594. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  595. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  596. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  597. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  598. level needs to be updated.
  599. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  600. * to be set.
  601. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  602. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  603. */
  604. enum qca_vendor_attr_set_trace_level {
  605. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  606. /*
  607. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  608. * attributes.
  609. */
  610. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  611. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  612. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  613. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  614. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  615. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  616. };
  617. /**
  618. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  619. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  620. * station information. The information obtained through these
  621. * commands signify the current info in connected state and
  622. * latest cached information during the connected state , if queried
  623. * when in disconnected state.
  624. *
  625. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  626. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  627. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  628. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  629. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  630. */
  631. enum qca_wlan_vendor_attr_get_station {
  632. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  633. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  634. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  635. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  636. /* keep last */
  637. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  638. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  639. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  640. };
  641. /**
  642. * enum qca_wlan_802_11_mode - dot11 mode
  643. * @QCA_WLAN_802_11_MODE_11B: mode B
  644. * @QCA_WLAN_802_11_MODE_11G: mode G
  645. * @QCA_WLAN_802_11_MODE_11N: mode N
  646. * @QCA_WLAN_802_11_MODE_11A: mode A
  647. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  648. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  649. */
  650. enum qca_wlan_802_11_mode {
  651. QCA_WLAN_802_11_MODE_11B,
  652. QCA_WLAN_802_11_MODE_11G,
  653. QCA_WLAN_802_11_MODE_11N,
  654. QCA_WLAN_802_11_MODE_11A,
  655. QCA_WLAN_802_11_MODE_11AC,
  656. QCA_WLAN_802_11_MODE_INVALID,
  657. };
  658. /**
  659. * enum qca_wlan_auth_type - Authentication key management type
  660. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  661. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  662. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  663. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  664. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  665. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  666. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  667. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  668. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  669. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  670. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  671. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  672. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  673. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  674. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  675. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  676. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  677. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  678. */
  679. enum qca_wlan_auth_type {
  680. QCA_WLAN_AUTH_TYPE_INVALID,
  681. QCA_WLAN_AUTH_TYPE_OPEN,
  682. QCA_WLAN_AUTH_TYPE_SHARED,
  683. QCA_WLAN_AUTH_TYPE_WPA,
  684. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  685. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  686. QCA_WLAN_AUTH_TYPE_RSN,
  687. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  688. QCA_WLAN_AUTH_TYPE_FT,
  689. QCA_WLAN_AUTH_TYPE_FT_PSK,
  690. QCA_WLAN_AUTH_TYPE_SHA256,
  691. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  692. QCA_WLAN_AUTH_TYPE_WAI,
  693. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  694. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  695. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  696. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  697. QCA_WLAN_AUTH_TYPE_FT_SAE,
  698. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  699. };
  700. /**
  701. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  702. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  703. *
  704. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  705. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  706. * Get the standard NL attributes Nested with this attribute.
  707. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  708. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  709. * NL80211_ATTR_STA_INFO
  710. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  711. * Get the standard NL attributes Nested with this attribute.
  712. * Ex : Query HT/VHT Capability advertized by the AP.
  713. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  714. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  715. * Number of successful Roam attempts before a
  716. * disconnect, Unsigned 32 bit value
  717. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  718. * Authentication Key Management Type used for the connected session.
  719. * Signified by enum qca_wlan_auth_type
  720. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  721. * connected Session, signified by enum qca_wlan_802_11_mode
  722. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  723. * HS20 Indication Element
  724. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  725. * Status Code Corresponding to the Association Failure.
  726. * Unsigned 32 bit value.
  727. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  728. * Max phy rate of remote station
  729. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  730. * TX packets to remote station
  731. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  732. * TX bytes to remote station
  733. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  734. * RX packets from remote station
  735. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  736. * RX bytes from remote station
  737. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  738. * Last TX rate with remote station
  739. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  740. * Last RX rate with remote station
  741. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  742. * Remote station enable/disable WMM
  743. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  744. * Remote station connection mode
  745. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  746. * Remote station AMPDU enable/disable
  747. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  748. * Remote station TX Space-time block coding enable/disable
  749. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  750. * Remote station RX Space-time block coding enable/disable
  751. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  752. * Remote station channel width
  753. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  754. * Remote station short GI enable/disable
  755. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  756. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  757. */
  758. enum qca_wlan_vendor_attr_get_station_info {
  759. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  760. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  761. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  762. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  763. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  764. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  765. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  766. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  767. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  768. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  769. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  770. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  771. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  772. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  773. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  774. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  775. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  776. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  777. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  778. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  779. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  780. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  781. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  782. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  783. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  784. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  785. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  786. /* keep last */
  787. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  788. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  789. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  790. };
  791. /**
  792. * enum qca_nl80211_vendor_subcmds_index - vendor sub commands index
  793. *
  794. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_INDEX: Avoid frequency
  795. * @QCA_NL80211_VENDOR_SUBCMD_NAN_INDEX: Nan
  796. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT_INDEX: Ext stats
  797. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START_INDEX: Ext scan start
  798. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP_INDEX: Ext scan stop
  799. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES_INDEX: Ext scan get
  800. * capability
  801. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS_INDEX: Ext scan get
  802. * cached results
  803. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE_INDEX: Ext scan
  804. * results available
  805. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT_INDEX: Ext scan full
  806. * scan result
  807. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT_INDEX: Ext scan event
  808. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND_INDEX: Ext scan hot list
  809. * AP found
  810. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST_INDEX: Ext scan set
  811. * bssid hotlist
  812. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST_INDEX: Ext scan reset
  813. * bssid hotlist
  814. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE_INDEX: Ext scan
  815. * significant change
  816. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE_INDEX: Ext scan
  817. * set significant change
  818. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE_INDEX: Ext scan
  819. * reset significant change
  820. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET_INDEX: Set stats
  821. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET_INDEX: Get stats
  822. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR_INDEX: Clear stats
  823. * @QCA_NL80211_VENDOR_SUBCMD_LL_RADIO_STATS_INDEX: Radio stats
  824. * @QCA_NL80211_VENDOR_SUBCMD_LL_IFACE_STATS_INDEX: Iface stats
  825. * @QCA_NL80211_VENDOR_SUBCMD_LL_PEER_INFO_STATS_INDEX: Peer info stats
  826. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT_INDEX: MAC layer counters
  827. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE_CHANGE_INDEX: Ext tdls state change
  828. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS_INDEX: ACS command
  829. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH_INDEX: Pass Roam and Auth info
  830. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST_INDEX: hotlist ap lost
  831. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND_INDEX:
  832. * pno network found index
  833. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND_INDEX:
  834. * passpoint match found index
  835. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST_INDEX:
  836. * set ssid hotlist index
  837. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST_INDEX:
  838. * reset ssid hotlist index
  839. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND_INDEX:
  840. * hotlist ssid found index
  841. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST_INDEX:
  842. * hotlist ssid lost index
  843. * @QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT_INDEX
  844. * dcc stats event index
  845. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_INDEX: vendor scan index
  846. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE_INDEX:
  847. * vendor scan complete event index
  848. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG_INDEX:
  849. * update gateway parameters index
  850. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP_INDEX:
  851. * update aps info which has interop issues events index
  852. * @QCA_NL80211_VENDOR_SUBCMD_TSF_INDEX: TSF response events index
  853. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LO_EVENT_INDEX:
  854. * P2P listen offload index
  855. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH_INDEX: SAP
  856. * conditional channel switch index
  857. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET_INDEX: NUD DEBUG Stats index
  858. * @QCA_NL80211_VENDOR_SUBCMD_HANG_REASON_INDEX: hang event reason index
  859. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO_INDEX: MAC mode info index
  860. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT_INDEX: NAN Extended index
  861. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING_INDEX: Beacon reporting index
  862. */
  863. enum qca_nl80211_vendor_subcmds_index {
  864. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_INDEX = 0,
  865. QCA_NL80211_VENDOR_SUBCMD_NAN_INDEX,
  866. #ifdef WLAN_FEATURE_STATS_EXT
  867. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT_INDEX,
  868. #endif /* WLAN_FEATURE_STATS_EXT */
  869. #ifdef FEATURE_WLAN_EXTSCAN
  870. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START_INDEX,
  871. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP_INDEX,
  872. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES_INDEX,
  873. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS_INDEX,
  874. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE_INDEX,
  875. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT_INDEX,
  876. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT_INDEX,
  877. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND_INDEX,
  878. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST_INDEX,
  879. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST_INDEX,
  880. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE_INDEX,
  881. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE_INDEX,
  882. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE_INDEX,
  883. #endif /* FEATURE_WLAN_EXTSCAN */
  884. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  885. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET_INDEX,
  886. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET_INDEX,
  887. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR_INDEX,
  888. QCA_NL80211_VENDOR_SUBCMD_LL_RADIO_STATS_INDEX,
  889. QCA_NL80211_VENDOR_SUBCMD_LL_IFACE_STATS_INDEX,
  890. QCA_NL80211_VENDOR_SUBCMD_LL_PEER_INFO_STATS_INDEX,
  891. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT_INDEX,
  892. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  893. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE_CHANGE_INDEX,
  894. QCA_NL80211_VENDOR_SUBCMD_DO_ACS_INDEX,
  895. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  896. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH_INDEX,
  897. #endif
  898. /* DFS */
  899. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED_INDEX,
  900. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED_INDEX,
  901. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED_INDEX,
  902. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED_INDEX,
  903. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED_INDEX,
  904. #ifdef FEATURE_WLAN_EXTSCAN
  905. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST_INDEX,
  906. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND_INDEX,
  907. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND_INDEX,
  908. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST_INDEX,
  909. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST_INDEX,
  910. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND_INDEX,
  911. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST_INDEX,
  912. #endif /* FEATURE_WLAN_EXTSCAN */
  913. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION_INDEX,
  914. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI_INDEX,
  915. #ifdef WLAN_FEATURE_MEMDUMP
  916. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP_INDEX,
  917. #endif /* WLAN_FEATURE_MEMDUMP */
  918. /* OCB events */
  919. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT_INDEX,
  920. QCA_NL80211_VENDOR_SUBCMD_SCAN_INDEX,
  921. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE_INDEX,
  922. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG_INDEX,
  923. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP_INDEX,
  924. #ifdef WLAN_FEATURE_TSF
  925. QCA_NL80211_VENDOR_SUBCMD_TSF_INDEX,
  926. #endif
  927. QCA_NL80211_VENDOR_SUBCMD_NDP_INDEX,
  928. QCA_NL80211_VENDOR_SUBCMD_P2P_LO_EVENT_INDEX,
  929. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH_INDEX,
  930. QCA_NL80211_VENDOR_SUBCMD_UPDATE_EXTERNAL_ACS_CONFIG,
  931. QCA_NL80211_VENDOR_SUBCMD_PWR_SAVE_FAIL_DETECTED_INDEX,
  932. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET_INDEX,
  933. QCA_NL80211_VENDOR_SUBCMD_HANG_REASON_INDEX,
  934. QCA_NL80211_VENDOR_SUBCMD_HTT_STATS_INDEX,
  935. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO_INDEX,
  936. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT_INDEX,
  937. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT_INDEX,
  938. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES_INDEX,
  939. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH_INDEX,
  940. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING_INDEX,
  941. QCA_NL80211_VENDOR_SUBCMD_ROAM_INDEX,
  942. };
  943. /**
  944. * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
  945. *
  946. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
  947. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
  948. * value
  949. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
  950. * keep as unsigned for now
  951. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
  952. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
  953. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
  954. * in KBPS
  955. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
  956. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
  957. */
  958. enum qca_wlan_vendor_attr_tdls_enable {
  959. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  960. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
  961. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
  962. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
  963. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
  964. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
  965. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  966. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  967. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  968. };
  969. /**
  970. * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
  971. *
  972. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
  973. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
  974. * 8-bit value
  975. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
  976. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
  977. */
  978. enum qca_wlan_vendor_attr_tdls_disable {
  979. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  980. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
  981. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  982. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  983. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  984. };
  985. /**
  986. * qca_chip_power_save_failure_reason: Power save failure reason
  987. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  988. * due to protocol/module.
  989. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  990. * due to hardware
  991. */
  992. enum qca_chip_power_save_failure_reason {
  993. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  994. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  995. };
  996. /**
  997. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  998. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  999. * information leading to the power save failure.
  1000. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1001. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1002. * represented by enum qca_chip_power_save_failure_reason
  1003. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1004. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1005. */
  1006. enum qca_attr_chip_power_save_failure {
  1007. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1008. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1009. /* keep last */
  1010. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1011. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1012. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1013. };
  1014. /**
  1015. * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
  1016. *
  1017. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
  1018. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
  1019. * 8-bit value
  1020. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
  1021. * unsigned 32-bit value
  1022. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
  1023. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
  1024. * unsigned 32-bit value
  1025. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
  1026. * class, unsigned 32-bit value
  1027. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
  1028. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
  1029. */
  1030. enum qca_wlan_vendor_attr_tdls_get_status {
  1031. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  1032. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
  1033. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
  1034. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
  1035. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
  1036. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
  1037. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  1038. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  1039. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  1040. };
  1041. /**
  1042. * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
  1043. *
  1044. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
  1045. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
  1046. * 8-bit value
  1047. * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
  1048. * unsigned 32-bit value
  1049. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
  1050. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
  1051. * unsigned 32-bit value
  1052. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
  1053. * operating class, unsigned 32-bit value
  1054. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
  1055. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
  1056. */
  1057. enum qca_wlan_vendor_attr_tdls_state {
  1058. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  1059. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
  1060. QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
  1061. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
  1062. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
  1063. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
  1064. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  1065. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  1066. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  1067. };
  1068. /* enum's to provide TDLS capabilities */
  1069. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1070. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1071. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1072. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1073. /* keep last */
  1074. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1075. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1076. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1077. };
  1078. enum qca_wlan_vendor_attr {
  1079. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1080. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1081. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1082. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1083. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1084. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1085. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1086. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1087. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1088. /*
  1089. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1090. * by enum qca_roaming_policy.
  1091. */
  1092. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1093. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1094. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1095. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1096. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1097. /*
  1098. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1099. * Unsigned 32-bit value.
  1100. */
  1101. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1102. /* Unsigned 32-bit value */
  1103. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1104. /* Unsigned 32-bit value */
  1105. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1106. /* Unsigned 32-bit value from enum qca_set_band. */
  1107. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1108. /* Dummy (NOP) attribute for 64 bit padding */
  1109. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1110. /*
  1111. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1112. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1113. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1114. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1115. */
  1116. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1117. /*
  1118. * Indoor location capabilities, returned by
  1119. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1120. * see enum qca_wlan_vendor_attr_loc_capa.
  1121. */
  1122. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1123. /*
  1124. * Array of nested attributes containing information about each peer
  1125. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1126. * for supported attributes for each peer.
  1127. */
  1128. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1129. /*
  1130. * Array of nested attributes containing measurement results for
  1131. * one or more peers, reported by the
  1132. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1133. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1134. * attributes.
  1135. */
  1136. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1137. /* Flag attribute for enabling or disabling responder functionality. */
  1138. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1139. /*
  1140. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1141. * command to specify the LCI report that will be sent by
  1142. * the responder during a measurement exchange. The format is
  1143. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1144. */
  1145. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1146. /*
  1147. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1148. * command to specify the location civic report that will
  1149. * be sent by the responder during a measurement exchange.
  1150. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1151. */
  1152. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1153. /*
  1154. * Session/measurement completion status code,
  1155. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1156. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1157. * see enum qca_vendor_attr_loc_session_status.
  1158. */
  1159. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1160. /*
  1161. * Initial dialog token used by responder (0 if not specified),
  1162. * unsigned 8 bit value.
  1163. */
  1164. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1165. /*
  1166. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1167. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1168. * AOA measurements are needed as part of an FTM session.
  1169. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1170. * enum qca_wlan_vendor_attr_aoa_type.
  1171. */
  1172. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1173. /*
  1174. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1175. * by indoor location measurements. Refers to the antenna
  1176. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1177. */
  1178. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1179. /*
  1180. * AOA measurement data. Its contents depends on the AOA measurement
  1181. * type and antenna array mask:
  1182. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1183. * phase of the strongest CIR path for each antenna in the measured
  1184. * array(s).
  1185. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1186. * values, phase and amplitude of the strongest CIR path for each
  1187. * antenna in the measured array(s).
  1188. */
  1189. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1190. /*
  1191. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1192. * to specify the chain number (unsigned 32 bit value) to inquire
  1193. * the corresponding antenna RSSI value */
  1194. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1195. /*
  1196. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1197. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1198. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1199. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1200. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1201. /*
  1202. * TSF timer value, unsigned 64 bit value.
  1203. * May be returned by various commands.
  1204. */
  1205. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1206. /*
  1207. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1208. * 0..127 for sector indices or 65535 as special value used to
  1209. * unlock sector selection in
  1210. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1211. */
  1212. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1213. /*
  1214. * DMG RF sector type, unsigned 8 bit value. One of the values
  1215. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1216. */
  1217. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1218. /*
  1219. * Bitmask of DMG RF modules for which information is requested. Each
  1220. * bit corresponds to an RF module with the same index as the bit
  1221. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1222. * all DMG chips currently have up to 8 RF modules.
  1223. */
  1224. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1225. /*
  1226. * Array of nested attributes where each entry is DMG RF sector
  1227. * configuration for a single RF module.
  1228. * Attributes for each entry are taken from enum
  1229. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1230. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1231. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1232. */
  1233. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1234. /*
  1235. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1236. * to report frame aggregation statistics to userspace.
  1237. */
  1238. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1239. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1240. /*
  1241. * Unsigned 8-bit value representing MBO transition reason code as
  1242. * provided by the AP used by subcommand
  1243. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1244. * specified by the userspace in the request to the driver.
  1245. */
  1246. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1247. /*
  1248. * Array of nested attributes, BSSID and status code, used by subcommand
  1249. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1250. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1251. * The userspace space specifies the list/array of candidate BSSIDs in
  1252. * the order of preference in the request. The driver specifies the
  1253. * status code, for each BSSID in the list, in the response. The
  1254. * acceptable candidates are listed in the order preferred by the
  1255. * driver.
  1256. */
  1257. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1258. /*
  1259. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1260. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1261. */
  1262. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1263. /*
  1264. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1265. * to define the number of antennas to use for BRP.
  1266. * different purpose in each ANT_LIMIT_MODE:
  1267. * DISABLE - ignored
  1268. * EFFECTIVE - upper limit to number of antennas to be used
  1269. * FORCE - exact number of antennas to be used
  1270. * unsigned 8 bit value
  1271. */
  1272. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1273. /*
  1274. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1275. * to report the corresponding antenna index to the chain RSSI value
  1276. */
  1277. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1278. /*
  1279. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1280. * to report the specific antenna EVM value (unsigned 32 bit value).
  1281. * With a determinate group of antennas, the driver specifies the
  1282. * EVM value for each antenna ID, and application extract them
  1283. * in user space.
  1284. */
  1285. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1286. /*
  1287. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1288. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1289. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1290. */
  1291. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1292. /* keep last */
  1293. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1294. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1295. };
  1296. enum qca_wlan_vendor_attr_extscan_config_params {
  1297. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1298. /* Unsigned 32-bit value */
  1299. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1300. /*
  1301. * Attributes for data used by
  1302. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1303. */
  1304. /* Unsigned 32-bit value */
  1305. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1306. = 2,
  1307. /* Unsigned 32-bit value */
  1308. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1309. = 3,
  1310. /*
  1311. * Attributes for input params used by
  1312. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1313. */
  1314. /* Unsigned 32-bit value; channel frequency */
  1315. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1316. /* Unsigned 32-bit value; dwell time in ms. */
  1317. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1318. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1319. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1320. /* Unsigned 8-bit value; channel class */
  1321. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1322. /* Unsigned 8-bit value; bucket index, 0 based */
  1323. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1324. /* Unsigned 8-bit value; band. */
  1325. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1326. /* Unsigned 32-bit value; desired period, in ms. */
  1327. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1328. /* Unsigned 8-bit value; report events semantics. */
  1329. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1330. /*
  1331. * Unsigned 32-bit value. Followed by a nested array of
  1332. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1333. */
  1334. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1335. /*
  1336. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1337. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1338. */
  1339. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1340. /* Unsigned 32-bit value; base timer period in ms. */
  1341. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1342. /*
  1343. * Unsigned 32-bit value; number of APs to store in each scan in the
  1344. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1345. */
  1346. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1347. /*
  1348. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1349. * up AP.
  1350. */
  1351. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1352. = 16,
  1353. /*
  1354. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1355. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1356. * of the array is determined by NUM_BUCKETS.
  1357. */
  1358. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1359. /*
  1360. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1361. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1362. */
  1363. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1364. /* Unsigned 8-bit value */
  1365. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1366. = 19,
  1367. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1368. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1369. = 20,
  1370. /* An array of 6 x unsigned 8-bit value */
  1371. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1372. /* Signed 32-bit value */
  1373. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1374. /* Signed 32-bit value */
  1375. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1376. /* Unsigned 32-bit value */
  1377. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1378. /*
  1379. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1380. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1381. * array is determined by NUM_AP.
  1382. */
  1383. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1384. /*
  1385. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1386. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1387. */
  1388. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1389. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1390. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1391. = 27,
  1392. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1393. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1394. = 28,
  1395. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1396. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1397. /*
  1398. * Unsigned 32-bit value; number of APs. Followed by an array of
  1399. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1400. */
  1401. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1402. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1403. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1404. = 31,
  1405. /*
  1406. * Unsigned 32-bit value. If max_period is non zero or different than
  1407. * period, then this bucket is an exponential backoff bucket.
  1408. */
  1409. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1410. /* Unsigned 32-bit value. */
  1411. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1412. /*
  1413. * Unsigned 32-bit value. For exponential back off bucket, number of
  1414. * scans to perform for a given period.
  1415. */
  1416. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1417. /*
  1418. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1419. * many scans.
  1420. */
  1421. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1422. = 35,
  1423. /*
  1424. * Attributes for data used by
  1425. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1426. */
  1427. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1428. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1429. = 36,
  1430. /*
  1431. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1432. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1433. * size of the array is determined by NUM_SSID.
  1434. */
  1435. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1436. /*
  1437. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1438. * attributes.
  1439. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1440. */
  1441. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1442. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1443. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1444. /* Unsigned 8-bit value */
  1445. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1446. /* Signed 32-bit value */
  1447. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1448. /* Signed 32-bit value */
  1449. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1450. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1451. */
  1452. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1453. /* keep last */
  1454. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1455. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1456. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1457. };
  1458. enum qca_wlan_vendor_attr_extscan_results {
  1459. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1460. /*
  1461. * Unsigned 32-bit value; must match the request Id supplied by
  1462. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1463. */
  1464. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1465. /*
  1466. * Unsigned 32-bit value; used to indicate the status response from
  1467. * firmware/driver for the vendor sub-command.
  1468. */
  1469. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1470. /*
  1471. * EXTSCAN Valid Channels attributes */
  1472. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1473. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1474. /*
  1475. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1476. * representing channel numbers.
  1477. */
  1478. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1479. /* EXTSCAN Capabilities attributes */
  1480. /* Unsigned 32-bit value */
  1481. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1482. /* Unsigned 32-bit value */
  1483. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1484. /* Unsigned 32-bit value */
  1485. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1486. = 7,
  1487. /* Unsigned 32-bit value */
  1488. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1489. = 8,
  1490. /* Signed 32-bit value */
  1491. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1492. = 9,
  1493. /* Unsigned 32-bit value */
  1494. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1495. /* Unsigned 32-bit value */
  1496. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1497. = 11,
  1498. /* Unsigned 32-bit value */
  1499. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1500. = 12,
  1501. /*
  1502. * EXTSCAN Attributes used with
  1503. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1504. */
  1505. /* Unsigned 32-bit value */
  1506. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1507. /*
  1508. * EXTSCAN attributes used with
  1509. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1510. */
  1511. /*
  1512. * An array of NUM_RESULTS_AVAILABLE x
  1513. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1514. */
  1515. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1516. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1517. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1518. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1519. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1520. /* An array of 6 x unsigned 8-bit value */
  1521. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1522. /* Unsigned 32-bit value; channel frequency in MHz */
  1523. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1524. /* Signed 32-bit value */
  1525. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1526. /* Unsigned 32-bit value */
  1527. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1528. /* Unsigned 32-bit value */
  1529. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  1530. /* Unsigned 16-bit value */
  1531. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  1532. /* Unsigned 16-bit value */
  1533. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  1534. /* Unsigned 32-bit value; size of the IE DATA blob */
  1535. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  1536. /*
  1537. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  1538. * information elements found in the beacon; this data should be a
  1539. * packed list of wifi_information_element objects, one after the
  1540. * other.
  1541. */
  1542. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  1543. /*
  1544. * Unsigned 8-bit value; set by driver to indicate more scan results are
  1545. * available.
  1546. */
  1547. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  1548. /*
  1549. * EXTSCAN attributes for
  1550. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  1551. */
  1552. /* Unsigned 8-bit value */
  1553. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  1554. /* Unsigned 32-bit value */
  1555. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  1556. /*
  1557. * EXTSCAN attributes for
  1558. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  1559. */
  1560. /*
  1561. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1562. * to indicate number of results.
  1563. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1564. * list of results.
  1565. */
  1566. /*
  1567. * EXTSCAN attributes for
  1568. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  1569. */
  1570. /* An array of 6 x unsigned 8-bit value */
  1571. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  1572. /* Unsigned 32-bit value */
  1573. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  1574. = 30,
  1575. /* Unsigned 32-bit value. */
  1576. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  1577. = 31,
  1578. /*
  1579. * A nested array of signed 32-bit RSSI values. Size of the array is
  1580. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  1581. */
  1582. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  1583. = 32,
  1584. /*
  1585. * EXTSCAN attributes used with
  1586. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  1587. */
  1588. /*
  1589. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1590. * to indicate number of extscan cached results returned.
  1591. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  1592. * the list of extscan cached results.
  1593. */
  1594. /*
  1595. * An array of NUM_RESULTS_AVAILABLE x
  1596. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  1597. */
  1598. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  1599. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  1600. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  1601. /*
  1602. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  1603. */
  1604. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  1605. /*
  1606. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1607. * to indicate number of wifi scan results/bssids retrieved by the scan.
  1608. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1609. * list of wifi scan results returned for each cached result block.
  1610. */
  1611. /*
  1612. * EXTSCAN attributes for
  1613. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  1614. */
  1615. /*
  1616. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  1617. * number of results.
  1618. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  1619. * list of wifi scan results returned for each
  1620. * wifi_passpoint_match_result block.
  1621. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  1622. */
  1623. /*
  1624. * EXTSCAN attributes for
  1625. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  1626. */
  1627. /* Unsigned 32-bit value */
  1628. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  1629. = 36,
  1630. /*
  1631. * A nested array of
  1632. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  1633. * attributes. Array size =
  1634. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  1635. */
  1636. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  1637. /* Unsigned 32-bit value; network block id for the matched network */
  1638. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  1639. /*
  1640. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  1641. * list of wifi scan results returned for each
  1642. * wifi_passpoint_match_result block.
  1643. */
  1644. /* Unsigned 32-bit value */
  1645. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  1646. /*
  1647. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  1648. * ANQP data in the information_element format.
  1649. */
  1650. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  1651. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1652. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  1653. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1654. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  1655. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1656. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  1657. = 43,
  1658. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  1659. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  1660. = 44,
  1661. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  1662. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  1663. /* keep last */
  1664. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  1665. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  1666. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  1667. };
  1668. /**
  1669. * enum qca_vendor_interop_issues_ap_type - interop issues type
  1670. * This enum defines the valid set of values of interop issues type. These
  1671. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  1672. *
  1673. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  1674. * when the STA's Qpower feature is enabled.
  1675. */
  1676. enum qca_vendor_interop_issues_ap_type {
  1677. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  1678. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  1679. };
  1680. /**
  1681. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  1682. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  1683. *
  1684. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  1685. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  1686. * 32-bit unsigned value, The type defined in enum
  1687. * qca_vendor_interop_issues_ap_type are used.
  1688. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  1689. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  1690. * it is present and mandatory for the command but is not used for
  1691. * the event since only a single BSSID is reported in an event.
  1692. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  1693. * 6-byte MAC address. It is used within the nested
  1694. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  1695. * and without such encapsulation in the event case.
  1696. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  1697. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  1698. */
  1699. enum qca_vendor_attr_interop_issues_ap {
  1700. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  1701. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  1702. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  1703. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  1704. /* keep last */
  1705. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  1706. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  1707. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  1708. };
  1709. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  1710. /**
  1711. * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats
  1712. *
  1713. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value
  1714. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold
  1715. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING:
  1716. * Aggresive stats gathering
  1717. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last
  1718. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value
  1719. */
  1720. enum qca_wlan_vendor_attr_ll_stats_set {
  1721. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  1722. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  1723. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING,
  1724. /* keep last */
  1725. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  1726. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  1727. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1
  1728. };
  1729. /**
  1730. * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats
  1731. *
  1732. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value
  1733. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value
  1734. * provided by the caller issuing the GET stats command. When reporting
  1735. * the stats results, the driver uses the same value to indicate which
  1736. * GET request the results correspond to.
  1737. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask
  1738. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  1739. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  1740. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last
  1741. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value
  1742. */
  1743. enum qca_wlan_vendor_attr_ll_stats_get {
  1744. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  1745. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID,
  1746. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK,
  1747. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  1748. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  1749. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1
  1750. };
  1751. /**
  1752. * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats
  1753. *
  1754. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value
  1755. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask
  1756. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask
  1757. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask
  1758. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response
  1759. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last
  1760. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value
  1761. */
  1762. enum qca_wlan_vendor_attr_ll_stats_clr {
  1763. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  1764. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK,
  1765. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ,
  1766. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK,
  1767. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP,
  1768. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  1769. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  1770. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1
  1771. };
  1772. /**
  1773. * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type
  1774. *
  1775. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value
  1776. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio
  1777. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface
  1778. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer
  1779. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value
  1780. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value
  1781. */
  1782. enum qca_wlan_vendor_attr_ll_stats_results_type {
  1783. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0,
  1784. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1,
  1785. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE,
  1786. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER,
  1787. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST,
  1788. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX =
  1789. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1
  1790. };
  1791. /**
  1792. * enum qca_wlan_vendor_attr_ll_stats_results - vendor attribute stats results
  1793. *
  1794. * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are nested
  1795. * within the interface stats.
  1796. *
  1797. * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could be nested
  1798. * within the interface stats.
  1799. *
  1800. * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are nested
  1801. * within the interface stats.
  1802. *
  1803. * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* could be nested
  1804. * within the peer info stats.
  1805. *
  1806. * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could be
  1807. * nested within the channel stats.
  1808. *
  1809. * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ could be nested
  1810. * within the radio stats.
  1811. *
  1812. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID: Invalid initial value
  1813. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID: Unsigned 32bit value
  1814. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX: Unsigned 32bit value
  1815. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX: Unsigned 32bit value
  1816. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX: Unsigned 32bit value
  1817. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX: Unsigned 32bit value
  1818. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT: Unsigned 32bit value
  1819. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA: Unsigned 32bit value
  1820. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK: Unsigned 32bit value
  1821. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE: Interface mode, e.g., STA,
  1822. * SOFTAP, IBSS, etc. Type = enum wifi_interface_mode
  1823. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR: Interface MAC address.
  1824. * An array of 6 Unsigned int8_t
  1825. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE:
  1826. * Type = enum wifi_connection_state, e.g., DISCONNECTED, AUTHENTICATING,
  1827. * etc. Valid for STA, CLI only
  1828. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING:
  1829. * Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  1830. * (is that valid for STA only?)
  1831. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES: Unsigned 32bit value.
  1832. * WIFI_CAPABILITY_XXX
  1833. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID: NULL terminated SSID. An
  1834. * array of 33 Unsigned 8bit values
  1835. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID: BSSID. An array of 6
  1836. * Unsigned 8bit values
  1837. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR: Country string
  1838. * advertised by AP. An array of 3 Unsigned 8bit values
  1839. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR: Country string for
  1840. * this association. An array of 3 Unsigned 8bit values
  1841. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC: Type = enum wifi_traffic_ac e.g.
  1842. * V0, VI, BE and BK
  1843. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU: Unsigned int 32 value
  1844. * corresponding to respective AC
  1845. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU: Unsigned int 32 value
  1846. * corresponding to respective AC
  1847. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST: Unsigned int 32 value
  1848. * corresponding to respective AC
  1849. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST: Unsigned int 32 value
  1850. * corresponding to respective AC
  1851. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU: Unsigned int 32 value
  1852. * corresponding to respective AC
  1853. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU: Unsigned int 32 value
  1854. * corresponding to respective AC
  1855. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST: Unsigned int 32 value
  1856. * corresponding to respective AC
  1857. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES: Unsigned int 32 value
  1858. * corresponding to respective AC
  1859. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT: Unsigned int 32 value
  1860. * corresponding to respective AC
  1861. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN: Unsigned int 32
  1862. * value corresponding to respective AC
  1863. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX: Unsigned int 32
  1864. * value corresponding to respective AC
  1865. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG: Unsigned int 32
  1866. * value corresponding to respective AC
  1867. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES: Unsigned int 32
  1868. * value corresponding to respective AC
  1869. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS: Unsigned int 32
  1870. * value corresponding to respective AC
  1871. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE: Type = enum wifi_peer_type
  1872. * Peer type, e.g., STA, AP, P2P GO etc
  1873. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS: MAC addr corresponding
  1874. * to respective peer. An array of 6 Unsigned 8bit values
  1875. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES: Unsigned int 32bit
  1876. * value representing capabilities corresponding to respective peer.
  1877. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES: Unsigned 32bit value.
  1878. * Number of rates
  1879. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE: Unsigned int 8bit value:
  1880. * 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved
  1881. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS: Unsigned int 8bit value:
  1882. * 0:1x1, 1:2x2, 3:3x3, 4:4x4
  1883. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW: Unsigned int 8bit value:
  1884. * 0:20MHz, 1:40Mhz, 2:80Mhz, 3:160Mhz
  1885. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX: Unsigned int 8bit value:
  1886. * OFDM/CCK rate code would be as per IEEE Std in the units of 0.5mbps
  1887. * HT/VHT it would be mcs index
  1888. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE: Unsigned 32bit value.
  1889. * Bit rate in units of 100Kbps
  1890. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU: Unsigned int 32bit value.
  1891. * Number of successfully transmitted data pkts i.e., with ACK received
  1892. * corresponding to the respective rate
  1893. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU: Unsigned int 32bit value.
  1894. * Number of received data pkts corresponding to the respective rate
  1895. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST: Unsigned int 32bit value.
  1896. * Number of data pkts losses, i.e., no ACK received corresponding to
  1897. * the respective rate
  1898. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES: Unsigned int 32bit value.
  1899. * Total number of data pkt retries for the respective rate
  1900. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT: Unsigned int 32bit value.
  1901. * Total number of short data pkt retries for the respective rate
  1902. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG: Unsigned int 32bit value.
  1903. * Total number of long data pkt retries for the respective rate
  1904. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID: Radio id
  1905. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME: Unsigned 32bit value.
  1906. * Total number of msecs the radio is awake accruing over time
  1907. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME: Unsigned 32bit value.
  1908. * Total number of msecs the radio is transmitting accruing over time
  1909. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME: Unsigned 32bit value.
  1910. * Total number of msecs the radio is in active receive accruing over time
  1911. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN: Unsigned 32bit value.
  1912. * Total number of msecs the radio is awake due to all scan accruing
  1913. * over time
  1914. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD: Unsigned 32bit value.
  1915. * Total number of msecs the radio is awake due to NAN accruing over time.
  1916. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN: Unsigned 32bit value.
  1917. * Total number of msecs the radio is awake due to GSCAN accruing over time
  1918. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN: Unsigned 32bit value.
  1919. * Total number of msecs the radio is awake due to roam scan accruing over
  1920. * time.
  1921. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN: Unsigned 32bit value.
  1922. * Total number of msecs the radio is awake due to PNO scan accruing over
  1923. * time.
  1924. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20: Unsigned 32bit value.
  1925. * Total number of msecs the radio is awake due to HS2.0 scans and GAS
  1926. * exchange accruing over time.
  1927. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS: Unsigned 32bit value.
  1928. * Number of channels
  1929. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH:
  1930. * Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80, etc.
  1931. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ:
  1932. * Unsigned 32bit value. Primary 20MHz channel.
  1933. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0:
  1934. * Unsigned 32bit value. Center frequency (MHz) first segment.
  1935. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1:
  1936. * Unsigned 32bit value. Center frequency (MHz) second segment.
  1937. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME: Unsigned int 32bit value
  1938. * representing total number of msecs the radio is awake on that channel
  1939. * accruing over time, corresponding to the respective channel.
  1940. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME: Unsigned int 32bit
  1941. * value representing total number of msecs the CCA register is busy
  1942. * accruing over time corresponding to the respective channel.
  1943. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS: Number of radios
  1944. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO: Channel info
  1945. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO: Peer info
  1946. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO: Peer rate info
  1947. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO: WMM info
  1948. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA: Unsigned 8bit value.
  1949. * Used by the driver; if set to 1, it indicates that more stats, e.g.,
  1950. * peers or radio, are to follow in the next
  1951. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. Otherwise, it
  1952. * is set to 0.
  1953. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET: tsf offset
  1954. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED: leaky ap detected
  1955. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED:
  1956. * average number of frames leaked
  1957. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME: guard time
  1958. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE: Link Layer stats type
  1959. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS: LL Radio Number of
  1960. * Tx Levels
  1961. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL:Number of msecs the
  1962. * radio spent in transmitting for each power level
  1963. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT: RTS successful count
  1964. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT: RTS fail count
  1965. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT: PPDU successful count
  1966. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT: PPDU fail count
  1967. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST: After last
  1968. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  1969. */
  1970. enum qca_wlan_vendor_attr_ll_stats_results {
  1971. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  1972. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  1973. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  1974. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  1975. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  1976. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  1977. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  1978. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  1979. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  1980. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  1981. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  1982. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  1983. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  1984. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  1985. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  1986. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  1987. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  1988. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  1989. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  1990. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  1991. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  1992. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  1993. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  1994. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  1995. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  1996. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  1997. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  1998. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  1999. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2000. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2001. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2002. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2003. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2004. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2005. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2006. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2007. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2008. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2009. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2010. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2011. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2012. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2013. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2014. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2015. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2016. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2017. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2018. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2019. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2020. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2021. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2022. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2023. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2024. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2025. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2026. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2027. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2028. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2029. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2030. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2031. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2032. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2033. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2034. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2035. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2036. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2037. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2038. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2039. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2040. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2041. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2042. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2043. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2044. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2045. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2046. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2047. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2048. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2049. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2050. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2051. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2052. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2053. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2054. /* keep last */
  2055. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2056. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2057. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1
  2058. };
  2059. enum qca_wlan_vendor_attr_ll_stats_type {
  2060. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2061. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2062. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2063. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2064. /* keep last */
  2065. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2066. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2067. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2068. };
  2069. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2070. /**
  2071. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2072. *
  2073. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2074. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2075. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2076. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2077. */
  2078. enum qca_wlan_vendor_attr_get_supported_features {
  2079. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2080. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2081. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2082. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2083. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2084. };
  2085. /**
  2086. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2087. *
  2088. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2089. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2090. * value
  2091. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2092. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2093. */
  2094. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2095. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2096. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2097. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2098. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2099. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2100. };
  2101. /**
  2102. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2103. *
  2104. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2105. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2106. * with frequencies to be scanned (in MHz)
  2107. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2108. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2109. * rates to be included
  2110. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2111. * at non CCK rate in 2GHz band
  2112. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2113. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2114. * driver for the specific scan request
  2115. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2116. * request decoded as in enum scan_status
  2117. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2118. * scan flag is set
  2119. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2120. * randomisation
  2121. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: BSSID provided to do scan for specific BSS
  2122. */
  2123. enum qca_wlan_vendor_attr_scan {
  2124. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2125. QCA_WLAN_VENDOR_ATTR_SCAN_IE,
  2126. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES,
  2127. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS,
  2128. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES,
  2129. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE,
  2130. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS,
  2131. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE,
  2132. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS,
  2133. QCA_WLAN_VENDOR_ATTR_SCAN_MAC,
  2134. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK,
  2135. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID,
  2136. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2137. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2138. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2139. };
  2140. /**
  2141. * enum scan_status - Specifies the valid values the vendor scan attribute
  2142. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2143. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2144. * new scan results
  2145. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2146. */
  2147. enum scan_status {
  2148. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2149. VENDOR_SCAN_STATUS_ABORTED,
  2150. VENDOR_SCAN_STATUS_MAX,
  2151. };
  2152. /**
  2153. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2154. *
  2155. * NL attributes for data used by
  2156. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2157. *
  2158. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2159. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2160. * Unsigned 32-bit value
  2161. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2162. * Unsigned 32-bit value
  2163. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2164. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2165. * combinations
  2166. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2167. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2168. */
  2169. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2170. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2171. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2172. = 1,
  2173. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2174. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2175. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2176. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2177. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2178. };
  2179. /**
  2180. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2181. *
  2182. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2183. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2184. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2185. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2186. */
  2187. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2188. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2189. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2190. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2191. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2192. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2193. };
  2194. /**
  2195. * enum qca_vendor_attr_wisa_cmd
  2196. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2197. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2198. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2199. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2200. * WISA setup vendor commands
  2201. */
  2202. enum qca_vendor_attr_wisa_cmd {
  2203. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2204. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2205. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2206. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2207. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2208. };
  2209. enum qca_roaming_policy {
  2210. QCA_ROAMING_NOT_ALLOWED,
  2211. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2212. };
  2213. /**
  2214. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2215. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2216. *
  2217. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2218. * reasons.
  2219. *
  2220. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2221. * the configured threshold.
  2222. *
  2223. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2224. * beacon misses from the then connected AP.
  2225. *
  2226. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2227. * by the connected AP.
  2228. *
  2229. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2230. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2231. * not poor.
  2232. *
  2233. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2234. * or environment being very noisy / congested.
  2235. *
  2236. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2237. * from the user (user space).
  2238. *
  2239. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2240. * connected AP.
  2241. *
  2242. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2243. * breaching out the configured threshold.
  2244. *
  2245. */
  2246. enum qca_roam_reason {
  2247. QCA_ROAM_REASON_UNKNOWN,
  2248. QCA_ROAM_REASON_PER,
  2249. QCA_ROAM_REASON_BEACON_MISS,
  2250. QCA_ROAM_REASON_POOR_RSSI,
  2251. QCA_ROAM_REASON_BETTER_RSSI,
  2252. QCA_ROAM_REASON_CONGESTION,
  2253. QCA_ROAM_REASON_USER_TRIGGER,
  2254. QCA_ROAM_REASON_BTM,
  2255. QCA_ROAM_REASON_BSS_LOAD,
  2256. };
  2257. /**
  2258. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2259. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID: BSSID of the roamed AP
  2260. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2261. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2262. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2263. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2264. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2265. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2266. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2267. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2268. * Indicates the status of re-association requested by user space for
  2269. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2270. * Type u16.
  2271. * Represents the status code from AP. Use
  2272. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2273. * real status code for failures.
  2274. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2275. * This attribute indicates that the old association was maintained when
  2276. * a re-association is requested by user space and that re-association
  2277. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2278. * remain associated with the BSS with which the association was in
  2279. * place when being requested to roam). Used along with
  2280. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2281. * re-association status. Type flag.
  2282. * This attribute is applicable only for re-association failure cases.
  2283. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  2284. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  2285. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  2286. * seq number
  2287. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  2288. * representing the reasons for the roaming. Defined by enum
  2289. * qca_roam_reason.
  2290. */
  2291. enum qca_wlan_vendor_attr_roam_auth {
  2292. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  2293. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  2294. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  2295. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  2296. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  2297. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  2298. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  2299. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  2300. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  2301. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  2302. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  2303. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  2304. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  2305. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  2306. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  2307. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  2308. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  2309. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  2310. };
  2311. /**
  2312. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  2313. *
  2314. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  2315. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  2316. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  2317. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  2318. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  2319. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  2320. */
  2321. enum qca_wlan_vendor_attr_wifi_config {
  2322. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  2323. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  2324. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  2325. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  2326. /* keep last */
  2327. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  2328. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  2329. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  2330. };
  2331. /**
  2332. * enum qca_wlan_epno_type - the type of request to the EPNO command
  2333. * @QCA_WLAN_EPNO: epno type request
  2334. * @QCA_WLAN_PNO: pno type request
  2335. */
  2336. enum qca_wlan_epno_type {
  2337. QCA_WLAN_EPNO,
  2338. QCA_WLAN_PNO
  2339. };
  2340. /**
  2341. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  2342. *
  2343. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  2344. *
  2345. * NL attributes for data used by
  2346. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  2347. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  2348. * Unsigned 32-bit value; pno passpoint number of networks
  2349. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  2350. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  2351. * attributes. Array size =
  2352. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  2353. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  2354. * Unsigned 32-bit value; network id
  2355. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  2356. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  2357. * realm, 0 if unspecified.
  2358. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  2359. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  2360. * to match, 0 if unspecified.
  2361. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  2362. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  2363. * unspecified.
  2364. *
  2365. * NL attributes for data used by
  2366. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  2367. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  2368. * Unsigned 32-bit value; set pno number of networks
  2369. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  2370. * Array of nested
  2371. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  2372. * attributes. Array size =
  2373. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  2374. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  2375. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  2376. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  2377. * Signed 8-bit value; threshold for considering this SSID as found,
  2378. * required granularity for this threshold is 4dBm to 8dBm
  2379. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  2380. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  2381. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  2382. * Unsigned 8-bit value; auth bit field for matching WPA IE
  2383. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  2384. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  2385. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  2386. * Nested attribute to send the channel list
  2387. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  2388. * Unsigned 32-bit value; indicates the Interval between PNO scan
  2389. * cycles in msec
  2390. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  2391. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  2392. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  2393. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  2394. * This attribute is obsolete now.
  2395. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  2396. * Signed 32-bit value; the maximum score that a network
  2397. * can have before bonuses
  2398. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  2399. * Signed 32-bit value; only report when there is a network's
  2400. * score this much higher han the current connection
  2401. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  2402. * Signed 32-bit value; score bonus for all networks with
  2403. * the same network flag
  2404. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  2405. * Signed 32-bit value; score bonus for networks that are not open
  2406. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  2407. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  2408. * 5GHz networks
  2409. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  2410. * Unsigned 32-bit value, representing the PNO Request ID
  2411. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  2412. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  2413. */
  2414. enum qca_wlan_vendor_attr_pno_config_params {
  2415. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  2416. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  2417. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  2418. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  2419. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  2420. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  2421. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  2422. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  2423. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  2424. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  2425. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  2426. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  2427. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  2428. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  2429. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  2430. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  2431. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  2432. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  2433. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  2434. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  2435. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  2436. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  2437. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  2438. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  2439. /* keep last */
  2440. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  2441. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  2442. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  2443. };
  2444. /**
  2445. * enum qca_scan_freq_list_type: Frequency list types
  2446. *
  2447. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  2448. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2449. * a preferred frequency list for roaming.
  2450. *
  2451. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  2452. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  2453. * a specific frequency list for roaming.
  2454. */
  2455. enum qca_scan_freq_list_type {
  2456. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  2457. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  2458. };
  2459. /**
  2460. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  2461. *
  2462. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  2463. * List of frequencies in MHz to be considered for a roam scan.
  2464. *
  2465. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  2466. * Type of frequency list scheme being configured/gotten as defined by the
  2467. * enum qca_scan_freq_list_type.
  2468. */
  2469. enum qca_vendor_attr_scan_freq_list_scheme {
  2470. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  2471. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  2472. /* keep last */
  2473. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  2474. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  2475. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  2476. };
  2477. /*
  2478. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  2479. *
  2480. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  2481. * a bad packet error rates (PER).
  2482. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  2483. * based on beacon misses from the connected AP.
  2484. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  2485. * due to poor RSSI of the connected AP.
  2486. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  2487. * upon finding a BSSID with a better RSSI than the connected BSSID.
  2488. * Here the RSSI of the current BSSID need not be poor.
  2489. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  2490. * by triggering a periodic scan to find a better AP to roam.
  2491. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  2492. * when the connected channel environment is too noisy/congested.
  2493. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  2494. * when BTM Request frame is received from the connected AP.
  2495. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  2496. * when the channel utilization is goes above the configured threshold.
  2497. *
  2498. * Set the corresponding roam trigger reason bit to consider it for roam
  2499. * trigger.
  2500. * Userspace can set multiple bits and send to the driver. The driver shall
  2501. * consider all of them to trigger/initiate a roam scan.
  2502. */
  2503. enum qca_vendor_roam_triggers {
  2504. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  2505. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  2506. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  2507. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  2508. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  2509. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  2510. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  2511. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  2512. };
  2513. /**
  2514. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  2515. *
  2516. * Each attribute carries a weightage in percentage (%).
  2517. *
  2518. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  2519. * Represents the weightage to be given for the RSSI selection
  2520. * criteria among other parameters.
  2521. *
  2522. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  2523. * Represents the weightage to be given for the rate selection
  2524. * criteria among other parameters.
  2525. *
  2526. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  2527. * Represents the weightage to be given for the band width selection
  2528. * criteria among other parameters.
  2529. *
  2530. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  2531. * Represents the weightage to be given for the band selection
  2532. * criteria among other parameters.
  2533. *
  2534. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  2535. * Represents the weightage to be given for the NSS selection
  2536. * criteria among other parameters.
  2537. *
  2538. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  2539. * Represents the weightage to be given for the channel congestion
  2540. * selection criteria among other parameters.
  2541. *
  2542. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  2543. * Represents the weightage to be given for the beamforming selection
  2544. * criteria among other parameters.
  2545. *
  2546. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  2547. * Represents the weightage to be given for the OCE selection
  2548. * criteria among other parameters.
  2549. */
  2550. enum qca_vendor_attr_roam_candidate_selection_criteria {
  2551. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  2552. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  2553. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  2554. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  2555. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  2556. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  2557. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  2558. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  2559. /* keep last */
  2560. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  2561. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  2562. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  2563. };
  2564. /**
  2565. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  2566. * The following attributes are used to set/get/clear the respective
  2567. * configurations to/from the driver.
  2568. * For the get, the attribute for the configuration to be queried shall
  2569. * carry any of its acceptable values to the driver. In return, the driver
  2570. * shall send the configured values within the same attribute to the user
  2571. * space.
  2572. *
  2573. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  2574. * Signifies to enable/disable roam control in driver.
  2575. * 1-enable, 0-disable
  2576. * Enable: Mandates the driver to do the further roams using the
  2577. * configuration parameters set through
  2578. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  2579. * Disable: Disables the driver/firmware roaming triggered through
  2580. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  2581. * expected to continue with the default configurations.
  2582. *
  2583. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  2584. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  2585. * Roam control status is obtained through this attribute.
  2586. *
  2587. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  2588. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  2589. * is to be cleared in the driver.
  2590. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  2591. * and shall be ignored if used with other sub commands.
  2592. * If this attribute is specified along with subcmd
  2593. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  2594. * all other attributes, if there are any.
  2595. * If this attribute is not specified when the subcmd
  2596. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  2597. * clear the data corresponding to the attributes specified.
  2598. *
  2599. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  2600. * list of frequencies and its type, represented by
  2601. * enum qca_vendor_attr_scan_freq_list_scheme.
  2602. * Frequency list and its type are mandatory for this attribute to set
  2603. * the frequencies.
  2604. * Frequency type is mandatory for this attribute to get the frequencies
  2605. * and the frequency list is obtained through
  2606. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  2607. * Frequency list type is mandatory for this attribute to clear the
  2608. * frequencies.
  2609. *
  2610. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  2611. * Carries the value of scan period in seconds to set.
  2612. * The value of scan period is obtained with the same attribute for get.
  2613. * Clears the scan period in the driver when specified with clear command.
  2614. * Scan period is the idle time in seconds between each subsequent
  2615. * channel scans.
  2616. *
  2617. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  2618. * Carries the value of full scan period in seconds to set.
  2619. * The value of full scan period is obtained with the same attribute for
  2620. * get.
  2621. * Clears the full scan period in the driver when specified with clear
  2622. * command. Full scan period is the idle period in seconds between two
  2623. * successive full channel roam scans.
  2624. *
  2625. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  2626. * Carries a bitmap of the roam triggers specified in
  2627. * enum qca_vendor_roam_triggers.
  2628. * The driver shall enable roaming by enabling corresponding roam triggers
  2629. * based on the trigger bits sent with this attribute.
  2630. * If this attribute is not configured, the driver shall proceed with
  2631. * default behavior.
  2632. * The bitmap configured is obtained with the same attribute for get.
  2633. * Clears the bitmap configured in driver when specified with clear
  2634. * command.
  2635. *
  2636. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  2637. * weightage in percentage (%) to be given for each selection criteria.
  2638. * Different roam candidate selection criteria are represented by
  2639. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  2640. * The driver shall select the roam candidate based on corresponding
  2641. * candidate selection scores sent.
  2642. *
  2643. * An empty nested attribute is used to indicate that no specific
  2644. * preference score/criteria is configured (i.e., to disable this mechanism
  2645. * in the set case and to show that the mechanism is disabled in the get
  2646. * case).
  2647. *
  2648. * Userspace can send multiple attributes out of this enum to the driver.
  2649. * Since this attribute represents the weight/percentage of preference for
  2650. * the respective selection criteria, it is preferred to configure 100%
  2651. * total weightage. The value in each attribute or cumulative weight of the
  2652. * values in all the nested attributes should not exceed 100%. The driver
  2653. * shall reject such configuration.
  2654. *
  2655. * If the weights configured through this attribute are less than 100%,
  2656. * the driver shall honor the weights (x%) passed for the corresponding
  2657. * selection criteria and choose/distribute rest of the weight (100-x)%
  2658. * for the other selection criteria, based on its internal logic.
  2659. *
  2660. * The selection criteria configured is obtained with the same
  2661. * attribute for get.
  2662. *
  2663. * Clears the selection criteria configured in the driver when specified
  2664. * with clear command.
  2665. */
  2666. enum qca_vendor_attr_roam_control {
  2667. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  2668. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  2669. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  2670. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  2671. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  2672. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  2673. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  2674. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  2675. /* keep last */
  2676. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  2677. QCA_ATTR_ROAM_CONTROL_MAX =
  2678. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  2679. };
  2680. /**
  2681. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  2682. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  2683. *
  2684. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  2685. * Represents the different roam sub commands referred by
  2686. * enum qca_wlan_vendor_roaming_subcmd.
  2687. *
  2688. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  2689. * Represents the Request ID for the specific set of commands.
  2690. * This also helps to map specific set of commands to the respective
  2691. * ID / client. e.g., helps to identify the user entity configuring the
  2692. * Blacklist BSSID and accordingly clear the respective ones with the
  2693. * matching ID.
  2694. *
  2695. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  2696. * 32-bit value.Represents the number of whitelist SSIDs configured.
  2697. *
  2698. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  2699. * to carry the list of Whitelist SSIDs.
  2700. *
  2701. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  2702. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  2703. * represent the list of SSIDs to which the firmware/driver can consider
  2704. * to roam to.
  2705. *
  2706. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  2707. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  2708. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  2709. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  2710. *
  2711. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  2712. * value, RSSI threshold above which 5GHz RSSI is favored.
  2713. *
  2714. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  2715. * value, RSSI threshold below which 5GHz RSSI is penalized.
  2716. *
  2717. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  2718. * value, factor by which 5GHz RSSI is boosted.
  2719. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  2720. *
  2721. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  2722. * value, factor by which 5GHz RSSI is penalized.
  2723. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  2724. *
  2725. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  2726. * value, maximum boost that can be applied to a 5GHz RSSI.
  2727. *
  2728. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  2729. * value, boost applied to current BSSID to ensure the currently
  2730. * associated BSSID is favored so as to prevent ping-pong situations.
  2731. *
  2732. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  2733. * value, RSSI below which "Alert" roam is enabled.
  2734. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  2735. * because the RSSI is low, or because many successive beacons have been
  2736. * lost or other bad link conditions.
  2737. *
  2738. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  2739. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  2740. * firmware is hunting for a better BSSID or white listed SSID even though
  2741. * the RSSI of the link is good. The parameters enabling the roaming are
  2742. * configured through the PARAM_A_BAND_XX attrbutes.
  2743. *
  2744. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  2745. * represents the BSSIDs preferred over others while evaluating them
  2746. * for the roaming.
  2747. *
  2748. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  2749. * 32-bit value. Represents the number of preferred BSSIDs set.
  2750. *
  2751. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  2752. * address representing the BSSID to be preferred.
  2753. *
  2754. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  2755. * 32-bit value, representing the modifier to be applied to the RSSI of
  2756. * the BSSID for the purpose of comparing it with other roam candidate.
  2757. *
  2758. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  2759. * represents the BSSIDs to get blacklisted for roaming.
  2760. *
  2761. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  2762. * 32-bit value, represents the number of blacklisted BSSIDs.
  2763. *
  2764. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  2765. * address representing the Blacklisted BSSID.
  2766. *
  2767. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  2768. * indicates this BSSID blacklist as a hint to the driver. The driver can
  2769. * select this BSSID in the worst case (when no other BSSIDs are better).
  2770. *
  2771. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  2772. * set/get/clear the roam control config as
  2773. * defined @enum qca_vendor_attr_roam_control.
  2774. *
  2775. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  2776. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  2777. */
  2778. enum qca_wlan_vendor_attr_roaming_config_params {
  2779. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  2780. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  2781. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  2782. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  2783. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  2784. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  2785. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  2786. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  2787. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  2788. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  2789. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  2790. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  2791. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  2792. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  2793. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  2794. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  2795. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  2796. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  2797. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  2798. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  2799. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  2800. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  2801. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  2802. /* keep last */
  2803. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  2804. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  2805. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  2806. };
  2807. /**
  2808. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  2809. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  2810. *
  2811. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  2812. * configure the white list SSIDs. These are configured through
  2813. * the following attributes.
  2814. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  2815. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  2816. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  2817. *
  2818. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  2819. * configure the Roam params. These parameters are evaluated on the extscan
  2820. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  2821. * params.
  2822. *
  2823. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  2824. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  2825. * to enable/disable Lazy roam.
  2826. *
  2827. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  2828. * preference. Contains the attribute
  2829. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  2830. * preference.
  2831. *
  2832. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  2833. *
  2834. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  2835. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  2836. * set the same.
  2837. *
  2838. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  2839. * roam control config to the driver with the attribute
  2840. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  2841. *
  2842. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  2843. * roam control config from driver with the attribute
  2844. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  2845. * For the get, the attribute for the configuration to be queried shall
  2846. * carry any of its acceptable value to the driver. In return, the driver
  2847. * shall send the configured values within the same attribute to the user
  2848. * space.
  2849. *
  2850. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  2851. * roam control config in the driver with the attribute
  2852. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  2853. * The driver shall continue with its default roaming behavior when data
  2854. * corresponding to an attribute is cleared.
  2855. */
  2856. enum qca_wlan_vendor_roaming_subcmd {
  2857. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  2858. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  2859. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  2860. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  2861. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  2862. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  2863. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  2864. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  2865. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  2866. };
  2867. /**
  2868. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  2869. *
  2870. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  2871. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  2872. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  2873. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  2874. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  2875. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  2876. */
  2877. enum qca_wlan_vendor_attr_get_wifi_info {
  2878. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  2879. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  2880. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  2881. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  2882. /* KEEP LAST */
  2883. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  2884. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  2885. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  2886. };
  2887. enum qca_wlan_vendor_attr_logger_results {
  2888. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  2889. /*
  2890. * Unsigned 32-bit value; must match the request Id supplied by
  2891. * Wi-Fi HAL in the corresponding subcmd NL msg.
  2892. */
  2893. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  2894. /*
  2895. * Unsigned 32-bit value; used to indicate the size of memory
  2896. * dump to be allocated.
  2897. */
  2898. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  2899. /* keep last */
  2900. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  2901. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  2902. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  2903. };
  2904. /**
  2905. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  2906. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  2907. */
  2908. enum qca_wlan_vendor_channel_prop_flags {
  2909. /* Bits 0, 1, 2, and 3 are reserved */
  2910. /* Turbo channel */
  2911. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  2912. /* CCK channel */
  2913. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  2914. /* OFDM channel */
  2915. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  2916. /* 2.4 GHz spectrum channel. */
  2917. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  2918. /* 5 GHz spectrum channel */
  2919. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  2920. /* Only passive scan allowed */
  2921. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  2922. /* Dynamic CCK-OFDM channel */
  2923. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  2924. /* GFSK channel (FHSS PHY) */
  2925. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  2926. /* Radar found on channel */
  2927. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  2928. /* 11a static turbo channel only */
  2929. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  2930. /* Half rate channel */
  2931. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  2932. /* Quarter rate channel */
  2933. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  2934. /* HT 20 channel */
  2935. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  2936. /* HT 40 with extension channel above */
  2937. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  2938. /* HT 40 with extension channel below */
  2939. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  2940. /* HT 40 intolerant */
  2941. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  2942. /* VHT 20 channel */
  2943. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  2944. /* VHT 40 with extension channel above */
  2945. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  2946. /* VHT 40 with extension channel below */
  2947. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  2948. /* VHT 80 channel */
  2949. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  2950. /* HT 40 intolerant mark bit for ACS use */
  2951. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  2952. /* Channel temporarily blocked due to noise */
  2953. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  2954. /* VHT 160 channel */
  2955. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  2956. /* VHT 80+80 channel */
  2957. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  2958. /* HE 20 channel */
  2959. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  2960. /* HE 40 with extension channel above */
  2961. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  2962. /* HE 40 with extension channel below */
  2963. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  2964. /* HE 40 intolerant */
  2965. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31,
  2966. };
  2967. /**
  2968. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  2969. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  2970. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  2971. */
  2972. enum qca_wlan_vendor_channel_prop_flags_2 {
  2973. /* HE 40 intolerant mark bit for ACS use */
  2974. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  2975. /* HE 80 channel */
  2976. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  2977. /* HE 160 channel */
  2978. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  2979. /* HE 80+80 channel */
  2980. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  2981. };
  2982. /**
  2983. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  2984. * each channel. This is used by
  2985. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  2986. */
  2987. enum qca_wlan_vendor_channel_prop_flags_ext {
  2988. /* Radar found on channel */
  2989. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  2990. /* DFS required on channel */
  2991. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  2992. /* DFS required on channel for 2nd band of 80+80 */
  2993. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  2994. /* If channel has been checked for DFS */
  2995. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  2996. /* Excluded in 802.11d */
  2997. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  2998. /* Channel Switch Announcement received on this channel */
  2999. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  3000. /* Ad-hoc is not allowed */
  3001. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  3002. /* Station only channel */
  3003. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  3004. /* DFS radar history for slave device (STA mode) */
  3005. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  3006. /* DFS CAC valid for slave device (STA mode) */
  3007. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  3008. };
  3009. /**
  3010. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  3011. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  3012. * information to start/stop the NUD statistics collection.
  3013. */
  3014. enum qca_attr_nud_stats_set {
  3015. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  3016. /*
  3017. * Flag to start/stop the NUD statistics collection.
  3018. * Start - If included, Stop - If not included
  3019. */
  3020. QCA_ATTR_NUD_STATS_SET_START = 1,
  3021. /* IPv4 address of the default gateway (in network byte order) */
  3022. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  3023. /*
  3024. * Represents the data packet type to be monitored.
  3025. * Host driver tracks the stats corresponding to each data frame
  3026. * represented by these flags.
  3027. * These data packets are represented by
  3028. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  3029. */
  3030. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  3031. /* keep last */
  3032. QCA_ATTR_NUD_STATS_SET_LAST,
  3033. QCA_ATTR_NUD_STATS_SET_MAX =
  3034. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  3035. };
  3036. /**
  3037. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  3038. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3039. * information to start / stop the NUD stats collection.
  3040. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  3041. * Bitmap to Flag to Start / Stop the NUD stats collection
  3042. * Start - If included , Stop - If not included
  3043. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gatway ipv4 address
  3044. * IPv4 address of Default Gateway (in network byte order)
  3045. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3046. * information to start / stop the NUD stats collection.
  3047. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  3048. * Flag to Start / Stop the NUD stats collection
  3049. * Start - If included , Stop - If not included
  3050. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gatway ipv4 address
  3051. * IPv4 address of Default Gateway (in network byte order)
  3052. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  3053. * information to start / stop the NUD stats collection.
  3054. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  3055. * Flag to Start / Stop the NUD stats collection
  3056. * Start - If included , Stop - If not included
  3057. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gatway ipv4 address
  3058. * IPv4 address of Default Gateway (in network byte order)
  3059. */
  3060. enum qca_attr_connectivity_check_stats_set {
  3061. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  3062. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  3063. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  3064. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  3065. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  3066. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  3067. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  3068. /* keep last */
  3069. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  3070. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  3071. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  3072. };
  3073. /**
  3074. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  3075. * data types for which the stats have to get collected.
  3076. */
  3077. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  3078. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  3079. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  3080. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  3081. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  3082. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  3083. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  3084. * to represent the stats of respective data type.
  3085. */
  3086. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  3087. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  3088. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  3089. };
  3090. enum qca_attr_connectivity_check_stats {
  3091. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  3092. /* Data packet type for which the stats are collected.
  3093. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  3094. */
  3095. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  3096. /* ID corresponding to the DNS frame for which the respective DNS stats
  3097. * are monitored (u32).
  3098. */
  3099. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  3100. /* source / destination port on which the respective proto stats are
  3101. * collected (u32).
  3102. */
  3103. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  3104. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  3105. /* IPv4/IPv6 address for which the destined data packets are
  3106. * monitored. (in network byte order)
  3107. */
  3108. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  3109. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  3110. /* Data packet Request count received from netdev */
  3111. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  3112. /* Data packet Request count sent to lower MAC from upper MAC */
  3113. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  3114. /* Data packet Request count received by lower MAC from upper MAC */
  3115. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  3116. /* Data packet Request count successfully transmitted by the device */
  3117. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  3118. /* Data packet Response count received by lower MAC */
  3119. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  3120. /* Data packet Response count received by upper MAC */
  3121. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  3122. /* Data packet Response count delivered to netdev */
  3123. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  3124. /* Data Packet Response count that are dropped out of order */
  3125. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  3126. /* keep last */
  3127. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  3128. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  3129. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  3130. };
  3131. /**
  3132. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  3133. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  3134. * NUD statistics collected when queried.
  3135. */
  3136. enum qca_attr_nud_stats_get {
  3137. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  3138. /* ARP Request count from netdev */
  3139. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  3140. /* ARP Request count sent to lower MAC from upper MAC */
  3141. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  3142. /* ARP Request count received by lower MAC from upper MAC */
  3143. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  3144. /* ARP Request count successfully transmitted by the device */
  3145. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  3146. /* ARP Response count received by lower MAC */
  3147. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  3148. /* ARP Response count received by upper MAC */
  3149. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  3150. /* ARP Response count delivered to netdev */
  3151. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  3152. /* ARP Response count delivered to netdev */
  3153. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  3154. /*
  3155. * Flag indicating if the station's link to the AP is active.
  3156. * Active Link - If included, Inactive link - If not included
  3157. */
  3158. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  3159. /*
  3160. * Flag indicating if there is any duplicate address detected (DAD).
  3161. * Yes - If detected, No - If not detected.
  3162. */
  3163. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  3164. /*
  3165. * List of Data types for which the stats are requested.
  3166. * This list does not carry ARP stats as they are done by the
  3167. * above attributes. Represented by enum qca_attr_nud_data_stats.
  3168. */
  3169. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  3170. /* keep last */
  3171. QCA_ATTR_NUD_STATS_GET_LAST,
  3172. QCA_ATTR_NUD_STATS_GET_MAX =
  3173. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  3174. };
  3175. enum qca_wlan_btm_candidate_status {
  3176. QCA_STATUS_ACCEPT = 0,
  3177. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  3178. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  3179. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  3180. QCA_STATUS_REJECT_LOW_RSSI = 4,
  3181. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  3182. QCA_STATUS_REJECT_UNKNOWN = 6,
  3183. };
  3184. enum qca_wlan_vendor_attr_btm_candidate_info {
  3185. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  3186. /* 6-byte MAC address representing the BSSID of transition candidate */
  3187. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  3188. /*
  3189. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  3190. * returned by the driver. It says whether the BSSID provided in
  3191. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  3192. * the driver, if not it specifies the reason for rejection.
  3193. * Note that the user-space can overwrite the transition reject reason
  3194. * codes provided by driver based on more information.
  3195. */
  3196. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  3197. /* keep last */
  3198. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  3199. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  3200. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  3201. };
  3202. enum qca_attr_trace_level {
  3203. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  3204. /*
  3205. * Nested array of the following attributes:
  3206. * QCA_ATTR_TRACE_LEVEL_MODULE,
  3207. * QCA_ATTR_TRACE_LEVEL_MASK.
  3208. */
  3209. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  3210. /*
  3211. * Specific QCA host driver module. Please refer to the QCA host
  3212. * driver implementation to get the specific module ID.
  3213. */
  3214. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  3215. /* Different trace level masks represented in the QCA host driver. */
  3216. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  3217. /* keep last */
  3218. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  3219. QCA_ATTR_TRACE_LEVEL_MAX =
  3220. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  3221. };
  3222. /**
  3223. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  3224. * supported features
  3225. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  3226. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  3227. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  3228. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  3229. *
  3230. * enum values are used for NL attributes for data used by
  3231. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  3232. */
  3233. enum qca_wlan_vendor_attr_get_logger_features {
  3234. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  3235. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  3236. /* keep last */
  3237. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  3238. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  3239. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  3240. };
  3241. /**
  3242. * enum qca_wlan_vendor_attr_link_properties - link properties
  3243. *
  3244. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  3245. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  3246. * specify the number of spatial streams negotiated
  3247. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  3248. * to specify negotiated rate flags i.e. ht, vht and channel width
  3249. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  3250. * specify the operating frequency
  3251. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  3252. * (STA / AP ) for the connected link.
  3253. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  3254. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  3255. * address of the peer represented by
  3256. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  3257. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  3258. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  3259. */
  3260. enum qca_wlan_vendor_attr_link_properties {
  3261. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  3262. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  3263. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  3264. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  3265. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  3266. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  3267. /* KEEP LAST */
  3268. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  3269. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  3270. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  3271. };
  3272. /**
  3273. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  3274. *
  3275. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  3276. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  3277. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  3278. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  3279. *
  3280. * enum values are used for NL attributes for data used by
  3281. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  3282. */
  3283. enum qca_wlan_vendor_attr_nd_offload {
  3284. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  3285. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  3286. /* Keep last */
  3287. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  3288. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  3289. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  3290. };
  3291. /**
  3292. * enum qca_wlan_vendor_features - vendor device/driver features
  3293. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  3294. * management offload, a mechanism where the station's firmware
  3295. * does the exchange with the AP to establish the temporal keys
  3296. * after roaming, rather than having the supplicant do it.
  3297. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  3298. * simultaneous off-channel operations.
  3299. * @QQCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  3300. * Listen offload; a mechanism where the station's firmware
  3301. * takes care of responding to incoming Probe Request frames received
  3302. * from other P2P devices whilst in Listen state, rather than having the
  3303. * user space wpa_supplicant do it. Information from received P2P
  3304. * Requests are forwarded from firmware to host whenever the APPS
  3305. * processor exits power collapse state.
  3306. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  3307. * specific features
  3308. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  3309. * features.
  3310. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  3311. * specific features only. If a Device sets this bit but not the
  3312. * QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  3313. * this Device may not support all OCE AP functionalities but can support
  3314. * only OCE STA-CFON functionalities.
  3315. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  3316. * managed regulatory.
  3317. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  3318. */
  3319. enum qca_wlan_vendor_features {
  3320. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  3321. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  3322. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  3323. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  3324. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  3325. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  3326. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  3327. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  3328. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  3329. /* Additional features need to be added above this */
  3330. NUM_QCA_WLAN_VENDOR_FEATURES
  3331. };
  3332. /**
  3333. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  3334. * conditional channel switch
  3335. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  3336. * value
  3337. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  3338. * frequency list (an array of u32 values in host byte order)
  3339. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  3340. * conditional switch (u32)- 0: Success, Non-zero: Failure
  3341. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  3342. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  3343. */
  3344. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  3345. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  3346. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  3347. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  3348. /* Keep Last */
  3349. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  3350. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  3351. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  3352. };
  3353. /**
  3354. * enum wifi_logger_supported_features - values for supported logger features
  3355. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  3356. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  3357. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  3358. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  3359. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  3360. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  3361. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  3362. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  3363. */
  3364. enum wifi_logger_supported_features {
  3365. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  3366. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  3367. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  3368. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  3369. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  3370. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  3371. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  3372. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  3373. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  3374. };
  3375. /**
  3376. * enum qca_wlan_vendor_attr_acs_offload
  3377. *
  3378. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: ACS selected primary channel
  3379. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: ACS selected secondary channel
  3380. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: hw_mode for ACS
  3381. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: indicate if HT capability is enabled
  3382. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: indicate HT capability
  3383. */
  3384. enum qca_wlan_vendor_attr_acs_offload {
  3385. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  3386. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
  3387. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL,
  3388. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE,
  3389. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED,
  3390. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED,
  3391. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED,
  3392. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH,
  3393. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST,
  3394. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL,
  3395. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL,
  3396. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST,
  3397. /* keep last */
  3398. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  3399. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  3400. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  3401. };
  3402. /**
  3403. * enum qca_wlan_vendor_acs_hw_mode
  3404. *
  3405. * @QCA_ACS_MODE_IEEE80211B: 11b mode
  3406. * @QCA_ACS_MODE_IEEE80211G: 11g mode
  3407. * @QCA_ACS_MODE_IEEE80211A: 11a mode
  3408. * @QCA_ACS_MODE_IEEE80211AD: 11ad mode
  3409. */
  3410. enum qca_wlan_vendor_acs_hw_mode {
  3411. QCA_ACS_MODE_IEEE80211B,
  3412. QCA_ACS_MODE_IEEE80211G,
  3413. QCA_ACS_MODE_IEEE80211A,
  3414. QCA_ACS_MODE_IEEE80211AD,
  3415. QCA_ACS_MODE_IEEE80211ANY,
  3416. };
  3417. /**
  3418. * enum qca_access_policy - access control policy
  3419. *
  3420. * Access control policy is applied on the configured IE
  3421. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  3422. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  3423. *
  3424. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  3425. *» with the specific configuration (IE) set, i.e. allow all the
  3426. *» connections which do not match the configuration.
  3427. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  3428. *» with the specific configuration (IE) set, i.e. deny all the
  3429. *» connections which do not match the configuration.
  3430. */
  3431. enum qca_access_policy {
  3432. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  3433. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  3434. };
  3435. /**
  3436. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  3437. *
  3438. * The valid values for the ignore assoc disallowed
  3439. *
  3440. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  3441. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  3442. *
  3443. */
  3444. enum qca_ignore_assoc_disallowed {
  3445. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  3446. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  3447. };
  3448. /* Attributes for data used by
  3449. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  3450. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  3451. */
  3452. enum qca_wlan_vendor_attr_config {
  3453. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  3454. /*
  3455. * Unsigned 32-bit value to set the DTIM period.
  3456. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  3457. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  3458. * DTIM beacons.
  3459. */
  3460. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  3461. /*
  3462. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  3463. * used to calculate statistics like average the TSF offset or average
  3464. * number of frame leaked.
  3465. * For instance, upon Beacon frame reception:
  3466. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  3467. * For instance, when evaluating leaky APs:
  3468. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  3469. */
  3470. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  3471. /*
  3472. * Unsigned 32-bit value to configure guard time, i.e., when
  3473. * implementing IEEE power management based on frame control PM bit, how
  3474. * long the driver waits before shutting down the radio and after
  3475. * receiving an ACK frame for a Data frame with PM bit set.
  3476. */
  3477. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  3478. /* Unsigned 32-bit value to change the FTM capability dynamically */
  3479. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  3480. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  3481. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  3482. /*
  3483. * Unsigned 32-bit value to configure the number of continuous
  3484. * Beacon Miss which shall be used by the firmware to penalize
  3485. * the RSSI.
  3486. */
  3487. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  3488. /*
  3489. * Unsigned 8-bit value to configure the channel avoidance indication
  3490. * behavior. Firmware to send only one indication and ignore duplicate
  3491. * indications when set to avoid multiple Apps wakeups.
  3492. */
  3493. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  3494. /*
  3495. * 8-bit unsigned value to configure the maximum TX MPDU for
  3496. * aggregation.
  3497. */
  3498. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  3499. /*
  3500. * 8-bit unsigned value to configure the maximum RX MPDU for
  3501. * aggregation.
  3502. */
  3503. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  3504. /*
  3505. * 8-bit unsigned value to configure the Non aggregrate/11g sw
  3506. * retry threshold (0 disable, 31 max).
  3507. */
  3508. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  3509. /*
  3510. * 8-bit unsigned value to configure the aggregrate sw
  3511. * retry threshold (0 disable, 31 max).
  3512. */
  3513. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  3514. /*
  3515. * 8-bit unsigned value to configure the MGMT frame
  3516. * retry threshold (0 disable, 31 max).
  3517. */
  3518. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  3519. /*
  3520. * 8-bit unsigned value to configure the CTRL frame
  3521. * retry threshold (0 disable, 31 max).
  3522. */
  3523. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  3524. /*
  3525. * 8-bit unsigned value to configure the propagation delay for
  3526. * 2G/5G band (0~63, units in us)
  3527. */
  3528. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  3529. /*
  3530. * Unsigned 32-bit value to configure the number of unicast TX fail
  3531. * packet count. The peer is disconnected once this threshold is
  3532. * reached.
  3533. */
  3534. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  3535. /*
  3536. * Attribute used to set scan default IEs to the driver.
  3537. *
  3538. * These IEs can be used by scan operations that will be initiated by
  3539. * the driver/firmware.
  3540. *
  3541. * For further scan requests coming to the driver, these IEs should be
  3542. * merged with the IEs received along with scan request coming to the
  3543. * driver. If a particular IE is present in the scan default IEs but not
  3544. * present in the scan request, then that IE should be added to the IEs
  3545. * sent in the Probe Request frames for that scan request.
  3546. */
  3547. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  3548. /* Unsigned 32-bit attribute for generic commands */
  3549. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  3550. /* Unsigned 32-bit value attribute for generic commands */
  3551. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  3552. /* Unsigned 32-bit data attribute for generic command response */
  3553. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  3554. /*
  3555. * Unsigned 32-bit length attribute for
  3556. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  3557. */
  3558. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  3559. /*
  3560. * Unsigned 32-bit flags attribute for
  3561. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  3562. */
  3563. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  3564. /*
  3565. * Unsigned 32-bit, defining the access policy.
  3566. * See enum qca_access_policy. Used with
  3567. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  3568. */
  3569. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  3570. /*
  3571. * Sets the list of full set of IEs for which a specific access policy
  3572. * has to be applied. Used along with
  3573. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  3574. * Zero length payload can be used to clear this access constraint.
  3575. */
  3576. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  3577. /*
  3578. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  3579. * corresponding configurations are applied. If the interface index is
  3580. * not specified, the configurations are attributed to the respective
  3581. * wiphy.
  3582. */
  3583. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  3584. /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
  3585. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  3586. /*
  3587. * 8-bit unsigned value to configure the driver and below layers to
  3588. * ignore the assoc disallowed set by APs while connecting
  3589. * 1-Ignore, 0-Don't ignore
  3590. */
  3591. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  3592. /*
  3593. * 32-bit unsigned value to trigger antenna diversity features:
  3594. * 1-Enable, 0-Disable
  3595. */
  3596. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  3597. /* 32-bit unsigned value to configure specific chain antenna */
  3598. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  3599. /*
  3600. * 32-bit unsigned value to trigger cycle selftest
  3601. * 1-Enable, 0-Disable
  3602. */
  3603. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  3604. /*
  3605. * 32-bit unsigned to configure the cycle time of selftest
  3606. * the unit is micro-second
  3607. */
  3608. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  3609. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  3610. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  3611. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  3612. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  3613. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  3614. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  3615. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  3616. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  3617. /* 6-byte MAC address to point out the specific peer */
  3618. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
  3619. /* 32-bit unsigned value to set window size for specific peer */
  3620. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  3621. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  3622. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  3623. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  3624. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  3625. /*
  3626. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  3627. * station device while in disconnect state. The attribute use the
  3628. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  3629. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  3630. * 10 MHz channel width, the station will not connect to a BSS using 20
  3631. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  3632. * clear this constraint.
  3633. */
  3634. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  3635. /*
  3636. * 32-bit unsigned value to configure the propagation absolute delay
  3637. * for 2G/5G band (units in us)
  3638. */
  3639. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  3640. /* 32-bit unsigned value to set probe period */
  3641. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  3642. /* 32-bit unsigned value to set stay period */
  3643. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  3644. /* 32-bit unsigned value to set snr diff */
  3645. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  3646. /* 32-bit unsigned value to set probe dwell time */
  3647. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  3648. /* 32-bit unsigned value to set mgmt snr weight */
  3649. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  3650. /* 32-bit unsigned value to set data snr weight */
  3651. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  3652. /* 32-bit unsigned value to set ack snr weight */
  3653. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  3654. /*
  3655. * 32-bit unsigned value to configure the listen interval.
  3656. * This is in units of beacon intervals. This configuration alters
  3657. * the negotiated listen interval with the AP during the connection.
  3658. * It is highly recommended to configure a value less than or equal to
  3659. * the one negotiated during the association. Configuring any greater
  3660. * value can have adverse effects (frame loss, AP disassociating STA,
  3661. * etc.).
  3662. */
  3663. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  3664. /*
  3665. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  3666. * disable operations that would cause the AP/GO to leave its operating
  3667. * channel.
  3668. *
  3669. * This will restrict the scans to the AP/GO operating channel and the
  3670. * channels of the other band, if DBS is supported.A STA/CLI interface
  3671. * brought up after this setting is enabled, will be restricted to
  3672. * connecting to devices only on the AP/GO interface's operating channel
  3673. * or on the other band in DBS case. P2P supported channel list is
  3674. * modified, to only include AP interface's operating-channel and the
  3675. * channels of the other band if DBS is supported.
  3676. *
  3677. * These restrictions are only applicable as long as the AP/GO interface
  3678. * is alive. If the AP/GO interface is brought down then this
  3679. * setting/restriction is forgotten.
  3680. *
  3681. * If this variable is set on an AP/GO interface while a multi-channel
  3682. * concurrent session is active, it has no effect on the operation of
  3683. * the current interfaces, other than restricting the scan to the AP/GO
  3684. * operating channel and the other band channels if DBS is supported.
  3685. * However, if the STA is brought down and restarted then the new STA
  3686. * connection will either be formed on the AP/GO channel or on the
  3687. * other band in a DBS case. This is because of the scan being
  3688. * restricted on these channels as mentioned above.
  3689. *
  3690. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  3691. */
  3692. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  3693. /*
  3694. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  3695. * on an interface.
  3696. * 1 - Enable , 0 - Disable.
  3697. */
  3698. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  3699. /*
  3700. * 8 bit unsigned value to globally enable/disable scan
  3701. * 1 - Enable, 0 - Disable.
  3702. */
  3703. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  3704. /* 8-bit unsigned value to set the total beacon miss count */
  3705. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  3706. /*
  3707. * Unsigned 32-bit value to configure the number of continuous
  3708. * Beacon Miss which shall be used by the firmware to penalize
  3709. * the RSSI for BTC.
  3710. */
  3711. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  3712. /*
  3713. * 8-bit unsigned value to configure the driver and below layers to
  3714. * enable/disable all fils features.
  3715. * 0-enable, 1-disable
  3716. */
  3717. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  3718. /* 16-bit unsigned value to configure the level of WLAN latency
  3719. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  3720. */
  3721. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  3722. /*
  3723. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  3724. * the connect interface. Exclusively used for the scenarios where the
  3725. * device is used as a test bed device with special functionality and
  3726. * not recommended for production. This helps driver to not validate the
  3727. * RSNE passed from user space and thus allow arbitrary IE data to be
  3728. * used for testing purposes.
  3729. * 1-enable, 0-disable.
  3730. * Applications set/reset this configuration. If not reset, this
  3731. * parameter remains in use until the driver is unloaded.
  3732. */
  3733. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  3734. /*
  3735. * 8-bit unsigned value to trigger green Tx power saving.
  3736. * 1-Enable, 0-Disable
  3737. */
  3738. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  3739. /*
  3740. * Attribute to configure disconnect IEs to the driver.
  3741. * This carries an array of unsigned 8-bit characters.
  3742. *
  3743. * If this is configured, driver shall fill the IEs in disassoc/deauth
  3744. * frame.
  3745. * These IEs are expected to be considered only for the next
  3746. * immediate disconnection (disassoc/deauth frame) originated by
  3747. * the DUT, irrespective of the entity (user space/driver/firmware)
  3748. * triggering the disconnection.
  3749. * The host drivers are not expected to use the IEs set through
  3750. * this interface for further disconnections after the first immediate
  3751. * disconnection initiated post the configuration.
  3752. * If the IEs are also updated through cfg80211 interface (after the
  3753. * enhancement to cfg80211_disconnect), host driver is expected to
  3754. * take the union of IEs from both of these interfaces and send in
  3755. * further disassoc/deauth frames.
  3756. */
  3757. QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES = 58,
  3758. /* 8-bit unsigned value for ELNA bypass.
  3759. * 1-Enable, 0-Disable
  3760. */
  3761. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  3762. /* keep last */
  3763. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  3764. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  3765. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  3766. };
  3767. /**
  3768. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  3769. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  3770. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  3771. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  3772. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  3773. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  3774. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  3775. */
  3776. enum qca_wlan_vendor_attr_wifi_logger_start {
  3777. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  3778. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  3779. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  3780. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  3781. /* keep last */
  3782. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  3783. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  3784. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  3785. };
  3786. /*
  3787. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  3788. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  3789. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  3790. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  3791. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  3792. */
  3793. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  3794. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  3795. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  3796. /* keep last */
  3797. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  3798. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  3799. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  3800. };
  3801. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  3802. /**
  3803. * enum wlan_offloaded_packets_control - control commands
  3804. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  3805. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  3806. *
  3807. */
  3808. enum wlan_offloaded_packets_control {
  3809. WLAN_START_OFFLOADED_PACKETS = 1,
  3810. WLAN_STOP_OFFLOADED_PACKETS = 2
  3811. };
  3812. /**
  3813. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  3814. *
  3815. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  3816. * the offloaded data.
  3817. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  3818. * data.
  3819. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  3820. * indication.
  3821. */
  3822. enum qca_wlan_vendor_attr_data_offload_ind {
  3823. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  3824. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  3825. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  3826. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  3827. /* keep last */
  3828. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  3829. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  3830. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  3831. };
  3832. /**
  3833. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  3834. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  3835. */
  3836. enum qca_wlan_vendor_attr_offloaded_packets {
  3837. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  3838. /*
  3839. * Takes valid value from the enum
  3840. * qca_wlan_offloaded_packets_sending_control
  3841. * Unsigned 32-bit value
  3842. **/
  3843. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  3844. /* Unsigned 32-bit value */
  3845. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  3846. /* array of u8 len: Max packet size */
  3847. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  3848. /* 6-byte MAC address used to represent source MAC address */
  3849. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  3850. /* 6-byte MAC address used to represent destination MAC address */
  3851. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  3852. /* Unsigned 32-bit value, in milli seconds */
  3853. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  3854. /*
  3855. * This attribute is used and optional for specifying
  3856. * ethernet protocol type, if not specified it will default to ipv4
  3857. * Unsigned 16-bit value
  3858. **/
  3859. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  3860. /* keep last */
  3861. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  3862. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  3863. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  3864. };
  3865. #endif
  3866. /**
  3867. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  3868. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  3869. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  3870. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  3871. */
  3872. enum qca_wlan_rssi_monitoring_control {
  3873. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  3874. QCA_WLAN_RSSI_MONITORING_START,
  3875. QCA_WLAN_RSSI_MONITORING_STOP,
  3876. };
  3877. /**
  3878. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  3879. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  3880. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  3881. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  3882. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  3883. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  3884. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  3885. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  3886. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  3887. */
  3888. enum qca_wlan_vendor_attr_rssi_monitoring {
  3889. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  3890. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  3891. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  3892. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  3893. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  3894. /* attributes to be used/received in callback */
  3895. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  3896. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  3897. /* keep last */
  3898. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  3899. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  3900. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  3901. };
  3902. /**
  3903. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  3904. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  3905. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  3906. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  3907. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  3908. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicats a service info
  3909. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  3910. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  3911. * address
  3912. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  3913. * created
  3914. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  3915. * NCS_SK_TYPE/PMK/SCID instead
  3916. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  3917. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  3918. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  3919. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  3920. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  3921. * code: accept/reject
  3922. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  3923. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  3924. * driver
  3925. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  3926. * driver
  3927. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  3928. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  3929. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  3930. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  3931. * PMKID
  3932. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  3933. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  3934. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  3935. * update:
  3936. * BIT_0: NSS Update
  3937. * BIT_1: Channel list update
  3938. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  3939. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  3940. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  3941. * 0:20 MHz,
  3942. * 1:40 MHz,
  3943. * 2:80 MHz,
  3944. * 3:160 MHz
  3945. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  3946. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  3947. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  3948. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  3949. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  3950. * transport port used by NDP.
  3951. * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  3952. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  3953. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  3954. */
  3955. enum qca_wlan_vendor_attr_ndp_params {
  3956. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  3957. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  3958. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  3959. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  3960. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  3961. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  3962. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  3963. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  3964. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  3965. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  3966. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  3967. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  3968. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  3969. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  3970. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  3971. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  3972. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  3973. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  3974. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  3975. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  3976. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  3977. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  3978. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  3979. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  3980. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  3981. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  3982. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  3983. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  3984. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  3985. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  3986. /* keep last */
  3987. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  3988. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  3989. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  3990. };
  3991. /**
  3992. * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for
  3993. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  3994. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  3995. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: create a ndi
  3996. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: delete a ndi
  3997. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST: initiate a ndp session
  3998. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  3999. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  4000. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  4001. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  4002. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  4003. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  4004. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  4005. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  4006. * being received
  4007. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  4008. * update
  4009. */
  4010. enum qca_wlan_ndp_sub_cmd {
  4011. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  4012. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  4013. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  4014. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  4015. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  4016. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  4017. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  4018. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  4019. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  4020. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  4021. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  4022. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  4023. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  4024. };
  4025. /**
  4026. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  4027. * information. These attributes are sent as part of
  4028. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  4029. * attributes correspond to a single channel.
  4030. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  4031. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  4032. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  4033. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  4034. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  4035. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  4036. * regulatory transmission power
  4037. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  4038. * transmission power
  4039. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  4040. * transmission power
  4041. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  4042. * class id
  4043. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  4044. * antenna gain in dbm
  4045. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  4046. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  4047. *
  4048. */
  4049. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  4050. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  4051. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  4052. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  4053. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  4054. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  4055. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  4056. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  4057. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  4058. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  4059. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  4060. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  4061. /*
  4062. * A bitmask (u32) with flags specified in
  4063. * enum qca_wlan_vendor_channel_prop_flags_2.
  4064. */
  4065. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  4066. /* keep last */
  4067. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  4068. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  4069. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  4070. };
  4071. /**
  4072. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  4073. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  4074. * driver.
  4075. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  4076. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  4077. * ACS need to be started
  4078. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  4079. * driver supports spectral scanning or not
  4080. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  4081. * offloaded to firmware.
  4082. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  4083. * provides additional channel capability as part of scan operation.
  4084. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  4085. * interface status is UP
  4086. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  4087. * interface. It takes one of nl80211_iftype values.
  4088. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  4089. * of chan width. ACS logic should try to get a channel with specified width
  4090. * if not found then look for lower values.
  4091. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  4092. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  4093. * a/b/g/n/ac.
  4094. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  4095. * among which ACS should choose best frequency.
  4096. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  4097. * driver which will have <channel(u8), weight(u8)> format as array of
  4098. * nested values.
  4099. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  4100. * for each channel. It takes attr as defined in
  4101. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  4102. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  4103. * qca_wlan_vendor_attr_external_acs_policy.
  4104. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  4105. * Operating Parameter (RROP) availability information (u16). It uses values
  4106. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  4107. */
  4108. enum qca_wlan_vendor_attr_external_acs_event {
  4109. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  4110. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  4111. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  4112. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  4113. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  4114. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  4115. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  4116. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  4117. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  4118. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  4119. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  4120. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  4121. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  4122. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  4123. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  4124. /* keep last */
  4125. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  4126. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  4127. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  4128. };
  4129. enum qca_iface_type {
  4130. QCA_IFACE_TYPE_STA,
  4131. QCA_IFACE_TYPE_AP,
  4132. QCA_IFACE_TYPE_P2P_CLIENT,
  4133. QCA_IFACE_TYPE_P2P_GO,
  4134. QCA_IFACE_TYPE_IBSS,
  4135. QCA_IFACE_TYPE_TDLS,
  4136. };
  4137. /**
  4138. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  4139. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  4140. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  4141. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  4142. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  4143. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  4144. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  4145. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  4146. */
  4147. enum qca_wlan_vendor_attr_pcl_config {
  4148. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  4149. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  4150. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  4151. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  4152. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  4153. };
  4154. enum qca_set_band {
  4155. QCA_SETBAND_AUTO,
  4156. QCA_SETBAND_5G,
  4157. QCA_SETBAND_2G,
  4158. };
  4159. /**
  4160. * enum set_reset_packet_filter - set packet filter control commands
  4161. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  4162. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  4163. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  4164. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  4165. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  4166. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  4167. */
  4168. enum set_reset_packet_filter {
  4169. QCA_WLAN_SET_PACKET_FILTER = 1,
  4170. QCA_WLAN_GET_PACKET_FILTER = 2,
  4171. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  4172. QCA_WLAN_READ_PACKET_FILTER = 4,
  4173. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  4174. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  4175. };
  4176. /**
  4177. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  4178. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  4179. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  4180. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  4181. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  4182. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  4183. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  4184. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  4185. * section in packet filter buffer
  4186. */
  4187. enum qca_wlan_vendor_attr_packet_filter {
  4188. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  4189. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  4190. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  4191. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  4192. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  4193. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  4194. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  4195. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  4196. /* keep last */
  4197. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  4198. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  4199. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  4200. };
  4201. /**
  4202. * enum qca_wlan_vendor_attr_wake_stats - wake lock stats
  4203. * @QCA_WLAN_VENDOR_ATTR_GET_WAKE_STATS_INVALID: invalid
  4204. * @QCA_WLAN_VENDOR_ATTR_TOTAL_CMD_EVENT_WAKE:
  4205. * @QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_PTR:
  4206. * @QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_SZ:
  4207. * @QCA_WLAN_VENDOR_ATTR_TOTAL_DRIVER_FW_LOCAL_WAKE:
  4208. * @QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_PTR:
  4209. * @QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_SZ:
  4210. * @QCA_WLAN_VENDOR_ATTR_TOTAL_RX_DATA_WAKE:
  4211. * total rx wakeup count
  4212. * @QCA_WLAN_VENDOR_ATTR_RX_UNICAST_CNT:
  4213. * Total rx unicast packet which woke up host
  4214. * @QCA_WLAN_VENDOR_ATTR_RX_MULTICAST_CNT:
  4215. * Total rx multicast packet which woke up host
  4216. * @QCA_WLAN_VENDOR_ATTR_RX_BROADCAST_CNT:
  4217. * Total rx broadcast packet which woke up host
  4218. * @QCA_WLAN_VENDOR_ATTR_ICMP_PKT:
  4219. * wake icmp packet count
  4220. * @QCA_WLAN_VENDOR_ATTR_ICMP6_PKT:
  4221. * wake icmp6 packet count
  4222. * @QCA_WLAN_VENDOR_ATTR_ICMP6_RA:
  4223. * wake icmp6 RA packet count
  4224. * @QCA_WLAN_VENDOR_ATTR_ICMP6_NA:
  4225. * wake icmp6 NA packet count
  4226. * @QCA_WLAN_VENDOR_ATTR_ICMP6_NS:
  4227. * wake icmp6 NS packet count
  4228. * @QCA_WLAN_VENDOR_ATTR_ICMP4_RX_MULTICAST_CNT:
  4229. * Rx wake packet count due to ipv4 multicast
  4230. * @QCA_WLAN_VENDOR_ATTR_ICMP6_RX_MULTICAST_CNT:
  4231. * Rx wake packet count due to ipv6 multicast
  4232. * @QCA_WLAN_VENDOR_ATTR_OTHER_RX_MULTICAST_CNT:
  4233. * Rx wake packet count due to non-ipv4 and non-ipv6 packets
  4234. * @QCA_WLAN_VENDOR_ATTR_RSSI_BREACH_CNT:
  4235. * wake rssi breach packet count
  4236. * @QCA_WLAN_VENDOR_ATTR_LOW_RSSI_CNT:
  4237. * wake low rssi packet count
  4238. * @QCA_WLAN_VENDOR_ATTR_GSCAN_CNT:
  4239. * wake gscan packet count
  4240. * @QCA_WLAN_VENDOR_ATTR_PNO_COMPLETE_CNT:
  4241. * wake pno complete packet count
  4242. * @QCA_WLAN_VENDOR_ATTR_PNO_MATCH_CNT:
  4243. * wake pno match packet count
  4244. */
  4245. enum qca_wlan_vendor_attr_wake_stats {
  4246. QCA_WLAN_VENDOR_ATTR_GET_WAKE_STATS_INVALID = 0,
  4247. QCA_WLAN_VENDOR_ATTR_TOTAL_CMD_EVENT_WAKE,
  4248. QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_PTR,
  4249. QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_SZ,
  4250. QCA_WLAN_VENDOR_ATTR_TOTAL_DRIVER_FW_LOCAL_WAKE,
  4251. QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  4252. QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  4253. QCA_WLAN_VENDOR_ATTR_TOTAL_RX_DATA_WAKE,
  4254. QCA_WLAN_VENDOR_ATTR_RX_UNICAST_CNT,
  4255. QCA_WLAN_VENDOR_ATTR_RX_MULTICAST_CNT,
  4256. QCA_WLAN_VENDOR_ATTR_RX_BROADCAST_CNT,
  4257. QCA_WLAN_VENDOR_ATTR_ICMP_PKT,
  4258. QCA_WLAN_VENDOR_ATTR_ICMP6_PKT,
  4259. QCA_WLAN_VENDOR_ATTR_ICMP6_RA,
  4260. QCA_WLAN_VENDOR_ATTR_ICMP6_NA,
  4261. QCA_WLAN_VENDOR_ATTR_ICMP6_NS,
  4262. QCA_WLAN_VENDOR_ATTR_ICMP4_RX_MULTICAST_CNT,
  4263. QCA_WLAN_VENDOR_ATTR_ICMP6_RX_MULTICAST_CNT,
  4264. QCA_WLAN_VENDOR_ATTR_OTHER_RX_MULTICAST_CNT,
  4265. QCA_WLAN_VENDOR_ATTR_RSSI_BREACH_CNT,
  4266. QCA_WLAN_VENDOR_ATTR_LOW_RSSI_CNT,
  4267. QCA_WLAN_VENDOR_ATTR_GSCAN_CNT,
  4268. QCA_WLAN_VENDOR_ATTR_PNO_COMPLETE_CNT,
  4269. QCA_WLAN_VENDOR_ATTR_PNO_MATCH_CNT,
  4270. /* keep last */
  4271. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  4272. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  4273. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  4274. };
  4275. /**
  4276. * enum qca_vendor_element_id - QCA Vendor Specific element types
  4277. *
  4278. * These values are used to identify QCA Vendor Specific elements. The
  4279. * payload of the element starts with the three octet OUI (OUI_QCA) and
  4280. * is followed by a single octet type which is defined by this enum.
  4281. *
  4282. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  4283. * This element can be used to specify preference order for supported
  4284. * channels. The channels in this list are in preference order (the first
  4285. * one has the highest preference) and are described as a pair of
  4286. * (global) Operating Class and Channel Number (each one octet) fields.
  4287. *
  4288. * This extends the standard P2P functionality by providing option to have
  4289. * more than one preferred operating channel. When this element is present,
  4290. * it replaces the preference indicated in the Operating Channel attribute.
  4291. * For supporting other implementations, the Operating Channel attribute is
  4292. * expected to be used with the highest preference channel. Similarly, all
  4293. * the channels included in this Preferred channel list element are
  4294. * expected to be included in the Channel List attribute.
  4295. *
  4296. * This vendor element may be included in GO Negotiation Request, P2P
  4297. * Invitation Request, and Provision Discovery Request frames.
  4298. *
  4299. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  4300. * This element can be used for pre-standard publication testing of HE
  4301. * before P802.11ax draft assigns the element ID. The payload of this
  4302. * vendor specific element is defined by the latest P802.11ax draft.
  4303. * Please note that the draft is still work in progress and this element
  4304. * payload is subject to change.
  4305. *
  4306. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  4307. * This element can be used for pre-standard publication testing of HE
  4308. * before P802.11ax draft assigns the element ID. The payload of this
  4309. * vendor specific element is defined by the latest P802.11ax draft.
  4310. * Please note that the draft is still work in progress and this element
  4311. * payload is subject to change.
  4312. *
  4313. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  4314. * element).
  4315. * This element can be used for pre-standard publication testing of HE
  4316. * before P802.11ax draft assigns the element ID extension. The payload of
  4317. * this vendor specific element is defined by the latest P802.11ax draft
  4318. * (not including the Element ID Extension field). Please note that the
  4319. * draft is still work in progress and this element payload is subject to
  4320. * change.
  4321. *
  4322. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  4323. * This element can be used for pre-standard publication testing of HE
  4324. * before P802.11ax draft assigns the element ID extension. The payload of
  4325. * this vendor specific element is defined by the latest P802.11ax draft
  4326. * (not including the Element ID Extension field). Please note that the
  4327. * draft is still work in progress and this element payload is subject to
  4328. * change.
  4329. *
  4330. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  4331. * This element can be used for pre-standard publication testing of HE
  4332. * before P802.11ax draft assigns the element ID extension. The payload of
  4333. * this vendor specific element is defined by the latest P802.11ax draft
  4334. * (not including the Element ID Extension field). Please note that the
  4335. * draft is still work in progress and this element payload is subject to
  4336. * change.
  4337. */
  4338. enum qca_vendor_element_id {
  4339. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  4340. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  4341. QCA_VENDOR_ELEM_HE_OPER = 2,
  4342. QCA_VENDOR_ELEM_RAPS = 3,
  4343. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  4344. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  4345. };
  4346. /**
  4347. * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
  4348. * @QCA_WLAN_VENDOR_ATTR_TSF_INVALID: Invalid attribute value
  4349. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
  4350. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
  4351. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
  4352. * SOC timer value at TSF capture
  4353. * @QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST: after last
  4354. * @QCA_WLAN_VENDOR_ATTR_TSF_MAX: Max value
  4355. */
  4356. enum qca_vendor_attr_tsf_cmd {
  4357. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  4358. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  4359. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  4360. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  4361. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  4362. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  4363. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  4364. };
  4365. /**
  4366. * enum qca_tsf_operation: TSF driver commands
  4367. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  4368. * @QCA_TSF_GET: Get TSF capture value
  4369. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  4370. */
  4371. enum qca_tsf_cmd {
  4372. QCA_TSF_CAPTURE,
  4373. QCA_TSF_GET,
  4374. QCA_TSF_SYNC_GET,
  4375. };
  4376. /**
  4377. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  4378. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  4379. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  4380. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  4381. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  4382. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  4383. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  4384. */
  4385. enum qca_vendor_attr_get_preferred_freq_list {
  4386. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  4387. /* A 32-unsigned value; the interface type/mode for which the preferred
  4388. * frequency list is requested (see enum qca_iface_type for possible
  4389. * values); used in both south- and north-bound.
  4390. */
  4391. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  4392. /* An array of 32-unsigned values; values are frequency (MHz); used
  4393. * in north-bound only.
  4394. */
  4395. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  4396. /* An array of nested values as per enum
  4397. * qca_wlan_vendor_attr_pcl_config attribute.
  4398. * Each element contains frequency (MHz), weight, and flag
  4399. * bit mask indicating how the frequency should be used in P2P
  4400. * negotiation.
  4401. */
  4402. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  4403. /* keep last */
  4404. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  4405. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  4406. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  4407. };
  4408. /**
  4409. * enum qca_vendor_attr_probable_oper_channel - channel hint
  4410. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  4411. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  4412. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  4413. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  4414. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  4415. */
  4416. enum qca_vendor_attr_probable_oper_channel {
  4417. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  4418. /* 32-bit unsigned value; indicates the connection/iface type likely to
  4419. * come on this channel (see enum qca_iface_type).
  4420. */
  4421. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  4422. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  4423. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  4424. /* keep last */
  4425. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  4426. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  4427. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  4428. };
  4429. /**
  4430. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  4431. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  4432. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  4433. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  4434. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  4435. */
  4436. enum qca_wlan_vendor_attr_gw_param_config {
  4437. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  4438. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  4439. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  4440. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  4441. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  4442. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  4443. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  4444. };
  4445. /**
  4446. * enum drv_dbs_capability - DBS capability
  4447. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  4448. * @DRV_DBS_CAPABILITY_1X1: 1x1
  4449. * @DRV_DBS_CAPABILITY_2X2: 2x2
  4450. */
  4451. enum drv_dbs_capability {
  4452. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  4453. DRV_DBS_CAPABILITY_1X1,
  4454. DRV_DBS_CAPABILITY_2X2,
  4455. };
  4456. /**
  4457. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  4458. *
  4459. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  4460. */
  4461. enum qca_vendor_attr_txpower_decr_db {
  4462. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  4463. /*
  4464. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  4465. * a virtual interface.
  4466. */
  4467. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  4468. /* keep last */
  4469. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  4470. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  4471. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  4472. };
  4473. /**
  4474. * enum qca_vendor_attr_ota_test - Enable OTA test
  4475. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  4476. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  4477. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  4478. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  4479. */
  4480. enum qca_vendor_attr_ota_test {
  4481. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  4482. /* 8-bit unsigned value to indicate if OTA test is enabled */
  4483. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  4484. /* keep last */
  4485. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  4486. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  4487. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  4488. };
  4489. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  4490. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  4491. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  4492. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  4493. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  4494. */
  4495. enum qca_vendor_attr_txpower_scale {
  4496. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  4497. /* 8-bit unsigned value to indicate the scaling of tx power */
  4498. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  4499. /* keep last */
  4500. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  4501. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  4502. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  4503. };
  4504. /**
  4505. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  4506. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  4507. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  4508. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  4509. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  4510. */
  4511. enum qca_vendor_attr_txpower_scale_decr_db {
  4512. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  4513. /* 8-bit unsigned value to indicate the scaling of tx power */
  4514. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  4515. /* keep last */
  4516. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  4517. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  4518. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  4519. };
  4520. /**
  4521. * enum dfs_mode - state of DFS mode
  4522. * @DFS_MODE_NONE: DFS mode attribute is none
  4523. * @DFS_MODE_ENABLE: DFS mode is enabled
  4524. * @DFS_MODE_DISABLE: DFS mode is disabled
  4525. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  4526. */
  4527. enum dfs_mode {
  4528. DFS_MODE_NONE,
  4529. DFS_MODE_ENABLE,
  4530. DFS_MODE_DISABLE,
  4531. DFS_MODE_DEPRIORITIZE
  4532. };
  4533. /**
  4534. * enum qca_wlan_vendor_attr_acs_config - Config params for ACS
  4535. * @QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID: Invalid
  4536. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Dfs mode for ACS
  4537. * QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: channel_hint for ACS
  4538. * QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST: after_last
  4539. * QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX: max attribute
  4540. */
  4541. enum qca_wlan_vendor_attr_acs_config {
  4542. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  4543. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE,
  4544. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT,
  4545. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  4546. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  4547. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  4548. };
  4549. /**
  4550. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  4551. */
  4552. enum qca_wlan_vendor_attr_get_hw_capability {
  4553. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  4554. /*
  4555. * Antenna isolation
  4556. * An attribute used in the response.
  4557. * The content of this attribute is encoded in a byte array. Each byte
  4558. * value is an antenna isolation value. The array length is the number
  4559. * of antennas.
  4560. */
  4561. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  4562. /*
  4563. * Request HW capability
  4564. * An attribute used in the request.
  4565. * The content of this attribute is a u32 array for one or more of
  4566. * hardware capabilities (attribute IDs) that are being requested. Each
  4567. * u32 value has a value from this
  4568. * enum qca_wlan_vendor_attr_get_hw_capability
  4569. * identifying which capabilities are requested.
  4570. */
  4571. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  4572. /* keep last */
  4573. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  4574. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  4575. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  4576. };
  4577. /**
  4578. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  4579. * config params for sta roam policy
  4580. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  4581. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  4582. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  4583. * If sta should skip unsafe channels or not in scanning
  4584. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  4585. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  4586. */
  4587. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  4588. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  4589. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  4590. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  4591. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  4592. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  4593. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  4594. };
  4595. /* Attributes for FTM commands and events */
  4596. /**
  4597. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  4598. *
  4599. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  4600. * enum qca_wlan_vendor_attr_loc_capa_flags.
  4601. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  4602. * of measurement sessions that can run concurrently.
  4603. * Default is one session (no session concurrency).
  4604. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  4605. * peers that are supported in running sessions. For example,
  4606. * if the value is 8 and maximum number of sessions is 2, you can
  4607. * have one session with 8 unique peers, or 2 sessions with 4 unique
  4608. * peers each, and so on.
  4609. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  4610. * of bursts per peer, as an exponent (2^value). Default is 0,
  4611. * meaning no multi-burst support.
  4612. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  4613. * of measurement exchanges allowed in a single burst.
  4614. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  4615. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  4616. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  4617. */
  4618. enum qca_wlan_vendor_attr_loc_capa {
  4619. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  4620. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  4621. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  4622. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  4623. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  4624. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  4625. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  4626. /* keep last */
  4627. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  4628. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  4629. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  4630. };
  4631. /**
  4632. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  4633. *
  4634. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  4635. * can be configured as an FTM responder (for example, an AP that
  4636. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  4637. * will be supported if set.
  4638. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  4639. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  4640. * will be supported if set.
  4641. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  4642. * supports immediate (ASAP) response.
  4643. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  4644. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  4645. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  4646. * requesting AOA measurements as part of an FTM session.
  4647. */
  4648. enum qca_wlan_vendor_attr_loc_capa_flags {
  4649. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  4650. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  4651. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  4652. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  4653. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  4654. };
  4655. /**
  4656. * enum qca_wlan_vendor_attr_sap_config - config params for sap configuration
  4657. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID: invalid
  4658. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Channel on which SAP should start
  4659. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: List of frequencies on
  4660. * which AP is expected to operate. This is irrespective of ACS configuration.
  4661. * This list is a priority based one and is looked for before the AP is created
  4662. * to ensure the best concurrency sessions (avoid MCC and use DBS/SCC) co-exist
  4663. * in the system.
  4664. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST: after last
  4665. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX: max attribute
  4666. */
  4667. enum qca_wlan_vendor_attr_sap_config {
  4668. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  4669. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL,
  4670. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  4671. /* keep last */
  4672. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  4673. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  4674. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  4675. };
  4676. /**
  4677. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  4678. * a single peer in a measurement session.
  4679. *
  4680. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  4681. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  4682. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  4683. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  4684. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  4685. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  4686. * list of supported attributes.
  4687. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  4688. * secure measurement.
  4689. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  4690. * measurement every <value> bursts. If 0 or not specified,
  4691. * AOA measurements will be disabled for this peer.
  4692. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  4693. * the measurement frames are exchanged. Optional; if not
  4694. * specified, try to locate the peer in the kernel scan
  4695. * results cache and use frequency from there.
  4696. */
  4697. enum qca_wlan_vendor_attr_ftm_peer_info {
  4698. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  4699. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  4700. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  4701. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  4702. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  4703. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  4704. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  4705. /* keep last */
  4706. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  4707. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  4708. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  4709. };
  4710. /**
  4711. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  4712. * per-peer
  4713. *
  4714. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  4715. * immediate (ASAP) response from peer.
  4716. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  4717. * LCI report from peer. The LCI report includes the absolute
  4718. * location of the peer in "official" coordinates (similar to GPS).
  4719. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  4720. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  4721. * Location civic report from peer. The LCR includes the location
  4722. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  4723. * 11.24.6.7 for more information.
  4724. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  4725. * request a secure measurement.
  4726. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  4727. */
  4728. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  4729. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  4730. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  4731. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  4732. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  4733. };
  4734. /**
  4735. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  4736. *
  4737. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  4738. * to perform in a single burst.
  4739. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  4740. * perform, specified as an exponent (2^value).
  4741. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  4742. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  4743. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  4744. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  4745. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  4746. */
  4747. enum qca_wlan_vendor_attr_ftm_meas_param {
  4748. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  4749. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  4750. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  4751. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  4752. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  4753. /* keep last */
  4754. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  4755. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  4756. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  4757. };
  4758. /**
  4759. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  4760. *
  4761. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  4762. * peer.
  4763. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  4764. * request for this peer.
  4765. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  4766. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  4767. * to measurement results for this peer.
  4768. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  4769. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  4770. * request failed and peer requested not to send an additional request
  4771. * for this number of seconds.
  4772. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  4773. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  4774. * 9.4.2.22.10.
  4775. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  4776. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  4777. * 9.4.2.22.13.
  4778. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  4779. * overridden some measurement request parameters. See
  4780. * enum qca_wlan_vendor_attr_ftm_meas_param.
  4781. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  4782. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  4783. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  4784. * results. Each entry is a nested attribute defined
  4785. * by enum qca_wlan_vendor_attr_ftm_meas.
  4786. */
  4787. enum qca_wlan_vendor_attr_ftm_peer_result {
  4788. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  4789. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  4790. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  4791. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  4792. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  4793. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  4794. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  4795. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  4796. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  4797. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  4798. /* keep last */
  4799. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  4800. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  4801. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  4802. };
  4803. /**
  4804. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  4805. *
  4806. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  4807. * will be provided. Peer may have overridden some measurement parameters,
  4808. * in which case overridden parameters will be report by
  4809. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  4810. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  4811. * of performing the measurement request. No more results will be sent
  4812. * for this peer in this session.
  4813. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  4814. * failed, and requested not to send an additional request for number
  4815. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  4816. * attribute.
  4817. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  4818. * failed. Request was not sent over the air.
  4819. */
  4820. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  4821. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  4822. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  4823. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  4824. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  4825. };
  4826. /**
  4827. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  4828. * for measurement result, per-peer
  4829. *
  4830. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  4831. * measurement completed for this peer. No more results will be reported
  4832. * for this peer in this session.
  4833. */
  4834. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  4835. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  4836. };
  4837. /**
  4838. * enum qca_vendor_attr_loc_session_status: Session completion status code
  4839. *
  4840. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  4841. * successfully.
  4842. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  4843. * by request.
  4844. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  4845. * was invalid and was not started.
  4846. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  4847. * and did not complete normally (for example out of resources).
  4848. */
  4849. enum qca_vendor_attr_loc_session_status {
  4850. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  4851. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  4852. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  4853. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  4854. };
  4855. /**
  4856. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  4857. *
  4858. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  4859. * recorded by responder, in picoseconds.
  4860. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  4861. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  4862. * initiator, in picoseconds.
  4863. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  4864. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  4865. * initiator, in picoseconds.
  4866. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  4867. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  4868. * responder, in picoseconds.
  4869. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  4870. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  4871. * during this measurement exchange. Optional and will be provided if
  4872. * the hardware can measure it.
  4873. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  4874. * responder. Not always provided.
  4875. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  4876. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  4877. * responder. Not always provided.
  4878. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  4879. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  4880. * initiator. Not always provided.
  4881. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  4882. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  4883. * initiator. Not always provided.
  4884. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  4885. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  4886. */
  4887. enum qca_wlan_vendor_attr_ftm_meas {
  4888. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  4889. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  4890. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  4891. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  4892. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  4893. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  4894. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  4895. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  4896. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  4897. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  4898. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  4899. /* keep last */
  4900. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  4901. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  4902. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  4903. };
  4904. /**
  4905. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  4906. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  4907. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  4908. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  4909. * of the social channels.
  4910. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  4911. * A 32-bit unsigned value; the P2P listen offload period (ms).
  4912. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  4913. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  4914. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  4915. * A 32-bit unsigned value; number of interval times the Firmware needs
  4916. * to run the offloaded P2P listen operation before it stops.
  4917. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  4918. * An array of unsigned 8-bit characters; vendor information elements.
  4919. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  4920. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  4921. * A 32-bit unsigned value; a control flag to indicate whether listen
  4922. * results need to be flushed to wpa_supplicant.
  4923. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  4924. * A 8-bit unsigned value; reason code for P2P listen offload stop
  4925. * event.
  4926. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  4927. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  4928. */
  4929. enum qca_wlan_vendor_attr_p2p_listen_offload {
  4930. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  4931. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  4932. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  4933. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  4934. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  4935. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  4936. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  4937. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  4938. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  4939. /* keep last */
  4940. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  4941. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  4942. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  4943. };
  4944. /**
  4945. * enum qca_wlan_vendor_drv_info - WLAN driver info
  4946. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  4947. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  4948. * between Firmware & Host.
  4949. */
  4950. enum qca_wlan_vendor_drv_info {
  4951. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  4952. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  4953. /* keep last */
  4954. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  4955. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  4956. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  4957. };
  4958. /**
  4959. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  4960. *
  4961. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  4962. * CIR (channel impulse response) path for each antenna.
  4963. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  4964. * of the strongest CIR path for each antenna.
  4965. */
  4966. enum qca_wlan_vendor_attr_aoa_type {
  4967. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  4968. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  4969. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  4970. };
  4971. /**
  4972. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  4973. * validate encryption engine
  4974. *
  4975. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  4976. * This will be included if the request is for decryption; if not included,
  4977. * the request is treated as a request for encryption by default.
  4978. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  4979. * indicating the key cipher suite. Takes same values as
  4980. * NL80211_ATTR_KEY_CIPHER.
  4981. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  4982. * Key Id to be used for encryption
  4983. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  4984. * Key (TK) to be used for encryption/decryption
  4985. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  4986. * Packet number to be specified for encryption/decryption
  4987. * 6 bytes for TKIP/CCMP/GCMP.
  4988. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  4989. * representing the 802.11 packet (header + payload + FCS) that
  4990. * needs to be encrypted/decrypted.
  4991. * Encrypted/decrypted response from the driver will also be sent
  4992. * to userspace with the same attribute.
  4993. */
  4994. enum qca_wlan_vendor_attr_encryption_test {
  4995. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  4996. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  4997. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  4998. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  4999. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  5000. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  5001. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  5002. /* keep last */
  5003. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  5004. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  5005. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  5006. };
  5007. /**
  5008. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  5009. * sector for DMG RF sector operations.
  5010. *
  5011. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  5012. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  5013. */
  5014. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  5015. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  5016. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  5017. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  5018. };
  5019. /**
  5020. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  5021. *
  5022. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  5023. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  5024. */
  5025. enum qca_wlan_vendor_attr_fw_state {
  5026. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  5027. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  5028. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  5029. };
  5030. /**
  5031. * BRP antenna limit mode
  5032. *
  5033. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  5034. * antenna limit, BRP will be performed as usual.
  5035. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  5036. * antennas limit. the hardware may use less antennas than the
  5037. * maximum limit.
  5038. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  5039. * use exactly the specified number of antennas for BRP.
  5040. */
  5041. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  5042. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  5043. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  5044. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  5045. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  5046. };
  5047. /**
  5048. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  5049. * DMG RF sector configuration for a single RF module.
  5050. * The values are defined in a compact way which closely matches
  5051. * the way it is stored in HW registers.
  5052. * The configuration provides values for 32 antennas and 8 distribution
  5053. * amplifiers, and together describes the characteristics of the RF
  5054. * sector - such as a beam in some direction with some gain.
  5055. *
  5056. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  5057. * of RF module for this configuration.
  5058. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  5059. * amplifier gain index. Unsigned 32 bit number containing
  5060. * bits for all 32 antennas.
  5061. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  5062. * amplifier gain index. Unsigned 32 bit number containing
  5063. * bits for all 32 antennas.
  5064. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  5065. * amplifier gain index. Unsigned 32 bit number containing
  5066. * bits for all 32 antennas.
  5067. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  5068. * for first 16 antennas, 2 bits per antenna.
  5069. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  5070. * for last 16 antennas, 2 bits per antenna.
  5071. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  5072. * DTYPE values (3 bits) for each distribution amplifier, followed
  5073. * by X16 switch bits for each distribution amplifier. There are
  5074. * total of 8 distribution amplifiers.
  5075. */
  5076. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  5077. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  5078. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  5079. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  5080. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  5081. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  5082. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  5083. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  5084. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  5085. /* keep last */
  5086. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  5087. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  5088. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  5089. };
  5090. /**
  5091. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  5092. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  5093. *
  5094. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  5095. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  5096. * represents the different TDLS trigger modes.
  5097. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  5098. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  5099. * of packets shall meet the criteria for implicit TDLS setup.
  5100. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  5101. * packets within a duration.
  5102. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  5103. * a TDLS setup.
  5104. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to inititate
  5105. * a TDLS Discovery to the Peer.
  5106. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  5107. * discovery attempts to know the TDLS capability of the peer. A peer is
  5108. * marked as TDLS not capable if there is no response for all the attempts.
  5109. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  5110. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  5111. * number of TX / RX frames meet the criteria for TDLS teardown.
  5112. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  5113. * (u32) of Tx/Rx packets within a duration
  5114. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  5115. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  5116. * corresponding to the RSSI of the peer below which a TDLS
  5117. * setup is triggered.
  5118. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  5119. * corresponding to the RSSI of the peer above which
  5120. * a TDLS teardown is triggered.
  5121. */
  5122. enum qca_wlan_vendor_attr_tdls_configuration {
  5123. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  5124. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  5125. /* Attributes configuring the TDLS Implicit Trigger */
  5126. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  5127. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  5128. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  5129. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  5130. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  5131. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  5132. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  5133. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  5134. /* keep last */
  5135. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  5136. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  5137. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  5138. };
  5139. /**
  5140. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  5141. * the driver.
  5142. *
  5143. * The following are the different values for
  5144. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  5145. *
  5146. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  5147. * initiate/teardown the TDLS connection to a respective peer comes
  5148. * from the user space. wpa_supplicant provides the commands
  5149. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  5150. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  5151. * setup/teardown to the eligible peer once the configured criteria
  5152. * (such as TX/RX threshold, RSSI) is met. The attributes
  5153. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  5154. * the different configuration criteria for the TDLS trigger from the
  5155. * host driver.
  5156. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  5157. * the TDLS setup / teardown through the implicit mode, only to the
  5158. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  5159. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  5160. * External mode works on top of the implicit mode, thus the host Driver
  5161. * is expected to be configured in TDLS Implicit mode too to operate in
  5162. * External mode. Configuring External mode alone without Implicit
  5163. * mode is invalid.
  5164. *
  5165. * All the above implementations work as expected only when the host driver
  5166. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  5167. * representing that the TDLS message exchange is not internal to the host
  5168. * driver, but depends on wpa_supplicant to do the message exchange.
  5169. */
  5170. enum qca_wlan_vendor_tdls_trigger_mode {
  5171. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  5172. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  5173. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  5174. };
  5175. /**
  5176. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  5177. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  5178. * that is hard-coded in the Board Data File (BDF).
  5179. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  5180. * that is hard-coded in the Board Data File (BDF).
  5181. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  5182. * that is hard-coded in the Board Data File (BDF).
  5183. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  5184. * that is hard-coded in the Board Data File (BDF).
  5185. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  5186. * that is hard-coded in the Board Data File (BDF).
  5187. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  5188. * source of SAR power limits, thereby disabling the SAR power
  5189. * limit feature.
  5190. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  5191. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  5192. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  5193. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  5194. *
  5195. * This enumerates the valid set of values that may be supplied for
  5196. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  5197. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  5198. * the response to an instance of the
  5199. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  5200. */
  5201. enum qca_vendor_attr_sar_limits_selections {
  5202. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  5203. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  5204. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  5205. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  5206. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  5207. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  5208. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  5209. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  5210. };
  5211. /**
  5212. * enum qca_vendor_attr_sar_limits_spec_modulations -
  5213. * SAR limits specification modulation
  5214. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  5215. * CCK modulation
  5216. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  5217. * OFDM modulation
  5218. *
  5219. * This enumerates the valid set of values that may be supplied for
  5220. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  5221. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  5222. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  5223. * command or in the response to an instance of the
  5224. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  5225. */
  5226. enum qca_vendor_attr_sar_limits_spec_modulations {
  5227. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  5228. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  5229. };
  5230. /**
  5231. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  5232. *
  5233. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  5234. * select which SAR power limit table should be used. Valid
  5235. * values are enumerated in enum
  5236. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  5237. * power limit selection is unchanged if this attribute is not
  5238. * present.
  5239. *
  5240. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  5241. * which specifies the number of SAR power limit specifications
  5242. * which will follow.
  5243. *
  5244. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  5245. * limit specifications. The number of specifications is
  5246. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  5247. * specification contains a set of
  5248. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  5249. * specification is uniquely identified by the attributes
  5250. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  5251. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  5252. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  5253. * contains as a payload the attribute
  5254. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  5255. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  5256. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  5257. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  5258. * needed based upon the value of
  5259. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  5260. *
  5261. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  5262. * indicate for which band this specification applies. Valid
  5263. * values are enumerated in enum %nl80211_band (although not all
  5264. * bands may be supported by a given device). If the attribute is
  5265. * not supplied then the specification will be applied to all
  5266. * supported bands.
  5267. *
  5268. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  5269. * to indicate for which antenna chain this specification
  5270. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  5271. * attribute is not supplied then the specification will be
  5272. * applied to all chains.
  5273. *
  5274. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  5275. * value to indicate for which modulation scheme this
  5276. * specification applies. Valid values are enumerated in enum
  5277. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  5278. * is not supplied then the specification will be applied to all
  5279. * modulation schemes.
  5280. *
  5281. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  5282. * value to specify the actual power limit value in units of 0.5
  5283. * dBm (i.e., a value of 11 represents 5.5 dBm).
  5284. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  5285. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  5286. *
  5287. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  5288. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  5289. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  5290. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  5291. *
  5292. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  5293. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  5294. */
  5295. enum qca_vendor_attr_sar_limits {
  5296. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  5297. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  5298. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  5299. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  5300. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  5301. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  5302. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  5303. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  5304. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  5305. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  5306. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  5307. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  5308. };
  5309. /**
  5310. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  5311. * offload which is an extension for LL_STATS.
  5312. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  5313. * If MAC counters do not exceed the threshold, FW will report monitored
  5314. * link layer counters periodically as this setting. The first report is
  5315. * always triggered by this timer.
  5316. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  5317. * For each MAC layer counter, FW holds two copies. One is the current value.
  5318. * The other is the last report. Once a current counter's increment is larger
  5319. * than the threshold, FW will indicate that counter to host even if the
  5320. * monitoring timer does not expire.
  5321. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  5322. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  5323. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  5324. * failure code.
  5325. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  5326. * 1: TX packet discarded
  5327. * 2: No ACK
  5328. * 3: Postpone
  5329. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  5330. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  5331. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  5332. * Threshold for all monitored parameters. If per counter dedicated threshold
  5333. * is not enabled, this threshold will take effect.
  5334. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  5335. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  5336. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  5337. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  5338. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  5339. * Bit0: TX counter unit in MSDU
  5340. * Bit1: TX counter unit in MPDU
  5341. * Bit2: TX counter unit in PPDU
  5342. * Bit3: TX counter unit in byte
  5343. * Bit4: Dropped MSDUs
  5344. * Bit5: Dropped Bytes
  5345. * Bit6: MPDU retry counter
  5346. * Bit7: MPDU failure counter
  5347. * Bit8: PPDU failure counter
  5348. * Bit9: MPDU aggregation counter
  5349. * Bit10: MCS counter for ACKed MPDUs
  5350. * Bit11: MCS counter for Failed MPDUs
  5351. * Bit12: TX Delay counter
  5352. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  5353. * Bit0: MAC RX counter unit in MPDU
  5354. * Bit1: MAC RX counter unit in byte
  5355. * Bit2: PHY RX counter unit in PPDU
  5356. * Bit3: PHY RX counter unit in byte
  5357. * Bit4: Disorder counter
  5358. * Bit5: Retry counter
  5359. * Bit6: Duplication counter
  5360. * Bit7: Discard counter
  5361. * Bit8: MPDU aggregation size counter
  5362. * Bit9: MCS counter
  5363. * Bit10: Peer STA power state change (wake to sleep) counter
  5364. * Bit11: Peer STA power save counter, total time in PS mode
  5365. * Bit12: Probe request counter
  5366. * Bit13: Other management frames counter
  5367. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  5368. * Bit0: Idle time
  5369. * Bit1: TX time
  5370. * Bit2: time RX in current bss
  5371. * Bit3: Out of current bss time
  5372. * Bit4: Wireless medium busy time
  5373. * Bit5: RX in bad condition time
  5374. * Bit6: TX in bad condition time
  5375. * Bit7: time wlan card not available
  5376. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  5377. * Bit0: Per channel SNR counter
  5378. * Bit1: Per channel noise floor counter
  5379. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  5380. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  5381. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  5382. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  5383. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  5384. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  5385. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  5386. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  5387. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  5388. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  5389. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  5390. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  5391. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  5392. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  5393. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  5394. * aggregation stats buffer length
  5395. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  5396. * buffer for ACKed MPDUs.
  5397. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  5398. * buffer for failed MPDUs.
  5399. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  5400. * length of delay stats array.
  5401. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  5402. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  5403. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  5404. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  5405. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  5406. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  5407. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  5408. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  5409. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  5410. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  5411. * flagged as retransmissions
  5412. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  5413. * flagged as duplicated
  5414. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  5415. * packets discarded
  5416. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  5417. * stats buffer.
  5418. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  5419. * stats buffer.
  5420. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  5421. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  5422. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  5423. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  5424. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  5425. * requests received
  5426. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  5427. * frames received
  5428. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  5429. * there is no TX, nor RX, nor interference.
  5430. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  5431. * transmitting packets.
  5432. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  5433. * for receiving.
  5434. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  5435. * interference detected.
  5436. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  5437. * receiving packets with errors.
  5438. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  5439. * TX no-ACK.
  5440. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  5441. * the chip is unable to work in normal conditions.
  5442. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  5443. * receiving packets in current BSS.
  5444. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  5445. * receiving packets not in current BSS.
  5446. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  5447. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  5448. * This is a container for per antenna signal stats.
  5449. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  5450. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  5451. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  5452. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  5453. */
  5454. enum qca_wlan_vendor_attr_ll_stats_ext {
  5455. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  5456. /* Attributes for configurations */
  5457. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  5458. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  5459. /* Peer STA power state change */
  5460. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  5461. /* TX failure event */
  5462. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  5463. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  5464. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  5465. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  5466. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  5467. /* MAC counters */
  5468. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  5469. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  5470. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  5471. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  5472. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  5473. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  5474. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  5475. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  5476. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  5477. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  5478. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  5479. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  5480. /* Sub-attributes for PEER_AC_TX */
  5481. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  5482. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  5483. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  5484. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  5485. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  5486. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  5487. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  5488. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  5489. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  5490. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  5491. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  5492. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  5493. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  5494. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  5495. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  5496. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  5497. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  5498. /* Sub-attributes for PEER_AC_RX */
  5499. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  5500. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  5501. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  5502. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  5503. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  5504. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  5505. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  5506. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  5507. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  5508. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  5509. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  5510. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  5511. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  5512. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  5513. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  5514. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  5515. /* Sub-attributes for CCA_BSS */
  5516. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  5517. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  5518. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  5519. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  5520. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  5521. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  5522. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  5523. /* sub-attribute for BSS_RX_TIME */
  5524. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  5525. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  5526. /* Sub-attributes for PEER_SIGNAL */
  5527. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  5528. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  5529. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  5530. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  5531. /* Sub-attributes for IFACE_BSS */
  5532. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  5533. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  5534. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  5535. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  5536. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  5537. };
  5538. /**
  5539. * qca_wlan_vendor_attr_external_acs_channels: attribute to vendor subcmd
  5540. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carry a list of channels
  5541. * in priority order as decided after acs operation in userspace.
  5542. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: One of reason code from
  5543. * qca_wlan_vendor_acs_select_reason.
  5544. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_COUNT: Number of channels in
  5545. * this list
  5546. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Array of nested values
  5547. * for each channel with following attributes:
  5548. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  5549. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  5550. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  5551. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  5552. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  5553. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Primary channel (u8)
  5554. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Secondary channel (u8)
  5555. * required only for 160 / 80 + 80
  5556. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: VHT seg0 channel (u8)
  5557. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: VHT seg1 channel (u8)
  5558. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH:channel width (u8)
  5559. */
  5560. enum qca_wlan_vendor_attr_external_acs_channels {
  5561. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  5562. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  5563. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  5564. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  5565. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  5566. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  5567. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  5568. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  5569. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  5570. /* keep last */
  5571. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  5572. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  5573. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  5574. };
  5575. /**
  5576. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  5577. * the ACS has to be triggered. These values are used by
  5578. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  5579. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  5580. */
  5581. enum qca_wlan_vendor_acs_select_reason {
  5582. /* Represents the reason that the ACS triggered during the AP start */
  5583. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  5584. /* Represents the reason that DFS found with the current channel */
  5585. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  5586. /* Represents the reason that LTE co-exist in the current band. */
  5587. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  5588. /* Represents the reason that generic, uncategorized interference has
  5589. * been found in the current channel.
  5590. */
  5591. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  5592. /* Represents the reason that excessive 802.11 interference has been
  5593. * found in the current channel.
  5594. */
  5595. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  5596. /* Represents the reason that generic Continuous Wave (CW) interference
  5597. * has been found in the current channel.
  5598. */
  5599. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  5600. /* Represents the reason that Microwave Oven (MWO) interference has been
  5601. * found in the current channel.
  5602. */
  5603. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  5604. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  5605. * (FHSS) interference has been found in the current channel. This may
  5606. * include 802.11 waveforms.
  5607. */
  5608. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  5609. /* Represents the reason that non-802.11 generic Frequency-Hopping
  5610. * Spread Spectrum (FHSS) interference has been found in the current
  5611. * channel.
  5612. */
  5613. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  5614. /* Represents the reason that generic Wideband (WB) interference has
  5615. * been found in the current channel. This may include 802.11 waveforms.
  5616. */
  5617. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  5618. /* Represents the reason that non-802.11 generic Wideband (WB)
  5619. * interference has been found in the current channel.
  5620. */
  5621. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  5622. /* Represents the reason that Jammer interference has been found in the
  5623. * current channel.
  5624. */
  5625. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  5626. };
  5627. /**
  5628. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  5629. */
  5630. enum qca_wlan_gpio_attr {
  5631. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  5632. /* Unsigned 32-bit attribute for GPIO command */
  5633. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
  5634. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  5635. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
  5636. /* Unsigned 32-bit attribute for GPIO value to configure */
  5637. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
  5638. /* Unsigned 32-bit attribute for GPIO pull type */
  5639. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
  5640. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  5641. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
  5642. /* keep last */
  5643. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  5644. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  5645. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  5646. };
  5647. /**
  5648. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  5649. * MSDUQ depth threshold per peer per tid in the target
  5650. *
  5651. * Associated Vendor Command:
  5652. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  5653. */
  5654. enum qca_wlan_set_qdepth_thresh_attr {
  5655. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  5656. /* 6-byte MAC address */
  5657. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  5658. /* Unsigned 32-bit attribute for holding the TID */
  5659. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  5660. /* Unsigned 32-bit attribute for holding the update mask
  5661. * bit 0 - Update high priority msdu qdepth threshold
  5662. * bit 1 - Update low priority msdu qdepth threshold
  5663. * bit 2 - Update UDP msdu qdepth threshold
  5664. * bit 3 - Update Non UDP msdu qdepth threshold
  5665. * rest of bits are reserved
  5666. */
  5667. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  5668. /* Unsigned 32-bit attribute for holding the threshold value */
  5669. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  5670. /* keep last */
  5671. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  5672. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  5673. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  5674. };
  5675. /**
  5676. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  5677. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  5678. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  5679. * external ACS policies to select the channels w.r.t. the PCL weights.
  5680. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  5681. * their PCL weights.)
  5682. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  5683. * select a channel with non-zero PCL weight.
  5684. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  5685. * channel with non-zero PCL weight.
  5686. *
  5687. */
  5688. enum qca_wlan_vendor_attr_external_acs_policy {
  5689. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  5690. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  5691. };
  5692. /**
  5693. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  5694. */
  5695. enum qca_wlan_vendor_attr_spectral_scan {
  5696. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  5697. /*
  5698. * Number of times the chip enters spectral scan mode before
  5699. * deactivating spectral scans. When set to 0, chip will enter spectral
  5700. * scan mode continuously. u32 attribute.
  5701. */
  5702. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  5703. /*
  5704. * Spectral scan period. Period increment resolution is 256*Tclk,
  5705. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  5706. */
  5707. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  5708. /* Spectral scan priority. u32 attribute. */
  5709. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  5710. /* Number of FFT data points to compute. u32 attribute. */
  5711. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  5712. /*
  5713. * Enable targeted gain change before starting the spectral scan FFT.
  5714. * u32 attribute.
  5715. */
  5716. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  5717. /* Restart a queued spectral scan. u32 attribute. */
  5718. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  5719. /*
  5720. * Noise floor reference number for the calculation of bin power.
  5721. * u32 attribute.
  5722. */
  5723. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  5724. /*
  5725. * Disallow spectral scan triggers after TX/RX packets by setting
  5726. * this delay value to roughly SIFS time period or greater.
  5727. * u32 attribute.
  5728. */
  5729. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  5730. /*
  5731. * Number of strong bins (inclusive) per sub-channel, below
  5732. * which a signal is declared a narrow band tone. u32 attribute.
  5733. */
  5734. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  5735. /*
  5736. * Specify the threshold over which a bin is declared strong (for
  5737. * scan bandwidth analysis). u32 attribute.
  5738. */
  5739. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  5740. /* Spectral scan report mode. u32 attribute. */
  5741. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  5742. /*
  5743. * RSSI report mode, if the ADC RSSI is below
  5744. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  5745. * then FFTs will not trigger, but timestamps and summaries get
  5746. * reported. u32 attribute.
  5747. */
  5748. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  5749. /*
  5750. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  5751. * to ensure spectral scan reporting with normal error code.
  5752. * u32 attribute.
  5753. */
  5754. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  5755. /*
  5756. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  5757. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  5758. * u32 attribute.
  5759. */
  5760. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  5761. /*
  5762. * Format of FFT report to software for spectral scan triggered FFTs.
  5763. * 0: No FFT report (only spectral scan summary report)
  5764. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  5765. * report
  5766. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  5767. * bins (in-band) per FFT + spectral scan summary report
  5768. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  5769. * bins (all) per FFT + spectral scan summary report
  5770. * u32 attribute.
  5771. */
  5772. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  5773. /*
  5774. * Number of LSBs to shift out in order to scale the FFT bins.
  5775. * u32 attribute.
  5776. */
  5777. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  5778. /*
  5779. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  5780. * in dBm power. u32 attribute.
  5781. */
  5782. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  5783. /*
  5784. * Per chain enable mask to select input ADC for search FFT.
  5785. * u32 attribute.
  5786. */
  5787. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  5788. /*
  5789. * An unsigned 64-bit integer provided by host driver to identify the
  5790. * spectral scan request. This attribute is included in the scan
  5791. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  5792. * and used as an attribute in
  5793. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  5794. * specific scan to be stopped.
  5795. */
  5796. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  5797. /* Skip interval for FFT reports. u32 attribute */
  5798. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  5799. /* Set to report only one set of FFT results.
  5800. * u32 attribute.
  5801. */
  5802. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  5803. /* Debug level for spectral module in driver.
  5804. * 0 : Verbosity level 0
  5805. * 1 : Verbosity level 1
  5806. * 2 : Verbosity level 2
  5807. * 3 : Matched filterID display
  5808. * 4 : One time dump of FFT report
  5809. * u32 attribute.
  5810. */
  5811. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  5812. /* Type of spectral scan request. u32 attribute.
  5813. * It uses values defined in enum
  5814. * qca_wlan_vendor_attr_spectral_scan_request_type.
  5815. */
  5816. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  5817. /* This specifies the frequency span over which spectral
  5818. * scan would be carried out. Its value depends on the
  5819. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  5820. * the relation is as follows.
  5821. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  5822. * Not applicable. Spectral scan would happen in the
  5823. * operating span.
  5824. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  5825. * Center frequency (in MHz) of the span of interest or
  5826. * for convenience, center frequency (in MHz) of any channel
  5827. * in the span of interest. If agile spectral scan is initiated
  5828. * without setting a valid frequency it returns the error code
  5829. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  5830. * u32 attribute.
  5831. */
  5832. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  5833. /* Spectral scan mode. u32 attribute.
  5834. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  5835. * If this attribute is not present, it is assumed to be
  5836. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  5837. */
  5838. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  5839. /* Spectral scan error code. u32 attribute.
  5840. * It uses values defined in enum
  5841. * qca_wlan_vendor_spectral_scan_error_code.
  5842. * This attribute is included only in failure scenarios.
  5843. */
  5844. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  5845. /* 8-bit unsigned value to enable/disable debug of the
  5846. * Spectral DMA ring.
  5847. * 1-enable, 0-disable
  5848. */
  5849. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  5850. /* 8-bit unsigned value to enable/disable debug of the
  5851. * Spectral DMA buffers.
  5852. * 1-enable, 0-disable
  5853. */
  5854. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  5855. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  5856. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  5857. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  5858. };
  5859. /**
  5860. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  5861. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  5862. */
  5863. enum qca_wlan_vendor_attr_spectral_diag_stats {
  5864. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  5865. /* Number of spectral TLV signature mismatches.
  5866. * u64 attribute.
  5867. */
  5868. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  5869. /* Number of spectral phyerror events with insufficient length when
  5870. * parsing for secondary 80 search FFT report. u64 attribute.
  5871. */
  5872. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  5873. /* Number of spectral phyerror events without secondary 80
  5874. * search FFT report. u64 attribute.
  5875. */
  5876. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  5877. /* Number of spectral phyerror events with vht operation segment 1 id
  5878. * mismatches in search fft report. u64 attribute.
  5879. */
  5880. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  5881. /* Number of spectral phyerror events with vht operation segment 2 id
  5882. * mismatches in search fft report. u64 attribute.
  5883. */
  5884. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  5885. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  5886. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  5887. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  5888. };
  5889. /**
  5890. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  5891. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  5892. */
  5893. enum qca_wlan_vendor_attr_spectral_cap {
  5894. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  5895. /* Flag attribute to indicate phydiag capability */
  5896. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  5897. /* Flag attribute to indicate radar detection capability */
  5898. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  5899. /* Flag attribute to indicate spectral capability */
  5900. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  5901. /* Flag attribute to indicate advanced spectral capability */
  5902. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  5903. /* Spectral hardware generation. u32 attribute.
  5904. * It uses values defined in enum
  5905. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  5906. */
  5907. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  5908. /* Spectral bin scaling formula ID. u16 attribute.
  5909. * It uses values defined in enum
  5910. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  5911. */
  5912. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  5913. /* Spectral bin scaling param - low level offset.
  5914. * s16 attribute.
  5915. */
  5916. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  5917. /* Spectral bin scaling param - high level offset.
  5918. * s16 attribute.
  5919. */
  5920. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  5921. /* Spectral bin scaling param - RSSI threshold.
  5922. * s16 attribute.
  5923. */
  5924. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  5925. /* Spectral bin scaling param - default AGC max gain.
  5926. * u8 attribute.
  5927. */
  5928. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  5929. /* Flag attribute to indicate agile spectral scan capability */
  5930. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  5931. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  5932. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  5933. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  5934. };
  5935. /**
  5936. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  5937. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  5938. */
  5939. enum qca_wlan_vendor_attr_spectral_scan_status {
  5940. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  5941. /* Flag attribute to indicate whether spectral scan is enabled */
  5942. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  5943. /* Flag attribute to indicate whether spectral scan is in progress*/
  5944. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  5945. /* Spectral scan mode. u32 attribute.
  5946. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  5947. * If this attribute is not present, normal mode
  5948. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  5949. * requested.
  5950. */
  5951. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  5952. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  5953. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  5954. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  5955. };
  5956. /**
  5957. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  5958. * wlan latency module.
  5959. *
  5960. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  5961. * power saving which would causing data exchange out of service, this
  5962. * would be a big impact on latency. For latency sensitive applications over
  5963. * Wi-Fi are intolerant to such operations and thus would configure them
  5964. * to meet their respective needs. It is well understood by such applications
  5965. * that altering the default behavior would degrade the Wi-Fi functionality
  5966. * w.r.t the above pointed WLAN operations.
  5967. *
  5968. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  5969. * Default WLAN operation level which throughput orientated.
  5970. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE:
  5971. * Use moderate level to improve latency by limit scan duration.
  5972. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  5973. * Use low latency level to benifit application like concurrent
  5974. * downloading or video streaming via constraint scan/adaptive PS.
  5975. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  5976. * Use ultra low latency level to benefit for gaming/voice
  5977. * application via constraint scan/roaming/adaptive PS.
  5978. */
  5979. enum qca_wlan_vendor_attr_config_latency_level {
  5980. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  5981. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  5982. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2,
  5983. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  5984. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  5985. /* keep last */
  5986. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  5987. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  5988. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  5989. };
  5990. /**
  5991. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  5992. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  5993. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  5994. * spectral scan request types.
  5995. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  5996. * set the spectral parameters and start scan.
  5997. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  5998. * only set the spectral parameters.
  5999. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  6000. * only start the spectral scan.
  6001. */
  6002. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  6003. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  6004. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  6005. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  6006. };
  6007. /**
  6008. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  6009. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  6010. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  6011. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  6012. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  6013. * spectral scan modes.
  6014. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  6015. * spectral scan in the current operating span.
  6016. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  6017. * spectral scan in the configured agile span.
  6018. */
  6019. enum qca_wlan_vendor_spectral_scan_mode {
  6020. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  6021. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  6022. };
  6023. /**
  6024. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  6025. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  6026. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  6027. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  6028. * of a parameter is not supported.
  6029. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  6030. * mode is not supported.
  6031. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  6032. * has invalid value.
  6033. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  6034. * is not initialized.
  6035. */
  6036. enum qca_wlan_vendor_spectral_scan_error_code {
  6037. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  6038. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  6039. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  6040. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  6041. };
  6042. /**
  6043. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  6044. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  6045. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  6046. * spectral hardware generation.
  6047. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  6048. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  6049. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  6050. */
  6051. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  6052. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  6053. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  6054. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  6055. };
  6056. /**
  6057. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  6058. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  6059. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  6060. * Spectral bin scaling formula ID.
  6061. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  6062. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  6063. * and RSSI threshold based formula.
  6064. */
  6065. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  6066. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  6067. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  6068. };
  6069. /**
  6070. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  6071. * RF Operating Parameter (RROP) information is available, and if so, at which
  6072. * point in the application-driver interaction sequence it can be retrieved by
  6073. * the application from the driver. This point may vary by architecture and
  6074. * other factors. This is a u16 value.
  6075. */
  6076. enum qca_wlan_vendor_attr_rropavail_info {
  6077. /* RROP information is unavailable. */
  6078. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  6079. /* RROP information is available and the application can retrieve the
  6080. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  6081. * event from the driver.
  6082. */
  6083. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  6084. /* RROP information is available only after a vendor specific scan
  6085. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  6086. * successfully completed. The application can retrieve the information
  6087. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  6088. * the driver.
  6089. */
  6090. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  6091. };
  6092. /**
  6093. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  6094. * Representative RF Operating Parameter (RROP) information. It is sent for the
  6095. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  6096. * intended for use by external Auto Channel Selection applications. It provides
  6097. * guidance values for some RF parameters that are used by the system during
  6098. * operation. These values could vary by channel, band, radio, and so on.
  6099. */
  6100. enum qca_wlan_vendor_attr_rrop_info {
  6101. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  6102. /* Representative Tx Power List (RTPL) which has an array of nested
  6103. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  6104. */
  6105. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  6106. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  6107. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  6108. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  6109. };
  6110. /**
  6111. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  6112. * entry instances in the Representative Tx Power List (RTPL). It provides
  6113. * simplified power values intended for helping external Auto channel Selection
  6114. * applications compare potential Tx power performance between channels, other
  6115. * operating conditions remaining identical. These values are not necessarily
  6116. * the actual Tx power values that will be used by the system. They are also not
  6117. * necessarily the max or average values that will be used. Instead, they are
  6118. * relative, summarized keys for algorithmic use computed by the driver or
  6119. * underlying firmware considering a number of vendor specific factors.
  6120. */
  6121. enum qca_wlan_vendor_attr_rtplinst {
  6122. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  6123. /* Primary channel number (u8) */
  6124. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  6125. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  6126. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  6127. /* Representative Tx power in dBm (s32) with emphasis on range. */
  6128. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  6129. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  6130. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  6131. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  6132. };
  6133. /**
  6134. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  6135. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  6136. *
  6137. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  6138. * array of nested values as per attributes in
  6139. * enum qca_wlan_vendor_attr_mac_mode_info.
  6140. */
  6141. enum qca_wlan_vendor_attr_mac {
  6142. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  6143. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  6144. /* keep last */
  6145. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  6146. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  6147. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  6148. };
  6149. /**
  6150. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  6151. * WiFi netdev interface on a respective MAC. Used by the attribute
  6152. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  6153. *
  6154. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  6155. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  6156. * the connected Wi-Fi interface(u32).
  6157. */
  6158. enum qca_wlan_vendor_attr_mac_iface_info {
  6159. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  6160. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  6161. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  6162. /* keep last */
  6163. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  6164. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  6165. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  6166. };
  6167. /**
  6168. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  6169. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  6170. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  6171. *
  6172. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  6173. * MAC (u32)
  6174. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  6175. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  6176. * in enum nl80211_band.
  6177. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  6178. * interfaces associated with this MAC. Represented by enum
  6179. * qca_wlan_vendor_attr_mac_iface_info.
  6180. */
  6181. enum qca_wlan_vendor_attr_mac_info {
  6182. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  6183. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  6184. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  6185. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  6186. /* keep last */
  6187. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  6188. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  6189. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  6190. };
  6191. #if !(defined (SUPPORT_WDEV_CFG80211_VENDOR_EVENT_ALLOC)) && \
  6192. (LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)) && \
  6193. !(defined(WITH_BACKPORTS))
  6194. static inline struct sk_buff *
  6195. backported_cfg80211_vendor_event_alloc(struct wiphy *wiphy,
  6196. struct wireless_dev *wdev,
  6197. int approxlen,
  6198. int event_idx, gfp_t gfp)
  6199. {
  6200. struct sk_buff *skb;
  6201. skb = cfg80211_vendor_event_alloc(wiphy, approxlen, event_idx, gfp);
  6202. if (skb && wdev) {
  6203. struct nlattr *attr;
  6204. u32 ifindex = wdev->netdev->ifindex;
  6205. nla_nest_cancel(skb, ((void **)skb->cb)[2]);
  6206. if (nla_put_u32(skb, NL80211_ATTR_IFINDEX, ifindex))
  6207. goto nla_fail;
  6208. attr = nla_nest_start(skb, NL80211_ATTR_VENDOR_DATA);
  6209. ((void **)skb->cb)[2] = attr;
  6210. }
  6211. return skb;
  6212. nla_fail:
  6213. kfree_skb(skb);
  6214. return NULL;
  6215. }
  6216. #define cfg80211_vendor_event_alloc backported_cfg80211_vendor_event_alloc
  6217. #endif
  6218. /**
  6219. * enum he_fragmentation_val - HE fragmentation support values
  6220. * Indicates level of dynamic fragmentation that is supported by
  6221. * a STA as a recipient.
  6222. * HE fragmentation values are defined as per 11ax spec and are used in
  6223. * HE capability IE to advertise the support. These values are validated
  6224. * in the driver to check the device capability and advertised in the HE
  6225. * capability element.
  6226. *
  6227. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  6228. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  6229. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  6230. * within an A-MPDU that is not an S-MPDU.
  6231. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  6232. * contained within an MPDU or S-MPDU and support for up to one dynamic
  6233. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  6234. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  6235. * MPDU or S-MPDU.
  6236. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  6237. * contained within an MPDU or S-MPDU and support for multiple dynamic
  6238. * fragments for each MSDU and for each A-MSDU if supported by the
  6239. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  6240. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  6241. */
  6242. enum he_fragmentation_val {
  6243. HE_FRAG_DISABLE,
  6244. HE_FRAG_LEVEL1,
  6245. HE_FRAG_LEVEL2,
  6246. HE_FRAG_LEVEL3,
  6247. };
  6248. /**
  6249. * enum he_mcs_config - HE MCS support configuration
  6250. *
  6251. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  6252. * These values are used in driver to configure the HE MCS map to advertise
  6253. * Tx/Rx MCS map in HE capability and these values are applied for all the
  6254. * streams supported by the device. To configure MCS for different bandwidths,
  6255. * vendor command needs to be sent using this attribute with appropriate value.
  6256. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  6257. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  6258. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  6259. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  6260. *
  6261. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  6262. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  6263. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  6264. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  6265. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  6266. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  6267. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  6268. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  6269. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  6270. */
  6271. enum he_mcs_config {
  6272. HE_80_MCS0_7 = 0,
  6273. HE_80_MCS0_9 = 1,
  6274. HE_80_MCS0_11 = 2,
  6275. HE_160_MCS0_7 = 4,
  6276. HE_160_MCS0_9 = 5,
  6277. HE_160_MCS0_11 = 6,
  6278. HE_80p80_MCS0_7 = 8,
  6279. HE_80p80_MCS0_9 = 9,
  6280. HE_80p80_MCS0_11 = 10,
  6281. };
  6282. /**
  6283. * enum qca_wlan_ba_session_config - BA session configuration
  6284. *
  6285. * Indicates the configuration values for BA session configuration attribute.
  6286. *
  6287. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  6288. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  6289. */
  6290. enum qca_wlan_ba_session_config {
  6291. QCA_WLAN_ADD_BA = 1,
  6292. QCA_WLAN_DELETE_BA = 2,
  6293. };
  6294. /**
  6295. * enum qca_wlan_ac_type - access category type
  6296. *
  6297. * Indicates the access category type value.
  6298. *
  6299. * @QCA_WLAN_AC_BE: BE access category
  6300. * @QCA_WLAN_AC_BK: BK access category
  6301. * @QCA_WLAN_AC_VI: VI access category
  6302. * @QCA_WLAN_AC_VO: VO access category
  6303. * @QCA_WLAN_AC_ALL: All ACs
  6304. */
  6305. enum qca_wlan_ac_type {
  6306. QCA_WLAN_AC_BE = 0,
  6307. QCA_WLAN_AC_BK = 1,
  6308. QCA_WLAN_AC_VI = 2,
  6309. QCA_WLAN_AC_VO = 3,
  6310. QCA_WLAN_AC_ALL = 4,
  6311. };
  6312. /**
  6313. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  6314. *
  6315. * Indicates the HE LTF configuration value.
  6316. *
  6317. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  6318. * the mandatory HE-LTF based on the GI setting
  6319. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  6320. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  6321. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  6322. */
  6323. enum qca_wlan_he_ltf_cfg {
  6324. QCA_WLAN_HE_LTF_AUTO = 0,
  6325. QCA_WLAN_HE_LTF_1X = 1,
  6326. QCA_WLAN_HE_LTF_2X = 2,
  6327. QCA_WLAN_HE_LTF_4X = 3,
  6328. };
  6329. /**
  6330. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  6331. *
  6332. * Indicates the HE trigger frame MAC padding duration value.
  6333. *
  6334. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  6335. * process the trigger frame.
  6336. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  6337. * trigger frame.
  6338. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  6339. * trigger frame.
  6340. */
  6341. enum qca_wlan_he_mac_padding_dur {
  6342. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  6343. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  6344. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  6345. };
  6346. /**
  6347. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  6348. *
  6349. * Indicates the HE Operating mode control channel width setting value.
  6350. *
  6351. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  6352. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  6353. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  6354. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  6355. */
  6356. enum qca_wlan_he_om_ctrl_ch_bw {
  6357. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  6358. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  6359. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  6360. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  6361. };
  6362. /**
  6363. * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for
  6364. * HE operating mode control transmit request. These attributes are
  6365. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and
  6366. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  6367. *
  6368. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  6369. * indicates the maximum number of spatial streams, NSS, that the STA
  6370. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  6371. * and is set to NSS - 1.
  6372. *
  6373. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  6374. * indicates the operating channel width supported by the STA for both
  6375. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  6376. *
  6377. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  6378. * indicates the all trigger based UL MU operations by the STA.
  6379. * 0 - UL MU operations are enabled by the STA.
  6380. * 1 - All triggered UL MU transmissions are suspended by the STA.
  6381. *
  6382. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  6383. * indicates the maximum number of space-time streams, NSTS, that
  6384. * the STA supports in transmission and is set to NSTS - 1.
  6385. *
  6386. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  6387. * combined with the UL MU Disable subfield and the recipient's setting
  6388. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  6389. * capabilities to determine which HE TB PPDUs are possible by the
  6390. * STA to transmit.
  6391. * 0 - UL MU data operations are enabled by the STA.
  6392. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  6393. * bit is not set, else UL MU Tx is suspended.
  6394. *
  6395. */
  6396. enum qca_wlan_vendor_attr_he_omi_tx {
  6397. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  6398. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  6399. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  6400. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  6401. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  6402. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  6403. /* keep last */
  6404. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST,
  6405. QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX =
  6406. QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1,
  6407. };
  6408. /* Attributes for data used by
  6409. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  6410. */
  6411. enum qca_wlan_vendor_attr_wifi_test_config {
  6412. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  6413. /* 8-bit unsigned value to configure the driver to enable/disable
  6414. * WMM feature. This attribute is used to configure testbed device.
  6415. * 1-enable, 0-disable
  6416. */
  6417. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  6418. /* 8-bit unsigned value to configure the driver to accept/reject
  6419. * the addba request from peer. This attribute is used to configure
  6420. * the testbed device.
  6421. * 1-accept addba, 0-reject addba
  6422. */
  6423. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  6424. /* 8-bit unsigned value to configure the driver to send or not to
  6425. * send the addba request to peer.
  6426. * This attribute is used to configure the testbed device.
  6427. * 1-send addba, 0-do not send addba
  6428. */
  6429. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  6430. /* 8-bit unsigned value to indicate the HE fragmentation support.
  6431. * Uses enum he_fragmentation_val values.
  6432. * This attribute is used to configure the testbed device to
  6433. * allow the advertised hardware capabilities to be downgraded
  6434. * for testing purposes.
  6435. */
  6436. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  6437. /* 8-bit unsigned value to indicate the HE MCS support.
  6438. * Uses enum he_mcs_config values.
  6439. * This attribute is used to configure the testbed device to
  6440. * allow the advertised hardware capabilities to be downgraded
  6441. * for testing purposes.
  6442. */
  6443. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  6444. /* 8-bit unsigned value to configure the driver to allow or not to
  6445. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  6446. * This attribute is used to configure the testbed device.
  6447. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  6448. */
  6449. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  6450. /* 8-bit unsigned value to configure the driver to add a
  6451. * new BA session or delete the existing BA session for
  6452. * given TID. ADDBA command uses the buffer size and tid
  6453. * configuration if user specifies the values else default
  6454. * value for buffer size is used for all tids if the tid
  6455. * also not specified. For DEL_BA command TID value is
  6456. * required to process the command.
  6457. * Uses enum qca_wlan_ba_session_config values.
  6458. * This attribute is used to configure the testbed device.
  6459. */
  6460. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  6461. /* 16-bit unsigned value to configure the buffer size in addba
  6462. * request and response frames.
  6463. * This attribute is used to configure the testbed device.
  6464. * The range of the value is 0 to 256.
  6465. */
  6466. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  6467. /* 8-bit unsigned value to configure the buffer size in addba
  6468. * request and response frames.
  6469. * This attribute is used to configure the testbed device.
  6470. */
  6471. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  6472. /* 8-bit unsigned value to configure the no ack policy.
  6473. * To configure no ack policy, access category value
  6474. * is required to process the command.
  6475. * This attribute is used to configure the testbed device.
  6476. * 1 - enable no ack, 0 - disable no ack
  6477. */
  6478. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  6479. /* 8-bit unsigned value to configure the AC for no ack policy
  6480. * This attribute is used to configure the testbed device.
  6481. * uses the enum qca_wlan_ac_type values
  6482. */
  6483. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  6484. /* 8-bit unsigned value to configure the HE LTF
  6485. * This attribute is used to configure the testbed device.
  6486. * Uses the enum qca_wlan_he_ltf_cfg values.
  6487. */
  6488. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  6489. /* 8-bit unsigned value to configure the tx beamformee.
  6490. * This attribute is used to configure the testbed device.
  6491. * 1 - enable, 0 - disable.
  6492. */
  6493. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  6494. /* 8-bit unsigned value to configure the tx beamformee number of
  6495. * space-time streams.
  6496. * This attribute is used to configure the testbed device.
  6497. * The range of the value is 0 to 8
  6498. */
  6499. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  6500. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  6501. * This attribute is used to configure the testbed device.
  6502. * Uses the enum qca_wlan_ac_type values.
  6503. */
  6504. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  6505. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  6506. * To configure MU EDCA AIFSN value, MU EDCA access category value
  6507. * is required to process the command.
  6508. * This attribute is used to configure the testbed device.
  6509. */
  6510. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  6511. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  6512. * given AC.
  6513. * To configure MU EDCA ECW min value, MU EDCA access category value
  6514. * is required to process the command.
  6515. * This attribute is used to configure the testbed device.
  6516. */
  6517. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  6518. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  6519. * given AC.
  6520. * To configure MU EDCA ECW max value, MU EDCA access category value
  6521. * is required to process the command.
  6522. * This attribute is used to configure the testbed device.
  6523. */
  6524. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  6525. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  6526. * To configure MU EDCA timer value, MU EDCA access category value
  6527. * is required to process the command.
  6528. * This attribute is used to configure the testbed device.
  6529. */
  6530. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  6531. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  6532. * duration.
  6533. * This attribute is used to configure the testbed device.
  6534. * Uses the enum qca_wlan_he_mac_padding_dur values.
  6535. */
  6536. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  6537. /* 8-bit unsigned value to override the MU EDCA params to defaults
  6538. * regardless of the AP beacon MU EDCA params. If it is enabled use
  6539. * the default values else use the MU EDCA params from AP beacon.
  6540. * This attribute is used to configure the testbed device.
  6541. * 1 - enable override, 0 - disable.
  6542. */
  6543. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  6544. /* 8-bit unsigned value to configure the support for receiving
  6545. * an MPDU that contains an operating mode control subfield.
  6546. * This attribute is used to configure the testbed device.
  6547. * 1-enable, 0-disable.
  6548. */
  6549. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  6550. /* Nested attribute values required to setup the TWT session.
  6551. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  6552. * information to set up the session. It contains broadcast flags,
  6553. * set_up flags, trigger value, flow type, flow ID, wake interval
  6554. * exponent, protection, target wake time, wake duration, wake interval
  6555. * mantissa. These nested attributes are used to setup a host triggered
  6556. * TWT session.
  6557. */
  6558. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  6559. /* This nested attribute is used to terminate the current TWT session.
  6560. * It does not currently carry any attributes.
  6561. */
  6562. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  6563. /* This nested attribute is used to suspend the current TWT session.
  6564. * It does not currently carry any attributes.
  6565. */
  6566. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  6567. /* Nested attribute values to indicate the request for resume.
  6568. * This attribute is used to resume the TWT session.
  6569. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  6570. * parameters required to resume the TWT session.
  6571. */
  6572. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  6573. /* 8-bit unsigned value to set the HE operating mode control
  6574. * (OM CTRL) Channel Width subfield.
  6575. * The Channel Width subfield indicates the operating channel width
  6576. * supported by the STA for both reception and transmission.
  6577. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  6578. * This setting is cleared with the
  6579. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  6580. * flag attribute to reset defaults.
  6581. * This attribute is used to configure the testbed device.
  6582. */
  6583. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  6584. /* 8-bit unsigned value to configure the number of spatial
  6585. * streams in HE operating mode control field.
  6586. * This setting is cleared with the
  6587. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  6588. * flag attribute to reset defaults.
  6589. * This attribute is used to configure the testbed device.
  6590. */
  6591. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  6592. /* Flag attribute to configure the UL MU disable bit in
  6593. * HE operating mode control field.
  6594. * This setting is cleared with the
  6595. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  6596. * flag attribute to reset defaults.
  6597. * This attribute is used to configure the testbed device.
  6598. */
  6599. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  6600. /* Flag attribute to clear the previously set HE operating mode
  6601. * control field configuration.
  6602. * This attribute is used to configure the testbed device to reset
  6603. * defaults to clear any previously set HE operating mode control
  6604. * field configuration.
  6605. */
  6606. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  6607. /* 8-bit unsigned value to configure HE single user PPDU
  6608. * transmission. By default this setting is disabled and it
  6609. * is disabled in the reset defaults of the device configuration.
  6610. * This attribute is used to configure the testbed device.
  6611. * 1-enable, 0-disable
  6612. */
  6613. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  6614. /* 8-bit unsigned value to configure action frame transmission
  6615. * in HE trigger based PPDU transmission.
  6616. * By default this setting is disabled and it is disabled in
  6617. * the reset defaults of the device configuration.
  6618. * This attribute is used to configure the testbed device.
  6619. * 1-enable, 0-disable
  6620. */
  6621. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  6622. /* Nested attribute to indicate HE operating mode control field
  6623. * transmission. It contains operating mode control field Nss,
  6624. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  6625. * These nested attributes are used to send HE operating mode control
  6626. * with configured values.
  6627. * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes.
  6628. * This attribute is used to configure the testbed device.
  6629. */
  6630. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33,
  6631. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  6632. * support for the reception of a frame that carries an HE variant
  6633. * HT Control field.
  6634. * This attribute is used to configure the testbed device.
  6635. * 1-enable, 0-disable
  6636. */
  6637. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  6638. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  6639. * This attribute is used to configure the testbed device.
  6640. * 1-enable, 0-disable
  6641. */
  6642. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  6643. /* 8-bit unsigned value to configure HE testbed defaults.
  6644. * This attribute is used to configure the testbed device.
  6645. * 1-set the device HE capabilities to testbed defaults.
  6646. * 0-reset the device HE capabilities to supported config.
  6647. */
  6648. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  6649. /* 8-bit unsigned value to configure twt request support.
  6650. * This attribute is used to configure the testbed device.
  6651. * 1-enable, 0-disable.
  6652. */
  6653. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  6654. /* keep last */
  6655. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  6656. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  6657. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  6658. };
  6659. /**
  6660. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  6661. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  6662. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  6663. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  6664. *
  6665. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  6666. * Disable (flag attribute not present) - Individual TWT
  6667. * Enable (flag attribute present) - Broadcast TWT.
  6668. * Individual means the session is between the STA and the AP.
  6669. * This session is established using a separate negotiation between
  6670. * STA and AP.
  6671. * Broadcast means the session is across multiple STAs and an AP. The
  6672. * configuration parameters are announced in Beacon frames by the AP.
  6673. *
  6674. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  6675. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  6676. * specify the TWT request type
  6677. *
  6678. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  6679. * Enable (flag attribute present) - TWT with trigger support.
  6680. * Disable (flag attribute not present) - TWT without trigger support.
  6681. * Trigger means the AP will send the trigger frame to allow STA to send data.
  6682. * Without trigger, the STA will wait for the MU EDCA timer before
  6683. * transmitting the data.
  6684. *
  6685. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  6686. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  6687. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  6688. * NULL frame to AP.
  6689. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  6690. *
  6691. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  6692. * Flow ID is the unique identifier for each TWT session.
  6693. * Currently this is not required and dialog ID will be set to zero.
  6694. *
  6695. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  6696. * This attribute (exp) is used along with the mantissa to derive the
  6697. * wake interval using the following formula:
  6698. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  6699. * Wake interval is the interval between 2 successive SP.
  6700. *
  6701. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  6702. * Enable (flag attribute present) - Protection required.
  6703. * Disable (flag attribute not present) - Protection not required.
  6704. * If protection is enabled, then the AP will use protection
  6705. * mechanism using RTS/CTS to self to reserve the airtime.
  6706. *
  6707. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  6708. * This attribute is used as the SP offset which is the offset from
  6709. * TSF after which the wake happens. The units are in microseconds. If
  6710. * this attribute is not provided, then the value will be set to zero.
  6711. *
  6712. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  6713. * This is the duration of the service period. The units are in TU.
  6714. *
  6715. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  6716. * This attribute is used to configure wake interval mantissa.
  6717. * The units are in TU.
  6718. */
  6719. enum qca_wlan_vendor_attr_twt_setup {
  6720. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  6721. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  6722. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  6723. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  6724. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  6725. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  6726. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  6727. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  6728. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  6729. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  6730. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  6731. /* keep last */
  6732. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  6733. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  6734. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  6735. };
  6736. /**
  6737. * enum qca_wlan_vendor_attr_twt_resume: Represents attributes for
  6738. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  6739. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  6740. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  6741. *
  6742. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  6743. * This attribute is used as the SP offset which is the offset from
  6744. * TSF after which the wake happens. The units are in microseconds.
  6745. * If this attribute is not provided, then the value will be set to
  6746. * zero.
  6747. *
  6748. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  6749. * This attribute represents the next TWT subfield size.
  6750. */
  6751. enum qca_wlan_vendor_attr_twt_resume {
  6752. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  6753. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  6754. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  6755. /* keep last */
  6756. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  6757. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  6758. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  6759. };
  6760. /**
  6761. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  6762. * Represents the setup type being requested for TWT.
  6763. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  6764. * parameters but relying on AP to fill the parameters during the negotiation.
  6765. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  6766. * values which the AP may accept or AP may provide alternative parameters
  6767. * which the STA may accept.
  6768. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  6769. * alternate parameters than the requested ones.
  6770. */
  6771. enum qca_wlan_vendor_twt_setup_req_type {
  6772. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  6773. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  6774. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  6775. };
  6776. /**
  6777. * enum qca_wlan_throughput_level - Current throughput level
  6778. *
  6779. * Indicates the current level of throughput calculated by driver. The driver
  6780. * may choose different thresholds to decide whether the throughput level is
  6781. * low or medium or high based on variety of parameters like physical link
  6782. * capacity of current connection, number of pakcets being dispatched per
  6783. * second etc. The throughput level events might not be consistent with the
  6784. * actual current throughput value being observed.
  6785. *
  6786. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  6787. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  6788. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  6789. */
  6790. enum qca_wlan_throughput_level {
  6791. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  6792. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  6793. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  6794. };
  6795. /**
  6796. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  6797. * report throughput changes from driver to user space. enum values are used
  6798. * for NL attributes sent with
  6799. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  6800. */
  6801. enum qca_wlan_vendor_attr_throughput_change {
  6802. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  6803. /*
  6804. * Indicates the direction of throughput in which the change is being
  6805. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  6806. */
  6807. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  6808. /*
  6809. * Indicates the newly observed throughput level.
  6810. * qca_wlan_throughput_level describes the possible range of values.
  6811. * u8 attribute.
  6812. */
  6813. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  6814. /*
  6815. * Indicates the driver's guidance on the new value to be set to
  6816. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  6817. * may optionally include this attribute.
  6818. */
  6819. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  6820. /*
  6821. * Indicates the driver's guidance on the new value to be set to
  6822. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  6823. * values are from -31 to 31. Driver may optionally include this
  6824. * attribute.
  6825. */
  6826. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  6827. /*
  6828. * Indicates the driver's guidance on the new value to be set to
  6829. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  6830. * optionally include this attribute.
  6831. */
  6832. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  6833. /* keep last */
  6834. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  6835. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  6836. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  6837. };
  6838. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  6839. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  6840. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  6841. */
  6842. enum qca_wlan_nan_ext_subcmd_type {
  6843. /* Subcmd of type NAN Enable Request */
  6844. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  6845. /* Subcmd of type NAN Disable Request */
  6846. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  6847. };
  6848. /**
  6849. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  6850. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  6851. */
  6852. enum qca_wlan_vendor_attr_nan_params {
  6853. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  6854. /* Carries NAN command for firmware component. Every vendor command
  6855. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  6856. * payload containing the NAN command. NLA_BINARY attribute.
  6857. */
  6858. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  6859. /* Indicates the type of NAN command sent with
  6860. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  6861. * describes the possible range of values. This attribute is mandatory
  6862. * if the command being issued is either
  6863. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  6864. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  6865. */
  6866. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  6867. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  6868. * band. This attribute is mandatory when command type is
  6869. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  6870. */
  6871. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  6872. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  6873. * band. This attribute is optional and should be included when command
  6874. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  6875. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  6876. */
  6877. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  6878. /* keep last */
  6879. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  6880. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  6881. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  6882. };
  6883. /**
  6884. * enum qca_coex_config_profiles - This enum defines different types of
  6885. * traffic streams that can be prioritized one over the other during coex
  6886. * scenarios.
  6887. * The types defined in this enum are categorized in the below manner.
  6888. * 0 - 31 values corresponds to WLAN
  6889. * 32 - 63 values corresponds to BT
  6890. * 64 - 95 values corresponds to Zigbee
  6891. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  6892. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  6893. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  6894. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  6895. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  6896. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  6897. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  6898. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  6899. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  6900. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  6901. * @QCA_BT_A2DP: Prioritize BT A2DP
  6902. * @QCA_BT_BLE: Prioritize BT BLE
  6903. * @QCA_BT_SCO: Prioritize BT SCO
  6904. * @QCA_ZB_LOW: Prioritize Zigbee Low
  6905. * @QCA_ZB_HIGH: Prioritize Zigbee High
  6906. */
  6907. enum qca_coex_config_profiles {
  6908. /* 0 - 31 corresponds to WLAN */
  6909. QCA_WIFI_STA_DISCOVERY = 0,
  6910. QCA_WIFI_STA_CONNECTION = 1,
  6911. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  6912. QCA_WIFI_STA_DATA = 3,
  6913. QCA_WIFI_STA_ALL = 4,
  6914. QCA_WIFI_SAP_DISCOVERY = 5,
  6915. QCA_WIFI_SAP_CONNECTION = 6,
  6916. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  6917. QCA_WIFI_SAP_DATA = 8,
  6918. QCA_WIFI_SAP_ALL = 9,
  6919. QCA_WIFI_CASE_MAX = 31,
  6920. /* 32 - 63 corresponds to BT */
  6921. QCA_BT_A2DP = 32,
  6922. QCA_BT_BLE = 33,
  6923. QCA_BT_SCO = 34,
  6924. QCA_BT_CASE_MAX = 63,
  6925. /* 64 - 95 corresponds to Zigbee */
  6926. QCA_ZB_LOW = 64,
  6927. QCA_ZB_HIGH = 65,
  6928. QCA_ZB_CASE_MAX = 95,
  6929. /* 0xff is default value if the u8 profile value is not set. */
  6930. QCA_PROFILE_DEFAULT_VALUE = 255
  6931. };
  6932. /**
  6933. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  6934. * This enum defines the valid set of values of coex configuration types. These
  6935. * values may used by attribute
  6936. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  6937. *
  6938. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  6939. * weights to default values.
  6940. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  6941. * weights with configurability value.
  6942. */
  6943. enum qca_vendor_attr_coex_config_types {
  6944. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  6945. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  6946. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  6947. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  6948. };
  6949. /**
  6950. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  6951. * attributes
  6952. * Attributes for data used by
  6953. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  6954. *
  6955. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  6956. * Indicate config type.
  6957. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  6958. *
  6959. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  6960. * Indicate the Priority 1 profiles.
  6961. * the profiles are 8-bit values from enum qca_coex_config_profiles
  6962. * In same priority level, maximum to 4 profiles can be set here.
  6963. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  6964. * Indicate the Priority 2 profiles.
  6965. * the profiles are 8-bit values from enum qca_coex_config_profiles
  6966. * In same priority level, maximum to 4 profiles can be set here.
  6967. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  6968. * Indicate the Priority 3 profiles.
  6969. * the profiles are 8-bit values from enum qca_coex_config_profiles
  6970. * In same priority level, maximum to 4 profiles can be set here.
  6971. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  6972. * Indicate the Priority 4 profiles.
  6973. * the profiles are 8-bit values from enum qca_coex_config_profiles
  6974. * In same priority level, maximum to 4 profiles can be set here.
  6975. * NOTE:
  6976. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  6977. * arrangement:
  6978. * 1: In the same u32 attribute(priority x), the profiles enum values own
  6979. * same priority level.
  6980. * 2: 0xff is default value if the u8 profile value is not set.
  6981. * 3: max to 4 rules/profiles in same priority level.
  6982. * 4: max to 4 priority level (priority 1 - priority 4)
  6983. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  6984. * hybrid rules not support.
  6985. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  6986. * remain blank to reset all parameters.
  6987. * For example:
  6988. *
  6989. * If the attributes as follow:
  6990. * priority 1:
  6991. * ------------------------------------
  6992. * | 0xff | 0 | 1 | 2 |
  6993. * ------------------------------------
  6994. * priority 2:
  6995. * -------------------------------------
  6996. * | 0xff | 0xff | 0xff | 32 |
  6997. * -------------------------------------
  6998. * priority 3:
  6999. * -------------------------------------
  7000. * | 0xff | 0xff | 0xff | 65 |
  7001. * -------------------------------------
  7002. * then it means:
  7003. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  7004. * owns same priority level.
  7005. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  7006. * has priority over BT_A2DP and ZB_HIGH.
  7007. * 3: BT_A2DP has priority over ZB_HIGH.
  7008. */
  7009. enum qca_vendor_attr_coex_config_three_way {
  7010. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  7011. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  7012. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  7013. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  7014. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  7015. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  7016. /* Keep last */
  7017. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  7018. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  7019. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  7020. };
  7021. /**
  7022. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  7023. * This enum defines the valid set of values of peer stats cache types. These
  7024. * values are used by attribute
  7025. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  7026. *
  7027. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  7028. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  7029. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  7030. * statistics
  7031. */
  7032. enum qca_vendor_attr_peer_stats_cache_type {
  7033. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  7034. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  7035. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  7036. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  7037. };
  7038. /**
  7039. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  7040. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  7041. * Attributes are required to flush peer rate statistics from driver to
  7042. * user application.
  7043. *
  7044. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  7045. * Indicate peer stats cache type.
  7046. * The statistics types are 32-bit values from
  7047. * qca_vendor_attr_peer_stats_cache_type
  7048. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  7049. * of size 6, representing peer mac address.
  7050. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  7051. * containing buffer of statistics to send event to application layer entity.
  7052. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  7053. * representing cookie for peer unique session.
  7054. */
  7055. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  7056. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  7057. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  7058. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  7059. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  7060. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  7061. /* Keep last */
  7062. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  7063. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  7064. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  7065. };
  7066. /**
  7067. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  7068. * this enum defines all the possible state of zigbee, which can be
  7069. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  7070. *
  7071. * @ZIGBEE_IDLE: zigbee in idle state
  7072. * @ZIGBEE_FORM_NETWORK: zibee forming network
  7073. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  7074. * @ZIGBEE_JOIN: zigbee joining network
  7075. * @ZIGBEE_NETWORK_UP: zigbee network is up
  7076. * @ZIGBEE_HMI: zigbee in HMI mode
  7077. */
  7078. enum qca_mpta_helper_attr_zigbee_state {
  7079. ZIGBEE_IDLE = 0,
  7080. ZIGBEE_FORM_NETWORK = 1,
  7081. ZIGBEE_WAIT_JOIN = 2,
  7082. ZIGBEE_JOIN = 3,
  7083. ZIGBEE_NETWORK_UP = 4,
  7084. ZIGBEE_HMI = 5,
  7085. };
  7086. /**
  7087. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  7088. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  7089. */
  7090. enum qca_mpta_helper_vendor_attr {
  7091. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  7092. /* Optional attribute used to update zigbee state.
  7093. * enum qca_mpta_helper_attr_zigbee_state.
  7094. * NLA_U32 attribute.
  7095. */
  7096. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  7097. /* Optional attribute used to configure wlan duration for Shape-OCS
  7098. * during interrupt.
  7099. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  7100. * Value range 0 ~ 300 (ms).
  7101. * NLA_U32 attribute.
  7102. */
  7103. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  7104. /* Optional attribute used to configure non wlan duration for Shape-OCS
  7105. * during interrupt.
  7106. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  7107. * Value range 0 ~ 300 (ms).
  7108. * NLA_U32 attribute.
  7109. */
  7110. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  7111. /* Optional attribute used to configure wlan duration for Shape-OCS
  7112. * monitor period.
  7113. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  7114. * Value range 0 ~ 300 (ms)
  7115. * NLA_U32 attribute
  7116. */
  7117. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  7118. /* Optional attribute used to configure non wlan duration for Shape-OCS
  7119. * monitor period.
  7120. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  7121. * Value range 0 ~ 300 (ms)
  7122. * NLA_U32 attribute
  7123. */
  7124. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  7125. /* Optional attribute used to configure ocs interrupt duration.
  7126. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  7127. * Value range 1000 ~ 20000 (ms)
  7128. * NLA_U32 attribute
  7129. */
  7130. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  7131. /* Optional attribute used to configure ocs monitor duration.
  7132. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  7133. * Value range 1000 ~ 20000 (ms)
  7134. * NLA_U32 attribute
  7135. */
  7136. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  7137. /* Optional attribute used to notify wlan FW current zigbee channel.
  7138. * Value range 11 ~ 26
  7139. * NLA_U32 attribute
  7140. */
  7141. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  7142. /* Optional attribute used to configure wlan mute duration.
  7143. * Value range 0 ~ 400 (ms)
  7144. * NLA_U32 attribute
  7145. */
  7146. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  7147. /* keep last */
  7148. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  7149. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  7150. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  7151. };
  7152. /**
  7153. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  7154. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  7155. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  7156. *
  7157. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  7158. * to request the driver to start reporting Beacon frames.
  7159. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  7160. * to request the driver to stop reporting Beacon frames.
  7161. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  7162. * userspace to report received Beacon frames.
  7163. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  7164. * to indicate that the driver is going to pause reporting Beacon frames.
  7165. */
  7166. enum qca_wlan_vendor_beacon_reporting_op_types {
  7167. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  7168. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  7169. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  7170. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  7171. };
  7172. /**
  7173. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  7174. * types of reasons for which the driver is pausing reporting Beacon frames.
  7175. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  7176. *
  7177. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  7178. * reasons.
  7179. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  7180. * driver/firmware is starting a scan.
  7181. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  7182. * driver/firmware disconnects from the ESS and indicates the disconnection to
  7183. * userspace (non-seamless roaming case). This reason code will be used by the
  7184. * driver/firmware to indicate stopping of beacon report events. Userspace
  7185. * will need to start beacon reporting again (if desired) by sending vendor
  7186. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  7187. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  7188. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  7189. * completed.
  7190. */
  7191. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  7192. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  7193. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  7194. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  7195. };
  7196. /*
  7197. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  7198. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  7199. */
  7200. enum qca_wlan_vendor_attr_beacon_reporting_params {
  7201. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  7202. /* Specifies the type of operation that the vendor command/event is
  7203. * intended for. Possible values for this attribute are defined in
  7204. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  7205. */
  7206. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  7207. /* Optionally set by userspace to request the driver to report Beacon
  7208. * frames using asynchronous vendor events when the
  7209. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  7210. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  7211. * If this flag is not set, the driver will only update Beacon frames
  7212. * in cfg80211 scan cache but not send any vendor events.
  7213. */
  7214. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  7215. /* Optionally used by userspace to request the driver/firmware to
  7216. * report Beacon frames periodically when the
  7217. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  7218. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  7219. * u32 attribute, indicates the period of Beacon frames to be reported
  7220. * and in the units of beacon interval.
  7221. * If this attribute is missing in the command, then the default value
  7222. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  7223. * Zero is an invalid value.
  7224. * If a valid value is received for this attribute, the driver will
  7225. * update the cfg80211 scan cache periodically as per the value
  7226. * received in this attribute in addition to updating the cfg80211 scan
  7227. * cache when there is significant change in Beacon frame IEs.
  7228. */
  7229. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  7230. /* Used by the driver to encapsulate the SSID when the
  7231. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  7232. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  7233. * u8 array with a maximum size of 32.
  7234. *
  7235. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  7236. * will be taken from the SSID element of the received Beacon frame.
  7237. *
  7238. * When generating beacon report from Multiple BSSID Beacon frame and
  7239. * if the BSSID of the current connected BSS matches the BSSID of the
  7240. * transmitting BSS, the SSID will be taken from the SSID element of
  7241. * the received Beacon frame.
  7242. *
  7243. * When generating beacon report from Multiple BSSID Beacon frame and
  7244. * if the BSSID of the current connected BSS matches the BSSID of one
  7245. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  7246. * field included in the nontransmitted BSS profile whose derived BSSI
  7247. * is same as the BSSID of the current connected BSS. When there is no
  7248. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  7249. * of current connected* BSS, this attribute will not be present.
  7250. */
  7251. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  7252. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  7253. * is currently connected to when the
  7254. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  7255. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  7256. * fixed size of 6 bytes.
  7257. *
  7258. * When generating beacon report from a Multiple BSSID beacon and the
  7259. * current connected BSSID matches one of the nontransmitted BSSIDs in
  7260. * a Multiple BSSID set, this BSSID will be that particular
  7261. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  7262. * transmitting address of the Beacon frame).
  7263. */
  7264. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  7265. /* Used by the driver to encapsulate the frequency in MHz on which
  7266. * the Beacon frame was received when the
  7267. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  7268. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  7269. * u32 attribute.
  7270. */
  7271. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  7272. /* Used by the driver to encapsulate the Beacon interval
  7273. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  7274. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  7275. * u16 attribute. The value will be copied from the Beacon frame and
  7276. * the units are TUs.
  7277. */
  7278. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  7279. /* Used by the driver to encapsulate the Timestamp field from the
  7280. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  7281. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  7282. * u64 attribute.
  7283. */
  7284. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  7285. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  7286. * Beacon frame is received in the driver when the
  7287. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  7288. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  7289. * the units of nanoseconds. This value is expected to have accuracy of
  7290. * about 10 ms.
  7291. */
  7292. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  7293. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  7294. * which this event is generated when the
  7295. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  7296. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  7297. */
  7298. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  7299. /* Used by the driver to specify the reason for the driver/firmware to
  7300. * pause sending beacons to userspace when the
  7301. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  7302. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  7303. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  7304. * attribute.
  7305. */
  7306. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  7307. /* Used by the driver to specify whether the driver will automatically
  7308. * resume reporting beacon events to userspace later (for example after
  7309. * the ongoing off-channel activity is completed etc.) when the
  7310. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  7311. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  7312. */
  7313. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  7314. /* Optionally set by userspace to request the driver not to resume
  7315. * beacon reporting after a pause is completed, when the
  7316. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  7317. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  7318. * If this flag is set, the driver will not resume beacon reporting
  7319. * after any pause in beacon reporting is completed. Userspace has to
  7320. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  7321. * to initiate beacon reporting again. If this flag is set in the recent
  7322. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  7323. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  7324. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  7325. * set by the driver. Setting this flag until and unless there is a
  7326. * specific need is not recommended as there is a chance of some beacons
  7327. * received after pause command and next start command being not
  7328. * reported.
  7329. */
  7330. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  7331. /* Keep last */
  7332. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  7333. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  7334. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  7335. };
  7336. /*
  7337. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  7338. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  7339. *
  7340. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: The binary blob for the vendor
  7341. * command QCA_NL80211_VENDOR_SUBCMD_OEM_DATA are carried through this
  7342. * attribute.
  7343. * NLA_BINARY attribute, the max size is 1024 bytes.
  7344. */
  7345. enum qca_wlan_vendor_attr_oem_data_params {
  7346. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  7347. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  7348. /* keep last */
  7349. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  7350. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  7351. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  7352. };
  7353. #endif