qca_vendor.h 350 KB

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