qca_vendor.h 721 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: declares vendor commands interfacing with linux kernel
  21. */
  22. #ifndef _WLAN_QCA_VENDOR_H_
  23. #define _WLAN_QCA_VENDOR_H_
  24. /* Vendor id to be used in vendor specific command and events
  25. * to user space.
  26. * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
  27. * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
  28. * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
  29. * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
  30. */
  31. #define QCA_NL80211_VENDOR_ID 0x001374
  32. #ifndef BIT
  33. #define BIT(x) (1U << (x))
  34. #endif
  35. /**
  36. * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
  37. *
  38. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
  39. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
  40. * Sub commands 2 to 8 are not used
  41. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
  42. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
  43. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
  44. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  45. * NAN Request/Response and NAN Indication messages. These messages are
  46. * interpreted between the framework and the firmware component. While
  47. * sending the command from userspace to the driver, payload is not
  48. * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
  49. * is used when receiving vendor events in userspace from the driver.
  50. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
  51. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
  52. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
  53. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
  54. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
  55. * results
  56. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
  57. * results
  58. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
  59. * results
  60. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
  61. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
  62. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
  63. * channels
  64. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
  65. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
  66. * results
  67. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
  68. * available. Used when report_threshold is reached in scan cache.
  69. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
  70. * result. Used to report scan results when each probe rsp. is received,
  71. * if report_events enabled in wifi_scan_cmd_params.
  72. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
  73. * Indicates progress of scanning state-machine.
  74. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
  75. * ap found
  76. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
  77. * bssid
  78. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
  79. * hotlist bssid
  80. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
  81. * change
  82. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
  83. * significant change
  84. * ap found
  85. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
  86. * significant change
  87. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
  88. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
  89. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
  90. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
  91. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  92. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  93. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  94. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  95. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  96. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  97. * roaming and auth information.
  98. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  99. *
  100. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  101. * invoke the ACS function in device and pass selected channels to
  102. * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
  103. *
  104. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  105. * driver.
  106. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  107. * started CAC on DFS channel
  108. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  109. * completed the CAC check on DFS channel
  110. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  111. * check was aborted by the driver
  112. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  113. * driver completed NOP
  114. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  115. * driver detected radar signal on the current operating channel
  116. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  117. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to
  118. * configure various wiphy or interface level configurations. Attributes
  119. * are defined in enum qca_wlan_vendor_attr_config. Userspace can send one
  120. * or more configuration attributes with a single command. The driver
  121. * accepts the command only if all the configurations are known, otherwise
  122. * it rejects the command. The driver returns success only if processing of
  123. * all the configurations succeeds. The driver continues to process all the
  124. * configurations even if processing of some configurations failed and
  125. * returns the last error occurred while processing the failed
  126. * configurations.
  127. *
  128. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to
  129. * get the current values of the various wiphy or interface level
  130. * configurations. Attributes are defined in enum
  131. * qca_wlan_vendor_attr_config. Userspace needs to specify the
  132. * configuration attributes for which it wants to get the values in the
  133. * command, there is no significance for the value sent in the attribute
  134. * unless explicitly specified in the corresponding configuration
  135. * attribute documentation. The driver accepts the command only if all the
  136. * configurations are known, otherwise it rejects the command. The driver
  137. * returns success only if fetching of all configuration values succeeds
  138. * and indicates the configuration values in corresponding attributes in
  139. * the response. The driver continues to process all the configurations
  140. * even if processing of some configurations failed and returns the last
  141. * error occurred while processing the failed configurations.
  142. *
  143. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  144. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  145. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  146. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  147. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  148. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  149. * extscan reset ssid hotlist
  150. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  151. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  152. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  153. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  154. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  155. * reset passpoint list
  156. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  157. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  158. * passpoint network found
  159. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  160. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  161. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  162. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  163. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  164. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  165. list
  166. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  167. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
  168. * to the host driver. This command sets the band through either
  169. * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
  170. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
  171. * refers enum qca_set_band as unsigned integer values and
  172. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
  173. * values. Also, the acceptable values for
  174. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
  175. * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
  176. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
  177. * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
  178. * implementations configure using both the attributes, the configurations
  179. * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
  180. * precedence.
  181. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  182. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  183. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  184. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  185. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  186. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  187. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  188. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  189. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  190. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  191. * start the P2P Listen Offload function in device and pass the listen
  192. * channel, period, interval, count, number of device types, device
  193. * types and vendor information elements to device driver and firmware.
  194. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  195. * indicate stop request/response of the P2P Listen Offload function in
  196. * device. As an event, it indicates either the feature stopped after it
  197. * was already running or feature has actually failed to start.
  198. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  199. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  200. * beaconing, this sub command provides the driver, the frequencies on the
  201. * 5 GHz to check for any radar activity. Driver selects one channel from
  202. * this priority list provided through
  203. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  204. * to check for radar activity on it. If no radar activity is detected
  205. * during the channel availability check period, driver internally switches
  206. * to the selected frequency of operation. If the frequency is zero, driver
  207. * internally selects a channel. The status of this conditional switch is
  208. * indicated through an event using the same sub command through
  209. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  210. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  211. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  212. * indication period and threshold for MAC layer counters.
  213. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  214. * in the host driver. The different TDLS configurations are defined
  215. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  216. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  217. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  218. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  219. * require methods to set SAR limits on TX power of WLAN/WWAN.
  220. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  221. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  222. * configuration of vendor ACS.
  223. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  224. * requisite information leading to a power save failure. The information
  225. * carried as part of this event is represented by the
  226. * enum qca_attr_chip_power_save_failure attributes.
  227. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  228. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  229. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  230. * statistics are represented by the enum qca_attr_nud_stats_get
  231. * attributes.
  232. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  233. * the BSS transition status, whether accept or reject, for a list of
  234. * candidate BSSIDs provided by the userspace. This uses the vendor
  235. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  236. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  237. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  238. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  239. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  240. * the driver shall specify array of
  241. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  242. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  243. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  244. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  245. * specific QCA module. The trace levels are represented by
  246. * enum qca_attr_trace_level attributes.
  247. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  248. * Protocol antenna limit in different modes. See enum
  249. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  250. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  251. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  252. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  253. * identifying the operation in success case. In failure cases an
  254. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  255. * describing the reason for the failure is returned.
  256. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  257. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  258. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  259. * be stopped.
  260. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  261. * specific interface. This can be used to modify some of the low level
  262. * scan parameters (off channel dwell time, home channel time) in the
  263. * driver/firmware. These parameters are maintained within the host
  264. * driver.
  265. * This command is valid only when the interface is in the connected
  266. * state.
  267. * These scan parameters shall be reset by the driver/firmware once
  268. * disconnected. The attributes used with this command are defined in
  269. * enum qca_wlan_vendor_attr_active_tos.
  270. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  271. * driver has detected an internal failure. This event carries the
  272. * information indicating the reason that triggered this detection. The
  273. * attributes for this command are defined in
  274. * enum qca_wlan_vendor_attr_hang.
  275. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  276. * of spectral parameters used. The spectral scan parameters are specified
  277. * by enum qca_wlan_vendor_attr_spectral_scan.
  278. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  279. * for spectral scan functionality. The debug stats are specified by
  280. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  281. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  282. * scan system capabilities. The capabilities are specified
  283. * by enum qca_wlan_vendor_attr_spectral_cap.
  284. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  285. * status of spectral scan. The status values are specified
  286. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  287. * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
  288. * peer pending packets. Specify the peer MAC address in
  289. * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
  290. * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
  291. * in enum qca_wlan_vendor_attr_flush_pending.
  292. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  293. * RF Operating Parameter (RROP) information. The attributes for this
  294. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  295. * intended for use by external Auto Channel Selection applications.
  296. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  297. * (SAR) power limits. This is a companion to the command
  298. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  299. * settings currently in use. The attributes returned by this command are
  300. * defined by enum qca_vendor_attr_sar_limits.
  301. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  302. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  303. * This works both as a query (user space asks the current mode) or event
  304. * interface (driver advertizing the current mode to the user space).
  305. * Driver does not trigger this event for temporary hardware mode changes.
  306. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  307. * channel change etc ) are updated with this event. Attributes for this
  308. * interface are defined in enum qca_wlan_vendor_attr_mac.
  309. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  310. * per peer per TID. Attributes for this command are define in
  311. * enum qca_wlan_set_qdepth_thresh_attr
  312. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
  313. * guide for WLAN driver. Request to suspend of driver and FW if the
  314. * temperature is higher than the suspend threshold; resume action is
  315. * requested to driver if the temperature is lower than the resume
  316. * threshold. In user poll mode, request temperature data by user. For test
  317. * purpose, getting thermal shutdown configuration parameters is needed.
  318. * Attributes for this interface are defined in
  319. * enum qca_wlan_vendor_attr_thermal_cmd.
  320. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
  321. * driver. Thermal temperature and indication of resume completion are
  322. * reported as thermal events. The attributes for this command are defined
  323. * in enum qca_wlan_vendor_attr_thermal_event.
  324. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  325. * test configuration. Attributes for this command are defined in
  326. * enum qca_wlan_vendor_attr_wifi_test_config.
  327. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  328. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  329. * carried a payload which was a binary blob of data. The command was not
  330. * extendable to send more information. The newer version carries the
  331. * legacy blob encapsulated within an attribute and can be extended with
  332. * additional vendor attributes that can enhance the NAN command
  333. * interface.
  334. * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
  335. * configure parameters per peer to capture Channel Frequency Response
  336. * (CFR) and enable Periodic CFR capture. The attributes for this command
  337. * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
  338. * can also be used to send CFR data from the driver to userspace when
  339. * netlink events are used to send CFR data.
  340. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  341. * The returned firmware state is specified in the attribute
  342. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  343. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  344. * is used by host driver to flush per-peer cached statistics to user space
  345. * application. This interface is used as an event from host driver to
  346. * user space application. Attributes for this event are specified in
  347. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  348. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  349. * sent as event from host driver.
  350. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  351. * improve the success rate of Zigbee joining network.
  352. * Due to PTA master limitation, zigbee joining network success rate is
  353. * low while wlan is working. Wlan host driver need to configure some
  354. * parameters including Zigbee state and specific WLAN periods to enhance
  355. * PTA master. All this parameters are delivered by the NetLink attributes
  356. * defined in "enum qca_mpta_helper_vendor_attr".
  357. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  358. * implement Beacon frame reporting feature.
  359. *
  360. * Userspace can request the driver/firmware to periodically report
  361. * received Beacon frames whose BSSID is same as the current connected
  362. * BSS's MAC address.
  363. *
  364. * In case the STA seamlessly (without sending disconnect indication to
  365. * userspace) roams to a different BSS, Beacon frame reporting will be
  366. * automatically enabled for the Beacon frames whose BSSID is same as the
  367. * MAC address of the new BSS. Beacon reporting will be stopped when the
  368. * STA is disconnected (when the disconnect indication is sent to
  369. * userspace) and need to be explicitly enabled by userspace for next
  370. * connection.
  371. *
  372. * When a Beacon frame matching configured conditions is received, and if
  373. * userspace has requested to send asynchronous beacon reports, the
  374. * driver/firmware will encapsulate the details of the Beacon frame in an
  375. * event and send it to userspace along with updating the BSS information
  376. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  377. * scan cache with the information from the received Beacon frame but
  378. * will not send any active report to userspace.
  379. *
  380. * The userspace can request the driver/firmware to stop reporting Beacon
  381. * frames. If the driver/firmware is not able to receive Beacon frames
  382. * due to other Wi-Fi operations such as off-channel activities, etc.,
  383. * the driver/firmware will send a pause event to userspace and stop
  384. * reporting Beacon frames. Whether the beacon reporting will be
  385. * automatically resumed or not by the driver/firmware later will be
  386. * reported to userspace using the
  387. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  388. * reporting shall be resumed for all the cases except either when
  389. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  390. * in the command which triggered the current beacon reporting or during
  391. * any disconnection case as indicated by setting
  392. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  393. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  394. * driver.
  395. *
  396. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  397. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  398. * flag not set, the next first
  399. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  400. * shall be considered as un-pause event.
  401. *
  402. * All the attributes used with this command are defined in
  403. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  404. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  405. * interop issues with the DUT. This sub command is used to transfer the
  406. * ap info between driver and user space. This works both as a command
  407. * or event. As a command, it configs the stored list of aps from user
  408. * space to firmware; as an event, it indicates the ap info detected by
  409. * firmware to user space for persistent storage. The attributes defined
  410. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  411. * parameters.
  412. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  413. * binary blobs from application/service to firmware. The attributes
  414. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  415. * deliver the parameters.
  416. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
  417. * to send/receive avoid frequency data using
  418. * enum qca_wlan_vendor_attr_avoid_frequency_ext.
  419. * This new command is alternative to existing command
  420. * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  421. * is using stream of bytes instead of structured data using vendor
  422. * attributes. User space sends unsafe frequency ranges to the driver using
  423. * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
  424. * reception of this command, the driver shall check if an interface is
  425. * operating on an unsafe frequency and the driver shall try to move to a
  426. * safe channel when needed. If the driver is not able to find a safe
  427. * channel the interface can keep operating on an unsafe channel with the
  428. * TX power limit derived based on internal configurations like
  429. * regulatory/SAR rules.
  430. *
  431. * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
  432. * add the STA node details in driver/firmware. Attributes for this event
  433. * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  434. * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
  435. * coex chain mode from application/service.
  436. * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
  437. * to deliver the parameters.
  438. * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
  439. * get information of a station from driver to userspace. This command can
  440. * be used in both STA and AP modes. For STA mode, it provides information
  441. * of the current association when in connected state or the last
  442. * association when in disconnected state. For AP mode, only information
  443. * of the currently connected stations is available. This command uses
  444. * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
  445. * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
  446. * Host drivers can request the user space entity to set the SAR power
  447. * limits with this event. Accordingly, the user space entity is expected
  448. * to set the SAR power limits. Host drivers can retry this event to the
  449. * user space for the SAR power limits configuration from user space. If
  450. * the driver does not get the SAR power limits from user space for all
  451. * the retried attempts, it can configure a default SAR power limit.
  452. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
  453. * is used to update the information about the station from the driver to
  454. * userspace. Uses attributes from enum
  455. * qca_wlan_vendor_attr_update_sta_info.
  456. *
  457. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
  458. * The host driver initiates the disconnection for scenarios such as beacon
  459. * miss, NUD failure, peer kick out, etc. The disconnection indication
  460. * through cfg80211_disconnected() expects the reason codes from enum
  461. * ieee80211_reasoncode which does not signify these various reasons why
  462. * the driver has triggered the disconnection. This event will be used to
  463. * send the driver specific reason codes by the host driver to userspace.
  464. * Host drivers should trigger this event and pass the respective reason
  465. * code immediately prior to triggering cfg80211_disconnected(). The
  466. * attributes used with this event are defined in enum
  467. * qca_wlan_vendor_attr_driver_disconnect_reason.
  468. *
  469. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
  470. * add/delete TSPEC for each AC. One command is for one specific AC only.
  471. * This command can only be used in STA mode and the STA must be
  472. * associated with an AP when the command is issued. Uses attributes
  473. * defined in enum qca_wlan_vendor_attr_config_tspec.
  474. *
  475. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
  476. * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
  477. *
  478. * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
  479. * the host driver. The band configurations obtained are referred through
  480. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
  481. *
  482. * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
  483. * assessment.
  484. * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
  485. *
  486. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  487. * used to update SSID information in hostapd when it is updated in the
  488. * driver. Uses the attribute NL80211_ATTR_SSID.
  489. *
  490. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
  491. * the driver to send opaque data from the firmware to userspace. The
  492. * driver sends an event to userspace whenever such data is received from
  493. * the firmware.
  494. *
  495. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
  496. * send this opaque data for this event.
  497. *
  498. * The format of the opaque data is specific to the particular firmware
  499. * version and there is no guarantee of the format remaining same.
  500. *
  501. * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
  502. * The host driver selects Tx VDEV, and notifies user. The attributes
  503. * used with this event are defined in enum
  504. * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
  505. * This event contains Tx VDEV group information contains other VDEVs
  506. * interface index and status information.
  507. *
  508. * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
  509. * configure the concurrent session policies when multiple interfaces
  510. * are (getting) active. The attributes used by this command are defined
  511. * in enum qca_wlan_vendor_attr_concurrent_policy.
  512. *
  513. * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
  514. * to query usable channels for different interface types such as STA,
  515. * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
  516. * channels in the response based on country code, different static
  517. * configurations, concurrency combinations, etc. The attributes used
  518. * with this command are defined in
  519. * enum qca_wlan_vendor_attr_usable_channels.
  520. *
  521. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
  522. * to get DFS radar history from the driver to userspace. The driver
  523. * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
  524. * array of nested entries.
  525. * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
  526. * enable/disable mDNS offload to the firmware. The attributes used with
  527. * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
  528. *
  529. * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
  530. * important debug events that are required for various issues. The
  531. * attributes used with this command are defined in
  532. * enum qca_wlan_vendor_attr_diag.
  533. * This command is defined for temporary usage until this interface is
  534. * moved to the existing diag infra with cnss diag events. This command
  535. * will be deprecated soon and it is not recommended to do any further
  536. * enhancements to this command.
  537. *
  538. * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
  539. * to set packet monitor mode that aims to send the specified set of TX and
  540. * RX frames on the current client interface to an active monitor interface.
  541. * If this Monitor mode is set, the driver will send the configured frames,
  542. * from the interface on which the command is issued, to an active monitor
  543. * interface. The attributes used with this command are defined in
  544. * enum qca_wlan_vendor_attr_set_monitor_mode.
  545. *
  546. * Though the monitor mode is configured for the respective data/mgmt/ctrl
  547. * frames, it is up to the respective WLAN driver/firmware/hardware designs
  548. * to consider the possibility of sending these frames over the monitor
  549. * interface. For example, the control frames are handled with in the
  550. * hardware and thus passing such frames over the monitor interface is left
  551. * to the respective designs.
  552. *
  553. * Also, this monitor mode is governed to behave accordingly in
  554. * suspend/resume states. If the firmware handles any of such frames
  555. * in suspend state without waking up the host and if the monitor mode
  556. * is configured to notify all such frames, then the firmware is expected
  557. * to resume the host and forward the respective frames to the monitor
  558. * interface. Please note that such a request to get the frames over the
  559. * monitor interface will have a definite power implications.
  560. *
  561. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
  562. * as a request to set the driver/firmware with the parameters to trigger
  563. * the roaming events, and also used by the driver/firmware to pass on the
  564. * various roam events to userspace.
  565. * Applicable only for the STA mode. The attributes used with this command
  566. * are defined in enum qca_wlan_vendor_attr_roam_events.
  567. *
  568. * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
  569. * rate mask config for a list of phy types. Userspace shall provide
  570. * an array of the vendor attributes defined in
  571. * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
  572. *
  573. * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
  574. * when two interfaces are active on the same band, using two different
  575. * home channels, and only supported by a single radio. In this scenario
  576. * the device must split the use of the radio between the two interfaces.
  577. * The percentage of time allocated to a given interface is the quota.
  578. * Depending on the configuration, the quota can either be fixed or
  579. * dynamic.
  580. *
  581. * When used as an event, the device will report the quota type, and for
  582. * all interfaces operating in MCC it will report the current quota.
  583. * When used as a command, the device can be configured for a specific
  584. * quota type, and in the case of a fixed quota, the quota to apply to one
  585. * of the interfaces.
  586. *
  587. * Applications can use the event to do TX bitrate control based on the
  588. * information, and can use the command to explicitly set the quota to
  589. * enhance performance in specific scenarios.
  590. *
  591. * The attributes used with this command are defined in
  592. * enum qca_wlan_vendor_attr_mcc_quota.
  593. *
  594. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
  595. * user space that the driver is ready for operations again after
  596. * recovering from internal failures. This occurs following a failure
  597. * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
  598. *
  599. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
  600. * get the WLAN radio combinations matrix supported by the device which
  601. * provides the device simultaneous radio configurations such as
  602. * standalone, dual band simultaneous, and single band simultaneous.
  603. *
  604. * The attributes used with this command are defined in
  605. * enum qca_wlan_vendor_attr_radio_combination_matrix.
  606. *
  607. * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
  608. * security negotiation and key generation to user space.
  609. *
  610. * When used as an event, the driver requests userspace to trigger the PASN
  611. * authentication or dropping of a PTKSA for the indicated peer devices.
  612. * When used as a command response, userspace indicates a consolidated
  613. * status report for all the peers that were requested for.
  614. *
  615. * The attributes used with this command are defined in
  616. * enum qca_wlan_vendor_attr_pasn.
  617. *
  618. * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
  619. * secure ranging context such as TK and LTF keyseed for each peer
  620. * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
  621. *
  622. * The attributes used with this command are defined in
  623. * enum qca_wlan_vendor_attr_secure_ranging_ctx.
  624. *
  625. * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
  626. * enable/disable offload processing in firmware during system/runtime
  627. * suspend for CoAP messages (see RFC7252: The Constrained Application
  628. * Protocol) and fetch information of the CoAP messages cached during
  629. * offload processing.
  630. *
  631. * The attributes used with this command are defined in
  632. * enum qca_wlan_vendor_attr_coap_offload.
  633. *
  634. * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
  635. * (add, remove, or change) a Stream Classification Service (SCS) rule.
  636. *
  637. * The attributes used with this event are defined in
  638. * enum qca_wlan_vendor_attr_scs_rule_config.
  639. *
  640. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
  641. * supported by the WLAN firmware.
  642. *
  643. * The attributes used with this command are defined in
  644. * enum qca_wlan_vendor_attr_sar_capability.
  645. *
  646. * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
  647. * (SR) feature. This command is used by userspace to configure SR
  648. * parameters to the driver and to get the SR related parameters and
  649. * statistics with synchronous responses from the driver.
  650. * The driver also uses this command to send asynchronous events to
  651. * userspace to indicate suspend/resume of SR feature and changes
  652. * in SR parameters.
  653. *
  654. * The attributes used with this command are defined in
  655. * enum qca_wlan_vendor_attr_sr.
  656. *
  657. * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
  658. * notify application layer about the primary netdev of an MLO connection.
  659. * In some implementations, MLO has multiple netdevs out of which one
  660. * netdev is designated as primary to provide a unified interface to the
  661. * bridge. In those implementations this event is sent on every MLO peer
  662. * connection.
  663. *
  664. * The attributes used with this event are defined in
  665. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
  666. *
  667. * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
  668. * driver to notify different AFC events to userspace. The attributes used
  669. * with this command are defined in enum qca_wlan_vendor_attr_afc_event.
  670. *
  671. * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
  672. * userspace to deliver AFC response data to driver. The attributes used
  673. * with this command are defined in enum qca_wlan_vendor_attr_afc_response.
  674. *
  675. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
  676. * operate in doze mode.
  677. *
  678. * Userspace uses this command to configure the AP interface to enter or
  679. * exit from doze mode. The driver sends this event after it enters or
  680. * exits the doze mode with the updated AP doze mode settings.
  681. *
  682. * The attributes used with this subcommand are defined in
  683. * enum qca_wlan_vendor_attr_dozed_ap.
  684. *
  685. * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
  686. * to get the status of local packet capture of monitor mode. The monitor
  687. * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
  688. * subcommand.
  689. *
  690. * The attributes used with this command are defined in enum
  691. * qca_wlan_vendor_attr_get_monitor_mode.
  692. *
  693. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
  694. * get roam information from the driver to user space. It provides the
  695. * latest several instances of roam information cached in the driver.
  696. * The command is only used for STA mode. The attributes used with this
  697. * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
  698. *
  699. * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
  700. * configure and fetch the state information of the MLO links affiliated
  701. * with the STA interface. The attributes used with this command are
  702. * defined in enum qca_wlan_vendor_attr_mlo_link_state.
  703. *
  704. * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
  705. * vendor subcommand to trigger channel utilization measurement on entire
  706. * channel width of the connected channel(s). For MLO connection, connected
  707. * channel utilization measurement shall be done on all the MLO links.
  708. * The driver may use regular scan or wideband energy detection feature
  709. * based on the hardware capability for connected channel(s) utilization
  710. * measurement. The driver indicates the connected channel(s) utilization
  711. * measurement completion as an asynchronous event with this command ID to
  712. * userspace. Upon receiving this event, userspace can use
  713. * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current
  714. * connected channel(s) and can derive the channel utilization percentage
  715. * (CU) of each 20 MHz sub-channel of the entire connected channel using
  716. * %NL80211_CMD_GET_SURVEY response.
  717. * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
  718. * This command is only used for STA mode.
  719. *
  720. * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is
  721. * used as an event to notify the userspace of TID-to-link map changes
  722. * negotiated by the driver or updated by associated AP MLD with Beacon,
  723. * Probe Response, or Action frames. The attributes used with this command
  724. * are defined in enum qca_wlan_vendor_attr_tid_to_link_map.
  725. *
  726. * Note that the attribute
  727. * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to
  728. * the current connected AP MLD address.
  729. *
  730. * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal
  731. * of STA MLD setup links due to AP MLD removing the corresponding
  732. * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup
  733. * links are removed during Multi-Link reconfiguration, the driver shall
  734. * use %NL80211_CMD_DISCONNECT instead of this command since it is a
  735. * connection drop. The attributes used with this command are defined in
  736. * enum qca_wlan_vendor_attr_link_reconfig.
  737. * Note that the attribute
  738. * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to
  739. * the current connected AP MLD address.
  740. *
  741. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure
  742. * the driver with MLO link id information on which to transmit the TDLS
  743. * discovery response frame on the configured MLO BSS link when the
  744. * local station is connected in MLO mode. This command is sent to the
  745. * driver prior to the TDLS discovery response management transmit
  746. * operation and is followed immediately by the TDLS discovery response
  747. * management frame transmit command.
  748. *
  749. * The driver saves the configured MLO link id information and uses it for
  750. * the following TDLS discovery response frame transmission on the
  751. * configured MLO BSS link and the link id information is cleared in the
  752. * driver after the TDLS discovery response frame is successfully
  753. * transmitted. This behavior is independent of the TDLS peer STA connection
  754. * mode (MLO or non-MLO).
  755. *
  756. * Uses the attributes defined in
  757. * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext.
  758. */
  759. enum qca_nl80211_vendor_subcmds {
  760. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  761. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  762. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  763. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  764. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  765. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  766. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  767. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  768. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  769. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  770. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  771. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  772. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  773. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  774. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  775. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  776. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  777. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  778. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  779. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  780. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  781. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  782. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  783. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  784. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  785. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  786. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  787. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  788. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  789. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  790. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  791. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  792. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  793. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  794. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  795. /* Get Concurrency Matrix */
  796. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  797. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  798. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  799. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  800. /* Deprecated */
  801. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  802. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  803. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  804. /* Off loaded DFS events */
  805. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  806. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  807. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  808. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  809. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  810. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  811. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  812. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  813. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  814. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  815. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  816. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  817. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  818. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  819. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  820. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  821. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  822. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  823. /* Wi-Fi Configuration subcommands */
  824. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  825. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  826. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  827. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  828. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  829. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  830. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  831. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  832. /* NS Offload enable/disable cmd */
  833. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  834. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  835. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  836. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  837. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  838. /* OCB commands */
  839. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  840. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  841. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  842. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  843. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  844. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  845. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  846. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  847. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  848. /* subcommand to get link properties */
  849. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  850. /* LFR Subnet Detection */
  851. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  852. /* DBS subcommands */
  853. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  854. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  855. /* Vendor setband command */
  856. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  857. /* Vendor scan commands */
  858. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  859. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  860. /* OTA test subcommand */
  861. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  862. /* Tx power scaling subcommands */
  863. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  864. /* Tx power scaling in db subcommands */
  865. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  866. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  867. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  868. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  869. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  870. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  871. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  872. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  873. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  874. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  875. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  876. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  877. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  878. /* FTM/indoor location subcommands */
  879. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  880. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  881. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  882. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  883. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  884. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  885. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  886. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  887. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  888. /* Encrypt/Decrypt command */
  889. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  890. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  891. /* DMG low level RF sector operations */
  892. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  893. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  894. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  895. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  896. /* Configure the TDLS mode from user space */
  897. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  898. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  899. /* Vendor abort scan command */
  900. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  901. /* Set Specific Absorption Rate(SAR) Power Limits */
  902. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  903. /* External Auto channel configuration setting */
  904. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  905. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  906. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  907. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  908. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  909. /* Set the trace level for QDF */
  910. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  911. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  912. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  913. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  914. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  915. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  916. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  917. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  918. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  919. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  920. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  921. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  922. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  923. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  924. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  925. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  926. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  927. /* Wi-Fi test configuration subcommand */
  928. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  929. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  930. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  931. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  932. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  933. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  934. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  935. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  936. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  937. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  938. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  939. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  940. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  941. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  942. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  943. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  944. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  945. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  946. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  947. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  948. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  949. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  950. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  951. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  952. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  953. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
  954. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  955. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  956. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  957. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  958. QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
  959. QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
  960. QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
  961. QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
  962. /* 206..212 - reserved for QCA */
  963. QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
  964. QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
  965. QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
  966. QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
  967. QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
  968. QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
  969. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
  970. QCA_NL80211_VENDOR_SUBCMD_SR = 220,
  971. QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
  972. QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
  973. QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
  974. QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
  975. QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
  976. QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
  977. QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
  978. QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
  979. QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
  980. QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
  981. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
  982. };
  983. enum qca_wlan_vendor_tos {
  984. QCA_WLAN_VENDOR_TOS_BK = 0,
  985. QCA_WLAN_VENDOR_TOS_BE = 1,
  986. QCA_WLAN_VENDOR_TOS_VI = 2,
  987. QCA_WLAN_VENDOR_TOS_VO = 3,
  988. };
  989. /**
  990. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  991. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  992. */
  993. enum qca_wlan_vendor_attr_active_tos {
  994. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  995. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  996. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  997. /* Flag attribute representing the start (attribute included) or stop
  998. * (attribute not included) of the respective TOS.
  999. */
  1000. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  1001. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  1002. };
  1003. enum qca_wlan_vendor_hang_reason {
  1004. /* Unspecified reason */
  1005. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  1006. /* No Map for the MAC entry for the received frame */
  1007. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  1008. /* peer deletion timeout happened */
  1009. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  1010. /* peer unmap timeout */
  1011. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  1012. /* Scan request timed out */
  1013. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  1014. /* Consecutive Scan attempt failures */
  1015. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  1016. /* Unable to get the message buffer */
  1017. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  1018. /* Current command processing is timedout */
  1019. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  1020. /* Timeout for an ACK from FW for suspend request */
  1021. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  1022. /* Timeout for an ACK from FW for resume request */
  1023. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  1024. /* Transmission timeout for consecutive data frames */
  1025. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  1026. /* Timeout for the TX completion status of data frame */
  1027. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  1028. /* DXE failure for tx/Rx, DXE resource unavailability */
  1029. QCA_WLAN_HANG_DXE_FAILURE = 12,
  1030. /* WMI pending commands exceed the maximum count */
  1031. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  1032. /* Timeout for peer STA connection accept command's response from the
  1033. * FW in AP mode. This command is triggered when a STA (peer) connects
  1034. * to AP (DUT).
  1035. */
  1036. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  1037. /* Timeout for the AP connection accept command's response from the FW
  1038. * in STA mode. This command is triggered when the STA (DUT) connects
  1039. * to an AP (peer).
  1040. */
  1041. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  1042. /* Timeout waiting for the response to the MAC HW mode change command
  1043. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  1044. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  1045. * Channel Concurrency) mode.
  1046. */
  1047. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  1048. /* Timeout waiting for the response from FW to configure the MAC HW's
  1049. * mode. This operation is to configure the single/two MACs in either
  1050. * SCC/MCC/DBS mode.
  1051. */
  1052. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  1053. /* Timeout waiting for response of VDEV start command from the FW */
  1054. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  1055. /* Timeout waiting for response of VDEV restart command from the FW */
  1056. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  1057. /* Timeout waiting for response of VDEV stop command from the FW */
  1058. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  1059. /* Timeout waiting for response of VDEV delete command from the FW */
  1060. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  1061. /* Timeout waiting for response of peer all delete request command to
  1062. * the FW on a specific VDEV.
  1063. */
  1064. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  1065. /* WMI sequence mismatch between WMI command and Tx completion */
  1066. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  1067. /* Write to Device HAL register failed */
  1068. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  1069. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  1070. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  1071. /* Bus failure */
  1072. QCA_WLAN_HANG_BUS_FAILURE = 26,
  1073. /* tasklet/credit latency found */
  1074. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  1075. /* MSDU buffers received in REO error ring, exceeding certain
  1076. * threshold
  1077. */
  1078. QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
  1079. /* Vdev SM is out of sync and connect req received
  1080. * when already connected
  1081. */
  1082. QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
  1083. /* Stats request timeout */
  1084. QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
  1085. /* Leak in TX descriptor for a packet */
  1086. QCA_WLAN_HANG_TX_DESC_LEAK = 31,
  1087. /* Scheduler watchdog timeout */
  1088. QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
  1089. /* Failed to send self peer deletion cmd to firmware */
  1090. QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
  1091. /* Received del self sta without del bss */
  1092. QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
  1093. /* Recovery needed when sending flush completion to userspace */
  1094. QCA_WLAN_HANG_FLUSH_LOGS = 35,
  1095. /* Host wakeup because of page fault */
  1096. QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
  1097. };
  1098. /**
  1099. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  1100. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  1101. */
  1102. enum qca_wlan_vendor_attr_hang {
  1103. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  1104. /*
  1105. * Reason for the Hang - Represented by enum
  1106. * qca_wlan_vendor_hang_reason.
  1107. */
  1108. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  1109. /* The binary blob data associated with the hang reason specified by
  1110. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  1111. * contain the required dump to analyze the reason for the hang.
  1112. * NLA_BINARY attribute, the max size is 1024 bytes.
  1113. */
  1114. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  1115. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  1116. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  1117. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  1118. };
  1119. /**
  1120. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  1121. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  1122. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  1123. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  1124. level needs to be updated.
  1125. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  1126. * to be set.
  1127. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  1128. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  1129. */
  1130. enum qca_vendor_attr_set_trace_level {
  1131. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  1132. /*
  1133. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  1134. * attributes.
  1135. */
  1136. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  1137. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  1138. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  1139. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  1140. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  1141. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  1142. };
  1143. /**
  1144. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  1145. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  1146. * station information. The information obtained through these
  1147. * commands signify the current info in connected state and
  1148. * latest cached information during the connected state , if queried
  1149. * when in disconnected state.
  1150. *
  1151. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  1152. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  1153. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  1154. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  1155. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  1156. */
  1157. enum qca_wlan_vendor_attr_get_station {
  1158. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  1159. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  1160. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  1161. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  1162. /* keep last */
  1163. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  1164. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  1165. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  1166. };
  1167. /**
  1168. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  1169. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  1170. *
  1171. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  1172. * Used in STA mode. This attribute represents the list of channel center
  1173. * frequencies in MHz (u32) the station has learnt during the last connection
  1174. * or roaming attempt. This information shall not signify the channels for
  1175. * an explicit scan request from the user space. Host drivers can update this
  1176. * information to the user space in both connected and disconnected state.
  1177. * In the disconnected state this information shall signify the channels
  1178. * scanned in the last connection/roam attempt that lead to the disconnection.
  1179. */
  1180. enum qca_wlan_vendor_attr_update_sta_info {
  1181. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  1182. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  1183. /* keep last */
  1184. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  1185. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  1186. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  1187. };
  1188. /**
  1189. * enum qca_wlan_802_11_mode - dot11 mode
  1190. * @QCA_WLAN_802_11_MODE_11B: mode B
  1191. * @QCA_WLAN_802_11_MODE_11G: mode G
  1192. * @QCA_WLAN_802_11_MODE_11N: mode N
  1193. * @QCA_WLAN_802_11_MODE_11A: mode A
  1194. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  1195. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  1196. * @QCA_WLAN_802_11_MODE_11BE: mode BE
  1197. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  1198. */
  1199. enum qca_wlan_802_11_mode {
  1200. QCA_WLAN_802_11_MODE_11B,
  1201. QCA_WLAN_802_11_MODE_11G,
  1202. QCA_WLAN_802_11_MODE_11N,
  1203. QCA_WLAN_802_11_MODE_11A,
  1204. QCA_WLAN_802_11_MODE_11AC,
  1205. QCA_WLAN_802_11_MODE_11AX,
  1206. QCA_WLAN_802_11_MODE_11BE,
  1207. QCA_WLAN_802_11_MODE_INVALID,
  1208. };
  1209. /**
  1210. * enum qca_wlan_auth_type - Authentication key management type
  1211. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  1212. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  1213. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  1214. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  1215. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  1216. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  1217. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  1218. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  1219. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  1220. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  1221. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  1222. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  1223. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  1224. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  1225. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  1226. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  1227. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  1228. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  1229. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  1230. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  1231. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  1232. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  1233. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  1234. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  1235. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  1236. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  1237. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  1238. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  1239. */
  1240. enum qca_wlan_auth_type {
  1241. QCA_WLAN_AUTH_TYPE_INVALID,
  1242. QCA_WLAN_AUTH_TYPE_OPEN,
  1243. QCA_WLAN_AUTH_TYPE_SHARED,
  1244. QCA_WLAN_AUTH_TYPE_WPA,
  1245. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  1246. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  1247. QCA_WLAN_AUTH_TYPE_RSN,
  1248. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  1249. QCA_WLAN_AUTH_TYPE_FT,
  1250. QCA_WLAN_AUTH_TYPE_FT_PSK,
  1251. QCA_WLAN_AUTH_TYPE_SHA256,
  1252. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  1253. QCA_WLAN_AUTH_TYPE_WAI,
  1254. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  1255. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  1256. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  1257. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  1258. QCA_WLAN_AUTH_TYPE_FT_SAE,
  1259. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  1260. QCA_WLAN_AUTH_TYPE_SAE,
  1261. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  1262. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  1263. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  1264. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  1265. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  1266. QCA_WLAN_AUTH_TYPE_OWE,
  1267. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  1268. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  1269. };
  1270. /**
  1271. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  1272. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  1273. *
  1274. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  1275. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  1276. * Get the standard NL attributes Nested with this attribute.
  1277. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  1278. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  1279. * NL80211_ATTR_STA_INFO
  1280. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  1281. * Get the standard NL attributes Nested with this attribute.
  1282. * Ex : Query HT/VHT Capability advertised by the AP.
  1283. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  1284. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  1285. * Number of successful Roam attempts before a
  1286. * disconnect, Unsigned 32 bit value
  1287. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  1288. * Authentication Key Management Type used for the connected session.
  1289. * Signified by enum qca_wlan_auth_type
  1290. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  1291. * connected Session, signified by enum qca_wlan_802_11_mode
  1292. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  1293. * HS20 Indication Element
  1294. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  1295. * Status Code Corresponding to the Association Failure.
  1296. * Unsigned 32 bit value.
  1297. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  1298. * Max phy rate of remote station
  1299. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  1300. * TX packets to remote station
  1301. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  1302. * TX bytes to remote station
  1303. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  1304. * RX packets from remote station
  1305. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  1306. * RX bytes from remote station
  1307. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  1308. * Last TX rate with remote station
  1309. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1310. * Last RX rate with remote station
  1311. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1312. * Remote station enable/disable WMM
  1313. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1314. * Remote station connection mode
  1315. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1316. * Remote station AMPDU enable/disable
  1317. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1318. * Remote station TX Space-time block coding enable/disable
  1319. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1320. * Remote station RX Space-time block coding enable/disable
  1321. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1322. * Remote station channel width
  1323. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1324. * Remote station short GI enable/disable
  1325. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1326. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1327. * containing the raw information elements from Beacon frames. Represents
  1328. * the Beacon frames of the current BSS in the connected state. When queried
  1329. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1330. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1331. * disconnect reason for the last disconnection if the disconnection is
  1332. * triggered from the host driver. The values are referred from
  1333. * enum qca_disconnect_reason_codes. If the disconnect is from
  1334. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1335. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1336. * Applicable in AP mode only. It contains the raw information elements
  1337. * from assoc request frame of the given peer station. User queries with the
  1338. * mac address of peer station when it disconnects. Host driver sends
  1339. * assoc request frame of the given station. Host driver doesn't provide
  1340. * the IEs when the peer station is still in connected state.
  1341. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1342. * sending HE operation info.
  1343. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1344. *
  1345. */
  1346. enum qca_wlan_vendor_attr_get_station_info {
  1347. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1348. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1349. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1350. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1351. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1352. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1353. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1354. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1355. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1356. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1357. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1358. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1359. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1360. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1361. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1362. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1363. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1364. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1365. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1366. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1367. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1368. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1369. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1370. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1371. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1372. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1373. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1374. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1375. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1376. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1377. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1378. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1379. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1380. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1381. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1382. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1383. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1384. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1385. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1386. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1387. /* keep last */
  1388. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1389. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1390. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1391. };
  1392. /**
  1393. * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
  1394. *
  1395. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
  1396. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
  1397. * value
  1398. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
  1399. * keep as unsigned for now
  1400. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
  1401. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
  1402. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
  1403. * in KBPS
  1404. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
  1405. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
  1406. */
  1407. enum qca_wlan_vendor_attr_tdls_enable {
  1408. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  1409. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
  1410. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
  1411. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
  1412. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
  1413. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
  1414. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  1415. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  1416. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  1417. };
  1418. /**
  1419. * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
  1420. *
  1421. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
  1422. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
  1423. * 8-bit value
  1424. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
  1425. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
  1426. */
  1427. enum qca_wlan_vendor_attr_tdls_disable {
  1428. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  1429. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
  1430. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  1431. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  1432. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  1433. };
  1434. /**
  1435. * qca_chip_power_save_failure_reason: Power save failure reason
  1436. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1437. * due to protocol/module.
  1438. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1439. * due to hardware
  1440. */
  1441. enum qca_chip_power_save_failure_reason {
  1442. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1443. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1444. };
  1445. /**
  1446. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1447. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1448. * information leading to the power save failure.
  1449. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1450. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1451. * represented by enum qca_chip_power_save_failure_reason
  1452. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1453. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1454. */
  1455. enum qca_attr_chip_power_save_failure {
  1456. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1457. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1458. /* keep last */
  1459. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1460. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1461. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1462. };
  1463. /**
  1464. * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
  1465. *
  1466. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
  1467. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
  1468. * 8-bit value
  1469. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
  1470. * unsigned 32-bit value
  1471. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
  1472. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
  1473. * unsigned 32-bit value
  1474. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
  1475. * class, unsigned 32-bit value
  1476. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
  1477. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
  1478. */
  1479. enum qca_wlan_vendor_attr_tdls_get_status {
  1480. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  1481. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
  1482. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
  1483. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
  1484. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
  1485. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
  1486. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  1487. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  1488. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  1489. };
  1490. /**
  1491. * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
  1492. *
  1493. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
  1494. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
  1495. * 8-bit value
  1496. * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
  1497. * unsigned 32-bit value
  1498. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
  1499. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
  1500. * unsigned 32-bit value
  1501. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
  1502. * operating class, unsigned 32-bit value
  1503. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
  1504. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
  1505. */
  1506. enum qca_wlan_vendor_attr_tdls_state {
  1507. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  1508. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
  1509. QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
  1510. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
  1511. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
  1512. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
  1513. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  1514. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  1515. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  1516. };
  1517. /* enum's to provide TDLS capabilities */
  1518. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1519. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1520. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1521. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1522. /* keep last */
  1523. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1524. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1525. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1526. };
  1527. /* Compatibility defines for previously used subcmd names.
  1528. * These values should not be used in any new implementation.
  1529. */
  1530. #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
  1531. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
  1532. enum qca_wlan_vendor_attr {
  1533. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1534. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1535. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1536. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1537. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1538. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1539. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1540. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1541. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1542. /*
  1543. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1544. * by enum qca_roaming_policy.
  1545. */
  1546. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1547. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1548. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1549. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1550. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1551. /*
  1552. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1553. * Unsigned 32-bit value.
  1554. */
  1555. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1556. /* Unsigned 32-bit value */
  1557. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1558. /* Unsigned 32-bit value */
  1559. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1560. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1561. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1562. * is deprecated. Recommendation is to use
  1563. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1564. * using both the attributes, the ones configured through
  1565. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1566. */
  1567. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1568. /* Dummy (NOP) attribute for 64 bit padding */
  1569. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1570. /*
  1571. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1572. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1573. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1574. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1575. */
  1576. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1577. /*
  1578. * Indoor location capabilities, returned by
  1579. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1580. * see enum qca_wlan_vendor_attr_loc_capa.
  1581. */
  1582. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1583. /*
  1584. * Array of nested attributes containing information about each peer
  1585. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1586. * for supported attributes for each peer.
  1587. */
  1588. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1589. /*
  1590. * Array of nested attributes containing measurement results for
  1591. * one or more peers, reported by the
  1592. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1593. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1594. * attributes.
  1595. */
  1596. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1597. /* Flag attribute for enabling or disabling responder functionality. */
  1598. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1599. /*
  1600. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1601. * command to specify the LCI report that will be sent by
  1602. * the responder during a measurement exchange. The format is
  1603. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1604. */
  1605. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1606. /*
  1607. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1608. * command to specify the location civic report that will
  1609. * be sent by the responder during a measurement exchange.
  1610. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1611. */
  1612. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1613. /*
  1614. * Session/measurement completion status code,
  1615. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1616. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1617. * see enum qca_vendor_attr_loc_session_status.
  1618. */
  1619. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1620. /*
  1621. * Initial dialog token used by responder (0 if not specified),
  1622. * unsigned 8 bit value.
  1623. */
  1624. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1625. /*
  1626. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1627. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1628. * AOA measurements are needed as part of an FTM session.
  1629. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1630. * enum qca_wlan_vendor_attr_aoa_type.
  1631. */
  1632. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1633. /*
  1634. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1635. * by indoor location measurements. Refers to the antenna
  1636. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1637. */
  1638. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1639. /*
  1640. * AOA measurement data. Its contents depends on the AOA measurement
  1641. * type and antenna array mask:
  1642. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1643. * phase of the strongest CIR path for each antenna in the measured
  1644. * array(s).
  1645. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1646. * values, phase and amplitude of the strongest CIR path for each
  1647. * antenna in the measured array(s).
  1648. */
  1649. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1650. /*
  1651. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1652. * to specify the chain number (unsigned 32 bit value) to inquire
  1653. * the corresponding antenna RSSI value */
  1654. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1655. /*
  1656. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1657. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1658. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1659. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1660. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1661. /*
  1662. * TSF timer value, unsigned 64 bit value.
  1663. * May be returned by various commands.
  1664. */
  1665. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1666. /*
  1667. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1668. * 0..127 for sector indices or 65535 as special value used to
  1669. * unlock sector selection in
  1670. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1671. */
  1672. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1673. /*
  1674. * DMG RF sector type, unsigned 8 bit value. One of the values
  1675. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1676. */
  1677. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1678. /*
  1679. * Bitmask of DMG RF modules for which information is requested. Each
  1680. * bit corresponds to an RF module with the same index as the bit
  1681. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1682. * all DMG chips currently have up to 8 RF modules.
  1683. */
  1684. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1685. /*
  1686. * Array of nested attributes where each entry is DMG RF sector
  1687. * configuration for a single RF module.
  1688. * Attributes for each entry are taken from enum
  1689. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1690. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1691. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1692. */
  1693. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1694. /*
  1695. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1696. * to report frame aggregation statistics to userspace.
  1697. */
  1698. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1699. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1700. /*
  1701. * Unsigned 8-bit value representing MBO transition reason code as
  1702. * provided by the AP used by subcommand
  1703. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1704. * specified by the userspace in the request to the driver.
  1705. */
  1706. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1707. /*
  1708. * Array of nested attributes, BSSID and status code, used by subcommand
  1709. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1710. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1711. * The userspace space specifies the list/array of candidate BSSIDs in
  1712. * the order of preference in the request. The driver specifies the
  1713. * status code, for each BSSID in the list, in the response. The
  1714. * acceptable candidates are listed in the order preferred by the
  1715. * driver.
  1716. */
  1717. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1718. /*
  1719. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1720. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1721. */
  1722. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1723. /*
  1724. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1725. * to define the number of antennas to use for BRP.
  1726. * different purpose in each ANT_LIMIT_MODE:
  1727. * DISABLE - ignored
  1728. * EFFECTIVE - upper limit to number of antennas to be used
  1729. * FORCE - exact number of antennas to be used
  1730. * unsigned 8 bit value
  1731. */
  1732. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1733. /*
  1734. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1735. * to report the corresponding antenna index to the chain RSSI value
  1736. */
  1737. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1738. /*
  1739. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1740. * to report the specific antenna EVM value (unsigned 32 bit value).
  1741. * With a determinate group of antennas, the driver specifies the
  1742. * EVM value for each antenna ID, and application extract them
  1743. * in user space.
  1744. */
  1745. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1746. /*
  1747. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1748. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1749. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1750. */
  1751. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1752. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1753. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1754. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1755. * This attribute shall consider the bitmask combinations to define
  1756. * the respective Band combinations and always takes precedence over
  1757. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1758. */
  1759. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1760. /* keep last */
  1761. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1762. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1763. };
  1764. enum qca_wlan_vendor_attr_extscan_config_params {
  1765. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1766. /* Unsigned 32-bit value */
  1767. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1768. /*
  1769. * Attributes for data used by
  1770. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1771. */
  1772. /* Unsigned 32-bit value */
  1773. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1774. = 2,
  1775. /* Unsigned 32-bit value */
  1776. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1777. = 3,
  1778. /*
  1779. * Attributes for input params used by
  1780. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1781. */
  1782. /* Unsigned 32-bit value; channel frequency */
  1783. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1784. /* Unsigned 32-bit value; dwell time in ms. */
  1785. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1786. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1787. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1788. /* Unsigned 8-bit value; channel class */
  1789. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1790. /* Unsigned 8-bit value; bucket index, 0 based */
  1791. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1792. /* Unsigned 8-bit value; band. */
  1793. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1794. /* Unsigned 32-bit value; desired period, in ms. */
  1795. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1796. /* Unsigned 8-bit value; report events semantics. */
  1797. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1798. /*
  1799. * Unsigned 32-bit value. Followed by a nested array of
  1800. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1801. */
  1802. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1803. /*
  1804. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1805. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1806. */
  1807. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1808. /* Unsigned 32-bit value; base timer period in ms. */
  1809. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1810. /*
  1811. * Unsigned 32-bit value; number of APs to store in each scan in the
  1812. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1813. */
  1814. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1815. /*
  1816. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1817. * up AP.
  1818. */
  1819. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1820. = 16,
  1821. /*
  1822. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1823. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1824. * of the array is determined by NUM_BUCKETS.
  1825. */
  1826. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1827. /*
  1828. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1829. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1830. */
  1831. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1832. /* Unsigned 8-bit value */
  1833. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1834. = 19,
  1835. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1836. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1837. = 20,
  1838. /* An array of 6 x unsigned 8-bit value */
  1839. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1840. /* Signed 32-bit value */
  1841. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1842. /* Signed 32-bit value */
  1843. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1844. /* Unsigned 32-bit value */
  1845. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1846. /*
  1847. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1848. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1849. * array is determined by NUM_AP.
  1850. */
  1851. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1852. /*
  1853. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1854. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1855. */
  1856. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1857. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1858. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1859. = 27,
  1860. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1861. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1862. = 28,
  1863. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1864. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1865. /*
  1866. * Unsigned 32-bit value; number of APs. Followed by an array of
  1867. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1868. */
  1869. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1870. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1871. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1872. = 31,
  1873. /*
  1874. * Unsigned 32-bit value. If max_period is non zero or different than
  1875. * period, then this bucket is an exponential backoff bucket.
  1876. */
  1877. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1878. /* Unsigned 32-bit value. */
  1879. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1880. /*
  1881. * Unsigned 32-bit value. For exponential back off bucket, number of
  1882. * scans to perform for a given period.
  1883. */
  1884. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1885. /*
  1886. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1887. * many scans.
  1888. */
  1889. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1890. = 35,
  1891. /*
  1892. * Attributes for data used by
  1893. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1894. */
  1895. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1896. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1897. = 36,
  1898. /*
  1899. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1900. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1901. * size of the array is determined by NUM_SSID.
  1902. */
  1903. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1904. /*
  1905. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1906. * attributes.
  1907. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1908. */
  1909. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1910. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1911. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1912. /* Unsigned 8-bit value */
  1913. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1914. /* Signed 32-bit value */
  1915. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1916. /* Signed 32-bit value */
  1917. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1918. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1919. */
  1920. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1921. /* keep last */
  1922. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1923. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1924. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1925. };
  1926. enum qca_wlan_vendor_attr_extscan_results {
  1927. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1928. /*
  1929. * Unsigned 32-bit value; must match the request Id supplied by
  1930. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1931. */
  1932. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1933. /*
  1934. * Unsigned 32-bit value; used to indicate the status response from
  1935. * firmware/driver for the vendor sub-command.
  1936. */
  1937. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1938. /*
  1939. * EXTSCAN Valid Channels attributes */
  1940. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1941. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1942. /*
  1943. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1944. * representing channel numbers.
  1945. */
  1946. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1947. /* EXTSCAN Capabilities attributes */
  1948. /* Unsigned 32-bit value */
  1949. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1950. /* Unsigned 32-bit value */
  1951. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1952. /* Unsigned 32-bit value */
  1953. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1954. = 7,
  1955. /* Unsigned 32-bit value */
  1956. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1957. = 8,
  1958. /* Signed 32-bit value */
  1959. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1960. = 9,
  1961. /* Unsigned 32-bit value */
  1962. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1963. /* Unsigned 32-bit value */
  1964. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1965. = 11,
  1966. /* Unsigned 32-bit value */
  1967. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1968. = 12,
  1969. /*
  1970. * EXTSCAN Attributes used with
  1971. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1972. */
  1973. /* Unsigned 32-bit value */
  1974. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1975. /*
  1976. * EXTSCAN attributes used with
  1977. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1978. */
  1979. /*
  1980. * An array of NUM_RESULTS_AVAILABLE x
  1981. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1982. */
  1983. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1984. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1985. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1986. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1987. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1988. /* An array of 6 x unsigned 8-bit value */
  1989. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1990. /* Unsigned 32-bit value; channel frequency in MHz */
  1991. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1992. /* Signed 32-bit value */
  1993. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1994. /* Unsigned 32-bit value */
  1995. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1996. /* Unsigned 32-bit value */
  1997. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  1998. /* Unsigned 16-bit value */
  1999. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  2000. /* Unsigned 16-bit value */
  2001. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  2002. /* Unsigned 32-bit value; size of the IE DATA blob */
  2003. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  2004. /*
  2005. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  2006. * information elements found in the beacon; this data should be a
  2007. * packed list of wifi_information_element objects, one after the
  2008. * other.
  2009. */
  2010. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  2011. /*
  2012. * Unsigned 8-bit value; set by driver to indicate more scan results are
  2013. * available.
  2014. */
  2015. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  2016. /*
  2017. * EXTSCAN attributes for
  2018. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  2019. */
  2020. /* Unsigned 8-bit value */
  2021. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  2022. /* Unsigned 32-bit value */
  2023. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  2024. /*
  2025. * EXTSCAN attributes for
  2026. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  2027. */
  2028. /*
  2029. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2030. * to indicate number of results.
  2031. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2032. * list of results.
  2033. */
  2034. /*
  2035. * EXTSCAN attributes for
  2036. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  2037. */
  2038. /* An array of 6 x unsigned 8-bit value */
  2039. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  2040. /* Unsigned 32-bit value */
  2041. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  2042. = 30,
  2043. /* Unsigned 32-bit value. */
  2044. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  2045. = 31,
  2046. /*
  2047. * A nested array of signed 32-bit RSSI values. Size of the array is
  2048. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  2049. */
  2050. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  2051. = 32,
  2052. /*
  2053. * EXTSCAN attributes used with
  2054. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  2055. */
  2056. /*
  2057. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2058. * to indicate number of extscan cached results returned.
  2059. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  2060. * the list of extscan cached results.
  2061. */
  2062. /*
  2063. * An array of NUM_RESULTS_AVAILABLE x
  2064. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  2065. */
  2066. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  2067. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  2068. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  2069. /*
  2070. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  2071. */
  2072. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  2073. /*
  2074. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2075. * to indicate number of wifi scan results/bssids retrieved by the scan.
  2076. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2077. * list of wifi scan results returned for each cached result block.
  2078. */
  2079. /*
  2080. * EXTSCAN attributes for
  2081. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  2082. */
  2083. /*
  2084. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  2085. * number of results.
  2086. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2087. * list of wifi scan results returned for each
  2088. * wifi_passpoint_match_result block.
  2089. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  2090. */
  2091. /*
  2092. * EXTSCAN attributes for
  2093. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  2094. */
  2095. /* Unsigned 32-bit value */
  2096. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  2097. = 36,
  2098. /*
  2099. * A nested array of
  2100. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  2101. * attributes. Array size =
  2102. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  2103. */
  2104. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  2105. /* Unsigned 32-bit value; network block id for the matched network */
  2106. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  2107. /*
  2108. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2109. * list of wifi scan results returned for each
  2110. * wifi_passpoint_match_result block.
  2111. */
  2112. /* Unsigned 32-bit value */
  2113. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  2114. /*
  2115. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  2116. * ANQP data in the information_element format.
  2117. */
  2118. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  2119. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2120. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  2121. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2122. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  2123. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2124. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  2125. = 43,
  2126. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2127. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  2128. = 44,
  2129. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  2130. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  2131. /* keep last */
  2132. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  2133. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  2134. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  2135. };
  2136. /**
  2137. * enum qca_vendor_interop_issues_ap_type - interop issues type
  2138. * This enum defines the valid set of values of interop issues type. These
  2139. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  2140. *
  2141. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  2142. * when the STA's Qpower feature is enabled.
  2143. */
  2144. enum qca_vendor_interop_issues_ap_type {
  2145. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  2146. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  2147. };
  2148. /**
  2149. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  2150. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  2151. *
  2152. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  2153. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  2154. * 32-bit unsigned value, The type defined in enum
  2155. * qca_vendor_interop_issues_ap_type are used.
  2156. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  2157. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  2158. * it is present and mandatory for the command but is not used for
  2159. * the event since only a single BSSID is reported in an event.
  2160. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  2161. * 6-byte MAC address. It is used within the nested
  2162. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  2163. * and without such encapsulation in the event case.
  2164. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  2165. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  2166. */
  2167. enum qca_vendor_attr_interop_issues_ap {
  2168. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  2169. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  2170. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  2171. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  2172. /* keep last */
  2173. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  2174. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  2175. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  2176. };
  2177. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  2178. enum qca_wlan_vendor_attr_ll_stats_set {
  2179. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  2180. /* Unsigned 32-bit value */
  2181. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  2182. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
  2183. /* keep last */
  2184. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  2185. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  2186. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
  2187. };
  2188. /**
  2189. * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
  2190. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
  2191. *
  2192. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
  2193. *
  2194. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
  2195. * radio statistics.
  2196. *
  2197. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
  2198. * statistics within radio statistics.
  2199. *
  2200. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
  2201. * radio statistics.
  2202. *
  2203. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
  2204. *
  2205. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
  2206. * within interface statistics.
  2207. *
  2208. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
  2209. * interface statistics.
  2210. *
  2211. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
  2212. * (min, max, avg) statistics within AC statistics.
  2213. *
  2214. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
  2215. * on this interface.
  2216. *
  2217. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
  2218. * statistics depending on the peer_mac.
  2219. */
  2220. enum qca_wlan_ll_stats_clr_req_bitmap {
  2221. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0),
  2222. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1),
  2223. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2),
  2224. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3),
  2225. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4),
  2226. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5),
  2227. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6),
  2228. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7),
  2229. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8),
  2230. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9),
  2231. };
  2232. enum qca_wlan_vendor_attr_ll_stats_clr {
  2233. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  2234. /* Unsigned 32bit bitmap for clearing statistics, specified
  2235. * in the enum qca_wlan_ll_stats_clr_req_bitmap.
  2236. */
  2237. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
  2238. /* Unsigned 8 bit value: Request to stop statistics collection */
  2239. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
  2240. /* Unsigned 32 bit bitmap: Response from the driver
  2241. * for the cleared statistics
  2242. */
  2243. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
  2244. /* Unsigned 8 bit value: Response from driver/firmware
  2245. * for the stop request
  2246. */
  2247. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
  2248. /* keep last */
  2249. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  2250. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  2251. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
  2252. };
  2253. /**
  2254. * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
  2255. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
  2256. *
  2257. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
  2258. *
  2259. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
  2260. *
  2261. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
  2262. *
  2263. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
  2264. */
  2265. enum qca_wlan_ll_stats_get_req_bitmap {
  2266. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0),
  2267. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1),
  2268. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2),
  2269. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3),
  2270. };
  2271. enum qca_wlan_vendor_attr_ll_stats_get {
  2272. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  2273. /* Unsigned 32 bit value provided by the caller issuing the GET stats
  2274. * command. When reporting the stats results, the driver uses the same
  2275. * value to indicate which GET request the results correspond to.
  2276. */
  2277. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
  2278. /* Unsigned 32 bit value - bit mask to identify what statistics are
  2279. * requested for retrieval specified in the enum
  2280. * qca_wlan_ll_stats_get_req_bitmap
  2281. */
  2282. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
  2283. /* keep last */
  2284. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  2285. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  2286. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
  2287. };
  2288. enum qca_wlan_vendor_attr_ll_stats_results {
  2289. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  2290. /*
  2291. * For Multi Link Operation (MLO) connection, per-link statistics will
  2292. * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
  2293. * cumulative statistics will be sent outside of
  2294. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
  2295. * compatibility with legacy user space. Attributes which don't have
  2296. * explicit documentation for MLO will be sent only outside of
  2297. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
  2298. * don't depend on whether the connection is MLO capable or not, e.g.,
  2299. * radio and channel specific attributes.
  2300. */
  2301. /* Unsigned 32bit value. Used by the driver; must match the request id
  2302. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  2303. */
  2304. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  2305. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2306. * the link with the best RSSI outside
  2307. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2308. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2309. */
  2310. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  2311. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2312. * the link with the best RSSI outside
  2313. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2314. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2315. */
  2316. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  2317. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2318. * the link with the best RSSI outside
  2319. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2320. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2321. */
  2322. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  2323. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2324. * the link with the best RSSI outside
  2325. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2326. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2327. */
  2328. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  2329. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2330. * the link with the best RSSI outside
  2331. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2332. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2333. */
  2334. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  2335. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2336. * the link with the best RSSI outside
  2337. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2338. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2339. */
  2340. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  2341. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2342. * the link with the best RSSI outside
  2343. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2344. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2345. */
  2346. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  2347. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  2348. * nested within the interface stats.
  2349. */
  2350. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  2351. * Type = enum wifi_interface_mode.
  2352. */
  2353. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  2354. /* Interface MAC address. An array of 6 Unsigned int8 */
  2355. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  2356. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  2357. * AUTHENTICATING, etc. valid for STA, CLI only.
  2358. */
  2359. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  2360. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  2361. */
  2362. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  2363. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  2364. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  2365. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  2366. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  2367. /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
  2368. * address of the AP. An array of 6 unsigned 8 bit values
  2369. */
  2370. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  2371. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  2372. * values.
  2373. */
  2374. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  2375. /* Country string for this association. An array of 3 unsigned 8 bit
  2376. * values.
  2377. */
  2378. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  2379. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  2380. * be nested within the interface stats.
  2381. * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2382. * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
  2383. * indicate the aggregate of all links outside
  2384. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2385. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
  2386. * indicate value of the MLO link with the best RSSI outside
  2387. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2388. * These attributes indicate the link specific value inside
  2389. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2390. */
  2391. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  2392. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  2393. /* Unsigned int 32 value corresponding to respective AC */
  2394. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2395. /* Unsigned int 32 value corresponding to respective AC */
  2396. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2397. /* Unsigned int 32 value corresponding to respective AC */
  2398. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2399. /* Unsigned int 32 value corresponding to respective AC */
  2400. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2401. /* Unsigned int 32 value corresponding to respective AC */
  2402. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2403. /* Unsigned int 32 value corresponding to respective AC */
  2404. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2405. /* Unsigned int 32 value corresponding to respective AC */
  2406. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2407. /* Unsigned int 32 value corresponding to respective AC */
  2408. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2409. /* Unsigned int 32 value corresponding to respective AC */
  2410. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2411. /* Unsigned int 32 values corresponding to respective AC */
  2412. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2413. /* Unsigned int 32 values corresponding to respective AC */
  2414. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2415. /* Unsigned int 32 values corresponding to respective AC */
  2416. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2417. /* Unsigned int 32 values corresponding to respective AC */
  2418. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2419. /* Unsigned int 32 values corresponding to respective AC */
  2420. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2421. /* Unsigned 32 bit value. Number of peers */
  2422. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2423. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  2424. * nested within the interface stats.
  2425. */
  2426. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  2427. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2428. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  2429. * 8 bit values.
  2430. */
  2431. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2432. /* Unsigned int 32 bit value representing capabilities corresponding
  2433. * to respective peer.
  2434. */
  2435. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2436. /* Unsigned 32 bit value. Number of rates */
  2437. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2438. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2439. * are nested within the rate stat.
  2440. */
  2441. /* Wi-Fi Rate - separate attributes defined for individual fields */
  2442. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  2443. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2444. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  2445. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2446. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  2447. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2448. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  2449. * in the units of 0.5 Mbps HT/VHT it would be MCS index
  2450. */
  2451. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2452. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  2453. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2454. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  2455. * nested within the peer info stats.
  2456. */
  2457. /* Unsigned int 32 bit value. Number of successfully transmitted data
  2458. * packets, i.e., with ACK received corresponding to the respective
  2459. * rate.
  2460. */
  2461. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2462. /* Unsigned int 32 bit value. Number of received data packets
  2463. * corresponding to the respective rate.
  2464. */
  2465. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2466. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  2467. * received corresponding to the respective rate.
  2468. */
  2469. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2470. /* Unsigned int 32 bit value. Total number of data packet retries for
  2471. * the respective rate.
  2472. */
  2473. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2474. /* Unsigned int 32 bit value. Total number of short data packet retries
  2475. * for the respective rate.
  2476. */
  2477. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2478. /* Unsigned int 32 bit value. Total number of long data packet retries
  2479. * for the respective rate.
  2480. */
  2481. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2482. /* Unsigned 32 bit value. This is used to indicate radio ID of the radio
  2483. * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2484. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
  2485. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
  2486. * of the MLO link.
  2487. */
  2488. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2489. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2490. * accruing over time.
  2491. */
  2492. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2493. /* Unsigned 32 bit value. Total number of msecs the radio is
  2494. * transmitting accruing over time.
  2495. */
  2496. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2497. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2498. * receive accruing over time.
  2499. */
  2500. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2501. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2502. * to all scan accruing over time.
  2503. */
  2504. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2505. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2506. * to NAN accruing over time.
  2507. */
  2508. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2509. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2510. * to GSCAN accruing over time.
  2511. */
  2512. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2513. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2514. * to roam scan accruing over time.
  2515. */
  2516. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2517. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2518. * to PNO scan accruing over time.
  2519. */
  2520. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2521. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2522. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2523. */
  2524. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2525. /* Unsigned 32 bit value. Number of channels. */
  2526. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2527. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2528. * be nested within the channel stats.
  2529. */
  2530. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2531. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2532. /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
  2533. * indicate the primary frequency of the channel when
  2534. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2535. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
  2536. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
  2537. * on which the MLO link is operating.
  2538. */
  2539. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2540. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2541. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2542. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2543. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2544. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2545. * nested within the radio stats.
  2546. */
  2547. /* Unsigned int 32 bit value representing total number of msecs the
  2548. * radio is awake on that channel accruing over time, corresponding to
  2549. * the respective channel.
  2550. */
  2551. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2552. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2553. * register is busy accruing over time corresponding to the respective
  2554. * channel.
  2555. */
  2556. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2557. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2558. /* Signifies the nested list of channel attributes
  2559. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
  2560. */
  2561. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2562. /* Signifies the nested list of peer info attributes
  2563. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
  2564. * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
  2565. * indicate on which link the peer is connected.
  2566. */
  2567. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2568. /* Signifies the nested list of rate info attributes
  2569. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2570. */
  2571. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2572. /* Signifies the nested list of wmm info attributes
  2573. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2574. */
  2575. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2576. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2577. * that more stats, e.g., peers or radio, are to follow in the next
  2578. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2579. * Otherwise, it is set to 0.
  2580. */
  2581. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2582. /* Unsigned 64 bit value. For an MLO connection, indicates the value of
  2583. * the link with the best RSSI outside
  2584. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2585. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2586. */
  2587. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2588. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2589. * the link with the best RSSI outside
  2590. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2591. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2592. */
  2593. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2594. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2595. * the link with the best RSSI outside
  2596. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2597. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2598. */
  2599. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2600. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2601. * the link with the best RSSI outside
  2602. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2603. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2604. */
  2605. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2606. /* Unsigned 32 bit value */
  2607. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2608. /* Unsigned 32 bit value */
  2609. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2610. /* Number of msecs the radio spent in transmitting for each power level
  2611. */
  2612. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2613. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2614. * the link with the best RSSI outside
  2615. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2616. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2617. */
  2618. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2619. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2620. * the link with the best RSSI outside
  2621. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2622. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2623. */
  2624. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2625. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2626. * the link with the best RSSI outside
  2627. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2628. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2629. */
  2630. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2631. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2632. * the link with the best RSSI outside
  2633. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2634. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2635. */
  2636. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2637. /* Unsigned int 32 value.
  2638. * Pending MSDUs corresponding to respective AC.
  2639. */
  2640. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
  2641. /* u32 value representing total time in milliseconds for which the radio
  2642. * is transmitting on this channel. This attribute will be nested
  2643. * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2644. */
  2645. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2646. /* u32 value representing total time in milliseconds for which the radio
  2647. * is receiving all 802.11 frames intended for this device on this
  2648. * channel. This attribute will be nested within
  2649. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2650. */
  2651. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2652. /* u8 value representing the channel load percentage. Possible values
  2653. * are 0-100.
  2654. */
  2655. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2656. /* u8 value representing the time slicing duty cycle percentage.
  2657. * Possible values are 0-100. For an MLO connection, indicates the value
  2658. * of the link with the best RSSI outside
  2659. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2660. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2661. */
  2662. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
  2663. /* Unsigned 32 bit value. The number of Beacon frames which are received
  2664. * from the associated AP and indicate buffered unicast frame(s) for us
  2665. * in the TIM element. For an MLO connection, indicates the value of the
  2666. * link with the best RSSI outside
  2667. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2668. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2669. */
  2670. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
  2671. /* Unsigned 32 bit value. The total number of Beacon frames received
  2672. * from the associated AP that have wrongly indicated buffered unicast
  2673. * traffic in the TIM element for us.
  2674. * Below scenarios will be considered as wrong TIM element beacon:
  2675. * 1) The related TIM element is set in the beacon for STA but STA
  2676. * doesn’t receive any unicast data after this beacon.
  2677. * 2) The related TIM element is still set in the beacon for STA
  2678. * after STA has indicated power save exit by QoS Null Data frame.
  2679. * For an MLO connection, indicates the value of the link with the best
  2680. * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
  2681. * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2682. */
  2683. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
  2684. /* Signed 32 bit value. It represents the noise floor calibration value.
  2685. * Possible values are -120~-50 dBm. For an MLO connection, indicates
  2686. * the value of the link with the best RSSI outside
  2687. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2688. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2689. */
  2690. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
  2691. /* Attribute used for padding for 64-bit alignment */
  2692. QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
  2693. /* Unsigned u8 value, link ID of an MLO link. Used inside nested
  2694. * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
  2695. * link ID of the MLO link for which the statistics are embedded in the
  2696. * nested attribute. Used inside nested attribute
  2697. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
  2698. * link ID of the peer.
  2699. */
  2700. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
  2701. /* A nested array of attributes for each MLO link, each containing
  2702. * per-link statistics of a multi link connection. The attributes used
  2703. * inside this nested attribute are defined in enum
  2704. * qca_wlan_vendor_attr_ll_stats_results.
  2705. *
  2706. * For non-MLO connection, this attribute is not present and the
  2707. * statistics will be sent outside this attribute (without nesting).
  2708. *
  2709. * For MLO connection, this attribute is present and also cumulative
  2710. * statistics of all the links will be sent outside of this attribute
  2711. * to be compatible with legacy user space.
  2712. */
  2713. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
  2714. /* keep last */
  2715. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2716. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2717. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2718. };
  2719. enum qca_wlan_vendor_attr_ll_stats_type {
  2720. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2721. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2722. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2723. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2724. /* keep last */
  2725. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2726. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2727. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2728. };
  2729. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2730. /**
  2731. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2732. *
  2733. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2734. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2735. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2736. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2737. */
  2738. enum qca_wlan_vendor_attr_get_supported_features {
  2739. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2740. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2741. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2742. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2743. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2744. };
  2745. /**
  2746. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2747. *
  2748. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2749. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2750. * value
  2751. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2752. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2753. */
  2754. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2755. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2756. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2757. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2758. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2759. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2760. };
  2761. /**
  2762. * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
  2763. * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
  2764. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
  2765. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
  2766. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
  2767. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
  2768. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
  2769. */
  2770. enum qca_wlan_vendor_scan_priority {
  2771. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
  2772. QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
  2773. QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
  2774. QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
  2775. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
  2776. };
  2777. /**
  2778. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2779. *
  2780. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2781. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2782. * with frequencies to be scanned (in MHz)
  2783. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2784. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2785. * rates to be included
  2786. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2787. * at non CCK rate in 2GHz band
  2788. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2789. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2790. * driver for the specific scan request
  2791. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2792. * request decoded as in enum scan_status
  2793. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2794. * scan flag is set
  2795. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2796. * randomisation
  2797. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2798. * specific BSSID to scan for.
  2799. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2800. * microseconds. This is a common value which applies across all
  2801. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2802. * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
  2803. * other scan requests. It is a u32 attribute and takes values from enum
  2804. * qca_wlan_vendor_scan_priority. This is an optional attribute.
  2805. * If this attribute is not configured, the driver shall use
  2806. * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
  2807. */
  2808. enum qca_wlan_vendor_attr_scan {
  2809. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2810. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2811. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2812. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2813. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2814. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2815. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2816. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2817. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2818. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2819. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2820. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2821. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2822. QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
  2823. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2824. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2825. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2826. };
  2827. /**
  2828. * enum scan_status - Specifies the valid values the vendor scan attribute
  2829. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2830. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2831. * new scan results
  2832. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2833. */
  2834. enum scan_status {
  2835. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2836. VENDOR_SCAN_STATUS_ABORTED,
  2837. VENDOR_SCAN_STATUS_MAX,
  2838. };
  2839. /**
  2840. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2841. *
  2842. * NL attributes for data used by
  2843. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2844. *
  2845. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2846. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2847. * Unsigned 32-bit value
  2848. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2849. * Unsigned 32-bit value
  2850. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2851. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2852. * combinations
  2853. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2854. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2855. */
  2856. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2857. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2858. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2859. = 1,
  2860. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2861. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2862. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2863. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2864. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2865. };
  2866. /**
  2867. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2868. *
  2869. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2870. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2871. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2872. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2873. */
  2874. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2875. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2876. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2877. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2878. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2879. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2880. };
  2881. /**
  2882. * enum qca_vendor_attr_wisa_cmd
  2883. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2884. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2885. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2886. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2887. * WISA setup vendor commands
  2888. */
  2889. enum qca_vendor_attr_wisa_cmd {
  2890. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2891. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2892. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2893. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2894. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2895. };
  2896. enum qca_roaming_policy {
  2897. QCA_ROAMING_NOT_ALLOWED,
  2898. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2899. };
  2900. /**
  2901. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2902. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2903. *
  2904. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2905. * reasons.
  2906. *
  2907. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2908. * the configured threshold.
  2909. *
  2910. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2911. * beacon misses from the then connected AP.
  2912. *
  2913. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2914. * by the connected AP.
  2915. *
  2916. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2917. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2918. * not poor.
  2919. *
  2920. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2921. * or environment being very noisy / congested.
  2922. *
  2923. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2924. * from the user (user space).
  2925. *
  2926. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2927. * connected AP.
  2928. *
  2929. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2930. * breaching out the configured threshold.
  2931. *
  2932. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2933. * transition request.
  2934. *
  2935. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2936. * there is no data activity with the AP and the current rssi falls below a
  2937. * certain threshold.
  2938. *
  2939. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2940. * deauthentication or disassociation frames received from the connected AP.
  2941. *
  2942. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2943. * scan that happens when there is no candidate AP found during the poor
  2944. * RSSI scan trigger.
  2945. *
  2946. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2947. * results obtained from an external scan (not aimed at roaming).
  2948. *
  2949. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2950. * connection is established when the station is connected in 2.4 Ghz band.
  2951. *
  2952. * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
  2953. * failures to the connected AP.
  2954. */
  2955. enum qca_roam_reason {
  2956. QCA_ROAM_REASON_UNKNOWN,
  2957. QCA_ROAM_REASON_PER,
  2958. QCA_ROAM_REASON_BEACON_MISS,
  2959. QCA_ROAM_REASON_POOR_RSSI,
  2960. QCA_ROAM_REASON_BETTER_RSSI,
  2961. QCA_ROAM_REASON_CONGESTION,
  2962. QCA_ROAM_REASON_USER_TRIGGER,
  2963. QCA_ROAM_REASON_BTM,
  2964. QCA_ROAM_REASON_BSS_LOAD,
  2965. QCA_ROAM_REASON_WTC,
  2966. QCA_ROAM_REASON_IDLE,
  2967. QCA_ROAM_REASON_DISCONNECTION,
  2968. QCA_ROAM_REASON_PERIODIC_TIMER,
  2969. QCA_ROAM_REASON_BACKGROUND_SCAN,
  2970. QCA_ROAM_REASON_BT_ACTIVITY,
  2971. QCA_ROAM_REASON_STA_KICKOUT,
  2972. };
  2973. /**
  2974. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2975. *
  2976. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2977. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2978. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2979. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2980. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2981. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2982. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2983. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2984. * Indicates the status of re-association requested by user space for
  2985. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2986. * Type u16.
  2987. * Represents the status code from AP. Use
  2988. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2989. * real status code for failures.
  2990. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2991. * This attribute indicates that the old association was maintained when
  2992. * a re-association is requested by user space and that re-association
  2993. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2994. * remain associated with the BSS with which the association was in
  2995. * place when being requested to roam). Used along with
  2996. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2997. * re-association status. Type flag.
  2998. * This attribute is applicable only for re-association failure cases.
  2999. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  3000. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  3001. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  3002. * seq number
  3003. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  3004. * representing the reasons for the roaming. Defined by enum
  3005. * qca_roam_reason.
  3006. */
  3007. enum qca_wlan_vendor_attr_roam_auth {
  3008. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  3009. /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
  3010. * of the roamed AP for MLO roaming.
  3011. */
  3012. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  3013. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  3014. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  3015. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  3016. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  3017. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  3018. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  3019. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  3020. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  3021. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  3022. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  3023. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  3024. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  3025. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  3026. /* A nested attribute containing per-link information of all the links
  3027. * of MLO connection done while roaming. The attributes used inside this
  3028. * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
  3029. */
  3030. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
  3031. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  3032. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  3033. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  3034. };
  3035. /**
  3036. * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
  3037. * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
  3038. *
  3039. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
  3040. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
  3041. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
  3042. */
  3043. enum qca_wlan_vendor_attr_mlo_links {
  3044. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
  3045. QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
  3046. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
  3047. QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
  3048. /* Keep last */
  3049. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
  3050. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
  3051. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
  3052. };
  3053. /**
  3054. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  3055. *
  3056. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  3057. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  3058. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  3059. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  3060. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  3061. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  3062. */
  3063. enum qca_wlan_vendor_attr_wifi_config {
  3064. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  3065. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  3066. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  3067. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  3068. /* keep last */
  3069. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  3070. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  3071. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  3072. };
  3073. /**
  3074. * enum qca_wlan_epno_type - the type of request to the EPNO command
  3075. * @QCA_WLAN_EPNO: epno type request
  3076. * @QCA_WLAN_PNO: pno type request
  3077. */
  3078. enum qca_wlan_epno_type {
  3079. QCA_WLAN_EPNO,
  3080. QCA_WLAN_PNO
  3081. };
  3082. /**
  3083. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  3084. *
  3085. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  3086. *
  3087. * NL attributes for data used by
  3088. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  3089. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  3090. * Unsigned 32-bit value; pno passpoint number of networks
  3091. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  3092. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  3093. * attributes. Array size =
  3094. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  3095. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  3096. * Unsigned 32-bit value; network id
  3097. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  3098. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  3099. * realm, 0 if unspecified.
  3100. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  3101. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  3102. * to match, 0 if unspecified.
  3103. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  3104. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  3105. * unspecified.
  3106. *
  3107. * NL attributes for data used by
  3108. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  3109. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  3110. * Unsigned 32-bit value; set pno number of networks
  3111. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  3112. * Array of nested
  3113. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  3114. * attributes. Array size =
  3115. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  3116. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  3117. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  3118. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  3119. * Signed 8-bit value; threshold for considering this SSID as found,
  3120. * required granularity for this threshold is 4dBm to 8dBm
  3121. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  3122. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  3123. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  3124. * Unsigned 8-bit value; auth bit field for matching WPA IE
  3125. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  3126. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  3127. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  3128. * Nested attribute to send the channel list
  3129. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  3130. * Unsigned 32-bit value; indicates the Interval between PNO scan
  3131. * cycles in msec
  3132. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  3133. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  3134. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  3135. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  3136. * This attribute is obsolete now.
  3137. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  3138. * Signed 32-bit value; the maximum score that a network
  3139. * can have before bonuses
  3140. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  3141. * Signed 32-bit value; only report when there is a network's
  3142. * score this much higher han the current connection
  3143. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  3144. * Signed 32-bit value; score bonus for all networks with
  3145. * the same network flag
  3146. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  3147. * Signed 32-bit value; score bonus for networks that are not open
  3148. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  3149. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  3150. * 5GHz networks
  3151. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  3152. * Unsigned 32-bit value, representing the PNO Request ID
  3153. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  3154. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  3155. */
  3156. enum qca_wlan_vendor_attr_pno_config_params {
  3157. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  3158. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  3159. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  3160. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  3161. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  3162. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  3163. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  3164. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  3165. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  3166. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  3167. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  3168. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  3169. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  3170. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  3171. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  3172. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  3173. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  3174. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  3175. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  3176. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  3177. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  3178. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  3179. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  3180. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  3181. /* keep last */
  3182. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  3183. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  3184. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  3185. };
  3186. /**
  3187. * enum qca_scan_freq_list_type: Frequency list types
  3188. *
  3189. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  3190. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3191. * a preferred frequency list for roaming.
  3192. *
  3193. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  3194. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3195. * a specific frequency list for roaming.
  3196. */
  3197. enum qca_scan_freq_list_type {
  3198. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  3199. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  3200. };
  3201. /**
  3202. * enum qca_roam_scan_scheme: scan scheme
  3203. *
  3204. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  3205. * Indicates the driver to not scan on a Roam Trigger scenario, but
  3206. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  3207. * disconnect from the current connected AP by notifying a failure
  3208. * code in the BTM response.
  3209. *
  3210. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  3211. * trigger partial frequency scans. These frequencies are the ones learnt
  3212. * or maintained by the driver based on the probability of finding the
  3213. * BSSID's in the ESS for which the roaming is triggered.
  3214. *
  3215. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  3216. * trigger the scan on all the valid frequencies to find the better
  3217. * candidates to roam.
  3218. */
  3219. enum qca_roam_scan_scheme {
  3220. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  3221. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  3222. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  3223. };
  3224. /**
  3225. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  3226. *
  3227. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  3228. * List of frequencies in MHz to be considered for a roam scan.
  3229. *
  3230. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  3231. * Type of frequency list scheme being configured/gotten as defined by the
  3232. * enum qca_scan_freq_list_type.
  3233. */
  3234. enum qca_vendor_attr_scan_freq_list_scheme {
  3235. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  3236. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  3237. /* keep last */
  3238. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  3239. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  3240. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  3241. };
  3242. /*
  3243. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  3244. *
  3245. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  3246. * a bad packet error rates (PER).
  3247. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  3248. * based on beacon misses from the connected AP.
  3249. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  3250. * due to poor RSSI of the connected AP.
  3251. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  3252. * upon finding a BSSID with a better RSSI than the connected BSSID.
  3253. * Here the RSSI of the current BSSID need not be poor.
  3254. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  3255. * by triggering a periodic scan to find a better AP to roam.
  3256. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  3257. * when the connected channel environment is too noisy/congested.
  3258. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  3259. * when BTM Request frame is received from the connected AP.
  3260. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  3261. * when the channel utilization is goes above the configured threshold.
  3262. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  3263. * based on the request from the user (space).
  3264. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  3265. * device receives Deauthentication/Disassociation frame from connected
  3266. * AP.
  3267. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  3268. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  3269. * is determined to be a poor one.
  3270. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  3271. * based on continuous TX Data Frame failures to the connected AP.
  3272. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  3273. * based on the scan results obtained from an external scan (not
  3274. * triggered to aim roaming)
  3275. *
  3276. * Set the corresponding roam trigger reason bit to consider it for roam
  3277. * trigger.
  3278. * Userspace can set multiple bits and send to the driver. The driver shall
  3279. * consider all of them to trigger/initiate a roam scan.
  3280. */
  3281. enum qca_vendor_roam_triggers {
  3282. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  3283. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  3284. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  3285. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  3286. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  3287. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  3288. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  3289. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  3290. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  3291. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  3292. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  3293. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  3294. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  3295. };
  3296. /*
  3297. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  3298. * fail reasons. This enum value is used in
  3299. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  3300. *
  3301. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  3302. * able to trigger the scan.
  3303. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  3304. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  3305. * scan.
  3306. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  3307. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  3308. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  3309. * status code.
  3310. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  3311. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  3312. * frame.
  3313. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  3314. * with error status code.
  3315. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  3316. * received.
  3317. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  3318. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  3319. * frame.
  3320. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  3321. * internally before transmission.
  3322. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  3323. * Request frame.
  3324. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  3325. * dropped internally.
  3326. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  3327. * times out.
  3328. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  3329. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  3330. * internally.
  3331. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  3332. * M2 frame.
  3333. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  3334. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  3335. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  3336. * internally.
  3337. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  3338. * frame.
  3339. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  3340. * started for final beacon miss case.
  3341. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  3342. * received from the AP during roaming handoff.
  3343. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  3344. * or host is suspended and gives the indication of the last roamed AP only
  3345. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  3346. * progress, this ongoing roaming is aborted and the last roamed AP is
  3347. * indicated to host.
  3348. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  3349. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  3350. * out.
  3351. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  3352. * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
  3353. * current network conditions are fine.
  3354. */
  3355. enum qca_vendor_roam_fail_reasons {
  3356. QCA_ROAM_FAIL_REASON_NONE = 0,
  3357. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  3358. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  3359. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  3360. QCA_ROAM_FAIL_REASON_HOST = 4,
  3361. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  3362. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  3363. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  3364. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  3365. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  3366. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  3367. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  3368. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  3369. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  3370. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  3371. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  3372. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  3373. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  3374. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  3375. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  3376. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  3377. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  3378. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  3379. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  3380. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  3381. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  3382. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  3383. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  3384. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  3385. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  3386. QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
  3387. };
  3388. /*
  3389. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  3390. * invoke fail reasons. This enum value is used in
  3391. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  3392. *
  3393. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  3394. * in roam invoke command.
  3395. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  3396. * enabled.
  3397. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  3398. * length is invalid.
  3399. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  3400. * in progress.
  3401. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  3402. * of the AP in the roam invoke command to firmware. This reason is sent by the
  3403. * firmware when the given AP is configured to be ignored or SSID/security
  3404. * does not match.
  3405. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  3406. * firmware internal reasons.
  3407. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  3408. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  3409. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  3410. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  3411. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  3412. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  3413. */
  3414. enum qca_vendor_roam_invoke_fail_reasons {
  3415. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  3416. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  3417. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  3418. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  3419. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  3420. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  3421. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  3422. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  3423. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  3424. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  3425. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  3426. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  3427. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  3428. };
  3429. /**
  3430. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  3431. *
  3432. * Each attribute carries a weightage in percentage (%).
  3433. *
  3434. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  3435. * Represents the weightage to be given for the RSSI selection
  3436. * criteria among other parameters.
  3437. *
  3438. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  3439. * Represents the weightage to be given for the rate selection
  3440. * criteria among other parameters.
  3441. *
  3442. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  3443. * Represents the weightage to be given for the band width selection
  3444. * criteria among other parameters.
  3445. *
  3446. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  3447. * Represents the weightage to be given for the band selection
  3448. * criteria among other parameters.
  3449. *
  3450. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  3451. * Represents the weightage to be given for the NSS selection
  3452. * criteria among other parameters.
  3453. *
  3454. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  3455. * Represents the weightage to be given for the channel congestion
  3456. * selection criteria among other parameters.
  3457. *
  3458. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  3459. * Represents the weightage to be given for the beamforming selection
  3460. * criteria among other parameters.
  3461. *
  3462. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  3463. * Represents the weightage to be given for the OCE selection
  3464. * criteria among other parameters.
  3465. */
  3466. enum qca_vendor_attr_roam_candidate_selection_criteria {
  3467. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  3468. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  3469. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  3470. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  3471. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  3472. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  3473. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  3474. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  3475. /* keep last */
  3476. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  3477. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  3478. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  3479. };
  3480. /**
  3481. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  3482. * The following attributes are used to set/get/clear the respective
  3483. * configurations to/from the driver.
  3484. * For the get, the attribute for the configuration to be queried shall
  3485. * carry any of its acceptable values to the driver. In return, the driver
  3486. * shall send the configured values within the same attribute to the user
  3487. * space.
  3488. *
  3489. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  3490. * Signifies to enable/disable roam control in driver.
  3491. * 1-enable, 0-disable
  3492. * Enable: Mandates the driver to do the further roams using the
  3493. * configuration parameters set through
  3494. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  3495. * Disable: Disables the driver/firmware roaming triggered through
  3496. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  3497. * expected to continue with the default configurations.
  3498. *
  3499. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  3500. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  3501. * Roam control status is obtained through this attribute.
  3502. *
  3503. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  3504. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  3505. * is to be cleared in the driver.
  3506. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  3507. * and shall be ignored if used with other sub commands.
  3508. * If this attribute is specified along with subcmd
  3509. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  3510. * all other attributes, if there are any.
  3511. * If this attribute is not specified when the subcmd
  3512. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  3513. * clear the data corresponding to the attributes specified.
  3514. *
  3515. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  3516. * list of frequencies and its type, represented by
  3517. * enum qca_vendor_attr_scan_freq_list_scheme.
  3518. * Frequency list and its type are mandatory for this attribute to set
  3519. * the frequencies.
  3520. * Frequency type is mandatory for this attribute to get the frequencies
  3521. * and the frequency list is obtained through
  3522. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  3523. * Frequency list type is mandatory for this attribute to clear the
  3524. * frequencies.
  3525. *
  3526. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  3527. * Carries the value of scan period in seconds to set.
  3528. * The value of scan period is obtained with the same attribute for get.
  3529. * Clears the scan period in the driver when specified with clear command.
  3530. * Scan period is the idle time in seconds between each subsequent
  3531. * channel scans.
  3532. *
  3533. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  3534. * Carries the value of full scan period in seconds to set.
  3535. * The value of full scan period is obtained with the same attribute for
  3536. * get.
  3537. * Clears the full scan period in the driver when specified with clear
  3538. * command. Full scan period is the idle period in seconds between two
  3539. * successive full channel roam scans.
  3540. *
  3541. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  3542. * Carries a bitmap of the roam triggers specified in
  3543. * enum qca_vendor_roam_triggers.
  3544. * The driver shall enable roaming by enabling corresponding roam triggers
  3545. * based on the trigger bits sent with this attribute.
  3546. * If this attribute is not configured, the driver shall proceed with
  3547. * default behavior.
  3548. * The bitmap configured is obtained with the same attribute for get.
  3549. * Clears the bitmap configured in driver when specified with clear
  3550. * command.
  3551. *
  3552. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3553. * weightage in percentage (%) to be given for each selection criteria.
  3554. * Different roam candidate selection criteria are represented by
  3555. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3556. * The driver shall select the roam candidate based on corresponding
  3557. * candidate selection scores sent.
  3558. *
  3559. * An empty nested attribute is used to indicate that no specific
  3560. * preference score/criteria is configured (i.e., to disable this mechanism
  3561. * in the set case and to show that the mechanism is disabled in the get
  3562. * case).
  3563. *
  3564. * Userspace can send multiple attributes out of this enum to the driver.
  3565. * Since this attribute represents the weight/percentage of preference for
  3566. * the respective selection criteria, it is preferred to configure 100%
  3567. * total weightage. The value in each attribute or cumulative weight of the
  3568. * values in all the nested attributes should not exceed 100%. The driver
  3569. * shall reject such configuration.
  3570. *
  3571. * If the weights configured through this attribute are less than 100%,
  3572. * the driver shall honor the weights (x%) passed for the corresponding
  3573. * selection criteria and choose/distribute rest of the weight (100-x)%
  3574. * for the other selection criteria, based on its internal logic.
  3575. *
  3576. * The selection criteria configured is obtained with the same
  3577. * attribute for get.
  3578. *
  3579. * Clears the selection criteria configured in the driver when specified
  3580. * with clear command.
  3581. *
  3582. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3583. * Represents value of scan frequency scheme from
  3584. * enum qca_roam_scan_scheme.
  3585. *
  3586. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3587. * signifying the RSSI threshold of the current connected AP, indicating
  3588. * the driver to trigger roam only when the current connected AP's RSSI
  3589. * is lesser than this threshold.
  3590. *
  3591. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3592. * signifying the RSSI threshold of the candidate AP, indicating
  3593. * the driver to trigger roam only to the candidate AP with RSSI
  3594. * better than this threshold. If RSSI thresholds for candidate APs found
  3595. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3596. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3597. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3598. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3599. * will take precedence over the value configured using
  3600. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3601. *
  3602. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3603. * user triggered reason code to be sent to the AP in response to AP's
  3604. * request to trigger the roam if the roaming cannot be triggered.
  3605. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3606. *
  3607. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3608. * Carries a bitmap of the roam triggers specified in
  3609. * enum qca_vendor_roam_triggers.
  3610. * Represents the roam triggers for which the specific scan scheme from
  3611. * enum qca_roam_scan_scheme has to be applied.
  3612. * It's an optional attribute. If this attribute is not configured, but
  3613. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3614. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3615. * all the roams.
  3616. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3617. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3618. * driver shall proceed with the default behavior.
  3619. *
  3620. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3621. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3622. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3623. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3624. * threshold. Optional attribute. If this attribute is not included, then
  3625. * threshold value specified by the
  3626. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3627. *
  3628. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3629. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3630. * band. The driver/firmware shall trigger roaming to the candidate AP
  3631. * found in 5GHz band only if it's RSSI value is better than this
  3632. * threshold. Optional attribute. If this attribute is not included, then
  3633. * threshold value specified by the
  3634. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3635. *
  3636. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3637. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3638. * band. The driver/firmware shall trigger roaming to the candidate AP
  3639. * found in 6GHz band only if it's RSSI value is better than this
  3640. * threshold. Optional attribute. If this attribute is not included, then
  3641. * threshold value specified by the
  3642. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3643. *
  3644. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3645. * Carries bitmask value of bits from &enum qca_set_band and represents
  3646. * all the bands in which roaming is allowed. The configuration is valid
  3647. * until next disconnection. If this attribute is not present, the
  3648. * existing configuration shall be used. By default, roaming is allowed
  3649. * on all bands supported by local device. When the value is set to
  3650. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3651. *
  3652. * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
  3653. * Optional parameter. RX link speed threshold to disable roaming.
  3654. * If the current RX link speed is above the threshold, roaming is not
  3655. * needed. If this attribute is not configured, or if it is set to 0, the
  3656. * driver will not consider the RX link speed in the roaming decision.
  3657. *
  3658. * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
  3659. * Optional parameter. This configuration delays hand-off (in msec) by the
  3660. * specified duration to receive pending rx frames from current BSS.
  3661. *
  3662. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
  3663. * value.
  3664. * During the roam scan, if there are no desired APs found in the partial
  3665. * frequency list, an immediate full scan on all the supported frequencies
  3666. * is initiated as a fallback. This flag controls the frequency list
  3667. * creation for the full scan on the following lines.
  3668. * 1 - Full scan to exclude the frequencies that were already scanned by
  3669. * the previous partial scan.
  3670. * 0 - Full scan to include all the supported frequencies irrespective of
  3671. * the ones part of the earlier partial scan.
  3672. * If this flag is not specified, a full scan shall include all the
  3673. * supported frequencies irrespective of the ones part of an earlier
  3674. * partial scan.
  3675. *
  3676. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
  3677. * value.
  3678. * During the roam scan, if there are no desired APs found in the partial
  3679. * frequency list, an immediate full scan on all the supported frequencies
  3680. * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
  3681. * frequencies, including all PSC frequencies by default. This attribute
  3682. * controls the inclusion of the 6 GHz PSC frequencies for the full scan
  3683. * as following.
  3684. * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
  3685. * prior discovery of any 6 GHz frequency support in the environment.
  3686. * This discovery can happen through a prior RNR, 11k neighbor
  3687. * request, 11v BTM request, host scan, etc.
  3688. * 0 - Default behavior. Full scan to include all the supported 6 GHz
  3689. * PSC frequencies regardless of whether 6 GHz BSSs have been
  3690. * discovered.
  3691. * The default behavior if this flag is not specified is to include all
  3692. * the supported 6 GHz PSC frequencies in the roam full scan.
  3693. */
  3694. enum qca_vendor_attr_roam_control {
  3695. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3696. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3697. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3698. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3699. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3700. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3701. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3702. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3703. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3704. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3705. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3706. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3707. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3708. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3709. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3710. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3711. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3712. QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
  3713. QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
  3714. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
  3715. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
  3716. /* keep last */
  3717. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3718. QCA_ATTR_ROAM_CONTROL_MAX =
  3719. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3720. };
  3721. /**
  3722. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3723. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3724. *
  3725. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3726. * Represents the different roam sub commands referred by
  3727. * enum qca_wlan_vendor_roaming_subcmd.
  3728. *
  3729. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3730. * Represents the Request ID for the specific set of commands.
  3731. * This also helps to map specific set of commands to the respective
  3732. * ID / client. e.g., helps to identify the user entity configuring the
  3733. * Blacklist BSSID and accordingly clear the respective ones with the
  3734. * matching ID.
  3735. *
  3736. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3737. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3738. *
  3739. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3740. * to carry the list of Whitelist SSIDs.
  3741. *
  3742. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3743. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3744. * represent the list of SSIDs to which the firmware/driver can consider
  3745. * to roam to.
  3746. *
  3747. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3748. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3749. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3750. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3751. *
  3752. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3753. * value, RSSI threshold above which 5GHz RSSI is favored.
  3754. *
  3755. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3756. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3757. *
  3758. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3759. * value, factor by which 5GHz RSSI is boosted.
  3760. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3761. *
  3762. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3763. * value, factor by which 5GHz RSSI is penalized.
  3764. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3765. *
  3766. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3767. * value, maximum boost that can be applied to a 5GHz RSSI.
  3768. *
  3769. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3770. * value, boost applied to current BSSID to ensure the currently
  3771. * associated BSSID is favored so as to prevent ping-pong situations.
  3772. *
  3773. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3774. * value, RSSI below which "Alert" roam is enabled.
  3775. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3776. * because the RSSI is low, or because many successive beacons have been
  3777. * lost or other bad link conditions.
  3778. *
  3779. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3780. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3781. * firmware is hunting for a better BSSID or white listed SSID even though
  3782. * the RSSI of the link is good. The parameters enabling the roaming are
  3783. * configured through the PARAM_A_BAND_XX attrbutes.
  3784. *
  3785. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3786. * represents the BSSIDs preferred over others while evaluating them
  3787. * for the roaming.
  3788. *
  3789. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3790. * 32-bit value. Represents the number of preferred BSSIDs set.
  3791. *
  3792. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3793. * address representing the BSSID to be preferred.
  3794. *
  3795. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3796. * 32-bit value, representing the modifier to be applied to the RSSI of
  3797. * the BSSID for the purpose of comparing it with other roam candidate.
  3798. *
  3799. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3800. * represents the BSSIDs to get blacklisted for roaming.
  3801. *
  3802. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3803. * 32-bit value, represents the number of blacklisted BSSIDs.
  3804. *
  3805. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3806. * address representing the Blacklisted BSSID.
  3807. *
  3808. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3809. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3810. * select this BSSID in the worst case (when no other BSSIDs are better).
  3811. *
  3812. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3813. * set/get/clear the roam control config as
  3814. * defined @enum qca_vendor_attr_roam_control.
  3815. *
  3816. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3817. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3818. */
  3819. enum qca_wlan_vendor_attr_roaming_config_params {
  3820. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3821. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3822. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3823. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3824. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3825. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3826. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3827. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3828. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3829. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3830. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3831. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3832. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3833. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3834. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3835. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3836. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3837. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3838. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3839. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3840. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3841. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3842. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3843. /* keep last */
  3844. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3845. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3846. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3847. };
  3848. /**
  3849. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3850. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3851. *
  3852. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3853. * configure the white list SSIDs. These are configured through
  3854. * the following attributes.
  3855. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3856. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3857. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3858. *
  3859. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3860. * configure the Roam params. These parameters are evaluated on the extscan
  3861. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3862. * params.
  3863. *
  3864. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3865. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3866. * to enable/disable Lazy roam.
  3867. *
  3868. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3869. * preference. Contains the attribute
  3870. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3871. * preference.
  3872. *
  3873. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3874. *
  3875. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3876. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3877. * set the same.
  3878. *
  3879. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3880. * roam control config to the driver with the attribute
  3881. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3882. *
  3883. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3884. * roam control config from driver with the attribute
  3885. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3886. * For the get, the attribute for the configuration to be queried shall
  3887. * carry any of its acceptable value to the driver. In return, the driver
  3888. * shall send the configured values within the same attribute to the user
  3889. * space.
  3890. *
  3891. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3892. * roam control config in the driver with the attribute
  3893. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3894. * The driver shall continue with its default roaming behavior when data
  3895. * corresponding to an attribute is cleared.
  3896. */
  3897. enum qca_wlan_vendor_roaming_subcmd {
  3898. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3899. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3900. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3901. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3902. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3903. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3904. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3905. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3906. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3907. };
  3908. /**
  3909. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3910. *
  3911. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3912. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3913. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3914. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3915. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3916. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3917. */
  3918. enum qca_wlan_vendor_attr_get_wifi_info {
  3919. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3920. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3921. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3922. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3923. /* KEEP LAST */
  3924. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3925. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3926. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3927. };
  3928. enum qca_wlan_vendor_attr_logger_results {
  3929. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3930. /*
  3931. * Unsigned 32-bit value; must match the request Id supplied by
  3932. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3933. */
  3934. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3935. /*
  3936. * Unsigned 32-bit value; used to indicate the size of memory
  3937. * dump to be allocated.
  3938. */
  3939. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3940. /* keep last */
  3941. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3942. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3943. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3944. };
  3945. /**
  3946. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3947. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3948. */
  3949. enum qca_wlan_vendor_channel_prop_flags {
  3950. /* Bits 0, 1, 2, and 3 are reserved */
  3951. /* Turbo channel */
  3952. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3953. /* CCK channel */
  3954. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3955. /* OFDM channel */
  3956. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3957. /* 2.4 GHz spectrum channel. */
  3958. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3959. /* 5 GHz spectrum channel */
  3960. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3961. /* Only passive scan allowed */
  3962. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3963. /* Dynamic CCK-OFDM channel */
  3964. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3965. /* GFSK channel (FHSS PHY) */
  3966. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3967. /* Radar found on channel */
  3968. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3969. /* 11a static turbo channel only */
  3970. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3971. /* Half rate channel */
  3972. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3973. /* Quarter rate channel */
  3974. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3975. /* HT 20 channel */
  3976. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3977. /* HT 40 with extension channel above */
  3978. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3979. /* HT 40 with extension channel below */
  3980. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3981. /* HT 40 intolerant */
  3982. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3983. /* VHT 20 channel */
  3984. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  3985. /* VHT 40 with extension channel above */
  3986. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  3987. /* VHT 40 with extension channel below */
  3988. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  3989. /* VHT 80 channel */
  3990. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  3991. /* HT 40 intolerant mark bit for ACS use */
  3992. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  3993. /* Channel temporarily blocked due to noise */
  3994. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  3995. /* VHT 160 channel */
  3996. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  3997. /* VHT 80+80 channel */
  3998. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  3999. /* HE 20 channel */
  4000. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  4001. /* HE 40 with extension channel above */
  4002. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  4003. /* HE 40 with extension channel below */
  4004. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  4005. /* HE 40 intolerant */
  4006. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
  4007. };
  4008. /**
  4009. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  4010. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  4011. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  4012. */
  4013. enum qca_wlan_vendor_channel_prop_flags_2 {
  4014. /* HE 40 intolerant mark bit for ACS use */
  4015. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  4016. /* HE 80 channel */
  4017. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  4018. /* HE 160 channel */
  4019. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  4020. /* HE 80+80 channel */
  4021. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  4022. };
  4023. /**
  4024. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  4025. * each channel. This is used by
  4026. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  4027. */
  4028. enum qca_wlan_vendor_channel_prop_flags_ext {
  4029. /* Radar found on channel */
  4030. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  4031. /* DFS required on channel */
  4032. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  4033. /* DFS required on channel for 2nd band of 80+80 */
  4034. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  4035. /* If channel has been checked for DFS */
  4036. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  4037. /* Excluded in 802.11d */
  4038. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  4039. /* Channel Switch Announcement received on this channel */
  4040. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  4041. /* Ad-hoc is not allowed */
  4042. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  4043. /* Station only channel */
  4044. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  4045. /* DFS radar history for slave device (STA mode) */
  4046. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  4047. /* DFS CAC valid for slave device (STA mode) */
  4048. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  4049. };
  4050. /**
  4051. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  4052. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  4053. * information to start/stop the NUD statistics collection.
  4054. */
  4055. enum qca_attr_nud_stats_set {
  4056. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  4057. /*
  4058. * Flag to start/stop the NUD statistics collection.
  4059. * Start - If included, Stop - If not included
  4060. */
  4061. QCA_ATTR_NUD_STATS_SET_START = 1,
  4062. /* IPv4 address of the default gateway (in network byte order) */
  4063. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  4064. /*
  4065. * Represents the data packet type to be monitored.
  4066. * Host driver tracks the stats corresponding to each data frame
  4067. * represented by these flags.
  4068. * These data packets are represented by
  4069. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  4070. */
  4071. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  4072. /* keep last */
  4073. QCA_ATTR_NUD_STATS_SET_LAST,
  4074. QCA_ATTR_NUD_STATS_SET_MAX =
  4075. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  4076. };
  4077. /**
  4078. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  4079. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4080. * information to start / stop the NUD stats collection.
  4081. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  4082. * Bitmap to Flag to Start / Stop the NUD stats collection
  4083. * Start - If included , Stop - If not included
  4084. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
  4085. * IPv4 address of Default Gateway (in network byte order)
  4086. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4087. * information to start / stop the NUD stats collection.
  4088. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  4089. * Flag to Start / Stop the NUD stats collection
  4090. * Start - If included , Stop - If not included
  4091. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
  4092. * IPv4 address of Default Gateway (in network byte order)
  4093. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4094. * information to start / stop the NUD stats collection.
  4095. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  4096. * Flag to Start / Stop the NUD stats collection
  4097. * Start - If included , Stop - If not included
  4098. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
  4099. * IPv4 address of Default Gateway (in network byte order)
  4100. */
  4101. enum qca_attr_connectivity_check_stats_set {
  4102. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  4103. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  4104. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  4105. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  4106. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  4107. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  4108. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  4109. /* keep last */
  4110. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  4111. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  4112. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  4113. };
  4114. /**
  4115. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  4116. * data types for which the stats have to get collected.
  4117. */
  4118. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  4119. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  4120. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  4121. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  4122. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  4123. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  4124. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  4125. * to represent the stats of respective data type.
  4126. */
  4127. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  4128. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  4129. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  4130. };
  4131. enum qca_attr_connectivity_check_stats {
  4132. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  4133. /* Data packet type for which the stats are collected.
  4134. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  4135. */
  4136. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  4137. /* ID corresponding to the DNS frame for which the respective DNS stats
  4138. * are monitored (u32).
  4139. */
  4140. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  4141. /* source / destination port on which the respective proto stats are
  4142. * collected (u32).
  4143. */
  4144. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  4145. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  4146. /* IPv4/IPv6 address for which the destined data packets are
  4147. * monitored. (in network byte order)
  4148. */
  4149. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  4150. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  4151. /* Data packet Request count received from netdev */
  4152. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  4153. /* Data packet Request count sent to lower MAC from upper MAC */
  4154. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  4155. /* Data packet Request count received by lower MAC from upper MAC */
  4156. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  4157. /* Data packet Request count successfully transmitted by the device */
  4158. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  4159. /* Data packet Response count received by lower MAC */
  4160. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  4161. /* Data packet Response count received by upper MAC */
  4162. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  4163. /* Data packet Response count delivered to netdev */
  4164. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  4165. /* Data Packet Response count that are dropped out of order */
  4166. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  4167. /* keep last */
  4168. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  4169. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  4170. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  4171. };
  4172. /**
  4173. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  4174. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  4175. * NUD statistics collected when queried.
  4176. */
  4177. enum qca_attr_nud_stats_get {
  4178. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  4179. /* ARP Request count from netdev */
  4180. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  4181. /* ARP Request count sent to lower MAC from upper MAC */
  4182. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  4183. /* ARP Request count received by lower MAC from upper MAC */
  4184. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  4185. /* ARP Request count successfully transmitted by the device */
  4186. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  4187. /* ARP Response count received by lower MAC */
  4188. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  4189. /* ARP Response count received by upper MAC */
  4190. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  4191. /* ARP Response count delivered to netdev */
  4192. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  4193. /* ARP Response count delivered to netdev */
  4194. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  4195. /*
  4196. * Flag indicating if the station's link to the AP is active.
  4197. * Active Link - If included, Inactive link - If not included
  4198. */
  4199. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  4200. /*
  4201. * Flag indicating if there is any duplicate address detected (DAD).
  4202. * Yes - If detected, No - If not detected.
  4203. */
  4204. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  4205. /*
  4206. * List of Data types for which the stats are requested.
  4207. * This list does not carry ARP stats as they are done by the
  4208. * above attributes. Represented by enum qca_attr_nud_data_stats.
  4209. */
  4210. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  4211. /* keep last */
  4212. QCA_ATTR_NUD_STATS_GET_LAST,
  4213. QCA_ATTR_NUD_STATS_GET_MAX =
  4214. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  4215. };
  4216. enum qca_wlan_btm_candidate_status {
  4217. QCA_STATUS_ACCEPT = 0,
  4218. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  4219. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  4220. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  4221. QCA_STATUS_REJECT_LOW_RSSI = 4,
  4222. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  4223. QCA_STATUS_REJECT_UNKNOWN = 6,
  4224. };
  4225. enum qca_wlan_vendor_attr_btm_candidate_info {
  4226. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  4227. /* 6-byte MAC address representing the BSSID of transition candidate */
  4228. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  4229. /*
  4230. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  4231. * returned by the driver. It says whether the BSSID provided in
  4232. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  4233. * the driver, if not it specifies the reason for rejection.
  4234. * Note that the user-space can overwrite the transition reject reason
  4235. * codes provided by driver based on more information.
  4236. */
  4237. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  4238. /* keep last */
  4239. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  4240. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  4241. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  4242. };
  4243. enum qca_attr_trace_level {
  4244. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  4245. /*
  4246. * Nested array of the following attributes:
  4247. * QCA_ATTR_TRACE_LEVEL_MODULE,
  4248. * QCA_ATTR_TRACE_LEVEL_MASK.
  4249. */
  4250. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  4251. /*
  4252. * Specific QCA host driver module. Please refer to the QCA host
  4253. * driver implementation to get the specific module ID.
  4254. */
  4255. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  4256. /* Different trace level masks represented in the QCA host driver. */
  4257. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  4258. /* keep last */
  4259. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  4260. QCA_ATTR_TRACE_LEVEL_MAX =
  4261. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  4262. };
  4263. /**
  4264. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  4265. * supported features
  4266. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  4267. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  4268. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  4269. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  4270. *
  4271. * enum values are used for NL attributes for data used by
  4272. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  4273. */
  4274. enum qca_wlan_vendor_attr_get_logger_features {
  4275. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  4276. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  4277. /* keep last */
  4278. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  4279. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  4280. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  4281. };
  4282. /**
  4283. * enum qca_wlan_vendor_attr_link_properties - link properties
  4284. *
  4285. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  4286. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  4287. * specify the number of spatial streams negotiated
  4288. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  4289. * to specify negotiated rate flags i.e. ht, vht and channel width
  4290. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  4291. * specify the operating frequency
  4292. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  4293. * (STA / AP ) for the connected link.
  4294. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  4295. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  4296. * address of the peer represented by
  4297. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  4298. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  4299. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  4300. */
  4301. enum qca_wlan_vendor_attr_link_properties {
  4302. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  4303. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  4304. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  4305. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  4306. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  4307. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  4308. /* KEEP LAST */
  4309. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  4310. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  4311. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  4312. };
  4313. /**
  4314. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  4315. *
  4316. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  4317. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  4318. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  4319. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  4320. *
  4321. * enum values are used for NL attributes for data used by
  4322. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  4323. */
  4324. enum qca_wlan_vendor_attr_nd_offload {
  4325. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  4326. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  4327. /* Keep last */
  4328. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  4329. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  4330. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  4331. };
  4332. /**
  4333. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  4334. *
  4335. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  4336. * management offload, a mechanism where the station's firmware
  4337. * does the exchange with the AP to establish the temporal keys
  4338. * after roaming, rather than having the user space wpa_supplicant do it.
  4339. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  4340. * band selection based on channel selection results.
  4341. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  4342. * simultaneous off-channel operations.
  4343. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  4344. * Listen offload; a mechanism where the station's firmware takes care of
  4345. * responding to incoming Probe Request frames received from other P2P
  4346. * Devices whilst in Listen state, rather than having the user space
  4347. * wpa_supplicant do it. Information from received P2P requests are
  4348. * forwarded from firmware to host whenever the host processor wakes up.
  4349. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  4350. * specific features.
  4351. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  4352. * features.
  4353. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  4354. * specific features only. If a Device sets this bit but not the
  4355. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  4356. * this Device may not support all OCE AP functionalities but can support
  4357. * only OCE STA-CFON functionalities.
  4358. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  4359. * managed regulatory.
  4360. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  4361. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  4362. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  4363. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  4364. * and applying thermal configuration through
  4365. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  4366. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  4367. * userspace.
  4368. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  4369. * With Adaptive 11r feature, access points advertise the vendor
  4370. * specific IEs and MDE but do not include FT AKM in the RSNE.
  4371. * The Adaptive 11r supported stations are expected to identify
  4372. * such vendor specific IEs and connect to the AP in FT mode though
  4373. * the profile is configured in non-FT mode.
  4374. * The driver-based SME cases also need to have this support for
  4375. * Adaptive 11r to handle the connection and roaming scenarios.
  4376. * This flag indicates the support for the same to the user space.
  4377. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  4378. * concurrent network sessions on different Wi-Fi Bands. This feature
  4379. * capability is attributed to the hardware's capability to support
  4380. * the same (e.g., DBS).
  4381. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  4382. * responses for the respective TWT operations are asynchronous (separate)
  4383. * event message) from the driver. If not specified, the responses are
  4384. * synchronous (in vendor command reply) to the request. Each TWT
  4385. * operation is specifically mentioned (against its respective)
  4386. * documentation) to support either of these or both modes.
  4387. * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
  4388. * that the driver requires add/del virtual interface path using the
  4389. * generic nl80211 commands for NDP interface create/delete and to
  4390. * register/unregister the netdev instead of creating/deleting the NDP
  4391. * interface using the vendor commands
  4392. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
  4393. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
  4394. * (5.12 version onward), interface creation/deletion is not allowed using
  4395. * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
  4396. * during the register/unregister of netdev. Create and delete NDP
  4397. * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
  4398. * commands respectively if the driver advertises this capability set.
  4399. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
  4400. * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
  4401. * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
  4402. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
  4403. * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
  4404. * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
  4405. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
  4406. * station mode supports secure RTT measurement exchange. If
  4407. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4408. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
  4409. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
  4410. * mode supports secure RTT measurement exchange. If
  4411. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4412. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
  4413. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
  4414. * the device in station mode supports protection of range negotiation and
  4415. * measurement management frames. If
  4416. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4417. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
  4418. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
  4419. * the device in AP mode supports protection of range negotiation and
  4420. * measurement management frames. If
  4421. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4422. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
  4423. * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
  4424. * in AP mode supports configuring allowed frequency list for AP operation
  4425. * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
  4426. * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
  4427. * that the device supports enhanced audio experience over WLAN feature.
  4428. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  4429. */
  4430. enum qca_wlan_vendor_features {
  4431. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  4432. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  4433. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  4434. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  4435. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  4436. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  4437. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  4438. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  4439. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  4440. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  4441. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  4442. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  4443. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  4444. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  4445. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  4446. QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
  4447. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
  4448. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
  4449. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
  4450. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
  4451. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
  4452. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
  4453. QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
  4454. QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
  4455. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  4456. };
  4457. /**
  4458. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  4459. * conditional channel switch
  4460. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  4461. * value
  4462. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  4463. * frequency list (an array of u32 values in host byte order)
  4464. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  4465. * conditional switch (u32)- 0: Success, Non-zero: Failure
  4466. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  4467. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  4468. */
  4469. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  4470. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  4471. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  4472. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  4473. /* Keep Last */
  4474. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  4475. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  4476. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  4477. };
  4478. /**
  4479. * enum wifi_logger_supported_features - values for supported logger features
  4480. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  4481. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  4482. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  4483. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  4484. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  4485. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  4486. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  4487. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  4488. */
  4489. enum wifi_logger_supported_features {
  4490. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  4491. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  4492. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  4493. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  4494. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  4495. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  4496. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  4497. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  4498. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  4499. };
  4500. /**
  4501. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  4502. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4503. *
  4504. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  4505. * Used with event to notify the primary channel number selected in ACS
  4506. * operation.
  4507. * Note: If both the driver and user-space application supports the 6 GHz band,
  4508. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  4509. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  4510. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4511. * is still used if either of the driver or user space application doesn't
  4512. * support the 6 GHz band.
  4513. *
  4514. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  4515. * Used with event to notify the secondary channel number selected in ACS
  4516. * operation.
  4517. * Note: If both the driver and user-space application supports the 6 GHz band,
  4518. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  4519. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  4520. * To maintain backward compatibility,
  4521. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  4522. * the driver or user space application doesn't support 6 GHz band.
  4523. *
  4524. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  4525. * (a) Used with command to configure hw_mode from
  4526. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  4527. * (b) Also used with event to notify the hw_mode of selected primary channel
  4528. * in ACS operation.
  4529. *
  4530. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  4531. * Used with command to configure ACS operation for HT mode.
  4532. * Disable (flag attribute not present) - HT disabled and
  4533. * Enable (flag attribute present) - HT enabled.
  4534. *
  4535. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  4536. * Used with command to configure ACS operation for HT40 mode.
  4537. * Disable (flag attribute not present) - HT40 disabled and
  4538. * Enable (flag attribute present) - HT40 enabled.
  4539. *
  4540. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  4541. * Used with command to configure ACS operation for VHT mode.
  4542. * Disable (flag attribute not present) - VHT disabled and
  4543. * Enable (flag attribute present) - VHT enabled.
  4544. *
  4545. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  4546. * mandatory with event.
  4547. * If specified in command path, ACS operation is configured with the given
  4548. * channel width (in MHz).
  4549. * In event path, specifies the channel width of the primary channel selected.
  4550. *
  4551. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  4552. * Used with command to configure channel list using an array of
  4553. * channel numbers (u8).
  4554. * Note: If both the driver and user-space application supports the 6 GHz band,
  4555. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  4556. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  4557. *
  4558. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  4559. * Used with event to notify the VHT segment 0 center channel number selected in
  4560. * ACS operation.
  4561. * Note: If both the driver and user-space application supports the 6 GHz band,
  4562. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  4563. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  4564. * To maintain backward compatibility,
  4565. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  4566. * the driver or user space application doesn't support the 6 GHz band.
  4567. *
  4568. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  4569. * Used with event to notify the VHT segment 1 center channel number selected in
  4570. * ACS operation.
  4571. * Note: If both the driver and user-space application supports the 6 GHz band,
  4572. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  4573. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  4574. * To maintain backward compatibility,
  4575. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  4576. * the driver or user space application doesn't support the 6 GHz band.
  4577. *
  4578. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  4579. * Used with command to configure the channel list using an array of channel
  4580. * center frequencies in MHz (u32).
  4581. * Note: If both the driver and user-space application supports the 6 GHz band,
  4582. * the driver first parses the frequency list and if it fails to get a frequency
  4583. * list, parses the channel list specified using
  4584. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  4585. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  4586. *
  4587. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  4588. * Used with event to notify the primary channel center frequency (MHz) selected
  4589. * in ACS operation.
  4590. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4591. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  4592. *
  4593. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  4594. * Used with event to notify the secondary channel center frequency (MHz)
  4595. * selected in ACS operation.
  4596. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4597. * includes this attribute along with
  4598. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  4599. *
  4600. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  4601. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  4602. * selected in ACS operation.
  4603. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4604. * includes this attribute along with
  4605. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  4606. *
  4607. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  4608. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  4609. * selected in ACS operation.
  4610. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4611. * includes this attribute along with
  4612. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  4613. *
  4614. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  4615. * Used with command to notify the driver of EDMG request for ACS
  4616. * operation.
  4617. *
  4618. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  4619. * Used with event to notify the EDMG channel number selected in ACS
  4620. * operation.
  4621. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4622. *
  4623. * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
  4624. * Used with event to notify the puncture pattern selected in ACS operation.
  4625. * Encoding for this attribute will follow the convention used in the Disabled
  4626. * Subchannel Bitmap field of the EHT Operation IE.
  4627. *
  4628. * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
  4629. * Used with command to configure ACS operation for EHT mode.
  4630. * Disable (flag attribute not present) - EHT disabled and
  4631. * Enable (flag attribute present) - EHT enabled.
  4632. *
  4633. * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
  4634. * Used with command to configure how older scan can be considered for ACS
  4635. * scoring. In case scan was performed on partial set of channels configured
  4636. * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
  4637. * (in ms), then scan only remaining channels.
  4638. */
  4639. enum qca_wlan_vendor_attr_acs_offload {
  4640. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  4641. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  4642. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  4643. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  4644. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  4645. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  4646. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  4647. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  4648. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  4649. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  4650. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  4651. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  4652. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  4653. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  4654. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  4655. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  4656. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  4657. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  4658. QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
  4659. QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
  4660. QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
  4661. /* keep last */
  4662. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4663. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4664. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4665. };
  4666. /**
  4667. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4668. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4669. *
  4670. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4671. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4672. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4673. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4674. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4675. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4676. */
  4677. enum qca_wlan_vendor_acs_hw_mode {
  4678. QCA_ACS_MODE_IEEE80211B,
  4679. QCA_ACS_MODE_IEEE80211G,
  4680. QCA_ACS_MODE_IEEE80211A,
  4681. QCA_ACS_MODE_IEEE80211AD,
  4682. QCA_ACS_MODE_IEEE80211ANY,
  4683. QCA_ACS_MODE_IEEE80211AX,
  4684. };
  4685. /**
  4686. * enum qca_access_policy - access control policy
  4687. *
  4688. * Access control policy is applied on the configured IE
  4689. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4690. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4691. *
  4692. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4693. *» with the specific configuration (IE) set, i.e. allow all the
  4694. *» connections which do not match the configuration.
  4695. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4696. *» with the specific configuration (IE) set, i.e. deny all the
  4697. *» connections which do not match the configuration.
  4698. */
  4699. enum qca_access_policy {
  4700. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4701. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4702. };
  4703. /**
  4704. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4705. *
  4706. * The valid values for the ignore assoc disallowed
  4707. *
  4708. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4709. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4710. *
  4711. */
  4712. enum qca_ignore_assoc_disallowed {
  4713. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4714. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4715. };
  4716. /* Attributes for data used by
  4717. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4718. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4719. */
  4720. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4721. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4722. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4723. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4724. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4725. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4726. enum qca_wlan_vendor_attr_config {
  4727. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4728. /*
  4729. * Unsigned 32-bit value to set the DTIM period.
  4730. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4731. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4732. * DTIM beacons.
  4733. */
  4734. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  4735. /*
  4736. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4737. * used to calculate statistics like average the TSF offset or average
  4738. * number of frame leaked.
  4739. * For instance, upon Beacon frame reception:
  4740. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4741. * For instance, when evaluating leaky APs:
  4742. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4743. */
  4744. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4745. /*
  4746. * Unsigned 32-bit value to configure guard time, i.e., when
  4747. * implementing IEEE power management based on frame control PM bit, how
  4748. * long the driver waits before shutting down the radio and after
  4749. * receiving an ACK frame for a Data frame with PM bit set.
  4750. */
  4751. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4752. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4753. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4754. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4755. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4756. /*
  4757. * Unsigned 32-bit value to configure the number of continuous
  4758. * Beacon Miss which shall be used by the firmware to penalize
  4759. * the RSSI.
  4760. */
  4761. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4762. /*
  4763. * Unsigned 8-bit value to configure the channel avoidance indication
  4764. * behavior. Firmware to send only one indication and ignore duplicate
  4765. * indications when set to avoid multiple Apps wakeups.
  4766. */
  4767. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4768. /*
  4769. * 8-bit unsigned value to configure the maximum TX MPDU for
  4770. * aggregation.
  4771. */
  4772. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4773. /*
  4774. * 8-bit unsigned value to configure the maximum RX MPDU for
  4775. * aggregation.
  4776. */
  4777. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4778. /*
  4779. * 8-bit unsigned value to configure the Non aggregate/11g sw
  4780. * retry threshold (0 disable, 31 max).
  4781. */
  4782. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4783. /*
  4784. * 8-bit unsigned value to configure the aggregate sw
  4785. * retry threshold (0 disable, 31 max).
  4786. */
  4787. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4788. /*
  4789. * 8-bit unsigned value to configure the MGMT frame
  4790. * retry threshold (0 disable, 31 max).
  4791. */
  4792. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4793. /*
  4794. * 8-bit unsigned value to configure the CTRL frame
  4795. * retry threshold (0 disable, 31 max).
  4796. */
  4797. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4798. /*
  4799. * 8-bit unsigned value to configure the propagation delay for
  4800. * 2G/5G band (0~63, units in us)
  4801. */
  4802. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4803. /*
  4804. * Unsigned 32-bit value to configure the number of unicast TX fail
  4805. * packet count. The peer is disconnected once this threshold is
  4806. * reached.
  4807. */
  4808. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4809. /*
  4810. * Attribute used to set scan default IEs to the driver.
  4811. *
  4812. * These IEs can be used by scan operations that will be initiated by
  4813. * the driver/firmware.
  4814. *
  4815. * For further scan requests coming to the driver, these IEs should be
  4816. * merged with the IEs received along with scan request coming to the
  4817. * driver. If a particular IE is present in the scan default IEs but not
  4818. * present in the scan request, then that IE should be added to the IEs
  4819. * sent in the Probe Request frames for that scan request.
  4820. */
  4821. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4822. /* Unsigned 32-bit attribute for generic commands */
  4823. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4824. /* Unsigned 32-bit value attribute for generic commands */
  4825. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4826. /* Unsigned 32-bit data attribute for generic command response */
  4827. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4828. /*
  4829. * Unsigned 32-bit length attribute for
  4830. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4831. */
  4832. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4833. /*
  4834. * Unsigned 32-bit flags attribute for
  4835. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4836. */
  4837. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4838. /*
  4839. * Unsigned 32-bit, defining the access policy.
  4840. * See enum qca_access_policy. Used with
  4841. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4842. */
  4843. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4844. /*
  4845. * Sets the list of full set of IEs for which a specific access policy
  4846. * has to be applied. Used along with
  4847. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4848. * Zero length payload can be used to clear this access constraint.
  4849. */
  4850. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4851. /*
  4852. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4853. * corresponding configurations are applied. If the interface index is
  4854. * not specified, the configurations are attributed to the respective
  4855. * wiphy.
  4856. */
  4857. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4858. /*
  4859. * 8-bit unsigned value to trigger QPower:
  4860. * 1-Enable, 0-Disable
  4861. */
  4862. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4863. /*
  4864. * 8-bit unsigned value to configure the driver and below layers to
  4865. * ignore the assoc disallowed set by APs while connecting
  4866. * 1-Ignore, 0-Don't ignore
  4867. */
  4868. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4869. /*
  4870. * 32-bit unsigned value to trigger antenna diversity features:
  4871. * 1-Enable, 0-Disable
  4872. */
  4873. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4874. /* 32-bit unsigned value to configure specific chain antenna */
  4875. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4876. /*
  4877. * 32-bit unsigned value to trigger cycle selftest
  4878. * 1-Enable, 0-Disable
  4879. */
  4880. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4881. /*
  4882. * 32-bit unsigned to configure the cycle time of selftest
  4883. * the unit is micro-second
  4884. */
  4885. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4886. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4887. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4888. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4889. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4890. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4891. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4892. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4893. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4894. /* 6-byte MAC address to point out the specific peer */
  4895. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
  4896. /* 32-bit unsigned value to set window size for specific peer */
  4897. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4898. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4899. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4900. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4901. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4902. /*
  4903. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4904. * station device while in disconnect state. The attribute use the
  4905. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4906. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4907. * 10 MHz channel width, the station will not connect to a BSS using 20
  4908. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4909. * clear this constraint.
  4910. */
  4911. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4912. /*
  4913. * 32-bit unsigned value to configure the propagation absolute delay
  4914. * for 2G/5G band (units in us)
  4915. */
  4916. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4917. /* 32-bit unsigned value to set probe period */
  4918. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4919. /* 32-bit unsigned value to set stay period */
  4920. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4921. /* 32-bit unsigned value to set snr diff */
  4922. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4923. /* 32-bit unsigned value to set probe dwell time */
  4924. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4925. /* 32-bit unsigned value to set mgmt snr weight */
  4926. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4927. /* 32-bit unsigned value to set data snr weight */
  4928. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4929. /* 32-bit unsigned value to set ack snr weight */
  4930. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4931. /*
  4932. * 32-bit unsigned value to configure the listen interval.
  4933. * This is in units of beacon intervals. This configuration alters
  4934. * the negotiated listen interval with the AP during the connection.
  4935. * It is highly recommended to configure a value less than or equal to
  4936. * the one negotiated during the association. Configuring any greater
  4937. * value can have adverse effects (frame loss, AP disassociating STA,
  4938. * etc.).
  4939. */
  4940. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4941. /*
  4942. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4943. * disable operations that would cause the AP/GO to leave its operating
  4944. * channel.
  4945. *
  4946. * This will restrict the scans to the AP/GO operating channel and the
  4947. * channels of the other band, if DBS is supported.A STA/CLI interface
  4948. * brought up after this setting is enabled, will be restricted to
  4949. * connecting to devices only on the AP/GO interface's operating channel
  4950. * or on the other band in DBS case. P2P supported channel list is
  4951. * modified, to only include AP interface's operating-channel and the
  4952. * channels of the other band if DBS is supported.
  4953. *
  4954. * These restrictions are only applicable as long as the AP/GO interface
  4955. * is alive. If the AP/GO interface is brought down then this
  4956. * setting/restriction is forgotten.
  4957. *
  4958. * If this variable is set on an AP/GO interface while a multi-channel
  4959. * concurrent session is active, it has no effect on the operation of
  4960. * the current interfaces, other than restricting the scan to the AP/GO
  4961. * operating channel and the other band channels if DBS is supported.
  4962. * However, if the STA is brought down and restarted then the new STA
  4963. * connection will either be formed on the AP/GO channel or on the
  4964. * other band in a DBS case. This is because of the scan being
  4965. * restricted on these channels as mentioned above.
  4966. *
  4967. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  4968. */
  4969. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  4970. /*
  4971. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  4972. * on an interface.
  4973. * 1 - Enable , 0 - Disable.
  4974. */
  4975. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  4976. /*
  4977. * 8 bit unsigned value to globally enable/disable scan
  4978. * 1 - Enable, 0 - Disable.
  4979. */
  4980. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  4981. /* 8-bit unsigned value to set the total beacon miss count */
  4982. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  4983. /*
  4984. * Unsigned 32-bit value to configure the number of continuous
  4985. * Beacon Miss which shall be used by the firmware to penalize
  4986. * the RSSI for BTC.
  4987. */
  4988. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  4989. /*
  4990. * 8-bit unsigned value to configure the driver and below layers to
  4991. * enable/disable all fils features.
  4992. * 0-enable, 1-disable
  4993. */
  4994. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  4995. /* 16-bit unsigned value to configure the level of WLAN latency
  4996. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  4997. */
  4998. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  4999. /*
  5000. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  5001. * the connect interface. Exclusively used for the scenarios where the
  5002. * device is used as a test bed device with special functionality and
  5003. * not recommended for production. This helps driver to not validate the
  5004. * RSNE passed from user space and thus allow arbitrary IE data to be
  5005. * used for testing purposes.
  5006. * 1-enable, 0-disable.
  5007. * Applications set/reset this configuration. If not reset, this
  5008. * parameter remains in use until the driver is unloaded.
  5009. */
  5010. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  5011. /*
  5012. * 8-bit unsigned value to trigger green Tx power saving.
  5013. * 1-Enable, 0-Disable
  5014. */
  5015. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  5016. /*
  5017. * Attribute to configure disconnect IEs to the driver.
  5018. * This carries an array of unsigned 8-bit characters.
  5019. *
  5020. * If this is configured, driver shall fill the IEs in disassoc/deauth
  5021. * frame.
  5022. * These IEs are expected to be considered only for the next
  5023. * immediate disconnection (disassoc/deauth frame) originated by
  5024. * the DUT, irrespective of the entity (user space/driver/firmware)
  5025. * triggering the disconnection.
  5026. * The host drivers are not expected to use the IEs set through
  5027. * this interface for further disconnections after the first immediate
  5028. * disconnection initiated post the configuration.
  5029. * If the IEs are also updated through cfg80211 interface (after the
  5030. * enhancement to cfg80211_disconnect), host driver is expected to
  5031. * take the union of IEs from both of these interfaces and send in
  5032. * further disassoc/deauth frames.
  5033. */
  5034. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  5035. /* 8-bit unsigned value for ELNA bypass.
  5036. * 0 - Disable eLNA bypass.
  5037. * 1 - Enable eLNA bypass.
  5038. * 2 - Reset eLNA bypass configuration, the driver should
  5039. * revert to the default configuration of eLNA bypass.
  5040. */
  5041. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  5042. /* 8-bit unsigned value. This attribute enables/disables the host driver
  5043. * to send the Beacon Report response with failure reason for the
  5044. * scenarios where STA cannot honor the Beacon report request from AP.
  5045. * 1-Enable, 0-Disable.
  5046. */
  5047. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  5048. /* 8-bit unsigned value. This attribute enables/disables the host driver
  5049. * to send roam reason information in the reassociation request to the
  5050. * AP. 1-Enable, 0-Disable.
  5051. */
  5052. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  5053. /* 32-bit unsigned value to configure different PHY modes to the
  5054. * driver/firmware. The possible values are defined in
  5055. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  5056. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  5057. * the driver.
  5058. */
  5059. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  5060. /* 8-bit unsigned value to configure the maximum supported channel width
  5061. * for STA mode. If this value is configured when STA is in connected
  5062. * state, it should not exceed the negotiated channel width. If it is
  5063. * configured when STA is in disconnected state, the configured value
  5064. * will take effect for the next immediate connection.
  5065. * This configuration can be sent inside
  5066. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
  5067. * supported channel width per-MLO link.
  5068. *
  5069. * This uses values defined in enum nl80211_chan_width.
  5070. */
  5071. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  5072. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  5073. * This attribute is only applicable for STA mode. When dynamic
  5074. * bandwidth adjustment is disabled, STA will use static channel width
  5075. * the value of which is negotiated during connection.
  5076. * 1-enable (default), 0-disable
  5077. */
  5078. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  5079. /* 8-bit unsigned value to configure the maximum number of subframes of
  5080. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5081. * it is decided by hardware.
  5082. */
  5083. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  5084. /* 8-bit unsigned value to configure the maximum number of subframes of
  5085. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5086. * it is decided by hardware.
  5087. */
  5088. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  5089. /* 8-bit unsigned value. This attribute is used to dynamically
  5090. * enable/disable the LDPC capability of the device. When configured in
  5091. * the disconnected state, the updated configuration will be considered
  5092. * for the immediately following connection attempt. If this
  5093. * configuration is modified while the device is in the connected state,
  5094. * the LDPC TX will be updated with this configuration immediately,
  5095. * while the LDPC RX configuration update will take place starting from
  5096. * the subsequent association attempt.
  5097. * 1-Enable, 0-Disable.
  5098. */
  5099. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  5100. /* 8-bit unsigned value. This attribute is used to dynamically
  5101. * enable/disable the TX STBC capability of the device. When configured
  5102. * in the disconnected state, the updated configuration will be
  5103. * considered for the immediately following connection attempt. If the
  5104. * connection is formed with TX STBC enabled and if this configuration
  5105. * is disabled during that association, the TX will be impacted
  5106. * immediately. Further connection attempts will disable TX STBC.
  5107. * However, enabling the TX STBC for a connected session with disabled
  5108. * capability is not allowed and will fail.
  5109. * 1-Enable, 0-Disable.
  5110. */
  5111. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  5112. /* 8-bit unsigned value. This attribute is used to dynamically
  5113. * enable/disable the RX STBC capability of the device. When configured
  5114. * in the disconnected state, the updated configuration will be
  5115. * considered for the immediately following connection attempt. If the
  5116. * configuration is modified in the connected state, there will be no
  5117. * impact for the current association, but further connection attempts
  5118. * will use the updated configuration.
  5119. * 1-Enable, 0-Disable.
  5120. */
  5121. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  5122. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5123. * the number of spatial streams. When configured in the disconnected
  5124. * state, the updated configuration will be considered for the
  5125. * immediately following connection attempt. If the NSS is updated after
  5126. * the connection, the updated NSS value is notified to the peer using
  5127. * the Operating Mode Notification/Spatial Multiplexing Power Save
  5128. * frame. The updated NSS value after the connection shall not be
  5129. * greater than the one negotiated during the connection. Any such
  5130. * higher value configuration shall be returned with a failure.
  5131. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  5132. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  5133. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  5134. * configure the asymmetric NSS configuration (such as 1X2).
  5135. */
  5136. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  5137. /*
  5138. * 8-bit unsigned value to trigger Optimized Power Management:
  5139. * 1-Enable, 0-Disable
  5140. */
  5141. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  5142. /* 8-bit unsigned value. This attribute takes the QOS/access category
  5143. * value represented by the enum qca_wlan_ac_type and expects the driver
  5144. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  5145. * is invalid for this attribute. This will override the DSCP value
  5146. * configured in the frame with the intention to only upgrade the QOS.
  5147. * That said, it is not intended to downgrade the QOS for the frames.
  5148. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  5149. * to disable.
  5150. *
  5151. * If only UDP frames of BE or BK access category needs to be upgraded
  5152. * without changing the access category of VO or VI UDP frames, refer to
  5153. * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
  5154. *
  5155. * This attribute is not recommended to be used as it blindly forces all
  5156. * UDP packets to a higher access category which could impact the
  5157. * traffic pattern of all apps using UDP and can cause unknown behavior.
  5158. */
  5159. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  5160. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5161. * the number of chains to be used for transmitting data. This
  5162. * configuration is allowed only when in connected state and will be
  5163. * effective until disconnected. The driver rejects this configuration
  5164. * if the number of spatial streams being used in the current connection
  5165. * cannot be supported by this configuration.
  5166. */
  5167. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  5168. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5169. * the number of chains to be used for receiving data. This
  5170. * configuration is allowed only when in connected state and will be
  5171. * effective until disconnected. The driver rejects this configuration
  5172. * if the number of spatial streams being used in the current connection
  5173. * cannot be supported by this configuration.
  5174. */
  5175. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  5176. /* 8-bit unsigned value to configure ANI setting type.
  5177. * See &enum qca_wlan_ani_setting for possible values.
  5178. */
  5179. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  5180. /* 32-bit signed value to configure ANI level. This is used when
  5181. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  5182. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  5183. * is invalid, the driver will return a failure.
  5184. */
  5185. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  5186. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5187. * the number of spatial streams used for transmitting the data. When
  5188. * configured in the disconnected state, the configured value will
  5189. * be considered for the following connection attempt.
  5190. * If the NSS is updated after the connection, the updated NSS value
  5191. * is notified to the peer using the Operating Mode Notification/Spatial
  5192. * Multiplexing Power Save frame.
  5193. * The TX NSS value configured after the connection shall not be greater
  5194. * than the value negotiated during the connection. Any such higher
  5195. * value configuration shall be treated as invalid configuration by
  5196. * the driver. This attribute shall be configured along with
  5197. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  5198. * configuration (such as 2X2 or 1X1) or the asymmetric
  5199. * configuration (such as 1X2).
  5200. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5201. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  5202. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  5203. */
  5204. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  5205. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5206. * the number of spatial streams used for receiving the data. When
  5207. * configured in the disconnected state, the configured value will
  5208. * be considered for the following connection attempt.
  5209. * If the NSS is updated after the connection, the updated NSS value
  5210. * is notified to the peer using the Operating Mode Notification/Spatial
  5211. * Multiplexing Power Save frame.
  5212. * The RX NSS value configured after the connection shall not be greater
  5213. * than the value negotiated during the connection. Any such higher
  5214. * value configuration shall be treated as invalid configuration by
  5215. * the driver. This attribute shall be configured along with
  5216. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  5217. * configuration (such as 2X2 or 1X1) or the asymmetric
  5218. * configuration (such as 1X2).
  5219. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5220. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  5221. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  5222. */
  5223. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  5224. /*
  5225. * 8-bit unsigned value. This attribute, when set, indicates whether the
  5226. * specified interface is the primary STA interface when there are more
  5227. * than one STA interfaces concurrently active.
  5228. *
  5229. * This configuration helps the firmware/hardware to support certain
  5230. * features (e.g., roaming) on this primary interface, if the same
  5231. * cannot be supported on the concurrent STA interfaces simultaneously.
  5232. *
  5233. * This configuration is only applicable for a single STA interface on
  5234. * a device and gives the priority for it only over other concurrent STA
  5235. * interfaces.
  5236. *
  5237. * If the device is a multi wiphy/soc, this configuration applies to a
  5238. * single STA interface across the wiphys.
  5239. *
  5240. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  5241. */
  5242. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  5243. /*
  5244. * 8-bit unsigned value. This attribute can be used to configure the
  5245. * driver to enable/disable FT-over-DS feature. Possible values for
  5246. * this attribute are 1-Enable and 0-Disable.
  5247. */
  5248. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  5249. /*
  5250. * 8-bit unsigned value. This attribute can be used to configure the
  5251. * firmware to enable/disable ARP/NS offload feature. Possible values
  5252. * for this attribute are 0-Disable and 1-Enable.
  5253. *
  5254. * This attribute is only applicable for STA/P2P-Client interface,
  5255. * and is optional, default behavior is APR/NS offload Enable.
  5256. *
  5257. * This attribute can be set in disconncted and connected state, and
  5258. * will restore to default behavior if interface is closed.
  5259. */
  5260. QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
  5261. /*
  5262. * 8-bit unsigned value. This attribute can be used to configure the
  5263. * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
  5264. * for this attribute are defined in the enum qca_dbam_config.
  5265. */
  5266. QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
  5267. /* 8-bit unsigned value. This attribute takes the QoS/access category
  5268. * value represented by the enum qca_wlan_ac_type and expects the driver
  5269. * to upgrade the UDP frames of BE or BK access category to this access
  5270. * category. This attribute will not modify UDP frames of VO or VI
  5271. * access category. The value of QCA_WLAN_AC_ALL is invalid for this
  5272. * attribute.
  5273. *
  5274. * This will override the DSCP value configured in the frame with the
  5275. * intention to only upgrade the access category. That said, it is not
  5276. * intended to downgrade the access category for the frames.
  5277. * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
  5278. * disabled, as BK is of the lowest priority and an upgrade to it does
  5279. * not result in any changes for the frames.
  5280. *
  5281. * This attribute behavior is similar to
  5282. * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
  5283. * only UDP frames of BE or BK access category are upgraded and not
  5284. * UDP frames of VI or VO access category.
  5285. *
  5286. * This attribute is not recommended to be used as it blindly forces all
  5287. * UDP packets of BE or BK access category to a higher access category
  5288. * which could impact the traffic pattern of all apps using UDP and can
  5289. * cause unknown behavior.
  5290. */
  5291. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
  5292. /* 8-bit unsigned value to configure the driver to enable/disable the
  5293. * periodic sounding for Tx beamformer functionality. The default
  5294. * behavior uses algorithm to do sounding based on packet stats.
  5295. *
  5296. * 0 - Default behavior.
  5297. * 1 - Enable the periodic sounding for Tx beamformer.
  5298. * This attribute is used for testing purposes.
  5299. */
  5300. QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
  5301. /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
  5302. * Userspace sends this information to driver/firmware to configure
  5303. * wfc state. Driver/Firmware uses this information to
  5304. * optimize power savings, rate adaption, roaming, etc.
  5305. *
  5306. * 1 - wfc is on.
  5307. * 0 - wfc is off.
  5308. */
  5309. QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
  5310. /* 8-bit unsigned value to configure the driver to enable/disable the
  5311. * EHT EML capability in management frame EHT capabilities.
  5312. * 1 - Enable, 0 - Disable.
  5313. */
  5314. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
  5315. /* 8-bit unsigned value to configure the driver with EHT MLO max
  5316. * simultaneous links to be used for MLO connection.
  5317. * The range of the value is 0 to 14.
  5318. */
  5319. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
  5320. /* 8-bit unsigned value to configure the driver with EHT MLO maximum
  5321. * number of links to be used for MLO connection.
  5322. * The range of the value is 1 to 16.
  5323. */
  5324. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
  5325. /* 8-bit unsigned value to configure the driver with EHT MLO mode.
  5326. * Uses enum qca_wlan_eht_mlo_mode values.
  5327. */
  5328. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
  5329. /* Nested attribute with frequencies in u32 attributes to configure a
  5330. * list of allowed 20 MHz channel center frequencies in MHz for AP
  5331. * operation. Whenever performing a channel selection operation, the
  5332. * driver shall generate a new list based on this provided list by
  5333. * filtering out channels that cannot be used at that time due to
  5334. * regulatory or other constraints. The resulting list is used as the
  5335. * list of all allowed channels, i.e., operation on any channel that is
  5336. * not included is not allowed, whenever performing operations like ACS
  5337. * and DFS.
  5338. *
  5339. * Userspace shall configure this before starting the AP and the
  5340. * configuration is valid only from the next BSS start and until the
  5341. * BSS is stopped. The driver shall clear this configuration when the
  5342. * AP is stopped and fall back to the default behavior for subsequent
  5343. * AP operation.
  5344. *
  5345. * The default behavior when this configuration is not applicable is the
  5346. * driver can choose any of the channels supported by the hardware
  5347. * except the channels that cannot be used due to regulatory or other
  5348. * constraints.
  5349. *
  5350. * The driver shall reject this configuration if done after the AP is
  5351. * started. This attribute can be used to specify user's choice of
  5352. * frequencies and static puncture channel list, etc.
  5353. */
  5354. QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
  5355. /* Nested attribute to indicate EHT MLO links to be forced active.
  5356. * It contains link MAC address attributes. These nested attributes are
  5357. * of the type NL80211_ATTR_MAC and are used to force enabling of the
  5358. * MLO links corresponding to the indicated link MAC addresses.
  5359. * Subsequently, the links corresponding to the link MAC addresses that
  5360. * are not indicated are forced inactive.
  5361. */
  5362. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
  5363. /* 8-bit unsigned value to configure EMLSR mode entry or exit.
  5364. * Uses enum qca_wlan_emlsr_mode values.
  5365. */
  5366. QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
  5367. /* 8-bit unsigned value. This attribute is used to dynamically
  5368. * enable/suspend trigger based UL MU transmission.
  5369. * This is supported in STA mode and the device sends Operating
  5370. * Mode Indication to inform the change as described in
  5371. * IEEE Std 802.11ax-2021, 26.9.
  5372. *
  5373. * This attribute can be configured when the STA is associated
  5374. * to an AP and the configuration is maintained until the current
  5375. * association terminates.
  5376. *
  5377. * By default all UL MU transmissions are enabled.
  5378. *
  5379. * Uses enum qca_ul_mu_config values.
  5380. */
  5381. QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
  5382. /* 8-bit unsigned value. Optionally specified along with
  5383. * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
  5384. * state. This configuration is applicable only for the current
  5385. * connection. This configuration not allowed in disconnected state.
  5386. * This configuration can be sent inside
  5387. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
  5388. * supported channel width update type per-MLO link.
  5389. *
  5390. * valid values:
  5391. * 0 - The maximum allowed bandwidth change is applicable for both Tx
  5392. * and Rx paths. The driver shall conduct OMI operation as defined
  5393. * in 26.9 (Operating mode indication) or OMN operation as
  5394. * defined in 11.40 (Notification of operating mode
  5395. * changes) in IEEE P802.11-REVme/D2.0 with AP to indicate the
  5396. * change in the maximum allowed operating bandwidth.
  5397. * 1 - Limit the change in maximum allowed bandwidth only to Tx path.
  5398. * In this case the driver doesn't need to conduct OMI/OMN
  5399. * operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
  5400. * expected to be less than the current connection maximum
  5401. * negotiated bandwidth.
  5402. * For example: Negotiated maximum bandwidth is 160 MHz and the new
  5403. * maximum bandwidth configured is 80 MHz, now the driver limits
  5404. * the maximum bandwidth to 80 MHz only in the Tx path.
  5405. */
  5406. QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
  5407. /* 8-bit unsigned value to set EPCS (Emergency Preparedness
  5408. * Communications Service) feature capability
  5409. * 1 - Enable, 0 - Disable.
  5410. *
  5411. * This configuration is used for testing purposes.
  5412. */
  5413. QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
  5414. /* 8-bit unsigned value to enable/disable EPCS priority access
  5415. * 1 - Enable, 0 - Disable.
  5416. * The EPCS priority access shall be enabled only when EPCS feature
  5417. * capability is also enabled (see
  5418. * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
  5419. *
  5420. * This configuration is used for testing purposes.
  5421. */
  5422. QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
  5423. /* 8-bit unsigned value. Used only for representing MLO link ID of a
  5424. * link inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
  5425. */
  5426. QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
  5427. /* Array of nested links each identified by
  5428. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
  5429. * enum qca_wlan_vendor_attr_config, explicit documentation shall be
  5430. * added for the attributes in enum qca_wlan_vendor_attr_config to
  5431. * support per-MLO link configuration through
  5432. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
  5433. *
  5434. * Userspace can configure a single link or multiple links with this
  5435. * attribute by nesting the corresponding configuration attributes and
  5436. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
  5437. *
  5438. * Userspace can fetch the configuration attribute values for a single
  5439. * link or multiple links with this attribute by nesting the
  5440. * corresponding configuration attributes and
  5441. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
  5442. *
  5443. * For STA interface, this attribute is applicable only in connected
  5444. * state when the current connection is MLO capable. The valid values of
  5445. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
  5446. * connected AP MLD links.
  5447. *
  5448. * For AP interface, this configuration applicable only after adding
  5449. * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
  5450. * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
  5451. * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
  5452. * the AP interface.
  5453. */
  5454. QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
  5455. /* keep last */
  5456. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  5457. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  5458. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  5459. };
  5460. /**
  5461. * enum qca_ul_mu_config - UL MU configuration
  5462. * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
  5463. * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
  5464. */
  5465. enum qca_ul_mu_config {
  5466. QCA_UL_MU_SUSPEND = 0,
  5467. QCA_UL_MU_ENABLE = 1,
  5468. };
  5469. /**
  5470. * enum qca_dbam_config - Specifies DBAM config mode
  5471. * @QCA_DBAM_DISABLE: Firmware disables DBAM
  5472. * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
  5473. * internal criteria are met.
  5474. * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
  5475. */
  5476. enum qca_dbam_config {
  5477. QCA_DBAM_DISABLE = 0,
  5478. QCA_DBAM_ENABLE = 1,
  5479. QCA_DBAM_FORCE_ENABLE = 2,
  5480. };
  5481. /**
  5482. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  5483. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  5484. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  5485. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  5486. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  5487. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  5488. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  5489. */
  5490. enum qca_wlan_vendor_attr_wifi_logger_start {
  5491. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  5492. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  5493. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  5494. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  5495. /* keep last */
  5496. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  5497. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  5498. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  5499. };
  5500. /*
  5501. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  5502. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  5503. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  5504. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  5505. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  5506. */
  5507. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  5508. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  5509. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  5510. /* keep last */
  5511. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  5512. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  5513. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  5514. };
  5515. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  5516. /**
  5517. * enum wlan_offloaded_packets_control - control commands
  5518. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  5519. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  5520. *
  5521. */
  5522. enum wlan_offloaded_packets_control {
  5523. WLAN_START_OFFLOADED_PACKETS = 1,
  5524. WLAN_STOP_OFFLOADED_PACKETS = 2
  5525. };
  5526. /**
  5527. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  5528. *
  5529. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  5530. * the offloaded data.
  5531. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  5532. * data.
  5533. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  5534. * indication.
  5535. */
  5536. enum qca_wlan_vendor_attr_data_offload_ind {
  5537. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  5538. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  5539. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  5540. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  5541. /* keep last */
  5542. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  5543. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  5544. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  5545. };
  5546. /**
  5547. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  5548. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  5549. */
  5550. enum qca_wlan_vendor_attr_offloaded_packets {
  5551. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  5552. /* Takes valid value from the enum
  5553. * qca_wlan_offloaded_packets_sending_control
  5554. * Unsigned 32-bit value
  5555. */
  5556. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  5557. /* Unsigned 32-bit value */
  5558. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  5559. /* array of u8 len: Max packet size */
  5560. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  5561. /* 6-byte MAC address used to represent source MAC address */
  5562. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  5563. /* 6-byte MAC address used to represent destination MAC address */
  5564. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  5565. /* Unsigned 32-bit value, in milli seconds */
  5566. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  5567. /* This optional unsigned 16-bit attribute is used for specifying
  5568. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  5569. */
  5570. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  5571. /* keep last */
  5572. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  5573. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  5574. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  5575. };
  5576. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  5577. /**
  5578. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  5579. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  5580. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  5581. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  5582. */
  5583. enum qca_wlan_rssi_monitoring_control {
  5584. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  5585. QCA_WLAN_RSSI_MONITORING_START,
  5586. QCA_WLAN_RSSI_MONITORING_STOP,
  5587. };
  5588. /**
  5589. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  5590. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  5591. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  5592. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  5593. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  5594. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  5595. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  5596. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  5597. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  5598. */
  5599. enum qca_wlan_vendor_attr_rssi_monitoring {
  5600. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  5601. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  5602. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  5603. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  5604. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  5605. /* attributes to be used/received in callback */
  5606. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  5607. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  5608. /* keep last */
  5609. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  5610. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  5611. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  5612. };
  5613. /**
  5614. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  5615. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5616. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  5617. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  5618. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  5619. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
  5620. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  5621. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  5622. * address
  5623. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  5624. * created
  5625. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  5626. * NCS_SK_TYPE/PMK/SCID instead
  5627. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  5628. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  5629. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  5630. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  5631. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  5632. * code: accept/reject
  5633. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  5634. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  5635. * driver
  5636. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  5637. * driver
  5638. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  5639. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  5640. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  5641. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  5642. * PMKID
  5643. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  5644. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  5645. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  5646. * update:
  5647. * BIT_0: NSS Update
  5648. * BIT_1: Channel list update
  5649. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  5650. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  5651. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  5652. * 0:20 MHz,
  5653. * 1:40 MHz,
  5654. * 2:80 MHz,
  5655. * 3:160 MHz
  5656. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  5657. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  5658. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  5659. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  5660. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  5661. * transport port used by NDP.
  5662. * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  5663. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  5664. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  5665. * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
  5666. * NDP remote peer supports NAN NDPE. 1:support 0:not support
  5667. * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
  5668. * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
  5669. * A lower-case representation of the Service Name shall be used to
  5670. * calculate the Service ID.
  5671. * Array of u8: length is 6 bytes
  5672. * This attribute is used and optional for ndp indication.
  5673. */
  5674. enum qca_wlan_vendor_attr_ndp_params {
  5675. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  5676. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  5677. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  5678. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  5679. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  5680. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  5681. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  5682. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  5683. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  5684. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  5685. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  5686. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  5687. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  5688. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  5689. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  5690. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  5691. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  5692. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  5693. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  5694. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  5695. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  5696. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  5697. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  5698. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  5699. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  5700. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  5701. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  5702. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  5703. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  5704. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  5705. QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
  5706. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
  5707. /* keep last */
  5708. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  5709. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  5710. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  5711. };
  5712. /**
  5713. * enum qca_wlan_ndp_sub_cmd - NDP sub commands types for
  5714. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5715. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  5716. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
  5717. * data path interface.
  5718. * This command was initially designed to both create and start a NAN
  5719. * data path interface. However, changes to Linux 5.12 no longer allow
  5720. * interface creation via vendor commands. When the driver advertises
  5721. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5722. * userspace must explicitly first create the interface using
  5723. * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
  5724. * to start the interface.
  5725. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
  5726. * data path interface.
  5727. * This command was initially designed to both stop and delete a NAN
  5728. * data path interface. However, changes to Linux 5.12 no longer allow
  5729. * interface deletion via vendor commands. When the driver advertises
  5730. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5731. * userspace must explicitly delete the interface using
  5732. * NL80211_CMD_DEL_INTERFACE after calling this command.
  5733. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  5734. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  5735. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  5736. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  5737. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  5738. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  5739. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  5740. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  5741. * being received
  5742. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  5743. * update
  5744. */
  5745. enum qca_wlan_ndp_sub_cmd {
  5746. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  5747. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  5748. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  5749. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  5750. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  5751. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  5752. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  5753. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  5754. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  5755. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  5756. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  5757. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  5758. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  5759. };
  5760. /**
  5761. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  5762. * information. These attributes are sent as part of
  5763. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  5764. * attributes correspond to a single channel.
  5765. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  5766. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5767. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  5768. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5769. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  5770. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  5771. * regulatory transmission power
  5772. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  5773. * transmission power
  5774. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  5775. * transmission power
  5776. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  5777. * class id
  5778. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  5779. * antenna gain in dbm
  5780. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  5781. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  5782. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
  5783. * center frequency in MHz.
  5784. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  5785. * segment 0 in center freq in MHz. (this is the legacy alias)
  5786. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
  5787. * center frequency in MHz.
  5788. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  5789. * segment 1 in center freq in MHz. (this is the legacy alias)
  5790. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
  5791. * flag indicating the AP power modes supported by the channel, as given by
  5792. * enum qca_wlan_vendor_external_acs_chan_power_level.
  5793. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
  5794. * attributes for each power mode. It takes attr as defined in enum
  5795. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5796. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
  5797. * This indicates the overlapping 320 MHz center frequency in MHz, if the
  5798. * given primary channel supports more than one 320 MHz channel bonding.
  5799. *
  5800. */
  5801. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  5802. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  5803. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  5804. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  5805. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  5806. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  5807. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  5808. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  5809. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  5810. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  5811. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  5812. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  5813. /*
  5814. * A bitmask (u32) with flags specified in
  5815. * enum qca_wlan_vendor_channel_prop_flags_2.
  5816. */
  5817. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  5818. /*
  5819. * Segment 0 in MHz (u32).
  5820. *
  5821. * For 20/40/80 MHz bandwidth, this indicates the channel center
  5822. * frequency index for the 20/40/80 MHz operating channel.
  5823. * For 160 MHz bandwidth, this indicates the channel center
  5824. * frequency of the primary 80 MHz channel.
  5825. * For 320 MHz bandwidth, indicates the channel center frequency
  5826. * of the primary 160 MHz channel.
  5827. *
  5828. * To maintain backward compatibility,
  5829. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5830. * is also maintained.
  5831. */
  5832. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
  5833. /* Legacy alias for the Segment 0 attribute.
  5834. *
  5835. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  5836. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5837. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5838. * along with
  5839. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  5840. *
  5841. * If both the driver and user-space application supports the 6 GHz
  5842. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  5843. * is deprecated and
  5844. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5845. * should be used.
  5846. *
  5847. * To maintain backward compatibility,
  5848. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5849. * is still used if either of the driver or user space application
  5850. * doesn't support the 6 GHz band.
  5851. */
  5852. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
  5853. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
  5854. /*
  5855. * Segment 1 in MHz (u32).
  5856. *
  5857. * For 20/40/80 MHz bandwidth, this is set to 0.
  5858. * For 160 MHz bandwidth, indicates the channel center frequency of the
  5859. * 160 MHz channel.
  5860. * For 320 MHz bandwidth, indicates the channel center frequency of the
  5861. * 320 MHz channel.
  5862. *
  5863. * To maintain backward compatibility,
  5864. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5865. * is also maintained.
  5866. */
  5867. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
  5868. /* Legacy alias for the Segment 1 attribute.
  5869. *
  5870. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  5871. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5872. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5873. * along with
  5874. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  5875. *
  5876. * If both the driver and user-space application supports the 6 GHz
  5877. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  5878. * is deprecated and
  5879. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5880. * should be considered.
  5881. *
  5882. * To maintain backward compatibility,
  5883. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5884. * is still used if either of the driver or user space application
  5885. * doesn't support the 6 GHz band.
  5886. */
  5887. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
  5888. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
  5889. /*
  5890. * 16-bit attribute of bits indicating the AP power modes supported by
  5891. * the channel (u16).
  5892. * Note: Currently, only 3 bits are used in the attribute and each bit
  5893. * corresponds to the power mode mentioned in enum
  5894. * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
  5895. * set if the associated mode is supported.
  5896. */
  5897. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
  5898. = 14,
  5899. /* Array of nested attributes for each power mode. It takes attr as
  5900. * defined in enum
  5901. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5902. */
  5903. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
  5904. /*
  5905. * This indicates the overlapping 320 MHz center frequency in MHz
  5906. * (u32), if the given primary channel supports more than one
  5907. * 320 MHz channel bonding.
  5908. *
  5909. * Example:
  5910. * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
  5911. * center frequency (primary 160 MHz) is 6185 MHz and there can be two
  5912. * possible segment 2 frequencies for this (320 MHz center
  5913. * frequencies):
  5914. *
  5915. * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
  5916. * from frequency 5945 MHz - 6265 MHz
  5917. * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
  5918. * from frequency 6105 MHz - 6425 MHz
  5919. *
  5920. * In this case,
  5921. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
  5922. * return 6185 MHz.
  5923. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
  5924. * return 6105 MHz.
  5925. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5926. * will return 6265 MHz.
  5927. */
  5928. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5929. = 16,
  5930. /* keep last */
  5931. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  5932. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  5933. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  5934. };
  5935. /**
  5936. * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
  5937. * values that the vendor external ACS channel power attribute
  5938. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
  5939. * take.
  5940. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
  5941. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
  5942. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
  5943. */
  5944. enum qca_wlan_vendor_external_acs_chan_power_level {
  5945. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
  5946. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
  5947. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
  5948. };
  5949. /**
  5950. * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
  5951. * attributes for power mode type and power values corresponding to that.
  5952. * These attributes are sent as part of
  5953. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
  5954. */
  5955. enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
  5956. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
  5957. /*
  5958. * Power mode (u8) takes the values defined in enum
  5959. * qca_wlan_vendor_external_acs_chan_power_mode
  5960. */
  5961. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
  5962. = 1,
  5963. /*
  5964. * Indicates if power value is a PSD/EIRP value (flag). If flag is
  5965. * present, it indicates a PSD value.
  5966. */
  5967. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
  5968. /*
  5969. * Power value (u32) PSD/EIRP as indicated by
  5970. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
  5971. * for power mode corresponding to the
  5972. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
  5973. * Units for PSD - dBm/MHz
  5974. * Units for EIRP - dBm
  5975. */
  5976. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
  5977. = 3,
  5978. /* keep last */
  5979. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
  5980. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
  5981. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
  5982. };
  5983. /**
  5984. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  5985. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  5986. * driver.
  5987. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  5988. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  5989. * ACS need to be started
  5990. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  5991. * driver supports spectral scanning or not
  5992. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  5993. * offloaded to firmware.
  5994. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  5995. * provides additional channel capability as part of scan operation.
  5996. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  5997. * interface status is UP
  5998. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  5999. * interface. It takes one of nl80211_iftype values.
  6000. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  6001. * of chan width. ACS logic should try to get a channel with specified width
  6002. * if not found then look for lower values.
  6003. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  6004. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  6005. * a/b/g/n/ac.
  6006. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  6007. * among which ACS should choose best frequency.
  6008. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  6009. * driver which will have <channel(u8), weight(u8)> format as array of
  6010. * nested values.
  6011. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  6012. * for each channel. It takes attr as defined in
  6013. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  6014. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  6015. * qca_wlan_vendor_attr_external_acs_policy.
  6016. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  6017. * Operating Parameter (RROP) availability information (u16). It uses values
  6018. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  6019. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
  6020. * indicate if driver supports 6 GHz AFC trigger for External ACS.
  6021. */
  6022. enum qca_wlan_vendor_attr_external_acs_event {
  6023. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  6024. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  6025. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  6026. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  6027. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  6028. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  6029. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  6030. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  6031. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  6032. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  6033. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  6034. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  6035. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  6036. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  6037. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  6038. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
  6039. /* keep last */
  6040. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  6041. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  6042. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  6043. };
  6044. enum qca_iface_type {
  6045. QCA_IFACE_TYPE_STA,
  6046. QCA_IFACE_TYPE_AP,
  6047. QCA_IFACE_TYPE_P2P_CLIENT,
  6048. QCA_IFACE_TYPE_P2P_GO,
  6049. QCA_IFACE_TYPE_IBSS,
  6050. QCA_IFACE_TYPE_TDLS,
  6051. };
  6052. /**
  6053. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  6054. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  6055. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  6056. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  6057. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  6058. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  6059. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  6060. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  6061. */
  6062. enum qca_wlan_vendor_attr_pcl_config {
  6063. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  6064. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  6065. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  6066. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  6067. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  6068. };
  6069. enum qca_set_band {
  6070. QCA_SETBAND_AUTO = 0,
  6071. QCA_SETBAND_5G = BIT(0),
  6072. QCA_SETBAND_2G = BIT(1),
  6073. QCA_SETBAND_6G = BIT(2),
  6074. };
  6075. /**
  6076. * enum set_reset_packet_filter - set packet filter control commands
  6077. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  6078. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  6079. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  6080. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  6081. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  6082. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  6083. */
  6084. enum set_reset_packet_filter {
  6085. QCA_WLAN_SET_PACKET_FILTER = 1,
  6086. QCA_WLAN_GET_PACKET_FILTER = 2,
  6087. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  6088. QCA_WLAN_READ_PACKET_FILTER = 4,
  6089. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  6090. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  6091. };
  6092. /**
  6093. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  6094. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  6095. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  6096. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  6097. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  6098. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  6099. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  6100. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  6101. * section in packet filter buffer
  6102. */
  6103. enum qca_wlan_vendor_attr_packet_filter {
  6104. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  6105. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  6106. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  6107. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  6108. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  6109. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  6110. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  6111. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  6112. /* keep last */
  6113. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  6114. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  6115. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  6116. };
  6117. /**
  6118. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  6119. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  6120. */
  6121. enum qca_wlan_vendor_attr_wake_stats {
  6122. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  6123. /* Unsigned 32-bit value indicating the total count of wake event */
  6124. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  6125. /* Array of individual wake count, each index representing wake reason
  6126. */
  6127. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  6128. /* Unsigned 32-bit value representing wake count array */
  6129. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  6130. /* Unsigned 32-bit total wake count value of driver/fw */
  6131. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  6132. /* Array of wake stats of driver/fw */
  6133. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  6134. /* Unsigned 32-bit total wake count value of driver/fw */
  6135. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  6136. /* Unsigned 32-bit total wake count value of packets received */
  6137. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  6138. /* Unsigned 32-bit wake count value unicast packets received */
  6139. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  6140. /* Unsigned 32-bit wake count value multicast packets received */
  6141. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  6142. /* Unsigned 32-bit wake count value broadcast packets received */
  6143. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  6144. /* Unsigned 32-bit wake count value of ICMP packets */
  6145. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  6146. /* Unsigned 32-bit wake count value of ICMP6 packets */
  6147. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  6148. /* Unsigned 32-bit value ICMP6 router advertisement */
  6149. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  6150. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  6151. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  6152. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  6153. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  6154. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  6155. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  6156. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  6157. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  6158. /* Unsigned 32-bit wake count value of receive side multicast */
  6159. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  6160. /* Unsigned 32-bit wake count value of a given RSSI breach */
  6161. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  6162. /* Unsigned 32-bit wake count value of low RSSI */
  6163. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  6164. /* Unsigned 32-bit value GSCAN count */
  6165. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  6166. /* Unsigned 32-bit value PNO complete count */
  6167. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  6168. /* Unsigned 32-bit value PNO match count */
  6169. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  6170. /* keep last */
  6171. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  6172. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  6173. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  6174. };
  6175. /**
  6176. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  6177. * configured by userspace to the driver/firmware. The values will be
  6178. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  6179. * The driver/firmware takes necessary actions requested by userspace
  6180. * such as throttling wifi tx etc. in order to mitigate high temperature.
  6181. *
  6182. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  6183. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  6184. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  6185. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  6186. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  6187. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  6188. */
  6189. enum qca_wlan_vendor_thermal_level {
  6190. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  6191. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  6192. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  6193. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  6194. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  6195. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  6196. };
  6197. /**
  6198. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  6199. * cmd value. Used for NL attributes for data used by
  6200. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6201. */
  6202. enum qca_wlan_vendor_attr_thermal_cmd {
  6203. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  6204. /* The value of command, driver will implement different operations
  6205. * according to this value. It uses values defined in
  6206. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  6207. * u32 attribute.
  6208. */
  6209. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  6210. /* Userspace uses this attribute to configure thermal level to the
  6211. * driver/firmware, or get thermal level from the driver/firmware.
  6212. * Used in request or response, u32 attribute,
  6213. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  6214. */
  6215. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  6216. /* Userspace uses this attribute to configure the time in which the
  6217. * driver/firmware should complete applying settings it received from
  6218. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  6219. * command type. Used in request, u32 attribute, value is in
  6220. * milliseconds. A value of zero indicates to apply the settings
  6221. * immediately. The driver/firmware can delay applying the configured
  6222. * thermal settings within the time specified in this attribute if
  6223. * there is any critical ongoing operation.
  6224. */
  6225. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  6226. /* Nested attribute, driver/firmware uses this attribute to report
  6227. * thermal stats of different thermal levels to userspace when requested
  6228. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  6229. * type. This attribute contains nested array of records of thermal
  6230. * statistics of multiple levels. The attributes used inside this nested
  6231. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  6232. */
  6233. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  6234. /* keep last */
  6235. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  6236. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  6237. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  6238. };
  6239. /**
  6240. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  6241. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  6242. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  6243. * thermal command types sent to driver.
  6244. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  6245. * get thermal shutdown configuration parameters for display. Parameters
  6246. * responded from driver are defined in
  6247. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  6248. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  6249. * get temperature. Host should respond with a temperature data. It is defined
  6250. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  6251. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  6252. * suspend action.
  6253. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  6254. * resume action.
  6255. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  6256. * the driver/firmware.
  6257. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  6258. * thermal level from the driver/firmware. The driver should respond with a
  6259. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  6260. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  6261. * current thermal stats from the driver/firmware. The driver should respond
  6262. * with stats of all thermal levels encapsulated in attribute
  6263. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  6264. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  6265. * the current thermal stats all thermal levels maintained in the
  6266. * driver/firmware and start counting from zero again.
  6267. */
  6268. enum qca_wlan_vendor_attr_thermal_cmd_type {
  6269. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  6270. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  6271. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  6272. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  6273. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  6274. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  6275. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  6276. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  6277. };
  6278. /**
  6279. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  6280. * to get chip temperature by user.
  6281. * enum values are used for NL attributes for data used by
  6282. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  6283. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6284. */
  6285. enum qca_wlan_vendor_attr_thermal_get_temperature {
  6286. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  6287. /* Temperature value (degree Celsius) from driver.
  6288. * u32 attribute.
  6289. */
  6290. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  6291. /* keep last */
  6292. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  6293. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  6294. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  6295. };
  6296. /**
  6297. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  6298. * report thermal events from driver to user space.
  6299. * enum values are used for NL attributes for data used by
  6300. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  6301. */
  6302. enum qca_wlan_vendor_attr_thermal_event {
  6303. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  6304. /* Temperature value (degree Celsius) from driver.
  6305. * u32 attribute.
  6306. */
  6307. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  6308. /* Indication of resume completion from power save mode.
  6309. * NLA_FLAG attribute.
  6310. */
  6311. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  6312. /* Thermal level from the driver.
  6313. * u32 attribute. Possible values are defined in
  6314. * enum qca_wlan_vendor_thermal_level.
  6315. */
  6316. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  6317. /* keep last */
  6318. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  6319. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  6320. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  6321. };
  6322. /**
  6323. * enum qca_vendor_element_id - QCA Vendor Specific element types
  6324. *
  6325. * These values are used to identify QCA Vendor Specific elements. The
  6326. * payload of the element starts with the three octet OUI (OUI_QCA) and
  6327. * is followed by a single octet type which is defined by this enum.
  6328. *
  6329. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  6330. * This element can be used to specify preference order for supported
  6331. * channels. The channels in this list are in preference order (the first
  6332. * one has the highest preference) and are described as a pair of
  6333. * (global) Operating Class and Channel Number (each one octet) fields.
  6334. *
  6335. * This extends the standard P2P functionality by providing option to have
  6336. * more than one preferred operating channel. When this element is present,
  6337. * it replaces the preference indicated in the Operating Channel attribute.
  6338. * For supporting other implementations, the Operating Channel attribute is
  6339. * expected to be used with the highest preference channel. Similarly, all
  6340. * the channels included in this Preferred channel list element are
  6341. * expected to be included in the Channel List attribute.
  6342. *
  6343. * This vendor element may be included in GO Negotiation Request, P2P
  6344. * Invitation Request, and Provision Discovery Request frames.
  6345. *
  6346. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  6347. * This element can be used for pre-standard publication testing of HE
  6348. * before P802.11ax draft assigns the element ID. The payload of this
  6349. * vendor specific element is defined by the latest P802.11ax draft.
  6350. * Please note that the draft is still work in progress and this element
  6351. * payload is subject to change.
  6352. *
  6353. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  6354. * This element can be used for pre-standard publication testing of HE
  6355. * before P802.11ax draft assigns the element ID. The payload of this
  6356. * vendor specific element is defined by the latest P802.11ax draft.
  6357. * Please note that the draft is still work in progress and this element
  6358. * payload is subject to change.
  6359. *
  6360. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  6361. * element).
  6362. * This element can be used for pre-standard publication testing of HE
  6363. * before P802.11ax draft assigns the element ID extension. The payload of
  6364. * this vendor specific element is defined by the latest P802.11ax draft
  6365. * (not including the Element ID Extension field). Please note that the
  6366. * draft is still work in progress and this element payload is subject to
  6367. * change.
  6368. *
  6369. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  6370. * This element can be used for pre-standard publication testing of HE
  6371. * before P802.11ax draft assigns the element ID extension. The payload of
  6372. * this vendor specific element is defined by the latest P802.11ax draft
  6373. * (not including the Element ID Extension field). Please note that the
  6374. * draft is still work in progress and this element payload is subject to
  6375. * change.
  6376. *
  6377. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  6378. * This element can be used for pre-standard publication testing of HE
  6379. * before P802.11ax draft assigns the element ID extension. The payload of
  6380. * this vendor specific element is defined by the latest P802.11ax draft
  6381. * (not including the Element ID Extension field). Please note that the
  6382. * draft is still work in progress and this element payload is subject to
  6383. * change.
  6384. */
  6385. enum qca_vendor_element_id {
  6386. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  6387. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  6388. QCA_VENDOR_ELEM_HE_OPER = 2,
  6389. QCA_VENDOR_ELEM_RAPS = 3,
  6390. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  6391. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  6392. };
  6393. /**
  6394. * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
  6395. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
  6396. * Specify the TSF command. Possible values are defined in
  6397. * &enum qca_tsf_cmd.
  6398. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
  6399. * This attribute contains TSF timer value. This attribute is only available
  6400. * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6401. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
  6402. * This attribute contains SOC timer value at TSF capture. This attribute is
  6403. * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6404. * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
  6405. * This attribute is used to provide TSF sync interval and only applicable when
  6406. * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
  6407. * driver will use the default value. Time unit is in milliseconds.
  6408. */
  6409. enum qca_vendor_attr_tsf_cmd {
  6410. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  6411. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  6412. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  6413. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  6414. QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
  6415. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  6416. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  6417. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  6418. };
  6419. /**
  6420. * enum qca_tsf_cmd: TSF driver commands
  6421. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  6422. * @QCA_TSF_GET: Get TSF capture value
  6423. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  6424. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  6425. * will automatically send TSF report to the host. To query
  6426. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  6427. * initiated first.
  6428. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  6429. * will not automatically send TSF report to the host. If
  6430. * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  6431. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  6432. * operation needs to be initiated.
  6433. * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
  6434. * fetches TSF and host time mapping from the firmware with interval configured
  6435. * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
  6436. * interval value is not provided the driver will use the default value. The
  6437. * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
  6438. * command.
  6439. * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
  6440. */
  6441. enum qca_tsf_cmd {
  6442. QCA_TSF_CAPTURE,
  6443. QCA_TSF_GET,
  6444. QCA_TSF_SYNC_GET,
  6445. QCA_TSF_AUTO_REPORT_ENABLE,
  6446. QCA_TSF_AUTO_REPORT_DISABLE,
  6447. QCA_TSF_SYNC_START,
  6448. QCA_TSF_SYNC_STOP,
  6449. };
  6450. /**
  6451. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  6452. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  6453. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  6454. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  6455. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  6456. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  6457. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  6458. */
  6459. enum qca_vendor_attr_get_preferred_freq_list {
  6460. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  6461. /* A 32-unsigned value; the interface type/mode for which the preferred
  6462. * frequency list is requested (see enum qca_iface_type for possible
  6463. * values); used in both south- and north-bound.
  6464. */
  6465. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  6466. /* An array of 32-unsigned values; values are frequency (MHz); used
  6467. * in north-bound only.
  6468. */
  6469. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  6470. /* An array of nested values as per enum
  6471. * qca_wlan_vendor_attr_pcl_config attribute.
  6472. * Each element contains frequency (MHz), weight, and flag
  6473. * bit mask indicating how the frequency should be used in P2P
  6474. * negotiation.
  6475. */
  6476. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  6477. /* keep last */
  6478. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  6479. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  6480. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  6481. };
  6482. /**
  6483. * enum qca_vendor_attr_probable_oper_channel - channel hint
  6484. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  6485. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  6486. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  6487. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  6488. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  6489. */
  6490. enum qca_vendor_attr_probable_oper_channel {
  6491. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  6492. /* 32-bit unsigned value; indicates the connection/iface type likely to
  6493. * come on this channel (see enum qca_iface_type).
  6494. */
  6495. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  6496. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  6497. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  6498. /* keep last */
  6499. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  6500. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  6501. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  6502. };
  6503. /**
  6504. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  6505. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  6506. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  6507. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  6508. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  6509. */
  6510. enum qca_wlan_vendor_attr_gw_param_config {
  6511. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  6512. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  6513. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  6514. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  6515. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  6516. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  6517. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  6518. };
  6519. /**
  6520. * enum drv_dbs_capability - DBS capability
  6521. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  6522. * @DRV_DBS_CAPABILITY_1X1: 1x1
  6523. * @DRV_DBS_CAPABILITY_2X2: 2x2
  6524. */
  6525. enum drv_dbs_capability {
  6526. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  6527. DRV_DBS_CAPABILITY_1X1,
  6528. DRV_DBS_CAPABILITY_2X2,
  6529. };
  6530. /**
  6531. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  6532. *
  6533. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  6534. */
  6535. enum qca_vendor_attr_txpower_decr_db {
  6536. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  6537. /*
  6538. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  6539. * a virtual interface.
  6540. */
  6541. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  6542. /* keep last */
  6543. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  6544. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  6545. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  6546. };
  6547. /**
  6548. * enum qca_vendor_attr_ota_test - Enable OTA test
  6549. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  6550. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  6551. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  6552. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  6553. */
  6554. enum qca_vendor_attr_ota_test {
  6555. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  6556. /* 8-bit unsigned value to indicate if OTA test is enabled */
  6557. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  6558. /* keep last */
  6559. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  6560. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  6561. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  6562. };
  6563. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  6564. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  6565. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  6566. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  6567. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  6568. */
  6569. enum qca_vendor_attr_txpower_scale {
  6570. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  6571. /* 8-bit unsigned value to indicate the scaling of tx power */
  6572. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  6573. /* keep last */
  6574. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  6575. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  6576. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  6577. };
  6578. /**
  6579. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  6580. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  6581. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  6582. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  6583. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  6584. */
  6585. enum qca_vendor_attr_txpower_scale_decr_db {
  6586. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  6587. /* 8-bit unsigned value to indicate the scaling of tx power */
  6588. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  6589. /* keep last */
  6590. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  6591. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  6592. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  6593. };
  6594. /**
  6595. * enum dfs_mode - state of DFS mode
  6596. * @DFS_MODE_NONE: DFS mode attribute is none
  6597. * @DFS_MODE_ENABLE: DFS mode is enabled
  6598. * @DFS_MODE_DISABLE: DFS mode is disabled
  6599. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  6600. */
  6601. enum dfs_mode {
  6602. DFS_MODE_NONE,
  6603. DFS_MODE_ENABLE,
  6604. DFS_MODE_DISABLE,
  6605. DFS_MODE_DEPRIORITIZE
  6606. };
  6607. /**
  6608. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  6609. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  6610. *
  6611. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  6612. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  6613. *
  6614. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  6615. * channel number hint for ACS operation, if valid channel is specified then
  6616. * ACS operation gives priority to this channel.
  6617. * Note: If both the driver and user space application supports the 6 GHz band,
  6618. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  6619. * should be used.
  6620. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  6621. * is still used if either of the driver or user space application doesn't
  6622. * support the 6 GHz band.
  6623. *
  6624. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  6625. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  6626. * frequency is specified, ACS operation gives priority to this channel.
  6627. */
  6628. enum qca_wlan_vendor_attr_acs_config {
  6629. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  6630. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  6631. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  6632. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  6633. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  6634. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  6635. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  6636. };
  6637. /**
  6638. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  6639. */
  6640. enum qca_wlan_vendor_attr_get_hw_capability {
  6641. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  6642. /*
  6643. * Antenna isolation
  6644. * An attribute used in the response.
  6645. * The content of this attribute is encoded in a byte array. Each byte
  6646. * value is an antenna isolation value. The array length is the number
  6647. * of antennas.
  6648. */
  6649. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  6650. /*
  6651. * Request HW capability
  6652. * An attribute used in the request.
  6653. * The content of this attribute is a u32 array for one or more of
  6654. * hardware capabilities (attribute IDs) that are being requested. Each
  6655. * u32 value has a value from this
  6656. * enum qca_wlan_vendor_attr_get_hw_capability
  6657. * identifying which capabilities are requested.
  6658. */
  6659. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  6660. /* keep last */
  6661. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  6662. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  6663. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  6664. };
  6665. /**
  6666. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  6667. * config params for sta roam policy
  6668. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  6669. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  6670. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  6671. * If sta should skip unsafe channels or not in scanning
  6672. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  6673. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  6674. */
  6675. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  6676. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  6677. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  6678. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  6679. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  6680. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  6681. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  6682. };
  6683. /* Attributes for FTM commands and events */
  6684. /**
  6685. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  6686. *
  6687. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  6688. * enum qca_wlan_vendor_attr_loc_capa_flags.
  6689. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  6690. * of measurement sessions that can run concurrently.
  6691. * Default is one session (no session concurrency).
  6692. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  6693. * peers that are supported in running sessions. For example,
  6694. * if the value is 8 and maximum number of sessions is 2, you can
  6695. * have one session with 8 unique peers, or 2 sessions with 4 unique
  6696. * peers each, and so on.
  6697. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  6698. * of bursts per peer, as an exponent (2^value). Default is 0,
  6699. * meaning no multi-burst support.
  6700. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  6701. * of measurement exchanges allowed in a single burst.
  6702. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  6703. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  6704. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  6705. */
  6706. enum qca_wlan_vendor_attr_loc_capa {
  6707. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  6708. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  6709. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  6710. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  6711. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  6712. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  6713. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  6714. /* keep last */
  6715. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  6716. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  6717. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  6718. };
  6719. /**
  6720. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  6721. *
  6722. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  6723. * can be configured as an FTM responder (for example, an AP that
  6724. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  6725. * will be supported if set.
  6726. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  6727. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  6728. * will be supported if set.
  6729. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  6730. * supports immediate (ASAP) response.
  6731. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  6732. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  6733. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  6734. * requesting AOA measurements as part of an FTM session.
  6735. */
  6736. enum qca_wlan_vendor_attr_loc_capa_flags {
  6737. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  6738. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  6739. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  6740. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  6741. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  6742. };
  6743. /**
  6744. * enum qca_wlan_ani_setting - ANI setting type
  6745. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  6746. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  6747. */
  6748. enum qca_wlan_ani_setting {
  6749. QCA_WLAN_ANI_SETTING_AUTO = 0,
  6750. QCA_WLAN_ANI_SETTING_FIXED = 1,
  6751. };
  6752. /**
  6753. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  6754. *
  6755. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  6756. * Channel number on which Access Point should restart.
  6757. * Note: If both the driver and user space application supports the 6 GHz band,
  6758. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  6759. * should be used.
  6760. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  6761. * is still used if either of the driver or user space application doesn't
  6762. * support the 6 GHz band.
  6763. *
  6764. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  6765. * Nested attribute to hold list of center frequencies on which AP is
  6766. * expected to operate. This is irrespective of ACS configuration.
  6767. * This list is a priority based one and is looked for before the AP is
  6768. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  6769. * co-exist in the system.
  6770. *
  6771. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  6772. * Channel center frequency (MHz) on which the access point should restart.
  6773. */
  6774. enum qca_wlan_vendor_attr_sap_config {
  6775. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  6776. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  6777. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  6778. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  6779. /* Keep last */
  6780. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  6781. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  6782. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  6783. };
  6784. /**
  6785. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  6786. * a single peer in a measurement session.
  6787. *
  6788. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  6789. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  6790. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  6791. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  6792. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  6793. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  6794. * list of supported attributes.
  6795. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  6796. * secure measurement.
  6797. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  6798. * measurement every <value> bursts. If 0 or not specified,
  6799. * AOA measurements will be disabled for this peer.
  6800. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  6801. * the measurement frames are exchanged. Optional; if not
  6802. * specified, try to locate the peer in the kernel scan
  6803. * results cache and use frequency from there.
  6804. */
  6805. enum qca_wlan_vendor_attr_ftm_peer_info {
  6806. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  6807. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  6808. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  6809. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  6810. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  6811. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  6812. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  6813. /* keep last */
  6814. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  6815. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  6816. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  6817. };
  6818. /**
  6819. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  6820. * per-peer
  6821. *
  6822. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  6823. * immediate (ASAP) response from peer.
  6824. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  6825. * LCI report from peer. The LCI report includes the absolute
  6826. * location of the peer in "official" coordinates (similar to GPS).
  6827. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  6828. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  6829. * Location civic report from peer. The LCR includes the location
  6830. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  6831. * 11.24.6.7 for more information.
  6832. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  6833. * request a secure measurement.
  6834. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  6835. */
  6836. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  6837. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  6838. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  6839. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  6840. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  6841. };
  6842. /**
  6843. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  6844. *
  6845. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  6846. * to perform in a single burst.
  6847. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  6848. * perform, specified as an exponent (2^value).
  6849. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  6850. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  6851. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  6852. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  6853. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  6854. */
  6855. enum qca_wlan_vendor_attr_ftm_meas_param {
  6856. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  6857. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  6858. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  6859. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  6860. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  6861. /* keep last */
  6862. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  6863. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  6864. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  6865. };
  6866. /**
  6867. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  6868. *
  6869. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  6870. * peer.
  6871. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  6872. * request for this peer.
  6873. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  6874. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  6875. * to measurement results for this peer.
  6876. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  6877. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  6878. * request failed and peer requested not to send an additional request
  6879. * for this number of seconds.
  6880. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  6881. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6882. * 9.4.2.22.10.
  6883. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  6884. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6885. * 9.4.2.22.13.
  6886. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  6887. * overridden some measurement request parameters. See
  6888. * enum qca_wlan_vendor_attr_ftm_meas_param.
  6889. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  6890. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  6891. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  6892. * results. Each entry is a nested attribute defined
  6893. * by enum qca_wlan_vendor_attr_ftm_meas.
  6894. */
  6895. enum qca_wlan_vendor_attr_ftm_peer_result {
  6896. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  6897. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  6898. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  6899. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  6900. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  6901. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  6902. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  6903. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  6904. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  6905. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  6906. /* keep last */
  6907. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  6908. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  6909. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  6910. };
  6911. /**
  6912. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  6913. *
  6914. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  6915. * will be provided. Peer may have overridden some measurement parameters,
  6916. * in which case overridden parameters will be report by
  6917. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  6918. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  6919. * of performing the measurement request. No more results will be sent
  6920. * for this peer in this session.
  6921. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  6922. * failed, and requested not to send an additional request for number
  6923. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  6924. * attribute.
  6925. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  6926. * failed. Request was not sent over the air.
  6927. */
  6928. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  6929. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  6930. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  6931. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  6932. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  6933. };
  6934. /**
  6935. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  6936. * for measurement result, per-peer
  6937. *
  6938. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  6939. * measurement completed for this peer. No more results will be reported
  6940. * for this peer in this session.
  6941. */
  6942. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  6943. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  6944. };
  6945. /**
  6946. * enum qca_vendor_attr_loc_session_status: Session completion status code
  6947. *
  6948. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  6949. * successfully.
  6950. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  6951. * by request.
  6952. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  6953. * was invalid and was not started.
  6954. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  6955. * and did not complete normally (for example out of resources).
  6956. */
  6957. enum qca_vendor_attr_loc_session_status {
  6958. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  6959. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  6960. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  6961. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  6962. };
  6963. /**
  6964. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  6965. *
  6966. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  6967. * recorded by responder, in picoseconds.
  6968. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6969. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  6970. * initiator, in picoseconds.
  6971. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6972. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  6973. * initiator, in picoseconds.
  6974. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6975. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  6976. * responder, in picoseconds.
  6977. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6978. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  6979. * during this measurement exchange. Optional and will be provided if
  6980. * the hardware can measure it.
  6981. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  6982. * responder. Not always provided.
  6983. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6984. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  6985. * responder. Not always provided.
  6986. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6987. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  6988. * initiator. Not always provided.
  6989. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6990. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  6991. * initiator. Not always provided.
  6992. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6993. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  6994. */
  6995. enum qca_wlan_vendor_attr_ftm_meas {
  6996. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  6997. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  6998. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  6999. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  7000. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  7001. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  7002. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  7003. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  7004. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  7005. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  7006. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  7007. /* keep last */
  7008. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  7009. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  7010. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  7011. };
  7012. /**
  7013. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  7014. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  7015. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  7016. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  7017. * of the social channels.
  7018. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  7019. * A 32-bit unsigned value; the P2P listen offload period (ms).
  7020. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  7021. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  7022. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  7023. * A 32-bit unsigned value; number of interval times the Firmware needs
  7024. * to run the offloaded P2P listen operation before it stops.
  7025. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  7026. * An array of unsigned 8-bit characters; vendor information elements.
  7027. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  7028. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  7029. * A 32-bit unsigned value; a control flag to indicate whether listen
  7030. * results need to be flushed to wpa_supplicant.
  7031. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  7032. * A 8-bit unsigned value; reason code for P2P listen offload stop
  7033. * event.
  7034. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  7035. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  7036. */
  7037. enum qca_wlan_vendor_attr_p2p_listen_offload {
  7038. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  7039. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  7040. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  7041. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  7042. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  7043. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  7044. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  7045. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  7046. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  7047. /* keep last */
  7048. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  7049. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  7050. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  7051. };
  7052. /**
  7053. * enum qca_wlan_vendor_drv_info - WLAN driver info
  7054. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  7055. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  7056. * between Firmware & Host.
  7057. */
  7058. enum qca_wlan_vendor_drv_info {
  7059. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  7060. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  7061. /* keep last */
  7062. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  7063. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  7064. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  7065. };
  7066. /**
  7067. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  7068. *
  7069. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  7070. * CIR (channel impulse response) path for each antenna.
  7071. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  7072. * of the strongest CIR path for each antenna.
  7073. */
  7074. enum qca_wlan_vendor_attr_aoa_type {
  7075. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  7076. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  7077. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  7078. };
  7079. /**
  7080. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  7081. * validate encryption engine
  7082. *
  7083. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  7084. * This will be included if the request is for decryption; if not included,
  7085. * the request is treated as a request for encryption by default.
  7086. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  7087. * indicating the key cipher suite. Takes same values as
  7088. * NL80211_ATTR_KEY_CIPHER.
  7089. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  7090. * Key Id to be used for encryption
  7091. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  7092. * Key (TK) to be used for encryption/decryption
  7093. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  7094. * Packet number to be specified for encryption/decryption
  7095. * 6 bytes for TKIP/CCMP/GCMP.
  7096. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  7097. * representing the 802.11 packet (header + payload + FCS) that
  7098. * needs to be encrypted/decrypted.
  7099. * Encrypted/decrypted response from the driver will also be sent
  7100. * to userspace with the same attribute.
  7101. */
  7102. enum qca_wlan_vendor_attr_encryption_test {
  7103. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  7104. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  7105. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  7106. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  7107. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  7108. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  7109. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  7110. /* keep last */
  7111. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  7112. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  7113. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  7114. };
  7115. /**
  7116. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  7117. * sector for DMG RF sector operations.
  7118. *
  7119. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  7120. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  7121. */
  7122. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  7123. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  7124. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  7125. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  7126. };
  7127. /**
  7128. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  7129. *
  7130. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  7131. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  7132. */
  7133. enum qca_wlan_vendor_attr_fw_state {
  7134. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  7135. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  7136. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  7137. };
  7138. /**
  7139. * BRP antenna limit mode
  7140. *
  7141. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  7142. * antenna limit, BRP will be performed as usual.
  7143. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  7144. * antennas limit. the hardware may use less antennas than the
  7145. * maximum limit.
  7146. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  7147. * use exactly the specified number of antennas for BRP.
  7148. */
  7149. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  7150. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  7151. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  7152. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  7153. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  7154. };
  7155. /**
  7156. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  7157. * DMG RF sector configuration for a single RF module.
  7158. * The values are defined in a compact way which closely matches
  7159. * the way it is stored in HW registers.
  7160. * The configuration provides values for 32 antennas and 8 distribution
  7161. * amplifiers, and together describes the characteristics of the RF
  7162. * sector - such as a beam in some direction with some gain.
  7163. *
  7164. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  7165. * of RF module for this configuration.
  7166. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  7167. * amplifier gain index. Unsigned 32 bit number containing
  7168. * bits for all 32 antennas.
  7169. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  7170. * amplifier gain index. Unsigned 32 bit number containing
  7171. * bits for all 32 antennas.
  7172. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  7173. * amplifier gain index. Unsigned 32 bit number containing
  7174. * bits for all 32 antennas.
  7175. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  7176. * for first 16 antennas, 2 bits per antenna.
  7177. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  7178. * for last 16 antennas, 2 bits per antenna.
  7179. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  7180. * DTYPE values (3 bits) for each distribution amplifier, followed
  7181. * by X16 switch bits for each distribution amplifier. There are
  7182. * total of 8 distribution amplifiers.
  7183. */
  7184. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  7185. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  7186. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  7187. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  7188. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  7189. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  7190. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  7191. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  7192. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  7193. /* keep last */
  7194. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  7195. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  7196. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  7197. };
  7198. /**
  7199. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  7200. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  7201. *
  7202. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  7203. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  7204. * represents the different TDLS trigger modes.
  7205. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  7206. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  7207. * of packets shall meet the criteria for implicit TDLS setup.
  7208. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  7209. * packets within a duration.
  7210. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  7211. * a TDLS setup.
  7212. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
  7213. * a TDLS Discovery to the Peer.
  7214. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  7215. * discovery attempts to know the TDLS capability of the peer. A peer is
  7216. * marked as TDLS not capable if there is no response for all the attempts.
  7217. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  7218. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  7219. * number of TX / RX frames meet the criteria for TDLS teardown.
  7220. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  7221. * (u32) of Tx/Rx packets within a duration
  7222. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  7223. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  7224. * corresponding to the RSSI of the peer below which a TDLS
  7225. * setup is triggered.
  7226. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  7227. * corresponding to the RSSI of the peer above which
  7228. * a TDLS teardown is triggered.
  7229. */
  7230. enum qca_wlan_vendor_attr_tdls_configuration {
  7231. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  7232. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  7233. /* Attributes configuring the TDLS Implicit Trigger */
  7234. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  7235. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  7236. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  7237. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  7238. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  7239. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  7240. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  7241. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  7242. /* keep last */
  7243. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  7244. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  7245. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  7246. };
  7247. /**
  7248. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  7249. * the driver.
  7250. *
  7251. * The following are the different values for
  7252. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  7253. *
  7254. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  7255. * initiate/teardown the TDLS connection to a respective peer comes
  7256. * from the user space. wpa_supplicant provides the commands
  7257. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  7258. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  7259. * setup/teardown to the eligible peer once the configured criteria
  7260. * (such as TX/RX threshold, RSSI) is met. The attributes
  7261. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  7262. * the different configuration criteria for the TDLS trigger from the
  7263. * host driver.
  7264. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  7265. * the TDLS setup / teardown through the implicit mode, only to the
  7266. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  7267. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  7268. * External mode works on top of the implicit mode, thus the host Driver
  7269. * is expected to be configured in TDLS Implicit mode too to operate in
  7270. * External mode. Configuring External mode alone without Implicit
  7271. * mode is invalid.
  7272. *
  7273. * All the above implementations work as expected only when the host driver
  7274. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  7275. * representing that the TDLS message exchange is not internal to the host
  7276. * driver, but depends on wpa_supplicant to do the message exchange.
  7277. */
  7278. enum qca_wlan_vendor_tdls_trigger_mode {
  7279. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  7280. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  7281. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  7282. };
  7283. /**
  7284. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  7285. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  7286. * that is hard-coded in the Board Data File (BDF).
  7287. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  7288. * that is hard-coded in the Board Data File (BDF).
  7289. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  7290. * that is hard-coded in the Board Data File (BDF).
  7291. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  7292. * that is hard-coded in the Board Data File (BDF).
  7293. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  7294. * that is hard-coded in the Board Data File (BDF).
  7295. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  7296. * source of SAR power limits, thereby disabling the SAR power
  7297. * limit feature.
  7298. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  7299. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7300. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  7301. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7302. *
  7303. * This enumerates the valid set of values that may be supplied for
  7304. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  7305. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  7306. * the response to an instance of the
  7307. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7308. */
  7309. enum qca_vendor_attr_sar_limits_selections {
  7310. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  7311. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  7312. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  7313. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  7314. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  7315. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  7316. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  7317. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  7318. };
  7319. /**
  7320. * enum qca_vendor_attr_sar_limits_spec_modulations -
  7321. * SAR limits specification modulation
  7322. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  7323. * CCK modulation
  7324. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  7325. * OFDM modulation
  7326. *
  7327. * This enumerates the valid set of values that may be supplied for
  7328. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  7329. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  7330. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  7331. * command or in the response to an instance of the
  7332. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7333. */
  7334. enum qca_vendor_attr_sar_limits_spec_modulations {
  7335. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  7336. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  7337. };
  7338. /**
  7339. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  7340. *
  7341. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  7342. * select which SAR power limit table should be used. Valid
  7343. * values are enumerated in enum
  7344. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  7345. * power limit selection is unchanged if this attribute is not
  7346. * present.
  7347. *
  7348. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  7349. * which specifies the number of SAR power limit specifications
  7350. * which will follow.
  7351. *
  7352. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  7353. * limit specifications. The number of specifications is
  7354. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  7355. * specification contains a set of
  7356. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  7357. * specification is uniquely identified by the attributes
  7358. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  7359. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  7360. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  7361. * contains as a payload the attribute
  7362. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  7363. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  7364. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  7365. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  7366. * needed based upon the value of
  7367. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  7368. *
  7369. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  7370. * indicate for which band this specification applies. Valid
  7371. * values are enumerated in enum %nl80211_band (although not all
  7372. * bands may be supported by a given device). If the attribute is
  7373. * not supplied then the specification will be applied to all
  7374. * supported bands.
  7375. *
  7376. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  7377. * to indicate for which antenna chain this specification
  7378. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  7379. * attribute is not supplied then the specification will be
  7380. * applied to all chains.
  7381. *
  7382. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  7383. * value to indicate for which modulation scheme this
  7384. * specification applies. Valid values are enumerated in enum
  7385. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  7386. * is not supplied then the specification will be applied to all
  7387. * modulation schemes.
  7388. *
  7389. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  7390. * value to specify the actual power limit value in units of 0.5
  7391. * dBm (i.e., a value of 11 represents 5.5 dBm).
  7392. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7393. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  7394. *
  7395. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  7396. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  7397. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7398. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  7399. *
  7400. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  7401. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  7402. */
  7403. enum qca_vendor_attr_sar_limits {
  7404. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  7405. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  7406. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  7407. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  7408. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  7409. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  7410. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  7411. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  7412. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  7413. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  7414. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  7415. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  7416. };
  7417. /**
  7418. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  7419. * offload which is an extension for LL_STATS.
  7420. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  7421. * If MAC counters do not exceed the threshold, FW will report monitored
  7422. * link layer counters periodically as this setting. The first report is
  7423. * always triggered by this timer.
  7424. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  7425. * For each MAC layer counter, FW holds two copies. One is the current value.
  7426. * The other is the last report. Once a current counter's increment is larger
  7427. * than the threshold, FW will indicate that counter to host even if the
  7428. * monitoring timer does not expire.
  7429. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  7430. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  7431. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  7432. * failure code.
  7433. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  7434. * 1: TX packet discarded
  7435. * 2: No ACK
  7436. * 3: Postpone
  7437. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  7438. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  7439. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  7440. * Threshold for all monitored parameters. If per counter dedicated threshold
  7441. * is not enabled, this threshold will take effect.
  7442. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  7443. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  7444. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  7445. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  7446. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  7447. * Bit0: TX counter unit in MSDU
  7448. * Bit1: TX counter unit in MPDU
  7449. * Bit2: TX counter unit in PPDU
  7450. * Bit3: TX counter unit in byte
  7451. * Bit4: Dropped MSDUs
  7452. * Bit5: Dropped Bytes
  7453. * Bit6: MPDU retry counter
  7454. * Bit7: MPDU failure counter
  7455. * Bit8: PPDU failure counter
  7456. * Bit9: MPDU aggregation counter
  7457. * Bit10: MCS counter for ACKed MPDUs
  7458. * Bit11: MCS counter for Failed MPDUs
  7459. * Bit12: TX Delay counter
  7460. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  7461. * Bit0: MAC RX counter unit in MPDU
  7462. * Bit1: MAC RX counter unit in byte
  7463. * Bit2: PHY RX counter unit in PPDU
  7464. * Bit3: PHY RX counter unit in byte
  7465. * Bit4: Disorder counter
  7466. * Bit5: Retry counter
  7467. * Bit6: Duplication counter
  7468. * Bit7: Discard counter
  7469. * Bit8: MPDU aggregation size counter
  7470. * Bit9: MCS counter
  7471. * Bit10: Peer STA power state change (wake to sleep) counter
  7472. * Bit11: Peer STA power save counter, total time in PS mode
  7473. * Bit12: Probe request counter
  7474. * Bit13: Other management frames counter
  7475. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  7476. * Bit0: Idle time
  7477. * Bit1: TX time
  7478. * Bit2: time RX in current bss
  7479. * Bit3: Out of current bss time
  7480. * Bit4: Wireless medium busy time
  7481. * Bit5: RX in bad condition time
  7482. * Bit6: TX in bad condition time
  7483. * Bit7: time wlan card not available
  7484. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  7485. * Bit0: Per channel SNR counter
  7486. * Bit1: Per channel noise floor counter
  7487. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  7488. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  7489. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  7490. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  7491. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  7492. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  7493. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  7494. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  7495. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  7496. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  7497. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  7498. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  7499. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  7500. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  7501. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  7502. * aggregation stats buffer length
  7503. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  7504. * buffer for ACKed MPDUs.
  7505. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  7506. * buffer for failed MPDUs.
  7507. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  7508. * length of delay stats array.
  7509. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  7510. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  7511. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  7512. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  7513. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  7514. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  7515. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  7516. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  7517. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  7518. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  7519. * flagged as retransmissions
  7520. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  7521. * flagged as duplicated
  7522. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  7523. * packets discarded
  7524. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  7525. * stats buffer.
  7526. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  7527. * stats buffer.
  7528. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  7529. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  7530. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  7531. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  7532. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  7533. * requests received
  7534. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  7535. * frames received
  7536. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  7537. * there is no TX, nor RX, nor interference.
  7538. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  7539. * transmitting packets.
  7540. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  7541. * for receiving.
  7542. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  7543. * interference detected.
  7544. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  7545. * receiving packets with errors.
  7546. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  7547. * TX no-ACK.
  7548. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  7549. * the chip is unable to work in normal conditions.
  7550. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  7551. * receiving packets in current BSS.
  7552. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  7553. * receiving packets not in current BSS.
  7554. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  7555. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  7556. * This is a container for per antenna signal stats.
  7557. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  7558. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  7559. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  7560. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  7561. */
  7562. enum qca_wlan_vendor_attr_ll_stats_ext {
  7563. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  7564. /* Attributes for configurations */
  7565. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  7566. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  7567. /* Peer STA power state change */
  7568. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  7569. /* TX failure event */
  7570. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  7571. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  7572. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  7573. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  7574. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  7575. /* MAC counters */
  7576. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  7577. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  7578. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  7579. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  7580. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  7581. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  7582. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  7583. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  7584. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  7585. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  7586. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  7587. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  7588. /* Sub-attributes for PEER_AC_TX */
  7589. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  7590. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  7591. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  7592. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  7593. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  7594. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  7595. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  7596. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  7597. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  7598. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  7599. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  7600. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  7601. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  7602. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  7603. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  7604. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  7605. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  7606. /* Sub-attributes for PEER_AC_RX */
  7607. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  7608. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  7609. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  7610. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  7611. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  7612. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  7613. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  7614. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  7615. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  7616. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  7617. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  7618. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  7619. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  7620. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  7621. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  7622. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  7623. /* Sub-attributes for CCA_BSS */
  7624. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  7625. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  7626. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  7627. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  7628. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  7629. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  7630. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  7631. /* sub-attribute for BSS_RX_TIME */
  7632. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  7633. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  7634. /* Sub-attributes for PEER_SIGNAL */
  7635. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  7636. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  7637. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  7638. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  7639. /* Sub-attributes for IFACE_BSS */
  7640. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  7641. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  7642. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  7643. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  7644. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  7645. };
  7646. /**
  7647. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  7648. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  7649. * in priority order as decided after ACS operation in userspace.
  7650. *
  7651. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  7652. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  7653. *
  7654. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  7655. * Array of nested values for each channel with following attributes:
  7656. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7657. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7658. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7659. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7660. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7661. * Note: If both the driver and user-space application supports the 6 GHz band,
  7662. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  7663. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  7664. * To maintain backward compatibility,
  7665. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  7666. * is still used if either of the driver or user space application doesn't
  7667. * support the 6 GHz band.
  7668. *
  7669. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  7670. * Primary channel number
  7671. * Note: If both the driver and user-space application supports the 6 GHz band,
  7672. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  7673. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  7674. * To maintain backward compatibility,
  7675. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  7676. * is still used if either of the driver or user space application doesn't
  7677. * support the 6 GHz band.
  7678. *
  7679. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  7680. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  7681. * Note: If both the driver and user-space application supports the 6 GHz band,
  7682. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  7683. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  7684. * To maintain backward compatibility,
  7685. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  7686. * is still used if either of the driver or user space application
  7687. * doesn't support the 6 GHz band.
  7688. *
  7689. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  7690. * VHT seg0 channel number
  7691. * Note: If both the driver and user-space application supports the 6 GHz band,
  7692. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  7693. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  7694. * To maintain backward compatibility,
  7695. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  7696. * is still used if either of the driver or user space application
  7697. * doesn't support the 6 GHz band.
  7698. *
  7699. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  7700. * VHT seg1 channel number
  7701. * Note: If both the driver and user-space application supports the 6 GHz band,
  7702. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  7703. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  7704. * To maintain backward compatibility,
  7705. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  7706. * is still used if either of the driver or user space application
  7707. * doesn't support the 6 GHz band.
  7708. *
  7709. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  7710. * Takes one of enum nl80211_chan_width values.
  7711. *
  7712. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  7713. * Array of nested values for each channel with following attributes:
  7714. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  7715. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  7716. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  7717. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  7718. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7719. * Note: If user-space application has no support of the 6 GHz band, this
  7720. * attribute is optional.
  7721. *
  7722. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  7723. * Primary channel frequency in MHz
  7724. * Note: If user-space application has no support of the 6 GHz band, this
  7725. * attribute is optional.
  7726. *
  7727. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  7728. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  7729. * Note: If user-space application has no support of the 6 GHz band, this
  7730. * attribute is optional.
  7731. *
  7732. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  7733. * VHT seg0 channel frequency in MHz
  7734. * Note: If user-space application has no support of the 6GHz band, this
  7735. * attribute is optional.
  7736. *
  7737. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  7738. * VHT seg1 channel frequency in MHz
  7739. * Note: If user-space application has no support of the 6 GHz band, this
  7740. * attribute is optional.
  7741. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
  7742. * Puncture Bitmap for selected primary channel. Optional if no support
  7743. * for EHT (IEEE 802.11be). Encoding for this attribute follows the
  7744. * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
  7745. * element.
  7746. */
  7747. enum qca_wlan_vendor_attr_external_acs_channels {
  7748. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  7749. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  7750. */
  7751. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  7752. /* Array of nested values for each channel with following attributes:
  7753. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  7754. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7755. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7756. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7757. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7758. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7759. */
  7760. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  7761. /* This (u8) will hold values of one of enum nl80211_bands */
  7762. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  7763. /* Primary channel (u8) */
  7764. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  7765. /* Secondary channel (u8) used for HT 40 MHz channels */
  7766. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  7767. /* VHT seg0 channel (u8) */
  7768. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  7769. /* VHT seg1 channel (u8) */
  7770. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  7771. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  7772. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  7773. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  7774. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  7775. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  7776. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  7777. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  7778. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
  7779. /* keep last */
  7780. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  7781. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  7782. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  7783. };
  7784. /**
  7785. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  7786. * the ACS has to be triggered. These values are used by
  7787. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  7788. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  7789. */
  7790. enum qca_wlan_vendor_acs_select_reason {
  7791. /* Represents the reason that the ACS triggered during the AP start */
  7792. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  7793. /* Represents the reason that DFS found with the current channel */
  7794. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  7795. /* Represents the reason that LTE co-exist in the current band. */
  7796. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  7797. /* Represents the reason that generic, uncategorized interference has
  7798. * been found in the current channel.
  7799. */
  7800. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  7801. /* Represents the reason that excessive 802.11 interference has been
  7802. * found in the current channel.
  7803. */
  7804. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  7805. /* Represents the reason that generic Continuous Wave (CW) interference
  7806. * has been found in the current channel.
  7807. */
  7808. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  7809. /* Represents the reason that Microwave Oven (MWO) interference has been
  7810. * found in the current channel.
  7811. */
  7812. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  7813. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  7814. * (FHSS) interference has been found in the current channel. This may
  7815. * include 802.11 waveforms.
  7816. */
  7817. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  7818. /* Represents the reason that non-802.11 generic Frequency-Hopping
  7819. * Spread Spectrum (FHSS) interference has been found in the current
  7820. * channel.
  7821. */
  7822. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  7823. /* Represents the reason that generic Wideband (WB) interference has
  7824. * been found in the current channel. This may include 802.11 waveforms.
  7825. */
  7826. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  7827. /* Represents the reason that non-802.11 generic Wideband (WB)
  7828. * interference has been found in the current channel.
  7829. */
  7830. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  7831. /* Represents the reason that Jammer interference has been found in the
  7832. * current channel.
  7833. */
  7834. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  7835. /* Represents the reason that ACS triggered by AFC */
  7836. QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
  7837. };
  7838. /**
  7839. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  7840. *
  7841. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  7842. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  7843. * to get the available value that this item can use.
  7844. *
  7845. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  7846. * value to specify the gpio number.
  7847. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7848. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7849. *
  7850. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  7851. * value to specify the gpio output level, please refer to enum qca_gpio_value
  7852. * to get the available value that this item can use.
  7853. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7854. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7855. *
  7856. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  7857. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  7858. * to get the available value that this item can use.
  7859. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7860. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7861. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7862. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7863. * attribute is present.
  7864. *
  7865. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  7866. * value to specify the gpio interrupt mode, please refer to enum
  7867. * qca_gpio_interrupt_mode to get the available value that this item can use.
  7868. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7869. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7870. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7871. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7872. * attribute is present.
  7873. *
  7874. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  7875. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  7876. * to get the available value that this item can use.
  7877. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7878. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7879. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7880. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7881. * attribute is present.
  7882. *
  7883. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  7884. * Value to specify the mux config. Meaning of a given value is dependent
  7885. * on the target chipset and gpio pin. Must be of the range 0-15.
  7886. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7887. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  7888. *
  7889. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  7890. * Value to specify the drive, Refer to enum qca_gpio_drive.
  7891. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7892. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  7893. *
  7894. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  7895. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7896. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  7897. * other parameters for the given GPIO will be obtained from internal
  7898. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  7899. * specified to indicate the GPIO pin being configured.
  7900. */
  7901. enum qca_wlan_gpio_attr {
  7902. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  7903. /* Unsigned 32-bit attribute for GPIO command */
  7904. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  7905. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  7906. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  7907. /* Unsigned 32-bit attribute for GPIO value to configure */
  7908. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  7909. /* Unsigned 32-bit attribute for GPIO pull type */
  7910. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  7911. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  7912. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  7913. /* Unsigned 32-bit attribute for GPIO direction to configure */
  7914. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  7915. /* Unsigned 32-bit attribute for GPIO mux config */
  7916. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  7917. /* Unsigned 32-bit attribute for GPIO drive */
  7918. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  7919. /* Flag attribute for using internal gpio configuration */
  7920. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  7921. /* keep last */
  7922. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  7923. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  7924. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  7925. };
  7926. /**
  7927. * enum gpio_cmd_type - GPIO configuration command type
  7928. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  7929. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  7930. */
  7931. enum qca_gpio_cmd_type {
  7932. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  7933. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  7934. };
  7935. /**
  7936. * enum qca_gpio_pull_type - GPIO pull type
  7937. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  7938. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  7939. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  7940. */
  7941. enum qca_gpio_pull_type {
  7942. QCA_WLAN_GPIO_PULL_NONE = 0,
  7943. QCA_WLAN_GPIO_PULL_UP = 1,
  7944. QCA_WLAN_GPIO_PULL_DOWN = 2,
  7945. QCA_WLAN_GPIO_PULL_MAX,
  7946. };
  7947. /**
  7948. * enum qca_gpio_direction - GPIO direction
  7949. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  7950. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  7951. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  7952. */
  7953. enum qca_gpio_direction {
  7954. QCA_WLAN_GPIO_INPUT = 0,
  7955. QCA_WLAN_GPIO_OUTPUT = 1,
  7956. QCA_WLAN_GPIO_DIR_MAX,
  7957. };
  7958. /**
  7959. * enum qca_gpio_value - GPIO Value
  7960. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  7961. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  7962. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  7963. */
  7964. enum qca_gpio_value {
  7965. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  7966. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  7967. QCA_WLAN_GPIO_LEVEL_MAX,
  7968. };
  7969. /**
  7970. * enum gpio_interrupt_mode - GPIO interrupt mode
  7971. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  7972. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  7973. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  7974. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  7975. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  7976. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  7977. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  7978. */
  7979. enum qca_gpio_interrupt_mode {
  7980. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  7981. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  7982. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  7983. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  7984. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  7985. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  7986. QCA_WLAN_GPIO_INTMODE_MAX,
  7987. };
  7988. /**
  7989. * enum gpio_drive - GPIO drive
  7990. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  7991. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  7992. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  7993. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  7994. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  7995. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  7996. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  7997. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  7998. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  7999. */
  8000. enum qca_gpio_drive {
  8001. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  8002. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  8003. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  8004. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  8005. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  8006. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  8007. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  8008. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  8009. QCA_WLAN_GPIO_DRIVE_MAX,
  8010. };
  8011. /**
  8012. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  8013. * MSDUQ depth threshold per peer per tid in the target
  8014. *
  8015. * Associated Vendor Command:
  8016. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  8017. */
  8018. enum qca_wlan_set_qdepth_thresh_attr {
  8019. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  8020. /* 6-byte MAC address */
  8021. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  8022. /* Unsigned 32-bit attribute for holding the TID */
  8023. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  8024. /* Unsigned 32-bit attribute for holding the update mask
  8025. * bit 0 - Update high priority msdu qdepth threshold
  8026. * bit 1 - Update low priority msdu qdepth threshold
  8027. * bit 2 - Update UDP msdu qdepth threshold
  8028. * bit 3 - Update Non UDP msdu qdepth threshold
  8029. * rest of bits are reserved
  8030. */
  8031. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  8032. /* Unsigned 32-bit attribute for holding the threshold value */
  8033. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  8034. /* keep last */
  8035. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  8036. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  8037. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  8038. };
  8039. /**
  8040. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  8041. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  8042. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  8043. * external ACS policies to select the channels w.r.t. the PCL weights.
  8044. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  8045. * their PCL weights.)
  8046. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  8047. * select a channel with non-zero PCL weight.
  8048. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  8049. * channel with non-zero PCL weight.
  8050. *
  8051. */
  8052. enum qca_wlan_vendor_attr_external_acs_policy {
  8053. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  8054. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  8055. };
  8056. /**
  8057. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  8058. */
  8059. enum qca_wlan_vendor_attr_spectral_scan {
  8060. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  8061. /*
  8062. * Number of times the chip enters spectral scan mode before
  8063. * deactivating spectral scans. When set to 0, chip will enter spectral
  8064. * scan mode continuously. u32 attribute.
  8065. */
  8066. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  8067. /*
  8068. * Spectral scan period. Period increment resolution is 256*Tclk,
  8069. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  8070. */
  8071. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  8072. /* Spectral scan priority. u32 attribute. */
  8073. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  8074. /* Number of FFT data points to compute. u32 attribute. */
  8075. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  8076. /*
  8077. * Enable targeted gain change before starting the spectral scan FFT.
  8078. * u32 attribute.
  8079. */
  8080. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  8081. /* Restart a queued spectral scan. u32 attribute. */
  8082. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  8083. /*
  8084. * Noise floor reference number for the calculation of bin power.
  8085. * u32 attribute.
  8086. */
  8087. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  8088. /*
  8089. * Disallow spectral scan triggers after TX/RX packets by setting
  8090. * this delay value to roughly SIFS time period or greater.
  8091. * u32 attribute.
  8092. */
  8093. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  8094. /*
  8095. * Number of strong bins (inclusive) per sub-channel, below
  8096. * which a signal is declared a narrow band tone. u32 attribute.
  8097. */
  8098. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  8099. /*
  8100. * Specify the threshold over which a bin is declared strong (for
  8101. * scan bandwidth analysis). u32 attribute.
  8102. */
  8103. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  8104. /* Spectral scan report mode. u32 attribute. */
  8105. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  8106. /*
  8107. * RSSI report mode, if the ADC RSSI is below
  8108. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  8109. * then FFTs will not trigger, but timestamps and summaries get
  8110. * reported. u32 attribute.
  8111. */
  8112. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  8113. /*
  8114. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  8115. * to ensure spectral scan reporting with normal error code.
  8116. * u32 attribute.
  8117. */
  8118. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  8119. /*
  8120. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  8121. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  8122. * u32 attribute.
  8123. */
  8124. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  8125. /*
  8126. * Format of FFT report to software for spectral scan triggered FFTs.
  8127. * 0: No FFT report (only spectral scan summary report)
  8128. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  8129. * report
  8130. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  8131. * bins (in-band) per FFT + spectral scan summary report
  8132. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  8133. * bins (all) per FFT + spectral scan summary report
  8134. * u32 attribute.
  8135. */
  8136. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  8137. /*
  8138. * Number of LSBs to shift out in order to scale the FFT bins.
  8139. * u32 attribute.
  8140. */
  8141. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  8142. /*
  8143. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  8144. * in dBm power. u32 attribute.
  8145. */
  8146. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  8147. /*
  8148. * Per chain enable mask to select input ADC for search FFT.
  8149. * u32 attribute.
  8150. */
  8151. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  8152. /*
  8153. * An unsigned 64-bit integer provided by host driver to identify the
  8154. * spectral scan request. This attribute is included in the scan
  8155. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  8156. * and used as an attribute in
  8157. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  8158. * specific scan to be stopped.
  8159. */
  8160. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  8161. /* Skip interval for FFT reports. u32 attribute */
  8162. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  8163. /* Set to report only one set of FFT results.
  8164. * u32 attribute.
  8165. */
  8166. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  8167. /* Debug level for spectral module in driver.
  8168. * 0 : Verbosity level 0
  8169. * 1 : Verbosity level 1
  8170. * 2 : Verbosity level 2
  8171. * 3 : Matched filterID display
  8172. * 4 : One time dump of FFT report
  8173. * u32 attribute.
  8174. */
  8175. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  8176. /* Type of spectral scan request. u32 attribute.
  8177. * It uses values defined in enum
  8178. * qca_wlan_vendor_attr_spectral_scan_request_type.
  8179. */
  8180. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  8181. /* This specifies the frequency span over which spectral
  8182. * scan would be carried out. Its value depends on the
  8183. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  8184. * the relation is as follows.
  8185. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8186. * Not applicable. Spectral scan would happen in the
  8187. * operating span.
  8188. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8189. * Center frequency (in MHz) of the span of interest or
  8190. * for convenience, center frequency (in MHz) of any channel
  8191. * in the span of interest. For 80+80 MHz agile spectral scan
  8192. * request it represents center frequency (in MHz) of the primary
  8193. * 80 MHz span or for convenience, center frequency (in MHz) of any
  8194. * channel in the primary 80 MHz span. If agile spectral scan is
  8195. * initiated without setting a valid frequency it returns the
  8196. * error code
  8197. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  8198. * u32 attribute.
  8199. */
  8200. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  8201. /* Spectral scan mode. u32 attribute.
  8202. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8203. * If this attribute is not present, it is assumed to be
  8204. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  8205. */
  8206. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  8207. /* Spectral scan error code. u32 attribute.
  8208. * It uses values defined in enum
  8209. * qca_wlan_vendor_spectral_scan_error_code.
  8210. * This attribute is included only in failure scenarios.
  8211. */
  8212. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  8213. /* 8-bit unsigned value to enable/disable debug of the
  8214. * Spectral DMA ring.
  8215. * 1-enable, 0-disable
  8216. */
  8217. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  8218. /* 8-bit unsigned value to enable/disable debug of the
  8219. * Spectral DMA buffers.
  8220. * 1-enable, 0-disable
  8221. */
  8222. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  8223. /* This specifies the frequency span over which spectral scan would be
  8224. * carried out. Its value depends on the value of
  8225. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  8226. * follows.
  8227. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8228. * Not applicable. Spectral scan would happen in the operating span.
  8229. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8230. * This attribute is applicable only for agile spectral scan
  8231. * requests in 80+80 MHz mode. It represents center frequency (in
  8232. * MHz) of the secondary 80 MHz span or for convenience, center
  8233. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  8234. * u32 attribute.
  8235. */
  8236. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  8237. /* This attribute specifies the bandwidth to be used for Spectral scan
  8238. * operation. This is an u8 attribute and uses the values in enum
  8239. * nl80211_chan_width. This is an optional attribute.
  8240. * If this attribute is not populated, the driver should configure the
  8241. * Spectral scan bandwidth to the maximum value supported by the target
  8242. * for the current operating bandwidth.
  8243. */
  8244. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  8245. /* Spectral FFT recapture flag attribute, to enable/disable FFT
  8246. * recapture. Recapture can only be enabled for Scan period greater
  8247. * than 52us.
  8248. * If this attribute is enabled, re-triggers will be enabled in uCode
  8249. * when AGC gain changes.
  8250. */
  8251. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
  8252. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  8253. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  8254. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  8255. };
  8256. /**
  8257. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  8258. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  8259. */
  8260. enum qca_wlan_vendor_attr_spectral_diag_stats {
  8261. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  8262. /* Number of spectral TLV signature mismatches.
  8263. * u64 attribute.
  8264. */
  8265. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  8266. /* Number of spectral phyerror events with insufficient length when
  8267. * parsing for secondary 80 search FFT report. u64 attribute.
  8268. */
  8269. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  8270. /* Number of spectral phyerror events without secondary 80
  8271. * search FFT report. u64 attribute.
  8272. */
  8273. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  8274. /* Number of spectral phyerror events with vht operation segment 1 id
  8275. * mismatches in search fft report. u64 attribute.
  8276. */
  8277. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  8278. /* Number of spectral phyerror events with vht operation segment 2 id
  8279. * mismatches in search fft report. u64 attribute.
  8280. */
  8281. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  8282. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  8283. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  8284. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  8285. };
  8286. /**
  8287. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  8288. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  8289. */
  8290. enum qca_wlan_vendor_attr_spectral_cap {
  8291. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  8292. /* Flag attribute to indicate phydiag capability */
  8293. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  8294. /* Flag attribute to indicate radar detection capability */
  8295. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  8296. /* Flag attribute to indicate spectral capability */
  8297. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  8298. /* Flag attribute to indicate advanced spectral capability */
  8299. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  8300. /* Spectral hardware generation. u32 attribute.
  8301. * It uses values defined in enum
  8302. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  8303. */
  8304. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  8305. /* Spectral bin scaling formula ID. u16 attribute.
  8306. * It uses values defined in enum
  8307. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  8308. */
  8309. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  8310. /* Spectral bin scaling param - low level offset.
  8311. * s16 attribute.
  8312. */
  8313. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  8314. /* Spectral bin scaling param - high level offset.
  8315. * s16 attribute.
  8316. */
  8317. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  8318. /* Spectral bin scaling param - RSSI threshold.
  8319. * s16 attribute.
  8320. */
  8321. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  8322. /* Spectral bin scaling param - default AGC max gain.
  8323. * u8 attribute.
  8324. */
  8325. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  8326. /* Flag attribute to indicate agile spectral scan capability
  8327. * for 20/40/80 MHz modes.
  8328. */
  8329. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  8330. /* Flag attribute to indicate agile spectral scan capability
  8331. * for 160 MHz mode.
  8332. */
  8333. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  8334. /* Flag attribute to indicate agile spectral scan capability
  8335. * for 80+80 MHz mode.
  8336. */
  8337. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  8338. /* Number of spectral detectors used for scan in 20 MHz.
  8339. * u32 attribute.
  8340. */
  8341. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  8342. /* Number of spectral detectors used for scan in 40 MHz.
  8343. * u32 attribute.
  8344. */
  8345. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  8346. /* Number of spectral detectors used for scan in 80 MHz.
  8347. * u32 attribute.
  8348. */
  8349. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  8350. /* Number of spectral detectors used for scan in 160 MHz.
  8351. * u32 attribute.
  8352. */
  8353. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  8354. /* Number of spectral detectors used for scan in 80+80 MHz.
  8355. * u32 attribute.
  8356. */
  8357. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  8358. /* Flag attribute to indicate agile spectral scan capability
  8359. * for 320 MHz mode.
  8360. */
  8361. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
  8362. /* Number of spectral detectors used for scan in 320 MHz.
  8363. * u32 attribute.
  8364. */
  8365. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
  8366. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  8367. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  8368. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  8369. };
  8370. /**
  8371. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  8372. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  8373. */
  8374. enum qca_wlan_vendor_attr_spectral_scan_status {
  8375. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  8376. /* Flag attribute to indicate whether spectral scan is enabled */
  8377. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  8378. /* Flag attribute to indicate whether spectral scan is in progress*/
  8379. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  8380. /* Spectral scan mode. u32 attribute.
  8381. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8382. * If this attribute is not present, normal mode
  8383. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  8384. * requested.
  8385. */
  8386. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  8387. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  8388. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  8389. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  8390. };
  8391. /**
  8392. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  8393. * wlan latency module.
  8394. *
  8395. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  8396. * power saving which would causing data exchange out of service, this
  8397. * would be a big impact on latency. For latency sensitive applications over
  8398. * Wi-Fi are intolerant to such operations and thus would configure them
  8399. * to meet their respective needs. It is well understood by such applications
  8400. * that altering the default behavior would degrade the Wi-Fi functionality
  8401. * w.r.t the above pointed WLAN operations.
  8402. *
  8403. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  8404. * Default WLAN operation level which throughput orientated.
  8405. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
  8406. * Use XR level to benefit XR (extended reality) application to achieve
  8407. * latency and power by via constraint scan/roaming/adaptive PS.
  8408. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  8409. * Use low latency level to benefit application like concurrent
  8410. * downloading or video streaming via constraint scan/adaptive PS.
  8411. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  8412. * Use ultra low latency level to benefit for gaming/voice
  8413. * application via constraint scan/roaming/adaptive PS.
  8414. */
  8415. enum qca_wlan_vendor_attr_config_latency_level {
  8416. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  8417. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  8418. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
  8419. /* legacy name */
  8420. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
  8421. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
  8422. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  8423. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  8424. /* keep last */
  8425. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  8426. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  8427. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  8428. };
  8429. /**
  8430. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  8431. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  8432. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  8433. * spectral scan request types.
  8434. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  8435. * set the spectral parameters and start scan.
  8436. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  8437. * only set the spectral parameters.
  8438. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  8439. * only start the spectral scan.
  8440. */
  8441. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  8442. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  8443. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  8444. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  8445. };
  8446. /**
  8447. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  8448. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  8449. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  8450. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  8451. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  8452. * spectral scan modes.
  8453. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  8454. * spectral scan in the current operating span.
  8455. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  8456. * spectral scan in the configured agile span.
  8457. */
  8458. enum qca_wlan_vendor_spectral_scan_mode {
  8459. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  8460. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  8461. };
  8462. /**
  8463. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  8464. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  8465. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  8466. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  8467. * of a parameter is not supported.
  8468. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  8469. * mode is not supported.
  8470. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  8471. * has invalid value.
  8472. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  8473. * is not initialized.
  8474. */
  8475. enum qca_wlan_vendor_spectral_scan_error_code {
  8476. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  8477. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  8478. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  8479. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  8480. };
  8481. /**
  8482. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  8483. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  8484. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8485. * spectral hardware generation.
  8486. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  8487. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  8488. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  8489. */
  8490. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  8491. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  8492. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  8493. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  8494. };
  8495. /**
  8496. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  8497. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  8498. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8499. * Spectral bin scaling formula ID.
  8500. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  8501. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  8502. * and RSSI threshold based formula.
  8503. */
  8504. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  8505. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  8506. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  8507. };
  8508. /**
  8509. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  8510. * RF Operating Parameter (RROP) information is available, and if so, at which
  8511. * point in the application-driver interaction sequence it can be retrieved by
  8512. * the application from the driver. This point may vary by architecture and
  8513. * other factors. This is a u16 value.
  8514. */
  8515. enum qca_wlan_vendor_attr_rropavail_info {
  8516. /* RROP information is unavailable. */
  8517. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  8518. /* RROP information is available and the application can retrieve the
  8519. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  8520. * event from the driver.
  8521. */
  8522. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  8523. /* RROP information is available only after a vendor specific scan
  8524. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  8525. * successfully completed. The application can retrieve the information
  8526. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  8527. * the driver.
  8528. */
  8529. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  8530. };
  8531. /**
  8532. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  8533. * Representative RF Operating Parameter (RROP) information. It is sent for the
  8534. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  8535. * intended for use by external Auto Channel Selection applications. It provides
  8536. * guidance values for some RF parameters that are used by the system during
  8537. * operation. These values could vary by channel, band, radio, and so on.
  8538. */
  8539. enum qca_wlan_vendor_attr_rrop_info {
  8540. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  8541. /* Representative Tx Power List (RTPL) which has an array of nested
  8542. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  8543. */
  8544. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  8545. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  8546. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  8547. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  8548. };
  8549. /**
  8550. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  8551. * entry instances in the Representative Tx Power List (RTPL). It provides
  8552. * simplified power values intended for helping external Auto channel Selection
  8553. * applications compare potential Tx power performance between channels, other
  8554. * operating conditions remaining identical. These values are not necessarily
  8555. * the actual Tx power values that will be used by the system. They are also not
  8556. * necessarily the max or average values that will be used. Instead, they are
  8557. * relative, summarized keys for algorithmic use computed by the driver or
  8558. * underlying firmware considering a number of vendor specific factors.
  8559. */
  8560. enum qca_wlan_vendor_attr_rtplinst {
  8561. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  8562. /* Primary channel number (u8).
  8563. * Note: If both the driver and user space application support the
  8564. * 6 GHz band, this attribute is deprecated and
  8565. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  8566. * maintain backward compatibility,
  8567. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  8568. * driver or user space application or both do not support the 6 GHz
  8569. * band.
  8570. */
  8571. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  8572. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  8573. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  8574. /* Representative Tx power in dBm (s32) with emphasis on range. */
  8575. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  8576. /* Primary channel center frequency (u32) in MHz */
  8577. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  8578. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  8579. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  8580. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  8581. };
  8582. /**
  8583. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  8584. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8585. *
  8586. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  8587. * array of nested values as per attributes in
  8588. * enum qca_wlan_vendor_attr_mac_mode_info.
  8589. */
  8590. enum qca_wlan_vendor_attr_mac {
  8591. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  8592. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  8593. /* keep last */
  8594. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  8595. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  8596. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  8597. };
  8598. /**
  8599. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  8600. * WiFi netdev interface on a respective MAC. Used by the attribute
  8601. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  8602. *
  8603. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  8604. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  8605. * the connected Wi-Fi interface(u32).
  8606. */
  8607. enum qca_wlan_vendor_attr_mac_iface_info {
  8608. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  8609. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  8610. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  8611. /* keep last */
  8612. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  8613. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  8614. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  8615. };
  8616. /**
  8617. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  8618. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  8619. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8620. *
  8621. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  8622. * MAC (u32)
  8623. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  8624. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  8625. * in enum nl80211_band.
  8626. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  8627. * interfaces associated with this MAC. Represented by enum
  8628. * qca_wlan_vendor_attr_mac_iface_info.
  8629. */
  8630. enum qca_wlan_vendor_attr_mac_info {
  8631. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  8632. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  8633. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  8634. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  8635. /* keep last */
  8636. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  8637. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  8638. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  8639. };
  8640. /**
  8641. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  8642. * to get thermal status from driver/firmware.
  8643. * enum values are used for NL attributes encapsulated inside
  8644. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  8645. *
  8646. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  8647. * of a thermal level in Celsius. u32 size.
  8648. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  8649. * of a thermal level in Celsius. u32 size.
  8650. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  8651. * thermal level in milliseconds. u32 size.
  8652. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  8653. * of times the temperature crossed into the temperature range defined by the
  8654. * thermal level from both higher and lower directions. u32 size.
  8655. */
  8656. enum qca_wlan_vendor_attr_thermal_stats {
  8657. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  8658. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  8659. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  8660. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  8661. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  8662. /* keep last */
  8663. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  8664. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  8665. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  8666. };
  8667. /**
  8668. * enum he_fragmentation_val - HE fragmentation support values
  8669. * Indicates level of dynamic fragmentation that is supported by
  8670. * a STA as a recipient.
  8671. * HE fragmentation values are defined as per 11ax spec and are used in
  8672. * HE capability IE to advertise the support. These values are validated
  8673. * in the driver to check the device capability and advertised in the HE
  8674. * capability element.
  8675. *
  8676. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  8677. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  8678. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  8679. * within an A-MPDU that is not an S-MPDU.
  8680. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  8681. * contained within an MPDU or S-MPDU and support for up to one dynamic
  8682. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  8683. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  8684. * MPDU or S-MPDU.
  8685. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  8686. * contained within an MPDU or S-MPDU and support for multiple dynamic
  8687. * fragments for each MSDU and for each A-MSDU if supported by the
  8688. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  8689. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  8690. */
  8691. enum he_fragmentation_val {
  8692. HE_FRAG_DISABLE,
  8693. HE_FRAG_LEVEL1,
  8694. HE_FRAG_LEVEL2,
  8695. HE_FRAG_LEVEL3,
  8696. };
  8697. /**
  8698. * enum he_mcs_config - HE MCS support configuration
  8699. *
  8700. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  8701. * These values are used in driver to configure the HE MCS map to advertise
  8702. * Tx/Rx MCS map in HE capability and these values are applied for all the
  8703. * streams supported by the device. To configure MCS for different bandwidths,
  8704. * vendor command needs to be sent using this attribute with appropriate value.
  8705. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  8706. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  8707. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  8708. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  8709. *
  8710. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  8711. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  8712. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  8713. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  8714. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  8715. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  8716. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  8717. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  8718. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  8719. */
  8720. enum he_mcs_config {
  8721. HE_80_MCS0_7 = 0,
  8722. HE_80_MCS0_9 = 1,
  8723. HE_80_MCS0_11 = 2,
  8724. HE_160_MCS0_7 = 4,
  8725. HE_160_MCS0_9 = 5,
  8726. HE_160_MCS0_11 = 6,
  8727. HE_80p80_MCS0_7 = 8,
  8728. HE_80p80_MCS0_9 = 9,
  8729. HE_80p80_MCS0_11 = 10,
  8730. };
  8731. /**
  8732. * enum qca_wlan_ba_session_config - BA session configuration
  8733. *
  8734. * Indicates the configuration values for BA session configuration attribute.
  8735. *
  8736. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  8737. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  8738. */
  8739. enum qca_wlan_ba_session_config {
  8740. QCA_WLAN_ADD_BA = 1,
  8741. QCA_WLAN_DELETE_BA = 2,
  8742. };
  8743. /**
  8744. * enum qca_wlan_ac_type - access category type
  8745. *
  8746. * Indicates the access category type value.
  8747. *
  8748. * @QCA_WLAN_AC_BE: BE access category
  8749. * @QCA_WLAN_AC_BK: BK access category
  8750. * @QCA_WLAN_AC_VI: VI access category
  8751. * @QCA_WLAN_AC_VO: VO access category
  8752. * @QCA_WLAN_AC_ALL: All ACs
  8753. */
  8754. enum qca_wlan_ac_type {
  8755. QCA_WLAN_AC_BE = 0,
  8756. QCA_WLAN_AC_BK = 1,
  8757. QCA_WLAN_AC_VI = 2,
  8758. QCA_WLAN_AC_VO = 3,
  8759. QCA_WLAN_AC_ALL = 4,
  8760. };
  8761. /**
  8762. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  8763. *
  8764. * Indicates the HE LTF configuration value.
  8765. *
  8766. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  8767. * the mandatory HE-LTF based on the GI setting
  8768. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  8769. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  8770. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  8771. */
  8772. enum qca_wlan_he_ltf_cfg {
  8773. QCA_WLAN_HE_LTF_AUTO = 0,
  8774. QCA_WLAN_HE_LTF_1X = 1,
  8775. QCA_WLAN_HE_LTF_2X = 2,
  8776. QCA_WLAN_HE_LTF_4X = 3,
  8777. };
  8778. /**
  8779. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  8780. *
  8781. * Indicates the HE trigger frame MAC padding duration value.
  8782. *
  8783. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  8784. * process the trigger frame.
  8785. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  8786. * trigger frame.
  8787. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  8788. * trigger frame.
  8789. */
  8790. enum qca_wlan_he_mac_padding_dur {
  8791. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  8792. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  8793. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  8794. };
  8795. /**
  8796. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  8797. *
  8798. * Indicates the HE Operating mode control channel width setting value.
  8799. *
  8800. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  8801. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  8802. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  8803. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  8804. */
  8805. enum qca_wlan_he_om_ctrl_ch_bw {
  8806. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  8807. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  8808. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  8809. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  8810. };
  8811. /**
  8812. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  8813. *
  8814. * Indicates the frame types to use for keep alive data.
  8815. *
  8816. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  8817. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  8818. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  8819. */
  8820. enum qca_wlan_keep_alive_data_type {
  8821. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  8822. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  8823. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  8824. };
  8825. /**
  8826. * enum eht_mcs_config - EHT MCS support configuration
  8827. *
  8828. * Configures the EHT Tx/Rx MCS map in EHT Capability element.
  8829. * These values are used in the driver to configure the EHT MCS map to advertise
  8830. * Tx/Rx MCS map in EHT capability and these values are applied for all the
  8831. * streams supported by the device.
  8832. * @EHT_MCS0_7: EHT MCS 0 to 7 support
  8833. * @EHT_MCS0_9: EHT MCS 0 to 9 support
  8834. * @EHT_MCS0_11: EHT MCS 0 to 11 support
  8835. * @EHT_MCS0_13: EHT MCS 0 to 13 support
  8836. */
  8837. enum eht_mcs_config {
  8838. EHT_MCS0_7 = 0,
  8839. EHT_MCS0_9 = 1,
  8840. EHT_MCS0_11 = 2,
  8841. EHT_MCS0_13 = 3,
  8842. };
  8843. /**
  8844. * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
  8845. * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
  8846. * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
  8847. * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
  8848. * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
  8849. * multi-link multi radio mode.
  8850. * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
  8851. * multi-link multi radio mode.
  8852. */
  8853. enum qca_wlan_eht_mlo_mode {
  8854. QCA_WLAN_EHT_MODE_INVALID = 0,
  8855. QCA_WLAN_EHT_MLSR = 1,
  8856. QCA_WLAN_EHT_EMLSR = 2,
  8857. QCA_WLAN_EHT_NON_STR_MLMR = 3,
  8858. QCA_WLAN_EHT_STR_MLMR = 4,
  8859. };
  8860. /**
  8861. * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
  8862. * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
  8863. * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
  8864. */
  8865. enum qca_wlan_emlsr_mode {
  8866. QCA_WLAN_EMLSR_MODE_ENTER = 0,
  8867. QCA_WLAN_EMLSR_MODE_EXIT = 1,
  8868. };
  8869. /**
  8870. * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
  8871. * EHT operating mode control transmit request. These attributes are
  8872. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
  8873. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  8874. *
  8875. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  8876. * indicates the maximum number of spatial streams, NSS, that the STA
  8877. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  8878. * and is set to NSS - 1.
  8879. *
  8880. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  8881. * indicates the operating channel width supported by the STA for both
  8882. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  8883. *
  8884. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  8885. * indicates the all trigger based UL MU operations by the STA.
  8886. * 0 - UL MU operations are enabled by the STA.
  8887. * 1 - All triggered UL MU transmissions are suspended by the STA.
  8888. *
  8889. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  8890. * indicates the maximum number of space-time streams, NSTS, that
  8891. * the STA supports in transmission and is set to NSTS - 1.
  8892. *
  8893. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  8894. * combined with the UL MU Disable subfield and the recipient's setting
  8895. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  8896. * capabilities to determine which HE TB PPDUs are possible by the
  8897. * STA to transmit.
  8898. * 0 - UL MU data operations are enabled by the STA.
  8899. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  8900. * bit is not set, else UL MU Tx is suspended.
  8901. *
  8902. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  8903. * Control subfield combined with the Rx NSS subfield in the OM Control subfield
  8904. * indicates NSS - 1, where NSS is the maximum number of spatial streams that
  8905. * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
  8906. *
  8907. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
  8908. * 320 MHz operating channel width supported by the EHT STA for both reception
  8909. * and transmission.
  8910. *
  8911. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  8912. * Control subfield combined with the Tx NSTS subfield in OM Control subfield
  8913. * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
  8914. * that the STA supports in transmission for PPDU bandwidths less than or equal
  8915. * to 80 MHz.
  8916. */
  8917. enum qca_wlan_vendor_attr_omi_tx {
  8918. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  8919. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  8920. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  8921. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  8922. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  8923. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  8924. QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
  8925. QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
  8926. QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
  8927. /* keep last */
  8928. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
  8929. QCA_WLAN_VENDOR_ATTR_OMI_MAX =
  8930. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
  8931. };
  8932. /* deprecated legacy names */
  8933. #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
  8934. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
  8935. #define qca_wlan_vendor_attr_he_omi_tx \
  8936. qca_wlan_vendor_attr_omi_tx
  8937. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
  8938. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
  8939. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
  8940. QCA_WLAN_VENDOR_ATTR_OMI_MAX
  8941. /**
  8942. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  8943. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  8944. *
  8945. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  8946. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  8947. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  8948. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  8949. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  8950. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  8951. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  8952. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  8953. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  8954. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  8955. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  8956. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  8957. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  8958. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  8959. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  8960. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  8961. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  8962. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  8963. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  8964. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  8965. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  8966. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  8967. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  8968. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  8969. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  8970. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  8971. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  8972. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  8973. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  8974. */
  8975. enum qca_wlan_vendor_phy_mode {
  8976. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  8977. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  8978. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  8979. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  8980. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  8981. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  8982. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  8983. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  8984. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  8985. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  8986. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  8987. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  8988. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  8989. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  8990. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  8991. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  8992. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  8993. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  8994. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  8995. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  8996. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  8997. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  8998. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  8999. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  9000. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  9001. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  9002. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  9003. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  9004. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  9005. };
  9006. /* Attributes for data used by
  9007. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  9008. */
  9009. enum qca_wlan_vendor_attr_wifi_test_config {
  9010. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  9011. /* 8-bit unsigned value to configure the driver to enable/disable
  9012. * WMM feature. This attribute is used to configure testbed device.
  9013. * 1-enable, 0-disable
  9014. */
  9015. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  9016. /* 8-bit unsigned value to configure the driver to accept/reject
  9017. * the addba request from peer. This attribute is used to configure
  9018. * the testbed device.
  9019. * 1-accept addba, 0-reject addba
  9020. */
  9021. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  9022. /* 8-bit unsigned value to configure the driver to send or not to
  9023. * send the addba request to peer.
  9024. * This attribute is used to configure the testbed device.
  9025. * 1-send addba, 0-do not send addba
  9026. */
  9027. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  9028. /* 8-bit unsigned value to indicate the HE fragmentation support.
  9029. * Uses enum he_fragmentation_val values.
  9030. * This attribute is used to configure the testbed device to
  9031. * allow the advertised hardware capabilities to be downgraded
  9032. * for testing purposes.
  9033. */
  9034. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  9035. /* 8-bit unsigned value to indicate the HE MCS support.
  9036. * Uses enum he_mcs_config values.
  9037. * This attribute is used to configure the testbed device to
  9038. * allow the advertised hardware capabilities to be downgraded
  9039. * for testing purposes.
  9040. */
  9041. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  9042. /* 8-bit unsigned value to configure the driver to allow or not to
  9043. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  9044. * This attribute is used to configure the testbed device.
  9045. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  9046. */
  9047. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  9048. /* 8-bit unsigned value to configure the driver to add a
  9049. * new BA session or delete the existing BA session for
  9050. * given TID. ADDBA command uses the buffer size and tid
  9051. * configuration if user specifies the values else default
  9052. * value for buffer size is used for all tids if the tid
  9053. * also not specified. For DEL_BA command TID value is
  9054. * required to process the command.
  9055. * Uses enum qca_wlan_ba_session_config values.
  9056. * This attribute is used to configure the testbed device.
  9057. */
  9058. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  9059. /* 16-bit unsigned value to configure the buffer size in addba
  9060. * request and response frames.
  9061. * This attribute is used to configure the testbed device.
  9062. * The range of the value is 0 to 256.
  9063. */
  9064. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  9065. /* 8-bit unsigned value to configure the buffer size in addba
  9066. * request and response frames.
  9067. * This attribute is used to configure the testbed device.
  9068. */
  9069. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  9070. /* 8-bit unsigned value to configure the no ack policy.
  9071. * To configure no ack policy, access category value
  9072. * is required to process the command.
  9073. * This attribute is used to configure the testbed device.
  9074. * 1 - enable no ack, 0 - disable no ack
  9075. */
  9076. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  9077. /* 8-bit unsigned value to configure the AC for no ack policy
  9078. * This attribute is used to configure the testbed device.
  9079. * uses the enum qca_wlan_ac_type values
  9080. */
  9081. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  9082. /* 8-bit unsigned value to configure the HE LTF
  9083. * This attribute is used to configure the testbed device.
  9084. * Uses the enum qca_wlan_he_ltf_cfg values.
  9085. */
  9086. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  9087. /* 8-bit unsigned value to configure the tx beamformee.
  9088. * This attribute is used to configure the testbed device.
  9089. * 1 - enable, 0 - disable.
  9090. */
  9091. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  9092. /* 8-bit unsigned value to configure the tx beamformee number of
  9093. * space-time streams.
  9094. * This attribute is used to configure the testbed device.
  9095. * The range of the value is 0 to 8
  9096. */
  9097. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  9098. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  9099. * This attribute is used to configure the testbed device.
  9100. * Uses the enum qca_wlan_ac_type values.
  9101. */
  9102. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  9103. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  9104. * To configure MU EDCA AIFSN value, MU EDCA access category value
  9105. * is required to process the command.
  9106. * This attribute is used to configure the testbed device.
  9107. */
  9108. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  9109. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  9110. * given AC.
  9111. * To configure MU EDCA ECW min value, MU EDCA access category value
  9112. * is required to process the command.
  9113. * This attribute is used to configure the testbed device.
  9114. */
  9115. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  9116. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  9117. * given AC.
  9118. * To configure MU EDCA ECW max value, MU EDCA access category value
  9119. * is required to process the command.
  9120. * This attribute is used to configure the testbed device.
  9121. */
  9122. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  9123. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  9124. * To configure MU EDCA timer value, MU EDCA access category value
  9125. * is required to process the command.
  9126. * This attribute is used to configure the testbed device.
  9127. */
  9128. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  9129. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  9130. * duration.
  9131. * This attribute is used to configure the testbed device.
  9132. * Uses the enum qca_wlan_he_mac_padding_dur values.
  9133. */
  9134. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  9135. /* 8-bit unsigned value to override the MU EDCA params to defaults
  9136. * regardless of the AP beacon MU EDCA params. If it is enabled use
  9137. * the default values else use the MU EDCA params from AP beacon.
  9138. * This attribute is used to configure the testbed device.
  9139. * 1 - enable override, 0 - disable.
  9140. */
  9141. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  9142. /* 8-bit unsigned value to configure the support for receiving
  9143. * an MPDU that contains an operating mode control subfield.
  9144. * This attribute is used to configure the testbed device.
  9145. * 1-enable, 0-disable.
  9146. */
  9147. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  9148. /* Nested attribute values required to setup the TWT session.
  9149. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  9150. * information to set up the session. It contains broadcast flags,
  9151. * set_up flags, trigger value, flow type, flow ID, wake interval
  9152. * exponent, protection, target wake time, wake duration, wake interval
  9153. * mantissa. These nested attributes are used to setup a host triggered
  9154. * TWT session.
  9155. */
  9156. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  9157. /* This nested attribute is used to terminate the current TWT session.
  9158. * It does not currently carry any attributes.
  9159. */
  9160. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  9161. /* This nested attribute is used to suspend the current TWT session.
  9162. * It does not currently carry any attributes.
  9163. */
  9164. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  9165. /* Nested attribute values to indicate the request for resume.
  9166. * This attribute is used to resume the TWT session.
  9167. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  9168. * parameters required to resume the TWT session.
  9169. */
  9170. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  9171. /* 8-bit unsigned value to set the HE operating mode control
  9172. * (OM CTRL) Channel Width subfield.
  9173. * The Channel Width subfield indicates the operating channel width
  9174. * supported by the STA for both reception and transmission.
  9175. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  9176. * This setting is cleared with the
  9177. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9178. * flag attribute to reset defaults.
  9179. * This attribute is used to configure the testbed device.
  9180. */
  9181. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  9182. /* 8-bit unsigned value to configure the number of spatial
  9183. * streams in HE operating mode control field.
  9184. * This setting is cleared with the
  9185. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9186. * flag attribute to reset defaults.
  9187. * This attribute is used to configure the testbed device.
  9188. */
  9189. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  9190. /* Flag attribute to configure the UL MU disable bit in
  9191. * HE operating mode control field.
  9192. * This setting is cleared with the
  9193. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9194. * flag attribute to reset defaults.
  9195. * This attribute is used to configure the testbed device.
  9196. */
  9197. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  9198. /* Flag attribute to clear the previously set HE operating mode
  9199. * control field configuration.
  9200. * This attribute is used to configure the testbed device to reset
  9201. * defaults to clear any previously set HE operating mode control
  9202. * field configuration.
  9203. */
  9204. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  9205. /* 8-bit unsigned value to configure HE single user PPDU
  9206. * transmission. By default this setting is disabled and it
  9207. * is disabled in the reset defaults of the device configuration.
  9208. * This attribute is used to configure the testbed device.
  9209. * 1-enable, 0-disable
  9210. */
  9211. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  9212. /* 8-bit unsigned value to configure action frame transmission
  9213. * in HE trigger based PPDU transmission.
  9214. * By default this setting is disabled and it is disabled in
  9215. * the reset defaults of the device configuration.
  9216. * This attribute is used to configure the testbed device.
  9217. * 1-enable, 0-disable
  9218. */
  9219. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  9220. /* Nested attribute to indicate HE operating mode control field
  9221. * transmission. It contains operating mode control field Nss,
  9222. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  9223. * These nested attributes are used to send HE operating mode control
  9224. * with configured values.
  9225. * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
  9226. * This attribute is used to configure the testbed device.
  9227. */
  9228. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
  9229. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  9230. * support for the reception of a frame that carries an HE variant
  9231. * HT Control field.
  9232. * This attribute is used to configure the testbed device.
  9233. * 1-enable, 0-disable
  9234. */
  9235. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  9236. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  9237. * This attribute is used to configure the testbed device.
  9238. * 1-enable, 0-disable
  9239. */
  9240. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  9241. /* 8-bit unsigned value to configure HE testbed defaults.
  9242. * This attribute is used to configure the testbed device.
  9243. * 1-set the device HE capabilities to testbed defaults.
  9244. * 0-reset the device HE capabilities to supported config.
  9245. */
  9246. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  9247. /* 8-bit unsigned value to configure twt request support.
  9248. * This attribute is used to configure the testbed device.
  9249. * 1-enable, 0-disable.
  9250. */
  9251. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  9252. /* 8-bit unsigned value to configure protection for Management
  9253. * frames when PMF is enabled for the association.
  9254. * This attribute is used to configure the testbed device.
  9255. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  9256. */
  9257. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  9258. /* Flag attribute to inject Disassociation frame to the connected AP.
  9259. * This attribute is used to configure the testbed device.
  9260. */
  9261. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  9262. /* 8-bit unsigned value to configure an override for the RSNXE Used
  9263. * subfield in the MIC control field of the FTE in FT Reassociation
  9264. * Request frame.
  9265. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  9266. * This attribute is used to configure the testbed device.
  9267. * This attribute can be configured when STA is in disconnected or
  9268. * associated state and the configuration is valid until the next
  9269. * disconnection.
  9270. */
  9271. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  9272. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  9273. * Switch Announcement) when STA is in connected state.
  9274. * 0 - Default behavior, 1 - Ignore CSA.
  9275. * This attribute is used to configure the testbed device.
  9276. * This attribute can be configured when STA is in disconnected or
  9277. * associated state and the configuration is valid until the next
  9278. * disconnection.
  9279. */
  9280. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  9281. /* Nested attribute values required to configure OCI (Operating Channel
  9282. * Information). Attributes defined in enum
  9283. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  9284. * This attribute is used to configure the testbed device.
  9285. * This attribute can be configured when STA is in disconnected or
  9286. * associated state and the configuration is valid until the next
  9287. * disconnection.
  9288. */
  9289. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  9290. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  9291. * Query timeout. If this configuration is enabled STA shall not send
  9292. * Deauthentication frmae when SA Query times out (mainly, after a
  9293. * channel switch when OCV is enabled).
  9294. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  9295. * This attribute is used to configure the testbed device.
  9296. * This attribute can be configured only when STA is in associated state
  9297. * and the configuration is valid until the disconnection.
  9298. */
  9299. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  9300. /* 8-bit unsigned value to configure the driver/firmware to start or
  9301. * stop transmitting FILS discovery frames.
  9302. * 0 - Stop transmitting FILS discovery frames
  9303. * 1 - Start transmitting FILS discovery frames
  9304. * This attribute is used to configure the testbed device.
  9305. * This attribute can be configured only in AP mode and the
  9306. * configuration is valid until AP restart.
  9307. */
  9308. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  9309. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9310. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  9311. * information field.
  9312. * 0 - Disable full bandwidth UL MU-MIMO subfield
  9313. * 1 - Enable full bandwidth UL MU-MIMO subfield
  9314. * This attribute is used to configure the testbed device.
  9315. */
  9316. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  9317. /* 16-bit unsigned value to configure the driver with a specific BSS
  9318. * max idle period to advertise in the BSS Max Idle Period element
  9319. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  9320. * This attribute is used to configure the testbed device.
  9321. */
  9322. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  9323. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  9324. * for data transmission.
  9325. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  9326. * This attribute is used to configure the testbed device.
  9327. */
  9328. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  9329. /* 8-bit unsigned value to configure the driver to disable data and
  9330. * management response frame transmission to test the BSS max idle
  9331. * feature.
  9332. * 0 - Default behavior, 1 - Disable data and management response Tx.
  9333. * This attribute is used to configure the testbed device.
  9334. */
  9335. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  9336. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9337. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  9338. * information field.
  9339. * 0 - Disable Punctured Preamble Rx subfield
  9340. * 1 - Enable Punctured Preamble Rx subfield
  9341. * This attribute is used to configure the testbed device.
  9342. */
  9343. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  9344. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  9345. * requirement mismatch for 6 GHz connection.
  9346. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  9347. * This attribute is used to configure the testbed device.
  9348. */
  9349. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  9350. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  9351. * connection with all security modes.
  9352. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  9353. * modes.
  9354. * This attribute is used for testing purposes.
  9355. */
  9356. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  9357. /* 8-bit unsigned value to configure the driver to transmit data with
  9358. * ER SU PPDU type.
  9359. *
  9360. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  9361. * This attribute is used for testing purposes.
  9362. */
  9363. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  9364. /* 8-bit unsigned value to configure the driver to use Data or
  9365. * Management frame type for keep alive data.
  9366. * Uses enum qca_wlan_keep_alive_data_type values.
  9367. *
  9368. * This attribute is used for testing purposes.
  9369. */
  9370. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  9371. /* 8-bit unsigned value to configure the driver to use scan request
  9372. * BSSID value in Probe Request frame RA(A1) during the scan. The
  9373. * driver saves this configuration and applies this setting to all user
  9374. * space scan requests until the setting is cleared. If this
  9375. * configuration is set, the driver uses the BSSID value from the scan
  9376. * request to set the RA(A1) in the Probe Request frames during the
  9377. * scan.
  9378. *
  9379. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  9380. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  9381. * This attribute is used for testing purposes.
  9382. */
  9383. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  9384. /* 8-bit unsigned value to configure the driver to enable/disable the
  9385. * BSS max idle period support.
  9386. *
  9387. * 0 - Disable the BSS max idle support.
  9388. * 1 - Enable the BSS max idle support.
  9389. * This attribute is used for testing purposes.
  9390. */
  9391. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  9392. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9393. * disable Rx control frame to MultiBSS subfield in the HE MAC
  9394. * capabilities information field.
  9395. * 0 - Disable Rx control frame to MultiBSS subfield
  9396. * 1 - Enable Rx control frame to MultiBSS subfield
  9397. * This attribute is used to configure the testbed device.
  9398. */
  9399. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  9400. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9401. * disable Broadcast TWT support subfield in the HE MAC capabilities
  9402. * information field.
  9403. * 0 - Disable Broadcast TWT support subfield
  9404. * 1 - Enable Broadcast TWT support subfield
  9405. * This attribute is used to configure the testbed device.
  9406. */
  9407. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  9408. /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
  9409. * mode for 802.11be MLO capable devices. If the attribute is set to 1,
  9410. * and if the FW supports this capability too, then the STA host
  9411. * advertises this capability to AP over assoc request frame. This
  9412. * attribute will not have any effect on legacy devices with no 802.11be
  9413. * support.
  9414. * 0 - Default behavior
  9415. * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
  9416. * This attribute is used to configure the testbed device.
  9417. */
  9418. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
  9419. /* 8-bit unsigned value to configure the driver to enable/disable the
  9420. * periodic sounding for Tx beamformer functionality. The default
  9421. * behavior uses algorithm to do sounding based on packet stats.
  9422. *
  9423. * 0 - Default behavior.
  9424. * 1 - Enable the periodic sounding for Tx beamformer.
  9425. * This attribute is used for testing purposes.
  9426. */
  9427. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
  9428. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9429. * to indicate the maximum number of spatial streams that the STA
  9430. * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
  9431. * The range of the value is 3 to 7.
  9432. * This attribute is used to configure the testbed device.
  9433. */
  9434. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
  9435. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9436. * to indicate the maximum number of spatial streams that the STA
  9437. * can receive in an EHT sounding NDP for 160 MHz bandwidth.
  9438. * The range of the value is 3 to 7.
  9439. * This attribute is used to configure the testbed device.
  9440. */
  9441. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
  9442. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9443. * to indicate the maximum number of spatial streams that the STA
  9444. * can receive in an EHT sounding NDP for 320 MHz bandwidth.
  9445. * The range of the value is 3 to 7.
  9446. * This attribute is used to configure the testbed device.
  9447. */
  9448. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
  9449. /* 8-bit unsigned value to configure the driver to exclude station
  9450. * profile in Probe Request frame Multi-Link element.
  9451. * 0 - Default behavior, sends the Probe Request frame with station
  9452. * profile data included in the Multi-Link element.
  9453. * 1 - Exclude station profile in Probe Request frame Multi-Link
  9454. * element.
  9455. * This attribute is used to configure the testbed device.
  9456. */
  9457. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
  9458. /* 8-bit unsigned value to configure EHT testbed defaults.
  9459. * This attribute is used to configure the testbed device.
  9460. * 1 - Set the device EHT capabilities to testbed defaults.
  9461. * 0 - Reset the device EHT capabilities to supported config.
  9462. */
  9463. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
  9464. /* 8-bit unsigned value to indicate the EHT MCS support.
  9465. * Uses enum eht_mcs_config values.
  9466. * This attribute is used to configure the testbed device to
  9467. * allow the advertised hardware capabilities to be downgraded
  9468. * for testing purposes.
  9469. */
  9470. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
  9471. /* 8-bit unsigned value to configure EHT TB Sounding Feedback
  9472. * Rate Limit capability.
  9473. * This attribute is used to configure the testbed device.
  9474. * 0 - Indicates no maximum supported data rate limitation.
  9475. * 1 - Indicates the maximum supported data rate is the lower of
  9476. * the 1500 Mb/s and the maximum supported data rate.
  9477. */
  9478. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
  9479. /* 8-bit unsigned value to configure the support for receiving an MPDU
  9480. * that contains an EHT operating mode control subfield.
  9481. * This attribute is used to configure the testbed device.
  9482. * 1-enable, 0-disable.
  9483. */
  9484. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
  9485. /* 8-bit unsigned value to configure the driver with EMLSR padding delay
  9486. * subfield value.
  9487. *
  9488. * 0 - 0 us
  9489. * 1 - 32 us
  9490. * 2 - 64 us
  9491. * 3 - 128 us
  9492. * 4 - 256 us
  9493. * 5-255 - Reserved
  9494. *
  9495. * This attribute is used for testing purposes.
  9496. */
  9497. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
  9498. /*
  9499. * 8-bit unsigned value to indicate the firmware to force the active MLO
  9500. * links to power save mode for the configured number of beacon periods.
  9501. * This allows the firmware to suspend STA links for X beacon periods
  9502. * and remain asleep even if the AP advertises TIM as opposed to regular
  9503. * power save mode where STA links wake up if the AP indicates that it
  9504. * has buffered data to send.
  9505. * This attribute is used to configure the testbed device.
  9506. */
  9507. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
  9508. /*
  9509. * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
  9510. * to enable simultaneous transmission of PPDUs on all active links.
  9511. * 0 - Default behavior
  9512. * 1 - Enter STR mode for simultaneous data transmission on all links
  9513. */
  9514. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
  9515. /* keep last */
  9516. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  9517. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  9518. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  9519. };
  9520. /**
  9521. * enum qca_wlan_twt_operation - Operation of the config TWT request
  9522. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  9523. * The response for the respective operations can be either synchronous or
  9524. * asynchronous (wherever specified). If synchronous, the response to this
  9525. * operation is obtained in the corresponding vendor command reply to the user
  9526. * space. For the asynchronous case the response is obtained as an event with
  9527. * the same operation type.
  9528. *
  9529. * Drivers shall support either of these modes but not both simultaneously.
  9530. * This support for asynchronous mode is advertised through the flag
  9531. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  9532. * the driver shall support synchronous mode.
  9533. *
  9534. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  9535. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9536. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  9537. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  9538. * synchronous or asynchronous operation.
  9539. *
  9540. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  9541. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9542. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  9543. *
  9544. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  9545. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9546. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9547. * This terminate can either get triggered by the user space or can as well be
  9548. * a notification from the firmware if it initiates a terminate.
  9549. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9550. * the request from user space can either be a synchronous or asynchronous
  9551. * operation.
  9552. *
  9553. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  9554. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9555. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9556. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9557. * this is either a synchronous or asynchronous operation.
  9558. *
  9559. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  9560. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9561. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  9562. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  9563. * request.
  9564. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9565. * capability, this is either a synchronous or asynchronous operation.
  9566. *
  9567. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  9568. * combination of suspend and resume in a single request. Required parameters
  9569. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  9570. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  9571. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9572. * capability, this is either a synchronous or asynchronous operation.
  9573. *
  9574. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  9575. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  9576. * session is setup. It's a synchronous operation.
  9577. *
  9578. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  9579. * Valid only after the TWT session is setup. It's a synchronous operation.
  9580. *
  9581. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  9582. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  9583. * operation.
  9584. *
  9585. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
  9586. * ready for a new TWT session setup after it issued a twt teardown.
  9587. *
  9588. * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
  9589. * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
  9590. * the enum qca_wlan_vendor_attr_twt_set_param.
  9591. *
  9592. * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
  9593. * related information for example TWT required bit in AP capabilities etc.
  9594. * The reason for the notification is sent using
  9595. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
  9596. */
  9597. enum qca_wlan_twt_operation {
  9598. QCA_WLAN_TWT_SET = 0,
  9599. QCA_WLAN_TWT_GET = 1,
  9600. QCA_WLAN_TWT_TERMINATE = 2,
  9601. QCA_WLAN_TWT_SUSPEND = 3,
  9602. QCA_WLAN_TWT_RESUME = 4,
  9603. QCA_WLAN_TWT_NUDGE = 5,
  9604. QCA_WLAN_TWT_GET_STATS = 6,
  9605. QCA_WLAN_TWT_CLEAR_STATS = 7,
  9606. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  9607. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  9608. QCA_WLAN_TWT_SET_PARAM = 10,
  9609. QCA_WLAN_TWT_NOTIFY = 11,
  9610. };
  9611. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  9612. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  9613. *
  9614. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  9615. * u8 attribute. Specify the TWT operation of this request. Possible values
  9616. * are defined in enum qca_wlan_twt_operation. The parameters for the
  9617. * respective operation is specified through
  9618. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  9619. *
  9620. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  9621. * parameters configured for TWT. These parameters are represented by
  9622. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
  9623. * enum qca_wlan_vendor_attr_twt_set_param or
  9624. * enum qca_wlan_vendor_attr_twt_stats based on the operation.
  9625. *
  9626. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
  9627. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
  9628. * The values used by this attribute are defined in
  9629. * enum qca_wlan_vendor_twt_status.
  9630. */
  9631. enum qca_wlan_vendor_attr_config_twt {
  9632. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  9633. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  9634. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  9635. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
  9636. /* keep last */
  9637. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  9638. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  9639. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  9640. };
  9641. /**
  9642. * qca_wlan_twt_setup_state: Represents the TWT session states.
  9643. *
  9644. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  9645. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  9646. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  9647. */
  9648. enum qca_wlan_twt_setup_state {
  9649. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  9650. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  9651. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  9652. };
  9653. /**
  9654. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  9655. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  9656. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  9657. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9658. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9659. *
  9660. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  9661. * Disable (flag attribute not present) - Individual TWT
  9662. * Enable (flag attribute present) - Broadcast TWT.
  9663. * Individual means the session is between the STA and the AP.
  9664. * This session is established using a separate negotiation between
  9665. * STA and AP.
  9666. * Broadcast means the session is across multiple STAs and an AP. The
  9667. * configuration parameters are announced in Beacon frames by the AP.
  9668. * This is used in
  9669. * 1. TWT SET Request and Response
  9670. * 2. TWT GET Response
  9671. *
  9672. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  9673. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  9674. * specify the TWT request type. This is used in TWT SET operation.
  9675. *
  9676. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  9677. * Enable (flag attribute present) - TWT with trigger support.
  9678. * Disable (flag attribute not present) - TWT without trigger support.
  9679. * Trigger means the AP will send the trigger frame to allow STA to send data.
  9680. * Without trigger, the STA will wait for the MU EDCA timer before
  9681. * transmitting the data.
  9682. * This is used in
  9683. * 1. TWT SET Request and Response
  9684. * 2. TWT GET Response
  9685. *
  9686. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  9687. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  9688. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  9689. * NULL frame to AP.
  9690. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  9691. * This is a required parameter for
  9692. * 1. TWT SET Request and Response
  9693. * 2. TWT GET Response
  9694. *
  9695. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  9696. * Flow ID is the unique identifier for each TWT session.
  9697. * If not provided then dialog ID will be set to zero.
  9698. * This is an optional parameter for
  9699. * 1. TWT SET Request and Response
  9700. * 2. TWT GET Request and Response
  9701. * 3. TWT TERMINATE Request and Response
  9702. * 4. TWT SUSPEND Request and Response
  9703. * Flow Id values from 0 to 254 represent a single TWT session
  9704. * Flow ID value of 255 represents all twt sessions for the following
  9705. * 1. TWT TERMINATE Request and Response
  9706. * 2. TWT SUSPEND Request and Response
  9707. * 4. TWT CLEAR STATISTICS request
  9708. * 5. TWT GET STATISTICS request and response
  9709. * If an invalid dialog id is provided, status
  9710. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9711. *
  9712. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  9713. * This attribute (exp) is used along with the mantissa to derive the
  9714. * wake interval using the following formula:
  9715. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  9716. * Wake interval is the interval between 2 successive SP.
  9717. * This is a required parameter for
  9718. * 1. TWT SET Request and Response
  9719. * 2. TWT GET Response
  9720. *
  9721. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  9722. * Enable (flag attribute present) - Protection required.
  9723. * Disable (flag attribute not present) - Protection not required.
  9724. * If protection is enabled, then the AP will use protection
  9725. * mechanism using RTS/CTS to self to reserve the airtime.
  9726. * This is used in
  9727. * 1. TWT SET Request and Response
  9728. * 2. TWT GET Response
  9729. *
  9730. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  9731. * This attribute is used as the SP offset which is the offset from
  9732. * TSF after which the wake happens. The units are in microseconds. If
  9733. * this attribute is not provided, then the value will be set to zero.
  9734. * This is an optional parameter for
  9735. * 1. TWT SET Request and Response
  9736. * 2. TWT GET Response
  9737. *
  9738. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  9739. * This is the duration of the service period. This is specified as
  9740. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  9741. * This is a required parameter for
  9742. * 1. TWT SET Request and Response
  9743. * 2. TWT GET Response
  9744. *
  9745. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  9746. * This attribute is used to configure wake interval mantissa.
  9747. * The units are in TU.
  9748. * This is a required parameter for
  9749. * 1. TWT SET Request and Response
  9750. * 2. TWT GET Response
  9751. *
  9752. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  9753. * This field is applicable for TWT response only.
  9754. * This contains status values in enum qca_wlan_vendor_twt_status
  9755. * and is passed to the userspace. This is used in TWT SET operation.
  9756. * This is a required parameter for
  9757. * 1. TWT SET Response
  9758. * 2. TWT TERMINATE Response
  9759. * 3. TWT SUSPEND Response
  9760. * 4. TWT RESUME Response
  9761. * 5. TWT NUDGE Response
  9762. *
  9763. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  9764. * This field is applicable for TWT response only.
  9765. * This field contains response type from the TWT responder and is
  9766. * passed to the userspace. The values for this field are defined in
  9767. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  9768. * response.
  9769. *
  9770. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  9771. * In TWT setup command this field contains absolute TSF that will
  9772. * be used by TWT requester during setup.
  9773. * In TWT response this field contains absolute TSF value of the
  9774. * wake time received from the TWT responder and is passed to
  9775. * the userspace.
  9776. * This is an optional parameter for
  9777. * 1. TWT SET Request
  9778. * This is a required parameter for
  9779. * 1. TWT SET Response
  9780. * 2. TWT GET Response
  9781. *
  9782. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  9783. * Enable (flag attribute present) - Indicates that the TWT responder
  9784. * supports reception of TWT information frame from the TWT requestor.
  9785. * Disable (flag attribute not present) - Indicates that the responder
  9786. * doesn't support reception of TWT information frame from requestor.
  9787. * This is used in
  9788. * 1. TWT SET Response
  9789. * 2. TWT GET Response
  9790. *
  9791. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  9792. * Represents the MAC address of the peer for which the TWT session
  9793. * is being configured. This is used in AP mode to represent the respective
  9794. * client
  9795. * In AP mode, this is a required parameter in response for
  9796. * 1. TWT SET
  9797. * 2. TWT GET
  9798. * 3. TWT TERMINATE
  9799. * 4. TWT SUSPEND
  9800. * In STA mode, this is an optional parameter in request and response for
  9801. * the above four TWT operations.
  9802. * In AP mode, this is a required parameter in request for
  9803. * 1. TWT GET
  9804. * 2. TWT TERMINATE
  9805. *
  9806. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  9807. * Minimum tolerance limit of wake interval parameter in microseconds.
  9808. *
  9809. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  9810. * Maximum tolerance limit of wake interval parameter in microseconds.
  9811. *
  9812. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  9813. * Minimum tolerance limit of wake duration parameter in microseconds.
  9814. *
  9815. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  9816. * Maximum tolerance limit of wake duration parameter in microseconds.
  9817. *
  9818. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  9819. * TWT state for the given dialog id. The values for this are represented
  9820. * by enum qca_wlan_twt_setup_state.
  9821. * This is obtained through TWT GET operation.
  9822. *
  9823. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  9824. * This attribute is used to configure wake interval mantissa.
  9825. * The unit is microseconds. This attribute, when specified, takes
  9826. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  9827. * This parameter is used for
  9828. * 1. TWT SET Request and Response
  9829. * 2. TWT GET Response
  9830. *
  9831. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  9832. * This attribute is used to configure Broadcast TWT ID.
  9833. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  9834. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  9835. * This parameter is used for
  9836. * 1. TWT SET Request
  9837. * 2. TWT TERMINATE Request
  9838. *
  9839. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  9840. * This attribute is used to configure Broadcast TWT recommendation.
  9841. * The Broadcast TWT Recommendation subfield contains a value that indicates
  9842. * recommendations on the types of frames that are transmitted by TWT
  9843. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  9844. * The allowed values are 0 - 3.
  9845. * This parameter is used for
  9846. * 1. TWT SET Request
  9847. *
  9848. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  9849. * This attribute is used to configure Broadcast TWT Persistence.
  9850. * The Broadcast TWT Persistence subfield indicates the number of
  9851. * TBTTs during which the Broadcast TWT SPs corresponding to this
  9852. * broadcast TWT Parameter set are present. The number of beacon intervals
  9853. * during which the Broadcast TWT SPs are present is equal to the value in the
  9854. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  9855. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  9856. * This parameter is used for
  9857. * 1. TWT SET Request
  9858. *
  9859. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  9860. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  9861. * from TWT response frame.
  9862. * This parameter is used for
  9863. * 1. TWT SET Response
  9864. * 2. TWT GET Response
  9865. *
  9866. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
  9867. * This attribute is used to configure the announce timeout value (in us) in
  9868. * firmware. This timeout value is only applicable for announced TWT. If
  9869. * timeout value is non-zero then firmware waits upto timeout value to use
  9870. * data frame as announcement frame. If timeout value is 0 then firmware sends
  9871. * explicit QoS NULL frame as announcement frame on SP start. Default value in
  9872. * firmware is 0.
  9873. * This parameter is used for
  9874. * 1. TWT SET Request
  9875. */
  9876. enum qca_wlan_vendor_attr_twt_setup {
  9877. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  9878. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  9879. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  9880. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  9881. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  9882. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  9883. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  9884. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  9885. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  9886. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  9887. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  9888. /* TWT Response only attributes */
  9889. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  9890. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  9891. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  9892. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  9893. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  9894. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  9895. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  9896. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  9897. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  9898. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  9899. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  9900. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  9901. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  9902. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  9903. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  9904. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
  9905. /* keep last */
  9906. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  9907. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  9908. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  9909. };
  9910. /**
  9911. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  9912. * TWT operation
  9913. *
  9914. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  9915. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  9916. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  9917. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  9918. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  9919. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  9920. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  9921. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  9922. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  9923. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  9924. * request/response frame
  9925. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  9926. * frame
  9927. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  9928. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  9929. * unknown reason
  9930. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  9931. * suspend state
  9932. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  9933. * invalid IE in the received TWT frame
  9934. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  9935. * the responder are not in the specified range
  9936. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  9937. * session due to request from the responder. Used on the TWT_TERMINATE
  9938. * notification from the firmware.
  9939. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  9940. * session due to roaming. Used on the TWT_TERMINATE notification from the
  9941. * firmware.
  9942. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  9943. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  9944. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  9945. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  9946. * request due to roaming in progress.
  9947. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  9948. * setup request due to channel switch in progress.
  9949. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  9950. * request due to scan in progress.
  9951. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  9952. * terminate an existing TWT session on power save exit request from userspace.
  9953. * Used on the TWT_TERMINATE notification from the driver/firmware.
  9954. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
  9955. * required bit in its capabilities.
  9956. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
  9957. * the TWT required bit(1->0) in its capabilities.
  9958. */
  9959. enum qca_wlan_vendor_twt_status {
  9960. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  9961. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  9962. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  9963. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  9964. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  9965. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  9966. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  9967. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  9968. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  9969. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  9970. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  9971. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  9972. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  9973. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  9974. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  9975. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  9976. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  9977. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  9978. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  9979. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  9980. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  9981. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  9982. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  9983. QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
  9984. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
  9985. };
  9986. /**
  9987. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  9988. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  9989. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  9990. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9991. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9992. *
  9993. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  9994. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  9995. * These attributes are used as the SP offset which is the offset from TSF after
  9996. * which the wake happens. The units are in microseconds. Please note that
  9997. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  9998. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  9999. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  10000. * will be set to zero.
  10001. *
  10002. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  10003. * This attribute represents the next TWT subfield size.
  10004. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  10005. * and 4 for 64 bits.
  10006. *
  10007. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  10008. * Flow ID is the unique identifier for each TWT session. This attribute
  10009. * represents the respective TWT session to resume.
  10010. * Flow Id values from 0 to 254 represent a single TWT session
  10011. * Flow ID value of 255 represents all TWT sessions.
  10012. * If an invalid dialog id is provided, status
  10013. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  10014. *
  10015. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  10016. * Represents the MAC address of the peer to which TWT Resume is
  10017. * being sent. This is used in AP mode to represent the respective
  10018. * client and is a required parameter. In STA mode, this is an optional
  10019. * parameter
  10020. *
  10021. */
  10022. enum qca_wlan_vendor_attr_twt_resume {
  10023. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  10024. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  10025. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  10026. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  10027. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  10028. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  10029. /* keep last */
  10030. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  10031. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  10032. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  10033. };
  10034. /**
  10035. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  10036. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  10037. * and resume in a single request. These attributes are sent as part of
  10038. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10039. *
  10040. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  10041. * Flow ID is the unique identifier for each TWT session. This attribute
  10042. * represents the respective TWT session to suspend and resume.
  10043. *
  10044. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  10045. * Flow ID is the unique identifier for each TWT session. This attribute
  10046. * represents the respective TWT session to suspend and resume.
  10047. * Flow Id values from 0 to 254 represent a single TWT session
  10048. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  10049. * and response.
  10050. * If an invalid dialog id is provided, status
  10051. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  10052. *
  10053. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  10054. * This attribute is used as the SP offset which is the offset from
  10055. * TSF after which the wake happens. The units are in microseconds.
  10056. *
  10057. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  10058. * This attribute represents the next TWT subfield size.
  10059. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  10060. * and 4 for 64 bits.
  10061. *
  10062. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  10063. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  10064. * being sent. This is used in AP mode to represent the respective
  10065. * client and is a required parameter. In STA mode, this is an optional
  10066. * parameter.
  10067. *
  10068. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  10069. * This field contains absolute TSF value of the time at which twt
  10070. * sesion will be resumed.
  10071. *
  10072. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
  10073. * This field will be used when device supports Flexible TWT.
  10074. * This field contains an offset value by which to shift the starting time
  10075. * of the next service period. The value of offset can be negative or positive.
  10076. * If provided, this attribute will override
  10077. * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
  10078. */
  10079. enum qca_wlan_vendor_attr_twt_nudge {
  10080. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  10081. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  10082. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  10083. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  10084. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  10085. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  10086. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
  10087. /* keep last */
  10088. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  10089. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  10090. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  10091. };
  10092. /**
  10093. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  10094. * TWT (Target Wake Time) get statistics and clear statistics request.
  10095. * These attributes are sent as part of
  10096. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10097. *
  10098. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  10099. * Flow ID is the unique identifier for each TWT session. This attribute
  10100. * represents the respective TWT session for get and clear TWT statistics.
  10101. * Flow Id values from 0 to 254 represent a single TWT session
  10102. * Flow ID value of 255 represents all TWT sessions in
  10103. * 1) TWT GET STATISTICS request and response
  10104. * 2) TWT CLEAR STATISTICS request
  10105. *
  10106. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  10107. * Represents the MAC address of the peer for which TWT Statistics
  10108. * is required.
  10109. * In AP mode this is used to represent the respective
  10110. * client and is a required parameter for
  10111. * 1) TWT GET STATISTICS request and response
  10112. * 2) TWT CLEAR STATISTICS request and response
  10113. * In STA mode, this is an optional parameter.
  10114. *
  10115. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  10116. * This is the duration of the service period in microseconds.
  10117. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10118. *
  10119. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  10120. * Average of actual wake duration observed so far. Unit is microseconds.
  10121. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10122. *
  10123. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  10124. * Number of TWT service period elapsed so far.
  10125. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10126. *
  10127. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10128. * This is the minimum value of wake duration observed across
  10129. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10130. * microseconds.
  10131. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10132. *
  10133. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10134. * This is the maximum value of wake duration observed across
  10135. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10136. * microseconds.
  10137. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10138. *
  10139. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  10140. * Average number of MPDU's transmitted successfully across
  10141. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10142. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10143. *
  10144. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  10145. * Average number of MPDU's received successfully across
  10146. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10147. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10148. *
  10149. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  10150. * Average number of bytes transmitted successfully across
  10151. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10152. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10153. *
  10154. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  10155. * Average number of bytes received successfully across
  10156. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10157. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10158. *
  10159. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  10160. * Status of the TWT GET STATISTICS request.
  10161. * This contains status values in enum qca_wlan_vendor_twt_status
  10162. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10163. */
  10164. enum qca_wlan_vendor_attr_twt_stats {
  10165. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  10166. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  10167. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  10168. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  10169. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  10170. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  10171. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  10172. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  10173. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  10174. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  10175. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  10176. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  10177. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  10178. /* keep last */
  10179. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  10180. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  10181. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  10182. };
  10183. /**
  10184. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  10185. * supported by the device and peer.
  10186. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  10187. *
  10188. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  10189. * TWT non-scheduling STA. This capability is advertised in the HE
  10190. * capability/Extended capabilities information element in the
  10191. * Association request frame by the device.
  10192. *
  10193. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  10194. * by the TWT scheduling AP. This capability is advertised in the extended
  10195. * capabilities/HE capabilities information element.
  10196. *
  10197. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  10198. * for the broadcast TWT functionality. On responder side, this indicates
  10199. * support for the role of broadcast TWT scheduling functionality. This
  10200. * capability is advertised in the HE capabilities information element.
  10201. *
  10202. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  10203. * This capability is advertised in the HE capabilities information element.
  10204. *
  10205. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  10206. * that it mandates the associated HE STAs to support TWT. This capability is
  10207. * advertised by AP in the HE Operation Parameters field of the HE operation
  10208. * information element.
  10209. */
  10210. enum qca_wlan_twt_capa {
  10211. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  10212. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  10213. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  10214. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  10215. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  10216. };
  10217. /**
  10218. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  10219. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  10220. * operation.
  10221. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  10222. * Represents the MAC address of the peer for which the TWT capabilities
  10223. * are being queried. This is used in AP mode to represent the respective
  10224. * client. In STA mode, this is an optional parameter.
  10225. *
  10226. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  10227. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10228. * enum qca_wlan_twt_capa.
  10229. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  10230. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10231. * enum qca_wlan_twt_capa.
  10232. */
  10233. enum qca_wlan_vendor_attr_twt_capability {
  10234. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  10235. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  10236. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  10237. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  10238. /* keep last */
  10239. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  10240. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  10241. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  10242. };
  10243. /**
  10244. * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
  10245. * TWT (Target Wake Time) related parameters. It is used when
  10246. * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
  10247. * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10248. *
  10249. * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
  10250. * This attribute configures AC parameters to be used for all TWT
  10251. * sessions in AP mode.
  10252. * Uses the enum qca_wlan_ac_type values.
  10253. */
  10254. enum qca_wlan_vendor_attr_twt_set_param {
  10255. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
  10256. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
  10257. /* keep last */
  10258. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
  10259. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
  10260. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
  10261. };
  10262. /**
  10263. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  10264. * the TWT responder
  10265. *
  10266. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  10267. * parameters that are different from TWT requesting STA suggested
  10268. * or demanded TWT parameters
  10269. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  10270. * parameters that are different from TWT requesting STA TWT suggested
  10271. * or demanded parameters
  10272. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  10273. * setup
  10274. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  10275. * setup.
  10276. */
  10277. enum qca_wlan_vendor_twt_setup_resp_type {
  10278. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  10279. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  10280. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  10281. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  10282. };
  10283. /**
  10284. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  10285. * Represents the setup type being requested for TWT.
  10286. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  10287. * parameters but relying on AP to fill the parameters during the negotiation.
  10288. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  10289. * values which the AP may accept or AP may provide alternative parameters
  10290. * which the STA may accept.
  10291. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  10292. * alternate parameters than the requested ones.
  10293. */
  10294. enum qca_wlan_vendor_twt_setup_req_type {
  10295. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  10296. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  10297. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  10298. };
  10299. /**
  10300. * enum qca_wlan_throughput_level - Current throughput level
  10301. *
  10302. * Indicates the current level of throughput calculated by driver. The driver
  10303. * may choose different thresholds to decide whether the throughput level is
  10304. * low or medium or high based on variety of parameters like physical link
  10305. * capacity of current connection, number of pakcets being dispatched per
  10306. * second etc. The throughput level events might not be consistent with the
  10307. * actual current throughput value being observed.
  10308. *
  10309. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  10310. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  10311. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  10312. */
  10313. enum qca_wlan_throughput_level {
  10314. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  10315. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  10316. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  10317. };
  10318. /**
  10319. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  10320. * report throughput changes from driver to user space. enum values are used
  10321. * for NL attributes sent with
  10322. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  10323. */
  10324. enum qca_wlan_vendor_attr_throughput_change {
  10325. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  10326. /*
  10327. * Indicates the direction of throughput in which the change is being
  10328. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  10329. */
  10330. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  10331. /*
  10332. * Indicates the newly observed throughput level.
  10333. * qca_wlan_throughput_level describes the possible range of values.
  10334. * u8 attribute.
  10335. */
  10336. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  10337. /*
  10338. * Indicates the driver's guidance on the new value to be set to
  10339. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  10340. * may optionally include this attribute.
  10341. */
  10342. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  10343. /*
  10344. * Indicates the driver's guidance on the new value to be set to
  10345. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  10346. * values are from -31 to 31. Driver may optionally include this
  10347. * attribute.
  10348. */
  10349. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  10350. /*
  10351. * Indicates the driver's guidance on the new value to be set to
  10352. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  10353. * optionally include this attribute.
  10354. */
  10355. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  10356. /* keep last */
  10357. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  10358. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  10359. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  10360. };
  10361. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  10362. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  10363. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10364. */
  10365. enum qca_wlan_nan_ext_subcmd_type {
  10366. /* Subcmd of type NAN Enable Request */
  10367. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  10368. /* Subcmd of type NAN Disable Request */
  10369. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  10370. };
  10371. /**
  10372. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  10373. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10374. */
  10375. enum qca_wlan_vendor_attr_nan_params {
  10376. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  10377. /* Carries NAN command for firmware component. Every vendor command
  10378. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  10379. * payload containing the NAN command. NLA_BINARY attribute.
  10380. */
  10381. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  10382. /* Indicates the type of NAN command sent with
  10383. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  10384. * describes the possible range of values. This attribute is mandatory
  10385. * if the command being issued is either
  10386. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  10387. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  10388. */
  10389. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  10390. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  10391. * band. This attribute is mandatory when command type is
  10392. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  10393. */
  10394. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  10395. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  10396. * band. This attribute is optional and should be included when command
  10397. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  10398. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  10399. */
  10400. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  10401. /* keep last */
  10402. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  10403. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  10404. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  10405. };
  10406. /**
  10407. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  10408. * transport modes and is used by attribute
  10409. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  10410. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10411. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  10412. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  10413. * data. The data shall be encapsulated within
  10414. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
  10415. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  10416. */
  10417. enum qca_wlan_vendor_cfr_data_transport_modes {
  10418. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  10419. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  10420. };
  10421. /**
  10422. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  10423. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  10424. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10425. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  10426. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  10427. * with phase
  10428. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  10429. */
  10430. enum qca_wlan_vendor_cfr_method {
  10431. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  10432. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  10433. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  10434. };
  10435. /**
  10436. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  10437. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  10438. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  10439. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  10440. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  10441. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  10442. * is provided by one or more of below attributes:
  10443. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  10444. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  10445. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  10446. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  10447. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  10448. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  10449. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10450. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  10451. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  10452. */
  10453. enum qca_wlan_vendor_cfr_capture_type {
  10454. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  10455. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  10456. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  10457. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  10458. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  10459. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  10460. };
  10461. /**
  10462. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  10463. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  10464. * Channel Frequency Response capture parameters and enable periodic CFR
  10465. * capture.
  10466. *
  10467. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  10468. * MAC address of peer. This is for CFR version 1 only.
  10469. *
  10470. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  10471. * Enable peer CFR Capture. This attribute is mandatory to
  10472. * enable peer CFR capture. If this attribute is not present,
  10473. * peer CFR capture is disabled.
  10474. *
  10475. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  10476. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  10477. * Supported values: 20, 40, 80, 80+80, 160.
  10478. * Note that all targets may not support all bandwidths.
  10479. * This attribute is mandatory for version 1 if attribute
  10480. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10481. *
  10482. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  10483. * Periodicity of CFR measurement in msec.
  10484. * Periodicity should be a multiple of Base timer.
  10485. * Current Base timer value supported is 10 msecs (default).
  10486. * 0 for one shot capture.
  10487. * This attribute is mandatory for version 1 if attribute
  10488. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10489. *
  10490. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  10491. * Method used to capture Channel Frequency Response.
  10492. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  10493. * This attribute is mandatory for version 1 if attribute
  10494. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10495. *
  10496. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  10497. * Enable periodic CFR capture.
  10498. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  10499. * If this attribute is not present, periodic CFR capture is disabled.
  10500. *
  10501. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  10502. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  10503. * can't be enabled at same time. This attribute is mandatory if target
  10504. * support both versions and use one of them.
  10505. *
  10506. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  10507. * This attribute is mandatory for version 2 if
  10508. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  10509. * Bits 15:0 Bit fields indicating which group to be enabled.
  10510. * Bits 31:16 Reserved for future use.
  10511. *
  10512. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  10513. * CFR capture duration in microsecond. This attribute is mandatory for
  10514. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  10515. *
  10516. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  10517. * CFR capture interval in microsecond. This attribute is mandatory for
  10518. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  10519. *
  10520. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  10521. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  10522. * This attribute is mandatory for version 2.
  10523. *
  10524. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  10525. * Bit fields indicating which user in the current UL MU
  10526. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  10527. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  10528. * then the CFR capture will happen for user index 0 in the current
  10529. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  10530. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  10531. * This is for CFR version 2 only.
  10532. *
  10533. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  10534. * Indicates the number of consecutive Rx packets to be skipped
  10535. * before CFR capture is enabled again.
  10536. * This is for CFR version 2 only.
  10537. *
  10538. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  10539. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  10540. *
  10541. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  10542. * the following GROUP attributes:
  10543. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  10544. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  10545. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  10546. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  10547. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  10548. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  10549. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  10550. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  10551. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  10552. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10553. *
  10554. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  10555. * Target support multiple groups for some configurations. Group number could be
  10556. * any value between 0 and 15. This is for CFR version 2 only.
  10557. *
  10558. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  10559. * Transmitter address which is used to filter packets, this MAC address takes
  10560. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  10561. * This is for CFR version 2 only.
  10562. *
  10563. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  10564. * Receiver address which is used to filter packets, this MAC address takes
  10565. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  10566. * This is for CFR version 2 only.
  10567. *
  10568. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  10569. * Mask of transmitter address which is used to filter packets.
  10570. * This is for CFR version 2 only.
  10571. *
  10572. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  10573. * Mask of receiver address which is used to filter packets.
  10574. * This is for CFR version 2 only.
  10575. *
  10576. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  10577. * Indicates packets with a specific NSS will be filtered for CFR capture.
  10578. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  10579. * be done for packets matching the NSS specified within this bitmask.
  10580. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  10581. * bit 0 : NSS 1
  10582. * bit 1 : NSS 2
  10583. * ...
  10584. * bit 7 : NSS 8
  10585. *
  10586. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  10587. * Indicates packets with a specific BW will be filtered for CFR capture.
  10588. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  10589. * will be done for packets matching the bandwidths specified within this
  10590. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  10591. * numerated in enum nl80211_band (although not all bands may be supported
  10592. * by a given device).
  10593. *
  10594. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  10595. * Management packets matching the subtype filter categories will be
  10596. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10597. * represents the corresponding mgmt subtype value as per
  10598. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10599. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  10600. * This is for CFR version 2 only
  10601. *
  10602. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  10603. * Control packets matching the subtype filter categories will be
  10604. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10605. * represents the corresponding control subtype value as per
  10606. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10607. * This is for CFR version 2 only.
  10608. *
  10609. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  10610. * Data packets matching the subtype filter categories will be
  10611. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10612. * represents the corresponding data subtype value as per
  10613. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10614. * This is for CFR version 2 only.
  10615. *
  10616. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  10617. * Userspace can use this attribute to specify the driver about which transport
  10618. * mode shall be used by the driver to send CFR data to userspace. Uses values
  10619. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  10620. * not present, driver shall choose the default transport mechanism which is
  10621. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  10622. *
  10623. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  10624. * Userspace can use this attribute to specify the nl port id of the application
  10625. * which receives the CFR data and processes it further so that the drivers can
  10626. * unicast the NL events to a specific application. Optionally included when
  10627. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  10628. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  10629. * shall multicast the netlink events when this attribute is not included.
  10630. *
  10631. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  10632. * This attribute will be used by the driver to encapsulate and send CFR data
  10633. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  10634. * asynchronous event when the driver is configured to send CFR data using NL
  10635. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  10636. *
  10637. */
  10638. enum qca_wlan_vendor_peer_cfr_capture_attr {
  10639. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  10640. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  10641. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  10642. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  10643. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  10644. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  10645. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  10646. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  10647. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  10648. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  10649. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  10650. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  10651. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  10652. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  10653. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  10654. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  10655. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  10656. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  10657. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  10658. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  10659. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  10660. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  10661. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  10662. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  10663. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  10664. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  10665. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  10666. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  10667. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  10668. /* Keep last */
  10669. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  10670. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  10671. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  10672. };
  10673. /**
  10674. * enum qca_coex_config_profiles - This enum defines different types of
  10675. * traffic streams that can be prioritized one over the other during coex
  10676. * scenarios.
  10677. * The types defined in this enum are categorized in the below manner.
  10678. * 0 - 31 values corresponds to WLAN
  10679. * 32 - 63 values corresponds to BT
  10680. * 64 - 95 values corresponds to Zigbee
  10681. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  10682. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  10683. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  10684. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  10685. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  10686. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  10687. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  10688. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  10689. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  10690. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  10691. * @QCA_BT_A2DP: Prioritize BT A2DP
  10692. * @QCA_BT_BLE: Prioritize BT BLE
  10693. * @QCA_BT_SCO: Prioritize BT SCO
  10694. * @QCA_ZB_LOW: Prioritize Zigbee Low
  10695. * @QCA_ZB_HIGH: Prioritize Zigbee High
  10696. */
  10697. enum qca_coex_config_profiles {
  10698. /* 0 - 31 corresponds to WLAN */
  10699. QCA_WIFI_STA_DISCOVERY = 0,
  10700. QCA_WIFI_STA_CONNECTION = 1,
  10701. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  10702. QCA_WIFI_STA_DATA = 3,
  10703. QCA_WIFI_STA_ALL = 4,
  10704. QCA_WIFI_SAP_DISCOVERY = 5,
  10705. QCA_WIFI_SAP_CONNECTION = 6,
  10706. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  10707. QCA_WIFI_SAP_DATA = 8,
  10708. QCA_WIFI_SAP_ALL = 9,
  10709. QCA_WIFI_CASE_MAX = 31,
  10710. /* 32 - 63 corresponds to BT */
  10711. QCA_BT_A2DP = 32,
  10712. QCA_BT_BLE = 33,
  10713. QCA_BT_SCO = 34,
  10714. QCA_BT_CASE_MAX = 63,
  10715. /* 64 - 95 corresponds to Zigbee */
  10716. QCA_ZB_LOW = 64,
  10717. QCA_ZB_HIGH = 65,
  10718. QCA_ZB_CASE_MAX = 95,
  10719. /* 0xff is default value if the u8 profile value is not set. */
  10720. QCA_PROFILE_DEFAULT_VALUE = 255
  10721. };
  10722. /**
  10723. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  10724. * This enum defines the valid set of values of coex configuration types. These
  10725. * values may used by attribute
  10726. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  10727. *
  10728. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  10729. * weights to default values.
  10730. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  10731. * weights with configurability value.
  10732. */
  10733. enum qca_vendor_attr_coex_config_types {
  10734. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  10735. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  10736. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  10737. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  10738. };
  10739. /**
  10740. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  10741. * attributes
  10742. * Attributes for data used by
  10743. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  10744. *
  10745. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  10746. * Indicate config type.
  10747. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  10748. *
  10749. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  10750. * Indicate the Priority 1 profiles.
  10751. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10752. * In same priority level, maximum to 4 profiles can be set here.
  10753. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  10754. * Indicate the Priority 2 profiles.
  10755. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10756. * In same priority level, maximum to 4 profiles can be set here.
  10757. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  10758. * Indicate the Priority 3 profiles.
  10759. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10760. * In same priority level, maximum to 4 profiles can be set here.
  10761. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  10762. * Indicate the Priority 4 profiles.
  10763. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10764. * In same priority level, maximum to 4 profiles can be set here.
  10765. * NOTE:
  10766. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  10767. * arrangement:
  10768. * 1: In the same u32 attribute(priority x), the profiles enum values own
  10769. * same priority level.
  10770. * 2: 0xff is default value if the u8 profile value is not set.
  10771. * 3: max to 4 rules/profiles in same priority level.
  10772. * 4: max to 4 priority level (priority 1 - priority 4)
  10773. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  10774. * hybrid rules not support.
  10775. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  10776. * remain blank to reset all parameters.
  10777. * For example:
  10778. *
  10779. * If the attributes as follow:
  10780. * priority 1:
  10781. * ------------------------------------
  10782. * | 0xff | 0 | 1 | 2 |
  10783. * ------------------------------------
  10784. * priority 2:
  10785. * -------------------------------------
  10786. * | 0xff | 0xff | 0xff | 32 |
  10787. * -------------------------------------
  10788. * priority 3:
  10789. * -------------------------------------
  10790. * | 0xff | 0xff | 0xff | 65 |
  10791. * -------------------------------------
  10792. * then it means:
  10793. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10794. * owns same priority level.
  10795. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10796. * has priority over BT_A2DP and ZB_HIGH.
  10797. * 3: BT_A2DP has priority over ZB_HIGH.
  10798. */
  10799. enum qca_vendor_attr_coex_config_three_way {
  10800. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  10801. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  10802. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  10803. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  10804. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  10805. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  10806. /* Keep last */
  10807. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  10808. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  10809. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  10810. };
  10811. /**
  10812. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  10813. * This enum defines the valid set of values of peer stats cache types. These
  10814. * values are used by attribute
  10815. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  10816. *
  10817. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  10818. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  10819. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  10820. * statistics
  10821. */
  10822. enum qca_vendor_attr_peer_stats_cache_type {
  10823. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  10824. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  10825. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  10826. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  10827. };
  10828. /**
  10829. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  10830. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  10831. * Attributes are required to flush peer rate statistics from driver to
  10832. * user application.
  10833. *
  10834. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  10835. * Indicate peer stats cache type.
  10836. * The statistics types are 32-bit values from
  10837. * qca_vendor_attr_peer_stats_cache_type
  10838. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  10839. * of size 6, representing peer mac address.
  10840. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  10841. * containing buffer of statistics to send event to application layer entity.
  10842. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  10843. * representing cookie for peer unique session.
  10844. */
  10845. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  10846. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  10847. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  10848. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  10849. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  10850. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  10851. /* Keep last */
  10852. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  10853. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  10854. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  10855. };
  10856. /**
  10857. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  10858. * this enum defines all the possible state of zigbee, which can be
  10859. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  10860. *
  10861. * @ZIGBEE_IDLE: zigbee in idle state
  10862. * @ZIGBEE_FORM_NETWORK: zibee forming network
  10863. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  10864. * @ZIGBEE_JOIN: zigbee joining network
  10865. * @ZIGBEE_NETWORK_UP: zigbee network is up
  10866. * @ZIGBEE_HMI: zigbee in HMI mode
  10867. */
  10868. enum qca_mpta_helper_attr_zigbee_state {
  10869. ZIGBEE_IDLE = 0,
  10870. ZIGBEE_FORM_NETWORK = 1,
  10871. ZIGBEE_WAIT_JOIN = 2,
  10872. ZIGBEE_JOIN = 3,
  10873. ZIGBEE_NETWORK_UP = 4,
  10874. ZIGBEE_HMI = 5,
  10875. };
  10876. /**
  10877. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  10878. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  10879. */
  10880. enum qca_mpta_helper_vendor_attr {
  10881. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  10882. /* Optional attribute used to update zigbee state.
  10883. * enum qca_mpta_helper_attr_zigbee_state.
  10884. * NLA_U32 attribute.
  10885. */
  10886. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  10887. /* Optional attribute used to configure wlan duration for Shape-OCS
  10888. * during interrupt.
  10889. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  10890. * Value range 0 ~ 300 (ms).
  10891. * NLA_U32 attribute.
  10892. */
  10893. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  10894. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10895. * during interrupt.
  10896. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  10897. * Value range 0 ~ 300 (ms).
  10898. * NLA_U32 attribute.
  10899. */
  10900. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  10901. /* Optional attribute used to configure wlan duration for Shape-OCS
  10902. * monitor period.
  10903. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  10904. * Value range 0 ~ 300 (ms)
  10905. * NLA_U32 attribute
  10906. */
  10907. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  10908. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10909. * monitor period.
  10910. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  10911. * Value range 0 ~ 300 (ms)
  10912. * NLA_U32 attribute
  10913. */
  10914. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  10915. /* Optional attribute used to configure ocs interrupt duration.
  10916. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  10917. * Value range 1000 ~ 20000 (ms)
  10918. * NLA_U32 attribute
  10919. */
  10920. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  10921. /* Optional attribute used to configure ocs monitor duration.
  10922. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  10923. * Value range 1000 ~ 20000 (ms)
  10924. * NLA_U32 attribute
  10925. */
  10926. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  10927. /* Optional attribute used to notify wlan FW current zigbee channel.
  10928. * Value range 11 ~ 26
  10929. * NLA_U32 attribute
  10930. */
  10931. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  10932. /* Optional attribute used to configure wlan mute duration.
  10933. * Value range 0 ~ 400 (ms)
  10934. * NLA_U32 attribute
  10935. */
  10936. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  10937. /* keep last */
  10938. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  10939. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  10940. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  10941. };
  10942. /**
  10943. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  10944. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  10945. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  10946. *
  10947. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  10948. * to request the driver to start reporting Beacon frames.
  10949. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  10950. * to request the driver to stop reporting Beacon frames.
  10951. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  10952. * userspace to report received Beacon frames.
  10953. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  10954. * to indicate that the driver is going to pause reporting Beacon frames.
  10955. */
  10956. enum qca_wlan_vendor_beacon_reporting_op_types {
  10957. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  10958. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  10959. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  10960. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  10961. };
  10962. /**
  10963. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  10964. * types of reasons for which the driver is pausing reporting Beacon frames.
  10965. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  10966. *
  10967. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  10968. * reasons.
  10969. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  10970. * driver/firmware is starting a scan.
  10971. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  10972. * driver/firmware disconnects from the ESS and indicates the disconnection to
  10973. * userspace (non-seamless roaming case). This reason code will be used by the
  10974. * driver/firmware to indicate stopping of beacon report events. Userspace
  10975. * will need to start beacon reporting again (if desired) by sending vendor
  10976. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  10977. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  10978. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  10979. * completed.
  10980. */
  10981. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  10982. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  10983. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  10984. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  10985. };
  10986. /*
  10987. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  10988. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  10989. */
  10990. enum qca_wlan_vendor_attr_beacon_reporting_params {
  10991. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  10992. /* Specifies the type of operation that the vendor command/event is
  10993. * intended for. Possible values for this attribute are defined in
  10994. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  10995. */
  10996. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  10997. /* Optionally set by userspace to request the driver to report Beacon
  10998. * frames using asynchronous vendor events when the
  10999. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11000. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  11001. * If this flag is not set, the driver will only update Beacon frames
  11002. * in cfg80211 scan cache but not send any vendor events.
  11003. */
  11004. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  11005. /* Optionally used by userspace to request the driver/firmware to
  11006. * report Beacon frames periodically when the
  11007. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11008. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  11009. * u32 attribute, indicates the period of Beacon frames to be reported
  11010. * and in the units of beacon interval.
  11011. * If this attribute is missing in the command, then the default value
  11012. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  11013. * Zero is an invalid value.
  11014. * If a valid value is received for this attribute, the driver will
  11015. * update the cfg80211 scan cache periodically as per the value
  11016. * received in this attribute in addition to updating the cfg80211 scan
  11017. * cache when there is significant change in Beacon frame IEs.
  11018. */
  11019. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  11020. /* Used by the driver to encapsulate the SSID when the
  11021. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11022. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11023. * u8 array with a maximum size of 32.
  11024. *
  11025. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  11026. * will be taken from the SSID element of the received Beacon frame.
  11027. *
  11028. * When generating beacon report from Multiple BSSID Beacon frame and
  11029. * if the BSSID of the current connected BSS matches the BSSID of the
  11030. * transmitting BSS, the SSID will be taken from the SSID element of
  11031. * the received Beacon frame.
  11032. *
  11033. * When generating beacon report from Multiple BSSID Beacon frame and
  11034. * if the BSSID of the current connected BSS matches the BSSID of one
  11035. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  11036. * field included in the nontransmitted BSS profile whose derived BSSI
  11037. * is same as the BSSID of the current connected BSS. When there is no
  11038. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  11039. * of current connected* BSS, this attribute will not be present.
  11040. */
  11041. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  11042. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  11043. * is currently connected to when the
  11044. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11045. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  11046. * fixed size of 6 bytes.
  11047. *
  11048. * When generating beacon report from a Multiple BSSID beacon and the
  11049. * current connected BSSID matches one of the nontransmitted BSSIDs in
  11050. * a Multiple BSSID set, this BSSID will be that particular
  11051. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  11052. * transmitting address of the Beacon frame).
  11053. */
  11054. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  11055. /* Used by the driver to encapsulate the frequency in MHz on which
  11056. * the Beacon frame was received when the
  11057. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  11058. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11059. * u32 attribute.
  11060. */
  11061. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  11062. /* Used by the driver to encapsulate the Beacon interval
  11063. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11064. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11065. * u16 attribute. The value will be copied from the Beacon frame and
  11066. * the units are TUs.
  11067. */
  11068. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  11069. /* Used by the driver to encapsulate the Timestamp field from the
  11070. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  11071. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11072. * u64 attribute.
  11073. */
  11074. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  11075. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  11076. * Beacon frame is received in the driver when the
  11077. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11078. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  11079. * the units of nanoseconds. This value is expected to have accuracy of
  11080. * about 10 ms.
  11081. */
  11082. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  11083. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  11084. * which this event is generated when the
  11085. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11086. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  11087. */
  11088. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  11089. /* Used by the driver to specify the reason for the driver/firmware to
  11090. * pause sending beacons to userspace when the
  11091. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11092. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  11093. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  11094. * attribute.
  11095. */
  11096. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  11097. /* Used by the driver to specify whether the driver will automatically
  11098. * resume reporting beacon events to userspace later (for example after
  11099. * the ongoing off-channel activity is completed etc.) when the
  11100. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11101. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  11102. */
  11103. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  11104. /* Optionally set by userspace to request the driver not to resume
  11105. * beacon reporting after a pause is completed, when the
  11106. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11107. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  11108. * If this flag is set, the driver will not resume beacon reporting
  11109. * after any pause in beacon reporting is completed. Userspace has to
  11110. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  11111. * to initiate beacon reporting again. If this flag is set in the recent
  11112. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  11113. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  11114. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  11115. * set by the driver. Setting this flag until and unless there is a
  11116. * specific need is not recommended as there is a chance of some beacons
  11117. * received after pause command and next start command being not
  11118. * reported.
  11119. */
  11120. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  11121. /* Keep last */
  11122. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  11123. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  11124. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  11125. };
  11126. /**
  11127. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  11128. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  11129. *
  11130. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  11131. * a virtual device.
  11132. *
  11133. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  11134. * a physical device.
  11135. */
  11136. enum qca_vendor_oem_device_type {
  11137. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  11138. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  11139. };
  11140. /*
  11141. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  11142. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  11143. *
  11144. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  11145. * used to set/query the data to/from the firmware. On query, the same
  11146. * attribute is used to carry the respective data in the reply sent by the
  11147. * driver to userspace. The request to set/query the data and the format of the
  11148. * respective data from the firmware are embedded in the attribute. The
  11149. * maximum size of the attribute payload is 1024 bytes.
  11150. *
  11151. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  11152. * based on this field. This optional attribute is included to specify whether
  11153. * the device type is a virtual device or a physical device for the command.
  11154. * This attribute can be omitted for a virtual device (default) command.
  11155. * This u8 attribute is used to carry information for the device type using
  11156. * values defined by enum qca_vendor_oem_device_type.
  11157. *
  11158. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  11159. * attribute when the data is queried from the firmware.
  11160. *
  11161. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  11162. * is set when the userspace queries data from the firmware. This attribute
  11163. * should not be set when userspace sets the OEM data to the firmware.
  11164. */
  11165. enum qca_wlan_vendor_attr_oem_data_params {
  11166. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  11167. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  11168. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  11169. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  11170. /* keep last */
  11171. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  11172. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  11173. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  11174. };
  11175. /**
  11176. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  11177. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  11178. *
  11179. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  11180. * Nested attribute containing multiple ranges with following attributes:
  11181. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
  11182. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
  11183. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
  11184. *
  11185. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  11186. * Starting center frequency in MHz.
  11187. *
  11188. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  11189. * Ending center frequency in MHz.
  11190. *
  11191. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
  11192. * s32 attribute, optional. It is a per frequency range attribute.
  11193. * The maximum TX power limit from user space is to be applied on an
  11194. * unrestricted interface for corresponding frequency range. It is also
  11195. * possible that the actual TX power may be even lower than this cap due to
  11196. * other considerations such as regulatory compliance, SAR, etc. In absence of
  11197. * this attribute the driver shall follow current behavior which means
  11198. * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
  11199. * power derived by the driver based on regulatory/SAR during interface up.
  11200. *
  11201. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
  11202. * u32 attribute, optional. Indicates all the interface types which are
  11203. * restricted for all frequency ranges provided in
  11204. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  11205. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  11206. * This attribute encapsulates bitmasks of interface types defined in
  11207. * enum nl80211_iftype. If an interface is marked as restricted the driver must
  11208. * move to a safe channel and if no safe channel is available the driver shall
  11209. * terminate that interface functionality. In absence of this attribute,
  11210. * interface (SAP/P2P) can still continue operating on an unsafe channel with
  11211. * TX power limit derived from either
  11212. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
  11213. * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
  11214. * is not provided.
  11215. */
  11216. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  11217. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  11218. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  11219. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  11220. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  11221. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
  11222. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
  11223. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  11224. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  11225. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  11226. };
  11227. /*
  11228. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  11229. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  11230. */
  11231. enum qca_wlan_vendor_attr_add_sta_node_params {
  11232. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  11233. /* 6 byte MAC address of STA */
  11234. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  11235. /* Authentication algorithm used by the station of size u16;
  11236. * defined in enum nl80211_auth_type.
  11237. */
  11238. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  11239. /* keep last */
  11240. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  11241. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  11242. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  11243. };
  11244. /**
  11245. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  11246. * This enum defines the valid set of values of BT coex chain mode.
  11247. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  11248. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11249. *
  11250. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
  11251. * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
  11252. * separated, hybrid mode.
  11253. * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
  11254. * separated, fixed FDD mode.
  11255. */
  11256. enum qca_btc_chain_mode {
  11257. QCA_BTC_CHAIN_SHARED = 0,
  11258. QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
  11259. QCA_BTC_CHAIN_SEPARATED_FDD = 2,
  11260. };
  11261. /* deprecated legacy name */
  11262. #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
  11263. /**
  11264. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  11265. * chain mode.
  11266. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11267. *
  11268. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  11269. * Indicates the BT coex chain mode, are 32-bit values from
  11270. * enum qca_btc_chain_mode. This attribute is mandatory.
  11271. *
  11272. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  11273. * If set, vdev should be restarted when BT coex chain mode is updated.
  11274. * This attribute is optional.
  11275. */
  11276. enum qca_vendor_attr_btc_chain_mode {
  11277. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  11278. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  11279. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  11280. /* Keep last */
  11281. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  11282. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  11283. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  11284. };
  11285. /**
  11286. * enum qca_vendor_wlan_sta_flags - Station feature flags
  11287. * Bits will be set to 1 if the corresponding features are enabled.
  11288. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  11289. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  11290. for the station
  11291. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  11292. for the station
  11293. */
  11294. enum qca_vendor_wlan_sta_flags {
  11295. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  11296. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  11297. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  11298. };
  11299. /**
  11300. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  11301. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  11302. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  11303. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  11304. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  11305. */
  11306. enum qca_vendor_wlan_sta_guard_interval {
  11307. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  11308. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  11309. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  11310. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  11311. };
  11312. /**
  11313. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  11314. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  11315. *
  11316. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  11317. * Required attribute in request for AP mode only, 6-byte MAC address,
  11318. * corresponding to the station's MAC address for which information is
  11319. * requested. For STA mode this is not required as the info always correspond
  11320. * to the self STA and the current/last association.
  11321. *
  11322. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  11323. * Optionally used in response, u32 attribute, contains a bitmap of different
  11324. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  11325. *
  11326. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  11327. * Optionally used in response, u32 attribute, possible values are defined in
  11328. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  11329. * Guard interval used by the station.
  11330. *
  11331. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  11332. * Optionally used in response, u32 attribute, used in AP mode only.
  11333. * Value indicates the number of data frames received from station with retry
  11334. * bit set to 1 in FC.
  11335. *
  11336. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  11337. * Optionally used in response, u32 attribute, used in AP mode only.
  11338. * Counter for number of data frames with broadcast or multicast address in
  11339. * the destination address received from the station.
  11340. *
  11341. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  11342. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  11343. * Value indicates the number of data frames successfully transmitted only
  11344. * after retrying the packets and for which the TX status has been updated
  11345. * back to host from target.
  11346. *
  11347. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  11348. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  11349. * Value indicates the number of data frames not transmitted successfully even
  11350. * after retrying the packets for the number of times equal to the total number
  11351. * of retries allowed for that packet and for which the TX status has been
  11352. * updated back to host from target.
  11353. *
  11354. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  11355. * Optionally used in response, u32 attribute, used in AP mode only.
  11356. * Counter in the target for the number of data frames successfully transmitted
  11357. * to the station.
  11358. *
  11359. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  11360. * Optionally used in response, u32 attribute, used in AP mode only.
  11361. * Value indicates the number of data frames successfully transmitted only
  11362. * after retrying the packets.
  11363. *
  11364. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  11365. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  11366. * Value indicates the number of data frames not transmitted successfully even
  11367. * after retrying the packets for the number of times equal to the total number
  11368. * of retries allowed for that packet.
  11369. *
  11370. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  11371. * the STA mode only. Represent the number of probe requests sent by the STA
  11372. * while attempting to roam on missing certain number of beacons from the
  11373. * connected AP. If queried in the disconnected state, this represents the
  11374. * count for the last connected state.
  11375. *
  11376. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  11377. * the STA mode. Represent the number of probe responses received by the station
  11378. * while attempting to roam on missing certain number of beacons from the
  11379. * connected AP. When queried in the disconnected state, this represents the
  11380. * count when in last connected state.
  11381. *
  11382. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  11383. * STA mode only. Represents the total number of frames sent out by STA
  11384. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  11385. * only for the connect session. Represents the count of last connected session,
  11386. * when queried in the disconnected state.
  11387. *
  11388. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  11389. * Total number of RTS sent out by the STA. This data is maintained per connect
  11390. * session. Represents the count of last connected session, when queried in the
  11391. * disconnected state.
  11392. *
  11393. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  11394. * STA mode.Represent the number of RTS transmission failure that reach retry
  11395. * limit. This data is maintained per connect session. Represents the count of
  11396. * last connected session, when queried in the disconnected state.
  11397. *
  11398. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  11399. * the STA mode. Represent the total number of non aggregated frames transmitted
  11400. * by the STA. This data is maintained per connect session. Represents the count
  11401. * of last connected session, when queried in the disconnected state.
  11402. *
  11403. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  11404. * STA mode. Represent the total number of aggregated frames transmitted by the
  11405. * STA. This data is maintained per connect session. Represents the count of
  11406. * last connected session, when queried in the disconnected state.
  11407. *
  11408. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  11409. * the STA mode. Represents the number of received frames with a good PLCP. This
  11410. * data is maintained per connect session. Represents the count of last
  11411. * connected session, when queried in the disconnected state.
  11412. *
  11413. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  11414. * used in the STA mode. Represents the number of occasions that no valid
  11415. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  11416. * session. Represents the count of last connected session, when queried in the
  11417. * disconnected state.
  11418. *
  11419. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  11420. * STA mode. Represents the number of frames for which CRC check failed in the
  11421. * MAC. This data is maintained per connect session. Represents the count of
  11422. * last connected session, when queried in the disconnected state.
  11423. *
  11424. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  11425. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  11426. * data is maintained per connect session. Represents the count of last
  11427. * connected session, when queried in the disconnected state.
  11428. *
  11429. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  11430. * mode. Represents the number of received Block Acks. This data is maintained
  11431. * per connect session. Represents the count of last connected session, when
  11432. * queried in the disconnected state.
  11433. *
  11434. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  11435. * mode. Represents the number of beacons received from the connected BSS. This
  11436. * data is maintained per connect session. Represents the count of last
  11437. * connected session, when queried in the disconnected state.
  11438. *
  11439. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  11440. * STA mode. Represents the number of beacons received by the other BSS when in
  11441. * connected state (through the probes done by the STA). This data is maintained
  11442. * per connect session. Represents the count of last connected session, when
  11443. * queried in the disconnected state.
  11444. *
  11445. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  11446. * the STA mode. Represents the number of received DATA frames with good FCS and
  11447. * matching Receiver Address when in connected state. This data is maintained
  11448. * per connect session. Represents the count of last connected session, when
  11449. * queried in the disconnected state.
  11450. *
  11451. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  11452. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  11453. * when in the connected state. This data is maintained per connect session.
  11454. * Represents the count of last connected session, when queried in the
  11455. * disconnected state.
  11456. *
  11457. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  11458. * STA mode. This represents the target power in dBm for the transmissions done
  11459. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  11460. * connect session. Represents the count of last connected session, when
  11461. * queried in the disconnected state.
  11462. *
  11463. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  11464. * STA mode. This represents the Target power in dBm for transmissions done to
  11465. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11466. * session. Represents the count of last connected session, when queried in the
  11467. * disconnected state.
  11468. *
  11469. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  11470. * STA mode. This represents the Target power in dBm for transmissions done to
  11471. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  11472. * Represents the count of last connected session, when queried in the
  11473. * disconnected state.
  11474. *
  11475. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  11476. * STA mode. This represents the Target power in dBm for transmissions done to
  11477. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11478. * session. Represents the count of last connected session, when queried in
  11479. * the disconnected state.
  11480. *
  11481. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  11482. * STA mode. This represents the Target power in dBm for for transmissions done
  11483. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  11484. * Represents the count of last connected session, when queried in the
  11485. * disconnected state.
  11486. *
  11487. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  11488. * in the STA mode. This represents the Nested attribute representing the
  11489. * overflow counts of each receive buffer allocated to the hardware during the
  11490. * STA's connection. The number of hw buffers might vary for each WLAN
  11491. * solution and hence this attribute represents the nested array of all such
  11492. * HW buffer count. This data is maintained per connect session. Represents
  11493. * the count of last connected session, when queried in the disconnected state.
  11494. *
  11495. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  11496. * allowed as per the regulatory requirements for the current or last connected
  11497. * session. Used in the STA mode.
  11498. *
  11499. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  11500. * (dBm) used by the station in its latest unicast frame while communicating
  11501. * to the AP in the connected state. When queried in the disconnected state,
  11502. * this represents the TX power used by the STA with last AP communication
  11503. * when in connected state.
  11504. *
  11505. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  11506. * level used to adjust the RX sensitivity. Represents the current ANI level
  11507. * when queried in the connected state. When queried in the disconnected
  11508. * state, this corresponds to the latest ANI level at the instance of
  11509. * disconnection.
  11510. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  11511. * only. This represents the number of group addressed robust management frames
  11512. * received from this station with an invalid MIC or a missing MME when PMF is
  11513. * enabled.
  11514. *
  11515. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  11516. * only. This represents the number of group addressed robust management frames
  11517. * received from this station with the packet number less than or equal to the
  11518. * last received packet number when PMF is enabled.
  11519. *
  11520. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  11521. * mode only. This represents the number of Beacon frames received from this
  11522. * station with an invalid MIC or a missing MME when beacon protection is
  11523. * enabled.
  11524. *
  11525. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  11526. * only. This represents number of Beacon frames received from this station with
  11527. * the packet number less than or equal to the last received packet number when
  11528. * beacon protection is enabled.
  11529. *
  11530. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  11531. * STA mode only. Driver uses this attribute to populate the connection failure
  11532. * reason codes and the values are defined in
  11533. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  11534. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  11535. * connection failure from driver. The driver shall not include this attribute
  11536. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  11537. * connection failure observed in the last attempted connection.
  11538. *
  11539. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  11540. * used by the station in its last TX frame while communicating to the AP in the
  11541. * connected state. When queried in the disconnected state, this represents the
  11542. * rate used by the STA in the last TX frame to the AP when it was connected.
  11543. * This attribute is used for STA mode only.
  11544. *
  11545. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  11546. * This represents the rate index used by the STA for the last TX frame to the
  11547. * AP. When queried in the disconnected state, this gives the last RIX used by
  11548. * the STA in the last TX frame to the AP when it was connected.
  11549. *
  11550. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  11551. * mode only. This represents the number of times the STA TSF goes out of sync
  11552. * from the AP after the connection. If queried in the disconnected state, this
  11553. * gives the count of TSF out of sync for the last connection.
  11554. *
  11555. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  11556. * mode only. This represents the roam trigger reason for the last roaming
  11557. * attempted by the firmware. This can be queried either in connected state or
  11558. * disconnected state. Each bit of this attribute represents the different
  11559. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  11560. *
  11561. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  11562. * only. This represents the roam fail reason for the last failed roaming
  11563. * attempt by the firmware. Different roam failure reason codes are specified
  11564. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  11565. * connected state or disconnected state.
  11566. *
  11567. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  11568. * STA mode only. This represents the roam invoke fail reason for the last
  11569. * failed roam invoke. Different roam invoke failure reason codes
  11570. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  11571. * queried either in connected state or disconnected state.
  11572. *
  11573. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  11574. * This represents the average congestion duration of uplink frames in MAC
  11575. * queue in unit of ms. This can be queried either in connected state or
  11576. * disconnected state.
  11577. *
  11578. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
  11579. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11580. * rate value of TX packets. Every index of this nested attribute corresponds
  11581. * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
  11582. * queried in connected state.
  11583. *
  11584. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
  11585. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11586. * rate value of RX packets. Every index of this nested attribute corresponds
  11587. * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
  11588. * queried in connected state.
  11589. */
  11590. enum qca_wlan_vendor_attr_get_sta_info {
  11591. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  11592. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  11593. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  11594. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  11595. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  11596. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  11597. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  11598. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  11599. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  11600. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  11601. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  11602. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  11603. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  11604. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  11605. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  11606. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  11607. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  11608. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  11609. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  11610. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  11611. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  11612. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  11613. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  11614. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  11615. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  11616. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  11617. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  11618. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  11619. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  11620. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  11621. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  11622. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  11623. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  11624. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  11625. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  11626. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  11627. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  11628. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  11629. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  11630. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  11631. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  11632. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  11633. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  11634. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  11635. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  11636. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  11637. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  11638. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  11639. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
  11640. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
  11641. /* keep last */
  11642. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  11643. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  11644. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  11645. };
  11646. /**
  11647. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  11648. * Used when the driver triggers the STA to disconnect from the AP.
  11649. *
  11650. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  11651. * disconnection with the AP due to unspecified reasons.
  11652. *
  11653. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  11654. * disconnection with the AP due to a roaming failure. This roaming is triggered
  11655. * internally (host driver/firmware).
  11656. *
  11657. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  11658. * the AP when the user/external triggered roaming fails.
  11659. *
  11660. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  11661. * by the host driver whenever gateway reachability failure is detected and the
  11662. * driver disconnects with AP.
  11663. *
  11664. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  11665. * the AP on a channel switch announcement from it with an unsupported channel.
  11666. *
  11667. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  11668. * with indoor channels disabled and if the STA is connected on one of these
  11669. * disabled channels, the host driver disconnected the STA with this reason
  11670. * code.
  11671. *
  11672. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  11673. * explicit request from the user to disable the current operating channel.
  11674. *
  11675. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  11676. * the internal host driver/firmware recovery.
  11677. *
  11678. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  11679. * a timeout for the key installations from the user space.
  11680. *
  11681. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  11682. * STA on a band change request from the user space to a different band from the
  11683. * current operation channel/band.
  11684. *
  11685. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  11686. * interface down trigger from the user space.
  11687. *
  11688. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  11689. * STA on getting continuous transmission failures for multiple Data frames.
  11690. *
  11691. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  11692. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  11693. * represents inactivity from AP on such transmissions.
  11694. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  11695. * disconnection when SA Query times out (AP does not respond to SA Query).
  11696. *
  11697. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  11698. * STA on missing the beacons continuously from the AP.
  11699. *
  11700. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  11701. * able to move to the channel mentioned by the AP in CSA.
  11702. *
  11703. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  11704. */
  11705. enum qca_disconnect_reason_codes {
  11706. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  11707. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  11708. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  11709. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  11710. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  11711. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  11712. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  11713. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  11714. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  11715. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  11716. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  11717. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  11718. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  11719. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  11720. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  11721. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  11722. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  11723. };
  11724. /**
  11725. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  11726. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  11727. *
  11728. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  11729. * This attribute represents the driver specific reason codes (local
  11730. * driver/firmware initiated reasons for disconnection) defined
  11731. * in enum qca_disconnect_reason_codes.
  11732. */
  11733. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  11734. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  11735. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  11736. /* keep last */
  11737. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  11738. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  11739. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  11740. };
  11741. /**
  11742. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  11743. *
  11744. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  11745. */
  11746. enum qca_wlan_tspec_operation {
  11747. QCA_WLAN_TSPEC_ADD = 0,
  11748. QCA_WLAN_TSPEC_DEL = 1,
  11749. QCA_WLAN_TSPEC_GET = 2,
  11750. };
  11751. /**
  11752. * enum qca_wlan_tspec_direction - Direction in TSPEC
  11753. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  11754. *
  11755. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  11756. */
  11757. enum qca_wlan_tspec_direction {
  11758. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  11759. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  11760. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  11761. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  11762. };
  11763. /**
  11764. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  11765. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  11766. *
  11767. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  11768. */
  11769. enum qca_wlan_tspec_ack_policy {
  11770. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  11771. QCA_WLAN_TSPEC_NO_ACK = 1,
  11772. /* Reserved */
  11773. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  11774. };
  11775. /**
  11776. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  11777. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  11778. *
  11779. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  11780. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  11781. * are defined in enum qca_wlan_tspec_operation.
  11782. * Mandatory attribute for all kinds of config TSPEC requests.
  11783. *
  11784. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  11785. * u8 attribute. TS ID. Possible values are 0-7.
  11786. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  11787. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  11788. *
  11789. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  11790. * u8 attribute. Direction of data carried by the TS. Possible values are
  11791. * defined in enum qca_wlan_tspec_direction.
  11792. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11793. *
  11794. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  11795. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  11796. * with the TS. set - enabled, not set - disabled.
  11797. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11798. *
  11799. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  11800. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  11801. * belonging to this TS. Possible values are 0-7.
  11802. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11803. *
  11804. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  11805. * u8 attribute. Indicate whether MAC acknowledgements are required for
  11806. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  11807. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  11808. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11809. *
  11810. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  11811. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  11812. * belonging to this TS.
  11813. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11814. *
  11815. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  11816. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  11817. * belonging to this TS.
  11818. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11819. *
  11820. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  11821. * u32 attribute. Specify the minimum interval in microseconds between the
  11822. * start of two successive SPs.
  11823. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11824. *
  11825. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  11826. * u32 attribute. Specify the maximum interval in microseconds between the
  11827. * start of two successive SPs.
  11828. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11829. *
  11830. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  11831. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11832. * without arrival or transfer of an MPDU belonging to the TS before this TS
  11833. * is deleted by the MAC entity at the HC.
  11834. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11835. *
  11836. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  11837. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11838. * without arrival or transfer of an MSDU belonging to the TS before the
  11839. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  11840. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  11841. * interval is always less than or equal to the inactivity interval.
  11842. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11843. *
  11844. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  11845. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  11846. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11847. * bounds of this TSPEC.
  11848. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11849. *
  11850. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  11851. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  11852. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11853. * bounds of this TSPEC.
  11854. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11855. *
  11856. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  11857. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  11858. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  11859. * the bounds of this TSPEC.
  11860. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11861. *
  11862. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  11863. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  11864. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  11865. * value of 0 indicates that there are no bursts.
  11866. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11867. *
  11868. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  11869. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  11870. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  11871. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11872. *
  11873. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  11874. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  11875. * and above the stated application rates required to transport an MSDU/A-MSDU
  11876. * belonging to the TS in this TSPEC.
  11877. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11878. */
  11879. enum qca_wlan_vendor_attr_config_tspec {
  11880. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  11881. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  11882. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  11883. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  11884. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  11885. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  11886. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  11887. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  11888. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  11889. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  11890. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  11891. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  11892. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  11893. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  11894. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  11895. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  11896. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  11897. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  11898. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  11899. /* keep last */
  11900. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  11901. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  11902. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  11903. };
  11904. /**
  11905. * enum qca_wlan_medium_assess_type - Type of medium assess request
  11906. *
  11907. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  11908. */
  11909. enum qca_wlan_medium_assess_type {
  11910. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  11911. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  11912. };
  11913. /**
  11914. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  11915. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  11916. *
  11917. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  11918. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  11919. * Specify the type of medium assess request and indicate its type in response.
  11920. * Possible values are defined in enum qca_wlan_medium_assess_type.
  11921. *
  11922. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  11923. * u32 attribute. Mandatory in CCA request.
  11924. * Specify the assessment period in terms of seconds. Assessment result will be
  11925. * sent as the response to the CCA request after the assessment period.
  11926. *
  11927. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  11928. * u32 attribute. Mandatory in response to CCA request.
  11929. * Total timer tick count of the assessment cycle.
  11930. *
  11931. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  11932. * u32 attribute. Mandatory in response to CCA request.
  11933. * Timer tick count of idle time in the assessment cycle.
  11934. *
  11935. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  11936. * u32 attribute. Mandatory in response to CCA request.
  11937. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  11938. *
  11939. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  11940. * u32 attribute. Mandatory in response to CCA request.
  11941. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  11942. *
  11943. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  11944. * s32 attribute. Mandatory in response to CCA request.
  11945. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  11946. *
  11947. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  11948. * s32 attribute. Mandatory in response to CCA request.
  11949. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  11950. *
  11951. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  11952. * u8 attribute. Mandatory in congestion report request.
  11953. * 1-enable 0-disable.
  11954. *
  11955. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  11956. * u8 attribute. Mandatory in congestion report enable request and will be
  11957. * ignored if present in congestion report disable request. Possible values are
  11958. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  11959. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  11960. * congestion percentage reaches the configured threshold.
  11961. *
  11962. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  11963. * u8 attribute. Optional in congestion report enable request and will be
  11964. * ignored if present in congestion report disable request.
  11965. * Specify the interval of congestion report event in terms of seconds. Possible
  11966. * values are 1-255. Default value 1 will be used if this attribute is omitted
  11967. * or using invalid values.
  11968. *
  11969. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  11970. * u8 attribute. Mandatory in congestion report event.
  11971. * Indicate the actual congestion percentage. Possible values are 0-100.
  11972. */
  11973. enum qca_wlan_vendor_attr_medium_assess {
  11974. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  11975. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  11976. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  11977. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  11978. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  11979. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  11980. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  11981. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  11982. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  11983. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  11984. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  11985. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  11986. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  11987. /* keep last */
  11988. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  11989. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  11990. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  11991. };
  11992. /**
  11993. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  11994. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  11995. *
  11996. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  11997. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  11998. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  11999. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  12000. *
  12001. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
  12002. * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
  12003. *
  12004. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
  12005. * u8 attribute, required. indicates group id of Tx VDEV
  12006. *
  12007. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
  12008. * Nested attribute. This attribute shall be used by the driver to send
  12009. * group information. The attributes defined in enum
  12010. * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
  12011. * are nested in this attribute.
  12012. */
  12013. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  12014. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  12015. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  12016. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
  12017. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
  12018. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
  12019. /* keep last */
  12020. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  12021. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  12022. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  12023. };
  12024. /**
  12025. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
  12026. * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
  12027. *
  12028. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
  12029. * u32 attribute, required. contains interface index.
  12030. *
  12031. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
  12032. * u8 attribute, required. 0 - means vdev is in down state.
  12033. * 1- means vdev is in up state.
  12034. */
  12035. enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
  12036. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
  12037. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
  12038. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
  12039. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
  12040. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
  12041. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
  12042. };
  12043. /**
  12044. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  12045. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  12046. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  12047. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  12048. * frame
  12049. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  12050. * Request frame.
  12051. */
  12052. enum qca_wlan_vendor_oci_override_frame_type {
  12053. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  12054. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  12055. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  12056. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  12057. };
  12058. /**
  12059. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  12060. *
  12061. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  12062. * STA interface has to be given while selecting the connection policies
  12063. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  12064. * An interface is set as primary through the attribute
  12065. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  12066. * applicable if the primary interface has not been set earlier.
  12067. *
  12068. * The intention is not to downgrade the primary STA performance, such as:
  12069. * - Do not reduce the number of TX/RX chains of primary connection.
  12070. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  12071. * chains.
  12072. * - If using MCC, should set the MCC duty cycle of the primary connection to
  12073. * be higher than the secondary connection.
  12074. *
  12075. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  12076. * subsequent STA connection shall be chosen to balance with the existing
  12077. * concurrent STA's performance.
  12078. * Such as
  12079. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  12080. * capability.
  12081. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  12082. * to the secondary.
  12083. * - Prefer BSSID candidates which will help provide the best "overall"
  12084. * performance for all the STA connections.
  12085. */
  12086. enum qca_wlan_concurrent_sta_policy_config {
  12087. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  12088. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  12089. };
  12090. /**
  12091. * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
  12092. *
  12093. * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
  12094. * interface.
  12095. *
  12096. * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
  12097. * to meet gaming audio latency requirements.
  12098. *
  12099. * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
  12100. * concurrencies to meet lossless audio streaming requirements.
  12101. *
  12102. * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
  12103. * XR (eXtended Reality) requirements.
  12104. */
  12105. enum qca_wlan_concurrent_ap_policy_config {
  12106. QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
  12107. QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
  12108. QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
  12109. QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
  12110. };
  12111. /**
  12112. * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
  12113. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
  12114. *
  12115. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
  12116. * u8 attribute. Configures the concurrent STA policy configuration.
  12117. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  12118. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
  12119. * u8 attribute. Configures the concurrent AP policy configuration.
  12120. * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
  12121. */
  12122. enum qca_wlan_vendor_attr_concurrent_policy {
  12123. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
  12124. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
  12125. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
  12126. /* keep last */
  12127. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
  12128. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
  12129. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
  12130. };
  12131. /* Compatibility defines for previously used enum
  12132. * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
  12133. * in any new implementation.
  12134. */
  12135. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
  12136. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
  12137. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
  12138. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
  12139. #define qca_wlan_vendor_attr_concurrent_sta_policy \
  12140. qca_wlan_vendor_attr_concurrent_policy
  12141. /**
  12142. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  12143. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  12144. * attribute.
  12145. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  12146. * for unicast probe request.
  12147. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  12148. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  12149. * ath request.
  12150. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  12151. * received from AP.
  12152. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  12153. * request.
  12154. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  12155. * assoc request.
  12156. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  12157. * received from AP.
  12158. */
  12159. enum qca_sta_connect_fail_reason_codes {
  12160. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  12161. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  12162. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  12163. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  12164. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  12165. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  12166. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  12167. };
  12168. /**
  12169. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  12170. * OCI override request. These attributes are used inside nested attribute
  12171. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  12172. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  12173. *
  12174. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  12175. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  12176. * attribute to specify the frame type in which the OCI is to be overridden.
  12177. *
  12178. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  12179. * OCI frequency (in MHz) to override in the specified frame type.
  12180. */
  12181. enum qca_wlan_vendor_attr_oci_override {
  12182. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  12183. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  12184. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  12185. /* keep last */
  12186. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  12187. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  12188. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  12189. };
  12190. /**
  12191. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  12192. * filters defined in this enum are used in attribute
  12193. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  12194. *
  12195. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  12196. * shall filter the channels which are not usable because of coexistence with
  12197. * cellular radio.
  12198. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  12199. * shall filter the channels which are not usable because of existing active
  12200. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  12201. *
  12202. */
  12203. enum qca_wlan_vendor_usable_channels_filter {
  12204. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  12205. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  12206. };
  12207. /**
  12208. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  12209. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  12210. *
  12211. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  12212. * u32 attribute, required. Indicates the center frequency of the primary
  12213. * channel in MHz.
  12214. *
  12215. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  12216. * u32 attribute. Indicates the center frequency of the primary segment of the
  12217. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  12218. * 160 MHz, and 320 MHz channels.
  12219. *
  12220. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  12221. * u32 attribute. Indicates the center frequency of the secondary segment of
  12222. * 80+80 channel in MHz. This attribute is required only when
  12223. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  12224. *
  12225. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  12226. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  12227. * values are defined in enum nl80211_chan_width.
  12228. *
  12229. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  12230. * u32 attribute, required. Indicates all the interface types for which this
  12231. * channel is usable. This attribute encapsulates bitmasks of interface types
  12232. * defined in enum nl80211_iftype.
  12233. *
  12234. */
  12235. enum qca_wlan_vendor_attr_chan_info {
  12236. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  12237. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  12238. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  12239. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  12240. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  12241. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  12242. /* keep last */
  12243. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  12244. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  12245. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  12246. };
  12247. /**
  12248. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  12249. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  12250. *
  12251. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  12252. * u32 attribute. Indicates the bands from which the channels should be reported
  12253. * in response. This attribute encapsulates bit masks of bands defined in enum
  12254. * nl80211_band. Optional attribute, if not present in the request the driver
  12255. * shall return channels from all supported bands.
  12256. *
  12257. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  12258. * u32 attribute. Indicates all the interface types for which the usable
  12259. * channels information is requested. This attribute encapsulates bitmasks of
  12260. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  12261. * present in the request the driver shall send information of all supported
  12262. * interface modes.
  12263. *
  12264. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  12265. * u32 attribute. This attribute carries information of all filters that shall
  12266. * be applied while populating usable channels information by the driver. This
  12267. * attribute carries bit masks of different filters defined in enum
  12268. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  12269. * in the request the driver shall send information of channels without applying
  12270. * any of the filters that can be configured through this attribute.
  12271. *
  12272. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  12273. * Nested attribute. This attribute shall be used by the driver to send
  12274. * usability information of each channel. The attributes defined in enum
  12275. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  12276. */
  12277. enum qca_wlan_vendor_attr_usable_channels {
  12278. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  12279. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  12280. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  12281. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  12282. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  12283. /* keep last */
  12284. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  12285. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  12286. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  12287. };
  12288. /**
  12289. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  12290. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  12291. *
  12292. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  12293. * the list of radar history entries.
  12294. * Each entry contains freq, timestamp, and radar signal detect flag.
  12295. * The driver shall add an entry when CAC has finished, or radar signal
  12296. * has been detected post AP beaconing. The driver shall maintain at least
  12297. * 8 entries in order to save CAC result for a 160 MHz channel.
  12298. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  12299. * Channel frequency in MHz.
  12300. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  12301. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  12302. * or radar detection.
  12303. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  12304. * This flag indicates radar signal has been detected.
  12305. */
  12306. enum qca_wlan_vendor_attr_radar_history {
  12307. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  12308. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  12309. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  12310. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  12311. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  12312. /* keep last */
  12313. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  12314. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  12315. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  12316. };
  12317. /**
  12318. * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
  12319. *
  12320. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
  12321. * target exited MCC state and cleared the quota information. In the
  12322. * command it clears MCC quota setting and restores adaptive scheduling.
  12323. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
  12324. * will not be changed.
  12325. * This quota type is present in command/event.
  12326. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
  12327. * and the target may change the quota based on the data activity.
  12328. * This quota type is only present in event.
  12329. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
  12330. * by the target for low latency.
  12331. * This quota type is only present in command.
  12332. */
  12333. enum qca_wlan_vendor_mcc_quota_type {
  12334. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
  12335. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
  12336. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
  12337. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
  12338. };
  12339. /**
  12340. * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
  12341. * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
  12342. * quota information or as a command to set the required MCC quota for an
  12343. * interface.
  12344. *
  12345. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
  12346. * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
  12347. * In a command this specifies the MCC quota type to be set for the interface.
  12348. * In an event this provides the current quota type in force.
  12349. * This is required in a command and an event.
  12350. *
  12351. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
  12352. * the list of channel quota entries.
  12353. * In an event each entry contains the frequency and respective time quota for
  12354. * all the MCC interfaces.
  12355. * In a command it specifies the interface index and respective time quota.
  12356. * In a command only one entry (ifindex, quota pair) may be specified.
  12357. *
  12358. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
  12359. * Channel frequency in MHz. This is present only in an event.
  12360. *
  12361. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
  12362. * Channel time quota expressed as percentage.
  12363. * This is present in an event and a command.
  12364. * In an command, the user shall specify the quota to be allocated for the
  12365. * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
  12366. * In an event this provides the existing quota for the channel.
  12367. *
  12368. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
  12369. * Specifies the interface index (netdev) for which the corresponding
  12370. * configurations are applied. This is required in a command only. Only one
  12371. * interface index may be specified. If not specified, the configuration is
  12372. * rejected.
  12373. *
  12374. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
  12375. * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
  12376. * low latency mode. The firmware will do optimization for low
  12377. * latency in Multi-Channel concurrency state if enabled. And all existing
  12378. * user quota setting will be overwritten by the target.
  12379. * 0 - disable(default), 1 - enable.
  12380. * It is only present in a command with quota type of
  12381. * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
  12382. */
  12383. enum qca_wlan_vendor_attr_mcc_quota {
  12384. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
  12385. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
  12386. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
  12387. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
  12388. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
  12389. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
  12390. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
  12391. /* keep last */
  12392. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
  12393. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
  12394. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
  12395. };
  12396. /**
  12397. * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
  12398. * are used by the attribute
  12399. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
  12400. *
  12401. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
  12402. * invoke roam.
  12403. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
  12404. * detection failed when the roam trigger.
  12405. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
  12406. */
  12407. enum qca_wlan_roam_stats_invoke_reason {
  12408. QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
  12409. QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
  12410. QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
  12411. };
  12412. /**
  12413. * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
  12414. * values are used by the attribute
  12415. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
  12416. *
  12417. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
  12418. * roam by kickout.
  12419. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
  12420. * trigger by kickout.
  12421. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
  12422. * roam trigger by kickout.
  12423. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
  12424. * roam trigger by kickout.
  12425. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
  12426. * disappeared, and all TX is failing when roam trigger by kickout.
  12427. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
  12428. * timeout when roam trigger by kickout.
  12429. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
  12430. * peer has roamed to a repeater.
  12431. */
  12432. enum qca_wlan_roam_stats_tx_failures_reason {
  12433. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
  12434. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
  12435. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
  12436. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
  12437. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
  12438. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
  12439. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
  12440. };
  12441. /**
  12442. * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
  12443. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
  12444. *
  12445. * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
  12446. * detailed reason for roam scan being aborted.
  12447. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
  12448. * started due to high data RSSI during LOW-RSSI roaming.
  12449. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
  12450. * started due to good link speed during LOW-RSSI roaming.
  12451. * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
  12452. * due to high data RSSI during background roaming.
  12453. * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
  12454. * started due to high beacon RSSI during background roaming
  12455. */
  12456. enum qca_wlan_roam_stats_abort_reason {
  12457. QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
  12458. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
  12459. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
  12460. QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
  12461. QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
  12462. };
  12463. /**
  12464. * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
  12465. * These values are used by the attribute
  12466. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
  12467. *
  12468. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
  12469. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
  12470. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
  12471. * This is generally used in BTM events to indicate BTM frame exchange logs.
  12472. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
  12473. * from 2.4 GHz to 5 GHz or 6 GHz
  12474. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
  12475. * 5 GHz to 6 GHz
  12476. */
  12477. enum qca_wlan_roam_stats_scan_type {
  12478. QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
  12479. QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
  12480. QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
  12481. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
  12482. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
  12483. };
  12484. /**
  12485. * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
  12486. * These values are used by the attribute
  12487. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
  12488. *
  12489. * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
  12490. * detailed roam scan type.
  12491. * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
  12492. * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
  12493. */
  12494. enum qca_wlan_roam_stats_scan_dwell_type {
  12495. QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
  12496. QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
  12497. QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
  12498. };
  12499. /**
  12500. * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
  12501. * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
  12502. */
  12503. enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
  12504. /* 32-bit unsigned value to indicate center frequency of the primary
  12505. * channel in MHz for each roam scan channel.
  12506. */
  12507. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
  12508. /* 8-bit unsigned value to indicate channel scan type for each
  12509. * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
  12510. */
  12511. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
  12512. /* 32-bit unsigned value to indicate maximum scan time in milliseconds
  12513. * for each roam scan channel.
  12514. */
  12515. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
  12516. /* keep last */
  12517. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
  12518. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
  12519. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
  12520. };
  12521. /**
  12522. * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
  12523. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
  12524. *
  12525. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
  12526. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
  12527. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
  12528. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
  12529. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
  12530. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
  12531. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
  12532. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
  12533. */
  12534. enum qca_wlan_roam_stats_frame_subtype {
  12535. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
  12536. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
  12537. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
  12538. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
  12539. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
  12540. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
  12541. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
  12542. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
  12543. };
  12544. /**
  12545. * enum roam_frame_status - Specifies the valid values the vendor roam frame
  12546. * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
  12547. *
  12548. * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
  12549. * sent or received successfully.
  12550. * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
  12551. * receiving failed.
  12552. */
  12553. enum qca_wlan_roam_stats_frame_status {
  12554. QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
  12555. QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
  12556. };
  12557. /**
  12558. * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
  12559. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
  12560. */
  12561. enum qca_wlan_vendor_attr_roam_stats_frame_info {
  12562. /* 8-bit unsigned value to indicate the frame subtype during
  12563. * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
  12564. */
  12565. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
  12566. /* 8-bit unsigned value to indicate the frame is successful or failed
  12567. * during roaming, one of the values in
  12568. * qca_wlan_roam_stats_frame_status.
  12569. */
  12570. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
  12571. /* 64-bit unsigned value to indicate the timestamp for frame of
  12572. * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
  12573. * when sent or received during roaming, timestamp in milliseconds
  12574. * from system boot.
  12575. */
  12576. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
  12577. /* keep last */
  12578. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
  12579. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
  12580. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
  12581. };
  12582. /**
  12583. * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
  12584. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
  12585. */
  12586. enum qca_wlan_vendor_attr_roam_stats_info {
  12587. /* 64-bit unsigned value to indicate the timestamp when roam was
  12588. * triggered by the firmware, timestamp in milliseconds from system
  12589. * boot.
  12590. */
  12591. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
  12592. /* 32-bit unsigned value to indicate the roam trigger reason for the
  12593. * last roaming attempted by the firmware. This can be queried either
  12594. * in a connected state or disconnected state. The values of this
  12595. * attribute represent the roam trigger reason codes, which
  12596. * are defined in enum qca_roam_reason.
  12597. */
  12598. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
  12599. /* 8-bit unsigned value to indicate percentage of packets for which
  12600. * the RX rate is lower than the RX rate threshold in total RX packets,
  12601. * used for roaming trigger by per.
  12602. */
  12603. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
  12604. /* 8-bit unsigned value to indicate percentage of packets for which
  12605. * the TX rate is lower than TX rate threshold in total TX packets,
  12606. * used for roaming trigger by per.
  12607. */
  12608. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
  12609. /* 32-bit unsigned value to indicate final beacon miss count for
  12610. * trigger reason of beacon miss.
  12611. */
  12612. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
  12613. /* 32-bit unsigned value to indicate consecutive beacon miss count
  12614. * for trigger reason of beacon miss.
  12615. */
  12616. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
  12617. /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
  12618. * reason of beacon miss, 0 - success, 1 - fail.
  12619. * If QOS-NULL TX status is successful, beacon miss final count and
  12620. * consecutive beacon miss count will be reset to zero, and roam will
  12621. * not be triggered. If QOS-NULL TX status is failed, beacon miss final
  12622. * count and consecutive beacon miss count continue to calculate until
  12623. * roaming trigger by beacon miss.
  12624. */
  12625. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
  12626. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12627. * for trigger reason of poor RSSI.
  12628. */
  12629. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
  12630. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12631. * for trigger reason of poor RSSI.
  12632. */
  12633. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
  12634. /* 8-bit unsigned value to indicate RX link speed status
  12635. * for trigger reason of poor RSSI, 0 - good link speed,
  12636. * 1 - bad link speed.
  12637. */
  12638. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
  12639. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12640. * for trigger reason of better RSSI.
  12641. */
  12642. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
  12643. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12644. * for trigger reason of better RSSI.
  12645. */
  12646. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
  12647. /* 32-bit unsigned value to indicate RX throughput in bytes per second
  12648. * for trigger reason of congestion.
  12649. */
  12650. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
  12651. /* 32-bit unsigned value to indicate TX throughput in bytes per second
  12652. * for trigger reason of congestion.
  12653. */
  12654. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
  12655. /* 8-bit unsigned value to indicate roamable AP count
  12656. * for trigger reason of congestion.
  12657. */
  12658. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
  12659. /* 8-bit unsigned value to indicate invoke reason, one of the values
  12660. * defined in qca_wlan_roam_stats_invoke_reason.
  12661. */
  12662. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
  12663. /* 8-bit unsigned value to indicate request mode for trigger reason
  12664. * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
  12665. */
  12666. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
  12667. /* 32-bit unsigned value to indicate disassociate time in milliseconds
  12668. * for trigger reason of BTM.
  12669. */
  12670. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
  12671. /* 32-bit unsigned value to indicate preferred candidate list valid
  12672. * interval in milliseconds for trigger reason of BTM.
  12673. */
  12674. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
  12675. /* 8-bit unsigned value to indicate the number of preferred
  12676. * candidates for trigger reason of BTM.
  12677. */
  12678. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
  12679. /* 8-bit unsigned value to indicate response status for trigger
  12680. * reason of BTM, values are defined in IEEE Std 802.11-2020,
  12681. * Table 9-428 (BTM status code definitions).
  12682. */
  12683. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
  12684. /* 32-bit unsigned value to indicate BSS termination timeout value
  12685. * in milliseconds for trigger reason of BTM.
  12686. */
  12687. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
  12688. /* 32-bit unsigned value to indicate MBO associate retry timeout
  12689. * value in milliseconds for trigger reason of BTM.
  12690. */
  12691. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
  12692. /* 8-bit unsigned value to indicate dialog token number
  12693. * for trigger reason of BTM.
  12694. */
  12695. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
  12696. /* 8-bit unsigned value to indicate percentage of connected AP
  12697. * channel congestion utilization for trigger reason of BSS load.
  12698. */
  12699. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
  12700. /* 8-bit unsigned value to indicate disconnection type
  12701. * for trigger reason of disconnection. 1 - Deauthentication,
  12702. * 2 - Disassociation.
  12703. */
  12704. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
  12705. /* 16-bit unsigned value to indicate deauthentication or disassociation
  12706. * reason for trigger reason of disconnection, values are defined
  12707. * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
  12708. */
  12709. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
  12710. /* 32-bit unsigned value to indicate milliseconds of roam scan
  12711. * periodicity when needing to roam to find a better AP for trigger
  12712. * reason of periodic timer.
  12713. */
  12714. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
  12715. /* 8-bit signed value to indicate connected AP RSSI in dBm for
  12716. * trigger reason of background scan.
  12717. */
  12718. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
  12719. /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
  12720. * of background scan.
  12721. */
  12722. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
  12723. /* 8-bit signed value to indicate data RSSI threshold in dBm
  12724. * for trigger reason of background scan.
  12725. */
  12726. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
  12727. /* 32-bit unsigned value to indicate consecutive TX failure threshold
  12728. * for trigger reason of TX failures.
  12729. */
  12730. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
  12731. /* 8-bit unsigned value to indicate TX failure reason for trigger
  12732. * reason of TX failures, one of the values defined in
  12733. * qca_wlan_roam_stats_tx_failures_reason.
  12734. */
  12735. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
  12736. /* 8-bit unsigned value to indicate detail abort reason. One of the
  12737. * values in enum qca_wlan_roam_stats_abort_reason.
  12738. */
  12739. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
  12740. /* 8-bit signed value to indicate data RSSI in dBm when aborting the
  12741. * roam scan.
  12742. */
  12743. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
  12744. /* 8-bit signed value to indicate data RSSI threshold in dBm when
  12745. * aborting the roam scan.
  12746. */
  12747. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
  12748. /* 8-bit unsigned value to indicate data RSSI threshold in RX link
  12749. * speed status when aborting the roam scan.
  12750. * 0 - good link speed, 1 - bad link speed
  12751. */
  12752. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
  12753. /* 8-bit unsigned value to indicate roaming scan type.
  12754. * One of the values in enum qca_wlan_roam_stats_scan_type.
  12755. */
  12756. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
  12757. /* 8-bit unsigned value to indicate roaming result, used in STA mode
  12758. * only.
  12759. * 0-Roaming is successful, 1-Roaming is failed
  12760. */
  12761. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
  12762. /* 8-bit unsigned value to indicate the roam fail reason for the
  12763. * last failed roaming attempt by the firmware. Different roam failure
  12764. * reason codes are specified in enum qca_vendor_roam_fail_reasons.
  12765. * This can be queried either in connected state or disconnected state.
  12766. */
  12767. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
  12768. /* Nested attribute. Indicate roam scan info for each channel, the
  12769. * attributes defined in enum
  12770. * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
  12771. * this attribute.
  12772. */
  12773. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
  12774. /* 32-bit unsigned value to indicate total scan time during roam scan
  12775. * all channels, time in milliseconds.
  12776. */
  12777. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
  12778. /* Nested attribute. This attribute shall be used by the driver to
  12779. * send roam information of each subtype. The attributes defined in
  12780. * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
  12781. * this attribute.
  12782. */
  12783. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
  12784. /* keep last */
  12785. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
  12786. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
  12787. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
  12788. };
  12789. /**
  12790. * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
  12791. * report cached roam info from the driver to user space, enum values are used
  12792. * for netlink attributes sent with the
  12793. * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
  12794. */
  12795. enum qca_wlan_vendor_attr_roam_cached_stats {
  12796. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
  12797. /* Nested attribute, this attribute contains nested array roam info
  12798. * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
  12799. */
  12800. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
  12801. /* keep last */
  12802. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
  12803. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
  12804. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
  12805. };
  12806. /**
  12807. * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
  12808. * radio configurations present in each radio combination.
  12809. *
  12810. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
  12811. * the band info in the radio configuration. Uses the enum qca_set_band values.
  12812. *
  12813. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
  12814. * the number of antennas info in the radio configuration.
  12815. */
  12816. enum qca_wlan_vendor_attr_supported_radio_cfg {
  12817. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
  12818. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
  12819. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
  12820. /* keep last */
  12821. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
  12822. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
  12823. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
  12824. };
  12825. /**
  12826. * enum qca_wlan_vendor_attr_radio_combination - Attributes for
  12827. * radio combinations supported by the device.
  12828. *
  12829. * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
  12830. * provides the radio configurations present in the radio combination.
  12831. * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
  12832. * This attribute provides the values for radio combination matrix.
  12833. * For standalone config, the number of config values is one and the config
  12834. * carries the band and antenna information for standalone configuration. For
  12835. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
  12836. * configuration the number of config values is two and the config carries the
  12837. * band and antenna information for each simultaneous radio.
  12838. */
  12839. enum qca_wlan_vendor_attr_radio_combination {
  12840. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
  12841. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
  12842. /* keep last */
  12843. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
  12844. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
  12845. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
  12846. };
  12847. /**
  12848. * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
  12849. * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
  12850. *
  12851. * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
  12852. * provides the radio combinations supported by the device.
  12853. * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
  12854. * For example, in the radio combination matrix for a device which has two
  12855. * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
  12856. * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
  12857. * combinations is 5 and the radio combinations are
  12858. * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
  12859. * {{5 GHz 2X2}}, //Standalone 5 GHz
  12860. * {{6 GHz 2X2}}, //Standalone 6 GHz
  12861. * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
  12862. * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
  12863. * The band and antenna info together as nested data provides one radio config.
  12864. * Standalone configuration has one config with band and antenna nested data.
  12865. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
  12866. * have two nested band and antenna info data.
  12867. */
  12868. enum qca_wlan_vendor_attr_radio_combination_matrix {
  12869. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
  12870. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
  12871. /* keep last */
  12872. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
  12873. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
  12874. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
  12875. };
  12876. /**
  12877. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  12878. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  12879. *
  12880. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  12881. * Enable mDNS offload. This attribute is mandatory to enable
  12882. * mDNS offload feature. If this attribute is not present, mDNS offload
  12883. * is disabled.
  12884. *
  12885. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  12886. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  12887. * attribute is mandatory when enabling the feature, and not required when
  12888. * disabling the feature.
  12889. *
  12890. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  12891. * the following attributes:
  12892. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  12893. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  12894. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  12895. *
  12896. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  12897. * It consists of a hostname and ".local" as the domain name. The character
  12898. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  12899. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  12900. * supported per vdev.
  12901. * For example: myphone.local
  12902. *
  12903. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  12904. * u16 attribute. It specifies the total number of resource records present
  12905. * in the answer section of the answer payload. This attribute is needed by the
  12906. * firmware to populate the mDNS response frame for mNDS queries without having
  12907. * to parse the answer payload.
  12908. *
  12909. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  12910. * attribute sent by the mdnsResponder from userspace. It contains resource
  12911. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  12912. * payload is passed down to firmware and is transmitted in response to
  12913. * mDNS queries.
  12914. * The maximum size of the answer payload supported is 512 bytes.
  12915. */
  12916. enum qca_wlan_vendor_attr_mdns_offload {
  12917. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  12918. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  12919. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  12920. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  12921. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  12922. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  12923. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  12924. /* keep last */
  12925. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  12926. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  12927. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  12928. };
  12929. /**
  12930. * enum qca_vendor_attr_diag_event_type - Attributes used by
  12931. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  12932. *
  12933. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  12934. * driver/firmware during Connection request from Userspace. Uses the
  12935. * following attributes of enum qca_wlan_vendor_attr_diag:
  12936. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12937. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  12938. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12939. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  12940. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12941. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  12942. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  12943. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  12944. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  12945. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12946. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  12947. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  12948. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12949. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12950. *
  12951. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  12952. * driver/firmware when a connection is failed. Uses the
  12953. * following attributes of enum qca_wlan_vendor_attr_diag:
  12954. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12955. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12956. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12957. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12958. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12959. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12960. *
  12961. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  12962. * driver/firmware during Authentication request from a device. Uses the
  12963. * following attributes of enum qca_wlan_vendor_attr_diag:
  12964. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12965. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12966. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12967. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12968. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  12969. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12970. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12971. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12972. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12973. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12974. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12975. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12976. *
  12977. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  12978. * driver/firmware when device receives an authentication response. Uses the
  12979. * following attributes of enum qca_wlan_vendor_attr_diag:
  12980. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12981. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12982. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12983. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  12984. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12985. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12986. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12987. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12988. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12989. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12990. *
  12991. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  12992. * driver/firmware when device sends an association request. Uses the
  12993. * following attributes of enum qca_wlan_vendor_attr_diag:
  12994. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12995. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12996. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12997. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12998. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12999. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13000. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13001. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13002. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13003. *
  13004. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  13005. * driver/firmware when device receives an association response. Uses the
  13006. * following attributes of enum qca_wlan_vendor_attr_diag:
  13007. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13008. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13009. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13010. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13011. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13012. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13013. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13014. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13015. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
  13016. *
  13017. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  13018. * driver/userspace when device receives a deauthentication response. Uses the
  13019. * following attributes of enum qca_wlan_vendor_attr_diag:
  13020. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13021. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13022. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13023. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13024. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13025. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13026. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13027. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13028. *
  13029. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  13030. * driver/userspace when device sends a deauthentication request. Uses the
  13031. * following attributes of enum qca_wlan_vendor_attr_diag:
  13032. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13033. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13034. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13035. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13036. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13037. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13038. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13039. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13040. *
  13041. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  13042. * driver/firmware when device receives a disassociation response. Uses the
  13043. * following attributes of enum qca_wlan_vendor_attr_diag:
  13044. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13045. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13046. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13047. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13048. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13049. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13050. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13051. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13052. *
  13053. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  13054. * driver/firmware when device sends a disassociation request. Uses the
  13055. * following attributes of enum qca_wlan_vendor_attr_diag:
  13056. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13057. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13058. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13059. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13060. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13061. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13062. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13063. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13064. *
  13065. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  13066. * driver/firmware when device did not receive beacon packets during connection.
  13067. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  13068. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13069. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13070. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13071. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13072. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13073. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13074. *
  13075. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  13076. * driver/firmware when Roaming scan is triggered. Uses the following
  13077. * attributes of enum qca_wlan_vendor_attr_diag:
  13078. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13079. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  13080. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  13081. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13082. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13083. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  13084. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  13085. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13086. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13087. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13088. *
  13089. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  13090. * driver/firmware Roam scanning is processed. Uses the following
  13091. * attributes of enum qca_wlan_vendor_attr_diag:
  13092. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13093. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13094. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  13095. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  13096. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13097. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13098. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13099. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13100. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
  13101. *
  13102. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  13103. * driver/firmware to provide Roam information of the current AP. Uses the
  13104. * following attributes of enum qca_wlan_vendor_attr_diag:
  13105. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13106. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13107. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13108. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13109. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13110. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  13111. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13112. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13113. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13114. *
  13115. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  13116. * driver/firmware to provide Roam information of the candid AP. Uses the
  13117. * following attributes of enum qca_wlan_vendor_attr_diag:
  13118. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13119. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13120. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13121. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13122. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13123. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  13124. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  13125. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13126. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13127. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13128. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13129. *
  13130. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  13131. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  13132. * following attributes of enum qca_wlan_vendor_attr_diag:
  13133. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13134. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
  13135. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13136. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13137. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13138. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13139. *
  13140. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  13141. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  13142. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13143. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13144. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13145. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13146. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13147. *
  13148. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  13149. * /firmware when STA sends a BTM request frame. Uses the following attributes
  13150. * of enum qca_wlan_vendor_attr_diag:
  13151. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13152. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13153. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  13154. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  13155. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  13156. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  13157. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13158. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13159. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13160. *
  13161. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  13162. * driver/firmware when STA queries about BTM transition. Uses the following
  13163. * attributes of enum qca_wlan_vendor_attr_diag:
  13164. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13165. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13166. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  13167. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13168. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13169. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13170. *
  13171. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  13172. * /firmware when STA receives BTM response frame. Uses the following
  13173. * attributes of enum qca_wlan_vendor_attr_diag:
  13174. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13175. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13176. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  13177. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  13178. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  13179. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13180. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13181. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13182. *
  13183. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  13184. * driver/firmware to provide BTM request candidate information. Uses the
  13185. * following attributes of enum qca_wlan_vendor_attr_diag:
  13186. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13187. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13188. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  13189. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13190. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13191. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13192. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13193. *
  13194. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  13195. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  13196. * enum qca_wlan_vendor_attr_diag:
  13197. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13198. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  13199. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13200. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  13201. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13202. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13203. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13204. *
  13205. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  13206. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  13207. * attributes of enum qca_wlan_vendor_attr_diag:
  13208. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13209. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13210. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13211. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13212. *
  13213. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  13214. * driver/firmware to indicate DHCP offering to AP. Uses the following
  13215. * attributes of enum qca_wlan_vendor_attr_diag:
  13216. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13217. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13218. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13219. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13220. *
  13221. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  13222. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  13223. * attributes of enum qca_wlan_vendor_attr_diag:
  13224. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13225. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13226. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13227. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13228. *
  13229. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  13230. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  13231. * attributes of enum qca_wlan_vendor_attr_diag:
  13232. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13233. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13234. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13235. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13236. *
  13237. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  13238. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  13239. * following attributes of enum qca_wlan_vendor_attr_diag:
  13240. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13241. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13242. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13243. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13244. *
  13245. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  13246. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  13247. * enum qca_wlan_vendor_attr_diag:
  13248. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13249. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13250. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13251. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13252. *
  13253. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  13254. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  13255. * enum qca_wlan_vendor_attr_diag:
  13256. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13257. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13258. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13259. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13260. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13261. *
  13262. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  13263. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  13264. * enum qca_wlan_vendor_attr_diag:
  13265. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13266. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13267. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13268. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13269. *
  13270. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  13271. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  13272. * enum qca_wlan_vendor_attr_diag:
  13273. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13274. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13275. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13276. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13277. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13278. *
  13279. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  13280. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  13281. * enum qca_wlan_vendor_attr_diag:
  13282. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13283. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13284. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13285. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13286. *
  13287. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  13288. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  13289. * enum qca_wlan_vendor_attr_diag:
  13290. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13291. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13292. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13293. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13294. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13295. *
  13296. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  13297. * /firmware to indicate device sent EAP request. Uses the following attributes
  13298. * of enum qca_wlan_vendor_attr_diag:
  13299. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13300. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13301. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13302. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13303. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13304. *
  13305. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  13306. * /firmware to indicate device received EAP response. Uses the following
  13307. * attributes of enum qca_wlan_vendor_attr_diag:
  13308. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13309. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13310. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13311. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13312. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13313. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13314. *
  13315. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  13316. * /firmware to indicate EAP frame transmission is success. Uses the following
  13317. * attributes of enum qca_wlan_vendor_attr_diag:
  13318. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13319. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13320. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13321. *
  13322. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  13323. * /firmware to indicate EAP frame transmission is failed. Uses the following
  13324. * attributes of enum qca_wlan_vendor_attr_diag:
  13325. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13326. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13327. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13328. *
  13329. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
  13330. * /firmware to indicate Reassocation request. Uses the following attributes
  13331. * of enum qca_wlan_vendor_attr_diag:
  13332. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13333. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13334. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13335. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13336. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13337. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13338. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13339. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13340. *
  13341. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
  13342. * /firmware to indicate Reassocation response. Uses the following attributes
  13343. * of enum qca_wlan_vendor_attr_diag:
  13344. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13345. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13346. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13347. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13348. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
  13349. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13350. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13351. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13352. */
  13353. enum qca_vendor_attr_diag_event_type {
  13354. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  13355. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  13356. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  13357. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  13358. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  13359. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  13360. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  13361. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  13362. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  13363. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  13364. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  13365. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  13366. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  13367. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  13368. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  13369. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  13370. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  13371. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  13372. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  13373. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  13374. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  13375. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  13376. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  13377. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  13378. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  13379. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  13380. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  13381. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  13382. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  13383. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  13384. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  13385. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  13386. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  13387. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  13388. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  13389. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  13390. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  13391. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
  13392. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
  13393. /* keep last */
  13394. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  13395. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  13396. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  13397. };
  13398. /**
  13399. * enum qca_wlan_vendor_tx_status - Used by attribute
  13400. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  13401. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  13402. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  13403. * is not received.
  13404. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  13405. * acknowledged.
  13406. */
  13407. enum qca_wlan_vendor_tx_status {
  13408. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  13409. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
  13410. QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
  13411. };
  13412. /**
  13413. * enum qca_roam_sub_reason - Used by attribute
  13414. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  13415. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  13416. * timer expiry
  13417. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  13418. * to no candidate found during LOW RSSI trigger.
  13419. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  13420. * Imminent timeout
  13421. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  13422. * failure
  13423. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  13424. * emergency like deauth/disassoc.
  13425. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  13426. * BSS transition management request.
  13427. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  13428. * Roam scan triggered due to Low RSSI periodic timer
  13429. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  13430. * Roam trigger due to periodic timer after no candidate found during CU
  13431. * inactivity timer scan.
  13432. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  13433. * found in high CU roam trigger.
  13434. */
  13435. enum qca_roam_sub_reason {
  13436. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  13437. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  13438. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  13439. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  13440. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  13441. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  13442. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  13443. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  13444. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  13445. };
  13446. /*
  13447. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  13448. * to send diag data to the userspace. The attributes defined in this enum are
  13449. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13450. *
  13451. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  13452. * by driver/firmware to send diag data. Each instance of this nested attribute
  13453. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  13454. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
  13455. * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  13456. * nested attribute can be sent with one vendor command
  13457. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13458. *
  13459. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  13460. * attribute indicates the type of the diag event from driver/firmware. Uses
  13461. * values from enum qca_vendor_attr_diag_event_type.
  13462. *
  13463. * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
  13464. * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
  13465. * API to send time of the day in microseconds to userspace.
  13466. *
  13467. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  13468. * This attribute indicates firmware timestamp in microseconds.
  13469. *
  13470. * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
  13471. * indicates wlan interface index.
  13472. *
  13473. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  13474. * indicates 6-byte MAC address representing the BSSID of the AP.
  13475. *
  13476. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  13477. * indicates the 6-byte MAC address representing the BSSID hint sent in
  13478. * the connect request.
  13479. *
  13480. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
  13481. * indicates the SSID in u8 array with a maximum length of 32.
  13482. *
  13483. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  13484. * indicates the frequency of AP in MHz.
  13485. *
  13486. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  13487. * indicates frequency hint given in the connect request in MHz.
  13488. *
  13489. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
  13490. * This attribute indicates RSSI of the 802.11 frame in dBm.
  13491. *
  13492. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  13493. * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
  13494. * Table 12-10—Integrity and key wrap algorithms.
  13495. *
  13496. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  13497. * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
  13498. * Table 12-10—Integrity and key wrap algorithms.
  13499. *
  13500. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  13501. * attribute indicates Group management cipher suite defined in IEEE Std
  13502. * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
  13503. *
  13504. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  13505. * indicates Auth key management suite defined in IEEE Std 802.11‐2020
  13506. * Table 9-151—AKM suite selectors.
  13507. *
  13508. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  13509. * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
  13510. * Section 9.4.1.1 Authentication Algorithm Number field.
  13511. *
  13512. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  13513. * indicates bluetooth COEX is active or not.
  13514. *
  13515. * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
  13516. * attribute indicates SAE authentication frame type. The possible values are
  13517. * 1 - SAE commit frame
  13518. * 2 - SAE confirm frame
  13519. *
  13520. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  13521. * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
  13522. * Table 9-49—Reason codes.
  13523. *
  13524. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  13525. * attribute indicates sequence number of the frame defined in IEEE Std
  13526. * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
  13527. * field.
  13528. *
  13529. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
  13530. * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
  13531. * 9-50—Status codes.
  13532. *
  13533. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  13534. * Uses enum qca_wlan_vendor_tx_status.
  13535. *
  13536. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  13537. * indicates if frame transmission is retried.
  13538. *
  13539. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  13540. * Uses enum qca_roam_reason.
  13541. *
  13542. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  13543. * Uses enum qca_roam_sub_reason.
  13544. *
  13545. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  13546. * indicates channel utilization in percentage.
  13547. *
  13548. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  13549. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  13550. *
  13551. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  13552. * This attribute indicates current RSSI threshold in dBm.
  13553. *
  13554. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  13555. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  13556. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  13557. *
  13558. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  13559. * This attribute indicates number of scanned candidate APs.
  13560. *
  13561. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  13562. * attribute indicates roam AP rank computed based on connection preference.
  13563. *
  13564. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  13565. * This attribute indicates expected throughput in kbps.
  13566. *
  13567. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  13568. * This attribute indicates the preference value of candidate AP / connected AP
  13569. * calculated in the firmware.
  13570. *
  13571. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
  13572. * indicates connection/roaming is successful or not.
  13573. *
  13574. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  13575. * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
  13576. * IE present in the BTM frame.
  13577. *
  13578. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  13579. * This attribute indicates BTM WTC duration in milliseconds.
  13580. *
  13581. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
  13582. * indicates dialog token value of BTM query/request/response frames.
  13583. *
  13584. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  13585. * attribute indicates the Transition Reason field indicates the reason why
  13586. * a transition attempt occurred and contains one of the values defined in IEEE
  13587. * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
  13588. *
  13589. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  13590. * indicates BTM mode defined in IEEE Std 802.11‐2020
  13591. * Figure 9-924—Request Mode field format.
  13592. *
  13593. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
  13594. * This attribute indicates the Disassociation Timer field which is the number
  13595. * of beacon transmission times (TBTTs) until the serving AP will send a
  13596. * Disassociation frame to this STA.
  13597. *
  13598. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
  13599. * This attribute indicates BTM validity interval field in TBTTs defined in
  13600. * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
  13601. * Action field format.
  13602. *
  13603. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  13604. * This attribute indicates BTM candidate list entries.
  13605. *
  13606. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  13607. * This attribute indicates network preference for BTM transition defined in
  13608. * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
  13609. *
  13610. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  13611. * This attribute indicates BTM transition status code defined in IEEE Std
  13612. * 802.11‐2020 Table 9-428—BTM status code definitions.
  13613. *
  13614. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  13615. * This attribute indicates BSS termination delay defined in IEEE Std
  13616. * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
  13617. *
  13618. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  13619. * This attribute indicates 6-byte MAC address representing the BSSID of the
  13620. * BSS that the non-AP STA transitions to.
  13621. *
  13622. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  13623. * indicates EAP frame type. The methods are enumerated by IANA at
  13624. * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
  13625. *
  13626. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  13627. * indicates EAP frame length.
  13628. *
  13629. * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
  13630. * attribute indicates the kernel timestamp. Driver uses ktime_get() API
  13631. * (Time from boot but not the time spent in suspend) to send in microseconds
  13632. * to userspace.
  13633. *
  13634. * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
  13635. * indicates the association id received in the (re)association response frame
  13636. * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
  13637. */
  13638. enum qca_wlan_vendor_attr_diag {
  13639. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  13640. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  13641. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  13642. QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
  13643. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
  13644. QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
  13645. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
  13646. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
  13647. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
  13648. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
  13649. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
  13650. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
  13651. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
  13652. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
  13653. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
  13654. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
  13655. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
  13656. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
  13657. QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
  13658. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
  13659. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
  13660. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
  13661. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
  13662. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
  13663. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
  13664. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
  13665. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
  13666. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
  13667. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
  13668. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  13669. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  13670. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  13671. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  13672. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  13673. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
  13674. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  13675. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  13676. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  13677. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  13678. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  13679. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  13680. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  13681. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  13682. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  13683. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  13684. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  13685. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  13686. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  13687. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  13688. QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
  13689. QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
  13690. /* keep last */
  13691. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  13692. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  13693. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  13694. };
  13695. /**
  13696. * qca_wlan_vendor_monitor_data_frame_type - Represent the various
  13697. * data types to be sent over the monitor interface.
  13698. */
  13699. enum qca_wlan_vendor_monitor_data_frame_type {
  13700. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
  13701. /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
  13702. not set */
  13703. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
  13704. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
  13705. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
  13706. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
  13707. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
  13708. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
  13709. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
  13710. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
  13711. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
  13712. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
  13713. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
  13714. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
  13715. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
  13716. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
  13717. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
  13718. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
  13719. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
  13720. };
  13721. /**
  13722. * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
  13723. * mgmt types to be sent over the monitor interface.
  13724. * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
  13725. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
  13726. * except the Beacons. Valid only in the Connect state.
  13727. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
  13728. * BSSID Beacons. Valid only in the Connect state.
  13729. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
  13730. * the Beacons obtained during the scan (off channel and connected channel)
  13731. * when in connected state.
  13732. */
  13733. enum qca_wlan_vendor_monitor_mgmt_frame_type {
  13734. QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
  13735. /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
  13736. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
  13737. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
  13738. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
  13739. };
  13740. /**
  13741. * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
  13742. * ctrl types to be sent over the monitor interface.
  13743. * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
  13744. * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
  13745. */
  13746. enum qca_wlan_vendor_monitor_ctrl_frame_type {
  13747. QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
  13748. /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
  13749. QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
  13750. };
  13751. /**
  13752. * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
  13753. * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
  13754. * monitor mode.
  13755. *
  13756. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
  13757. * Represents the tx data packet type to be monitored (u32). These data packets
  13758. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13759. *
  13760. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
  13761. * Represents the tx data packet type to be monitored (u32). These data packets
  13762. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13763. *
  13764. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
  13765. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13766. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13767. *
  13768. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
  13769. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13770. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13771. *
  13772. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
  13773. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13774. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13775. *
  13776. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
  13777. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13778. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13779. *
  13780. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
  13781. * u32 attribute, An interval only for the connected beacon interval, which
  13782. * expects that the connected BSSID's beacons shall be sent on the monitor
  13783. * interface only on this specific interval.
  13784. */
  13785. enum qca_wlan_vendor_attr_set_monitor_mode {
  13786. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
  13787. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
  13788. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
  13789. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
  13790. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
  13791. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
  13792. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
  13793. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
  13794. /* keep last */
  13795. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
  13796. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
  13797. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
  13798. };
  13799. /**
  13800. * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
  13801. * Bits will be set to 1 if the corresponding state is enabled.
  13802. *
  13803. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
  13804. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
  13805. */
  13806. enum qca_wlan_vendor_roam_scan_state {
  13807. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
  13808. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
  13809. };
  13810. /**
  13811. * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
  13812. * Bits will be set to 1 if the corresponding event is notified.
  13813. *
  13814. * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
  13815. * carries the trigger reason. When set, it is expected that the roam event
  13816. * carries the respective reason via the attribute
  13817. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
  13818. * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
  13819. *
  13820. * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
  13821. * carries the roam fail reason. When set, it is expected that the roam event
  13822. * carries the respective reason via the attribute
  13823. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
  13824. * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
  13825. *
  13826. * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
  13827. * event carries the roam invoke fail reason. When set, it is expected that
  13828. * the roam event carries the respective reason via the attribute
  13829. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
  13830. *
  13831. * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
  13832. * carries the roam scan state. When set, it is expected that the roam event
  13833. * carries the respective scan state via the attribute
  13834. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
  13835. * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
  13836. */
  13837. enum qca_wlan_vendor_roam_event_type {
  13838. QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
  13839. QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
  13840. QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
  13841. QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
  13842. };
  13843. /**
  13844. * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
  13845. * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
  13846. *
  13847. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
  13848. * representing the BSSID of the AP to which the Roam is attempted.
  13849. *
  13850. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
  13851. * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
  13852. * attempted.
  13853. *
  13854. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
  13855. * on which the roam is attempted.
  13856. *
  13857. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
  13858. * STA mode only. This represents the roam fail reason for the last failed
  13859. * roaming attempt by the firmware for the specific BSSID. Different roam
  13860. * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
  13861. */
  13862. enum qca_wlan_vendor_attr_roam_events_candidate_info {
  13863. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
  13864. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
  13865. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
  13866. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
  13867. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
  13868. /* keep last */
  13869. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
  13870. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
  13871. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
  13872. };
  13873. /**
  13874. * enum qca_wlan_vendor_attr_roam_events - Used by the
  13875. * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
  13876. * roam events to the driver or notify these events from the driver.
  13877. *
  13878. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
  13879. * driver/firmware to enable/disable the notification of roam events. It's a
  13880. * mandatory attribute and used only in the request from the userspace to the
  13881. * host driver. 1-Enable, 0-Disable.
  13882. * If the roaming is totally offloaded to the firmware, this request when
  13883. * enabled shall mandate the firmware to notify all the relevant roam events
  13884. * represented by the below attributes. If the host is in the suspend mode,
  13885. * the behavior of the firmware to notify these events is guided by
  13886. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
  13887. * these events in the suspend state, the firmware is expected to wake up the
  13888. * host before the respective events are notified. Please note that such a
  13889. * request to get the events in the suspend state will have a definite power
  13890. * implication.
  13891. *
  13892. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
  13893. * that the roam events need to be notified in the suspend state too. By
  13894. * default, these roam events are notified in the resume state. With this flag,
  13895. * the roam events are notified in both resume and suspend states.
  13896. * This attribute is used in the request from the userspace to the host driver.
  13897. *
  13898. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
  13899. * Represents the different roam event types, signified by the enum
  13900. * qca_wlan_vendor_roam_event_type.
  13901. * Each bit of this attribute represents the different roam even types reported
  13902. * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13903. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13904. *
  13905. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
  13906. * mode only. This represents the roam trigger reason for the last roaming
  13907. * attempted by the firmware. Each bit of this attribute represents the
  13908. * different roam trigger reason code which are defined in enum
  13909. * qca_vendor_roam_triggers.
  13910. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13911. *
  13912. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
  13913. * STA mode only. This represents the roam invoke fail reason for the last
  13914. * failed roam invoke. Different roam invoke failure reason codes
  13915. * are specified in enum qca_vendor_roam_invoke_fail_reasons.
  13916. *
  13917. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
  13918. * for which the roam is attempted. Each entry is a nested attribute defined
  13919. * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
  13920. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13921. *
  13922. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
  13923. * the scan state on which the roam events need to be notified. The values for
  13924. * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
  13925. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13926. *
  13927. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
  13928. * u32 values. List of frequencies in MHz considered for a roam scan.
  13929. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13930. */
  13931. enum qca_wlan_vendor_attr_roam_events {
  13932. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
  13933. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
  13934. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
  13935. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
  13936. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
  13937. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
  13938. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
  13939. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
  13940. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
  13941. /* keep last */
  13942. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
  13943. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
  13944. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
  13945. };
  13946. /*
  13947. * enum qca_wlan_ratemask_params_type - Rate mask config type.
  13948. *
  13949. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
  13950. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
  13951. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
  13952. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
  13953. */
  13954. enum qca_wlan_ratemask_params_type {
  13955. QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
  13956. QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
  13957. QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
  13958. QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
  13959. };
  13960. /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
  13961. * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
  13962. * This is used to set the rate mask value to be used in rate selection.
  13963. *
  13964. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
  13965. * Array of nested containing attributes
  13966. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
  13967. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
  13968. *
  13969. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
  13970. * the different phy types to which the rate mask config is to be applied.
  13971. * The values for this attribute are referred from enum
  13972. * qca_wlan_vendor_ratemask_params_type.
  13973. *
  13974. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
  13975. * A bit value of 1 represents rate is enabled and a value of 0
  13976. * represents rate is disabled.
  13977. * For HE targets, 12 bits correpond to one NSS setting.
  13978. * b0-13 => NSS1, MCS 0-13
  13979. * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
  13980. * For VHT targets, 10 bits correspond to one NSS setting.
  13981. * b0-9 => NSS1, MCS 0-9
  13982. * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
  13983. * For HT targets, 8 bits correspond to one NSS setting.
  13984. * b0-7 => NSS1, MCS 0-7
  13985. * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
  13986. * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
  13987. */
  13988. enum qca_wlan_vendor_attr_ratemask_params {
  13989. QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
  13990. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
  13991. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
  13992. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
  13993. /* keep last */
  13994. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
  13995. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
  13996. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
  13997. };
  13998. /**
  13999. * enum qca_wlan_vendor_flush_pending_policy: Represents values for
  14000. * the policy to flush pending frames, configured via
  14001. * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
  14002. * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
  14003. *
  14004. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
  14005. * the flush policy configured before. This command basically disables the
  14006. * flush config set by the user.
  14007. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
  14008. * the flush policy to be immediate. All pending packets for the peer/TID are
  14009. * flushed when this command/policy is received.
  14010. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
  14011. * the flush policy to the end of TWT SP. All pending packets for the peer/TID
  14012. * are flushed when the end of TWT SP is reached.
  14013. */
  14014. enum qca_wlan_vendor_flush_pending_policy {
  14015. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
  14016. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
  14017. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
  14018. };
  14019. /**
  14020. * enum qca_wlan_vendor_attr_flush_pending - Attributes for
  14021. * flushing pending traffic in firmware.
  14022. *
  14023. * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
  14024. * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
  14025. * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
  14026. * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
  14027. * flush packets with access category. This is optional. See below.
  14028. * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
  14029. * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
  14030. * bit to 1 to act upon the TID. This is optional. Either this attribute or
  14031. * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
  14032. * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
  14033. * it is an error.
  14034. * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
  14035. * packets corresponding to the peer/TID provided. It is a u32 value,
  14036. * represented by %enum qca_wlan_vendor_flush_pending_policy. This
  14037. * value is honored only when TID mask is provided. This is not honored when AC
  14038. * mask is provided.
  14039. */
  14040. enum qca_wlan_vendor_attr_flush_pending {
  14041. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
  14042. QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
  14043. QCA_WLAN_VENDOR_ATTR_AC = 2,
  14044. QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
  14045. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
  14046. /* keep last */
  14047. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
  14048. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
  14049. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
  14050. };
  14051. /**
  14052. * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
  14053. * for) or drop existing PASN security association for the listed the
  14054. * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
  14055. * to userspace.
  14056. *
  14057. * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
  14058. * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
  14059. * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
  14060. * the driver to userspace to inform that the existing PASN keys of the
  14061. * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
  14062. * not valid anymore.
  14063. */
  14064. enum qca_wlan_vendor_pasn_action {
  14065. QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
  14066. QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
  14067. };
  14068. /**
  14069. * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
  14070. * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
  14071. *
  14072. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
  14073. * event from the driver to userspace and represents the local MAC address
  14074. * to be used for PASN handshake. When this attribute is present, userspace
  14075. * shall use the source address specified in this attribute by the driver
  14076. * for PASN handshake with peer device.
  14077. * This attribute is required in a command response from userspace to the
  14078. * driver and represents the MAC address that was used in PASN handshake
  14079. * with the peer device.
  14080. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
  14081. * peer device to which PASN handshake is requested in an event from the
  14082. * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  14083. * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
  14084. * Indicates the MAC address of the peer device for which the keys are to
  14085. * be invalidated in an event from the driver to userspace when
  14086. * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  14087. * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
  14088. * Indicates the MAC address of the peer device for which the status is
  14089. * being sent in a status report from userspace to the driver.
  14090. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
  14091. * in the event from the driver to userspace. When set, userspace is
  14092. * required to derive LTF key seed from KDK and set it to the driver.
  14093. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
  14094. * attribute is used in the command response from userspace to the driver.
  14095. * If present, it indicates the successful PASN handshake with the peer. If
  14096. * this flag is not present, it indicates that the PASN handshake with the
  14097. * peer device failed.
  14098. */
  14099. enum qca_wlan_vendor_attr_pasn_peer {
  14100. QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
  14101. QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
  14102. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
  14103. QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
  14104. QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
  14105. /* keep last */
  14106. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
  14107. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
  14108. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
  14109. };
  14110. /**
  14111. * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
  14112. * QCA_NL80211_VENDOR_SUBCMD_PASN command.
  14113. *
  14114. * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
  14115. * defined in enum qca_wlan_vendor_pasn_action and used only in an event
  14116. * from the driver to userspace.
  14117. * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
  14118. * details for each peer and used in both an event and a command response.
  14119. * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
  14120. * defined in enum qca_wlan_vendor_attr_pasn_peer.
  14121. */
  14122. enum qca_wlan_vendor_attr_pasn {
  14123. QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
  14124. QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
  14125. QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
  14126. /* keep last */
  14127. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
  14128. QCA_WLAN_VENDOR_ATTR_PASN_MAX =
  14129. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
  14130. };
  14131. /**
  14132. * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
  14133. * the ranging security context derived from PASN for each peer. Used in
  14134. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
  14135. *
  14136. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
  14137. * context for the peer.
  14138. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
  14139. * context for the peer.
  14140. */
  14141. enum qca_wlan_vendor_secure_ranging_ctx_action {
  14142. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
  14143. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
  14144. };
  14145. /**
  14146. * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
  14147. * used for deriving PASN keys to the driver. Used in
  14148. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
  14149. * @QCA_WLAN_VENDOR_SHA_256: SHA-256
  14150. * @QCA_WLAN_VENDOR_SHA_384: SHA-384
  14151. */
  14152. enum qca_wlan_vendor_sha_type {
  14153. QCA_WLAN_VENDOR_SHA_256,
  14154. QCA_WLAN_VENDOR_SHA_384,
  14155. };
  14156. /**
  14157. * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
  14158. * to set security context for the PASN peer from userspace to the driver.
  14159. * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
  14160. *
  14161. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
  14162. * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
  14163. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
  14164. * was used during the PASN handshake.
  14165. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
  14166. * the peer device for which secure ranging context is being configured.
  14167. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
  14168. * hash algorithm to be used, possible values are defined in enum
  14169. * qca_wlan_vendor_sha_type.
  14170. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
  14171. * the temporal key generated from the PASN handshake. The length of this
  14172. * attribute is dependent on the value of
  14173. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
  14174. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
  14175. * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
  14176. * (e.g., 0x000FAC04).
  14177. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
  14178. * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
  14179. * The length of this attribute is dependent on the value of
  14180. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
  14181. *
  14182. */
  14183. enum qca_wlan_vendor_attr_secure_ranging_ctx {
  14184. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
  14185. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
  14186. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
  14187. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
  14188. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
  14189. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
  14190. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
  14191. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
  14192. /* keep last */
  14193. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
  14194. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
  14195. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
  14196. };
  14197. /**
  14198. * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
  14199. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
  14200. * nested attribute. The packets that match a filter will be replied with
  14201. * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
  14202. *
  14203. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
  14204. * u32 attribute. Destination IPv4 address in network byte order, the
  14205. * IPv4 packets with different address will be filtered out.
  14206. * This attribute is optional.
  14207. *
  14208. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
  14209. * Flag attribute. If it's present, indicates that
  14210. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
  14211. * address; while if not, indicates that the address is a unicast/multicast
  14212. * address.
  14213. * This attribute is optional.
  14214. *
  14215. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
  14216. * NLA_BINARY attribute, length is 16 bytes.
  14217. * Destination IPv6 address in network byte order, the IPv6 packets
  14218. * with different destination address will be filtered out.
  14219. * This attribute is optional.
  14220. *
  14221. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
  14222. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
  14223. * Packets on both IPv4 and IPv6 will be processed if both are configured.
  14224. *
  14225. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
  14226. * u16 attribute. Destination UDP port, the packets with different destination
  14227. * UDP port will be filtered out.
  14228. * This attribute is mandatory.
  14229. *
  14230. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
  14231. * u32 attribute. Represents the offset (in UDP payload) of the data
  14232. * to be matched.
  14233. * This attribute is mandatory.
  14234. *
  14235. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
  14236. * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
  14237. * Binary data that is compared bit-by-bit against the data (specified
  14238. * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
  14239. * payload, the packets don't match will be filtered out.
  14240. * This attribute is mandatory.
  14241. */
  14242. enum qca_wlan_vendor_attr_coap_offload_filter {
  14243. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
  14244. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
  14245. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
  14246. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
  14247. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
  14248. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
  14249. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
  14250. /* keep last */
  14251. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
  14252. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
  14253. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
  14254. };
  14255. /**
  14256. * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
  14257. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
  14258. *
  14259. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
  14260. * u32 attribute. Source address (in network byte order) for replying
  14261. * the matching broadcast/multicast IPv4 packets.
  14262. * This attribute is optional.
  14263. *
  14264. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
  14265. * NLA_BINARY attribute, length is 16 bytes.
  14266. * Source address (in network byte order) for replying the matching
  14267. * multicast IPv6 packets.
  14268. * This attribute is optional.
  14269. *
  14270. * For broadcast/multicast offload reply, one of
  14271. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
  14272. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
  14273. * configured according to version of the IP address(es) configured in
  14274. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
  14275. * while for unicast case, firmware will take the destination IP address
  14276. * in the received matching packet as the source address for replying.
  14277. *
  14278. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
  14279. * Nested attribute. Filter for the received UDP packets, only the matching
  14280. * packets will be replied and cached.
  14281. * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
  14282. * attributes.
  14283. * This attribute is mandatory.
  14284. *
  14285. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
  14286. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14287. * CoAP message (UDP payload) to be sent upon receiving matching packets.
  14288. * Firmware is responsible for adding any necessary protocol headers.
  14289. * This attribute is mandatory.
  14290. *
  14291. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
  14292. * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
  14293. * A cached message will be dropped by firmware if it's expired.
  14294. * This attribute is optional. A default value of 40000 will be used in the
  14295. * absence of it.
  14296. */
  14297. enum qca_wlan_vendor_attr_coap_offload_reply {
  14298. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
  14299. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
  14300. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
  14301. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
  14302. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
  14303. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
  14304. /* keep last */
  14305. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
  14306. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
  14307. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
  14308. };
  14309. /**
  14310. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
  14311. * CoAP message (UDP) transmitting on IPv4.
  14312. *
  14313. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
  14314. * u32 attribute. Source address (in network byte order) for transmitting
  14315. * packets on IPv4.
  14316. * This attribute is mandatory.
  14317. *
  14318. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
  14319. * u16 attribute. Source UDP port.
  14320. * This attribute is optional, a random port is taken if it's not present.
  14321. *
  14322. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
  14323. * u32 attribute. Destination IPv4 address (in network byte order).
  14324. * This attribute is mandatory.
  14325. *
  14326. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
  14327. * Flag attribute. If it's present, indicates that
  14328. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
  14329. * address; while if not, indicates that the address is unicast/multicast
  14330. * address.
  14331. * This attribute is optional.
  14332. *
  14333. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
  14334. * u16 attribute. Destination UDP port.
  14335. * This attribute is mandatory.
  14336. */
  14337. enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
  14338. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
  14339. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
  14340. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
  14341. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
  14342. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
  14343. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
  14344. /* keep last */
  14345. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
  14346. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
  14347. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
  14348. };
  14349. /**
  14350. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
  14351. * CoAP message (UDP) transmitting on IPv6.
  14352. *
  14353. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
  14354. * NLA_BINARY attribute, length is 16 bytes.
  14355. * Source address (in network byte order) for transmitting packets on IPv6.
  14356. * This attribute is mandatory.
  14357. *
  14358. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
  14359. * u16 attribute. Source UDP port.
  14360. * This attribute is optional, a random port is taken if it's not present.
  14361. *
  14362. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
  14363. * NLA_BINARY attribute, length is 16 bytes.
  14364. * Destination IPv6 address (in network byte order).
  14365. * This attribute is mandatory.
  14366. *
  14367. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
  14368. * u16 attribute. Destination UDP port.
  14369. * This attribute is mandatory.
  14370. */
  14371. enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
  14372. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
  14373. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
  14374. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
  14375. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
  14376. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
  14377. /* keep last */
  14378. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
  14379. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
  14380. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
  14381. };
  14382. /**
  14383. * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
  14384. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
  14385. *
  14386. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
  14387. * Nested attribute. The IPv4 source/destination address/port for offload
  14388. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
  14389. * of supported attributes.
  14390. * This attribute is optional.
  14391. *
  14392. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
  14393. * Nested attribute. The IPv6 source/destination address/port for offload
  14394. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
  14395. * of supported attributes.
  14396. * This attribute is optional.
  14397. *
  14398. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
  14399. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
  14400. * Firmware will transmit the packets on both IPv4 and IPv6 if both are
  14401. * configured.
  14402. *
  14403. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
  14404. * u32 attribute. Period in milliseconds for the periodic transmitting.
  14405. * This attribute is mandatory.
  14406. *
  14407. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
  14408. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14409. * CoAP message (UDP payload) to be periodically transmitted. Firmware
  14410. * is responsible for adding any necessary protocol headers.
  14411. * This attribute is mandatory.
  14412. */
  14413. enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
  14414. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
  14415. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
  14416. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
  14417. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
  14418. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
  14419. /* keep last */
  14420. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
  14421. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
  14422. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
  14423. };
  14424. /**
  14425. * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
  14426. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
  14427. *
  14428. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
  14429. * u64 attribute. Received time (since system booted in microseconds) of
  14430. * the cached CoAP message.
  14431. * This attribute is mandatory.
  14432. *
  14433. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
  14434. * u32 attribute. Source IPv4 address (in network byte order) of the cached
  14435. * CoAP message.
  14436. * This attribute is optional.
  14437. *
  14438. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
  14439. * NLA_BINARY attribute, length is 16 bytes.
  14440. * Source IPv6 address (in network byte order) of the cached CoAP message.
  14441. * This attribute is optional.
  14442. *
  14443. * At most and at least one of
  14444. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
  14445. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
  14446. * an entry.
  14447. *
  14448. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
  14449. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14450. * The cached CoAP message (UDP payload). If the actual message size is
  14451. * greater than the maximum size, it will be truncated and leaving only
  14452. * the first 1152 bytes.
  14453. * This attribute is mandatory.
  14454. */
  14455. enum qca_wlan_vendor_attr_coap_offload_cache_info {
  14456. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
  14457. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
  14458. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
  14459. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
  14460. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
  14461. /* keep last */
  14462. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
  14463. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
  14464. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
  14465. };
  14466. /**
  14467. * enum qca_wlan_vendor_coap_offload_action - Actions for
  14468. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14469. *
  14470. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
  14471. * Enable CoAP offload reply.
  14472. * If it's enabled, firmware will start offload processing on each suspend
  14473. * and stop on each resume.
  14474. *
  14475. * Offload reply on match works as follows:
  14476. * Reply the packets that match the filter with the given CoAP
  14477. * message (with necessary protocol headers), increase the CoAP message
  14478. * ID in the given CoAP message by one for the next use after each successful
  14479. * transmission, and try to store the information of the received packet,
  14480. * including the received time, source IP address, and CoAP message (UDP
  14481. * payload).
  14482. *
  14483. * Firmware has a limit to the maximum stored entries, it takes the source IP
  14484. * address as the key of an entry, and keeps at most one entry for each key.
  14485. * A packet won't be stored if no entry for the same key is present and the
  14486. * total number of the existing unexpired entries reaches the maximum value.
  14487. *
  14488. * If any configured item is changed, user space should disable offload reply
  14489. * first and then issue a new enable request.
  14490. *
  14491. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
  14492. * Disable CoAP offload reply and return information of any cached CoAP
  14493. * messages.
  14494. *
  14495. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
  14496. * Enable CoAP offload periodic transmitting.
  14497. * If it's enabled, firmware will start offload periodic transmitting on
  14498. * each suspend and stop on each resume.
  14499. *
  14500. * Offload periodic transmitting works as follows:
  14501. * Send the given CoAP message (with necessary protocol headers) with the given
  14502. * source/destination IP address/UDP port periodically based on the given
  14503. * period and increase the CoAP message ID in the given CoAP message by one
  14504. * for the next use after each successful transmission.
  14505. *
  14506. * If any configured item is changed, user space should disable offload
  14507. * periodic transmitting first and then issue a new enable request.
  14508. *
  14509. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
  14510. * Disable CoAP offload periodic transmitting.
  14511. *
  14512. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
  14513. * Get information of the CoAP messages cached during offload reply
  14514. * processing. The cache is cleared after retrieval.
  14515. */
  14516. enum qca_wlan_vendor_coap_offload_action {
  14517. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
  14518. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
  14519. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
  14520. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
  14521. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
  14522. };
  14523. /**
  14524. * enum qca_wlan_vendor_attr_coap_offload - Used by the
  14525. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14526. * This is used to set parameters for CoAP offload processing, or get
  14527. * cached CoAP messages from firmware.
  14528. *
  14529. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
  14530. * u32 attribute. Action to take in this vendor command.
  14531. * See enum qca_wlan_vendor_coap_offload_action for supported actions.
  14532. * This attribute is mandatory.
  14533. *
  14534. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
  14535. * u32 attribute. Represents the Request ID for the CoAP offload
  14536. * configuration, which can help to identify the user entity starting
  14537. * the CoAP offload processing and accordingly stop the respective
  14538. * ones/get the cached CoAP messages with the matching ID.
  14539. * This attribute is mandatory.
  14540. *
  14541. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
  14542. * Nested attribute. Parameters for offload reply.
  14543. * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
  14544. * supported attributes.
  14545. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14546. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
  14547. * otherwise.
  14548. *
  14549. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
  14550. * Nested attribute. Parameters for offload periodic transmitting.
  14551. * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
  14552. * supported attributes.
  14553. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
  14554. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
  14555. * otherwise.
  14556. *
  14557. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
  14558. * Array of nested attributes. Information of the cached CoAP messages,
  14559. * where each entry is taken from
  14560. * enum qca_wlan_vendor_attr_coap_offload_cache_info.
  14561. * This attribute is used for reporting the cached CoAP messages
  14562. * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14563. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
  14564. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
  14565. * cached item if this attribute is not present.
  14566. */
  14567. enum qca_wlan_vendor_attr_coap_offload {
  14568. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
  14569. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
  14570. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
  14571. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
  14572. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
  14573. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
  14574. /* keep last */
  14575. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
  14576. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
  14577. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
  14578. };
  14579. /**
  14580. * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
  14581. * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
  14582. * Service (SCS) rule.
  14583. *
  14584. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
  14585. * Represents the unique id of SCS rule to be configured.
  14586. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
  14587. * Represents the request type: add, remove, or change.
  14588. * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
  14589. * Type definitions).
  14590. *
  14591. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
  14592. * in case of add/change request type.
  14593. * Represents the output traffic identifier (TID) to be assigned to the flow
  14594. * matching the rule.
  14595. *
  14596. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
  14597. * attribute in case of add/change request type.
  14598. * Represents type of classifier parameters present in SCS rule.
  14599. * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
  14600. * Only classifier types 4 and 10 are supported for SCS.
  14601. *
  14602. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
  14603. * in case of add/change request type when classifier type is TCLAS4.
  14604. * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
  14605. *
  14606. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
  14607. * attribute in case of add/change request type when classifier type is TCLAS4
  14608. * and version attribute is IPv4.
  14609. * Represents the source IPv4 address in the rule which is to be compared
  14610. * against the source IP address in the IPv4 header.
  14611. *
  14612. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
  14613. * attribute in case of add/change request type when classifier type is TCLAS4
  14614. * and version attribute is IPv4.
  14615. * Represents the destination IPv4 address in the rule which is to be compared
  14616. * against the destination IP address in the IPv4 header.
  14617. *
  14618. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
  14619. * attribute in case of add/change request type when classifier type is TCLAS4
  14620. * and version attribute is IPv6.
  14621. * Represents the source IPv6 address in the rule which is to be compared
  14622. * against the source IP address in the IPv6 header.
  14623. *
  14624. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
  14625. * attribute in case of add/change request type when classifier type is TCLAS4
  14626. * and version attribute is IPv6.
  14627. * Represents the destination IPv6 address in the rule which is to be compared
  14628. * against the destination IP address in the IPv6 header.
  14629. *
  14630. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
  14631. * in case of add/change request type when classifier type is TCLAS4.
  14632. * Represents the source port number in the rule which is to be compared against
  14633. * the source port number in the protocol header.
  14634. *
  14635. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
  14636. * in case of add/change request type when classifier type is TCLAS4.
  14637. * Represents the destination port number in the rule which is to be compared
  14638. * against the destination port number in the protocol header.
  14639. *
  14640. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
  14641. * in case of add/change request type when classifier type is TCLAS4.
  14642. * Represents the DSCP value in the rule which is to be compared against the
  14643. * DSCP field present in the IP header.
  14644. *
  14645. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
  14646. * attribute in case of add/change request type when classifier type is TCLAS4.
  14647. * Represents the protocol/next header in the rule which is to be compared
  14648. * against the protocol/next header field present in the IPv4/IPv6 header.
  14649. *
  14650. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
  14651. * attribute of size 3 bytes present in case of add/change request type
  14652. * when classifier type is TCLAS4 and version is IPv6.
  14653. * Represents the flow label value in the rule which is to be compared against
  14654. * the flow label field present in the IPv6 header.
  14655. *
  14656. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
  14657. * attribute in case of add/change request type when classifier type is TCLAS10.
  14658. * Represents the protocol instance number in the rule.
  14659. *
  14660. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
  14661. * attribute in case of add/change request type when classifier type is TCLAS10.
  14662. * Represents the protocol/next header in the rule which is to be compared
  14663. * against the protocol/next header field present in the IPv4/IPv6 header.
  14664. *
  14665. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
  14666. * attribute of variable length present when request type is add/change and
  14667. * classifier type is TCLAS10.
  14668. * Represents the mask to be used for masking the header contents of the header
  14669. * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
  14670. * attribute.
  14671. *
  14672. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
  14673. * attribute of variable length present when request type is add/change and
  14674. * classifier type is TCLAS10.
  14675. * Represents the value to be compared against after masking the header contents
  14676. * of the header specified by the
  14677. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
  14678. * filter mask specified by the
  14679. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
  14680. *
  14681. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
  14682. * attribute.
  14683. * Represents the service class id of the configured SCS rule.
  14684. *
  14685. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
  14686. * MAC address.
  14687. * Represents the destination MAC address in the rule.
  14688. *
  14689. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
  14690. * Represents the netdevice interface index in the rule.
  14691. */
  14692. enum qca_wlan_vendor_attr_scs_rule_config {
  14693. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
  14694. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
  14695. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
  14696. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
  14697. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
  14698. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
  14699. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
  14700. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
  14701. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
  14702. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
  14703. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
  14704. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
  14705. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
  14706. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
  14707. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
  14708. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
  14709. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
  14710. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
  14711. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
  14712. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
  14713. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
  14714. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
  14715. /* Keep last */
  14716. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
  14717. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
  14718. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
  14719. };
  14720. /**
  14721. * enum qca_wlan_vendor_sar_version - This describes the current SAR version
  14722. * used in the firmware.
  14723. *
  14724. * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
  14725. * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
  14726. *
  14727. * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
  14728. * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
  14729. * each CTL group. So user can select up to 6 SAR indexes from the current CTL
  14730. * groups.
  14731. *
  14732. * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
  14733. * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
  14734. * CTL group but user can choose up to 3 SAR set index only, as the top half
  14735. * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
  14736. * the SAR index (3 to 5) is used for DBS mode.
  14737. */
  14738. enum qca_wlan_vendor_sar_version {
  14739. QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
  14740. QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
  14741. QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
  14742. QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
  14743. };
  14744. /**
  14745. * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
  14746. * CTL grouping is enabled or disabled in the firmware.
  14747. *
  14748. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
  14749. * is enabled in firmware.
  14750. *
  14751. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
  14752. * is disabled in firmware.
  14753. *
  14754. */
  14755. enum qca_wlan_vendor_sar_ctl_group_state {
  14756. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
  14757. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
  14758. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
  14759. };
  14760. /**
  14761. * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
  14762. * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
  14763. * supported by the firmware.
  14764. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
  14765. * u32 attribute. This field describes current SAR version supported by the
  14766. * firmware.
  14767. * See enum qca_wlan_vendor_sar_version for more information.
  14768. * This attribute is mandatory.
  14769. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
  14770. * u32 attribute. This field describes whether CTL groups are enabled
  14771. * or disabled in the firmware.
  14772. * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
  14773. * This attribute is optional.
  14774. */
  14775. enum qca_wlan_vendor_attr_sar_capability {
  14776. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
  14777. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
  14778. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
  14779. /* Keep last */
  14780. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
  14781. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
  14782. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
  14783. };
  14784. /**
  14785. * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
  14786. * These statistics are sent from the driver in a response when userspace
  14787. * queries to get the statistics using the operation
  14788. * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
  14789. * by the driver when the SR feature is enabled, when the driver receives
  14790. * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
  14791. *
  14792. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14793. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14794. * This represents the number of non-SRG TX opportunities.
  14795. *
  14796. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14797. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14798. * This represents the number of non-SRG PPDUs tried to transmit.
  14799. *
  14800. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14801. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14802. * This represents the number of non-SRG PPDUs successfully transmitted.
  14803. *
  14804. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14805. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14806. * This represents the number of SRG TX opportunities.
  14807. *
  14808. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14809. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14810. * This represents the number of SRG PPDUs tried to transmit.
  14811. *
  14812. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14813. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14814. * This represents the number of SRG PPDUs successfully transmitted.
  14815. */
  14816. enum qca_wlan_vendor_attr_sr_stats {
  14817. QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
  14818. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
  14819. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
  14820. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
  14821. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
  14822. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
  14823. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
  14824. /* Keep last */
  14825. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
  14826. QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
  14827. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
  14828. };
  14829. /**
  14830. * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
  14831. * Spatial Reuse feature.
  14832. *
  14833. * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
  14834. * roaming to an AP that doesn't support/supports SR feature, respectively.
  14835. *
  14836. * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
  14837. * to change in concurrent interfaces that are supported by the driver.
  14838. */
  14839. enum qca_wlan_sr_reason_code {
  14840. QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
  14841. QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
  14842. };
  14843. /**
  14844. * enum qca_wlan_sr_operation - Defines the different types of SR operations.
  14845. * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
  14846. *
  14847. * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
  14848. * driver to enable the Spatial Reuse feature. Attributes
  14849. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14850. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
  14851. * operation.
  14852. *
  14853. * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
  14854. * driver to disable the Spatial Reuse feature.
  14855. *
  14856. * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
  14857. * asynchronous event sent to userspace when the SR feature is disabled.
  14858. * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
  14859. * and sent along with the asynchronous event.
  14860. *
  14861. * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
  14862. * asynchronous event when the SR feature is enabled again after the SR feature
  14863. * was suspended by the driver earlier. The enable reason is
  14864. * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
  14865. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14866. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
  14867. *
  14868. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
  14869. * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14870. * reuse transmissions. Userspace sends this operation to the driver.
  14871. * The driver/firmware upon receiving this operation shall prohibit PSR-based
  14872. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14873. *
  14874. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
  14875. * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14876. * reuse transmissions. Userspace sends this operation to the driver.
  14877. * The driver/firmware upon receiving this operation shall allow PSR-based
  14878. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14879. *
  14880. * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
  14881. * driver to get the SR statistics and the driver sends a synchronous response
  14882. * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
  14883. * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
  14884. *
  14885. * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
  14886. * driver to clear the SR statistics and upon receiving this operation
  14887. * the driver/firmware shall clear the SR statistics.
  14888. *
  14889. * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
  14890. * driver to get the SR parameters and the driver sends the synchronous response
  14891. * with the following required attributes:
  14892. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  14893. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  14894. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  14895. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  14896. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  14897. *
  14898. * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
  14899. * asynchronous event to userspace to update any changes in SR parameters.
  14900. * The following attributes are used with this operation:
  14901. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  14902. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  14903. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  14904. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  14905. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  14906. */
  14907. enum qca_wlan_sr_operation {
  14908. QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
  14909. QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
  14910. QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
  14911. QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
  14912. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
  14913. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
  14914. QCA_WLAN_SR_OPERATION_GET_STATS = 6,
  14915. QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
  14916. QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
  14917. QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
  14918. };
  14919. /**
  14920. * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
  14921. * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
  14922. *
  14923. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
  14924. * This attribute is optionally set in response to
  14925. * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
  14926. * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
  14927. * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
  14928. * about HESIGA_Spatial_reuse_value15_allowed.
  14929. *
  14930. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
  14931. * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
  14932. * operation. This indicates whether non-SRG OBSS PD SR transmissions are
  14933. * allowed or not at non-AP STAs that are associated with the AP. If present
  14934. * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
  14935. *
  14936. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
  14937. * attribute. This attribute is used in response to
  14938. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  14939. * Min Offset field which contains an unsigned integer that is added to -82 dBm
  14940. * to generate the value of the SRG OBSS PD Min parameter.
  14941. *
  14942. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  14943. * attribute. This attribute is used in response to
  14944. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  14945. * Max Offset field which contains an unsigned integer that is added to -82 dBm
  14946. * to generate the value of the SRG OBSS PD Max parameter.
  14947. *
  14948. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  14949. * attribute. This attribute is used in response to
  14950. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
  14951. * PD Max Offset field which contains an unsigned integer that is added to -82
  14952. * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
  14953. *
  14954. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  14955. * Userspace optionally sends this attribute with
  14956. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  14957. * preferred SRG PD threshold. The driver shall send this attribute to
  14958. * userspace in SR resume event to indicate the PD threshold being used for SR.
  14959. * When there is change in SRG PD threshold (for example, due to roaming, etc.)
  14960. * the driver shall indicate the userspace the newly configured SRG PD threshold
  14961. * using an asynchronous event.
  14962. *
  14963. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  14964. * Userspace optionally sends this attribute with
  14965. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  14966. * preferred non-SRG PD threshold. The driver shall send this attribute to
  14967. * userspace in SR resume event to indicate the PD threshold being used for SR.
  14968. * When there is change in non-SRG PD threshold (for example, due to roaming,
  14969. * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
  14970. * threshold using an asynchronous event.
  14971. *
  14972. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
  14973. * values are defined in enum qca_wlan_sr_reason_code. This
  14974. * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
  14975. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
  14976. */
  14977. enum qca_wlan_vendor_attr_sr_params {
  14978. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
  14979. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
  14980. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
  14981. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
  14982. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
  14983. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
  14984. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
  14985. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
  14986. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
  14987. /* keep last */
  14988. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
  14989. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
  14990. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
  14991. };
  14992. /**
  14993. * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
  14994. * command QCA_NL80211_VENDOR_SUBCMD_SR.
  14995. *
  14996. * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
  14997. * from userspace to the driver. Possible values are defined in enum
  14998. * qca_wlan_sr_operation.
  14999. *
  15000. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
  15001. * configuration parameters. The possible attributes inside this attribute are
  15002. * defined in enum qca_wlan_vendor_attr_sr_params.
  15003. * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  15004. * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
  15005. * also in response from the driver to userspace when the response is sent for
  15006. * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
  15007. * The driver uses this attribute in asynchronous events in which the operation
  15008. * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
  15009. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
  15010. *
  15011. * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
  15012. * statistics. These attributes used inside this are defined in enum
  15013. * qca_wlan_vendor_attr_sr_stats.
  15014. * This attribute is used in response from the driver to a command in which
  15015. * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  15016. * %QCA_WLAN_SR_OPERATION_GET_STATS.
  15017. */
  15018. enum qca_wlan_vendor_attr_sr {
  15019. QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
  15020. QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
  15021. QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
  15022. QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
  15023. /* Keep last */
  15024. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
  15025. QCA_WLAN_VENDOR_ATTR_SR_MAX =
  15026. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
  15027. };
  15028. /**
  15029. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
  15030. * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
  15031. *
  15032. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
  15033. * used by the peer on the link that corresponds to the link used for sending
  15034. * the event notification.
  15035. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
  15036. * MLD MAC address of the peer.
  15037. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
  15038. * used to pass ifindex of the primary netdev.
  15039. */
  15040. enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
  15041. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
  15042. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
  15043. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
  15044. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
  15045. /* keep last */
  15046. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
  15047. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
  15048. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
  15049. };
  15050. /**
  15051. * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
  15052. * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
  15053. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
  15054. * and PSD information.
  15055. *
  15056. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
  15057. * u32. This attribute is used to indicate the start of the queried frequency
  15058. * range in MHz.
  15059. *
  15060. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
  15061. * This attribute is used to indicate the end of the queried frequency range
  15062. * in MHz.
  15063. *
  15064. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
  15065. * This attribute will contain the PSD information for a single range as
  15066. * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
  15067. * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
  15068. *
  15069. * The PSD power info (dBm/MHz) from user space should be multiplied
  15070. * by a factor of 100 when sending to the driver to preserve granularity
  15071. * up to 2 decimal places.
  15072. * Example:
  15073. * PSD power value: 10.21 dBm/MHz
  15074. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
  15075. *
  15076. * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
  15077. * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
  15078. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
  15079. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15080. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  15081. *
  15082. * The following set of attributes will be used to exchange frequency and
  15083. * corresponding PSD information for AFC between the user space and the driver.
  15084. */
  15085. enum qca_wlan_vendor_attr_afc_freq_psd_info {
  15086. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
  15087. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
  15088. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
  15089. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
  15090. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
  15091. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
  15092. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
  15093. };
  15094. /**
  15095. * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
  15096. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
  15097. * channel list and corresponding EIRP information.
  15098. *
  15099. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
  15100. * This attribute is used to indicate queried channel from
  15101. * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
  15102. *
  15103. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
  15104. * This attribute is used to configure the EIRP power info corresponding
  15105. * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
  15106. * The EIRP power info(dBm) from user space should be multiplied
  15107. * by a factor of 100 when sending to Driver to preserve granularity up to
  15108. * 2 decimal places.
  15109. * Example:
  15110. * EIRP power value: 34.23 dBm
  15111. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
  15112. *
  15113. * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
  15114. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15115. * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
  15116. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15117. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
  15118. *
  15119. * The following set of attributes will be used to exchange Channel and
  15120. * corresponding EIRP information for AFC between the user space and Driver.
  15121. */
  15122. enum qca_wlan_vendor_attr_afc_chan_eirp_info {
  15123. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
  15124. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
  15125. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
  15126. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
  15127. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
  15128. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
  15129. };
  15130. /**
  15131. * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
  15132. * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15133. * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
  15134. * channel, and EIRP related information.
  15135. *
  15136. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
  15137. * This attribute is used to indicate the operating class, as listed under
  15138. * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
  15139. *
  15140. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
  15141. * for updating the channel number and EIRP power information.
  15142. * It uses the attributes defined in
  15143. * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
  15144. *
  15145. * Operating class information packing format for
  15146. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15147. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15148. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
  15149. *
  15150. * m - Total number of operating classes.
  15151. * n, j - Number of queried channels for the corresponding operating class.
  15152. *
  15153. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15154. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15155. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15156. * .....
  15157. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15158. * ....
  15159. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15160. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15161. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15162. * ....
  15163. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15164. *
  15165. * Operating class information packing format for
  15166. * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15167. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15168. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15169. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  15170. *
  15171. * m - Total number of operating classes.
  15172. * n, j - Number of channels for the corresponding operating class.
  15173. *
  15174. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15175. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15176. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15177. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15178. * .....
  15179. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15180. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
  15181. * ....
  15182. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15183. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15184. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15185. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15186. * ....
  15187. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15188. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
  15189. *
  15190. * The following set of attributes will be used to exchange operating class
  15191. * information for AFC between the user space and the driver.
  15192. */
  15193. enum qca_wlan_vendor_attr_afc_opclass_info {
  15194. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
  15195. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
  15196. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
  15197. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
  15198. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
  15199. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
  15200. };
  15201. /**
  15202. * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
  15203. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
  15204. *
  15205. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
  15206. * driver to userspace in order to query the new AFC power values.
  15207. *
  15208. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
  15209. * complete event will be sent from the driver to userspace to indicate
  15210. * processing of the AFC response.
  15211. *
  15212. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
  15213. * will be sent from the driver to userspace to indicate last received
  15214. * AFC response data has been cleared on the AP due to invalid data
  15215. * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
  15216. *
  15217. * The following enum defines the different event types that will be
  15218. * used by the driver to help trigger corresponding AFC functionality in user
  15219. * space.
  15220. */
  15221. enum qca_wlan_vendor_afc_event_type {
  15222. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
  15223. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
  15224. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
  15225. };
  15226. /**
  15227. * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
  15228. * deployment type.
  15229. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
  15230. *
  15231. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
  15232. *
  15233. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
  15234. *
  15235. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
  15236. *
  15237. * The following enum defines different deployment modes that the AP might
  15238. * come up in. This information will be essential to retrieve deployment-type
  15239. * specific SP power values for AFC operation.
  15240. */
  15241. enum qca_wlan_vendor_afc_ap_deployment_type {
  15242. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
  15243. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
  15244. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
  15245. };
  15246. /**
  15247. * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
  15248. * indicate AFC response status.
  15249. * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
  15250. *
  15251. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
  15252. *
  15253. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
  15254. * command was not received within the expected time of the AFC expiry event
  15255. * being triggered.
  15256. *
  15257. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
  15258. * parsing error by the driver.
  15259. *
  15260. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
  15261. * error.
  15262. *
  15263. * The following enum defines the status codes that the driver will use to
  15264. * indicate whether the AFC data is valid or not.
  15265. */
  15266. enum qca_wlan_vendor_afc_evt_status_code {
  15267. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
  15268. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
  15269. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
  15270. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
  15271. };
  15272. /**
  15273. * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
  15274. * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
  15275. * support sending only a single request to the user space at a time.
  15276. *
  15277. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
  15278. * Used with event to notify the type of AFC event received.
  15279. * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
  15280. *
  15281. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
  15282. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15283. * otherwise unused.
  15284. *
  15285. * This attribute is used to indicate the AP deployment type in the AFC request.
  15286. * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
  15287. *
  15288. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
  15289. * Unique request identifier generated by the AFC client for every
  15290. * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
  15291. * The user space application is responsible for ensuring no duplicate values
  15292. * are in-flight with the server, e.g., by delaying a request, should the same
  15293. * value be received from different radios in parallel.
  15294. *
  15295. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
  15296. * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15297. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
  15298. *
  15299. * This attribute indicates the AFC spec version information. This will
  15300. * indicate the AFC version AFC client must use to query the AFC data.
  15301. * Bits 15:0 - Minor version
  15302. * Bits 31:16 - Major version
  15303. *
  15304. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
  15305. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15306. * otherwise unused.
  15307. * This attribute indicates the minimum desired power (in dBm) for
  15308. * the queried spectrum.
  15309. *
  15310. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
  15311. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15312. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15313. *
  15314. * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
  15315. * This attribute is used to indicate if there were any errors parsing the
  15316. * AFC response.
  15317. *
  15318. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
  15319. * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15320. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15321. *
  15322. * This attribute indicates the AFC response code. The AFC response codes are
  15323. * in the following categories:
  15324. * -1: General Failure.
  15325. * 0: Success.
  15326. * 100 - 199: General errors related to protocol.
  15327. * 300 - 399: Error events specific to message exchange
  15328. * for the Available Spectrum Inquiry.
  15329. *
  15330. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
  15331. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15332. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15333. *
  15334. * This attribute indicates the date until which the current response is
  15335. * valid for in UTC format.
  15336. * Date format: bits 7:0 - DD (Day 1-31)
  15337. * bits 15:8 - MM (Month 1-12)
  15338. * bits 31:16 - YYYY (Year)
  15339. *
  15340. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
  15341. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15342. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15343. *
  15344. * This attribute indicates the time until which the current response is
  15345. * valid for in UTC format.
  15346. * Time format: bits 7:0 - SS (Seconds 0-59)
  15347. * bits 15:8 - MM (Minutes 0-59)
  15348. * bits 23:16 - HH (Hours 0-23)
  15349. * bits 31:24 - Reserved
  15350. *
  15351. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
  15352. * for updating the list of frequency ranges to be queried.
  15353. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15354. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15355. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15356. * It uses the attributes defined in
  15357. * enum qca_wlan_vendor_attr_afc_freq_psd_info.
  15358. *
  15359. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
  15360. * for updating the list of operating classes and corresponding channels to be
  15361. * queried.
  15362. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15363. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15364. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15365. * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
  15366. */
  15367. enum qca_wlan_vendor_attr_afc_event {
  15368. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
  15369. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
  15370. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
  15371. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
  15372. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
  15373. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
  15374. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
  15375. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
  15376. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
  15377. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
  15378. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
  15379. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
  15380. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
  15381. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
  15382. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
  15383. };
  15384. /**
  15385. * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
  15386. * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
  15387. * will support sending only a single AFC response to the driver at a time.
  15388. *
  15389. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
  15390. * This attribute will be used to send a single Spectrum Inquiry response object
  15391. * from the 'availableSpectrumInquiryResponses' array object from the response
  15392. * JSON.
  15393. *
  15394. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
  15395. *
  15396. * This attribute indicates the period (in seconds) for which the response
  15397. * data received is valid for.
  15398. *
  15399. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
  15400. *
  15401. * This attribute indicates the request ID for which the corresponding
  15402. * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
  15403. *
  15404. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
  15405. *
  15406. * This attribute indicates the date until which the current response is
  15407. * valid for in UTC format.
  15408. * Date format: bits 7:0 - DD (Day 1-31)
  15409. * bits 15:8 - MM (Month 1-12)
  15410. * bits 31:16 - YYYY (Year)
  15411. *
  15412. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
  15413. *
  15414. * This attribute indicates the time until which the current response is
  15415. * valid for in UTC format.
  15416. * Time format: bits 7:0 - SS (Seconds 0-59)
  15417. * bits 15:8 - MM (Minutes 0-59)
  15418. * bits 23:16 - HH (Hours 0-23)
  15419. * bits 31:24 - Reserved
  15420. *
  15421. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
  15422. *
  15423. * This attribute indicates the AFC response code. The AFC response codes are
  15424. * in the following categories:
  15425. * -1: General Failure.
  15426. * 0: Success.
  15427. * 100 - 199: General errors related to protocol.
  15428. * 300 - 399: Error events specific to message exchange
  15429. * for the Available Spectrum Inquiry.
  15430. *
  15431. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
  15432. * for PSD info of all the queried frequency ranges. It uses the attributes
  15433. * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
  15434. *
  15435. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
  15436. * attributes for EIRP info of all queried operating class/channels. It uses
  15437. * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
  15438. * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
  15439. *
  15440. */
  15441. enum qca_wlan_vendor_attr_afc_response {
  15442. QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
  15443. QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
  15444. QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
  15445. QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
  15446. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
  15447. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
  15448. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
  15449. QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
  15450. QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
  15451. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
  15452. QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
  15453. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
  15454. };
  15455. /**
  15456. * enum qca_wlan_dozed_ap_state - Doze states for AP interface
  15457. *
  15458. * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
  15459. *
  15460. * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
  15461. * beaconing at higher beacon interval with Rx disabled.
  15462. */
  15463. enum qca_wlan_dozed_ap_state {
  15464. QCA_WLAN_DOZED_AP_DISABLE = 0,
  15465. QCA_WLAN_DOZED_AP_ENABLE = 1,
  15466. };
  15467. /**
  15468. * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
  15469. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
  15470. * configuration.
  15471. *
  15472. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
  15473. * Configures the doze state for an AP interface. Possible values are defined
  15474. * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
  15475. * gets triggered asynchronously to provide updated AP interface configuration.
  15476. *
  15477. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
  15478. * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
  15479. * command, which is used later to maintain synchronization between commands
  15480. * and asynchronous events.
  15481. *
  15482. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
  15483. * Used in event to indicate the next TBTT TSF timer value after applying the
  15484. * doze mode configuration. Next TBTT TSF is the time at which the AP sends
  15485. * the first beacon after entering or exiting dozed mode.
  15486. *
  15487. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
  15488. * Used with event to inform the periodicity of beacon transmission that would
  15489. * be skipped at all TBTTs in between.
  15490. */
  15491. enum qca_wlan_vendor_attr_dozed_ap {
  15492. QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
  15493. QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
  15494. QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
  15495. QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
  15496. QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
  15497. /* Keep last */
  15498. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
  15499. QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
  15500. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
  15501. };
  15502. /**
  15503. * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
  15504. * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
  15505. * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
  15506. * capture running status.
  15507. * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
  15508. * capture running status.
  15509. **/
  15510. enum qca_wlan_vendor_monitor_mode_status {
  15511. QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
  15512. QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
  15513. };
  15514. /**
  15515. * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
  15516. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
  15517. * information regarding the local packet capture over the monitor mode.
  15518. *
  15519. * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
  15520. * represents the status of the start capture commands. The values used with
  15521. * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
  15522. * is returned by the driver in the response to the command.
  15523. */
  15524. enum qca_wlan_vendor_attr_get_monitor_mode {
  15525. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
  15526. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
  15527. /* Keep last */
  15528. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
  15529. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
  15530. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
  15531. };
  15532. /**
  15533. * enum qca_wlan_vendor_link_state_op_types - Defines different types of
  15534. * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
  15535. * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
  15536. *
  15537. * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
  15538. * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
  15539. */
  15540. enum qca_wlan_vendor_link_state_op_types {
  15541. QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
  15542. QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
  15543. };
  15544. /**
  15545. * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
  15546. * links state control modes. This enum is used by
  15547. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
  15548. *
  15549. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
  15550. * by the driver.
  15551. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
  15552. * user space.
  15553. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
  15554. * desired number of MLO links to operate in active state at any given time.
  15555. * The driver will choose which MLO links should operate in the active state.
  15556. * See enum qca_wlan_vendor_link_state for active state definition.
  15557. */
  15558. enum qca_wlan_vendor_link_state_control_modes {
  15559. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
  15560. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
  15561. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
  15562. };
  15563. /**
  15564. * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
  15565. * links state operation modes. This enum is used by
  15566. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
  15567. *
  15568. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
  15569. * mode, the driver selects the operating mode of the links, without any
  15570. * guidance from the user space.
  15571. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
  15572. * operation mode the driver should select MLO links that will achieve low
  15573. * latency.
  15574. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
  15575. * throughput operation mode the driver should select MLO links that will
  15576. * achieve higher throughput.
  15577. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
  15578. * operation mode the driver should select MLO links that will achieve low
  15579. * power.
  15580. */
  15581. enum qca_wlan_vendor_link_state_operation_modes {
  15582. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
  15583. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
  15584. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
  15585. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
  15586. };
  15587. /**
  15588. * enum qca_wlan_vendor_link_state - Represents the possible link states of an
  15589. * MLO link.
  15590. *
  15591. * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not
  15592. * be used for data transmission but it can have TIDs mapped to it. It will be
  15593. * in doze state always and does not monitor the beacons.
  15594. * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be
  15595. * used for data TX/RX and monitors the beacons to check TIM bit indication.
  15596. * It may enter doze state and comes out based on the transmit data traffic and
  15597. * TIM bit indication in the beacon.
  15598. */
  15599. enum qca_wlan_vendor_link_state {
  15600. QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
  15601. QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
  15602. };
  15603. /**
  15604. * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
  15605. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
  15606. *
  15607. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
  15608. * MLO link.
  15609. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
  15610. * enum qca_wlan_vendor_link_state for possible MLO link states.
  15611. */
  15612. enum qca_wlan_vendor_attr_link_state_config {
  15613. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
  15614. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
  15615. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
  15616. /* Keep last */
  15617. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
  15618. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
  15619. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
  15620. };
  15621. /**
  15622. * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
  15623. * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
  15624. *
  15625. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
  15626. * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
  15627. * Required only in a command. Possible values for this attribute are defined in
  15628. * enum qca_wlan_vendor_link_state_op_types.
  15629. *
  15630. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
  15631. * links control mode type. Optional attribute in a command when
  15632. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15633. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15634. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15635. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15636. * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
  15637. *
  15638. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
  15639. * Indicates the state of the each MLO link affiliated with the interface.
  15640. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15641. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15642. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15643. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
  15644. * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15645. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15646. * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
  15647. *
  15648. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
  15649. * Represents the number of active state links. See enum
  15650. * qca_wlan_vendor_link_state for active state definition.
  15651. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15652. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15653. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15654. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
  15655. *
  15656. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
  15657. * links operation mode type. Optional attribute in a command when
  15658. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15659. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15660. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15661. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15662. * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
  15663. * modes.
  15664. */
  15665. enum qca_wlan_vendor_attr_mlo_link_state {
  15666. QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
  15667. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
  15668. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
  15669. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
  15670. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
  15671. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
  15672. /* keep last */
  15673. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
  15674. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
  15675. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
  15676. };
  15677. /**
  15678. * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
  15679. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15680. *
  15681. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
  15682. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15683. * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
  15684. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  15685. * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
  15686. * traffic for that link.
  15687. *
  15688. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
  15689. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15690. * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
  15691. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  15692. * that link ID in downlink traffic. Otherwise, the TID is not mapped to
  15693. * downlink traffic for that link.
  15694. */
  15695. enum qca_wlan_vendor_attr_tid_link_map_status {
  15696. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
  15697. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
  15698. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
  15699. /* keep last */
  15700. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
  15701. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
  15702. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
  15703. };
  15704. /*
  15705. * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
  15706. * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
  15707. *
  15708. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
  15709. * AP MLD address with which this TID-to-link negotiation mapping is
  15710. * established/updated.
  15711. *
  15712. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
  15713. * nested attributes containing TID-to-links mapping information. This will have
  15714. * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
  15715. * map information. If this attribute is not present the default TID-to-link
  15716. * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
  15717. * downlink traffic.
  15718. * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
  15719. */
  15720. enum qca_wlan_vendor_attr_tid_to_link_map {
  15721. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
  15722. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
  15723. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
  15724. /* keep last */
  15725. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
  15726. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
  15727. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
  15728. };
  15729. /**
  15730. * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
  15731. * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
  15732. *
  15733. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
  15734. * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
  15735. *
  15736. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
  15737. * A bitmap of the removed setup links link IDs.
  15738. */
  15739. enum qca_wlan_vendor_attr_link_reconfig {
  15740. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
  15741. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
  15742. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
  15743. /* keep last */
  15744. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
  15745. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
  15746. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1,
  15747. };
  15748. /**
  15749. * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
  15750. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
  15751. *
  15752. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
  15753. * Indicates the MLO link id on which the TDLS discovery response
  15754. * frame is to be transmitted.
  15755. */
  15756. enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
  15757. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
  15758. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
  15759. /* Keep last */
  15760. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
  15761. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
  15762. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
  15763. };
  15764. #endif