qca_vendor.h 742 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991
  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: This command is used to enable TDLS
  88. * capability or to form a session with the specified peer.
  89. * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
  90. * indicates to enable TDLS capability on the interface.
  91. * If %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is nested in
  92. * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
  93. * form a TDLS session with the specified peer MAC address.
  94. * The attributes used with this command are defined in
  95. * enum qca_wlan_vendor_attr_tdls_enable.
  96. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: This command is used to disable TDLS
  97. * capability or to terminate the session with the specified peer.
  98. * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
  99. * indicates to disable TDLS capability on the interface.
  100. * If %QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR is nested in
  101. * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
  102. * terminate TDLS session with the specified peer MAC address.
  103. * The attributes used with this command are defined in
  104. * enum qca_wlan_vendor_attr_tdls_disable.
  105. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: This command is to get the TDLS
  106. * status at the interface level or with the specific peer.
  107. * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
  108. * indicates the TDLS status query is at interface level.
  109. * If %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR is nested in
  110. * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
  111. * get TDLS session status with the specified peer MAC address.
  112. * The attributes used with this command are defined in
  113. * enum qca_wlan_vendor_attr_tdls_get_status.
  114. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: This event is to indicate the result
  115. * of the TDLS session request with the peer sent by userspace in
  116. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE.
  117. * The attributes used with this command are defined in
  118. * enum qca_wlan_vendor_attr_tdls_state.
  119. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  120. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  121. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  122. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  123. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  124. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  125. * roaming and auth information.
  126. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  127. *
  128. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  129. * invoke the ACS function in device and pass selected channels to
  130. * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
  131. *
  132. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  133. * driver.
  134. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  135. * started CAC on DFS channel
  136. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  137. * completed the CAC check on DFS channel
  138. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  139. * check was aborted by the driver
  140. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  141. * driver completed NOP
  142. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  143. * driver detected radar signal on the current operating channel
  144. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  145. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to
  146. * configure various wiphy or interface level configurations. Attributes
  147. * are defined in enum qca_wlan_vendor_attr_config. Userspace can send one
  148. * or more configuration attributes with a single command. The driver
  149. * accepts the command only if all the configurations are known, otherwise
  150. * it rejects the command. The driver returns success only if processing of
  151. * all the configurations succeeds. The driver continues to process all the
  152. * configurations even if processing of some configurations failed and
  153. * returns the last error occurred while processing the failed
  154. * configurations.
  155. *
  156. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to
  157. * get the current values of the various wiphy or interface level
  158. * configurations. Attributes are defined in enum
  159. * qca_wlan_vendor_attr_config. Userspace needs to specify the
  160. * configuration attributes for which it wants to get the values in the
  161. * command, there is no significance for the value sent in the attribute
  162. * unless explicitly specified in the corresponding configuration
  163. * attribute documentation. The driver accepts the command only if all the
  164. * configurations are known, otherwise it rejects the command. The driver
  165. * returns success only if fetching of all configuration values succeeds
  166. * and indicates the configuration values in corresponding attributes in
  167. * the response. The driver continues to process all the configurations
  168. * even if processing of some configurations failed and returns the last
  169. * error occurred while processing the failed configurations.
  170. *
  171. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  172. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  173. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  174. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  175. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  176. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  177. * extscan reset ssid hotlist
  178. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  179. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  180. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  181. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  182. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  183. * reset passpoint list
  184. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  185. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  186. * passpoint network found
  187. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  188. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  189. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  190. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  191. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  192. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  193. list
  194. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  195. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
  196. * to the host driver. This command sets the band through either
  197. * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
  198. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
  199. * refers enum qca_set_band as unsigned integer values and
  200. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
  201. * values. Also, the acceptable values for
  202. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
  203. * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
  204. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
  205. * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
  206. * implementations configure using both the attributes, the configurations
  207. * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
  208. * precedence.
  209. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  210. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  211. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  212. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  213. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  214. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  215. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  216. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  217. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  218. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  219. * start the P2P Listen Offload function in device and pass the listen
  220. * channel, period, interval, count, number of device types, device
  221. * types and vendor information elements to device driver and firmware.
  222. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  223. * indicate stop request/response of the P2P Listen Offload function in
  224. * device. As an event, it indicates either the feature stopped after it
  225. * was already running or feature has actually failed to start.
  226. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  227. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  228. * beaconing, this sub command provides the driver, the frequencies on the
  229. * 5 GHz to check for any radar activity. Driver selects one channel from
  230. * this priority list provided through
  231. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  232. * to check for radar activity on it. If no radar activity is detected
  233. * during the channel availability check period, driver internally switches
  234. * to the selected frequency of operation. If the frequency is zero, driver
  235. * internally selects a channel. The status of this conditional switch is
  236. * indicated through an event using the same sub command through
  237. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  238. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  239. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  240. * indication period and threshold for MAC layer counters.
  241. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  242. * in the host driver. The different TDLS configurations are defined
  243. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  244. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  245. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  246. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  247. * require methods to set SAR limits on TX power of WLAN/WWAN.
  248. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  249. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  250. * configuration of vendor ACS.
  251. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  252. * requisite information leading to a power save failure. The information
  253. * carried as part of this event is represented by the
  254. * enum qca_attr_chip_power_save_failure attributes.
  255. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  256. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  257. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  258. * statistics are represented by the enum qca_attr_nud_stats_get
  259. * attributes.
  260. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  261. * the BSS transition status, whether accept or reject, for a list of
  262. * candidate BSSIDs provided by the userspace. This uses the vendor
  263. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  264. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  265. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  266. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  267. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  268. * the driver shall specify array of
  269. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  270. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  271. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  272. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  273. * specific QCA module. The trace levels are represented by
  274. * enum qca_attr_trace_level attributes.
  275. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  276. * Protocol antenna limit in different modes. See enum
  277. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  278. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  279. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  280. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  281. * identifying the operation in success case. In failure cases an
  282. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  283. * describing the reason for the failure is returned.
  284. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  285. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  286. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  287. * be stopped.
  288. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  289. * specific interface. This can be used to modify some of the low level
  290. * scan parameters (off channel dwell time, home channel time) in the
  291. * driver/firmware. These parameters are maintained within the host
  292. * driver.
  293. * This command is valid only when the interface is in the connected
  294. * state.
  295. * These scan parameters shall be reset by the driver/firmware once
  296. * disconnected. The attributes used with this command are defined in
  297. * enum qca_wlan_vendor_attr_active_tos.
  298. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  299. * driver has detected an internal failure. This event carries the
  300. * information indicating the reason that triggered this detection. The
  301. * attributes for this command are defined in
  302. * enum qca_wlan_vendor_attr_hang.
  303. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  304. * of spectral parameters used. The spectral scan parameters are specified
  305. * by enum qca_wlan_vendor_attr_spectral_scan.
  306. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  307. * for spectral scan functionality. The debug stats are specified by
  308. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  309. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  310. * scan system capabilities. The capabilities are specified
  311. * by enum qca_wlan_vendor_attr_spectral_cap.
  312. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  313. * status of spectral scan. The status values are specified
  314. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  315. * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
  316. * peer pending packets. Specify the peer MAC address in
  317. * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
  318. * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
  319. * in enum qca_wlan_vendor_attr_flush_pending.
  320. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  321. * RF Operating Parameter (RROP) information. The attributes for this
  322. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  323. * intended for use by external Auto Channel Selection applications.
  324. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  325. * (SAR) power limits. This is a companion to the command
  326. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  327. * settings currently in use. The attributes returned by this command are
  328. * defined by enum qca_vendor_attr_sar_limits.
  329. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  330. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  331. * This works both as a query (user space asks the current mode) or event
  332. * interface (driver advertizing the current mode to the user space).
  333. * Driver does not trigger this event for temporary hardware mode changes.
  334. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  335. * channel change etc ) are updated with this event. Attributes for this
  336. * interface are defined in enum qca_wlan_vendor_attr_mac.
  337. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  338. * per peer per TID. Attributes for this command are define in
  339. * enum qca_wlan_set_qdepth_thresh_attr
  340. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
  341. * guide for WLAN driver. Request to suspend of driver and FW if the
  342. * temperature is higher than the suspend threshold; resume action is
  343. * requested to driver if the temperature is lower than the resume
  344. * threshold. In user poll mode, request temperature data by user. For test
  345. * purpose, getting thermal shutdown configuration parameters is needed.
  346. * Attributes for this interface are defined in
  347. * enum qca_wlan_vendor_attr_thermal_cmd.
  348. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
  349. * driver. Thermal temperature and indication of resume completion are
  350. * reported as thermal events. The attributes for this command are defined
  351. * in enum qca_wlan_vendor_attr_thermal_event.
  352. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  353. * test configuration. Attributes for this command are defined in
  354. * enum qca_wlan_vendor_attr_wifi_test_config.
  355. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  356. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  357. * carried a payload which was a binary blob of data. The command was not
  358. * extendable to send more information. The newer version carries the
  359. * legacy blob encapsulated within an attribute and can be extended with
  360. * additional vendor attributes that can enhance the NAN command
  361. * interface.
  362. * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
  363. * configure parameters per peer to capture Channel Frequency Response
  364. * (CFR) and enable Periodic CFR capture. The attributes for this command
  365. * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
  366. * can also be used to send CFR data from the driver to userspace when
  367. * netlink events are used to send CFR data.
  368. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  369. * The returned firmware state is specified in the attribute
  370. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  371. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  372. * is used by host driver to flush per-peer cached statistics to user space
  373. * application. This interface is used as an event from host driver to
  374. * user space application. Attributes for this event are specified in
  375. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  376. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  377. * sent as event from host driver.
  378. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  379. * improve the success rate of Zigbee joining network.
  380. * Due to PTA master limitation, zigbee joining network success rate is
  381. * low while wlan is working. Wlan host driver need to configure some
  382. * parameters including Zigbee state and specific WLAN periods to enhance
  383. * PTA master. All this parameters are delivered by the NetLink attributes
  384. * defined in "enum qca_mpta_helper_vendor_attr".
  385. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  386. * implement Beacon frame reporting feature.
  387. *
  388. * Userspace can request the driver/firmware to periodically report
  389. * received Beacon frames whose BSSID is same as the current connected
  390. * BSS's MAC address.
  391. *
  392. * In case the STA seamlessly (without sending disconnect indication to
  393. * userspace) roams to a different BSS, Beacon frame reporting will be
  394. * automatically enabled for the Beacon frames whose BSSID is same as the
  395. * MAC address of the new BSS. Beacon reporting will be stopped when the
  396. * STA is disconnected (when the disconnect indication is sent to
  397. * userspace) and need to be explicitly enabled by userspace for next
  398. * connection.
  399. *
  400. * When a Beacon frame matching configured conditions is received, and if
  401. * userspace has requested to send asynchronous beacon reports, the
  402. * driver/firmware will encapsulate the details of the Beacon frame in an
  403. * event and send it to userspace along with updating the BSS information
  404. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  405. * scan cache with the information from the received Beacon frame but
  406. * will not send any active report to userspace.
  407. *
  408. * The userspace can request the driver/firmware to stop reporting Beacon
  409. * frames. If the driver/firmware is not able to receive Beacon frames
  410. * due to other Wi-Fi operations such as off-channel activities, etc.,
  411. * the driver/firmware will send a pause event to userspace and stop
  412. * reporting Beacon frames. Whether the beacon reporting will be
  413. * automatically resumed or not by the driver/firmware later will be
  414. * reported to userspace using the
  415. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  416. * reporting shall be resumed for all the cases except either when
  417. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  418. * in the command which triggered the current beacon reporting or during
  419. * any disconnection case as indicated by setting
  420. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  421. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  422. * driver.
  423. *
  424. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  425. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  426. * flag not set, the next first
  427. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  428. * shall be considered as un-pause event.
  429. *
  430. * All the attributes used with this command are defined in
  431. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  432. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  433. * interop issues with the DUT. This sub command is used to transfer the
  434. * ap info between driver and user space. This works both as a command
  435. * or event. As a command, it configs the stored list of aps from user
  436. * space to firmware; as an event, it indicates the ap info detected by
  437. * firmware to user space for persistent storage. The attributes defined
  438. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  439. * parameters.
  440. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  441. * binary blobs from application/service to firmware. The attributes
  442. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  443. * deliver the parameters.
  444. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
  445. * to send/receive avoid frequency data using
  446. * enum qca_wlan_vendor_attr_avoid_frequency_ext.
  447. * This new command is alternative to existing command
  448. * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  449. * is using stream of bytes instead of structured data using vendor
  450. * attributes. User space sends unsafe frequency ranges to the driver using
  451. * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
  452. * reception of this command, the driver shall check if an interface is
  453. * operating on an unsafe frequency and the driver shall try to move to a
  454. * safe channel when needed. If the driver is not able to find a safe
  455. * channel the interface can keep operating on an unsafe channel with the
  456. * TX power limit derived based on internal configurations like
  457. * regulatory/SAR rules.
  458. *
  459. * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
  460. * add the STA node details in driver/firmware. Attributes for this event
  461. * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  462. * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
  463. * coex chain mode from application/service.
  464. * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
  465. * to deliver the parameters.
  466. * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
  467. * get information of a station from driver to userspace. This command can
  468. * be used in both STA and AP modes. For STA mode, it provides information
  469. * of the current association when in connected state or the last
  470. * association when in disconnected state. For AP mode, only information
  471. * of the currently connected stations is available. This command uses
  472. * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
  473. * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
  474. * Host drivers can request the user space entity to set the SAR power
  475. * limits with this event. Accordingly, the user space entity is expected
  476. * to set the SAR power limits. Host drivers can retry this event to the
  477. * user space for the SAR power limits configuration from user space. If
  478. * the driver does not get the SAR power limits from user space for all
  479. * the retried attempts, it can configure a default SAR power limit.
  480. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
  481. * is used to update the information about the station from the driver to
  482. * userspace. Uses attributes from enum
  483. * qca_wlan_vendor_attr_update_sta_info.
  484. *
  485. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
  486. * The host driver initiates the disconnection for scenarios such as beacon
  487. * miss, NUD failure, peer kick out, etc. The disconnection indication
  488. * through cfg80211_disconnected() expects the reason codes from enum
  489. * ieee80211_reasoncode which does not signify these various reasons why
  490. * the driver has triggered the disconnection. This event will be used to
  491. * send the driver specific reason codes by the host driver to userspace.
  492. * Host drivers should trigger this event and pass the respective reason
  493. * code immediately prior to triggering cfg80211_disconnected(). The
  494. * attributes used with this event are defined in enum
  495. * qca_wlan_vendor_attr_driver_disconnect_reason.
  496. *
  497. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
  498. * add/delete TSPEC for each AC. One command is for one specific AC only.
  499. * This command can only be used in STA mode and the STA must be
  500. * associated with an AP when the command is issued. Uses attributes
  501. * defined in enum qca_wlan_vendor_attr_config_tspec.
  502. *
  503. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
  504. * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
  505. *
  506. * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
  507. * the host driver. The band configurations obtained are referred through
  508. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
  509. *
  510. * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
  511. * assessment.
  512. * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
  513. *
  514. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  515. * used to update SSID information in hostapd when it is updated in the
  516. * driver. Uses the attribute NL80211_ATTR_SSID.
  517. *
  518. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
  519. * the driver to send opaque data from the firmware to userspace. The
  520. * driver sends an event to userspace whenever such data is received from
  521. * the firmware.
  522. *
  523. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
  524. * send this opaque data for this event.
  525. *
  526. * The format of the opaque data is specific to the particular firmware
  527. * version and there is no guarantee of the format remaining same.
  528. *
  529. * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
  530. * The host driver selects Tx VDEV, and notifies user. The attributes
  531. * used with this event are defined in enum
  532. * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
  533. * This event contains Tx VDEV group information contains other VDEVs
  534. * interface index and status information.
  535. *
  536. * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
  537. * configure the concurrent session policies when multiple interfaces
  538. * are (getting) active. The attributes used by this command are defined
  539. * in enum qca_wlan_vendor_attr_concurrent_policy.
  540. *
  541. * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
  542. * to query usable channels for different interface types such as STA,
  543. * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
  544. * channels in the response based on country code, different static
  545. * configurations, concurrency combinations, etc. The attributes used
  546. * with this command are defined in
  547. * enum qca_wlan_vendor_attr_usable_channels.
  548. *
  549. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
  550. * to get DFS radar history from the driver to userspace. The driver
  551. * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
  552. * array of nested entries.
  553. * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
  554. * enable/disable mDNS offload to the firmware. The attributes used with
  555. * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
  556. *
  557. * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
  558. * important debug events that are required for various issues. The
  559. * attributes used with this command are defined in
  560. * enum qca_wlan_vendor_attr_diag.
  561. * This command is defined for temporary usage until this interface is
  562. * moved to the existing diag infra with cnss diag events. This command
  563. * will be deprecated soon and it is not recommended to do any further
  564. * enhancements to this command.
  565. *
  566. * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
  567. * to set packet monitor mode that aims to send the specified set of TX and
  568. * RX frames on the current client interface to an active monitor interface.
  569. * If this Monitor mode is set, the driver will send the configured frames,
  570. * from the interface on which the command is issued, to an active monitor
  571. * interface. The attributes used with this command are defined in
  572. * enum qca_wlan_vendor_attr_set_monitor_mode.
  573. *
  574. * Though the monitor mode is configured for the respective data/mgmt/ctrl
  575. * frames, it is up to the respective WLAN driver/firmware/hardware designs
  576. * to consider the possibility of sending these frames over the monitor
  577. * interface. For example, the control frames are handled with in the
  578. * hardware and thus passing such frames over the monitor interface is left
  579. * to the respective designs.
  580. *
  581. * Also, this monitor mode is governed to behave accordingly in
  582. * suspend/resume states. If the firmware handles any of such frames
  583. * in suspend state without waking up the host and if the monitor mode
  584. * is configured to notify all such frames, then the firmware is expected
  585. * to resume the host and forward the respective frames to the monitor
  586. * interface. Please note that such a request to get the frames over the
  587. * monitor interface will have a definite power implications.
  588. *
  589. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
  590. * as a request to set the driver/firmware with the parameters to trigger
  591. * the roaming events, and also used by the driver/firmware to pass on the
  592. * various roam events to userspace.
  593. * Applicable only for the STA mode. The attributes used with this command
  594. * are defined in enum qca_wlan_vendor_attr_roam_events.
  595. *
  596. * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
  597. * rate mask config for a list of phy types. Userspace shall provide
  598. * an array of the vendor attributes defined in
  599. * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
  600. *
  601. * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
  602. * when two interfaces are active on the same band, using two different
  603. * home channels, and only supported by a single radio. In this scenario
  604. * the device must split the use of the radio between the two interfaces.
  605. * The percentage of time allocated to a given interface is the quota.
  606. * Depending on the configuration, the quota can either be fixed or
  607. * dynamic.
  608. *
  609. * When used as an event, the device will report the quota type, and for
  610. * all interfaces operating in MCC it will report the current quota.
  611. * When used as a command, the device can be configured for a specific
  612. * quota type, and in the case of a fixed quota, the quota to apply to one
  613. * of the interfaces.
  614. *
  615. * Applications can use the event to do TX bitrate control based on the
  616. * information, and can use the command to explicitly set the quota to
  617. * enhance performance in specific scenarios.
  618. *
  619. * The attributes used with this command are defined in
  620. * enum qca_wlan_vendor_attr_mcc_quota.
  621. *
  622. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
  623. * user space that the driver is ready for operations again after
  624. * recovering from internal failures. This occurs following a failure
  625. * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
  626. *
  627. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
  628. * get the WLAN radio combinations matrix supported by the device which
  629. * provides the device simultaneous radio configurations such as
  630. * standalone, dual band simultaneous, and single band simultaneous.
  631. *
  632. * The attributes used with this command are defined in
  633. * enum qca_wlan_vendor_attr_radio_combination_matrix.
  634. *
  635. * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
  636. * security negotiation and key generation to user space.
  637. *
  638. * When used as an event, the driver requests userspace to trigger the PASN
  639. * authentication or dropping of a PTKSA for the indicated peer devices.
  640. * When used as a command response, userspace indicates a consolidated
  641. * status report for all the peers that were requested for.
  642. *
  643. * The attributes used with this command are defined in
  644. * enum qca_wlan_vendor_attr_pasn.
  645. *
  646. * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
  647. * secure ranging context such as TK and LTF keyseed for each peer
  648. * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
  649. *
  650. * The attributes used with this command are defined in
  651. * enum qca_wlan_vendor_attr_secure_ranging_ctx.
  652. *
  653. * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
  654. * enable/disable offload processing in firmware during system/runtime
  655. * suspend for CoAP messages (see RFC7252: The Constrained Application
  656. * Protocol) and fetch information of the CoAP messages cached during
  657. * offload processing.
  658. *
  659. * The attributes used with this command are defined in
  660. * enum qca_wlan_vendor_attr_coap_offload.
  661. *
  662. * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
  663. * (add, remove, or change) a Stream Classification Service (SCS) rule.
  664. *
  665. * The attributes used with this event are defined in
  666. * enum qca_wlan_vendor_attr_scs_rule_config.
  667. *
  668. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
  669. * supported by the WLAN firmware.
  670. *
  671. * The attributes used with this command are defined in
  672. * enum qca_wlan_vendor_attr_sar_capability.
  673. *
  674. * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
  675. * (SR) feature. This command is used by userspace to configure SR
  676. * parameters to the driver and to get the SR related parameters and
  677. * statistics with synchronous responses from the driver.
  678. * The driver also uses this command to send asynchronous events to
  679. * userspace to indicate suspend/resume of SR feature and changes
  680. * in SR parameters.
  681. *
  682. * The attributes used with this command are defined in
  683. * enum qca_wlan_vendor_attr_sr.
  684. *
  685. * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
  686. * notify application layer about the primary netdev of an MLO connection.
  687. * In some implementations, MLO has multiple netdevs out of which one
  688. * netdev is designated as primary to provide a unified interface to the
  689. * bridge. In those implementations this event is sent on every MLO peer
  690. * connection. User applications on an AP MLD will use this event to get
  691. * info for all the links from non-AP MLD that were negotiated to be used
  692. * for the ML association.
  693. *
  694. * The attributes used with this event are defined in
  695. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
  696. *
  697. * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
  698. * driver to notify different AFC events to userspace. The attributes used
  699. * with this command are defined in enum qca_wlan_vendor_attr_afc_event.
  700. *
  701. * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
  702. * userspace to deliver AFC response data to driver. The attributes used
  703. * with this command are defined in enum qca_wlan_vendor_attr_afc_response.
  704. *
  705. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
  706. * operate in doze mode.
  707. *
  708. * Userspace uses this command to configure the AP interface to enter or
  709. * exit from doze mode. The driver sends this event after it enters or
  710. * exits the doze mode with the updated AP doze mode settings.
  711. *
  712. * The attributes used with this subcommand are defined in
  713. * enum qca_wlan_vendor_attr_dozed_ap.
  714. *
  715. * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
  716. * to get the status of local packet capture of monitor mode. The monitor
  717. * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
  718. * subcommand.
  719. *
  720. * The attributes used with this command are defined in enum
  721. * qca_wlan_vendor_attr_get_monitor_mode.
  722. *
  723. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
  724. * get roam information from the driver to user space. It provides the
  725. * latest several instances of roam information cached in the driver.
  726. * The command is only used for STA mode. The attributes used with this
  727. * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
  728. *
  729. * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
  730. * configure and fetch the state information of the MLO links affiliated
  731. * with the STA interface. The attributes used with this command are
  732. * defined in enum qca_wlan_vendor_attr_mlo_link_state.
  733. *
  734. * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
  735. * vendor subcommand to trigger channel utilization measurement on entire
  736. * channel width of the connected channel(s). For MLO connection, connected
  737. * channel utilization measurement shall be done on all the MLO links.
  738. * The driver may use regular scan or wideband energy detection feature
  739. * based on the hardware capability for connected channel(s) utilization
  740. * measurement. The driver indicates the connected channel(s) utilization
  741. * measurement completion as an asynchronous event with this command ID to
  742. * userspace. Upon receiving this event, userspace can use
  743. * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current
  744. * connected channel(s) and can derive the channel utilization percentage
  745. * (CU) of each 20 MHz sub-channel of the entire connected channel using
  746. * %NL80211_CMD_GET_SURVEY response.
  747. * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
  748. * This command is only used for STA mode.
  749. *
  750. * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is
  751. * used as an event to notify the userspace of TID-to-link map changes
  752. * negotiated by the driver or updated by associated AP MLD with Beacon,
  753. * Probe Response, or Action frames. The attributes used with this command
  754. * are defined in enum qca_wlan_vendor_attr_tid_to_link_map.
  755. *
  756. * Note that the attribute
  757. * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to
  758. * the current connected AP MLD address.
  759. *
  760. * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal
  761. * of STA MLD setup links due to AP MLD removing the corresponding
  762. * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup
  763. * links are removed during Multi-Link reconfiguration, the driver shall
  764. * use %NL80211_CMD_DISCONNECT instead of this command since it is a
  765. * connection drop. The attributes used with this command are defined in
  766. * enum qca_wlan_vendor_attr_link_reconfig.
  767. * Note that the attribute
  768. * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to
  769. * the current connected AP MLD address.
  770. *
  771. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure
  772. * the driver with MLO link id information on which to transmit the TDLS
  773. * discovery response frame on the configured MLO BSS link when the
  774. * local station is connected in MLO mode. This command is sent to the
  775. * driver prior to the TDLS discovery response management transmit
  776. * operation and is followed immediately by the TDLS discovery response
  777. * management frame transmit command.
  778. *
  779. * The driver saves the configured MLO link id information and uses it for
  780. * the following TDLS discovery response frame transmission on the
  781. * configured MLO BSS link and the link id information is cleared in the
  782. * driver after the TDLS discovery response frame is successfully
  783. * transmitted. This behavior is independent of the TDLS peer STA connection
  784. * mode (MLO or non-MLO).
  785. *
  786. * Uses the attributes defined in
  787. * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext.
  788. *
  789. * @QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH: This vendor subcommand is
  790. * used to configure and indicate the audio transport switch in both
  791. * command and event paths. This is used when two or more audio transports
  792. * (ex: WLAN and bluetooth) are available between peers.
  793. *
  794. * If the driver needs to perform operations like scan, connection,
  795. * roaming, RoC etc. and AP concurrency policy is set to either
  796. * QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO or
  797. * QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING, the driver sends
  798. * audio transport switch event to userspace. Userspace application upon
  799. * receiving the event, can try to switch to requested audio transport.
  800. * The userspace uses this command to send the status of transport
  801. * switching (either confirm or reject) to the driver using this
  802. * subcommand. The driver continues with the pending operation either upon
  803. * receiving the command from userspace or after waiting for timeout since
  804. * sending the event to userspace. The driver can request userspace to
  805. * switch to WLAN upon availability of WLAN audio transport once after the
  806. * concurrent operations are completed.
  807. *
  808. * Userspace can also request audio transport switch from non-WLAN to WLAN
  809. * using this subcommand to the driver. The driver can accept or reject
  810. * depending on other concurrent operations in progress. The driver returns
  811. * success if it can allow audio transport when it receives the command or
  812. * appropriate kernel error code otherwise. Userspace indicates the audio
  813. * transport switch from WLAN to non-WLAN using this subcommand and the
  814. * driver can do other concurrent operations without needing to send any
  815. * event to userspace. This subcommand is used by userspace only when the
  816. * driver advertises support for
  817. * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN.
  818. *
  819. * The attributes used with this command are defined in enum
  820. * qca_wlan_vendor_attr_audio_transport_switch.
  821. */
  822. enum qca_nl80211_vendor_subcmds {
  823. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  824. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  825. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  826. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  827. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  828. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  829. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  830. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  831. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  832. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  833. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  834. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  835. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  836. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  837. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  838. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  839. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  840. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  841. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  842. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  843. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  844. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  845. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  846. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  847. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  848. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  849. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  850. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  851. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  852. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  853. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  854. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  855. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  856. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  857. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  858. /* Get Concurrency Matrix */
  859. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  860. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  861. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  862. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  863. /* Deprecated */
  864. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  865. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  866. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  867. /* Off loaded DFS events */
  868. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  869. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  870. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  871. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  872. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  873. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  874. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  875. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  876. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  877. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  878. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  879. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  880. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  881. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  882. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  883. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  884. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  885. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  886. /* Wi-Fi Configuration subcommands */
  887. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  888. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  889. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  890. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  891. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  892. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  893. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  894. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  895. /* NS Offload enable/disable cmd */
  896. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  897. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  898. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  899. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  900. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  901. /* OCB commands */
  902. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  903. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  904. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  905. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  906. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  907. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  908. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  909. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  910. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  911. /* subcommand to get link properties */
  912. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  913. /* LFR Subnet Detection */
  914. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  915. /* DBS subcommands */
  916. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  917. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  918. /* Vendor setband command */
  919. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  920. /* Vendor scan commands */
  921. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  922. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  923. /* OTA test subcommand */
  924. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  925. /* Tx power scaling subcommands */
  926. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  927. /* Tx power scaling in db subcommands */
  928. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  929. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  930. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  931. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  932. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  933. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  934. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  935. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  936. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  937. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  938. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  939. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  940. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  941. /* FTM/indoor location subcommands */
  942. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  943. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  944. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  945. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  946. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  947. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  948. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  949. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  950. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  951. /* Encrypt/Decrypt command */
  952. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  953. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  954. /* DMG low level RF sector operations */
  955. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  956. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  957. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  958. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  959. /* Configure the TDLS mode from user space */
  960. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  961. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  962. /* Vendor abort scan command */
  963. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  964. /* Set Specific Absorption Rate(SAR) Power Limits */
  965. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  966. /* External Auto channel configuration setting */
  967. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  968. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  969. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  970. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  971. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  972. /* Set the trace level for QDF */
  973. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  974. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  975. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  976. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  977. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  978. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  979. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  980. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  981. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  982. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  983. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  984. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  985. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  986. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  987. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  988. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  989. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  990. /* Wi-Fi test configuration subcommand */
  991. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  992. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  993. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  994. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  995. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  996. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  997. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  998. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  999. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  1000. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  1001. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  1002. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  1003. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  1004. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  1005. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  1006. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  1007. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  1008. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  1009. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  1010. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  1011. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  1012. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  1013. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  1014. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  1015. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  1016. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
  1017. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  1018. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  1019. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  1020. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  1021. QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
  1022. QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
  1023. QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
  1024. QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
  1025. /* 206..212 - reserved for QCA */
  1026. QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
  1027. QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
  1028. QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
  1029. QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
  1030. QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
  1031. QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
  1032. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
  1033. QCA_NL80211_VENDOR_SUBCMD_SR = 220,
  1034. QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
  1035. QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
  1036. QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
  1037. QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
  1038. QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
  1039. QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
  1040. QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
  1041. QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
  1042. QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
  1043. QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
  1044. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
  1045. QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH = 232,
  1046. };
  1047. enum qca_wlan_vendor_tos {
  1048. QCA_WLAN_VENDOR_TOS_BK = 0,
  1049. QCA_WLAN_VENDOR_TOS_BE = 1,
  1050. QCA_WLAN_VENDOR_TOS_VI = 2,
  1051. QCA_WLAN_VENDOR_TOS_VO = 3,
  1052. };
  1053. /**
  1054. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  1055. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  1056. */
  1057. enum qca_wlan_vendor_attr_active_tos {
  1058. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  1059. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  1060. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  1061. /* Flag attribute representing the start (attribute included) or stop
  1062. * (attribute not included) of the respective TOS.
  1063. */
  1064. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  1065. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  1066. };
  1067. enum qca_wlan_vendor_hang_reason {
  1068. /* Unspecified reason */
  1069. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  1070. /* No Map for the MAC entry for the received frame */
  1071. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  1072. /* peer deletion timeout happened */
  1073. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  1074. /* peer unmap timeout */
  1075. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  1076. /* Scan request timed out */
  1077. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  1078. /* Consecutive Scan attempt failures */
  1079. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  1080. /* Unable to get the message buffer */
  1081. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  1082. /* Current command processing is timedout */
  1083. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  1084. /* Timeout for an ACK from FW for suspend request */
  1085. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  1086. /* Timeout for an ACK from FW for resume request */
  1087. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  1088. /* Transmission timeout for consecutive data frames */
  1089. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  1090. /* Timeout for the TX completion status of data frame */
  1091. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  1092. /* DXE failure for tx/Rx, DXE resource unavailability */
  1093. QCA_WLAN_HANG_DXE_FAILURE = 12,
  1094. /* WMI pending commands exceed the maximum count */
  1095. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  1096. /* Timeout for peer STA connection accept command's response from the
  1097. * FW in AP mode. This command is triggered when a STA (peer) connects
  1098. * to AP (DUT).
  1099. */
  1100. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  1101. /* Timeout for the AP connection accept command's response from the FW
  1102. * in STA mode. This command is triggered when the STA (DUT) connects
  1103. * to an AP (peer).
  1104. */
  1105. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  1106. /* Timeout waiting for the response to the MAC HW mode change command
  1107. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  1108. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  1109. * Channel Concurrency) mode.
  1110. */
  1111. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  1112. /* Timeout waiting for the response from FW to configure the MAC HW's
  1113. * mode. This operation is to configure the single/two MACs in either
  1114. * SCC/MCC/DBS mode.
  1115. */
  1116. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  1117. /* Timeout waiting for response of VDEV start command from the FW */
  1118. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  1119. /* Timeout waiting for response of VDEV restart command from the FW */
  1120. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  1121. /* Timeout waiting for response of VDEV stop command from the FW */
  1122. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  1123. /* Timeout waiting for response of VDEV delete command from the FW */
  1124. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  1125. /* Timeout waiting for response of peer all delete request command to
  1126. * the FW on a specific VDEV.
  1127. */
  1128. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  1129. /* WMI sequence mismatch between WMI command and Tx completion */
  1130. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  1131. /* Write to Device HAL register failed */
  1132. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  1133. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  1134. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  1135. /* Bus failure */
  1136. QCA_WLAN_HANG_BUS_FAILURE = 26,
  1137. /* tasklet/credit latency found */
  1138. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  1139. /* MSDU buffers received in REO error ring, exceeding certain
  1140. * threshold
  1141. */
  1142. QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
  1143. /* Vdev SM is out of sync and connect req received
  1144. * when already connected
  1145. */
  1146. QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
  1147. /* Stats request timeout */
  1148. QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
  1149. /* Leak in TX descriptor for a packet */
  1150. QCA_WLAN_HANG_TX_DESC_LEAK = 31,
  1151. /* Scheduler watchdog timeout */
  1152. QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
  1153. /* Failed to send self peer deletion cmd to firmware */
  1154. QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
  1155. /* Received del self sta without del bss */
  1156. QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
  1157. /* Recovery needed when sending flush completion to userspace */
  1158. QCA_WLAN_HANG_FLUSH_LOGS = 35,
  1159. /* Host wakeup because of page fault */
  1160. QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
  1161. };
  1162. /**
  1163. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  1164. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  1165. */
  1166. enum qca_wlan_vendor_attr_hang {
  1167. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  1168. /*
  1169. * Reason for the Hang - Represented by enum
  1170. * qca_wlan_vendor_hang_reason.
  1171. */
  1172. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  1173. /* The binary blob data associated with the hang reason specified by
  1174. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  1175. * contain the required dump to analyze the reason for the hang.
  1176. * NLA_BINARY attribute, the max size is 1024 bytes.
  1177. */
  1178. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  1179. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  1180. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  1181. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  1182. };
  1183. /**
  1184. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  1185. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  1186. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  1187. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  1188. level needs to be updated.
  1189. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  1190. * to be set.
  1191. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  1192. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  1193. */
  1194. enum qca_vendor_attr_set_trace_level {
  1195. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  1196. /*
  1197. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  1198. * attributes.
  1199. */
  1200. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  1201. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  1202. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  1203. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  1204. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  1205. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  1206. };
  1207. /**
  1208. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  1209. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  1210. * station information. The information obtained through these
  1211. * commands signify the current info in connected state and
  1212. * latest cached information during the connected state , if queried
  1213. * when in disconnected state.
  1214. *
  1215. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  1216. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  1217. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  1218. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  1219. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  1220. */
  1221. enum qca_wlan_vendor_attr_get_station {
  1222. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  1223. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  1224. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  1225. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  1226. /* keep last */
  1227. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  1228. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  1229. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  1230. };
  1231. /**
  1232. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  1233. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  1234. *
  1235. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  1236. * Used in STA mode. This attribute represents the list of channel center
  1237. * frequencies in MHz (u32) the station has learnt during the last connection
  1238. * or roaming attempt. This information shall not signify the channels for
  1239. * an explicit scan request from the user space. Host drivers can update this
  1240. * information to the user space in both connected and disconnected state.
  1241. * In the disconnected state this information shall signify the channels
  1242. * scanned in the last connection/roam attempt that lead to the disconnection.
  1243. */
  1244. enum qca_wlan_vendor_attr_update_sta_info {
  1245. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  1246. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  1247. /* keep last */
  1248. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  1249. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  1250. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  1251. };
  1252. /**
  1253. * enum qca_wlan_802_11_mode - dot11 mode
  1254. * @QCA_WLAN_802_11_MODE_11B: mode B
  1255. * @QCA_WLAN_802_11_MODE_11G: mode G
  1256. * @QCA_WLAN_802_11_MODE_11N: mode N
  1257. * @QCA_WLAN_802_11_MODE_11A: mode A
  1258. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  1259. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  1260. * @QCA_WLAN_802_11_MODE_11BE: mode BE
  1261. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  1262. */
  1263. enum qca_wlan_802_11_mode {
  1264. QCA_WLAN_802_11_MODE_11B,
  1265. QCA_WLAN_802_11_MODE_11G,
  1266. QCA_WLAN_802_11_MODE_11N,
  1267. QCA_WLAN_802_11_MODE_11A,
  1268. QCA_WLAN_802_11_MODE_11AC,
  1269. QCA_WLAN_802_11_MODE_11AX,
  1270. QCA_WLAN_802_11_MODE_11BE,
  1271. QCA_WLAN_802_11_MODE_INVALID,
  1272. };
  1273. /**
  1274. * enum qca_wlan_auth_type - Authentication key management type
  1275. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  1276. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  1277. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  1278. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  1279. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  1280. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  1281. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  1282. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  1283. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  1284. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  1285. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  1286. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  1287. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  1288. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  1289. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  1290. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  1291. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  1292. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  1293. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  1294. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  1295. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  1296. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  1297. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  1298. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  1299. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  1300. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  1301. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  1302. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  1303. */
  1304. enum qca_wlan_auth_type {
  1305. QCA_WLAN_AUTH_TYPE_INVALID,
  1306. QCA_WLAN_AUTH_TYPE_OPEN,
  1307. QCA_WLAN_AUTH_TYPE_SHARED,
  1308. QCA_WLAN_AUTH_TYPE_WPA,
  1309. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  1310. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  1311. QCA_WLAN_AUTH_TYPE_RSN,
  1312. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  1313. QCA_WLAN_AUTH_TYPE_FT,
  1314. QCA_WLAN_AUTH_TYPE_FT_PSK,
  1315. QCA_WLAN_AUTH_TYPE_SHA256,
  1316. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  1317. QCA_WLAN_AUTH_TYPE_WAI,
  1318. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  1319. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  1320. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  1321. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  1322. QCA_WLAN_AUTH_TYPE_FT_SAE,
  1323. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  1324. QCA_WLAN_AUTH_TYPE_SAE,
  1325. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  1326. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  1327. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  1328. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  1329. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  1330. QCA_WLAN_AUTH_TYPE_OWE,
  1331. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  1332. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  1333. };
  1334. /**
  1335. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  1336. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  1337. *
  1338. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  1339. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  1340. * Get the standard NL attributes Nested with this attribute.
  1341. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  1342. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  1343. * NL80211_ATTR_STA_INFO
  1344. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  1345. * Get the standard NL attributes Nested with this attribute.
  1346. * Ex : Query HT/VHT Capability advertised by the AP.
  1347. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  1348. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  1349. * Number of successful Roam attempts before a
  1350. * disconnect, Unsigned 32 bit value
  1351. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  1352. * Authentication Key Management Type used for the connected session.
  1353. * Signified by enum qca_wlan_auth_type
  1354. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  1355. * connected Session, signified by enum qca_wlan_802_11_mode
  1356. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  1357. * HS20 Indication Element
  1358. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  1359. * Status Code Corresponding to the Association Failure.
  1360. * Unsigned 32 bit value.
  1361. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  1362. * Max phy rate of remote station
  1363. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  1364. * TX packets to remote station
  1365. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  1366. * TX bytes to remote station
  1367. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  1368. * RX packets from remote station
  1369. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  1370. * RX bytes from remote station
  1371. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  1372. * Last TX rate with remote station
  1373. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1374. * Last RX rate with remote station
  1375. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1376. * Remote station enable/disable WMM
  1377. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1378. * Remote station connection mode
  1379. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1380. * Remote station AMPDU enable/disable
  1381. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1382. * Remote station TX Space-time block coding enable/disable
  1383. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1384. * Remote station RX Space-time block coding enable/disable
  1385. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1386. * Remote station channel width
  1387. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1388. * Remote station short GI enable/disable
  1389. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1390. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1391. * containing the raw information elements from Beacon frames. Represents
  1392. * the Beacon frames of the current BSS in the connected state. When queried
  1393. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1394. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1395. * disconnect reason for the last disconnection if the disconnection is
  1396. * triggered from the host driver. The values are referred from
  1397. * enum qca_disconnect_reason_codes. If the disconnect is from
  1398. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1399. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1400. * Applicable in AP mode only. It contains the raw information elements
  1401. * from assoc request frame of the given peer station. User queries with the
  1402. * mac address of peer station when it disconnects. Host driver sends
  1403. * assoc request frame of the given station. Host driver doesn't provide
  1404. * the IEs when the peer station is still in connected state.
  1405. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1406. * sending HE operation info.
  1407. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2: Attribute
  1408. * type for remote channel width greater than 160 MHz.
  1409. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION: Attribute type for
  1410. * sending EHT operation info.
  1411. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1412. *
  1413. */
  1414. enum qca_wlan_vendor_attr_get_station_info {
  1415. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1416. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1417. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1418. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1419. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1420. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1421. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1422. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1423. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1424. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1425. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1426. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1427. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1428. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1429. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1430. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1431. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1432. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1433. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1434. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1435. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1436. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1437. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1438. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1439. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1440. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1441. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1442. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1443. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1444. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1445. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1446. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1447. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1448. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1449. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1450. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1451. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1452. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1453. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1454. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1455. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2,
  1456. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION,
  1457. /* keep last */
  1458. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1459. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1460. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1461. };
  1462. /**
  1463. * qca_chip_power_save_failure_reason: Power save failure reason
  1464. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1465. * due to protocol/module.
  1466. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1467. * due to hardware
  1468. */
  1469. enum qca_chip_power_save_failure_reason {
  1470. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1471. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1472. };
  1473. /**
  1474. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1475. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1476. * information leading to the power save failure.
  1477. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1478. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1479. * represented by enum qca_chip_power_save_failure_reason
  1480. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1481. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1482. */
  1483. enum qca_attr_chip_power_save_failure {
  1484. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1485. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1486. /* keep last */
  1487. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1488. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1489. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1490. };
  1491. /* enum's to provide TDLS capabilities */
  1492. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1493. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1494. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1495. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1496. /* keep last */
  1497. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1498. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1499. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1500. };
  1501. /* Compatibility defines for previously used subcmd names.
  1502. * These values should not be used in any new implementation.
  1503. */
  1504. #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
  1505. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
  1506. enum qca_wlan_vendor_attr {
  1507. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1508. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1509. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1510. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1511. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1512. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1513. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1514. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1515. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1516. /*
  1517. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1518. * by enum qca_roaming_policy.
  1519. */
  1520. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1521. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1522. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1523. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1524. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1525. /*
  1526. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1527. * Unsigned 32-bit value.
  1528. */
  1529. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1530. /* Unsigned 32-bit value */
  1531. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1532. /* Unsigned 32-bit value */
  1533. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1534. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1535. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1536. * is deprecated. Recommendation is to use
  1537. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1538. * using both the attributes, the ones configured through
  1539. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1540. */
  1541. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1542. /* Dummy (NOP) attribute for 64 bit padding */
  1543. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1544. /*
  1545. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1546. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1547. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1548. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1549. */
  1550. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1551. /*
  1552. * Indoor location capabilities, returned by
  1553. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1554. * see enum qca_wlan_vendor_attr_loc_capa.
  1555. */
  1556. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1557. /*
  1558. * Array of nested attributes containing information about each peer
  1559. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1560. * for supported attributes for each peer.
  1561. */
  1562. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1563. /*
  1564. * Array of nested attributes containing measurement results for
  1565. * one or more peers, reported by the
  1566. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1567. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1568. * attributes.
  1569. */
  1570. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1571. /* Flag attribute for enabling or disabling responder functionality. */
  1572. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1573. /*
  1574. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1575. * command to specify the LCI report that will be sent by
  1576. * the responder during a measurement exchange. The format is
  1577. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1578. */
  1579. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1580. /*
  1581. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1582. * command to specify the location civic report that will
  1583. * be sent by the responder during a measurement exchange.
  1584. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1585. */
  1586. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1587. /*
  1588. * Session/measurement completion status code,
  1589. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1590. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1591. * see enum qca_vendor_attr_loc_session_status.
  1592. */
  1593. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1594. /*
  1595. * Initial dialog token used by responder (0 if not specified),
  1596. * unsigned 8 bit value.
  1597. */
  1598. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1599. /*
  1600. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1601. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1602. * AOA measurements are needed as part of an FTM session.
  1603. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1604. * enum qca_wlan_vendor_attr_aoa_type.
  1605. */
  1606. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1607. /*
  1608. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1609. * by indoor location measurements. Refers to the antenna
  1610. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1611. */
  1612. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1613. /*
  1614. * AOA measurement data. Its contents depends on the AOA measurement
  1615. * type and antenna array mask:
  1616. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1617. * phase of the strongest CIR path for each antenna in the measured
  1618. * array(s).
  1619. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1620. * values, phase and amplitude of the strongest CIR path for each
  1621. * antenna in the measured array(s).
  1622. */
  1623. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1624. /*
  1625. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1626. * to specify the chain number (unsigned 32 bit value) to inquire
  1627. * the corresponding antenna RSSI value */
  1628. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1629. /*
  1630. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1631. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1632. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1633. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1634. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1635. /*
  1636. * TSF timer value, unsigned 64 bit value.
  1637. * May be returned by various commands.
  1638. */
  1639. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1640. /*
  1641. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1642. * 0..127 for sector indices or 65535 as special value used to
  1643. * unlock sector selection in
  1644. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1645. */
  1646. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1647. /*
  1648. * DMG RF sector type, unsigned 8 bit value. One of the values
  1649. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1650. */
  1651. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1652. /*
  1653. * Bitmask of DMG RF modules for which information is requested. Each
  1654. * bit corresponds to an RF module with the same index as the bit
  1655. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1656. * all DMG chips currently have up to 8 RF modules.
  1657. */
  1658. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1659. /*
  1660. * Array of nested attributes where each entry is DMG RF sector
  1661. * configuration for a single RF module.
  1662. * Attributes for each entry are taken from enum
  1663. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1664. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1665. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1666. */
  1667. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1668. /*
  1669. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1670. * to report frame aggregation statistics to userspace.
  1671. */
  1672. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1673. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1674. /*
  1675. * Unsigned 8-bit value representing MBO transition reason code as
  1676. * provided by the AP used by subcommand
  1677. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1678. * specified by the userspace in the request to the driver.
  1679. */
  1680. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1681. /*
  1682. * Array of nested attributes, BSSID and status code, used by subcommand
  1683. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1684. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1685. * The userspace space specifies the list/array of candidate BSSIDs in
  1686. * the order of preference in the request. The driver specifies the
  1687. * status code, for each BSSID in the list, in the response. The
  1688. * acceptable candidates are listed in the order preferred by the
  1689. * driver.
  1690. */
  1691. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1692. /*
  1693. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1694. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1695. */
  1696. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1697. /*
  1698. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1699. * to define the number of antennas to use for BRP.
  1700. * different purpose in each ANT_LIMIT_MODE:
  1701. * DISABLE - ignored
  1702. * EFFECTIVE - upper limit to number of antennas to be used
  1703. * FORCE - exact number of antennas to be used
  1704. * unsigned 8 bit value
  1705. */
  1706. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1707. /*
  1708. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1709. * to report the corresponding antenna index to the chain RSSI value
  1710. */
  1711. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1712. /*
  1713. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1714. * to report the specific antenna EVM value (unsigned 32 bit value).
  1715. * With a determinate group of antennas, the driver specifies the
  1716. * EVM value for each antenna ID, and application extract them
  1717. * in user space.
  1718. */
  1719. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1720. /*
  1721. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1722. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1723. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1724. */
  1725. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1726. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1727. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1728. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1729. * This attribute shall consider the bitmask combinations to define
  1730. * the respective Band combinations and always takes precedence over
  1731. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1732. */
  1733. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1734. /* keep last */
  1735. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1736. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1737. };
  1738. enum qca_wlan_vendor_attr_extscan_config_params {
  1739. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1740. /* Unsigned 32-bit value */
  1741. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1742. /*
  1743. * Attributes for data used by
  1744. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1745. */
  1746. /* Unsigned 32-bit value */
  1747. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1748. = 2,
  1749. /* Unsigned 32-bit value */
  1750. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1751. = 3,
  1752. /*
  1753. * Attributes for input params used by
  1754. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1755. */
  1756. /* Unsigned 32-bit value; channel frequency */
  1757. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1758. /* Unsigned 32-bit value; dwell time in ms. */
  1759. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1760. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1761. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1762. /* Unsigned 8-bit value; channel class */
  1763. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1764. /* Unsigned 8-bit value; bucket index, 0 based */
  1765. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1766. /* Unsigned 8-bit value; band. */
  1767. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1768. /* Unsigned 32-bit value; desired period, in ms. */
  1769. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1770. /* Unsigned 8-bit value; report events semantics. */
  1771. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1772. /*
  1773. * Unsigned 32-bit value. Followed by a nested array of
  1774. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1775. */
  1776. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1777. /*
  1778. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1779. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1780. */
  1781. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1782. /* Unsigned 32-bit value; base timer period in ms. */
  1783. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1784. /*
  1785. * Unsigned 32-bit value; number of APs to store in each scan in the
  1786. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1787. */
  1788. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1789. /*
  1790. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1791. * up AP.
  1792. */
  1793. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1794. = 16,
  1795. /*
  1796. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1797. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1798. * of the array is determined by NUM_BUCKETS.
  1799. */
  1800. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1801. /*
  1802. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1803. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1804. */
  1805. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1806. /* Unsigned 8-bit value */
  1807. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1808. = 19,
  1809. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1810. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1811. = 20,
  1812. /* An array of 6 x unsigned 8-bit value */
  1813. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1814. /* Signed 32-bit value */
  1815. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1816. /* Signed 32-bit value */
  1817. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1818. /* Unsigned 32-bit value */
  1819. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1820. /*
  1821. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1822. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1823. * array is determined by NUM_AP.
  1824. */
  1825. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1826. /*
  1827. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1828. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1829. */
  1830. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1831. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1832. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1833. = 27,
  1834. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1835. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1836. = 28,
  1837. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1838. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1839. /*
  1840. * Unsigned 32-bit value; number of APs. Followed by an array of
  1841. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1842. */
  1843. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1844. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1845. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1846. = 31,
  1847. /*
  1848. * Unsigned 32-bit value. If max_period is non zero or different than
  1849. * period, then this bucket is an exponential backoff bucket.
  1850. */
  1851. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1852. /* Unsigned 32-bit value. */
  1853. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1854. /*
  1855. * Unsigned 32-bit value. For exponential back off bucket, number of
  1856. * scans to perform for a given period.
  1857. */
  1858. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1859. /*
  1860. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1861. * many scans.
  1862. */
  1863. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1864. = 35,
  1865. /*
  1866. * Attributes for data used by
  1867. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1868. */
  1869. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1870. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1871. = 36,
  1872. /*
  1873. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1874. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1875. * size of the array is determined by NUM_SSID.
  1876. */
  1877. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1878. /*
  1879. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1880. * attributes.
  1881. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1882. */
  1883. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1884. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1885. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1886. /* Unsigned 8-bit value */
  1887. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1888. /* Signed 32-bit value */
  1889. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1890. /* Signed 32-bit value */
  1891. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1892. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1893. */
  1894. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1895. /* keep last */
  1896. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1897. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1898. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1899. };
  1900. enum qca_wlan_vendor_attr_extscan_results {
  1901. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1902. /*
  1903. * Unsigned 32-bit value; must match the request Id supplied by
  1904. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1905. */
  1906. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1907. /*
  1908. * Unsigned 32-bit value; used to indicate the status response from
  1909. * firmware/driver for the vendor sub-command.
  1910. */
  1911. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1912. /*
  1913. * EXTSCAN Valid Channels attributes */
  1914. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1915. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1916. /*
  1917. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1918. * representing channel numbers.
  1919. */
  1920. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1921. /* EXTSCAN Capabilities attributes */
  1922. /* Unsigned 32-bit value */
  1923. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1924. /* Unsigned 32-bit value */
  1925. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1926. /* Unsigned 32-bit value */
  1927. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1928. = 7,
  1929. /* Unsigned 32-bit value */
  1930. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1931. = 8,
  1932. /* Signed 32-bit value */
  1933. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1934. = 9,
  1935. /* Unsigned 32-bit value */
  1936. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1937. /* Unsigned 32-bit value */
  1938. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1939. = 11,
  1940. /* Unsigned 32-bit value */
  1941. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1942. = 12,
  1943. /*
  1944. * EXTSCAN Attributes used with
  1945. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1946. */
  1947. /* Unsigned 32-bit value */
  1948. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1949. /*
  1950. * EXTSCAN attributes used with
  1951. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1952. */
  1953. /*
  1954. * An array of NUM_RESULTS_AVAILABLE x
  1955. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1956. */
  1957. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1958. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1959. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1960. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1961. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1962. /* An array of 6 x unsigned 8-bit value */
  1963. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1964. /* Unsigned 32-bit value; channel frequency in MHz */
  1965. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1966. /* Signed 32-bit value */
  1967. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1968. /* Unsigned 32-bit value */
  1969. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1970. /* Unsigned 32-bit value */
  1971. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  1972. /* Unsigned 16-bit value */
  1973. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  1974. /* Unsigned 16-bit value */
  1975. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  1976. /* Unsigned 32-bit value; size of the IE DATA blob */
  1977. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  1978. /*
  1979. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  1980. * information elements found in the beacon; this data should be a
  1981. * packed list of wifi_information_element objects, one after the
  1982. * other.
  1983. */
  1984. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  1985. /*
  1986. * Unsigned 8-bit value; set by driver to indicate more scan results are
  1987. * available.
  1988. */
  1989. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  1990. /*
  1991. * EXTSCAN attributes for
  1992. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  1993. */
  1994. /* Unsigned 8-bit value */
  1995. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  1996. /* Unsigned 32-bit value */
  1997. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  1998. /*
  1999. * EXTSCAN attributes for
  2000. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  2001. */
  2002. /*
  2003. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2004. * to indicate number of results.
  2005. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2006. * list of results.
  2007. */
  2008. /*
  2009. * EXTSCAN attributes for
  2010. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  2011. */
  2012. /* An array of 6 x unsigned 8-bit value */
  2013. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  2014. /* Unsigned 32-bit value */
  2015. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  2016. = 30,
  2017. /* Unsigned 32-bit value. */
  2018. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  2019. = 31,
  2020. /*
  2021. * A nested array of signed 32-bit RSSI values. Size of the array is
  2022. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  2023. */
  2024. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  2025. = 32,
  2026. /*
  2027. * EXTSCAN attributes used with
  2028. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  2029. */
  2030. /*
  2031. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2032. * to indicate number of extscan cached results returned.
  2033. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  2034. * the list of extscan cached results.
  2035. */
  2036. /*
  2037. * An array of NUM_RESULTS_AVAILABLE x
  2038. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  2039. */
  2040. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  2041. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  2042. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  2043. /*
  2044. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  2045. */
  2046. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  2047. /*
  2048. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2049. * to indicate number of wifi scan results/bssids retrieved by the scan.
  2050. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2051. * list of wifi scan results returned for each cached result block.
  2052. */
  2053. /*
  2054. * EXTSCAN attributes for
  2055. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  2056. */
  2057. /*
  2058. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  2059. * number of results.
  2060. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2061. * list of wifi scan results returned for each
  2062. * wifi_passpoint_match_result block.
  2063. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  2064. */
  2065. /*
  2066. * EXTSCAN attributes for
  2067. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  2068. */
  2069. /* Unsigned 32-bit value */
  2070. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  2071. = 36,
  2072. /*
  2073. * A nested array of
  2074. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  2075. * attributes. Array size =
  2076. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  2077. */
  2078. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  2079. /* Unsigned 32-bit value; network block id for the matched network */
  2080. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  2081. /*
  2082. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2083. * list of wifi scan results returned for each
  2084. * wifi_passpoint_match_result block.
  2085. */
  2086. /* Unsigned 32-bit value */
  2087. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  2088. /*
  2089. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  2090. * ANQP data in the information_element format.
  2091. */
  2092. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  2093. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2094. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  2095. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2096. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  2097. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2098. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  2099. = 43,
  2100. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2101. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  2102. = 44,
  2103. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  2104. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  2105. /* keep last */
  2106. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  2107. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  2108. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  2109. };
  2110. /**
  2111. * enum qca_vendor_interop_issues_ap_type - interop issues type
  2112. * This enum defines the valid set of values of interop issues type. These
  2113. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  2114. *
  2115. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  2116. * when the STA's Qpower feature is enabled.
  2117. */
  2118. enum qca_vendor_interop_issues_ap_type {
  2119. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  2120. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  2121. };
  2122. /**
  2123. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  2124. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  2125. *
  2126. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  2127. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  2128. * 32-bit unsigned value, The type defined in enum
  2129. * qca_vendor_interop_issues_ap_type are used.
  2130. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  2131. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  2132. * it is present and mandatory for the command but is not used for
  2133. * the event since only a single BSSID is reported in an event.
  2134. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  2135. * 6-byte MAC address. It is used within the nested
  2136. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  2137. * and without such encapsulation in the event case.
  2138. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  2139. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  2140. */
  2141. enum qca_vendor_attr_interop_issues_ap {
  2142. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  2143. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  2144. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  2145. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  2146. /* keep last */
  2147. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  2148. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  2149. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  2150. };
  2151. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  2152. enum qca_wlan_vendor_attr_ll_stats_set {
  2153. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  2154. /* Unsigned 32-bit value */
  2155. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  2156. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
  2157. /* keep last */
  2158. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  2159. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  2160. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
  2161. };
  2162. /**
  2163. * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
  2164. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
  2165. *
  2166. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
  2167. *
  2168. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
  2169. * radio statistics.
  2170. *
  2171. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
  2172. * statistics within radio statistics.
  2173. *
  2174. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
  2175. * radio statistics.
  2176. *
  2177. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
  2178. *
  2179. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
  2180. * within interface statistics.
  2181. *
  2182. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
  2183. * interface statistics.
  2184. *
  2185. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
  2186. * (min, max, avg) statistics within AC statistics.
  2187. *
  2188. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
  2189. * on this interface.
  2190. *
  2191. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
  2192. * statistics depending on the peer_mac.
  2193. */
  2194. enum qca_wlan_ll_stats_clr_req_bitmap {
  2195. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0),
  2196. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1),
  2197. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2),
  2198. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3),
  2199. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4),
  2200. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5),
  2201. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6),
  2202. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7),
  2203. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8),
  2204. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9),
  2205. };
  2206. enum qca_wlan_vendor_attr_ll_stats_clr {
  2207. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  2208. /* Unsigned 32bit bitmap for clearing statistics, specified
  2209. * in the enum qca_wlan_ll_stats_clr_req_bitmap.
  2210. */
  2211. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
  2212. /* Unsigned 8 bit value: Request to stop statistics collection */
  2213. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
  2214. /* Unsigned 32 bit bitmap: Response from the driver
  2215. * for the cleared statistics
  2216. */
  2217. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
  2218. /* Unsigned 8 bit value: Response from driver/firmware
  2219. * for the stop request
  2220. */
  2221. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
  2222. /* keep last */
  2223. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  2224. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  2225. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
  2226. };
  2227. /**
  2228. * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
  2229. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
  2230. *
  2231. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
  2232. *
  2233. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
  2234. *
  2235. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
  2236. *
  2237. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
  2238. */
  2239. enum qca_wlan_ll_stats_get_req_bitmap {
  2240. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0),
  2241. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1),
  2242. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2),
  2243. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3),
  2244. };
  2245. enum qca_wlan_vendor_attr_ll_stats_get {
  2246. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  2247. /* Unsigned 32 bit value provided by the caller issuing the GET stats
  2248. * command. When reporting the stats results, the driver uses the same
  2249. * value to indicate which GET request the results correspond to.
  2250. */
  2251. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
  2252. /* Unsigned 32 bit value - bit mask to identify what statistics are
  2253. * requested for retrieval specified in the enum
  2254. * qca_wlan_ll_stats_get_req_bitmap
  2255. */
  2256. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
  2257. /* keep last */
  2258. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  2259. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  2260. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
  2261. };
  2262. enum qca_wlan_vendor_attr_ll_stats_results {
  2263. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  2264. /*
  2265. * For Multi Link Operation (MLO) connection, per-link statistics will
  2266. * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
  2267. * cumulative statistics will be sent outside of
  2268. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
  2269. * compatibility with legacy user space. Attributes which don't have
  2270. * explicit documentation for MLO will be sent only outside of
  2271. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
  2272. * don't depend on whether the connection is MLO capable or not, e.g.,
  2273. * radio and channel specific attributes.
  2274. */
  2275. /* Unsigned 32bit value. Used by the driver; must match the request id
  2276. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  2277. */
  2278. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  2279. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2280. * the link with the best RSSI outside
  2281. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2282. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2283. */
  2284. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  2285. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2286. * the link with the best RSSI outside
  2287. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2288. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2289. */
  2290. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  2291. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2292. * the link with the best RSSI outside
  2293. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2294. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2295. */
  2296. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  2297. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2298. * the link with the best RSSI outside
  2299. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2300. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2301. */
  2302. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  2303. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2304. * the link with the best RSSI outside
  2305. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2306. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2307. */
  2308. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  2309. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2310. * the link with the best RSSI outside
  2311. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2312. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2313. */
  2314. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  2315. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2316. * the link with the best RSSI outside
  2317. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2318. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2319. */
  2320. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  2321. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  2322. * nested within the interface stats.
  2323. */
  2324. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  2325. * Type = enum wifi_interface_mode.
  2326. */
  2327. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  2328. /* Interface MAC address. An array of 6 Unsigned int8 */
  2329. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  2330. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  2331. * AUTHENTICATING, etc. valid for STA, CLI only.
  2332. */
  2333. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  2334. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  2335. */
  2336. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  2337. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  2338. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  2339. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  2340. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  2341. /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
  2342. * address of the AP. An array of 6 unsigned 8 bit values
  2343. */
  2344. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  2345. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  2346. * values.
  2347. */
  2348. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  2349. /* Country string for this association. An array of 3 unsigned 8 bit
  2350. * values.
  2351. */
  2352. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  2353. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  2354. * be nested within the interface stats.
  2355. * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2356. * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
  2357. * indicate the aggregate of all links outside
  2358. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2359. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
  2360. * indicate value of the MLO link with the best RSSI outside
  2361. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2362. * These attributes indicate the link specific value inside
  2363. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2364. */
  2365. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  2366. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  2367. /* Unsigned int 32 value corresponding to respective AC */
  2368. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2369. /* Unsigned int 32 value corresponding to respective AC */
  2370. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2371. /* Unsigned int 32 value corresponding to respective AC */
  2372. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2373. /* Unsigned int 32 value corresponding to respective AC */
  2374. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2375. /* Unsigned int 32 value corresponding to respective AC */
  2376. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2377. /* Unsigned int 32 value corresponding to respective AC */
  2378. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2379. /* Unsigned int 32 value corresponding to respective AC */
  2380. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2381. /* Unsigned int 32 value corresponding to respective AC */
  2382. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2383. /* Unsigned int 32 value corresponding to respective AC */
  2384. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2385. /* Unsigned int 32 values corresponding to respective AC */
  2386. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2387. /* Unsigned int 32 values corresponding to respective AC */
  2388. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2389. /* Unsigned int 32 values corresponding to respective AC */
  2390. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2391. /* Unsigned int 32 values corresponding to respective AC */
  2392. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2393. /* Unsigned int 32 values corresponding to respective AC */
  2394. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2395. /* Unsigned 32 bit value. Number of peers */
  2396. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2397. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  2398. * nested within the interface stats.
  2399. */
  2400. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  2401. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2402. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  2403. * 8 bit values.
  2404. */
  2405. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2406. /* Unsigned int 32 bit value representing capabilities corresponding
  2407. * to respective peer.
  2408. */
  2409. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2410. /* Unsigned 32 bit value. Number of rates */
  2411. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2412. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2413. * are nested within the rate stat.
  2414. */
  2415. /* Wi-Fi Rate - separate attributes defined for individual fields */
  2416. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  2417. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2418. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  2419. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2420. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  2421. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2422. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  2423. * in the units of 0.5 Mbps HT/VHT it would be MCS index
  2424. */
  2425. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2426. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  2427. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2428. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  2429. * nested within the peer info stats.
  2430. */
  2431. /* Unsigned int 32 bit value. Number of successfully transmitted data
  2432. * packets, i.e., with ACK received corresponding to the respective
  2433. * rate.
  2434. */
  2435. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2436. /* Unsigned int 32 bit value. Number of received data packets
  2437. * corresponding to the respective rate.
  2438. */
  2439. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2440. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  2441. * received corresponding to the respective rate.
  2442. */
  2443. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2444. /* Unsigned int 32 bit value. Total number of data packet retries for
  2445. * the respective rate.
  2446. */
  2447. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2448. /* Unsigned int 32 bit value. Total number of short data packet retries
  2449. * for the respective rate.
  2450. */
  2451. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2452. /* Unsigned int 32 bit value. Total number of long data packet retries
  2453. * for the respective rate.
  2454. */
  2455. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2456. /* Unsigned 32 bit value. This is used to indicate radio ID of the radio
  2457. * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2458. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
  2459. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
  2460. * of the MLO link.
  2461. */
  2462. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2463. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2464. * accruing over time.
  2465. */
  2466. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2467. /* Unsigned 32 bit value. Total number of msecs the radio is
  2468. * transmitting accruing over time.
  2469. */
  2470. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2471. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2472. * receive accruing over time.
  2473. */
  2474. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2475. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2476. * to all scan accruing over time.
  2477. */
  2478. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2479. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2480. * to NAN accruing over time.
  2481. */
  2482. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2483. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2484. * to GSCAN accruing over time.
  2485. */
  2486. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2487. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2488. * to roam scan accruing over time.
  2489. */
  2490. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2491. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2492. * to PNO scan accruing over time.
  2493. */
  2494. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2495. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2496. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2497. */
  2498. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2499. /* Unsigned 32 bit value. Number of channels. */
  2500. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2501. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2502. * be nested within the channel stats.
  2503. */
  2504. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2505. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2506. /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
  2507. * indicate the primary frequency of the channel when
  2508. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2509. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
  2510. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
  2511. * on which the MLO link is operating.
  2512. */
  2513. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2514. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2515. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2516. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2517. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2518. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2519. * nested within the radio stats.
  2520. */
  2521. /* Unsigned int 32 bit value representing total number of msecs the
  2522. * radio is awake on that channel accruing over time, corresponding to
  2523. * the respective channel.
  2524. */
  2525. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2526. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2527. * register is busy accruing over time corresponding to the respective
  2528. * channel.
  2529. */
  2530. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2531. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2532. /* Signifies the nested list of channel attributes
  2533. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
  2534. */
  2535. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2536. /* Signifies the nested list of peer info attributes
  2537. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
  2538. * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
  2539. * indicate on which link the peer is connected.
  2540. */
  2541. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2542. /* Signifies the nested list of rate info attributes
  2543. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2544. */
  2545. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2546. /* Signifies the nested list of wmm info attributes
  2547. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2548. */
  2549. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2550. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2551. * that more stats, e.g., peers or radio, are to follow in the next
  2552. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2553. * Otherwise, it is set to 0.
  2554. */
  2555. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2556. /* Unsigned 64 bit value. For an MLO connection, indicates the value of
  2557. * the link with the best RSSI outside
  2558. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2559. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2560. */
  2561. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2562. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2563. * the link with the best RSSI outside
  2564. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2565. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2566. */
  2567. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2568. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2569. * the link with the best RSSI outside
  2570. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2571. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2572. */
  2573. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2574. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2575. * the link with the best RSSI outside
  2576. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2577. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2578. */
  2579. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2580. /* Unsigned 32 bit value */
  2581. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2582. /* Unsigned 32 bit value */
  2583. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2584. /* Number of msecs the radio spent in transmitting for each power level
  2585. */
  2586. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2587. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2588. * the link with the best RSSI outside
  2589. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2590. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2591. */
  2592. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2593. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2594. * the link with the best RSSI outside
  2595. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2596. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2597. */
  2598. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2599. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2600. * the link with the best RSSI outside
  2601. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2602. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2603. */
  2604. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2605. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2606. * the link with the best RSSI outside
  2607. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2608. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2609. */
  2610. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2611. /* Unsigned int 32 value.
  2612. * Pending MSDUs corresponding to respective AC.
  2613. */
  2614. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
  2615. /* u32 value representing total time in milliseconds for which the radio
  2616. * is transmitting on this channel. This attribute will be nested
  2617. * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2618. */
  2619. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2620. /* u32 value representing total time in milliseconds for which the radio
  2621. * is receiving all 802.11 frames intended for this device on this
  2622. * channel. This attribute will be nested within
  2623. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2624. */
  2625. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2626. /* u8 value representing the channel load percentage. Possible values
  2627. * are 0-100.
  2628. */
  2629. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2630. /* u8 value representing the time slicing duty cycle percentage.
  2631. * Possible values are 0-100. For an MLO connection, indicates the value
  2632. * of 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_INFO_TS_DUTY_CYCLE = 87,
  2637. /* Unsigned 32 bit value. The number of Beacon frames which are received
  2638. * from the associated AP and indicate buffered unicast frame(s) for us
  2639. * in the TIM element. For an MLO connection, indicates the value of the
  2640. * link with the best RSSI outside
  2641. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2642. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2643. */
  2644. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
  2645. /* Unsigned 32 bit value. The total number of Beacon frames received
  2646. * from the associated AP that have wrongly indicated buffered unicast
  2647. * traffic in the TIM element for us.
  2648. * Below scenarios will be considered as wrong TIM element beacon:
  2649. * 1) The related TIM element is set in the beacon for STA but STA
  2650. * doesn’t receive any unicast data after this beacon.
  2651. * 2) The related TIM element is still set in the beacon for STA
  2652. * after STA has indicated power save exit by QoS Null Data frame.
  2653. * For an MLO connection, indicates the value of the link with the best
  2654. * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
  2655. * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2656. */
  2657. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
  2658. /* Signed 32 bit value. It represents the noise floor calibration value.
  2659. * Possible values are -120~-50 dBm. For an MLO connection, indicates
  2660. * the value of the link with the best RSSI outside
  2661. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2662. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2663. */
  2664. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
  2665. /* Attribute used for padding for 64-bit alignment */
  2666. QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
  2667. /* Unsigned u8 value, link ID of an MLO link. Used inside nested
  2668. * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
  2669. * link ID of the MLO link for which the statistics are embedded in the
  2670. * nested attribute. Used inside nested attribute
  2671. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
  2672. * link ID of the peer.
  2673. */
  2674. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
  2675. /* A nested array of attributes for each MLO link, each containing
  2676. * per-link statistics of a multi link connection. The attributes used
  2677. * inside this nested attribute are defined in enum
  2678. * qca_wlan_vendor_attr_ll_stats_results.
  2679. *
  2680. * For non-MLO connection, this attribute is not present and the
  2681. * statistics will be sent outside this attribute (without nesting).
  2682. *
  2683. * For MLO connection, this attribute is present and also cumulative
  2684. * statistics of all the links will be sent outside of this attribute
  2685. * to be compatible with legacy user space.
  2686. */
  2687. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
  2688. /* keep last */
  2689. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2690. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2691. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2692. };
  2693. enum qca_wlan_vendor_attr_ll_stats_type {
  2694. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2695. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2696. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2697. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2698. /* keep last */
  2699. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2700. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2701. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2702. };
  2703. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2704. /**
  2705. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2706. *
  2707. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2708. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2709. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2710. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2711. */
  2712. enum qca_wlan_vendor_attr_get_supported_features {
  2713. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2714. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2715. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2716. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2717. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2718. };
  2719. /**
  2720. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2721. *
  2722. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2723. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2724. * value
  2725. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2726. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2727. */
  2728. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2729. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2730. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2731. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2732. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2733. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2734. };
  2735. /**
  2736. * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
  2737. * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
  2738. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
  2739. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
  2740. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
  2741. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
  2742. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
  2743. */
  2744. enum qca_wlan_vendor_scan_priority {
  2745. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
  2746. QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
  2747. QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
  2748. QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
  2749. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
  2750. };
  2751. /**
  2752. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2753. *
  2754. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2755. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2756. * with frequencies to be scanned (in MHz)
  2757. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2758. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2759. * rates to be included
  2760. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2761. * at non CCK rate in 2GHz band
  2762. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2763. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2764. * driver for the specific scan request
  2765. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2766. * request decoded as in enum scan_status
  2767. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2768. * scan flag is set
  2769. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2770. * randomisation
  2771. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2772. * specific BSSID to scan for.
  2773. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2774. * microseconds. This is a common value which applies across all
  2775. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2776. * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
  2777. * other scan requests. It is a u32 attribute and takes values from enum
  2778. * qca_wlan_vendor_scan_priority. This is an optional attribute.
  2779. * If this attribute is not configured, the driver shall use
  2780. * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
  2781. */
  2782. enum qca_wlan_vendor_attr_scan {
  2783. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2784. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2785. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2786. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2787. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2788. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2789. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2790. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2791. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2792. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2793. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2794. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2795. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2796. QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
  2797. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2798. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2799. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2800. };
  2801. /**
  2802. * enum scan_status - Specifies the valid values the vendor scan attribute
  2803. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2804. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2805. * new scan results
  2806. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2807. */
  2808. enum scan_status {
  2809. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2810. VENDOR_SCAN_STATUS_ABORTED,
  2811. VENDOR_SCAN_STATUS_MAX,
  2812. };
  2813. /**
  2814. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2815. *
  2816. * NL attributes for data used by
  2817. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2818. *
  2819. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2820. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2821. * Unsigned 32-bit value
  2822. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2823. * Unsigned 32-bit value
  2824. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2825. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2826. * combinations
  2827. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2828. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2829. */
  2830. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2831. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2832. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2833. = 1,
  2834. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2835. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2836. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2837. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2838. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2839. };
  2840. /**
  2841. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2842. *
  2843. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2844. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2845. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2846. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2847. */
  2848. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2849. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2850. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2851. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2852. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2853. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2854. };
  2855. /**
  2856. * enum qca_vendor_attr_wisa_cmd
  2857. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2858. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2859. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2860. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2861. * WISA setup vendor commands
  2862. */
  2863. enum qca_vendor_attr_wisa_cmd {
  2864. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2865. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2866. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2867. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2868. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2869. };
  2870. enum qca_roaming_policy {
  2871. QCA_ROAMING_NOT_ALLOWED,
  2872. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2873. };
  2874. /**
  2875. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2876. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2877. *
  2878. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2879. * reasons.
  2880. *
  2881. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2882. * the configured threshold.
  2883. *
  2884. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2885. * beacon misses from the then connected AP.
  2886. *
  2887. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2888. * by the connected AP.
  2889. *
  2890. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2891. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2892. * not poor.
  2893. *
  2894. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2895. * or environment being very noisy / congested.
  2896. *
  2897. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2898. * from the user (user space).
  2899. *
  2900. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2901. * connected AP.
  2902. *
  2903. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2904. * breaching out the configured threshold.
  2905. *
  2906. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2907. * transition request.
  2908. *
  2909. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2910. * there is no data activity with the AP and the current rssi falls below a
  2911. * certain threshold.
  2912. *
  2913. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2914. * deauthentication or disassociation frames received from the connected AP.
  2915. *
  2916. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2917. * scan that happens when there is no candidate AP found during the poor
  2918. * RSSI scan trigger.
  2919. *
  2920. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2921. * results obtained from an external scan (not aimed at roaming).
  2922. *
  2923. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2924. * connection is established when the station is connected in 2.4 Ghz band.
  2925. *
  2926. * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
  2927. * failures to the connected AP.
  2928. */
  2929. enum qca_roam_reason {
  2930. QCA_ROAM_REASON_UNKNOWN,
  2931. QCA_ROAM_REASON_PER,
  2932. QCA_ROAM_REASON_BEACON_MISS,
  2933. QCA_ROAM_REASON_POOR_RSSI,
  2934. QCA_ROAM_REASON_BETTER_RSSI,
  2935. QCA_ROAM_REASON_CONGESTION,
  2936. QCA_ROAM_REASON_USER_TRIGGER,
  2937. QCA_ROAM_REASON_BTM,
  2938. QCA_ROAM_REASON_BSS_LOAD,
  2939. QCA_ROAM_REASON_WTC,
  2940. QCA_ROAM_REASON_IDLE,
  2941. QCA_ROAM_REASON_DISCONNECTION,
  2942. QCA_ROAM_REASON_PERIODIC_TIMER,
  2943. QCA_ROAM_REASON_BACKGROUND_SCAN,
  2944. QCA_ROAM_REASON_BT_ACTIVITY,
  2945. QCA_ROAM_REASON_STA_KICKOUT,
  2946. };
  2947. /**
  2948. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2949. *
  2950. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2951. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2952. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2953. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2954. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2955. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2956. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2957. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2958. * Indicates the status of re-association requested by user space for
  2959. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2960. * Type u16.
  2961. * Represents the status code from AP. Use
  2962. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2963. * real status code for failures.
  2964. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2965. * This attribute indicates that the old association was maintained when
  2966. * a re-association is requested by user space and that re-association
  2967. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2968. * remain associated with the BSS with which the association was in
  2969. * place when being requested to roam). Used along with
  2970. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2971. * re-association status. Type flag.
  2972. * This attribute is applicable only for re-association failure cases.
  2973. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  2974. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  2975. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  2976. * seq number
  2977. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  2978. * representing the reasons for the roaming. Defined by enum
  2979. * qca_roam_reason.
  2980. */
  2981. enum qca_wlan_vendor_attr_roam_auth {
  2982. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  2983. /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
  2984. * of the roamed AP for MLO roaming.
  2985. */
  2986. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  2987. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  2988. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  2989. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  2990. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  2991. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  2992. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  2993. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  2994. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  2995. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  2996. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  2997. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  2998. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  2999. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  3000. /* A nested attribute containing per-link information of all the links
  3001. * of MLO connection done while roaming. The attributes used inside this
  3002. * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
  3003. */
  3004. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
  3005. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  3006. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  3007. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  3008. };
  3009. /**
  3010. * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
  3011. * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
  3012. *
  3013. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
  3014. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
  3015. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
  3016. */
  3017. enum qca_wlan_vendor_attr_mlo_links {
  3018. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
  3019. QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
  3020. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
  3021. QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
  3022. /* Keep last */
  3023. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
  3024. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
  3025. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
  3026. };
  3027. /**
  3028. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  3029. *
  3030. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  3031. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  3032. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  3033. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  3034. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  3035. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  3036. */
  3037. enum qca_wlan_vendor_attr_wifi_config {
  3038. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  3039. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  3040. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  3041. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  3042. /* keep last */
  3043. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  3044. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  3045. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  3046. };
  3047. /**
  3048. * enum qca_wlan_epno_type - the type of request to the EPNO command
  3049. * @QCA_WLAN_EPNO: epno type request
  3050. * @QCA_WLAN_PNO: pno type request
  3051. */
  3052. enum qca_wlan_epno_type {
  3053. QCA_WLAN_EPNO,
  3054. QCA_WLAN_PNO
  3055. };
  3056. /**
  3057. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  3058. *
  3059. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  3060. *
  3061. * NL attributes for data used by
  3062. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  3063. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  3064. * Unsigned 32-bit value; pno passpoint number of networks
  3065. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  3066. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  3067. * attributes. Array size =
  3068. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  3069. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  3070. * Unsigned 32-bit value; network id
  3071. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  3072. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  3073. * realm, 0 if unspecified.
  3074. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  3075. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  3076. * to match, 0 if unspecified.
  3077. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  3078. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  3079. * unspecified.
  3080. *
  3081. * NL attributes for data used by
  3082. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  3083. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  3084. * Unsigned 32-bit value; set pno number of networks
  3085. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  3086. * Array of nested
  3087. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  3088. * attributes. Array size =
  3089. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  3090. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  3091. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  3092. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  3093. * Signed 8-bit value; threshold for considering this SSID as found,
  3094. * required granularity for this threshold is 4dBm to 8dBm
  3095. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  3096. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  3097. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  3098. * Unsigned 8-bit value; auth bit field for matching WPA IE
  3099. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  3100. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  3101. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  3102. * Nested attribute to send the channel list
  3103. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  3104. * Unsigned 32-bit value; indicates the Interval between PNO scan
  3105. * cycles in msec
  3106. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  3107. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  3108. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  3109. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  3110. * This attribute is obsolete now.
  3111. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  3112. * Signed 32-bit value; the maximum score that a network
  3113. * can have before bonuses
  3114. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  3115. * Signed 32-bit value; only report when there is a network's
  3116. * score this much higher han the current connection
  3117. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  3118. * Signed 32-bit value; score bonus for all networks with
  3119. * the same network flag
  3120. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  3121. * Signed 32-bit value; score bonus for networks that are not open
  3122. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  3123. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  3124. * 5GHz networks
  3125. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  3126. * Unsigned 32-bit value, representing the PNO Request ID
  3127. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  3128. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  3129. */
  3130. enum qca_wlan_vendor_attr_pno_config_params {
  3131. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  3132. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  3133. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  3134. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  3135. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  3136. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  3137. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  3138. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  3139. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  3140. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  3141. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  3142. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  3143. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  3144. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  3145. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  3146. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  3147. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  3148. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  3149. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  3150. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  3151. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  3152. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  3153. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  3154. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  3155. /* keep last */
  3156. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  3157. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  3158. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  3159. };
  3160. /**
  3161. * enum qca_scan_freq_list_type: Frequency list types
  3162. *
  3163. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  3164. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3165. * a preferred frequency list for roaming.
  3166. *
  3167. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  3168. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3169. * a specific frequency list for roaming.
  3170. */
  3171. enum qca_scan_freq_list_type {
  3172. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  3173. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  3174. };
  3175. /**
  3176. * enum qca_roam_scan_scheme: scan scheme
  3177. *
  3178. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  3179. * Indicates the driver to not scan on a Roam Trigger scenario, but
  3180. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  3181. * disconnect from the current connected AP by notifying a failure
  3182. * code in the BTM response.
  3183. *
  3184. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  3185. * trigger partial frequency scans. These frequencies are the ones learnt
  3186. * or maintained by the driver based on the probability of finding the
  3187. * BSSID's in the ESS for which the roaming is triggered.
  3188. *
  3189. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  3190. * trigger the scan on all the valid frequencies to find the better
  3191. * candidates to roam.
  3192. */
  3193. enum qca_roam_scan_scheme {
  3194. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  3195. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  3196. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  3197. };
  3198. /**
  3199. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  3200. *
  3201. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  3202. * List of frequencies in MHz to be considered for a roam scan.
  3203. *
  3204. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  3205. * Type of frequency list scheme being configured/gotten as defined by the
  3206. * enum qca_scan_freq_list_type.
  3207. */
  3208. enum qca_vendor_attr_scan_freq_list_scheme {
  3209. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  3210. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  3211. /* keep last */
  3212. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  3213. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  3214. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  3215. };
  3216. /*
  3217. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  3218. *
  3219. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  3220. * a bad packet error rates (PER).
  3221. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  3222. * based on beacon misses from the connected AP.
  3223. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  3224. * due to poor RSSI of the connected AP.
  3225. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  3226. * upon finding a BSSID with a better RSSI than the connected BSSID.
  3227. * Also, set if the roam has to be triggered due to the high RSSI of the
  3228. * current connected AP (better than
  3229. * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of
  3230. * the current BSSID need not be poor.
  3231. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  3232. * by triggering a periodic scan to find a better AP to roam.
  3233. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  3234. * when the connected channel environment is too noisy/congested.
  3235. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  3236. * when BTM Request frame is received from the connected AP.
  3237. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  3238. * when the channel utilization is goes above the configured threshold.
  3239. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  3240. * based on the request from the user (space).
  3241. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  3242. * device receives Deauthentication/Disassociation frame from connected
  3243. * AP.
  3244. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  3245. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  3246. * is determined to be a poor one.
  3247. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  3248. * based on continuous TX Data Frame failures to the connected AP.
  3249. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  3250. * based on the scan results obtained from an external scan (not
  3251. * triggered to aim roaming)
  3252. *
  3253. * Set the corresponding roam trigger reason bit to consider it for roam
  3254. * trigger.
  3255. * Userspace can set multiple bits and send to the driver. The driver shall
  3256. * consider all of them to trigger/initiate a roam scan.
  3257. */
  3258. enum qca_vendor_roam_triggers {
  3259. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  3260. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  3261. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  3262. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  3263. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  3264. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  3265. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  3266. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  3267. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  3268. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  3269. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  3270. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  3271. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  3272. };
  3273. /*
  3274. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  3275. * fail reasons. This enum value is used in
  3276. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  3277. *
  3278. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  3279. * able to trigger the scan.
  3280. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  3281. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  3282. * scan.
  3283. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  3284. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  3285. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  3286. * status code.
  3287. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  3288. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  3289. * frame.
  3290. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  3291. * with error status code.
  3292. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  3293. * received.
  3294. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  3295. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  3296. * frame.
  3297. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  3298. * internally before transmission.
  3299. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  3300. * Request frame.
  3301. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  3302. * dropped internally.
  3303. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  3304. * times out.
  3305. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  3306. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  3307. * internally.
  3308. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  3309. * M2 frame.
  3310. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  3311. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  3312. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  3313. * internally.
  3314. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  3315. * frame.
  3316. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  3317. * started for final beacon miss case.
  3318. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  3319. * received from the AP during roaming handoff.
  3320. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  3321. * or host is suspended and gives the indication of the last roamed AP only
  3322. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  3323. * progress, this ongoing roaming is aborted and the last roamed AP is
  3324. * indicated to host.
  3325. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  3326. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  3327. * out.
  3328. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  3329. * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
  3330. * current network conditions are fine.
  3331. */
  3332. enum qca_vendor_roam_fail_reasons {
  3333. QCA_ROAM_FAIL_REASON_NONE = 0,
  3334. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  3335. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  3336. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  3337. QCA_ROAM_FAIL_REASON_HOST = 4,
  3338. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  3339. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  3340. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  3341. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  3342. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  3343. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  3344. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  3345. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  3346. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  3347. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  3348. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  3349. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  3350. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  3351. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  3352. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  3353. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  3354. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  3355. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  3356. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  3357. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  3358. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  3359. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  3360. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  3361. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  3362. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  3363. QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
  3364. };
  3365. /*
  3366. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  3367. * invoke fail reasons. This enum value is used in
  3368. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  3369. *
  3370. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  3371. * in roam invoke command.
  3372. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  3373. * enabled.
  3374. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  3375. * length is invalid.
  3376. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  3377. * in progress.
  3378. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  3379. * of the AP in the roam invoke command to firmware. This reason is sent by the
  3380. * firmware when the given AP is configured to be ignored or SSID/security
  3381. * does not match.
  3382. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  3383. * firmware internal reasons.
  3384. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  3385. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  3386. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  3387. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  3388. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  3389. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  3390. */
  3391. enum qca_vendor_roam_invoke_fail_reasons {
  3392. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  3393. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  3394. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  3395. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  3396. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  3397. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  3398. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  3399. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  3400. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  3401. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  3402. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  3403. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  3404. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  3405. };
  3406. /**
  3407. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  3408. *
  3409. * Each attribute carries a weightage in percentage (%).
  3410. *
  3411. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  3412. * Represents the weightage to be given for the RSSI selection
  3413. * criteria among other parameters.
  3414. *
  3415. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  3416. * Represents the weightage to be given for the rate selection
  3417. * criteria among other parameters.
  3418. *
  3419. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  3420. * Represents the weightage to be given for the band width selection
  3421. * criteria among other parameters.
  3422. *
  3423. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  3424. * Represents the weightage to be given for the band selection
  3425. * criteria among other parameters.
  3426. *
  3427. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  3428. * Represents the weightage to be given for the NSS selection
  3429. * criteria among other parameters.
  3430. *
  3431. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  3432. * Represents the weightage to be given for the channel congestion
  3433. * selection criteria among other parameters.
  3434. *
  3435. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  3436. * Represents the weightage to be given for the beamforming selection
  3437. * criteria among other parameters.
  3438. *
  3439. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  3440. * Represents the weightage to be given for the OCE selection
  3441. * criteria among other parameters.
  3442. */
  3443. enum qca_vendor_attr_roam_candidate_selection_criteria {
  3444. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  3445. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  3446. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  3447. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  3448. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  3449. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  3450. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  3451. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  3452. /* keep last */
  3453. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  3454. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  3455. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  3456. };
  3457. /**
  3458. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  3459. * The following attributes are used to set/get/clear the respective
  3460. * configurations to/from the driver.
  3461. * For the get, the attribute for the configuration to be queried shall
  3462. * carry any of its acceptable values to the driver. In return, the driver
  3463. * shall send the configured values within the same attribute to the user
  3464. * space.
  3465. *
  3466. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  3467. * Signifies to enable/disable roam control in driver.
  3468. * 1-enable, 0-disable
  3469. * Enable: Mandates the driver to do the further roams using the
  3470. * configuration parameters set through
  3471. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  3472. * Disable: Disables the driver/firmware roaming triggered through
  3473. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  3474. * expected to continue with the default configurations.
  3475. *
  3476. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  3477. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  3478. * Roam control status is obtained through this attribute.
  3479. *
  3480. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  3481. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  3482. * is to be cleared in the driver.
  3483. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  3484. * and shall be ignored if used with other sub commands.
  3485. * If this attribute is specified along with subcmd
  3486. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  3487. * all other attributes, if there are any.
  3488. * If this attribute is not specified when the subcmd
  3489. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  3490. * clear the data corresponding to the attributes specified.
  3491. *
  3492. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  3493. * list of frequencies and its type, represented by
  3494. * enum qca_vendor_attr_scan_freq_list_scheme.
  3495. * Frequency list and its type are mandatory for this attribute to set
  3496. * the frequencies.
  3497. * Frequency type is mandatory for this attribute to get the frequencies
  3498. * and the frequency list is obtained through
  3499. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  3500. * Frequency list type is mandatory for this attribute to clear the
  3501. * frequencies.
  3502. *
  3503. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  3504. * Carries the value of scan period in seconds to set.
  3505. * The value of scan period is obtained with the same attribute for get.
  3506. * Clears the scan period in the driver when specified with clear command.
  3507. * Scan period is the idle time in seconds between each subsequent
  3508. * channel scans.
  3509. *
  3510. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  3511. * Carries the value of full scan period in seconds to set.
  3512. * The value of full scan period is obtained with the same attribute for
  3513. * get.
  3514. * Clears the full scan period in the driver when specified with clear
  3515. * command. Full scan period is the idle period in seconds between two
  3516. * successive full channel roam scans.
  3517. *
  3518. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  3519. * Carries a bitmap of the roam triggers specified in
  3520. * enum qca_vendor_roam_triggers.
  3521. * The driver shall enable roaming by enabling corresponding roam triggers
  3522. * based on the trigger bits sent with this attribute.
  3523. * If this attribute is not configured, the driver shall proceed with
  3524. * default behavior.
  3525. * The bitmap configured is obtained with the same attribute for get.
  3526. * Clears the bitmap configured in driver when specified with clear
  3527. * command.
  3528. *
  3529. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3530. * weightage in percentage (%) to be given for each selection criteria.
  3531. * Different roam candidate selection criteria are represented by
  3532. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3533. * The driver shall select the roam candidate based on corresponding
  3534. * candidate selection scores sent.
  3535. *
  3536. * An empty nested attribute is used to indicate that no specific
  3537. * preference score/criteria is configured (i.e., to disable this mechanism
  3538. * in the set case and to show that the mechanism is disabled in the get
  3539. * case).
  3540. *
  3541. * Userspace can send multiple attributes out of this enum to the driver.
  3542. * Since this attribute represents the weight/percentage of preference for
  3543. * the respective selection criteria, it is preferred to configure 100%
  3544. * total weightage. The value in each attribute or cumulative weight of the
  3545. * values in all the nested attributes should not exceed 100%. The driver
  3546. * shall reject such configuration.
  3547. *
  3548. * If the weights configured through this attribute are less than 100%,
  3549. * the driver shall honor the weights (x%) passed for the corresponding
  3550. * selection criteria and choose/distribute rest of the weight (100-x)%
  3551. * for the other selection criteria, based on its internal logic.
  3552. *
  3553. * The selection criteria configured is obtained with the same
  3554. * attribute for get.
  3555. *
  3556. * Clears the selection criteria configured in the driver when specified
  3557. * with clear command.
  3558. *
  3559. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3560. * Represents value of scan frequency scheme from
  3561. * enum qca_roam_scan_scheme.
  3562. *
  3563. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3564. * signifying the RSSI threshold of the current connected AP, indicating
  3565. * the driver to trigger roam only when the current connected AP's RSSI
  3566. * is lesser than this threshold.
  3567. *
  3568. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3569. * signifying the RSSI threshold of the candidate AP, indicating
  3570. * the driver to trigger roam only to the candidate AP with RSSI
  3571. * better than this threshold. If RSSI thresholds for candidate APs found
  3572. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3573. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3574. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3575. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3576. * will take precedence over the value configured using
  3577. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3578. *
  3579. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3580. * user triggered reason code to be sent to the AP in response to AP's
  3581. * request to trigger the roam if the roaming cannot be triggered.
  3582. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3583. *
  3584. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3585. * Carries a bitmap of the roam triggers specified in
  3586. * enum qca_vendor_roam_triggers.
  3587. * Represents the roam triggers for which the specific scan scheme from
  3588. * enum qca_roam_scan_scheme has to be applied.
  3589. * It's an optional attribute. If this attribute is not configured, but
  3590. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3591. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3592. * all the roams.
  3593. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3594. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3595. * driver shall proceed with the default behavior.
  3596. *
  3597. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3598. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3599. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3600. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3601. * threshold. Optional attribute. If this attribute is not included, then
  3602. * threshold value specified by the
  3603. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3604. *
  3605. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3606. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3607. * band. The driver/firmware shall trigger roaming to the candidate AP
  3608. * found in 5GHz band only if it's RSSI value is better than this
  3609. * threshold. Optional attribute. If this attribute is not included, then
  3610. * threshold value specified by the
  3611. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3612. *
  3613. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3614. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3615. * band. The driver/firmware shall trigger roaming to the candidate AP
  3616. * found in 6GHz band only if it's RSSI value is better than this
  3617. * threshold. Optional attribute. If this attribute is not included, then
  3618. * threshold value specified by the
  3619. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3620. *
  3621. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3622. * Carries bitmask value of bits from &enum qca_set_band and represents
  3623. * all the bands in which roaming is allowed. The configuration is valid
  3624. * until next disconnection. If this attribute is not present, the
  3625. * existing configuration shall be used. By default, roaming is allowed
  3626. * on all bands supported by local device. When the value is set to
  3627. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3628. *
  3629. * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
  3630. * Optional parameter. RX link speed threshold to disable roaming.
  3631. * If the current RX link speed is above the threshold, roaming is not
  3632. * needed. If this attribute is not configured, or if it is set to 0, the
  3633. * driver will not consider the RX link speed in the roaming decision.
  3634. *
  3635. * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
  3636. * Optional parameter. This configuration delays hand-off (in msec) by the
  3637. * specified duration to receive pending rx frames from current BSS.
  3638. *
  3639. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
  3640. * value.
  3641. * During the roam scan, if there are no desired APs found in the partial
  3642. * frequency list, an immediate full scan on all the supported frequencies
  3643. * is initiated as a fallback. This flag controls the frequency list
  3644. * creation for the full scan on the following lines.
  3645. * 1 - Full scan to exclude the frequencies that were already scanned by
  3646. * the previous partial scan.
  3647. * 0 - Full scan to include all the supported frequencies irrespective of
  3648. * the ones part of the earlier partial scan.
  3649. * If this flag is not specified, a full scan shall include all the
  3650. * supported frequencies irrespective of the ones part of an earlier
  3651. * partial scan.
  3652. *
  3653. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
  3654. * value.
  3655. * During the roam scan, if there are no desired APs found in the partial
  3656. * frequency list, an immediate full scan on all the supported frequencies
  3657. * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
  3658. * frequencies, including all PSC frequencies by default. This attribute
  3659. * controls the inclusion of the 6 GHz PSC frequencies for the full scan
  3660. * as following.
  3661. * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
  3662. * prior discovery of any 6 GHz frequency support in the environment.
  3663. * This discovery can happen through a prior RNR, 11k neighbor
  3664. * request, 11v BTM request, host scan, etc.
  3665. * 0 - Default behavior. Full scan to include all the supported 6 GHz
  3666. * PSC frequencies regardless of whether 6 GHz BSSs have been
  3667. * discovered.
  3668. * The default behavior if this flag is not specified is to include all
  3669. * the supported 6 GHz PSC frequencies in the roam full scan.
  3670. *
  3671. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value.
  3672. * This attribute signifies the RSSI offset that is added to low RSSI
  3673. * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply
  3674. * high RSSI threshold. STA is expected to trigger roam if the current
  3675. * connected AP's RSSI gets above this high RSSI threshold. STA's roam
  3676. * attempt on high RSSI threshold aims to find candidates from other
  3677. * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID
  3678. * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI
  3679. * for 2.4 GHz BSS).
  3680. */
  3681. enum qca_vendor_attr_roam_control {
  3682. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3683. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3684. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3685. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3686. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3687. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3688. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3689. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3690. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3691. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3692. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3693. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3694. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3695. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3696. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3697. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3698. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3699. QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
  3700. QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
  3701. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
  3702. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
  3703. QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31,
  3704. /* keep last */
  3705. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3706. QCA_ATTR_ROAM_CONTROL_MAX =
  3707. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3708. };
  3709. /**
  3710. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3711. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3712. *
  3713. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3714. * Represents the different roam sub commands referred by
  3715. * enum qca_wlan_vendor_roaming_subcmd.
  3716. *
  3717. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3718. * Represents the Request ID for the specific set of commands.
  3719. * This also helps to map specific set of commands to the respective
  3720. * ID / client. e.g., helps to identify the user entity configuring the
  3721. * Blacklist BSSID and accordingly clear the respective ones with the
  3722. * matching ID.
  3723. *
  3724. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3725. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3726. *
  3727. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3728. * to carry the list of Whitelist SSIDs.
  3729. *
  3730. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3731. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3732. * represent the list of SSIDs to which the firmware/driver can consider
  3733. * to roam to.
  3734. *
  3735. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3736. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3737. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3738. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3739. *
  3740. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3741. * value, RSSI threshold above which 5GHz RSSI is favored.
  3742. *
  3743. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3744. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3745. *
  3746. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3747. * value, factor by which 5GHz RSSI is boosted.
  3748. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3749. *
  3750. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3751. * value, factor by which 5GHz RSSI is penalized.
  3752. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3753. *
  3754. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3755. * value, maximum boost that can be applied to a 5GHz RSSI.
  3756. *
  3757. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3758. * value, boost applied to current BSSID to ensure the currently
  3759. * associated BSSID is favored so as to prevent ping-pong situations.
  3760. *
  3761. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3762. * value, RSSI below which "Alert" roam is enabled.
  3763. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3764. * because the RSSI is low, or because many successive beacons have been
  3765. * lost or other bad link conditions.
  3766. *
  3767. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3768. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3769. * firmware is hunting for a better BSSID or white listed SSID even though
  3770. * the RSSI of the link is good. The parameters enabling the roaming are
  3771. * configured through the PARAM_A_BAND_XX attrbutes.
  3772. *
  3773. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3774. * represents the BSSIDs preferred over others while evaluating them
  3775. * for the roaming.
  3776. *
  3777. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3778. * 32-bit value. Represents the number of preferred BSSIDs set.
  3779. *
  3780. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3781. * address representing the BSSID to be preferred.
  3782. *
  3783. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3784. * 32-bit value, representing the modifier to be applied to the RSSI of
  3785. * the BSSID for the purpose of comparing it with other roam candidate.
  3786. *
  3787. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3788. * represents the BSSIDs to get blacklisted for roaming.
  3789. *
  3790. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3791. * 32-bit value, represents the number of blacklisted BSSIDs.
  3792. *
  3793. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3794. * address representing the Blacklisted BSSID.
  3795. *
  3796. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3797. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3798. * select this BSSID in the worst case (when no other BSSIDs are better).
  3799. *
  3800. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3801. * set/get/clear the roam control config as
  3802. * defined @enum qca_vendor_attr_roam_control.
  3803. *
  3804. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3805. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3806. */
  3807. enum qca_wlan_vendor_attr_roaming_config_params {
  3808. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3809. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3810. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3811. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3812. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3813. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3814. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3815. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3816. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3817. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3818. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3819. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3820. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3821. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3822. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3823. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3824. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3825. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3826. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3827. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3828. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3829. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3830. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3831. /* keep last */
  3832. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3833. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3834. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3835. };
  3836. /**
  3837. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3838. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3839. *
  3840. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3841. * configure the white list SSIDs. These are configured through
  3842. * the following attributes.
  3843. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3844. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3845. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3846. *
  3847. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3848. * configure the Roam params. These parameters are evaluated on the extscan
  3849. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3850. * params.
  3851. *
  3852. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3853. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3854. * to enable/disable Lazy roam.
  3855. *
  3856. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3857. * preference. Contains the attribute
  3858. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3859. * preference.
  3860. *
  3861. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3862. *
  3863. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3864. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3865. * set the same.
  3866. *
  3867. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3868. * roam control config to the driver with the attribute
  3869. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3870. *
  3871. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3872. * roam control config from driver with the attribute
  3873. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3874. * For the get, the attribute for the configuration to be queried shall
  3875. * carry any of its acceptable value to the driver. In return, the driver
  3876. * shall send the configured values within the same attribute to the user
  3877. * space.
  3878. *
  3879. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3880. * roam control config in the driver with the attribute
  3881. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3882. * The driver shall continue with its default roaming behavior when data
  3883. * corresponding to an attribute is cleared.
  3884. */
  3885. enum qca_wlan_vendor_roaming_subcmd {
  3886. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3887. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3888. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3889. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3890. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3891. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3892. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3893. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3894. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3895. };
  3896. /**
  3897. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3898. *
  3899. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3900. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3901. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3902. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3903. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3904. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3905. */
  3906. enum qca_wlan_vendor_attr_get_wifi_info {
  3907. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3908. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3909. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3910. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3911. /* KEEP LAST */
  3912. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3913. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3914. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3915. };
  3916. enum qca_wlan_vendor_attr_logger_results {
  3917. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3918. /*
  3919. * Unsigned 32-bit value; must match the request Id supplied by
  3920. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3921. */
  3922. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3923. /*
  3924. * Unsigned 32-bit value; used to indicate the size of memory
  3925. * dump to be allocated.
  3926. */
  3927. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3928. /* keep last */
  3929. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3930. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3931. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3932. };
  3933. /**
  3934. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3935. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3936. */
  3937. enum qca_wlan_vendor_channel_prop_flags {
  3938. /* Bits 0, 1, 2, and 3 are reserved */
  3939. /* Turbo channel */
  3940. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3941. /* CCK channel */
  3942. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3943. /* OFDM channel */
  3944. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3945. /* 2.4 GHz spectrum channel. */
  3946. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3947. /* 5 GHz spectrum channel */
  3948. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3949. /* Only passive scan allowed */
  3950. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3951. /* Dynamic CCK-OFDM channel */
  3952. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3953. /* GFSK channel (FHSS PHY) */
  3954. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3955. /* Radar found on channel */
  3956. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3957. /* 11a static turbo channel only */
  3958. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3959. /* Half rate channel */
  3960. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3961. /* Quarter rate channel */
  3962. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3963. /* HT 20 channel */
  3964. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3965. /* HT 40 with extension channel above */
  3966. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3967. /* HT 40 with extension channel below */
  3968. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3969. /* HT 40 intolerant */
  3970. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3971. /* VHT 20 channel */
  3972. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  3973. /* VHT 40 with extension channel above */
  3974. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  3975. /* VHT 40 with extension channel below */
  3976. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  3977. /* VHT 80 channel */
  3978. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  3979. /* HT 40 intolerant mark bit for ACS use */
  3980. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  3981. /* Channel temporarily blocked due to noise */
  3982. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  3983. /* VHT 160 channel */
  3984. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  3985. /* VHT 80+80 channel */
  3986. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  3987. /* HE 20 channel */
  3988. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  3989. /* HE 40 with extension channel above */
  3990. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  3991. /* HE 40 with extension channel below */
  3992. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  3993. /* HE 40 intolerant */
  3994. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
  3995. };
  3996. /**
  3997. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  3998. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  3999. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  4000. */
  4001. enum qca_wlan_vendor_channel_prop_flags_2 {
  4002. /* HE 40 intolerant mark bit for ACS use */
  4003. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  4004. /* HE 80 channel */
  4005. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  4006. /* HE 160 channel */
  4007. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  4008. /* HE 80+80 channel */
  4009. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  4010. };
  4011. /**
  4012. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  4013. * each channel. This is used by
  4014. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  4015. */
  4016. enum qca_wlan_vendor_channel_prop_flags_ext {
  4017. /* Radar found on channel */
  4018. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  4019. /* DFS required on channel */
  4020. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  4021. /* DFS required on channel for 2nd band of 80+80 */
  4022. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  4023. /* If channel has been checked for DFS */
  4024. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  4025. /* Excluded in 802.11d */
  4026. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  4027. /* Channel Switch Announcement received on this channel */
  4028. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  4029. /* Ad-hoc is not allowed */
  4030. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  4031. /* Station only channel */
  4032. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  4033. /* DFS radar history for slave device (STA mode) */
  4034. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  4035. /* DFS CAC valid for slave device (STA mode) */
  4036. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  4037. };
  4038. /**
  4039. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  4040. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  4041. * information to start/stop the NUD statistics collection.
  4042. */
  4043. enum qca_attr_nud_stats_set {
  4044. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  4045. /*
  4046. * Flag to start/stop the NUD statistics collection.
  4047. * Start - If included, Stop - If not included
  4048. */
  4049. QCA_ATTR_NUD_STATS_SET_START = 1,
  4050. /* IPv4 address of the default gateway (in network byte order) */
  4051. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  4052. /*
  4053. * Represents the data packet type to be monitored.
  4054. * Host driver tracks the stats corresponding to each data frame
  4055. * represented by these flags.
  4056. * These data packets are represented by
  4057. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  4058. */
  4059. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  4060. /* keep last */
  4061. QCA_ATTR_NUD_STATS_SET_LAST,
  4062. QCA_ATTR_NUD_STATS_SET_MAX =
  4063. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  4064. };
  4065. /**
  4066. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  4067. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4068. * information to start / stop the NUD stats collection.
  4069. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  4070. * Bitmap to Flag to Start / Stop the NUD stats collection
  4071. * Start - If included , Stop - If not included
  4072. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
  4073. * IPv4 address of Default Gateway (in network byte order)
  4074. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4075. * information to start / stop the NUD stats collection.
  4076. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  4077. * Flag to Start / Stop the NUD stats collection
  4078. * Start - If included , Stop - If not included
  4079. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
  4080. * IPv4 address of Default Gateway (in network byte order)
  4081. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4082. * information to start / stop the NUD stats collection.
  4083. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  4084. * Flag to Start / Stop the NUD stats collection
  4085. * Start - If included , Stop - If not included
  4086. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
  4087. * IPv4 address of Default Gateway (in network byte order)
  4088. */
  4089. enum qca_attr_connectivity_check_stats_set {
  4090. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  4091. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  4092. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  4093. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  4094. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  4095. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  4096. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  4097. /* keep last */
  4098. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  4099. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  4100. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  4101. };
  4102. /**
  4103. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  4104. * data types for which the stats have to get collected.
  4105. */
  4106. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  4107. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  4108. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  4109. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  4110. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  4111. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  4112. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  4113. * to represent the stats of respective data type.
  4114. */
  4115. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  4116. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  4117. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  4118. };
  4119. enum qca_attr_connectivity_check_stats {
  4120. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  4121. /* Data packet type for which the stats are collected.
  4122. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  4123. */
  4124. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  4125. /* ID corresponding to the DNS frame for which the respective DNS stats
  4126. * are monitored (u32).
  4127. */
  4128. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  4129. /* source / destination port on which the respective proto stats are
  4130. * collected (u32).
  4131. */
  4132. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  4133. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  4134. /* IPv4/IPv6 address for which the destined data packets are
  4135. * monitored. (in network byte order)
  4136. */
  4137. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  4138. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  4139. /* Data packet Request count received from netdev */
  4140. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  4141. /* Data packet Request count sent to lower MAC from upper MAC */
  4142. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  4143. /* Data packet Request count received by lower MAC from upper MAC */
  4144. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  4145. /* Data packet Request count successfully transmitted by the device */
  4146. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  4147. /* Data packet Response count received by lower MAC */
  4148. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  4149. /* Data packet Response count received by upper MAC */
  4150. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  4151. /* Data packet Response count delivered to netdev */
  4152. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  4153. /* Data Packet Response count that are dropped out of order */
  4154. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  4155. /* keep last */
  4156. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  4157. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  4158. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  4159. };
  4160. /**
  4161. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  4162. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  4163. * NUD statistics collected when queried.
  4164. */
  4165. enum qca_attr_nud_stats_get {
  4166. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  4167. /* ARP Request count from netdev */
  4168. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  4169. /* ARP Request count sent to lower MAC from upper MAC */
  4170. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  4171. /* ARP Request count received by lower MAC from upper MAC */
  4172. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  4173. /* ARP Request count successfully transmitted by the device */
  4174. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  4175. /* ARP Response count received by lower MAC */
  4176. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  4177. /* ARP Response count received by upper MAC */
  4178. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  4179. /* ARP Response count delivered to netdev */
  4180. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  4181. /* ARP Response count delivered to netdev */
  4182. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  4183. /*
  4184. * Flag indicating if the station's link to the AP is active.
  4185. * Active Link - If included, Inactive link - If not included
  4186. */
  4187. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  4188. /*
  4189. * Flag indicating if there is any duplicate address detected (DAD).
  4190. * Yes - If detected, No - If not detected.
  4191. */
  4192. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  4193. /*
  4194. * List of Data types for which the stats are requested.
  4195. * This list does not carry ARP stats as they are done by the
  4196. * above attributes. Represented by enum qca_attr_nud_data_stats.
  4197. */
  4198. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  4199. /* keep last */
  4200. QCA_ATTR_NUD_STATS_GET_LAST,
  4201. QCA_ATTR_NUD_STATS_GET_MAX =
  4202. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  4203. };
  4204. enum qca_wlan_btm_candidate_status {
  4205. QCA_STATUS_ACCEPT = 0,
  4206. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  4207. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  4208. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  4209. QCA_STATUS_REJECT_LOW_RSSI = 4,
  4210. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  4211. QCA_STATUS_REJECT_UNKNOWN = 6,
  4212. };
  4213. enum qca_wlan_vendor_attr_btm_candidate_info {
  4214. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  4215. /* 6-byte MAC address representing the BSSID of transition candidate */
  4216. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  4217. /*
  4218. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  4219. * returned by the driver. It says whether the BSSID provided in
  4220. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  4221. * the driver, if not it specifies the reason for rejection.
  4222. * Note that the user-space can overwrite the transition reject reason
  4223. * codes provided by driver based on more information.
  4224. */
  4225. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  4226. /* keep last */
  4227. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  4228. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  4229. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  4230. };
  4231. enum qca_attr_trace_level {
  4232. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  4233. /*
  4234. * Nested array of the following attributes:
  4235. * QCA_ATTR_TRACE_LEVEL_MODULE,
  4236. * QCA_ATTR_TRACE_LEVEL_MASK.
  4237. */
  4238. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  4239. /*
  4240. * Specific QCA host driver module. Please refer to the QCA host
  4241. * driver implementation to get the specific module ID.
  4242. */
  4243. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  4244. /* Different trace level masks represented in the QCA host driver. */
  4245. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  4246. /* keep last */
  4247. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  4248. QCA_ATTR_TRACE_LEVEL_MAX =
  4249. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  4250. };
  4251. /**
  4252. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  4253. * supported features
  4254. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  4255. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  4256. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  4257. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  4258. *
  4259. * enum values are used for NL attributes for data used by
  4260. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  4261. */
  4262. enum qca_wlan_vendor_attr_get_logger_features {
  4263. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  4264. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  4265. /* keep last */
  4266. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  4267. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  4268. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  4269. };
  4270. /**
  4271. * enum qca_wlan_vendor_attr_link_properties - link properties
  4272. *
  4273. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  4274. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  4275. * specify the number of spatial streams negotiated
  4276. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  4277. * to specify negotiated rate flags i.e. ht, vht and channel width
  4278. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  4279. * specify the operating frequency
  4280. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  4281. * (STA / AP ) for the connected link.
  4282. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  4283. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  4284. * address of the peer represented by
  4285. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  4286. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  4287. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  4288. */
  4289. enum qca_wlan_vendor_attr_link_properties {
  4290. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  4291. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  4292. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  4293. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  4294. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  4295. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  4296. /* KEEP LAST */
  4297. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  4298. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  4299. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  4300. };
  4301. /**
  4302. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  4303. *
  4304. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  4305. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  4306. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  4307. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  4308. *
  4309. * enum values are used for NL attributes for data used by
  4310. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  4311. */
  4312. enum qca_wlan_vendor_attr_nd_offload {
  4313. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  4314. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  4315. /* Keep last */
  4316. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  4317. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  4318. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  4319. };
  4320. /**
  4321. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  4322. *
  4323. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  4324. * management offload, a mechanism where the station's firmware
  4325. * does the exchange with the AP to establish the temporal keys
  4326. * after roaming, rather than having the user space wpa_supplicant do it.
  4327. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  4328. * band selection based on channel selection results.
  4329. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  4330. * simultaneous off-channel operations.
  4331. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  4332. * Listen offload; a mechanism where the station's firmware takes care of
  4333. * responding to incoming Probe Request frames received from other P2P
  4334. * Devices whilst in Listen state, rather than having the user space
  4335. * wpa_supplicant do it. Information from received P2P requests are
  4336. * forwarded from firmware to host whenever the host processor wakes up.
  4337. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  4338. * specific features.
  4339. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  4340. * features.
  4341. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  4342. * specific features only. If a Device sets this bit but not the
  4343. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  4344. * this Device may not support all OCE AP functionalities but can support
  4345. * only OCE STA-CFON functionalities.
  4346. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  4347. * managed regulatory.
  4348. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  4349. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  4350. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  4351. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  4352. * and applying thermal configuration through
  4353. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  4354. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  4355. * userspace.
  4356. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  4357. * With Adaptive 11r feature, access points advertise the vendor
  4358. * specific IEs and MDE but do not include FT AKM in the RSNE.
  4359. * The Adaptive 11r supported stations are expected to identify
  4360. * such vendor specific IEs and connect to the AP in FT mode though
  4361. * the profile is configured in non-FT mode.
  4362. * The driver-based SME cases also need to have this support for
  4363. * Adaptive 11r to handle the connection and roaming scenarios.
  4364. * This flag indicates the support for the same to the user space.
  4365. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  4366. * concurrent network sessions on different Wi-Fi Bands. This feature
  4367. * capability is attributed to the hardware's capability to support
  4368. * the same (e.g., DBS).
  4369. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  4370. * responses for the respective TWT operations are asynchronous (separate)
  4371. * event message) from the driver. If not specified, the responses are
  4372. * synchronous (in vendor command reply) to the request. Each TWT
  4373. * operation is specifically mentioned (against its respective)
  4374. * documentation) to support either of these or both modes.
  4375. * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
  4376. * that the driver requires add/del virtual interface path using the
  4377. * generic nl80211 commands for NDP interface create/delete and to
  4378. * register/unregister the netdev instead of creating/deleting the NDP
  4379. * interface using the vendor commands
  4380. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
  4381. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
  4382. * (5.12 version onward), interface creation/deletion is not allowed using
  4383. * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
  4384. * during the register/unregister of netdev. Create and delete NDP
  4385. * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
  4386. * commands respectively if the driver advertises this capability set.
  4387. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
  4388. * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
  4389. * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
  4390. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
  4391. * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
  4392. * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
  4393. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
  4394. * station mode supports secure RTT measurement exchange. If
  4395. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4396. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
  4397. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
  4398. * mode supports secure RTT measurement exchange. If
  4399. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4400. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
  4401. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
  4402. * the device in station mode supports protection of range negotiation and
  4403. * measurement management frames. If
  4404. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4405. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
  4406. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
  4407. * the device in AP mode supports protection of range negotiation and
  4408. * measurement management frames. If
  4409. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4410. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
  4411. * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
  4412. * in AP mode supports configuring allowed frequency list for AP operation
  4413. * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
  4414. * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
  4415. * that the device supports enhanced audio experience over WLAN feature.
  4416. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  4417. */
  4418. enum qca_wlan_vendor_features {
  4419. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  4420. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  4421. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  4422. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  4423. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  4424. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  4425. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  4426. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  4427. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  4428. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  4429. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  4430. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  4431. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  4432. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  4433. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  4434. QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
  4435. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
  4436. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
  4437. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
  4438. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
  4439. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
  4440. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
  4441. QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
  4442. QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
  4443. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  4444. };
  4445. /**
  4446. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  4447. * conditional channel switch
  4448. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  4449. * value
  4450. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  4451. * frequency list (an array of u32 values in host byte order)
  4452. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  4453. * conditional switch (u32)- 0: Success, Non-zero: Failure
  4454. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  4455. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  4456. */
  4457. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  4458. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  4459. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  4460. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  4461. /* Keep Last */
  4462. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  4463. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  4464. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  4465. };
  4466. /**
  4467. * enum wifi_logger_supported_features - values for supported logger features
  4468. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  4469. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  4470. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  4471. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  4472. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  4473. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  4474. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  4475. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  4476. */
  4477. enum wifi_logger_supported_features {
  4478. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  4479. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  4480. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  4481. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  4482. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  4483. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  4484. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  4485. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  4486. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  4487. };
  4488. /**
  4489. * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
  4490. * capabilities features
  4491. */
  4492. enum qca_wlan_tdls_caps_features_supported {
  4493. WIFI_TDLS_SUPPORT = (1 << (0)),
  4494. WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
  4495. WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)),
  4496. /* Indicates if the TDLS session can be formed with the peer using
  4497. * higher bandwidth than the bandwidth of the AP path.
  4498. */
  4499. WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)),
  4500. };
  4501. /**
  4502. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  4503. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4504. *
  4505. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  4506. * Used with event to notify the primary channel number selected in ACS
  4507. * operation.
  4508. * Note: If both the driver and user-space application supports the 6 GHz band,
  4509. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  4510. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  4511. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4512. * is still used if either of the driver or user space application doesn't
  4513. * support the 6 GHz band.
  4514. *
  4515. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  4516. * Used with event to notify the secondary channel number selected in ACS
  4517. * operation.
  4518. * Note: If both the driver and user-space application supports the 6 GHz band,
  4519. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  4520. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  4521. * To maintain backward compatibility,
  4522. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  4523. * the driver or user space application doesn't support 6 GHz band.
  4524. *
  4525. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  4526. * (a) Used with command to configure hw_mode from
  4527. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  4528. * (b) Also used with event to notify the hw_mode of selected primary channel
  4529. * in ACS operation.
  4530. *
  4531. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  4532. * Used with command to configure ACS operation for HT mode.
  4533. * Disable (flag attribute not present) - HT disabled and
  4534. * Enable (flag attribute present) - HT enabled.
  4535. *
  4536. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  4537. * Used with command to configure ACS operation for HT40 mode.
  4538. * Disable (flag attribute not present) - HT40 disabled and
  4539. * Enable (flag attribute present) - HT40 enabled.
  4540. *
  4541. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  4542. * Used with command to configure ACS operation for VHT mode.
  4543. * Disable (flag attribute not present) - VHT disabled and
  4544. * Enable (flag attribute present) - VHT enabled.
  4545. *
  4546. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  4547. * mandatory with event.
  4548. * If specified in command path, ACS operation is configured with the given
  4549. * channel width (in MHz).
  4550. * In event path, specifies the channel width of the primary channel selected.
  4551. *
  4552. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  4553. * Used with command to configure channel list using an array of
  4554. * channel numbers (u8).
  4555. * Note: If both the driver and user-space application supports the 6 GHz band,
  4556. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  4557. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  4558. *
  4559. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  4560. * Used with event to notify the VHT segment 0 center channel number selected in
  4561. * ACS operation.
  4562. * Note: If both the driver and user-space application supports the 6 GHz band,
  4563. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  4564. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  4565. * To maintain backward compatibility,
  4566. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  4567. * the driver or user space application doesn't support the 6 GHz band.
  4568. *
  4569. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  4570. * Used with event to notify the VHT segment 1 center channel number selected in
  4571. * ACS operation.
  4572. * Note: If both the driver and user-space application supports the 6 GHz band,
  4573. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  4574. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  4575. * To maintain backward compatibility,
  4576. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  4577. * the driver or user space application doesn't support the 6 GHz band.
  4578. *
  4579. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  4580. * Used with command to configure the channel list using an array of channel
  4581. * center frequencies in MHz (u32).
  4582. * Note: If both the driver and user-space application supports the 6 GHz band,
  4583. * the driver first parses the frequency list and if it fails to get a frequency
  4584. * list, parses the channel list specified using
  4585. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  4586. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  4587. *
  4588. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  4589. * Used with event to notify the primary channel center frequency (MHz) selected
  4590. * in ACS operation.
  4591. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4592. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  4593. *
  4594. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  4595. * Used with event to notify the secondary channel center frequency (MHz)
  4596. * selected in ACS operation.
  4597. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4598. * includes this attribute along with
  4599. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  4600. *
  4601. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  4602. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  4603. * selected in ACS operation.
  4604. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4605. * includes this attribute along with
  4606. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  4607. *
  4608. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  4609. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  4610. * selected in ACS operation.
  4611. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4612. * includes this attribute along with
  4613. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  4614. *
  4615. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  4616. * Used with command to notify the driver of EDMG request for ACS
  4617. * operation.
  4618. *
  4619. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  4620. * Used with event to notify the EDMG channel number selected in ACS
  4621. * operation.
  4622. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4623. *
  4624. * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
  4625. * Used with event to notify the puncture pattern selected in ACS operation.
  4626. * Encoding for this attribute will follow the convention used in the Disabled
  4627. * Subchannel Bitmap field of the EHT Operation IE.
  4628. *
  4629. * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
  4630. * Used with command to configure ACS operation for EHT mode.
  4631. * Disable (flag attribute not present) - EHT disabled and
  4632. * Enable (flag attribute present) - EHT enabled.
  4633. *
  4634. * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
  4635. * Used with command to configure how older scan can be considered for ACS
  4636. * scoring. In case scan was performed on partial set of channels configured
  4637. * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
  4638. * (in ms), then scan only remaining channels.
  4639. */
  4640. enum qca_wlan_vendor_attr_acs_offload {
  4641. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  4642. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  4643. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  4644. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  4645. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  4646. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  4647. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  4648. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  4649. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  4650. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  4651. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  4652. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  4653. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  4654. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  4655. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  4656. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  4657. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  4658. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  4659. QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
  4660. QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
  4661. QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
  4662. /* keep last */
  4663. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4664. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4665. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4666. };
  4667. /**
  4668. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4669. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4670. *
  4671. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4672. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4673. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4674. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4675. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4676. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4677. */
  4678. enum qca_wlan_vendor_acs_hw_mode {
  4679. QCA_ACS_MODE_IEEE80211B,
  4680. QCA_ACS_MODE_IEEE80211G,
  4681. QCA_ACS_MODE_IEEE80211A,
  4682. QCA_ACS_MODE_IEEE80211AD,
  4683. QCA_ACS_MODE_IEEE80211ANY,
  4684. QCA_ACS_MODE_IEEE80211AX,
  4685. };
  4686. /**
  4687. * enum qca_access_policy - access control policy
  4688. *
  4689. * Access control policy is applied on the configured IE
  4690. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4691. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4692. *
  4693. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4694. *» with the specific configuration (IE) set, i.e. allow all the
  4695. *» connections which do not match the configuration.
  4696. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4697. *» with the specific configuration (IE) set, i.e. deny all the
  4698. *» connections which do not match the configuration.
  4699. */
  4700. enum qca_access_policy {
  4701. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4702. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4703. };
  4704. /**
  4705. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4706. *
  4707. * The valid values for the ignore assoc disallowed
  4708. *
  4709. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4710. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4711. *
  4712. */
  4713. enum qca_ignore_assoc_disallowed {
  4714. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4715. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4716. };
  4717. /* Attributes for data used by
  4718. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4719. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4720. */
  4721. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4722. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4723. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4724. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4725. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4726. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4727. enum qca_wlan_vendor_attr_config {
  4728. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4729. /*
  4730. * Unsigned 32-bit value to set the DTIM period.
  4731. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4732. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4733. * DTIM beacons.
  4734. */
  4735. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  4736. /*
  4737. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4738. * used to calculate statistics like average the TSF offset or average
  4739. * number of frame leaked.
  4740. * For instance, upon Beacon frame reception:
  4741. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4742. * For instance, when evaluating leaky APs:
  4743. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4744. */
  4745. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4746. /*
  4747. * Unsigned 32-bit value to configure guard time, i.e., when
  4748. * implementing IEEE power management based on frame control PM bit, how
  4749. * long the driver waits before shutting down the radio and after
  4750. * receiving an ACK frame for a Data frame with PM bit set.
  4751. */
  4752. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4753. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4754. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4755. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4756. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4757. /*
  4758. * Unsigned 32-bit value to configure the number of continuous
  4759. * Beacon Miss which shall be used by the firmware to penalize
  4760. * the RSSI.
  4761. */
  4762. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4763. /*
  4764. * Unsigned 8-bit value to configure the channel avoidance indication
  4765. * behavior. Firmware to send only one indication and ignore duplicate
  4766. * indications when set to avoid multiple Apps wakeups.
  4767. */
  4768. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4769. /*
  4770. * 8-bit unsigned value to configure the maximum TX MPDU for
  4771. * aggregation.
  4772. */
  4773. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4774. /*
  4775. * 8-bit unsigned value to configure the maximum RX MPDU for
  4776. * aggregation.
  4777. */
  4778. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4779. /*
  4780. * 8-bit unsigned value to configure the Non aggregate/11g sw
  4781. * retry threshold (0 disable, 31 max).
  4782. */
  4783. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4784. /*
  4785. * 8-bit unsigned value to configure the aggregate sw
  4786. * retry threshold (0 disable, 31 max).
  4787. */
  4788. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4789. /*
  4790. * 8-bit unsigned value to configure the MGMT frame
  4791. * retry threshold (0 disable, 31 max).
  4792. */
  4793. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4794. /*
  4795. * 8-bit unsigned value to configure the CTRL frame
  4796. * retry threshold (0 disable, 31 max).
  4797. */
  4798. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4799. /*
  4800. * 8-bit unsigned value to configure the propagation delay for
  4801. * 2G/5G band (0~63, units in us)
  4802. */
  4803. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4804. /*
  4805. * Unsigned 32-bit value to configure the number of unicast TX fail
  4806. * packet count. The peer is disconnected once this threshold is
  4807. * reached.
  4808. */
  4809. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4810. /*
  4811. * Attribute used to set scan default IEs to the driver.
  4812. *
  4813. * These IEs can be used by scan operations that will be initiated by
  4814. * the driver/firmware.
  4815. *
  4816. * For further scan requests coming to the driver, these IEs should be
  4817. * merged with the IEs received along with scan request coming to the
  4818. * driver. If a particular IE is present in the scan default IEs but not
  4819. * present in the scan request, then that IE should be added to the IEs
  4820. * sent in the Probe Request frames for that scan request.
  4821. */
  4822. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4823. /* Unsigned 32-bit attribute for generic commands */
  4824. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4825. /* Unsigned 32-bit value attribute for generic commands */
  4826. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4827. /* Unsigned 32-bit data attribute for generic command response */
  4828. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4829. /*
  4830. * Unsigned 32-bit length attribute for
  4831. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4832. */
  4833. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4834. /*
  4835. * Unsigned 32-bit flags attribute for
  4836. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4837. */
  4838. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4839. /*
  4840. * Unsigned 32-bit, defining the access policy.
  4841. * See enum qca_access_policy. Used with
  4842. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4843. */
  4844. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4845. /*
  4846. * Sets the list of full set of IEs for which a specific access policy
  4847. * has to be applied. Used along with
  4848. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4849. * Zero length payload can be used to clear this access constraint.
  4850. */
  4851. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4852. /*
  4853. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4854. * corresponding configurations are applied. If the interface index is
  4855. * not specified, the configurations are attributed to the respective
  4856. * wiphy.
  4857. */
  4858. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4859. /*
  4860. * 8-bit unsigned value to trigger QPower:
  4861. * 1-Enable, 0-Disable
  4862. */
  4863. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4864. /*
  4865. * 8-bit unsigned value to configure the driver and below layers to
  4866. * ignore the assoc disallowed set by APs while connecting
  4867. * 1-Ignore, 0-Don't ignore
  4868. */
  4869. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4870. /*
  4871. * 32-bit unsigned value to trigger antenna diversity features:
  4872. * 1-Enable, 0-Disable
  4873. */
  4874. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4875. /* 32-bit unsigned value to configure specific chain antenna */
  4876. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4877. /*
  4878. * 32-bit unsigned value to trigger cycle selftest
  4879. * 1-Enable, 0-Disable
  4880. */
  4881. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4882. /*
  4883. * 32-bit unsigned to configure the cycle time of selftest
  4884. * the unit is micro-second
  4885. */
  4886. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4887. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4888. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4889. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4890. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4891. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4892. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4893. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4894. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4895. /* 6-byte MAC address to point out the specific peer */
  4896. QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35,
  4897. /* Backward compatibility with the original name */
  4898. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC =
  4899. QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC,
  4900. /* 32-bit unsigned value to set window size for specific peer */
  4901. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4902. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4903. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4904. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4905. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4906. /*
  4907. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4908. * station device while in disconnect state. The attribute use the
  4909. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4910. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4911. * 10 MHz channel width, the station will not connect to a BSS using 20
  4912. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4913. * clear this constraint.
  4914. */
  4915. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4916. /*
  4917. * 32-bit unsigned value to configure the propagation absolute delay
  4918. * for 2G/5G band (units in us)
  4919. */
  4920. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4921. /* 32-bit unsigned value to set probe period */
  4922. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4923. /* 32-bit unsigned value to set stay period */
  4924. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4925. /* 32-bit unsigned value to set snr diff */
  4926. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4927. /* 32-bit unsigned value to set probe dwell time */
  4928. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4929. /* 32-bit unsigned value to set mgmt snr weight */
  4930. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4931. /* 32-bit unsigned value to set data snr weight */
  4932. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4933. /* 32-bit unsigned value to set ack snr weight */
  4934. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4935. /*
  4936. * 32-bit unsigned value to configure the listen interval.
  4937. * This is in units of beacon intervals. This configuration alters
  4938. * the negotiated listen interval with the AP during the connection.
  4939. * It is highly recommended to configure a value less than or equal to
  4940. * the one negotiated during the association. Configuring any greater
  4941. * value can have adverse effects (frame loss, AP disassociating STA,
  4942. * etc.).
  4943. */
  4944. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4945. /*
  4946. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4947. * disable operations that would cause the AP/GO to leave its operating
  4948. * channel.
  4949. *
  4950. * This will restrict the scans to the AP/GO operating channel and the
  4951. * channels of the other band, if DBS is supported.A STA/CLI interface
  4952. * brought up after this setting is enabled, will be restricted to
  4953. * connecting to devices only on the AP/GO interface's operating channel
  4954. * or on the other band in DBS case. P2P supported channel list is
  4955. * modified, to only include AP interface's operating-channel and the
  4956. * channels of the other band if DBS is supported.
  4957. *
  4958. * These restrictions are only applicable as long as the AP/GO interface
  4959. * is alive. If the AP/GO interface is brought down then this
  4960. * setting/restriction is forgotten.
  4961. *
  4962. * If this variable is set on an AP/GO interface while a multi-channel
  4963. * concurrent session is active, it has no effect on the operation of
  4964. * the current interfaces, other than restricting the scan to the AP/GO
  4965. * operating channel and the other band channels if DBS is supported.
  4966. * However, if the STA is brought down and restarted then the new STA
  4967. * connection will either be formed on the AP/GO channel or on the
  4968. * other band in a DBS case. This is because of the scan being
  4969. * restricted on these channels as mentioned above.
  4970. *
  4971. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  4972. */
  4973. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  4974. /*
  4975. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  4976. * on an interface.
  4977. * 1 - Enable , 0 - Disable.
  4978. */
  4979. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  4980. /*
  4981. * 8 bit unsigned value to globally enable/disable scan
  4982. * 1 - Enable, 0 - Disable.
  4983. */
  4984. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  4985. /* 8-bit unsigned value to set the total beacon miss count */
  4986. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  4987. /*
  4988. * Unsigned 32-bit value to configure the number of continuous
  4989. * Beacon Miss which shall be used by the firmware to penalize
  4990. * the RSSI for BTC.
  4991. */
  4992. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  4993. /*
  4994. * 8-bit unsigned value to configure the driver and below layers to
  4995. * enable/disable all fils features.
  4996. * 0-enable, 1-disable
  4997. */
  4998. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  4999. /* 16-bit unsigned value to configure the level of WLAN latency
  5000. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  5001. */
  5002. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  5003. /*
  5004. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  5005. * the connect interface. Exclusively used for the scenarios where the
  5006. * device is used as a test bed device with special functionality and
  5007. * not recommended for production. This helps driver to not validate the
  5008. * RSNE passed from user space and thus allow arbitrary IE data to be
  5009. * used for testing purposes.
  5010. * 1-enable, 0-disable.
  5011. * Applications set/reset this configuration. If not reset, this
  5012. * parameter remains in use until the driver is unloaded.
  5013. */
  5014. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  5015. /*
  5016. * 8-bit unsigned value to trigger green Tx power saving.
  5017. * 1-Enable, 0-Disable
  5018. */
  5019. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  5020. /*
  5021. * Attribute to configure disconnect IEs to the driver.
  5022. * This carries an array of unsigned 8-bit characters.
  5023. *
  5024. * If this is configured, driver shall fill the IEs in disassoc/deauth
  5025. * frame.
  5026. * These IEs are expected to be considered only for the next
  5027. * immediate disconnection (disassoc/deauth frame) originated by
  5028. * the DUT, irrespective of the entity (user space/driver/firmware)
  5029. * triggering the disconnection.
  5030. * The host drivers are not expected to use the IEs set through
  5031. * this interface for further disconnections after the first immediate
  5032. * disconnection initiated post the configuration.
  5033. * If the IEs are also updated through cfg80211 interface (after the
  5034. * enhancement to cfg80211_disconnect), host driver is expected to
  5035. * take the union of IEs from both of these interfaces and send in
  5036. * further disassoc/deauth frames.
  5037. */
  5038. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  5039. /* 8-bit unsigned value for ELNA bypass.
  5040. * 0 - Disable eLNA bypass.
  5041. * 1 - Enable eLNA bypass.
  5042. * 2 - Reset eLNA bypass configuration, the driver should
  5043. * revert to the default configuration of eLNA bypass.
  5044. */
  5045. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  5046. /* 8-bit unsigned value. This attribute enables/disables the host driver
  5047. * to send the Beacon Report response with failure reason for the
  5048. * scenarios where STA cannot honor the Beacon report request from AP.
  5049. * 1-Enable, 0-Disable.
  5050. */
  5051. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  5052. /* 8-bit unsigned value. This attribute enables/disables the host driver
  5053. * to send roam reason information in the reassociation request to the
  5054. * AP. 1-Enable, 0-Disable.
  5055. */
  5056. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  5057. /* 32-bit unsigned value to configure different PHY modes to the
  5058. * driver/firmware. The possible values are defined in
  5059. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  5060. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  5061. * the driver.
  5062. */
  5063. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  5064. /* 8-bit unsigned value to configure the maximum supported channel width
  5065. * for STA mode. If this value is configured when STA is in connected
  5066. * state, it should not exceed the negotiated channel width. If it is
  5067. * configured when STA is in disconnected state, the configured value
  5068. * will take effect for the next immediate connection.
  5069. * This configuration can be sent inside
  5070. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
  5071. * supported channel width per-MLO link.
  5072. *
  5073. * This uses values defined in enum nl80211_chan_width.
  5074. */
  5075. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  5076. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  5077. * This attribute is only applicable for STA mode. When dynamic
  5078. * bandwidth adjustment is disabled, STA will use static channel width
  5079. * the value of which is negotiated during connection.
  5080. * 1-enable (default), 0-disable
  5081. */
  5082. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  5083. /* 8-bit unsigned value to configure the maximum number of subframes of
  5084. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5085. * it is decided by hardware.
  5086. */
  5087. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  5088. /* 8-bit unsigned value to configure the maximum number of subframes of
  5089. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5090. * it is decided by hardware.
  5091. */
  5092. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  5093. /* 8-bit unsigned value. This attribute is used to dynamically
  5094. * enable/disable the LDPC capability of the device. When configured in
  5095. * the disconnected state, the updated configuration will be considered
  5096. * for the immediately following connection attempt. If this
  5097. * configuration is modified while the device is in the connected state,
  5098. * the LDPC TX will be updated with this configuration immediately,
  5099. * while the LDPC RX configuration update will take place starting from
  5100. * the subsequent association attempt.
  5101. * 1-Enable, 0-Disable.
  5102. */
  5103. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  5104. /* 8-bit unsigned value. This attribute is used to dynamically
  5105. * enable/disable the TX STBC capability of the device. When configured
  5106. * in the disconnected state, the updated configuration will be
  5107. * considered for the immediately following connection attempt. If the
  5108. * connection is formed with TX STBC enabled and if this configuration
  5109. * is disabled during that association, the TX will be impacted
  5110. * immediately. Further connection attempts will disable TX STBC.
  5111. * However, enabling the TX STBC for a connected session with disabled
  5112. * capability is not allowed and will fail.
  5113. * 1-Enable, 0-Disable.
  5114. */
  5115. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  5116. /* 8-bit unsigned value. This attribute is used to dynamically
  5117. * enable/disable the RX STBC capability of the device. When configured
  5118. * in the disconnected state, the updated configuration will be
  5119. * considered for the immediately following connection attempt. If the
  5120. * configuration is modified in the connected state, there will be no
  5121. * impact for the current association, but further connection attempts
  5122. * will use the updated configuration.
  5123. * 1-Enable, 0-Disable.
  5124. */
  5125. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  5126. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5127. * the number of spatial streams. When configured in the disconnected
  5128. * state, the updated configuration will be considered for the
  5129. * immediately following connection attempt. If the NSS is updated after
  5130. * the connection, the updated NSS value is notified to the peer using
  5131. * the Operating Mode Notification/Spatial Multiplexing Power Save
  5132. * frame. The updated NSS value after the connection shall not be
  5133. * greater than the one negotiated during the connection. Any such
  5134. * higher value configuration shall be returned with a failure.
  5135. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  5136. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  5137. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  5138. * configure the asymmetric NSS configuration (such as 1X2).
  5139. */
  5140. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  5141. /* 8-bit unsigned value to configure Optimized Power Management mode:
  5142. * Modes are defined by enum qca_wlan_vendor_opm_mode.
  5143. *
  5144. * This attribute shall be configured along with
  5145. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  5146. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes
  5147. * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED.
  5148. */
  5149. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  5150. /* 8-bit unsigned value. This attribute takes the QOS/access category
  5151. * value represented by the enum qca_wlan_ac_type and expects the driver
  5152. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  5153. * is invalid for this attribute. This will override the DSCP value
  5154. * configured in the frame with the intention to only upgrade the QOS.
  5155. * That said, it is not intended to downgrade the QOS for the frames.
  5156. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  5157. * to disable.
  5158. *
  5159. * If only UDP frames of BE or BK access category needs to be upgraded
  5160. * without changing the access category of VO or VI UDP frames, refer to
  5161. * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
  5162. *
  5163. * This attribute is not recommended to be used as it blindly forces all
  5164. * UDP packets to a higher access category which could impact the
  5165. * traffic pattern of all apps using UDP and can cause unknown behavior.
  5166. */
  5167. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  5168. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5169. * the number of chains to be used for transmitting 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_TX_CHAINS = 73,
  5176. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5177. * the number of chains to be used for receiving data. This
  5178. * configuration is allowed only when in connected state and will be
  5179. * effective until disconnected. The driver rejects this configuration
  5180. * if the number of spatial streams being used in the current connection
  5181. * cannot be supported by this configuration.
  5182. */
  5183. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  5184. /* 8-bit unsigned value to configure ANI setting type.
  5185. * See &enum qca_wlan_ani_setting for possible values.
  5186. */
  5187. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  5188. /* 32-bit signed value to configure ANI level. This is used when
  5189. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  5190. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  5191. * is invalid, the driver will return a failure.
  5192. */
  5193. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  5194. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5195. * the number of spatial streams used for transmitting the data. When
  5196. * configured in the disconnected state, the configured value will
  5197. * be considered for the following connection attempt.
  5198. * If the NSS is updated after the connection, the updated NSS value
  5199. * is notified to the peer using the Operating Mode Notification/Spatial
  5200. * Multiplexing Power Save frame.
  5201. * The TX NSS value configured after the connection shall not be greater
  5202. * than the value negotiated during the connection. Any such higher
  5203. * value configuration shall be treated as invalid configuration by
  5204. * the driver. This attribute shall be configured along with
  5205. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  5206. * configuration (such as 2X2 or 1X1) or the asymmetric
  5207. * configuration (such as 1X2).
  5208. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5209. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  5210. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  5211. */
  5212. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  5213. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5214. * the number of spatial streams used for receiving the data. When
  5215. * configured in the disconnected state, the configured value will
  5216. * be considered for the following connection attempt.
  5217. * If the NSS is updated after the connection, the updated NSS value
  5218. * is notified to the peer using the Operating Mode Notification/Spatial
  5219. * Multiplexing Power Save frame.
  5220. * The RX NSS value configured after the connection shall not be greater
  5221. * than the value negotiated during the connection. Any such higher
  5222. * value configuration shall be treated as invalid configuration by
  5223. * the driver. This attribute shall be configured along with
  5224. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  5225. * configuration (such as 2X2 or 1X1) or the asymmetric
  5226. * configuration (such as 1X2).
  5227. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5228. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  5229. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  5230. */
  5231. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  5232. /*
  5233. * 8-bit unsigned value. This attribute, when set, indicates whether the
  5234. * specified interface is the primary STA interface when there are more
  5235. * than one STA interfaces concurrently active.
  5236. *
  5237. * This configuration helps the firmware/hardware to support certain
  5238. * features (e.g., roaming) on this primary interface, if the same
  5239. * cannot be supported on the concurrent STA interfaces simultaneously.
  5240. *
  5241. * This configuration is only applicable for a single STA interface on
  5242. * a device and gives the priority for it only over other concurrent STA
  5243. * interfaces.
  5244. *
  5245. * If the device is a multi wiphy/soc, this configuration applies to a
  5246. * single STA interface across the wiphys.
  5247. *
  5248. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  5249. */
  5250. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  5251. /*
  5252. * 8-bit unsigned value. This attribute can be used to configure the
  5253. * driver to enable/disable FT-over-DS feature. Possible values for
  5254. * this attribute are 1-Enable and 0-Disable.
  5255. */
  5256. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  5257. /*
  5258. * 8-bit unsigned value. This attribute can be used to configure the
  5259. * firmware to enable/disable ARP/NS offload feature. Possible values
  5260. * for this attribute are 0-Disable and 1-Enable.
  5261. *
  5262. * This attribute is only applicable for STA/P2P-Client interface,
  5263. * and is optional, default behavior is APR/NS offload Enable.
  5264. *
  5265. * This attribute can be set in disconncted and connected state, and
  5266. * will restore to default behavior if interface is closed.
  5267. */
  5268. QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
  5269. /*
  5270. * 8-bit unsigned value. This attribute can be used to configure the
  5271. * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
  5272. * for this attribute are defined in the enum qca_dbam_config.
  5273. */
  5274. QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
  5275. /* 8-bit unsigned value. This attribute takes the QoS/access category
  5276. * value represented by the enum qca_wlan_ac_type and expects the driver
  5277. * to upgrade the UDP frames of BE or BK access category to this access
  5278. * category. This attribute will not modify UDP frames of VO or VI
  5279. * access category. The value of QCA_WLAN_AC_ALL is invalid for this
  5280. * attribute.
  5281. *
  5282. * This will override the DSCP value configured in the frame with the
  5283. * intention to only upgrade the access category. That said, it is not
  5284. * intended to downgrade the access category for the frames.
  5285. * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
  5286. * disabled, as BK is of the lowest priority and an upgrade to it does
  5287. * not result in any changes for the frames.
  5288. *
  5289. * This attribute behavior is similar to
  5290. * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
  5291. * only UDP frames of BE or BK access category are upgraded and not
  5292. * UDP frames of VI or VO access category.
  5293. *
  5294. * This attribute is not recommended to be used as it blindly forces all
  5295. * UDP packets of BE or BK access category to a higher access category
  5296. * which could impact the traffic pattern of all apps using UDP and can
  5297. * cause unknown behavior.
  5298. */
  5299. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
  5300. /* 8-bit unsigned value to configure the driver to enable/disable the
  5301. * periodic sounding for Tx beamformer functionality. The default
  5302. * behavior uses algorithm to do sounding based on packet stats.
  5303. *
  5304. * 0 - Default behavior.
  5305. * 1 - Enable the periodic sounding for Tx beamformer.
  5306. * This attribute is used for testing purposes.
  5307. */
  5308. QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
  5309. /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
  5310. * Userspace sends this information to driver/firmware to configure
  5311. * wfc state. Driver/Firmware uses this information to
  5312. * optimize power savings, rate adaption, roaming, etc.
  5313. *
  5314. * 1 - wfc is on.
  5315. * 0 - wfc is off.
  5316. */
  5317. QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
  5318. /* 8-bit unsigned value to configure the driver to enable/disable the
  5319. * EHT EML capability in management frame EHT capabilities.
  5320. * 1 - Enable, 0 - Disable.
  5321. */
  5322. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
  5323. /* 8-bit unsigned value to configure the driver with EHT MLO max
  5324. * simultaneous links to be used for MLO connection.
  5325. * The range of the value is 0 to 14.
  5326. */
  5327. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
  5328. /* 8-bit unsigned value to configure the driver with EHT MLO maximum
  5329. * number of links to be used for MLO connection.
  5330. * The range of the value is 1 to 16.
  5331. */
  5332. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
  5333. /* 8-bit unsigned value to configure the driver with EHT MLO mode.
  5334. * Uses enum qca_wlan_eht_mlo_mode values.
  5335. */
  5336. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
  5337. /* Nested attribute with frequencies in u32 attributes to configure a
  5338. * list of allowed 20 MHz channel center frequencies in MHz for AP
  5339. * operation. Whenever performing a channel selection operation, the
  5340. * driver shall generate a new list based on this provided list by
  5341. * filtering out channels that cannot be used at that time due to
  5342. * regulatory or other constraints. The resulting list is used as the
  5343. * list of all allowed channels, i.e., operation on any channel that is
  5344. * not included is not allowed, whenever performing operations like ACS
  5345. * and DFS.
  5346. *
  5347. * Userspace shall configure this before starting the AP and the
  5348. * configuration is valid only from the next BSS start and until the
  5349. * BSS is stopped. The driver shall clear this configuration when the
  5350. * AP is stopped and fall back to the default behavior for subsequent
  5351. * AP operation.
  5352. *
  5353. * The default behavior when this configuration is not applicable is the
  5354. * driver can choose any of the channels supported by the hardware
  5355. * except the channels that cannot be used due to regulatory or other
  5356. * constraints.
  5357. *
  5358. * The driver shall reject this configuration if done after the AP is
  5359. * started. This attribute can be used to specify user's choice of
  5360. * frequencies and static puncture channel list, etc.
  5361. */
  5362. QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
  5363. /* Nested attribute to indicate EHT MLO links to be forced active.
  5364. * It contains link MAC address attributes. These nested attributes are
  5365. * of the type NL80211_ATTR_MAC and are used to force enabling of the
  5366. * MLO links corresponding to the indicated link MAC addresses.
  5367. * Subsequently, the links corresponding to the link MAC addresses that
  5368. * are not indicated are forced inactive.
  5369. */
  5370. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
  5371. /* 8-bit unsigned value to configure EMLSR mode entry or exit.
  5372. * Uses enum qca_wlan_emlsr_mode values.
  5373. */
  5374. QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
  5375. /* 8-bit unsigned value. This attribute is used to dynamically
  5376. * enable/suspend trigger based UL MU transmission.
  5377. * This is supported in STA mode and the device sends Operating
  5378. * Mode Indication to inform the change as described in
  5379. * IEEE Std 802.11ax-2021, 26.9.
  5380. *
  5381. * This attribute can be configured when the STA is associated
  5382. * to an AP and the configuration is maintained until the current
  5383. * association terminates.
  5384. *
  5385. * By default all UL MU transmissions are enabled.
  5386. *
  5387. * Uses enum qca_ul_mu_config values.
  5388. */
  5389. QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
  5390. /* 8-bit unsigned value. Optionally specified along with
  5391. * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
  5392. * state. This configuration is applicable only for the current
  5393. * connection. This configuration not allowed in disconnected state.
  5394. * This configuration can be sent inside
  5395. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
  5396. * supported channel width update type per-MLO link.
  5397. *
  5398. * valid values:
  5399. * 0 - The maximum allowed bandwidth change is applicable for both Tx
  5400. * and Rx paths. The driver shall conduct OMI operation as defined
  5401. * in 26.9 (Operating mode indication) or OMN operation as
  5402. * defined in 11.40 (Notification of operating mode
  5403. * changes) in IEEE P802.11-REVme/D2.0 with AP to indicate the
  5404. * change in the maximum allowed operating bandwidth.
  5405. * 1 - Limit the change in maximum allowed bandwidth only to Tx path.
  5406. * In this case the driver doesn't need to conduct OMI/OMN
  5407. * operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
  5408. * expected to be less than the current connection maximum
  5409. * negotiated bandwidth.
  5410. * For example: Negotiated maximum bandwidth is 160 MHz and the new
  5411. * maximum bandwidth configured is 80 MHz, now the driver limits
  5412. * the maximum bandwidth to 80 MHz only in the Tx path.
  5413. */
  5414. QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
  5415. /* 8-bit unsigned value to set EPCS (Emergency Preparedness
  5416. * Communications Service) feature capability
  5417. * 1 - Enable, 0 - Disable.
  5418. *
  5419. * This configuration is used for testing purposes.
  5420. */
  5421. QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
  5422. /* 8-bit unsigned value to enable/disable EPCS priority access
  5423. * 1 - Enable, 0 - Disable.
  5424. * The EPCS priority access shall be enabled only when EPCS feature
  5425. * capability is also enabled (see
  5426. * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
  5427. *
  5428. * This configuration is used for testing purposes.
  5429. */
  5430. QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
  5431. /* 8-bit unsigned value. Used only for representing MLO link ID of a
  5432. * link inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
  5433. */
  5434. QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
  5435. /* Array of nested links each identified by
  5436. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
  5437. * enum qca_wlan_vendor_attr_config, explicit documentation shall be
  5438. * added for the attributes in enum qca_wlan_vendor_attr_config to
  5439. * support per-MLO link configuration through
  5440. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
  5441. *
  5442. * Userspace can configure a single link or multiple links with this
  5443. * attribute by nesting the corresponding configuration attributes and
  5444. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
  5445. *
  5446. * Userspace can fetch the configuration attribute values for a single
  5447. * link or multiple links with this attribute by nesting the
  5448. * corresponding configuration attributes and
  5449. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
  5450. *
  5451. * For STA interface, this attribute is applicable only in connected
  5452. * state when the current connection is MLO capable. The valid values of
  5453. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
  5454. * connected AP MLD links.
  5455. *
  5456. * For AP interface, this configuration applicable only after adding
  5457. * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
  5458. * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
  5459. * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
  5460. * the AP interface.
  5461. */
  5462. QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
  5463. /* 16-bit unsigned value to configure power save inactivity timeout in
  5464. * milliseconds.
  5465. *
  5466. * STA enters into power save mode (PM=1) after TX/RX inactivity of time
  5467. * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO.
  5468. *
  5469. * This attribute shall be configured along with
  5470. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when
  5471. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
  5472. * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
  5473. */
  5474. QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101,
  5475. /* 16-bit unsigned value to configure speculative wake interval in
  5476. * milliseconds.
  5477. *
  5478. * STA speculatively wakes up to look for buffered data by AP at
  5479. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after
  5480. * entering into power save. If configured zero, STA wakes up at
  5481. * upcoming DTIM beacon.
  5482. *
  5483. * This attribute shall be configured along with
  5484. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  5485. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
  5486. * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
  5487. */
  5488. QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102,
  5489. /*
  5490. * 16-bit unsigned value to configure TX max A-MPDU count.
  5491. *
  5492. * For STA interface, this attribute is applicable only in connected
  5493. * state, peer MAC address is not required to be provided.
  5494. *
  5495. * For AP interface, this attribute is applicable only in started
  5496. * state and one of the associated peer STAs must be specified with
  5497. * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML
  5498. * association, the peer MAC address provided is the link address of
  5499. * the non-AP MLD.
  5500. *
  5501. * This attribute runtime configures the TX maximum aggregation size.
  5502. * The value must be in range of 1 to BA window size for the specific
  5503. * peer.
  5504. */
  5505. QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103,
  5506. /* keep last */
  5507. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  5508. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  5509. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  5510. };
  5511. /**
  5512. * enum qca_ul_mu_config - UL MU configuration
  5513. * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
  5514. * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
  5515. */
  5516. enum qca_ul_mu_config {
  5517. QCA_UL_MU_SUSPEND = 0,
  5518. QCA_UL_MU_ENABLE = 1,
  5519. };
  5520. /**
  5521. * enum qca_dbam_config - Specifies DBAM config mode
  5522. * @QCA_DBAM_DISABLE: Firmware disables DBAM
  5523. * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
  5524. * internal criteria are met.
  5525. * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
  5526. */
  5527. enum qca_dbam_config {
  5528. QCA_DBAM_DISABLE = 0,
  5529. QCA_DBAM_ENABLE = 1,
  5530. QCA_DBAM_FORCE_ENABLE = 2,
  5531. };
  5532. /**
  5533. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  5534. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  5535. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  5536. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  5537. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  5538. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  5539. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  5540. */
  5541. enum qca_wlan_vendor_attr_wifi_logger_start {
  5542. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  5543. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  5544. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  5545. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  5546. /* keep last */
  5547. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  5548. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  5549. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  5550. };
  5551. /*
  5552. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  5553. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  5554. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  5555. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  5556. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  5557. */
  5558. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  5559. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  5560. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  5561. /* keep last */
  5562. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  5563. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  5564. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  5565. };
  5566. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  5567. /**
  5568. * enum wlan_offloaded_packets_control - control commands
  5569. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  5570. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  5571. *
  5572. */
  5573. enum wlan_offloaded_packets_control {
  5574. WLAN_START_OFFLOADED_PACKETS = 1,
  5575. WLAN_STOP_OFFLOADED_PACKETS = 2
  5576. };
  5577. /**
  5578. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  5579. *
  5580. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  5581. * the offloaded data.
  5582. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  5583. * data.
  5584. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  5585. * indication.
  5586. */
  5587. enum qca_wlan_vendor_attr_data_offload_ind {
  5588. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  5589. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  5590. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  5591. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  5592. /* keep last */
  5593. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  5594. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  5595. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  5596. };
  5597. /**
  5598. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  5599. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  5600. */
  5601. enum qca_wlan_vendor_attr_offloaded_packets {
  5602. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  5603. /* Takes valid value from the enum
  5604. * qca_wlan_offloaded_packets_sending_control
  5605. * Unsigned 32-bit value
  5606. */
  5607. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  5608. /* Unsigned 32-bit value */
  5609. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  5610. /* array of u8 len: Max packet size */
  5611. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  5612. /* 6-byte MAC address used to represent source MAC address */
  5613. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  5614. /* 6-byte MAC address used to represent destination MAC address */
  5615. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  5616. /* Unsigned 32-bit value, in milli seconds */
  5617. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  5618. /* This optional unsigned 16-bit attribute is used for specifying
  5619. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  5620. */
  5621. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  5622. /* keep last */
  5623. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  5624. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  5625. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  5626. };
  5627. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  5628. /**
  5629. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  5630. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  5631. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  5632. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  5633. */
  5634. enum qca_wlan_rssi_monitoring_control {
  5635. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  5636. QCA_WLAN_RSSI_MONITORING_START,
  5637. QCA_WLAN_RSSI_MONITORING_STOP,
  5638. };
  5639. /**
  5640. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  5641. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  5642. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  5643. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  5644. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  5645. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  5646. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  5647. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  5648. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  5649. */
  5650. enum qca_wlan_vendor_attr_rssi_monitoring {
  5651. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  5652. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  5653. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  5654. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  5655. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  5656. /* attributes to be used/received in callback */
  5657. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  5658. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  5659. /* keep last */
  5660. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  5661. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  5662. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  5663. };
  5664. /**
  5665. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  5666. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5667. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  5668. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  5669. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  5670. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
  5671. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  5672. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  5673. * address
  5674. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  5675. * created
  5676. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  5677. * NCS_SK_TYPE/PMK/SCID instead
  5678. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  5679. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  5680. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  5681. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  5682. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  5683. * code: accept/reject
  5684. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  5685. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  5686. * driver
  5687. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  5688. * driver
  5689. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  5690. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  5691. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  5692. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  5693. * PMKID
  5694. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  5695. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  5696. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  5697. * update:
  5698. * BIT_0: NSS Update
  5699. * BIT_1: Channel list update
  5700. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  5701. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  5702. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  5703. * 0:20 MHz,
  5704. * 1:40 MHz,
  5705. * 2:80 MHz,
  5706. * 3:160 MHz
  5707. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  5708. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  5709. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  5710. * transport port used by NDP.
  5711. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  5712. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  5713. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  5714. * @QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
  5715. * NDP remote peer supports NAN NDPE. 1:support 0:not support
  5716. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
  5717. * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
  5718. * A lower-case representation of the Service Name shall be used to
  5719. * calculate the Service ID.
  5720. * Array of u8: length is 6 bytes
  5721. * This attribute is used and optional for ndp indication.
  5722. * @QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES: Unsigned 8-bit value for Cipher
  5723. * Suite
  5724. * This attribute is used and optional in ndp request, ndp response, ndp
  5725. * indication, and ndp confirm.
  5726. * This attribute is used to indicate the Capabilities field of Cipher Suite
  5727. * Information attribute (CSIA) of NDP frames as defined in Wi-Fi Aware
  5728. * Specification v4.0, 9.5.21.2, Table 122.
  5729. * Firmware can accept or ignore any of the capability bits.
  5730. * @QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED: Indicate if the GTK protection is
  5731. * required for NDP. NLA_FLAG attribute.
  5732. * This attribute can be used in ndp request, ndp response, ndp indication, and
  5733. * ndp confirm.
  5734. * GTK protection required is indicated in the NDPE attribute of NAN action
  5735. * frame (NAF) during NDP negotiation as defined in Wi-Fi Aware Specification
  5736. * v4.0, 9.5.16.2.
  5737. * If the device and peer supports GTKSA and if GTK protection required bit is
  5738. * set in NDPE IE, devices will share GTK to each other in SKDA of Data Path
  5739. * Security Confirm and Data Path Security Install frames of NDP negotiation to
  5740. * send and receive protected group addressed data frames from each other.
  5741. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  5742. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  5743. */
  5744. enum qca_wlan_vendor_attr_ndp_params {
  5745. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  5746. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  5747. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  5748. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  5749. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  5750. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  5751. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  5752. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  5753. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  5754. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  5755. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  5756. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  5757. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  5758. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  5759. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  5760. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  5761. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  5762. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  5763. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  5764. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  5765. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  5766. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  5767. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  5768. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  5769. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  5770. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  5771. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  5772. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  5773. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  5774. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  5775. QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
  5776. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
  5777. QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32,
  5778. QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33,
  5779. /* keep last */
  5780. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  5781. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  5782. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  5783. };
  5784. /**
  5785. * enum qca_wlan_ndp_sub_cmd - NDP sub commands types for
  5786. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5787. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  5788. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
  5789. * data path interface.
  5790. * This command was initially designed to both create and start a NAN
  5791. * data path interface. However, changes to Linux 5.12 no longer allow
  5792. * interface creation via vendor commands. When the driver advertises
  5793. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5794. * userspace must explicitly first create the interface using
  5795. * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
  5796. * to start the interface.
  5797. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
  5798. * data path interface.
  5799. * This command was initially designed to both stop and delete a NAN
  5800. * data path interface. However, changes to Linux 5.12 no longer allow
  5801. * interface deletion via vendor commands. When the driver advertises
  5802. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5803. * userspace must explicitly delete the interface using
  5804. * NL80211_CMD_DEL_INTERFACE after calling this command.
  5805. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  5806. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  5807. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  5808. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  5809. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  5810. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  5811. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  5812. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  5813. * being received
  5814. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  5815. * update
  5816. */
  5817. enum qca_wlan_ndp_sub_cmd {
  5818. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  5819. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  5820. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  5821. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  5822. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  5823. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  5824. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  5825. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  5826. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  5827. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  5828. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  5829. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  5830. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  5831. };
  5832. /**
  5833. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  5834. * information. These attributes are sent as part of
  5835. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  5836. * attributes correspond to a single channel.
  5837. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  5838. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5839. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  5840. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5841. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  5842. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  5843. * regulatory transmission power
  5844. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  5845. * transmission power
  5846. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  5847. * transmission power
  5848. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  5849. * class id
  5850. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  5851. * antenna gain in dbm
  5852. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  5853. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  5854. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
  5855. * center frequency in MHz.
  5856. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  5857. * segment 0 in center freq in MHz. (this is the legacy alias)
  5858. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
  5859. * center frequency in MHz.
  5860. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  5861. * segment 1 in center freq in MHz. (this is the legacy alias)
  5862. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
  5863. * flag indicating the AP power modes supported by the channel, as given by
  5864. * enum qca_wlan_vendor_external_acs_chan_power_level.
  5865. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
  5866. * attributes for each power mode. It takes attr as defined in enum
  5867. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5868. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
  5869. * This indicates the overlapping 320 MHz center frequency in MHz, if the
  5870. * given primary channel supports more than one 320 MHz channel bonding.
  5871. *
  5872. */
  5873. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  5874. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  5875. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  5876. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  5877. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  5878. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  5879. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  5880. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  5881. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  5882. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  5883. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  5884. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  5885. /*
  5886. * A bitmask (u32) with flags specified in
  5887. * enum qca_wlan_vendor_channel_prop_flags_2.
  5888. */
  5889. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  5890. /*
  5891. * Segment 0 in MHz (u32).
  5892. *
  5893. * For 20/40/80 MHz bandwidth, this indicates the channel center
  5894. * frequency index for the 20/40/80 MHz operating channel.
  5895. * For 160 MHz bandwidth, this indicates the channel center
  5896. * frequency of the primary 80 MHz channel.
  5897. * For 320 MHz bandwidth, indicates the channel center frequency
  5898. * of the primary 160 MHz channel.
  5899. *
  5900. * To maintain backward compatibility,
  5901. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5902. * is also maintained.
  5903. */
  5904. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
  5905. /* Legacy alias for the Segment 0 attribute.
  5906. *
  5907. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  5908. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5909. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5910. * along with
  5911. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  5912. *
  5913. * If both the driver and user-space application supports the 6 GHz
  5914. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  5915. * is deprecated and
  5916. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5917. * should be used.
  5918. *
  5919. * To maintain backward compatibility,
  5920. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5921. * is still used if either of the driver or user space application
  5922. * doesn't support the 6 GHz band.
  5923. */
  5924. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
  5925. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
  5926. /*
  5927. * Segment 1 in MHz (u32).
  5928. *
  5929. * For 20/40/80 MHz bandwidth, this is set to 0.
  5930. * For 160 MHz bandwidth, indicates the channel center frequency of the
  5931. * 160 MHz channel.
  5932. * For 320 MHz bandwidth, indicates the channel center frequency of the
  5933. * 320 MHz channel.
  5934. *
  5935. * To maintain backward compatibility,
  5936. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5937. * is also maintained.
  5938. */
  5939. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
  5940. /* Legacy alias for the Segment 1 attribute.
  5941. *
  5942. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  5943. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5944. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5945. * along with
  5946. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  5947. *
  5948. * If both the driver and user-space application supports the 6 GHz
  5949. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  5950. * is deprecated and
  5951. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5952. * should be considered.
  5953. *
  5954. * To maintain backward compatibility,
  5955. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5956. * is still used if either of the driver or user space application
  5957. * doesn't support the 6 GHz band.
  5958. */
  5959. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
  5960. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
  5961. /*
  5962. * 16-bit attribute of bits indicating the AP power modes supported by
  5963. * the channel (u16).
  5964. * Note: Currently, only 3 bits are used in the attribute and each bit
  5965. * corresponds to the power mode mentioned in enum
  5966. * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
  5967. * set if the associated mode is supported.
  5968. */
  5969. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
  5970. = 14,
  5971. /* Array of nested attributes for each power mode. It takes attr as
  5972. * defined in enum
  5973. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5974. */
  5975. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
  5976. /*
  5977. * This indicates the overlapping 320 MHz center frequency in MHz
  5978. * (u32), if the given primary channel supports more than one
  5979. * 320 MHz channel bonding.
  5980. *
  5981. * Example:
  5982. * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
  5983. * center frequency (primary 160 MHz) is 6185 MHz and there can be two
  5984. * possible segment 2 frequencies for this (320 MHz center
  5985. * frequencies):
  5986. *
  5987. * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
  5988. * from frequency 5945 MHz - 6265 MHz
  5989. * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
  5990. * from frequency 6105 MHz - 6425 MHz
  5991. *
  5992. * In this case,
  5993. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
  5994. * return 6185 MHz.
  5995. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
  5996. * return 6105 MHz.
  5997. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5998. * will return 6265 MHz.
  5999. */
  6000. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  6001. = 16,
  6002. /* keep last */
  6003. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  6004. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  6005. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  6006. };
  6007. /**
  6008. * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
  6009. * values that the vendor external ACS channel power attribute
  6010. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
  6011. * take.
  6012. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
  6013. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
  6014. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
  6015. */
  6016. enum qca_wlan_vendor_external_acs_chan_power_level {
  6017. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
  6018. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
  6019. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
  6020. };
  6021. /**
  6022. * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
  6023. * attributes for power mode type and power values corresponding to that.
  6024. * These attributes are sent as part of
  6025. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
  6026. */
  6027. enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
  6028. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
  6029. /*
  6030. * Power mode (u8) takes the values defined in enum
  6031. * qca_wlan_vendor_external_acs_chan_power_mode
  6032. */
  6033. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
  6034. = 1,
  6035. /*
  6036. * Indicates if power value is a PSD/EIRP value (flag). If flag is
  6037. * present, it indicates a PSD value.
  6038. */
  6039. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
  6040. /*
  6041. * Power value (u32) PSD/EIRP as indicated by
  6042. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
  6043. * for power mode corresponding to the
  6044. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
  6045. * Units for PSD - dBm/MHz
  6046. * Units for EIRP - dBm
  6047. */
  6048. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
  6049. = 3,
  6050. /* keep last */
  6051. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
  6052. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
  6053. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
  6054. };
  6055. /**
  6056. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  6057. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  6058. * driver.
  6059. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  6060. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  6061. * ACS need to be started
  6062. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  6063. * driver supports spectral scanning or not
  6064. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  6065. * offloaded to firmware.
  6066. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  6067. * provides additional channel capability as part of scan operation.
  6068. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  6069. * interface status is UP
  6070. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  6071. * interface. It takes one of nl80211_iftype values.
  6072. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  6073. * of chan width. ACS logic should try to get a channel with specified width
  6074. * if not found then look for lower values.
  6075. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  6076. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  6077. * a/b/g/n/ac.
  6078. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  6079. * among which ACS should choose best frequency.
  6080. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  6081. * driver which will have <channel(u8), weight(u8)> format as array of
  6082. * nested values.
  6083. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  6084. * for each channel. It takes attr as defined in
  6085. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  6086. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  6087. * qca_wlan_vendor_attr_external_acs_policy.
  6088. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  6089. * Operating Parameter (RROP) availability information (u16). It uses values
  6090. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  6091. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
  6092. * indicate if driver supports 6 GHz AFC trigger for External ACS.
  6093. */
  6094. enum qca_wlan_vendor_attr_external_acs_event {
  6095. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  6096. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  6097. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  6098. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  6099. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  6100. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  6101. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  6102. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  6103. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  6104. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  6105. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  6106. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  6107. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  6108. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  6109. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  6110. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
  6111. /* keep last */
  6112. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  6113. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  6114. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  6115. };
  6116. enum qca_iface_type {
  6117. QCA_IFACE_TYPE_STA,
  6118. QCA_IFACE_TYPE_AP,
  6119. QCA_IFACE_TYPE_P2P_CLIENT,
  6120. QCA_IFACE_TYPE_P2P_GO,
  6121. QCA_IFACE_TYPE_IBSS,
  6122. QCA_IFACE_TYPE_TDLS,
  6123. };
  6124. /**
  6125. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  6126. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  6127. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  6128. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  6129. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  6130. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  6131. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  6132. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  6133. */
  6134. enum qca_wlan_vendor_attr_pcl_config {
  6135. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  6136. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  6137. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  6138. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  6139. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  6140. };
  6141. enum qca_set_band {
  6142. QCA_SETBAND_AUTO = 0,
  6143. QCA_SETBAND_5G = BIT(0),
  6144. QCA_SETBAND_2G = BIT(1),
  6145. QCA_SETBAND_6G = BIT(2),
  6146. };
  6147. /**
  6148. * enum set_reset_packet_filter - set packet filter control commands
  6149. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  6150. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  6151. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  6152. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  6153. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  6154. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  6155. */
  6156. enum set_reset_packet_filter {
  6157. QCA_WLAN_SET_PACKET_FILTER = 1,
  6158. QCA_WLAN_GET_PACKET_FILTER = 2,
  6159. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  6160. QCA_WLAN_READ_PACKET_FILTER = 4,
  6161. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  6162. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  6163. };
  6164. /**
  6165. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  6166. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  6167. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  6168. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  6169. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  6170. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  6171. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  6172. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  6173. * section in packet filter buffer
  6174. */
  6175. enum qca_wlan_vendor_attr_packet_filter {
  6176. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  6177. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  6178. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  6179. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  6180. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  6181. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  6182. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  6183. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  6184. /* keep last */
  6185. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  6186. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  6187. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  6188. };
  6189. /**
  6190. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  6191. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  6192. */
  6193. enum qca_wlan_vendor_attr_wake_stats {
  6194. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  6195. /* Unsigned 32-bit value indicating the total count of wake event */
  6196. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  6197. /* Array of individual wake count, each index representing wake reason
  6198. */
  6199. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  6200. /* Unsigned 32-bit value representing wake count array */
  6201. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  6202. /* Unsigned 32-bit total wake count value of driver/fw */
  6203. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  6204. /* Array of wake stats of driver/fw */
  6205. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  6206. /* Unsigned 32-bit total wake count value of driver/fw */
  6207. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  6208. /* Unsigned 32-bit total wake count value of packets received */
  6209. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  6210. /* Unsigned 32-bit wake count value unicast packets received */
  6211. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  6212. /* Unsigned 32-bit wake count value multicast packets received */
  6213. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  6214. /* Unsigned 32-bit wake count value broadcast packets received */
  6215. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  6216. /* Unsigned 32-bit wake count value of ICMP packets */
  6217. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  6218. /* Unsigned 32-bit wake count value of ICMP6 packets */
  6219. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  6220. /* Unsigned 32-bit value ICMP6 router advertisement */
  6221. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  6222. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  6223. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  6224. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  6225. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  6226. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  6227. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  6228. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  6229. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  6230. /* Unsigned 32-bit wake count value of receive side multicast */
  6231. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  6232. /* Unsigned 32-bit wake count value of a given RSSI breach */
  6233. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  6234. /* Unsigned 32-bit wake count value of low RSSI */
  6235. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  6236. /* Unsigned 32-bit value GSCAN count */
  6237. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  6238. /* Unsigned 32-bit value PNO complete count */
  6239. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  6240. /* Unsigned 32-bit value PNO match count */
  6241. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  6242. /* keep last */
  6243. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  6244. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  6245. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  6246. };
  6247. /**
  6248. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  6249. * configured by userspace to the driver/firmware. The values will be
  6250. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  6251. * The driver/firmware takes necessary actions requested by userspace
  6252. * such as throttling wifi tx etc. in order to mitigate high temperature.
  6253. *
  6254. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  6255. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  6256. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  6257. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  6258. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  6259. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  6260. */
  6261. enum qca_wlan_vendor_thermal_level {
  6262. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  6263. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  6264. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  6265. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  6266. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  6267. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  6268. };
  6269. /**
  6270. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  6271. * cmd value. Used for NL attributes for data used by
  6272. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6273. */
  6274. enum qca_wlan_vendor_attr_thermal_cmd {
  6275. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  6276. /* The value of command, driver will implement different operations
  6277. * according to this value. It uses values defined in
  6278. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  6279. * u32 attribute.
  6280. */
  6281. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  6282. /* Userspace uses this attribute to configure thermal level to the
  6283. * driver/firmware, or get thermal level from the driver/firmware.
  6284. * Used in request or response, u32 attribute,
  6285. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  6286. */
  6287. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  6288. /* Userspace uses this attribute to configure the time in which the
  6289. * driver/firmware should complete applying settings it received from
  6290. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  6291. * command type. Used in request, u32 attribute, value is in
  6292. * milliseconds. A value of zero indicates to apply the settings
  6293. * immediately. The driver/firmware can delay applying the configured
  6294. * thermal settings within the time specified in this attribute if
  6295. * there is any critical ongoing operation.
  6296. */
  6297. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  6298. /* Nested attribute, driver/firmware uses this attribute to report
  6299. * thermal stats of different thermal levels to userspace when requested
  6300. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  6301. * type. This attribute contains nested array of records of thermal
  6302. * statistics of multiple levels. The attributes used inside this nested
  6303. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  6304. */
  6305. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  6306. /* keep last */
  6307. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  6308. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  6309. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  6310. };
  6311. /**
  6312. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  6313. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  6314. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  6315. * thermal command types sent to driver.
  6316. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  6317. * get thermal shutdown configuration parameters for display. Parameters
  6318. * responded from driver are defined in
  6319. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  6320. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  6321. * get temperature. Host should respond with a temperature data. It is defined
  6322. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  6323. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  6324. * suspend action.
  6325. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  6326. * resume action.
  6327. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  6328. * the driver/firmware.
  6329. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  6330. * thermal level from the driver/firmware. The driver should respond with a
  6331. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  6332. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  6333. * current thermal stats from the driver/firmware. The driver should respond
  6334. * with stats of all thermal levels encapsulated in attribute
  6335. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  6336. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  6337. * the current thermal stats all thermal levels maintained in the
  6338. * driver/firmware and start counting from zero again.
  6339. */
  6340. enum qca_wlan_vendor_attr_thermal_cmd_type {
  6341. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  6342. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  6343. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  6344. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  6345. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  6346. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  6347. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  6348. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  6349. };
  6350. /**
  6351. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  6352. * to get chip temperature by user.
  6353. * enum values are used for NL attributes for data used by
  6354. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  6355. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6356. */
  6357. enum qca_wlan_vendor_attr_thermal_get_temperature {
  6358. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  6359. /* Temperature value (degree Celsius) from driver.
  6360. * u32 attribute.
  6361. */
  6362. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  6363. /* keep last */
  6364. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  6365. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  6366. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  6367. };
  6368. /**
  6369. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  6370. * report thermal events from driver to user space.
  6371. * enum values are used for NL attributes for data used by
  6372. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  6373. */
  6374. enum qca_wlan_vendor_attr_thermal_event {
  6375. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  6376. /* Temperature value (degree Celsius) from driver.
  6377. * u32 attribute.
  6378. */
  6379. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  6380. /* Indication of resume completion from power save mode.
  6381. * NLA_FLAG attribute.
  6382. */
  6383. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  6384. /* Thermal level from the driver.
  6385. * u32 attribute. Possible values are defined in
  6386. * enum qca_wlan_vendor_thermal_level.
  6387. */
  6388. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  6389. /* keep last */
  6390. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  6391. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  6392. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  6393. };
  6394. /**
  6395. * enum qca_vendor_element_id - QCA Vendor Specific element types
  6396. *
  6397. * These values are used to identify QCA Vendor Specific elements. The
  6398. * payload of the element starts with the three octet OUI (OUI_QCA) and
  6399. * is followed by a single octet type which is defined by this enum.
  6400. *
  6401. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  6402. * This element can be used to specify preference order for supported
  6403. * channels. The channels in this list are in preference order (the first
  6404. * one has the highest preference) and are described as a pair of
  6405. * (global) Operating Class and Channel Number (each one octet) fields.
  6406. *
  6407. * This extends the standard P2P functionality by providing option to have
  6408. * more than one preferred operating channel. When this element is present,
  6409. * it replaces the preference indicated in the Operating Channel attribute.
  6410. * For supporting other implementations, the Operating Channel attribute is
  6411. * expected to be used with the highest preference channel. Similarly, all
  6412. * the channels included in this Preferred channel list element are
  6413. * expected to be included in the Channel List attribute.
  6414. *
  6415. * This vendor element may be included in GO Negotiation Request, P2P
  6416. * Invitation Request, and Provision Discovery Request frames.
  6417. *
  6418. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  6419. * This element can be used for pre-standard publication testing of HE
  6420. * before P802.11ax draft assigns the element ID. The payload of this
  6421. * vendor specific element is defined by the latest P802.11ax draft.
  6422. * Please note that the draft is still work in progress and this element
  6423. * payload is subject to change.
  6424. *
  6425. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  6426. * This element can be used for pre-standard publication testing of HE
  6427. * before P802.11ax draft assigns the element ID. The payload of this
  6428. * vendor specific element is defined by the latest P802.11ax draft.
  6429. * Please note that the draft is still work in progress and this element
  6430. * payload is subject to change.
  6431. *
  6432. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  6433. * element).
  6434. * This element can be used for pre-standard publication testing of HE
  6435. * before P802.11ax draft assigns the element ID extension. The payload of
  6436. * this vendor specific element is defined by the latest P802.11ax draft
  6437. * (not including the Element ID Extension field). Please note that the
  6438. * draft is still work in progress and this element payload is subject to
  6439. * change.
  6440. *
  6441. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  6442. * This element can be used for pre-standard publication testing of HE
  6443. * before P802.11ax draft assigns the element ID extension. The payload of
  6444. * this vendor specific element is defined by the latest P802.11ax draft
  6445. * (not including the Element ID Extension field). Please note that the
  6446. * draft is still work in progress and this element payload is subject to
  6447. * change.
  6448. *
  6449. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  6450. * This element can be used for pre-standard publication testing of HE
  6451. * before P802.11ax draft assigns the element ID extension. The payload of
  6452. * this vendor specific element is defined by the latest P802.11ax draft
  6453. * (not including the Element ID Extension field). Please note that the
  6454. * draft is still work in progress and this element payload is subject to
  6455. * change.
  6456. */
  6457. enum qca_vendor_element_id {
  6458. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  6459. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  6460. QCA_VENDOR_ELEM_HE_OPER = 2,
  6461. QCA_VENDOR_ELEM_RAPS = 3,
  6462. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  6463. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  6464. };
  6465. /**
  6466. * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
  6467. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
  6468. * Specify the TSF command. Possible values are defined in
  6469. * &enum qca_tsf_cmd.
  6470. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
  6471. * This attribute contains TSF timer value. This attribute is only available
  6472. * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6473. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
  6474. * This attribute contains SOC timer value at TSF capture. This attribute is
  6475. * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6476. * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
  6477. * This attribute is used to provide TSF sync interval and only applicable when
  6478. * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
  6479. * driver will use the default value. Time unit is in milliseconds.
  6480. */
  6481. enum qca_vendor_attr_tsf_cmd {
  6482. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  6483. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  6484. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  6485. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  6486. QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
  6487. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  6488. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  6489. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  6490. };
  6491. /**
  6492. * enum qca_tsf_cmd: TSF driver commands
  6493. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  6494. * @QCA_TSF_GET: Get TSF capture value
  6495. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  6496. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  6497. * will automatically send TSF report to the host. To query
  6498. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  6499. * initiated first.
  6500. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  6501. * will not automatically send TSF report to the host. If
  6502. * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  6503. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  6504. * operation needs to be initiated.
  6505. * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
  6506. * fetches TSF and host time mapping from the firmware with interval configured
  6507. * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
  6508. * interval value is not provided the driver will use the default value. The
  6509. * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
  6510. * command.
  6511. * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
  6512. */
  6513. enum qca_tsf_cmd {
  6514. QCA_TSF_CAPTURE,
  6515. QCA_TSF_GET,
  6516. QCA_TSF_SYNC_GET,
  6517. QCA_TSF_AUTO_REPORT_ENABLE,
  6518. QCA_TSF_AUTO_REPORT_DISABLE,
  6519. QCA_TSF_SYNC_START,
  6520. QCA_TSF_SYNC_STOP,
  6521. };
  6522. /**
  6523. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  6524. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  6525. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  6526. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  6527. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  6528. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  6529. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  6530. */
  6531. enum qca_vendor_attr_get_preferred_freq_list {
  6532. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  6533. /* A 32-unsigned value; the interface type/mode for which the preferred
  6534. * frequency list is requested (see enum qca_iface_type for possible
  6535. * values); used in both south- and north-bound.
  6536. */
  6537. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  6538. /* An array of 32-unsigned values; values are frequency (MHz); used
  6539. * in north-bound only.
  6540. */
  6541. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  6542. /* An array of nested values as per enum
  6543. * qca_wlan_vendor_attr_pcl_config attribute.
  6544. * Each element contains frequency (MHz), weight, and flag
  6545. * bit mask indicating how the frequency should be used in P2P
  6546. * negotiation.
  6547. */
  6548. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  6549. /* keep last */
  6550. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  6551. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  6552. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  6553. };
  6554. /**
  6555. * enum qca_vendor_attr_probable_oper_channel - channel hint
  6556. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  6557. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  6558. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  6559. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  6560. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  6561. */
  6562. enum qca_vendor_attr_probable_oper_channel {
  6563. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  6564. /* 32-bit unsigned value; indicates the connection/iface type likely to
  6565. * come on this channel (see enum qca_iface_type).
  6566. */
  6567. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  6568. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  6569. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  6570. /* keep last */
  6571. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  6572. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  6573. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  6574. };
  6575. /**
  6576. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  6577. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  6578. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  6579. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  6580. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  6581. */
  6582. enum qca_wlan_vendor_attr_gw_param_config {
  6583. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  6584. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  6585. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  6586. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  6587. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  6588. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  6589. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  6590. };
  6591. /**
  6592. * enum drv_dbs_capability - DBS capability
  6593. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  6594. * @DRV_DBS_CAPABILITY_1X1: 1x1
  6595. * @DRV_DBS_CAPABILITY_2X2: 2x2
  6596. */
  6597. enum drv_dbs_capability {
  6598. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  6599. DRV_DBS_CAPABILITY_1X1,
  6600. DRV_DBS_CAPABILITY_2X2,
  6601. };
  6602. /**
  6603. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  6604. *
  6605. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  6606. */
  6607. enum qca_vendor_attr_txpower_decr_db {
  6608. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  6609. /*
  6610. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  6611. * a virtual interface.
  6612. */
  6613. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  6614. /* keep last */
  6615. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  6616. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  6617. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  6618. };
  6619. /**
  6620. * enum qca_vendor_attr_ota_test - Enable OTA test
  6621. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  6622. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  6623. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  6624. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  6625. */
  6626. enum qca_vendor_attr_ota_test {
  6627. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  6628. /* 8-bit unsigned value to indicate if OTA test is enabled */
  6629. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  6630. /* keep last */
  6631. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  6632. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  6633. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  6634. };
  6635. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  6636. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  6637. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  6638. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  6639. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  6640. */
  6641. enum qca_vendor_attr_txpower_scale {
  6642. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  6643. /* 8-bit unsigned value to indicate the scaling of tx power */
  6644. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  6645. /* keep last */
  6646. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  6647. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  6648. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  6649. };
  6650. /**
  6651. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  6652. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  6653. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  6654. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  6655. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  6656. */
  6657. enum qca_vendor_attr_txpower_scale_decr_db {
  6658. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  6659. /* 8-bit unsigned value to indicate the scaling of tx power */
  6660. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  6661. /* keep last */
  6662. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  6663. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  6664. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  6665. };
  6666. /**
  6667. * enum dfs_mode - state of DFS mode
  6668. * @DFS_MODE_NONE: DFS mode attribute is none
  6669. * @DFS_MODE_ENABLE: DFS mode is enabled
  6670. * @DFS_MODE_DISABLE: DFS mode is disabled
  6671. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  6672. */
  6673. enum dfs_mode {
  6674. DFS_MODE_NONE,
  6675. DFS_MODE_ENABLE,
  6676. DFS_MODE_DISABLE,
  6677. DFS_MODE_DEPRIORITIZE
  6678. };
  6679. /**
  6680. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  6681. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  6682. *
  6683. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  6684. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  6685. *
  6686. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  6687. * channel number hint for ACS operation, if valid channel is specified then
  6688. * ACS operation gives priority to this channel.
  6689. * Note: If both the driver and user space application supports the 6 GHz band,
  6690. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  6691. * should be used.
  6692. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  6693. * is still used if either of the driver or user space application doesn't
  6694. * support the 6 GHz band.
  6695. *
  6696. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  6697. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  6698. * frequency is specified, ACS operation gives priority to this channel.
  6699. */
  6700. enum qca_wlan_vendor_attr_acs_config {
  6701. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  6702. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  6703. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  6704. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  6705. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  6706. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  6707. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  6708. };
  6709. /**
  6710. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  6711. */
  6712. enum qca_wlan_vendor_attr_get_hw_capability {
  6713. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  6714. /*
  6715. * Antenna isolation
  6716. * An attribute used in the response.
  6717. * The content of this attribute is encoded in a byte array. Each byte
  6718. * value is an antenna isolation value. The array length is the number
  6719. * of antennas.
  6720. */
  6721. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  6722. /*
  6723. * Request HW capability
  6724. * An attribute used in the request.
  6725. * The content of this attribute is a u32 array for one or more of
  6726. * hardware capabilities (attribute IDs) that are being requested. Each
  6727. * u32 value has a value from this
  6728. * enum qca_wlan_vendor_attr_get_hw_capability
  6729. * identifying which capabilities are requested.
  6730. */
  6731. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  6732. /* keep last */
  6733. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  6734. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  6735. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  6736. };
  6737. /**
  6738. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  6739. * config params for sta roam policy
  6740. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  6741. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  6742. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  6743. * If sta should skip unsafe channels or not in scanning
  6744. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  6745. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  6746. */
  6747. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  6748. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  6749. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  6750. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  6751. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  6752. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  6753. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  6754. };
  6755. /* Attributes for FTM commands and events */
  6756. /**
  6757. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  6758. *
  6759. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  6760. * enum qca_wlan_vendor_attr_loc_capa_flags.
  6761. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  6762. * of measurement sessions that can run concurrently.
  6763. * Default is one session (no session concurrency).
  6764. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  6765. * peers that are supported in running sessions. For example,
  6766. * if the value is 8 and maximum number of sessions is 2, you can
  6767. * have one session with 8 unique peers, or 2 sessions with 4 unique
  6768. * peers each, and so on.
  6769. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  6770. * of bursts per peer, as an exponent (2^value). Default is 0,
  6771. * meaning no multi-burst support.
  6772. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  6773. * of measurement exchanges allowed in a single burst.
  6774. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  6775. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  6776. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  6777. */
  6778. enum qca_wlan_vendor_attr_loc_capa {
  6779. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  6780. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  6781. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  6782. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  6783. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  6784. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  6785. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  6786. /* keep last */
  6787. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  6788. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  6789. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  6790. };
  6791. /**
  6792. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  6793. *
  6794. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  6795. * can be configured as an FTM responder (for example, an AP that
  6796. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  6797. * will be supported if set.
  6798. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  6799. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  6800. * will be supported if set.
  6801. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  6802. * supports immediate (ASAP) response.
  6803. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  6804. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  6805. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  6806. * requesting AOA measurements as part of an FTM session.
  6807. */
  6808. enum qca_wlan_vendor_attr_loc_capa_flags {
  6809. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  6810. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  6811. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  6812. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  6813. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  6814. };
  6815. /**
  6816. * enum qca_wlan_ani_setting - ANI setting type
  6817. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  6818. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  6819. */
  6820. enum qca_wlan_ani_setting {
  6821. QCA_WLAN_ANI_SETTING_AUTO = 0,
  6822. QCA_WLAN_ANI_SETTING_FIXED = 1,
  6823. };
  6824. /**
  6825. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  6826. *
  6827. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  6828. * Channel number on which Access Point should restart.
  6829. * Note: If both the driver and user space application supports the 6 GHz band,
  6830. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  6831. * should be used.
  6832. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  6833. * is still used if either of the driver or user space application doesn't
  6834. * support the 6 GHz band.
  6835. *
  6836. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  6837. * Nested attribute to hold list of center frequencies on which AP is
  6838. * expected to operate. This is irrespective of ACS configuration.
  6839. * This list is a priority based one and is looked for before the AP is
  6840. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  6841. * co-exist in the system.
  6842. *
  6843. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  6844. * Channel center frequency (MHz) on which the access point should restart.
  6845. */
  6846. enum qca_wlan_vendor_attr_sap_config {
  6847. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  6848. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  6849. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  6850. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  6851. /* Keep last */
  6852. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  6853. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  6854. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  6855. };
  6856. /**
  6857. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  6858. * a single peer in a measurement session.
  6859. *
  6860. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  6861. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  6862. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  6863. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  6864. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  6865. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  6866. * list of supported attributes.
  6867. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  6868. * secure measurement.
  6869. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  6870. * measurement every <value> bursts. If 0 or not specified,
  6871. * AOA measurements will be disabled for this peer.
  6872. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  6873. * the measurement frames are exchanged. Optional; if not
  6874. * specified, try to locate the peer in the kernel scan
  6875. * results cache and use frequency from there.
  6876. */
  6877. enum qca_wlan_vendor_attr_ftm_peer_info {
  6878. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  6879. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  6880. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  6881. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  6882. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  6883. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  6884. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  6885. /* keep last */
  6886. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  6887. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  6888. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  6889. };
  6890. /**
  6891. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  6892. * per-peer
  6893. *
  6894. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  6895. * immediate (ASAP) response from peer.
  6896. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  6897. * LCI report from peer. The LCI report includes the absolute
  6898. * location of the peer in "official" coordinates (similar to GPS).
  6899. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  6900. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  6901. * Location civic report from peer. The LCR includes the location
  6902. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  6903. * 11.24.6.7 for more information.
  6904. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  6905. * request a secure measurement.
  6906. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  6907. */
  6908. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  6909. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  6910. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  6911. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  6912. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  6913. };
  6914. /**
  6915. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  6916. *
  6917. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  6918. * to perform in a single burst.
  6919. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  6920. * perform, specified as an exponent (2^value).
  6921. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  6922. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  6923. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  6924. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  6925. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  6926. */
  6927. enum qca_wlan_vendor_attr_ftm_meas_param {
  6928. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  6929. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  6930. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  6931. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  6932. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  6933. /* keep last */
  6934. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  6935. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  6936. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  6937. };
  6938. /**
  6939. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  6940. *
  6941. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  6942. * peer.
  6943. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  6944. * request for this peer.
  6945. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  6946. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  6947. * to measurement results for this peer.
  6948. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  6949. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  6950. * request failed and peer requested not to send an additional request
  6951. * for this number of seconds.
  6952. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  6953. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6954. * 9.4.2.22.10.
  6955. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  6956. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6957. * 9.4.2.22.13.
  6958. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  6959. * overridden some measurement request parameters. See
  6960. * enum qca_wlan_vendor_attr_ftm_meas_param.
  6961. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  6962. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  6963. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  6964. * results. Each entry is a nested attribute defined
  6965. * by enum qca_wlan_vendor_attr_ftm_meas.
  6966. */
  6967. enum qca_wlan_vendor_attr_ftm_peer_result {
  6968. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  6969. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  6970. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  6971. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  6972. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  6973. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  6974. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  6975. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  6976. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  6977. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  6978. /* keep last */
  6979. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  6980. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  6981. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  6982. };
  6983. /**
  6984. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  6985. *
  6986. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  6987. * will be provided. Peer may have overridden some measurement parameters,
  6988. * in which case overridden parameters will be report by
  6989. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  6990. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  6991. * of performing the measurement request. No more results will be sent
  6992. * for this peer in this session.
  6993. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  6994. * failed, and requested not to send an additional request for number
  6995. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  6996. * attribute.
  6997. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  6998. * failed. Request was not sent over the air.
  6999. */
  7000. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  7001. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  7002. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  7003. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  7004. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  7005. };
  7006. /**
  7007. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  7008. * for measurement result, per-peer
  7009. *
  7010. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  7011. * measurement completed for this peer. No more results will be reported
  7012. * for this peer in this session.
  7013. */
  7014. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  7015. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  7016. };
  7017. /**
  7018. * enum qca_vendor_attr_loc_session_status: Session completion status code
  7019. *
  7020. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  7021. * successfully.
  7022. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  7023. * by request.
  7024. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  7025. * was invalid and was not started.
  7026. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  7027. * and did not complete normally (for example out of resources).
  7028. */
  7029. enum qca_vendor_attr_loc_session_status {
  7030. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  7031. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  7032. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  7033. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  7034. };
  7035. /**
  7036. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  7037. *
  7038. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  7039. * recorded by responder, in picoseconds.
  7040. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7041. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  7042. * initiator, in picoseconds.
  7043. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7044. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  7045. * initiator, in picoseconds.
  7046. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7047. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  7048. * responder, in picoseconds.
  7049. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  7050. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  7051. * during this measurement exchange. Optional and will be provided if
  7052. * the hardware can measure it.
  7053. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  7054. * responder. Not always provided.
  7055. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7056. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  7057. * responder. Not always provided.
  7058. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7059. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  7060. * initiator. Not always provided.
  7061. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7062. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  7063. * initiator. Not always provided.
  7064. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  7065. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  7066. */
  7067. enum qca_wlan_vendor_attr_ftm_meas {
  7068. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  7069. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  7070. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  7071. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  7072. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  7073. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  7074. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  7075. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  7076. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  7077. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  7078. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  7079. /* keep last */
  7080. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  7081. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  7082. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  7083. };
  7084. /**
  7085. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  7086. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  7087. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  7088. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  7089. * of the social channels.
  7090. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  7091. * A 32-bit unsigned value; the P2P listen offload period (ms).
  7092. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  7093. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  7094. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  7095. * A 32-bit unsigned value; number of interval times the Firmware needs
  7096. * to run the offloaded P2P listen operation before it stops.
  7097. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  7098. * An array of unsigned 8-bit characters; vendor information elements.
  7099. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  7100. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  7101. * A 32-bit unsigned value; a control flag to indicate whether listen
  7102. * results need to be flushed to wpa_supplicant.
  7103. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  7104. * A 8-bit unsigned value; reason code for P2P listen offload stop
  7105. * event.
  7106. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  7107. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  7108. */
  7109. enum qca_wlan_vendor_attr_p2p_listen_offload {
  7110. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  7111. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  7112. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  7113. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  7114. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  7115. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  7116. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  7117. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  7118. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  7119. /* keep last */
  7120. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  7121. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  7122. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  7123. };
  7124. /**
  7125. * enum qca_wlan_vendor_drv_info - WLAN driver info
  7126. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  7127. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  7128. * between Firmware & Host.
  7129. */
  7130. enum qca_wlan_vendor_drv_info {
  7131. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  7132. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  7133. /* keep last */
  7134. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  7135. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  7136. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  7137. };
  7138. /**
  7139. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  7140. *
  7141. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  7142. * CIR (channel impulse response) path for each antenna.
  7143. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  7144. * of the strongest CIR path for each antenna.
  7145. */
  7146. enum qca_wlan_vendor_attr_aoa_type {
  7147. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  7148. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  7149. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  7150. };
  7151. /**
  7152. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  7153. * validate encryption engine
  7154. *
  7155. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  7156. * This will be included if the request is for decryption; if not included,
  7157. * the request is treated as a request for encryption by default.
  7158. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  7159. * indicating the key cipher suite. Takes same values as
  7160. * NL80211_ATTR_KEY_CIPHER.
  7161. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  7162. * Key Id to be used for encryption
  7163. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  7164. * Key (TK) to be used for encryption/decryption
  7165. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  7166. * Packet number to be specified for encryption/decryption
  7167. * 6 bytes for TKIP/CCMP/GCMP.
  7168. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  7169. * representing the 802.11 packet (header + payload + FCS) that
  7170. * needs to be encrypted/decrypted.
  7171. * Encrypted/decrypted response from the driver will also be sent
  7172. * to userspace with the same attribute.
  7173. */
  7174. enum qca_wlan_vendor_attr_encryption_test {
  7175. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  7176. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  7177. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  7178. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  7179. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  7180. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  7181. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  7182. /* keep last */
  7183. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  7184. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  7185. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  7186. };
  7187. /**
  7188. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  7189. * sector for DMG RF sector operations.
  7190. *
  7191. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  7192. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  7193. */
  7194. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  7195. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  7196. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  7197. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  7198. };
  7199. /**
  7200. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  7201. *
  7202. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  7203. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  7204. */
  7205. enum qca_wlan_vendor_attr_fw_state {
  7206. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  7207. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  7208. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  7209. };
  7210. /**
  7211. * BRP antenna limit mode
  7212. *
  7213. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  7214. * antenna limit, BRP will be performed as usual.
  7215. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  7216. * antennas limit. the hardware may use less antennas than the
  7217. * maximum limit.
  7218. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  7219. * use exactly the specified number of antennas for BRP.
  7220. */
  7221. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  7222. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  7223. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  7224. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  7225. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  7226. };
  7227. /**
  7228. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  7229. * DMG RF sector configuration for a single RF module.
  7230. * The values are defined in a compact way which closely matches
  7231. * the way it is stored in HW registers.
  7232. * The configuration provides values for 32 antennas and 8 distribution
  7233. * amplifiers, and together describes the characteristics of the RF
  7234. * sector - such as a beam in some direction with some gain.
  7235. *
  7236. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  7237. * of RF module for this configuration.
  7238. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  7239. * amplifier gain index. Unsigned 32 bit number containing
  7240. * bits for all 32 antennas.
  7241. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  7242. * amplifier gain index. Unsigned 32 bit number containing
  7243. * bits for all 32 antennas.
  7244. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  7245. * amplifier gain index. Unsigned 32 bit number containing
  7246. * bits for all 32 antennas.
  7247. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  7248. * for first 16 antennas, 2 bits per antenna.
  7249. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  7250. * for last 16 antennas, 2 bits per antenna.
  7251. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  7252. * DTYPE values (3 bits) for each distribution amplifier, followed
  7253. * by X16 switch bits for each distribution amplifier. There are
  7254. * total of 8 distribution amplifiers.
  7255. */
  7256. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  7257. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  7258. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  7259. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  7260. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  7261. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  7262. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  7263. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  7264. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  7265. /* keep last */
  7266. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  7267. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  7268. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  7269. };
  7270. /**
  7271. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  7272. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  7273. *
  7274. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  7275. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  7276. * represents the different TDLS trigger modes.
  7277. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  7278. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  7279. * of packets shall meet the criteria for implicit TDLS setup.
  7280. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  7281. * packets within a duration.
  7282. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  7283. * a TDLS setup.
  7284. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
  7285. * a TDLS Discovery to the Peer.
  7286. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  7287. * discovery attempts to know the TDLS capability of the peer. A peer is
  7288. * marked as TDLS not capable if there is no response for all the attempts.
  7289. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  7290. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  7291. * number of TX / RX frames meet the criteria for TDLS teardown.
  7292. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  7293. * (u32) of Tx/Rx packets within a duration
  7294. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  7295. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  7296. * corresponding to the RSSI of the peer below which a TDLS
  7297. * setup is triggered.
  7298. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  7299. * corresponding to the RSSI of the peer above which
  7300. * a TDLS teardown is triggered.
  7301. */
  7302. enum qca_wlan_vendor_attr_tdls_configuration {
  7303. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  7304. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  7305. /* Attributes configuring the TDLS Implicit Trigger */
  7306. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  7307. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  7308. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  7309. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  7310. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  7311. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  7312. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  7313. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  7314. /* keep last */
  7315. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  7316. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  7317. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  7318. };
  7319. /**
  7320. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  7321. * the driver.
  7322. *
  7323. * The following are the different values for
  7324. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  7325. *
  7326. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  7327. * initiate/teardown the TDLS connection to a respective peer comes
  7328. * from the user space. wpa_supplicant provides the commands
  7329. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  7330. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  7331. * setup/teardown to the eligible peer once the configured criteria
  7332. * (such as TX/RX threshold, RSSI) is met. The attributes
  7333. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  7334. * the different configuration criteria for the TDLS trigger from the
  7335. * host driver.
  7336. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  7337. * the TDLS setup / teardown through the implicit mode, only to the
  7338. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  7339. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  7340. * External mode works on top of the implicit mode, thus the host Driver
  7341. * is expected to be configured in TDLS Implicit mode too to operate in
  7342. * External mode. Configuring External mode alone without Implicit
  7343. * mode is invalid.
  7344. *
  7345. * All the above implementations work as expected only when the host driver
  7346. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  7347. * representing that the TDLS message exchange is not internal to the host
  7348. * driver, but depends on wpa_supplicant to do the message exchange.
  7349. */
  7350. enum qca_wlan_vendor_tdls_trigger_mode {
  7351. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  7352. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  7353. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  7354. };
  7355. /**
  7356. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  7357. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  7358. * that is hard-coded in the Board Data File (BDF).
  7359. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  7360. * that is hard-coded in the Board Data File (BDF).
  7361. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  7362. * that is hard-coded in the Board Data File (BDF).
  7363. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  7364. * that is hard-coded in the Board Data File (BDF).
  7365. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  7366. * that is hard-coded in the Board Data File (BDF).
  7367. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  7368. * source of SAR power limits, thereby disabling the SAR power
  7369. * limit feature.
  7370. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  7371. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7372. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  7373. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7374. *
  7375. * This enumerates the valid set of values that may be supplied for
  7376. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  7377. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  7378. * the response to an instance of the
  7379. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7380. */
  7381. enum qca_vendor_attr_sar_limits_selections {
  7382. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  7383. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  7384. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  7385. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  7386. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  7387. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  7388. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  7389. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  7390. };
  7391. /**
  7392. * enum qca_vendor_attr_sar_limits_spec_modulations -
  7393. * SAR limits specification modulation
  7394. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  7395. * CCK modulation
  7396. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  7397. * OFDM modulation
  7398. *
  7399. * This enumerates the valid set of values that may be supplied for
  7400. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  7401. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  7402. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  7403. * command or in the response to an instance of the
  7404. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7405. */
  7406. enum qca_vendor_attr_sar_limits_spec_modulations {
  7407. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  7408. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  7409. };
  7410. /**
  7411. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  7412. *
  7413. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  7414. * select which SAR power limit table should be used. Valid
  7415. * values are enumerated in enum
  7416. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  7417. * power limit selection is unchanged if this attribute is not
  7418. * present.
  7419. *
  7420. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  7421. * which specifies the number of SAR power limit specifications
  7422. * which will follow.
  7423. *
  7424. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  7425. * limit specifications. The number of specifications is
  7426. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  7427. * specification contains a set of
  7428. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  7429. * specification is uniquely identified by the attributes
  7430. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  7431. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  7432. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  7433. * contains as a payload the attribute
  7434. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  7435. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  7436. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  7437. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  7438. * needed based upon the value of
  7439. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  7440. *
  7441. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  7442. * indicate for which band this specification applies. Valid
  7443. * values are enumerated in enum %nl80211_band (although not all
  7444. * bands may be supported by a given device). If the attribute is
  7445. * not supplied then the specification will be applied to all
  7446. * supported bands.
  7447. *
  7448. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  7449. * to indicate for which antenna chain this specification
  7450. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  7451. * attribute is not supplied then the specification will be
  7452. * applied to all chains.
  7453. *
  7454. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  7455. * value to indicate for which modulation scheme this
  7456. * specification applies. Valid values are enumerated in enum
  7457. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  7458. * is not supplied then the specification will be applied to all
  7459. * modulation schemes.
  7460. *
  7461. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  7462. * value to specify the actual power limit value in units of 0.5
  7463. * dBm (i.e., a value of 11 represents 5.5 dBm).
  7464. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7465. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  7466. *
  7467. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  7468. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  7469. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7470. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  7471. *
  7472. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  7473. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  7474. */
  7475. enum qca_vendor_attr_sar_limits {
  7476. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  7477. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  7478. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  7479. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  7480. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  7481. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  7482. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  7483. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  7484. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  7485. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  7486. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  7487. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  7488. };
  7489. /**
  7490. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  7491. * offload which is an extension for LL_STATS.
  7492. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  7493. * If MAC counters do not exceed the threshold, FW will report monitored
  7494. * link layer counters periodically as this setting. The first report is
  7495. * always triggered by this timer.
  7496. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  7497. * For each MAC layer counter, FW holds two copies. One is the current value.
  7498. * The other is the last report. Once a current counter's increment is larger
  7499. * than the threshold, FW will indicate that counter to host even if the
  7500. * monitoring timer does not expire.
  7501. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  7502. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  7503. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  7504. * failure code.
  7505. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  7506. * 1: TX packet discarded
  7507. * 2: No ACK
  7508. * 3: Postpone
  7509. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  7510. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  7511. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  7512. * Threshold for all monitored parameters. If per counter dedicated threshold
  7513. * is not enabled, this threshold will take effect.
  7514. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  7515. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  7516. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  7517. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  7518. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  7519. * Bit0: TX counter unit in MSDU
  7520. * Bit1: TX counter unit in MPDU
  7521. * Bit2: TX counter unit in PPDU
  7522. * Bit3: TX counter unit in byte
  7523. * Bit4: Dropped MSDUs
  7524. * Bit5: Dropped Bytes
  7525. * Bit6: MPDU retry counter
  7526. * Bit7: MPDU failure counter
  7527. * Bit8: PPDU failure counter
  7528. * Bit9: MPDU aggregation counter
  7529. * Bit10: MCS counter for ACKed MPDUs
  7530. * Bit11: MCS counter for Failed MPDUs
  7531. * Bit12: TX Delay counter
  7532. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  7533. * Bit0: MAC RX counter unit in MPDU
  7534. * Bit1: MAC RX counter unit in byte
  7535. * Bit2: PHY RX counter unit in PPDU
  7536. * Bit3: PHY RX counter unit in byte
  7537. * Bit4: Disorder counter
  7538. * Bit5: Retry counter
  7539. * Bit6: Duplication counter
  7540. * Bit7: Discard counter
  7541. * Bit8: MPDU aggregation size counter
  7542. * Bit9: MCS counter
  7543. * Bit10: Peer STA power state change (wake to sleep) counter
  7544. * Bit11: Peer STA power save counter, total time in PS mode
  7545. * Bit12: Probe request counter
  7546. * Bit13: Other management frames counter
  7547. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  7548. * Bit0: Idle time
  7549. * Bit1: TX time
  7550. * Bit2: time RX in current bss
  7551. * Bit3: Out of current bss time
  7552. * Bit4: Wireless medium busy time
  7553. * Bit5: RX in bad condition time
  7554. * Bit6: TX in bad condition time
  7555. * Bit7: time wlan card not available
  7556. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  7557. * Bit0: Per channel SNR counter
  7558. * Bit1: Per channel noise floor counter
  7559. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  7560. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  7561. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  7562. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  7563. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  7564. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  7565. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  7566. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  7567. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  7568. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  7569. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  7570. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  7571. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  7572. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  7573. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  7574. * aggregation stats buffer length
  7575. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  7576. * buffer for ACKed MPDUs.
  7577. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  7578. * buffer for failed MPDUs.
  7579. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  7580. * length of delay stats array.
  7581. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  7582. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  7583. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  7584. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  7585. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  7586. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  7587. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  7588. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  7589. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  7590. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  7591. * flagged as retransmissions
  7592. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  7593. * flagged as duplicated
  7594. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  7595. * packets discarded
  7596. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  7597. * stats buffer.
  7598. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  7599. * stats buffer.
  7600. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  7601. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  7602. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  7603. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  7604. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  7605. * requests received
  7606. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  7607. * frames received
  7608. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  7609. * there is no TX, nor RX, nor interference.
  7610. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  7611. * transmitting packets.
  7612. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  7613. * for receiving.
  7614. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  7615. * interference detected.
  7616. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  7617. * receiving packets with errors.
  7618. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  7619. * TX no-ACK.
  7620. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  7621. * the chip is unable to work in normal conditions.
  7622. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  7623. * receiving packets in current BSS.
  7624. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  7625. * receiving packets not in current BSS.
  7626. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  7627. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  7628. * This is a container for per antenna signal stats.
  7629. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  7630. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  7631. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  7632. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  7633. */
  7634. enum qca_wlan_vendor_attr_ll_stats_ext {
  7635. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  7636. /* Attributes for configurations */
  7637. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  7638. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  7639. /* Peer STA power state change */
  7640. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  7641. /* TX failure event */
  7642. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  7643. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  7644. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  7645. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  7646. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  7647. /* MAC counters */
  7648. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  7649. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  7650. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  7651. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  7652. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  7653. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  7654. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  7655. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  7656. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  7657. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  7658. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  7659. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  7660. /* Sub-attributes for PEER_AC_TX */
  7661. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  7662. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  7663. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  7664. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  7665. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  7666. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  7667. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  7668. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  7669. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  7670. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  7671. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  7672. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  7673. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  7674. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  7675. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  7676. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  7677. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  7678. /* Sub-attributes for PEER_AC_RX */
  7679. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  7680. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  7681. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  7682. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  7683. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  7684. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  7685. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  7686. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  7687. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  7688. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  7689. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  7690. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  7691. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  7692. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  7693. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  7694. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  7695. /* Sub-attributes for CCA_BSS */
  7696. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  7697. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  7698. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  7699. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  7700. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  7701. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  7702. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  7703. /* sub-attribute for BSS_RX_TIME */
  7704. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  7705. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  7706. /* Sub-attributes for PEER_SIGNAL */
  7707. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  7708. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  7709. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  7710. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  7711. /* Sub-attributes for IFACE_BSS */
  7712. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  7713. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  7714. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  7715. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  7716. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  7717. };
  7718. /**
  7719. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  7720. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  7721. * in priority order as decided after ACS operation in userspace.
  7722. *
  7723. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  7724. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  7725. *
  7726. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  7727. * Array of nested values for each channel with following attributes:
  7728. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7729. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7730. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7731. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7732. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7733. * Note: If both the driver and user-space application supports the 6 GHz band,
  7734. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  7735. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  7736. * To maintain backward compatibility,
  7737. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  7738. * is still used if either of the driver or user space application doesn't
  7739. * support the 6 GHz band.
  7740. *
  7741. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  7742. * Primary channel number
  7743. * Note: If both the driver and user-space application supports the 6 GHz band,
  7744. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  7745. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  7746. * To maintain backward compatibility,
  7747. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  7748. * is still used if either of the driver or user space application doesn't
  7749. * support the 6 GHz band.
  7750. *
  7751. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  7752. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  7753. * Note: If both the driver and user-space application supports the 6 GHz band,
  7754. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  7755. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  7756. * To maintain backward compatibility,
  7757. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  7758. * is still used if either of the driver or user space application
  7759. * doesn't support the 6 GHz band.
  7760. *
  7761. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  7762. * VHT seg0 channel number
  7763. * Note: If both the driver and user-space application supports the 6 GHz band,
  7764. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  7765. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  7766. * To maintain backward compatibility,
  7767. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  7768. * is still used if either of the driver or user space application
  7769. * doesn't support the 6 GHz band.
  7770. *
  7771. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  7772. * VHT seg1 channel number
  7773. * Note: If both the driver and user-space application supports the 6 GHz band,
  7774. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  7775. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  7776. * To maintain backward compatibility,
  7777. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  7778. * is still used if either of the driver or user space application
  7779. * doesn't support the 6 GHz band.
  7780. *
  7781. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  7782. * Takes one of enum nl80211_chan_width values.
  7783. *
  7784. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  7785. * Array of nested values for each channel with following attributes:
  7786. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  7787. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  7788. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  7789. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  7790. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7791. * Note: If user-space application has no support of the 6 GHz band, this
  7792. * attribute is optional.
  7793. *
  7794. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  7795. * Primary channel frequency in MHz
  7796. * Note: If user-space application has no support of the 6 GHz band, this
  7797. * attribute is optional.
  7798. *
  7799. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  7800. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  7801. * Note: If user-space application has no support of the 6 GHz band, this
  7802. * attribute is optional.
  7803. *
  7804. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  7805. * VHT seg0 channel frequency in MHz
  7806. * Note: If user-space application has no support of the 6GHz band, this
  7807. * attribute is optional.
  7808. *
  7809. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  7810. * VHT seg1 channel frequency in MHz
  7811. * Note: If user-space application has no support of the 6 GHz band, this
  7812. * attribute is optional.
  7813. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
  7814. * Puncture Bitmap for selected primary channel. Optional if no support
  7815. * for EHT (IEEE 802.11be). Encoding for this attribute follows the
  7816. * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
  7817. * element.
  7818. */
  7819. enum qca_wlan_vendor_attr_external_acs_channels {
  7820. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  7821. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  7822. */
  7823. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  7824. /* Array of nested values for each channel with following attributes:
  7825. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  7826. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7827. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7828. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7829. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7830. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7831. */
  7832. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  7833. /* This (u8) will hold values of one of enum nl80211_bands */
  7834. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  7835. /* Primary channel (u8) */
  7836. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  7837. /* Secondary channel (u8) used for HT 40 MHz channels */
  7838. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  7839. /* VHT seg0 channel (u8) */
  7840. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  7841. /* VHT seg1 channel (u8) */
  7842. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  7843. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  7844. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  7845. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  7846. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  7847. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  7848. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  7849. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  7850. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
  7851. /* keep last */
  7852. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  7853. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  7854. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  7855. };
  7856. /**
  7857. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  7858. * the ACS has to be triggered. These values are used by
  7859. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  7860. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  7861. */
  7862. enum qca_wlan_vendor_acs_select_reason {
  7863. /* Represents the reason that the ACS triggered during the AP start */
  7864. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  7865. /* Represents the reason that DFS found with the current channel */
  7866. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  7867. /* Represents the reason that LTE co-exist in the current band. */
  7868. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  7869. /* Represents the reason that generic, uncategorized interference has
  7870. * been found in the current channel.
  7871. */
  7872. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  7873. /* Represents the reason that excessive 802.11 interference has been
  7874. * found in the current channel.
  7875. */
  7876. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  7877. /* Represents the reason that generic Continuous Wave (CW) interference
  7878. * has been found in the current channel.
  7879. */
  7880. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  7881. /* Represents the reason that Microwave Oven (MWO) interference has been
  7882. * found in the current channel.
  7883. */
  7884. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  7885. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  7886. * (FHSS) interference has been found in the current channel. This may
  7887. * include 802.11 waveforms.
  7888. */
  7889. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  7890. /* Represents the reason that non-802.11 generic Frequency-Hopping
  7891. * Spread Spectrum (FHSS) interference has been found in the current
  7892. * channel.
  7893. */
  7894. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  7895. /* Represents the reason that generic Wideband (WB) interference has
  7896. * been found in the current channel. This may include 802.11 waveforms.
  7897. */
  7898. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  7899. /* Represents the reason that non-802.11 generic Wideband (WB)
  7900. * interference has been found in the current channel.
  7901. */
  7902. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  7903. /* Represents the reason that Jammer interference has been found in the
  7904. * current channel.
  7905. */
  7906. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  7907. /* Represents the reason that ACS triggered by AFC */
  7908. QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
  7909. };
  7910. /**
  7911. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  7912. *
  7913. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  7914. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  7915. * to get the available value that this item can use.
  7916. *
  7917. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  7918. * value to specify the gpio number.
  7919. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7920. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7921. *
  7922. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  7923. * value to specify the gpio output level, please refer to enum qca_gpio_value
  7924. * to get the available value that this item can use.
  7925. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7926. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7927. *
  7928. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  7929. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  7930. * to get the available value that this item can use.
  7931. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7932. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7933. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7934. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7935. * attribute is present.
  7936. *
  7937. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  7938. * value to specify the gpio interrupt mode, please refer to enum
  7939. * qca_gpio_interrupt_mode to get the available value that this item can use.
  7940. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7941. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7942. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7943. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7944. * attribute is present.
  7945. *
  7946. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  7947. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  7948. * to get the available value that this item can use.
  7949. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7950. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7951. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7952. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7953. * attribute is present.
  7954. *
  7955. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  7956. * Value to specify the mux config. Meaning of a given value is dependent
  7957. * on the target chipset and gpio pin. Must be of the range 0-15.
  7958. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7959. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  7960. *
  7961. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  7962. * Value to specify the drive, Refer to enum qca_gpio_drive.
  7963. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7964. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  7965. *
  7966. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  7967. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7968. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  7969. * other parameters for the given GPIO will be obtained from internal
  7970. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  7971. * specified to indicate the GPIO pin being configured.
  7972. */
  7973. enum qca_wlan_gpio_attr {
  7974. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  7975. /* Unsigned 32-bit attribute for GPIO command */
  7976. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  7977. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  7978. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  7979. /* Unsigned 32-bit attribute for GPIO value to configure */
  7980. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  7981. /* Unsigned 32-bit attribute for GPIO pull type */
  7982. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  7983. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  7984. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  7985. /* Unsigned 32-bit attribute for GPIO direction to configure */
  7986. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  7987. /* Unsigned 32-bit attribute for GPIO mux config */
  7988. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  7989. /* Unsigned 32-bit attribute for GPIO drive */
  7990. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  7991. /* Flag attribute for using internal gpio configuration */
  7992. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  7993. /* keep last */
  7994. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  7995. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  7996. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  7997. };
  7998. /**
  7999. * enum gpio_cmd_type - GPIO configuration command type
  8000. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  8001. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  8002. */
  8003. enum qca_gpio_cmd_type {
  8004. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  8005. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  8006. };
  8007. /**
  8008. * enum qca_gpio_pull_type - GPIO pull type
  8009. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  8010. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  8011. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  8012. */
  8013. enum qca_gpio_pull_type {
  8014. QCA_WLAN_GPIO_PULL_NONE = 0,
  8015. QCA_WLAN_GPIO_PULL_UP = 1,
  8016. QCA_WLAN_GPIO_PULL_DOWN = 2,
  8017. QCA_WLAN_GPIO_PULL_MAX,
  8018. };
  8019. /**
  8020. * enum qca_gpio_direction - GPIO direction
  8021. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  8022. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  8023. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  8024. */
  8025. enum qca_gpio_direction {
  8026. QCA_WLAN_GPIO_INPUT = 0,
  8027. QCA_WLAN_GPIO_OUTPUT = 1,
  8028. QCA_WLAN_GPIO_DIR_MAX,
  8029. };
  8030. /**
  8031. * enum qca_gpio_value - GPIO Value
  8032. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  8033. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  8034. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  8035. */
  8036. enum qca_gpio_value {
  8037. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  8038. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  8039. QCA_WLAN_GPIO_LEVEL_MAX,
  8040. };
  8041. /**
  8042. * enum gpio_interrupt_mode - GPIO interrupt mode
  8043. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  8044. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  8045. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  8046. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  8047. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  8048. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  8049. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  8050. */
  8051. enum qca_gpio_interrupt_mode {
  8052. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  8053. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  8054. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  8055. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  8056. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  8057. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  8058. QCA_WLAN_GPIO_INTMODE_MAX,
  8059. };
  8060. /**
  8061. * enum gpio_drive - GPIO drive
  8062. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  8063. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  8064. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  8065. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  8066. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  8067. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  8068. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  8069. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  8070. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  8071. */
  8072. enum qca_gpio_drive {
  8073. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  8074. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  8075. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  8076. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  8077. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  8078. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  8079. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  8080. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  8081. QCA_WLAN_GPIO_DRIVE_MAX,
  8082. };
  8083. /**
  8084. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  8085. * MSDUQ depth threshold per peer per tid in the target
  8086. *
  8087. * Associated Vendor Command:
  8088. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  8089. */
  8090. enum qca_wlan_set_qdepth_thresh_attr {
  8091. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  8092. /* 6-byte MAC address */
  8093. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  8094. /* Unsigned 32-bit attribute for holding the TID */
  8095. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  8096. /* Unsigned 32-bit attribute for holding the update mask
  8097. * bit 0 - Update high priority msdu qdepth threshold
  8098. * bit 1 - Update low priority msdu qdepth threshold
  8099. * bit 2 - Update UDP msdu qdepth threshold
  8100. * bit 3 - Update Non UDP msdu qdepth threshold
  8101. * rest of bits are reserved
  8102. */
  8103. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  8104. /* Unsigned 32-bit attribute for holding the threshold value */
  8105. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  8106. /* keep last */
  8107. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  8108. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  8109. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  8110. };
  8111. /**
  8112. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  8113. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  8114. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  8115. * external ACS policies to select the channels w.r.t. the PCL weights.
  8116. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  8117. * their PCL weights.)
  8118. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  8119. * select a channel with non-zero PCL weight.
  8120. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  8121. * channel with non-zero PCL weight.
  8122. *
  8123. */
  8124. enum qca_wlan_vendor_attr_external_acs_policy {
  8125. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  8126. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  8127. };
  8128. /**
  8129. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  8130. */
  8131. enum qca_wlan_vendor_attr_spectral_scan {
  8132. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  8133. /*
  8134. * Number of times the chip enters spectral scan mode before
  8135. * deactivating spectral scans. When set to 0, chip will enter spectral
  8136. * scan mode continuously. u32 attribute.
  8137. */
  8138. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  8139. /*
  8140. * Spectral scan period. Period increment resolution is 256*Tclk,
  8141. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  8142. */
  8143. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  8144. /* Spectral scan priority. u32 attribute. */
  8145. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  8146. /* Number of FFT data points to compute. u32 attribute. */
  8147. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  8148. /*
  8149. * Enable targeted gain change before starting the spectral scan FFT.
  8150. * u32 attribute.
  8151. */
  8152. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  8153. /* Restart a queued spectral scan. u32 attribute. */
  8154. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  8155. /*
  8156. * Noise floor reference number for the calculation of bin power.
  8157. * u32 attribute.
  8158. */
  8159. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  8160. /*
  8161. * Disallow spectral scan triggers after TX/RX packets by setting
  8162. * this delay value to roughly SIFS time period or greater.
  8163. * u32 attribute.
  8164. */
  8165. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  8166. /*
  8167. * Number of strong bins (inclusive) per sub-channel, below
  8168. * which a signal is declared a narrow band tone. u32 attribute.
  8169. */
  8170. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  8171. /*
  8172. * Specify the threshold over which a bin is declared strong (for
  8173. * scan bandwidth analysis). u32 attribute.
  8174. */
  8175. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  8176. /* Spectral scan report mode. u32 attribute. */
  8177. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  8178. /*
  8179. * RSSI report mode, if the ADC RSSI is below
  8180. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  8181. * then FFTs will not trigger, but timestamps and summaries get
  8182. * reported. u32 attribute.
  8183. */
  8184. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  8185. /*
  8186. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  8187. * to ensure spectral scan reporting with normal error code.
  8188. * u32 attribute.
  8189. */
  8190. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  8191. /*
  8192. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  8193. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  8194. * u32 attribute.
  8195. */
  8196. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  8197. /*
  8198. * Format of FFT report to software for spectral scan triggered FFTs.
  8199. * 0: No FFT report (only spectral scan summary report)
  8200. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  8201. * report
  8202. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  8203. * bins (in-band) per FFT + spectral scan summary report
  8204. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  8205. * bins (all) per FFT + spectral scan summary report
  8206. * u32 attribute.
  8207. */
  8208. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  8209. /*
  8210. * Number of LSBs to shift out in order to scale the FFT bins.
  8211. * u32 attribute.
  8212. */
  8213. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  8214. /*
  8215. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  8216. * in dBm power. u32 attribute.
  8217. */
  8218. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  8219. /*
  8220. * Per chain enable mask to select input ADC for search FFT.
  8221. * u32 attribute.
  8222. */
  8223. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  8224. /*
  8225. * An unsigned 64-bit integer provided by host driver to identify the
  8226. * spectral scan request. This attribute is included in the scan
  8227. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  8228. * and used as an attribute in
  8229. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  8230. * specific scan to be stopped.
  8231. */
  8232. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  8233. /* Skip interval for FFT reports. u32 attribute */
  8234. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  8235. /* Set to report only one set of FFT results.
  8236. * u32 attribute.
  8237. */
  8238. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  8239. /* Debug level for spectral module in driver.
  8240. * 0 : Verbosity level 0
  8241. * 1 : Verbosity level 1
  8242. * 2 : Verbosity level 2
  8243. * 3 : Matched filterID display
  8244. * 4 : One time dump of FFT report
  8245. * u32 attribute.
  8246. */
  8247. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  8248. /* Type of spectral scan request. u32 attribute.
  8249. * It uses values defined in enum
  8250. * qca_wlan_vendor_attr_spectral_scan_request_type.
  8251. */
  8252. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  8253. /* This specifies the frequency span over which spectral
  8254. * scan would be carried out. Its value depends on the
  8255. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  8256. * the relation is as follows.
  8257. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8258. * Not applicable. Spectral scan would happen in the
  8259. * operating span.
  8260. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8261. * Center frequency (in MHz) of the span of interest or
  8262. * for convenience, center frequency (in MHz) of any channel
  8263. * in the span of interest. For 80+80 MHz agile spectral scan
  8264. * request it represents center frequency (in MHz) of the primary
  8265. * 80 MHz span or for convenience, center frequency (in MHz) of any
  8266. * channel in the primary 80 MHz span. If agile spectral scan is
  8267. * initiated without setting a valid frequency it returns the
  8268. * error code
  8269. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  8270. * u32 attribute.
  8271. */
  8272. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  8273. /* Spectral scan mode. u32 attribute.
  8274. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8275. * If this attribute is not present, it is assumed to be
  8276. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  8277. */
  8278. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  8279. /* Spectral scan error code. u32 attribute.
  8280. * It uses values defined in enum
  8281. * qca_wlan_vendor_spectral_scan_error_code.
  8282. * This attribute is included only in failure scenarios.
  8283. */
  8284. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  8285. /* 8-bit unsigned value to enable/disable debug of the
  8286. * Spectral DMA ring.
  8287. * 1-enable, 0-disable
  8288. */
  8289. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  8290. /* 8-bit unsigned value to enable/disable debug of the
  8291. * Spectral DMA buffers.
  8292. * 1-enable, 0-disable
  8293. */
  8294. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  8295. /* This specifies the frequency span over which spectral scan would be
  8296. * carried out. Its value depends on the value of
  8297. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  8298. * follows.
  8299. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8300. * Not applicable. Spectral scan would happen in the operating span.
  8301. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8302. * This attribute is applicable only for agile spectral scan
  8303. * requests in 80+80 MHz mode. It represents center frequency (in
  8304. * MHz) of the secondary 80 MHz span or for convenience, center
  8305. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  8306. * u32 attribute.
  8307. */
  8308. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  8309. /* This attribute specifies the bandwidth to be used for Spectral scan
  8310. * operation. This is an u8 attribute and uses the values in enum
  8311. * nl80211_chan_width. This is an optional attribute.
  8312. * If this attribute is not populated, the driver should configure the
  8313. * Spectral scan bandwidth to the maximum value supported by the target
  8314. * for the current operating bandwidth.
  8315. */
  8316. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  8317. /* Spectral FFT recapture flag attribute, to enable/disable FFT
  8318. * recapture. Recapture can only be enabled for Scan period greater
  8319. * than 52us.
  8320. * If this attribute is enabled, re-triggers will be enabled in uCode
  8321. * when AGC gain changes.
  8322. */
  8323. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
  8324. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  8325. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  8326. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  8327. };
  8328. /**
  8329. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  8330. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  8331. */
  8332. enum qca_wlan_vendor_attr_spectral_diag_stats {
  8333. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  8334. /* Number of spectral TLV signature mismatches.
  8335. * u64 attribute.
  8336. */
  8337. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  8338. /* Number of spectral phyerror events with insufficient length when
  8339. * parsing for secondary 80 search FFT report. u64 attribute.
  8340. */
  8341. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  8342. /* Number of spectral phyerror events without secondary 80
  8343. * search FFT report. u64 attribute.
  8344. */
  8345. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  8346. /* Number of spectral phyerror events with vht operation segment 1 id
  8347. * mismatches in search fft report. u64 attribute.
  8348. */
  8349. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  8350. /* Number of spectral phyerror events with vht operation segment 2 id
  8351. * mismatches in search fft report. u64 attribute.
  8352. */
  8353. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  8354. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  8355. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  8356. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  8357. };
  8358. /**
  8359. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  8360. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  8361. */
  8362. enum qca_wlan_vendor_attr_spectral_cap {
  8363. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  8364. /* Flag attribute to indicate phydiag capability */
  8365. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  8366. /* Flag attribute to indicate radar detection capability */
  8367. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  8368. /* Flag attribute to indicate spectral capability */
  8369. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  8370. /* Flag attribute to indicate advanced spectral capability */
  8371. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  8372. /* Spectral hardware generation. u32 attribute.
  8373. * It uses values defined in enum
  8374. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  8375. */
  8376. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  8377. /* Spectral bin scaling formula ID. u16 attribute.
  8378. * It uses values defined in enum
  8379. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  8380. */
  8381. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  8382. /* Spectral bin scaling param - low level offset.
  8383. * s16 attribute.
  8384. */
  8385. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  8386. /* Spectral bin scaling param - high level offset.
  8387. * s16 attribute.
  8388. */
  8389. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  8390. /* Spectral bin scaling param - RSSI threshold.
  8391. * s16 attribute.
  8392. */
  8393. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  8394. /* Spectral bin scaling param - default AGC max gain.
  8395. * u8 attribute.
  8396. */
  8397. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  8398. /* Flag attribute to indicate agile spectral scan capability
  8399. * for 20/40/80 MHz modes.
  8400. */
  8401. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  8402. /* Flag attribute to indicate agile spectral scan capability
  8403. * for 160 MHz mode.
  8404. */
  8405. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  8406. /* Flag attribute to indicate agile spectral scan capability
  8407. * for 80+80 MHz mode.
  8408. */
  8409. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  8410. /* Number of spectral detectors used for scan in 20 MHz.
  8411. * u32 attribute.
  8412. */
  8413. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  8414. /* Number of spectral detectors used for scan in 40 MHz.
  8415. * u32 attribute.
  8416. */
  8417. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  8418. /* Number of spectral detectors used for scan in 80 MHz.
  8419. * u32 attribute.
  8420. */
  8421. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  8422. /* Number of spectral detectors used for scan in 160 MHz.
  8423. * u32 attribute.
  8424. */
  8425. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  8426. /* Number of spectral detectors used for scan in 80+80 MHz.
  8427. * u32 attribute.
  8428. */
  8429. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  8430. /* Flag attribute to indicate agile spectral scan capability
  8431. * for 320 MHz mode.
  8432. */
  8433. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
  8434. /* Number of spectral detectors used for scan in 320 MHz.
  8435. * u32 attribute.
  8436. */
  8437. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
  8438. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  8439. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  8440. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  8441. };
  8442. /**
  8443. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  8444. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  8445. */
  8446. enum qca_wlan_vendor_attr_spectral_scan_status {
  8447. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  8448. /* Flag attribute to indicate whether spectral scan is enabled */
  8449. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  8450. /* Flag attribute to indicate whether spectral scan is in progress*/
  8451. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  8452. /* Spectral scan mode. u32 attribute.
  8453. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8454. * If this attribute is not present, normal mode
  8455. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  8456. * requested.
  8457. */
  8458. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  8459. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  8460. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  8461. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  8462. };
  8463. /**
  8464. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  8465. * wlan latency module.
  8466. *
  8467. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  8468. * power saving which would causing data exchange out of service, this
  8469. * would be a big impact on latency. For latency sensitive applications over
  8470. * Wi-Fi are intolerant to such operations and thus would configure them
  8471. * to meet their respective needs. It is well understood by such applications
  8472. * that altering the default behavior would degrade the Wi-Fi functionality
  8473. * w.r.t the above pointed WLAN operations.
  8474. *
  8475. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  8476. * Default WLAN operation level which throughput orientated.
  8477. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
  8478. * Use XR level to benefit XR (extended reality) application to achieve
  8479. * latency and power by via constraint scan/roaming/adaptive PS.
  8480. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  8481. * Use low latency level to benefit application like concurrent
  8482. * downloading or video streaming via constraint scan/adaptive PS.
  8483. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  8484. * Use ultra low latency level to benefit for gaming/voice
  8485. * application via constraint scan/roaming/adaptive PS.
  8486. */
  8487. enum qca_wlan_vendor_attr_config_latency_level {
  8488. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  8489. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  8490. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
  8491. /* legacy name */
  8492. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
  8493. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
  8494. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  8495. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  8496. /* keep last */
  8497. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  8498. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  8499. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  8500. };
  8501. /**
  8502. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  8503. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  8504. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  8505. * spectral scan request types.
  8506. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  8507. * set the spectral parameters and start scan.
  8508. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  8509. * only set the spectral parameters.
  8510. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  8511. * only start the spectral scan.
  8512. */
  8513. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  8514. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  8515. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  8516. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  8517. };
  8518. /**
  8519. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  8520. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  8521. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  8522. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  8523. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  8524. * spectral scan modes.
  8525. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  8526. * spectral scan in the current operating span.
  8527. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  8528. * spectral scan in the configured agile span.
  8529. */
  8530. enum qca_wlan_vendor_spectral_scan_mode {
  8531. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  8532. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  8533. };
  8534. /**
  8535. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  8536. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  8537. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  8538. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  8539. * of a parameter is not supported.
  8540. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  8541. * mode is not supported.
  8542. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  8543. * has invalid value.
  8544. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  8545. * is not initialized.
  8546. */
  8547. enum qca_wlan_vendor_spectral_scan_error_code {
  8548. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  8549. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  8550. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  8551. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  8552. };
  8553. /**
  8554. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  8555. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  8556. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8557. * spectral hardware generation.
  8558. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  8559. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  8560. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  8561. */
  8562. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  8563. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  8564. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  8565. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  8566. };
  8567. /**
  8568. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  8569. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  8570. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8571. * Spectral bin scaling formula ID.
  8572. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  8573. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  8574. * and RSSI threshold based formula.
  8575. */
  8576. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  8577. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  8578. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  8579. };
  8580. /**
  8581. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  8582. * RF Operating Parameter (RROP) information is available, and if so, at which
  8583. * point in the application-driver interaction sequence it can be retrieved by
  8584. * the application from the driver. This point may vary by architecture and
  8585. * other factors. This is a u16 value.
  8586. */
  8587. enum qca_wlan_vendor_attr_rropavail_info {
  8588. /* RROP information is unavailable. */
  8589. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  8590. /* RROP information is available and the application can retrieve the
  8591. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  8592. * event from the driver.
  8593. */
  8594. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  8595. /* RROP information is available only after a vendor specific scan
  8596. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  8597. * successfully completed. The application can retrieve the information
  8598. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  8599. * the driver.
  8600. */
  8601. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  8602. };
  8603. /**
  8604. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  8605. * Representative RF Operating Parameter (RROP) information. It is sent for the
  8606. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  8607. * intended for use by external Auto Channel Selection applications. It provides
  8608. * guidance values for some RF parameters that are used by the system during
  8609. * operation. These values could vary by channel, band, radio, and so on.
  8610. */
  8611. enum qca_wlan_vendor_attr_rrop_info {
  8612. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  8613. /* Representative Tx Power List (RTPL) which has an array of nested
  8614. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  8615. */
  8616. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  8617. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  8618. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  8619. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  8620. };
  8621. /**
  8622. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  8623. * entry instances in the Representative Tx Power List (RTPL). It provides
  8624. * simplified power values intended for helping external Auto channel Selection
  8625. * applications compare potential Tx power performance between channels, other
  8626. * operating conditions remaining identical. These values are not necessarily
  8627. * the actual Tx power values that will be used by the system. They are also not
  8628. * necessarily the max or average values that will be used. Instead, they are
  8629. * relative, summarized keys for algorithmic use computed by the driver or
  8630. * underlying firmware considering a number of vendor specific factors.
  8631. */
  8632. enum qca_wlan_vendor_attr_rtplinst {
  8633. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  8634. /* Primary channel number (u8).
  8635. * Note: If both the driver and user space application support the
  8636. * 6 GHz band, this attribute is deprecated and
  8637. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  8638. * maintain backward compatibility,
  8639. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  8640. * driver or user space application or both do not support the 6 GHz
  8641. * band.
  8642. */
  8643. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  8644. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  8645. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  8646. /* Representative Tx power in dBm (s32) with emphasis on range. */
  8647. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  8648. /* Primary channel center frequency (u32) in MHz */
  8649. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  8650. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  8651. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  8652. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  8653. };
  8654. /**
  8655. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  8656. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8657. *
  8658. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  8659. * array of nested values as per attributes in
  8660. * enum qca_wlan_vendor_attr_mac_mode_info.
  8661. */
  8662. enum qca_wlan_vendor_attr_mac {
  8663. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  8664. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  8665. /* keep last */
  8666. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  8667. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  8668. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  8669. };
  8670. /**
  8671. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  8672. * WiFi netdev interface on a respective MAC. Used by the attribute
  8673. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  8674. *
  8675. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  8676. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  8677. * the connected Wi-Fi interface(u32).
  8678. */
  8679. enum qca_wlan_vendor_attr_mac_iface_info {
  8680. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  8681. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  8682. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  8683. /* keep last */
  8684. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  8685. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  8686. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  8687. };
  8688. /**
  8689. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  8690. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  8691. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8692. *
  8693. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  8694. * MAC (u32)
  8695. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  8696. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  8697. * in enum nl80211_band.
  8698. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  8699. * interfaces associated with this MAC. Represented by enum
  8700. * qca_wlan_vendor_attr_mac_iface_info.
  8701. */
  8702. enum qca_wlan_vendor_attr_mac_info {
  8703. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  8704. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  8705. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  8706. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  8707. /* keep last */
  8708. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  8709. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  8710. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  8711. };
  8712. /**
  8713. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  8714. * to get thermal status from driver/firmware.
  8715. * enum values are used for NL attributes encapsulated inside
  8716. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  8717. *
  8718. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  8719. * of a thermal level in Celsius. u32 size.
  8720. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  8721. * of a thermal level in Celsius. u32 size.
  8722. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  8723. * thermal level in milliseconds. u32 size.
  8724. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  8725. * of times the temperature crossed into the temperature range defined by the
  8726. * thermal level from both higher and lower directions. u32 size.
  8727. */
  8728. enum qca_wlan_vendor_attr_thermal_stats {
  8729. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  8730. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  8731. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  8732. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  8733. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  8734. /* keep last */
  8735. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  8736. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  8737. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  8738. };
  8739. /**
  8740. * enum he_fragmentation_val - HE fragmentation support values
  8741. * Indicates level of dynamic fragmentation that is supported by
  8742. * a STA as a recipient.
  8743. * HE fragmentation values are defined as per 11ax spec and are used in
  8744. * HE capability IE to advertise the support. These values are validated
  8745. * in the driver to check the device capability and advertised in the HE
  8746. * capability element.
  8747. *
  8748. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  8749. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  8750. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  8751. * within an A-MPDU that is not an S-MPDU.
  8752. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  8753. * contained within an MPDU or S-MPDU and support for up to one dynamic
  8754. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  8755. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  8756. * MPDU or S-MPDU.
  8757. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  8758. * contained within an MPDU or S-MPDU and support for multiple dynamic
  8759. * fragments for each MSDU and for each A-MSDU if supported by the
  8760. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  8761. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  8762. */
  8763. enum he_fragmentation_val {
  8764. HE_FRAG_DISABLE,
  8765. HE_FRAG_LEVEL1,
  8766. HE_FRAG_LEVEL2,
  8767. HE_FRAG_LEVEL3,
  8768. };
  8769. /**
  8770. * enum he_mcs_config - HE MCS support configuration
  8771. *
  8772. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  8773. * These values are used in driver to configure the HE MCS map to advertise
  8774. * Tx/Rx MCS map in HE capability and these values are applied for all the
  8775. * streams supported by the device. To configure MCS for different bandwidths,
  8776. * vendor command needs to be sent using this attribute with appropriate value.
  8777. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  8778. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  8779. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  8780. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  8781. *
  8782. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  8783. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  8784. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  8785. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  8786. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  8787. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  8788. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  8789. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  8790. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  8791. */
  8792. enum he_mcs_config {
  8793. HE_80_MCS0_7 = 0,
  8794. HE_80_MCS0_9 = 1,
  8795. HE_80_MCS0_11 = 2,
  8796. HE_160_MCS0_7 = 4,
  8797. HE_160_MCS0_9 = 5,
  8798. HE_160_MCS0_11 = 6,
  8799. HE_80p80_MCS0_7 = 8,
  8800. HE_80p80_MCS0_9 = 9,
  8801. HE_80p80_MCS0_11 = 10,
  8802. };
  8803. /**
  8804. * enum qca_wlan_ba_session_config - BA session configuration
  8805. *
  8806. * Indicates the configuration values for BA session configuration attribute.
  8807. *
  8808. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  8809. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  8810. */
  8811. enum qca_wlan_ba_session_config {
  8812. QCA_WLAN_ADD_BA = 1,
  8813. QCA_WLAN_DELETE_BA = 2,
  8814. };
  8815. /**
  8816. * enum qca_wlan_ac_type - access category type
  8817. *
  8818. * Indicates the access category type value.
  8819. *
  8820. * @QCA_WLAN_AC_BE: BE access category
  8821. * @QCA_WLAN_AC_BK: BK access category
  8822. * @QCA_WLAN_AC_VI: VI access category
  8823. * @QCA_WLAN_AC_VO: VO access category
  8824. * @QCA_WLAN_AC_ALL: All ACs
  8825. */
  8826. enum qca_wlan_ac_type {
  8827. QCA_WLAN_AC_BE = 0,
  8828. QCA_WLAN_AC_BK = 1,
  8829. QCA_WLAN_AC_VI = 2,
  8830. QCA_WLAN_AC_VO = 3,
  8831. QCA_WLAN_AC_ALL = 4,
  8832. };
  8833. /**
  8834. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  8835. *
  8836. * Indicates the HE LTF configuration value.
  8837. *
  8838. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  8839. * the mandatory HE-LTF based on the GI setting
  8840. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  8841. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  8842. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  8843. */
  8844. enum qca_wlan_he_ltf_cfg {
  8845. QCA_WLAN_HE_LTF_AUTO = 0,
  8846. QCA_WLAN_HE_LTF_1X = 1,
  8847. QCA_WLAN_HE_LTF_2X = 2,
  8848. QCA_WLAN_HE_LTF_4X = 3,
  8849. };
  8850. /**
  8851. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  8852. *
  8853. * Indicates the HE trigger frame MAC padding duration value.
  8854. *
  8855. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  8856. * process the trigger frame.
  8857. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  8858. * trigger frame.
  8859. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  8860. * trigger frame.
  8861. */
  8862. enum qca_wlan_he_mac_padding_dur {
  8863. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  8864. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  8865. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  8866. };
  8867. /**
  8868. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  8869. *
  8870. * Indicates the HE Operating mode control channel width setting value.
  8871. *
  8872. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  8873. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  8874. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  8875. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  8876. */
  8877. enum qca_wlan_he_om_ctrl_ch_bw {
  8878. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  8879. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  8880. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  8881. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  8882. };
  8883. /**
  8884. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  8885. *
  8886. * Indicates the frame types to use for keep alive data.
  8887. *
  8888. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  8889. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  8890. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  8891. */
  8892. enum qca_wlan_keep_alive_data_type {
  8893. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  8894. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  8895. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  8896. };
  8897. /**
  8898. * enum eht_mcs_config - EHT MCS support configuration
  8899. *
  8900. * Configures the EHT Tx/Rx MCS map in EHT Capability element.
  8901. * These values are used in the driver to configure the EHT MCS map to advertise
  8902. * Tx/Rx MCS map in EHT capability and these values are applied for all the
  8903. * streams supported by the device.
  8904. * @EHT_MCS0_7: EHT MCS 0 to 7 support
  8905. * @EHT_MCS0_9: EHT MCS 0 to 9 support
  8906. * @EHT_MCS0_11: EHT MCS 0 to 11 support
  8907. * @EHT_MCS0_13: EHT MCS 0 to 13 support
  8908. */
  8909. enum eht_mcs_config {
  8910. EHT_MCS0_7 = 0,
  8911. EHT_MCS0_9 = 1,
  8912. EHT_MCS0_11 = 2,
  8913. EHT_MCS0_13 = 3,
  8914. };
  8915. /**
  8916. * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
  8917. * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
  8918. * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
  8919. * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
  8920. * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
  8921. * multi-link multi radio mode.
  8922. * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
  8923. * multi-link multi radio mode.
  8924. */
  8925. enum qca_wlan_eht_mlo_mode {
  8926. QCA_WLAN_EHT_MODE_INVALID = 0,
  8927. QCA_WLAN_EHT_MLSR = 1,
  8928. QCA_WLAN_EHT_EMLSR = 2,
  8929. QCA_WLAN_EHT_NON_STR_MLMR = 3,
  8930. QCA_WLAN_EHT_STR_MLMR = 4,
  8931. };
  8932. /**
  8933. * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
  8934. * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
  8935. * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
  8936. */
  8937. enum qca_wlan_emlsr_mode {
  8938. QCA_WLAN_EMLSR_MODE_ENTER = 0,
  8939. QCA_WLAN_EMLSR_MODE_EXIT = 1,
  8940. };
  8941. /**
  8942. * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
  8943. * EHT operating mode control transmit request. These attributes are
  8944. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
  8945. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  8946. *
  8947. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  8948. * indicates the maximum number of spatial streams, NSS, that the STA
  8949. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  8950. * and is set to NSS - 1.
  8951. *
  8952. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  8953. * indicates the operating channel width supported by the STA for both
  8954. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  8955. *
  8956. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  8957. * indicates the all trigger based UL MU operations by the STA.
  8958. * 0 - UL MU operations are enabled by the STA.
  8959. * 1 - All triggered UL MU transmissions are suspended by the STA.
  8960. *
  8961. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  8962. * indicates the maximum number of space-time streams, NSTS, that
  8963. * the STA supports in transmission and is set to NSTS - 1.
  8964. *
  8965. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  8966. * combined with the UL MU Disable subfield and the recipient's setting
  8967. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  8968. * capabilities to determine which HE TB PPDUs are possible by the
  8969. * STA to transmit.
  8970. * 0 - UL MU data operations are enabled by the STA.
  8971. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  8972. * bit is not set, else UL MU Tx is suspended.
  8973. *
  8974. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  8975. * Control subfield combined with the Rx NSS subfield in the OM Control subfield
  8976. * indicates NSS - 1, where NSS is the maximum number of spatial streams that
  8977. * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
  8978. *
  8979. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
  8980. * 320 MHz operating channel width supported by the EHT STA for both reception
  8981. * and transmission.
  8982. *
  8983. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  8984. * Control subfield combined with the Tx NSTS subfield in OM Control subfield
  8985. * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
  8986. * that the STA supports in transmission for PPDU bandwidths less than or equal
  8987. * to 80 MHz.
  8988. */
  8989. enum qca_wlan_vendor_attr_omi_tx {
  8990. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  8991. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  8992. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  8993. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  8994. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  8995. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  8996. QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
  8997. QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
  8998. QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
  8999. /* keep last */
  9000. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
  9001. QCA_WLAN_VENDOR_ATTR_OMI_MAX =
  9002. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
  9003. };
  9004. /* deprecated legacy names */
  9005. #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
  9006. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
  9007. #define qca_wlan_vendor_attr_he_omi_tx \
  9008. qca_wlan_vendor_attr_omi_tx
  9009. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
  9010. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
  9011. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
  9012. QCA_WLAN_VENDOR_ATTR_OMI_MAX
  9013. /**
  9014. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  9015. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  9016. *
  9017. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  9018. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  9019. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  9020. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  9021. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  9022. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  9023. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  9024. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  9025. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  9026. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  9027. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  9028. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  9029. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  9030. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  9031. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  9032. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  9033. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  9034. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  9035. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  9036. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  9037. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  9038. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  9039. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  9040. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  9041. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  9042. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  9043. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  9044. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  9045. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  9046. */
  9047. enum qca_wlan_vendor_phy_mode {
  9048. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  9049. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  9050. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  9051. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  9052. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  9053. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  9054. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  9055. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  9056. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  9057. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  9058. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  9059. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  9060. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  9061. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  9062. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  9063. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  9064. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  9065. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  9066. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  9067. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  9068. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  9069. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  9070. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  9071. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  9072. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  9073. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  9074. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  9075. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  9076. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  9077. };
  9078. /* Attributes for data used by
  9079. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  9080. */
  9081. enum qca_wlan_vendor_attr_wifi_test_config {
  9082. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  9083. /* 8-bit unsigned value to configure the driver to enable/disable
  9084. * WMM feature. This attribute is used to configure testbed device.
  9085. * 1-enable, 0-disable
  9086. */
  9087. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  9088. /* 8-bit unsigned value to configure the driver to accept/reject
  9089. * the addba request from peer. This attribute is used to configure
  9090. * the testbed device.
  9091. * 1-accept addba, 0-reject addba
  9092. */
  9093. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  9094. /* 8-bit unsigned value to configure the driver to send or not to
  9095. * send the addba request to peer.
  9096. * This attribute is used to configure the testbed device.
  9097. * 1-send addba, 0-do not send addba
  9098. */
  9099. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  9100. /* 8-bit unsigned value to indicate the HE fragmentation support.
  9101. * Uses enum he_fragmentation_val values.
  9102. * This attribute is used to configure the testbed device to
  9103. * allow the advertised hardware capabilities to be downgraded
  9104. * for testing purposes.
  9105. */
  9106. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  9107. /* 8-bit unsigned value to indicate the HE MCS support.
  9108. * Uses enum he_mcs_config values.
  9109. * This attribute is used to configure the testbed device to
  9110. * allow the advertised hardware capabilities to be downgraded
  9111. * for testing purposes.
  9112. */
  9113. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  9114. /* 8-bit unsigned value to configure the driver to allow or not to
  9115. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  9116. * This attribute is used to configure the testbed device.
  9117. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  9118. */
  9119. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  9120. /* 8-bit unsigned value to configure the driver to add a
  9121. * new BA session or delete the existing BA session for
  9122. * given TID. ADDBA command uses the buffer size and tid
  9123. * configuration if user specifies the values else default
  9124. * value for buffer size is used for all tids if the tid
  9125. * also not specified. For DEL_BA command TID value is
  9126. * required to process the command.
  9127. * Uses enum qca_wlan_ba_session_config values.
  9128. * This attribute is used to configure the testbed device.
  9129. */
  9130. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  9131. /* 16-bit unsigned value to configure the buffer size in addba
  9132. * request and response frames.
  9133. * This attribute is used to configure the testbed device.
  9134. * The range of the value is 0 to 256.
  9135. */
  9136. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  9137. /* 8-bit unsigned value to configure the buffer size in addba
  9138. * request and response frames.
  9139. * This attribute is used to configure the testbed device.
  9140. */
  9141. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  9142. /* 8-bit unsigned value to configure the no ack policy.
  9143. * To configure no ack policy, access category value
  9144. * is required to process the command.
  9145. * This attribute is used to configure the testbed device.
  9146. * 1 - enable no ack, 0 - disable no ack
  9147. */
  9148. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  9149. /* 8-bit unsigned value to configure the AC for no ack policy
  9150. * This attribute is used to configure the testbed device.
  9151. * uses the enum qca_wlan_ac_type values
  9152. */
  9153. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  9154. /* 8-bit unsigned value to configure the HE LTF
  9155. * This attribute is used to configure the testbed device.
  9156. * Uses the enum qca_wlan_he_ltf_cfg values.
  9157. */
  9158. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  9159. /* 8-bit unsigned value to configure the tx beamformee.
  9160. * This attribute is used to configure the testbed device.
  9161. * 1 - enable, 0 - disable.
  9162. */
  9163. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  9164. /* 8-bit unsigned value to configure the tx beamformee number of
  9165. * space-time streams.
  9166. * This attribute is used to configure the testbed device.
  9167. * The range of the value is 0 to 8
  9168. */
  9169. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  9170. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  9171. * This attribute is used to configure the testbed device.
  9172. * Uses the enum qca_wlan_ac_type values.
  9173. */
  9174. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  9175. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  9176. * To configure MU EDCA AIFSN value, MU EDCA access category value
  9177. * is required to process the command.
  9178. * This attribute is used to configure the testbed device.
  9179. */
  9180. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  9181. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  9182. * given AC.
  9183. * To configure MU EDCA ECW min value, MU EDCA access category value
  9184. * is required to process the command.
  9185. * This attribute is used to configure the testbed device.
  9186. */
  9187. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  9188. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  9189. * given AC.
  9190. * To configure MU EDCA ECW max value, MU EDCA access category value
  9191. * is required to process the command.
  9192. * This attribute is used to configure the testbed device.
  9193. */
  9194. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  9195. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  9196. * To configure MU EDCA timer value, MU EDCA access category value
  9197. * is required to process the command.
  9198. * This attribute is used to configure the testbed device.
  9199. */
  9200. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  9201. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  9202. * duration.
  9203. * This attribute is used to configure the testbed device.
  9204. * Uses the enum qca_wlan_he_mac_padding_dur values.
  9205. */
  9206. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  9207. /* 8-bit unsigned value to override the MU EDCA params to defaults
  9208. * regardless of the AP beacon MU EDCA params. If it is enabled use
  9209. * the default values else use the MU EDCA params from AP beacon.
  9210. * This attribute is used to configure the testbed device.
  9211. * 1 - enable override, 0 - disable.
  9212. */
  9213. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  9214. /* 8-bit unsigned value to configure the support for receiving
  9215. * an MPDU that contains an operating mode control subfield.
  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_OM_CTRL_SUPP = 22,
  9220. /* Nested attribute values required to setup the TWT session.
  9221. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  9222. * information to set up the session. It contains broadcast flags,
  9223. * set_up flags, trigger value, flow type, flow ID, wake interval
  9224. * exponent, protection, target wake time, wake duration, wake interval
  9225. * mantissa. These nested attributes are used to setup a host triggered
  9226. * TWT session.
  9227. */
  9228. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  9229. /* This nested attribute is used to terminate the current TWT session.
  9230. * It does not currently carry any attributes.
  9231. */
  9232. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  9233. /* This nested attribute is used to suspend the current TWT session.
  9234. * It does not currently carry any attributes.
  9235. */
  9236. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  9237. /* Nested attribute values to indicate the request for resume.
  9238. * This attribute is used to resume the TWT session.
  9239. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  9240. * parameters required to resume the TWT session.
  9241. */
  9242. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  9243. /* 8-bit unsigned value to set the HE operating mode control
  9244. * (OM CTRL) Channel Width subfield.
  9245. * The Channel Width subfield indicates the operating channel width
  9246. * supported by the STA for both reception and transmission.
  9247. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  9248. * This setting is cleared with the
  9249. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9250. * flag attribute to reset defaults.
  9251. * This attribute is used to configure the testbed device.
  9252. */
  9253. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  9254. /* 8-bit unsigned value to configure the number of spatial
  9255. * streams in HE operating mode control field.
  9256. * This setting is cleared with the
  9257. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9258. * flag attribute to reset defaults.
  9259. * This attribute is used to configure the testbed device.
  9260. */
  9261. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  9262. /* Flag attribute to configure the UL MU disable bit in
  9263. * HE operating mode control field.
  9264. * This setting is cleared with the
  9265. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9266. * flag attribute to reset defaults.
  9267. * This attribute is used to configure the testbed device.
  9268. */
  9269. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  9270. /* Flag attribute to clear the previously set HE operating mode
  9271. * control field configuration.
  9272. * This attribute is used to configure the testbed device to reset
  9273. * defaults to clear any previously set HE operating mode control
  9274. * field configuration.
  9275. */
  9276. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  9277. /* 8-bit unsigned value to configure HE single user PPDU
  9278. * transmission. By default this setting is disabled and it
  9279. * is disabled in the reset defaults of the device configuration.
  9280. * This attribute is used to configure the testbed device.
  9281. * 1-enable, 0-disable
  9282. */
  9283. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  9284. /* 8-bit unsigned value to configure action frame transmission
  9285. * in HE trigger based PPDU transmission.
  9286. * By default this setting is disabled and it is disabled in
  9287. * the reset defaults of the device configuration.
  9288. * This attribute is used to configure the testbed device.
  9289. * 1-enable, 0-disable
  9290. */
  9291. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  9292. /* Nested attribute to indicate HE operating mode control field
  9293. * transmission. It contains operating mode control field Nss,
  9294. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  9295. * These nested attributes are used to send HE operating mode control
  9296. * with configured values.
  9297. * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
  9298. * This attribute is used to configure the testbed device.
  9299. */
  9300. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
  9301. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  9302. * support for the reception of a frame that carries an HE variant
  9303. * HT Control field.
  9304. * This attribute is used to configure the testbed device.
  9305. * 1-enable, 0-disable
  9306. */
  9307. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  9308. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  9309. * This attribute is used to configure the testbed device.
  9310. * 1-enable, 0-disable
  9311. */
  9312. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  9313. /* 8-bit unsigned value to configure HE testbed defaults.
  9314. * This attribute is used to configure the testbed device.
  9315. * 1-set the device HE capabilities to testbed defaults.
  9316. * 0-reset the device HE capabilities to supported config.
  9317. */
  9318. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  9319. /* 8-bit unsigned value to configure twt request support.
  9320. * This attribute is used to configure the testbed device.
  9321. * 1-enable, 0-disable.
  9322. */
  9323. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  9324. /* 8-bit unsigned value to configure protection for Management
  9325. * frames when PMF is enabled for the association.
  9326. * This attribute is used to configure the testbed device.
  9327. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  9328. */
  9329. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  9330. /* Flag attribute to inject Disassociation frame to the connected AP.
  9331. * This attribute is used to configure the testbed device.
  9332. */
  9333. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  9334. /* 8-bit unsigned value to configure an override for the RSNXE Used
  9335. * subfield in the MIC control field of the FTE in FT Reassociation
  9336. * Request frame.
  9337. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  9338. * This attribute is used to configure the testbed device.
  9339. * This attribute can be configured when STA is in disconnected or
  9340. * associated state and the configuration is valid until the next
  9341. * disconnection.
  9342. */
  9343. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  9344. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  9345. * Switch Announcement) when STA is in connected state.
  9346. * 0 - Default behavior, 1 - Ignore CSA.
  9347. * This attribute is used to configure the testbed device.
  9348. * This attribute can be configured when STA is in disconnected or
  9349. * associated state and the configuration is valid until the next
  9350. * disconnection.
  9351. */
  9352. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  9353. /* Nested attribute values required to configure OCI (Operating Channel
  9354. * Information). Attributes defined in enum
  9355. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  9356. * This attribute is used to configure the testbed device.
  9357. * This attribute can be configured when STA is in disconnected or
  9358. * associated state and the configuration is valid until the next
  9359. * disconnection.
  9360. */
  9361. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  9362. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  9363. * Query timeout. If this configuration is enabled STA shall not send
  9364. * Deauthentication frmae when SA Query times out (mainly, after a
  9365. * channel switch when OCV is enabled).
  9366. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  9367. * This attribute is used to configure the testbed device.
  9368. * This attribute can be configured only when STA is in associated state
  9369. * and the configuration is valid until the disconnection.
  9370. */
  9371. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  9372. /* 8-bit unsigned value to configure the driver/firmware to start or
  9373. * stop transmitting FILS discovery frames.
  9374. * 0 - Stop transmitting FILS discovery frames
  9375. * 1 - Start transmitting FILS discovery frames
  9376. * This attribute is used to configure the testbed device.
  9377. * This attribute can be configured only in AP mode and the
  9378. * configuration is valid until AP restart.
  9379. */
  9380. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  9381. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9382. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  9383. * information field.
  9384. * 0 - Disable full bandwidth UL MU-MIMO subfield
  9385. * 1 - Enable full bandwidth UL MU-MIMO subfield
  9386. * This attribute is used to configure the testbed device.
  9387. */
  9388. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  9389. /* 16-bit unsigned value to configure the driver with a specific BSS
  9390. * max idle period to advertise in the BSS Max Idle Period element
  9391. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  9392. * This attribute is used to configure the testbed device.
  9393. */
  9394. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  9395. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  9396. * for data transmission.
  9397. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  9398. * This attribute is used to configure the testbed device.
  9399. */
  9400. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  9401. /* 8-bit unsigned value to configure the driver to disable data and
  9402. * management response frame transmission to test the BSS max idle
  9403. * feature.
  9404. * 0 - Default behavior, 1 - Disable data and management response Tx.
  9405. * This attribute is used to configure the testbed device.
  9406. */
  9407. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  9408. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9409. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  9410. * information field.
  9411. * 0 - Disable Punctured Preamble Rx subfield
  9412. * 1 - Enable Punctured Preamble Rx subfield
  9413. * This attribute is used to configure the testbed device.
  9414. */
  9415. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  9416. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  9417. * requirement mismatch for 6 GHz connection.
  9418. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  9419. * This attribute is used to configure the testbed device.
  9420. */
  9421. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  9422. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  9423. * connection with all security modes.
  9424. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  9425. * modes.
  9426. * This attribute is used for testing purposes.
  9427. */
  9428. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  9429. /* 8-bit unsigned value to configure the driver to transmit data with
  9430. * ER SU PPDU type.
  9431. *
  9432. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  9433. * This attribute is used for testing purposes.
  9434. */
  9435. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  9436. /* 8-bit unsigned value to configure the driver to use Data or
  9437. * Management frame type for keep alive data.
  9438. * Uses enum qca_wlan_keep_alive_data_type values.
  9439. *
  9440. * This attribute is used for testing purposes.
  9441. */
  9442. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  9443. /* 8-bit unsigned value to configure the driver to use scan request
  9444. * BSSID value in Probe Request frame RA(A1) during the scan. The
  9445. * driver saves this configuration and applies this setting to all user
  9446. * space scan requests until the setting is cleared. If this
  9447. * configuration is set, the driver uses the BSSID value from the scan
  9448. * request to set the RA(A1) in the Probe Request frames during the
  9449. * scan.
  9450. *
  9451. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  9452. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  9453. * This attribute is used for testing purposes.
  9454. */
  9455. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  9456. /* 8-bit unsigned value to configure the driver to enable/disable the
  9457. * BSS max idle period support.
  9458. *
  9459. * 0 - Disable the BSS max idle support.
  9460. * 1 - Enable the BSS max idle support.
  9461. * This attribute is used for testing purposes.
  9462. */
  9463. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  9464. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9465. * disable Rx control frame to MultiBSS subfield in the HE MAC
  9466. * capabilities information field.
  9467. * 0 - Disable Rx control frame to MultiBSS subfield
  9468. * 1 - Enable Rx control frame to MultiBSS subfield
  9469. * This attribute is used to configure the testbed device.
  9470. */
  9471. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  9472. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9473. * disable Broadcast TWT support subfield in the HE MAC capabilities
  9474. * information field.
  9475. * 0 - Disable Broadcast TWT support subfield
  9476. * 1 - Enable Broadcast TWT support subfield
  9477. * This attribute is used to configure the testbed device.
  9478. */
  9479. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  9480. /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
  9481. * mode for 802.11be MLO capable devices. If the attribute is set to 1,
  9482. * and if the FW supports this capability too, then the STA host
  9483. * advertises this capability to AP over assoc request frame. This
  9484. * attribute will not have any effect on legacy devices with no 802.11be
  9485. * support.
  9486. * 0 - Default behavior
  9487. * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
  9488. * This attribute is used to configure the testbed device.
  9489. */
  9490. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
  9491. /* 8-bit unsigned value to configure the driver to enable/disable the
  9492. * periodic sounding for Tx beamformer functionality. The default
  9493. * behavior uses algorithm to do sounding based on packet stats.
  9494. *
  9495. * 0 - Default behavior.
  9496. * 1 - Enable the periodic sounding for Tx beamformer.
  9497. * This attribute is used for testing purposes.
  9498. */
  9499. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
  9500. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9501. * to indicate the maximum number of spatial streams that the STA
  9502. * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
  9503. * The range of the value is 3 to 7.
  9504. * This attribute is used to configure the testbed device.
  9505. */
  9506. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
  9507. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9508. * to indicate the maximum number of spatial streams that the STA
  9509. * can receive in an EHT sounding NDP for 160 MHz bandwidth.
  9510. * The range of the value is 3 to 7.
  9511. * This attribute is used to configure the testbed device.
  9512. */
  9513. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
  9514. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9515. * to indicate the maximum number of spatial streams that the STA
  9516. * can receive in an EHT sounding NDP for 320 MHz bandwidth.
  9517. * The range of the value is 3 to 7.
  9518. * This attribute is used to configure the testbed device.
  9519. */
  9520. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
  9521. /* 8-bit unsigned value to configure the driver to exclude station
  9522. * profile in Probe Request frame Multi-Link element.
  9523. * 0 - Default behavior, sends the Probe Request frame with station
  9524. * profile data included in the Multi-Link element.
  9525. * 1 - Exclude station profile in Probe Request frame Multi-Link
  9526. * element.
  9527. * This attribute is used to configure the testbed device.
  9528. */
  9529. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
  9530. /* 8-bit unsigned value to configure EHT testbed defaults.
  9531. * This attribute is used to configure the testbed device.
  9532. * 1 - Set the device EHT capabilities to testbed defaults.
  9533. * 0 - Reset the device EHT capabilities to supported config.
  9534. */
  9535. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
  9536. /* 8-bit unsigned value to indicate the EHT MCS support.
  9537. * Uses enum eht_mcs_config values.
  9538. * This attribute is used to configure the testbed device to
  9539. * allow the advertised hardware capabilities to be downgraded
  9540. * for testing purposes.
  9541. */
  9542. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
  9543. /* 8-bit unsigned value to configure EHT TB Sounding Feedback
  9544. * Rate Limit capability.
  9545. * This attribute is used to configure the testbed device.
  9546. * 0 - Indicates no maximum supported data rate limitation.
  9547. * 1 - Indicates the maximum supported data rate is the lower of
  9548. * the 1500 Mb/s and the maximum supported data rate.
  9549. */
  9550. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
  9551. /* 8-bit unsigned value to configure the support for receiving an MPDU
  9552. * that contains an EHT operating mode control subfield.
  9553. * This attribute is used to configure the testbed device.
  9554. * 1-enable, 0-disable.
  9555. */
  9556. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
  9557. /* 8-bit unsigned value to configure the driver with EMLSR padding delay
  9558. * subfield value.
  9559. *
  9560. * 0 - 0 us
  9561. * 1 - 32 us
  9562. * 2 - 64 us
  9563. * 3 - 128 us
  9564. * 4 - 256 us
  9565. * 5-255 - Reserved
  9566. *
  9567. * This attribute is used for testing purposes.
  9568. */
  9569. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
  9570. /*
  9571. * 8-bit unsigned value to indicate the firmware to force the active MLO
  9572. * links to power save mode for the configured number of beacon periods.
  9573. * This allows the firmware to suspend STA links for X beacon periods
  9574. * and remain asleep even if the AP advertises TIM as opposed to regular
  9575. * power save mode where STA links wake up if the AP indicates that it
  9576. * has buffered data to send.
  9577. * This attribute is used to configure the testbed device.
  9578. */
  9579. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
  9580. /*
  9581. * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
  9582. * to enable simultaneous transmission of PPDUs on all active links.
  9583. * 0 - Default behavior
  9584. * 1 - Enter STR mode for simultaneous data transmission on all links
  9585. */
  9586. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
  9587. /* Nested attribute to indicate EHT MLO links on which powersave to be
  9588. * enabled. It contains link ID attributes. These nested attributes are
  9589. * of the type u8 and are used to enable the powersave on associated
  9590. * MLO links corresponding to the link IDs provided in the command.
  9591. * This attribute is used to configure the testbed device.
  9592. */
  9593. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71,
  9594. /* 8-bit unsigned value to configure the MLD ID of the BSS whose link
  9595. * info is requested in the ML Probe Request frame. In the MLO-MBSSID
  9596. * testcase, STA can request information of non-Tx BSS through Tx BSS
  9597. * by configuring non-Tx BSS MLD ID within the ML probe request that
  9598. * is transmitted via host initiated scan request.
  9599. *
  9600. * This attribute is used for testing purposes.
  9601. */
  9602. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72,
  9603. /* keep last */
  9604. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  9605. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  9606. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  9607. };
  9608. /**
  9609. * enum qca_wlan_twt_operation - Operation of the config TWT request
  9610. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  9611. * The response for the respective operations can be either synchronous or
  9612. * asynchronous (wherever specified). If synchronous, the response to this
  9613. * operation is obtained in the corresponding vendor command reply to the user
  9614. * space. For the asynchronous case the response is obtained as an event with
  9615. * the same operation type.
  9616. *
  9617. * Drivers shall support either of these modes but not both simultaneously.
  9618. * This support for asynchronous mode is advertised through the flag
  9619. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  9620. * the driver shall support synchronous mode.
  9621. *
  9622. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  9623. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9624. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  9625. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  9626. * synchronous or asynchronous operation.
  9627. *
  9628. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  9629. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9630. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  9631. *
  9632. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  9633. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9634. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9635. * This terminate can either get triggered by the user space or can as well be
  9636. * a notification from the firmware if it initiates a terminate.
  9637. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9638. * the request from user space can either be a synchronous or asynchronous
  9639. * operation.
  9640. *
  9641. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  9642. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9643. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9644. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9645. * this is either a synchronous or asynchronous operation.
  9646. *
  9647. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  9648. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9649. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  9650. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  9651. * request.
  9652. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9653. * capability, this is either a synchronous or asynchronous operation.
  9654. *
  9655. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  9656. * combination of suspend and resume in a single request. Required parameters
  9657. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  9658. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  9659. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9660. * capability, this is either a synchronous or asynchronous operation.
  9661. *
  9662. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  9663. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  9664. * session is setup. It's a synchronous operation.
  9665. *
  9666. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  9667. * Valid only after the TWT session is setup. It's a synchronous operation.
  9668. *
  9669. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  9670. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  9671. * operation.
  9672. *
  9673. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
  9674. * ready for a new TWT session setup after it issued a twt teardown.
  9675. *
  9676. * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
  9677. * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
  9678. * the enum qca_wlan_vendor_attr_twt_set_param.
  9679. *
  9680. * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
  9681. * related information for example TWT required bit in AP capabilities etc.
  9682. * The reason for the notification is sent using
  9683. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
  9684. */
  9685. enum qca_wlan_twt_operation {
  9686. QCA_WLAN_TWT_SET = 0,
  9687. QCA_WLAN_TWT_GET = 1,
  9688. QCA_WLAN_TWT_TERMINATE = 2,
  9689. QCA_WLAN_TWT_SUSPEND = 3,
  9690. QCA_WLAN_TWT_RESUME = 4,
  9691. QCA_WLAN_TWT_NUDGE = 5,
  9692. QCA_WLAN_TWT_GET_STATS = 6,
  9693. QCA_WLAN_TWT_CLEAR_STATS = 7,
  9694. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  9695. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  9696. QCA_WLAN_TWT_SET_PARAM = 10,
  9697. QCA_WLAN_TWT_NOTIFY = 11,
  9698. };
  9699. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  9700. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  9701. *
  9702. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  9703. * u8 attribute. Specify the TWT operation of this request. Possible values
  9704. * are defined in enum qca_wlan_twt_operation. The parameters for the
  9705. * respective operation is specified through
  9706. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  9707. *
  9708. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  9709. * parameters configured for TWT. These parameters are represented by
  9710. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
  9711. * enum qca_wlan_vendor_attr_twt_set_param or
  9712. * enum qca_wlan_vendor_attr_twt_stats based on the operation.
  9713. *
  9714. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
  9715. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
  9716. * The values used by this attribute are defined in
  9717. * enum qca_wlan_vendor_twt_status.
  9718. */
  9719. enum qca_wlan_vendor_attr_config_twt {
  9720. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  9721. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  9722. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  9723. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
  9724. /* keep last */
  9725. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  9726. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  9727. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  9728. };
  9729. /**
  9730. * qca_wlan_twt_setup_state: Represents the TWT session states.
  9731. *
  9732. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  9733. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  9734. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  9735. */
  9736. enum qca_wlan_twt_setup_state {
  9737. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  9738. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  9739. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  9740. };
  9741. /**
  9742. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  9743. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  9744. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  9745. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9746. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9747. *
  9748. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  9749. * Disable (flag attribute not present) - Individual TWT
  9750. * Enable (flag attribute present) - Broadcast TWT.
  9751. * Individual means the session is between the STA and the AP.
  9752. * This session is established using a separate negotiation between
  9753. * STA and AP.
  9754. * Broadcast means the session is across multiple STAs and an AP. The
  9755. * configuration parameters are announced in Beacon frames by the AP.
  9756. * This is used in
  9757. * 1. TWT SET Request and Response
  9758. * 2. TWT GET Response
  9759. *
  9760. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  9761. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  9762. * specify the TWT request type. This is used in TWT SET operation.
  9763. *
  9764. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  9765. * Enable (flag attribute present) - TWT with trigger support.
  9766. * Disable (flag attribute not present) - TWT without trigger support.
  9767. * Trigger means the AP will send the trigger frame to allow STA to send data.
  9768. * Without trigger, the STA will wait for the MU EDCA timer before
  9769. * transmitting the data.
  9770. * This is used in
  9771. * 1. TWT SET Request and Response
  9772. * 2. TWT GET Response
  9773. *
  9774. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  9775. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  9776. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  9777. * NULL frame to AP.
  9778. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  9779. * This is a required parameter for
  9780. * 1. TWT SET Request and Response
  9781. * 2. TWT GET Response
  9782. *
  9783. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  9784. * Flow ID is the unique identifier for each TWT session.
  9785. * If not provided then dialog ID will be set to zero.
  9786. * This is an optional parameter for
  9787. * 1. TWT SET Request and Response
  9788. * 2. TWT GET Request and Response
  9789. * 3. TWT TERMINATE Request and Response
  9790. * 4. TWT SUSPEND Request and Response
  9791. * Flow Id values from 0 to 254 represent a single TWT session
  9792. * Flow ID value of 255 represents all twt sessions for the following
  9793. * 1. TWT TERMINATE Request and Response
  9794. * 2. TWT SUSPEND Request and Response
  9795. * 4. TWT CLEAR STATISTICS request
  9796. * 5. TWT GET STATISTICS request and response
  9797. * If an invalid dialog id is provided, status
  9798. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9799. *
  9800. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  9801. * This attribute (exp) is used along with the mantissa to derive the
  9802. * wake interval using the following formula:
  9803. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  9804. * Wake interval is the interval between 2 successive SP.
  9805. * This is a required parameter for
  9806. * 1. TWT SET Request and Response
  9807. * 2. TWT GET Response
  9808. *
  9809. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  9810. * Enable (flag attribute present) - Protection required.
  9811. * Disable (flag attribute not present) - Protection not required.
  9812. * If protection is enabled, then the AP will use protection
  9813. * mechanism using RTS/CTS to self to reserve the airtime.
  9814. * This is used in
  9815. * 1. TWT SET Request and Response
  9816. * 2. TWT GET Response
  9817. *
  9818. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  9819. * This attribute is used as the SP offset which is the offset from
  9820. * TSF after which the wake happens. The units are in microseconds. If
  9821. * this attribute is not provided, then the value will be set to zero.
  9822. * This is an optional parameter for
  9823. * 1. TWT SET Request and Response
  9824. * 2. TWT GET Response
  9825. *
  9826. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  9827. * This is the duration of the service period. This is specified as
  9828. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  9829. * This is a required parameter for
  9830. * 1. TWT SET Request and Response
  9831. * 2. TWT GET Response
  9832. *
  9833. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  9834. * This attribute is used to configure wake interval mantissa.
  9835. * The units are in TU.
  9836. * This is a required parameter for
  9837. * 1. TWT SET Request and Response
  9838. * 2. TWT GET Response
  9839. *
  9840. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  9841. * This field is applicable for TWT response only.
  9842. * This contains status values in enum qca_wlan_vendor_twt_status
  9843. * and is passed to the userspace. This is used in TWT SET operation.
  9844. * This is a required parameter for
  9845. * 1. TWT SET Response
  9846. * 2. TWT TERMINATE Response
  9847. * 3. TWT SUSPEND Response
  9848. * 4. TWT RESUME Response
  9849. * 5. TWT NUDGE Response
  9850. *
  9851. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  9852. * This field is applicable for TWT response only.
  9853. * This field contains response type from the TWT responder and is
  9854. * passed to the userspace. The values for this field are defined in
  9855. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  9856. * response.
  9857. *
  9858. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  9859. * In TWT setup command this field contains absolute TSF that will
  9860. * be used by TWT requester during setup.
  9861. * In TWT response this field contains absolute TSF value of the
  9862. * wake time received from the TWT responder and is passed to
  9863. * the userspace.
  9864. * This is an optional parameter for
  9865. * 1. TWT SET Request
  9866. * This is a required parameter for
  9867. * 1. TWT SET Response
  9868. * 2. TWT GET Response
  9869. *
  9870. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  9871. * Enable (flag attribute present) - Indicates that the TWT responder
  9872. * supports reception of TWT information frame from the TWT requestor.
  9873. * Disable (flag attribute not present) - Indicates that the responder
  9874. * doesn't support reception of TWT information frame from requestor.
  9875. * This is used in
  9876. * 1. TWT SET Response
  9877. * 2. TWT GET Response
  9878. *
  9879. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  9880. * Represents the MAC address of the peer for which the TWT session
  9881. * is being configured. This is used in AP mode to represent the respective
  9882. * client
  9883. * In AP mode, this is a required parameter in response for
  9884. * 1. TWT SET
  9885. * 2. TWT GET
  9886. * 3. TWT TERMINATE
  9887. * 4. TWT SUSPEND
  9888. * In STA mode, this is an optional parameter in request and response for
  9889. * the above four TWT operations.
  9890. * In AP mode, this is a required parameter in request for
  9891. * 1. TWT GET
  9892. * 2. TWT TERMINATE
  9893. *
  9894. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  9895. * Minimum tolerance limit of wake interval parameter in microseconds.
  9896. *
  9897. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  9898. * Maximum tolerance limit of wake interval parameter in microseconds.
  9899. *
  9900. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  9901. * Minimum tolerance limit of wake duration parameter in microseconds.
  9902. *
  9903. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  9904. * Maximum tolerance limit of wake duration parameter in microseconds.
  9905. *
  9906. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  9907. * TWT state for the given dialog id. The values for this are represented
  9908. * by enum qca_wlan_twt_setup_state.
  9909. * This is obtained through TWT GET operation.
  9910. *
  9911. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  9912. * This attribute is used to configure wake interval mantissa.
  9913. * The unit is microseconds. This attribute, when specified, takes
  9914. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  9915. * This parameter is used for
  9916. * 1. TWT SET Request and Response
  9917. * 2. TWT GET Response
  9918. *
  9919. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  9920. * This attribute is used to configure Broadcast TWT ID.
  9921. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  9922. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  9923. * This parameter is used for
  9924. * 1. TWT SET Request
  9925. * 2. TWT TERMINATE Request
  9926. *
  9927. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  9928. * This attribute is used to configure Broadcast TWT recommendation.
  9929. * The Broadcast TWT Recommendation subfield contains a value that indicates
  9930. * recommendations on the types of frames that are transmitted by TWT
  9931. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  9932. * The allowed values are 0 - 3.
  9933. * This parameter is used for
  9934. * 1. TWT SET Request
  9935. *
  9936. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  9937. * This attribute is used to configure Broadcast TWT Persistence.
  9938. * The Broadcast TWT Persistence subfield indicates the number of
  9939. * TBTTs during which the Broadcast TWT SPs corresponding to this
  9940. * broadcast TWT Parameter set are present. The number of beacon intervals
  9941. * during which the Broadcast TWT SPs are present is equal to the value in the
  9942. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  9943. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  9944. * This parameter is used for
  9945. * 1. TWT SET Request
  9946. *
  9947. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  9948. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  9949. * from TWT response frame.
  9950. * This parameter is used for
  9951. * 1. TWT SET Response
  9952. * 2. TWT GET Response
  9953. *
  9954. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
  9955. * This attribute is used to configure the announce timeout value (in us) in
  9956. * firmware. This timeout value is only applicable for announced TWT. If
  9957. * timeout value is non-zero then firmware waits upto timeout value to use
  9958. * data frame as announcement frame. If timeout value is 0 then firmware sends
  9959. * explicit QoS NULL frame as announcement frame on SP start. Default value in
  9960. * firmware is 0.
  9961. * This parameter is used for
  9962. * 1. TWT SET Request
  9963. */
  9964. enum qca_wlan_vendor_attr_twt_setup {
  9965. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  9966. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  9967. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  9968. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  9969. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  9970. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  9971. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  9972. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  9973. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  9974. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  9975. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  9976. /* TWT Response only attributes */
  9977. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  9978. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  9979. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  9980. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  9981. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  9982. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  9983. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  9984. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  9985. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  9986. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  9987. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  9988. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  9989. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  9990. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  9991. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  9992. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
  9993. /* keep last */
  9994. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  9995. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  9996. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  9997. };
  9998. /**
  9999. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  10000. * TWT operation
  10001. *
  10002. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  10003. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  10004. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  10005. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  10006. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  10007. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  10008. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  10009. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  10010. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  10011. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  10012. * request/response frame
  10013. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  10014. * frame
  10015. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  10016. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  10017. * unknown reason
  10018. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  10019. * suspend state
  10020. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  10021. * invalid IE in the received TWT frame
  10022. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  10023. * the responder are not in the specified range
  10024. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  10025. * session due to request from the responder. Used on the TWT_TERMINATE
  10026. * notification from the firmware.
  10027. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  10028. * session due to roaming. Used on the TWT_TERMINATE notification from the
  10029. * firmware.
  10030. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  10031. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  10032. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  10033. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  10034. * request due to roaming in progress.
  10035. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  10036. * setup request due to channel switch in progress.
  10037. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  10038. * request due to scan in progress.
  10039. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  10040. * terminate an existing TWT session on power save exit request from userspace.
  10041. * Used on the TWT_TERMINATE notification from the driver/firmware.
  10042. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
  10043. * required bit in its capabilities.
  10044. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
  10045. * the TWT required bit(1->0) in its capabilities.
  10046. */
  10047. enum qca_wlan_vendor_twt_status {
  10048. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  10049. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  10050. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  10051. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  10052. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  10053. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  10054. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  10055. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  10056. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  10057. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  10058. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  10059. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  10060. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  10061. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  10062. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  10063. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  10064. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  10065. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  10066. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  10067. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  10068. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  10069. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  10070. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  10071. QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
  10072. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
  10073. };
  10074. /**
  10075. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  10076. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  10077. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  10078. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  10079. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10080. *
  10081. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  10082. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  10083. * These attributes are used as the SP offset which is the offset from TSF after
  10084. * which the wake happens. The units are in microseconds. Please note that
  10085. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  10086. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  10087. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  10088. * will be set to zero.
  10089. *
  10090. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  10091. * This attribute represents the next TWT subfield size.
  10092. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  10093. * and 4 for 64 bits.
  10094. *
  10095. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  10096. * Flow ID is the unique identifier for each TWT session. This attribute
  10097. * represents the respective TWT session to resume.
  10098. * Flow Id values from 0 to 254 represent a single TWT session
  10099. * Flow ID value of 255 represents all TWT sessions.
  10100. * If an invalid dialog id is provided, status
  10101. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  10102. *
  10103. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  10104. * Represents the MAC address of the peer to which TWT Resume is
  10105. * being sent. This is used in AP mode to represent the respective
  10106. * client and is a required parameter. In STA mode, this is an optional
  10107. * parameter
  10108. *
  10109. */
  10110. enum qca_wlan_vendor_attr_twt_resume {
  10111. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  10112. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  10113. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  10114. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  10115. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  10116. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  10117. /* keep last */
  10118. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  10119. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  10120. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  10121. };
  10122. /**
  10123. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  10124. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  10125. * and resume in a single request. These attributes are sent as part of
  10126. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10127. *
  10128. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  10129. * Flow ID is the unique identifier for each TWT session. This attribute
  10130. * represents the respective TWT session to suspend and resume.
  10131. *
  10132. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  10133. * Flow ID is the unique identifier for each TWT session. This attribute
  10134. * represents the respective TWT session to suspend and resume.
  10135. * Flow Id values from 0 to 254 represent a single TWT session
  10136. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  10137. * and response.
  10138. * If an invalid dialog id is provided, status
  10139. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  10140. *
  10141. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  10142. * This attribute is used as the SP offset which is the offset from
  10143. * TSF after which the wake happens. The units are in microseconds.
  10144. *
  10145. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  10146. * This attribute represents the next TWT subfield size.
  10147. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  10148. * and 4 for 64 bits.
  10149. *
  10150. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  10151. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  10152. * being sent. This is used in AP mode to represent the respective
  10153. * client and is a required parameter. In STA mode, this is an optional
  10154. * parameter.
  10155. *
  10156. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  10157. * This field contains absolute TSF value of the time at which twt
  10158. * sesion will be resumed.
  10159. *
  10160. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
  10161. * This field will be used when device supports Flexible TWT.
  10162. * This field contains an offset value by which to shift the starting time
  10163. * of the next service period. The value of offset can be negative or positive.
  10164. * If provided, this attribute will override
  10165. * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
  10166. */
  10167. enum qca_wlan_vendor_attr_twt_nudge {
  10168. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  10169. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  10170. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  10171. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  10172. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  10173. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  10174. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
  10175. /* keep last */
  10176. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  10177. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  10178. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  10179. };
  10180. /**
  10181. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  10182. * TWT (Target Wake Time) get statistics and clear statistics request.
  10183. * These attributes are sent as part of
  10184. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10185. *
  10186. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  10187. * Flow ID is the unique identifier for each TWT session. This attribute
  10188. * represents the respective TWT session for get and clear TWT statistics.
  10189. * Flow Id values from 0 to 254 represent a single TWT session
  10190. * Flow ID value of 255 represents all TWT sessions in
  10191. * 1) TWT GET STATISTICS request and response
  10192. * 2) TWT CLEAR STATISTICS request
  10193. *
  10194. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  10195. * Represents the MAC address of the peer for which TWT Statistics
  10196. * is required.
  10197. * In AP mode this is used to represent the respective
  10198. * client and is a required parameter for
  10199. * 1) TWT GET STATISTICS request and response
  10200. * 2) TWT CLEAR STATISTICS request and response
  10201. * In STA mode, this is an optional parameter.
  10202. *
  10203. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  10204. * This is the duration of the service period in microseconds.
  10205. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10206. *
  10207. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  10208. * Average of actual wake duration observed so far. Unit is microseconds.
  10209. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10210. *
  10211. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  10212. * Number of TWT service period elapsed so far.
  10213. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10214. *
  10215. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10216. * This is the minimum value of wake duration observed across
  10217. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10218. * microseconds.
  10219. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10220. *
  10221. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10222. * This is the maximum value of wake duration observed across
  10223. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10224. * microseconds.
  10225. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10226. *
  10227. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  10228. * Average number of MPDU's transmitted successfully across
  10229. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10230. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10231. *
  10232. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  10233. * Average number of MPDU's received successfully across
  10234. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10235. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10236. *
  10237. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  10238. * Average number of bytes transmitted successfully across
  10239. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10240. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10241. *
  10242. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  10243. * Average number of bytes received successfully across
  10244. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10245. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10246. *
  10247. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  10248. * Status of the TWT GET STATISTICS request.
  10249. * This contains status values in enum qca_wlan_vendor_twt_status
  10250. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10251. */
  10252. enum qca_wlan_vendor_attr_twt_stats {
  10253. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  10254. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  10255. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  10256. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  10257. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  10258. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  10259. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  10260. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  10261. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  10262. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  10263. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  10264. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  10265. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  10266. /* keep last */
  10267. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  10268. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  10269. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  10270. };
  10271. /**
  10272. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  10273. * supported by the device and peer.
  10274. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  10275. *
  10276. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  10277. * TWT non-scheduling STA. This capability is advertised in the HE
  10278. * capability/Extended capabilities information element in the
  10279. * Association request frame by the device.
  10280. *
  10281. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  10282. * by the TWT scheduling AP. This capability is advertised in the extended
  10283. * capabilities/HE capabilities information element.
  10284. *
  10285. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  10286. * for the broadcast TWT functionality. On responder side, this indicates
  10287. * support for the role of broadcast TWT scheduling functionality. This
  10288. * capability is advertised in the HE capabilities information element.
  10289. *
  10290. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  10291. * This capability is advertised in the HE capabilities information element.
  10292. *
  10293. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  10294. * that it mandates the associated HE STAs to support TWT. This capability is
  10295. * advertised by AP in the HE Operation Parameters field of the HE operation
  10296. * information element.
  10297. */
  10298. enum qca_wlan_twt_capa {
  10299. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  10300. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  10301. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  10302. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  10303. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  10304. };
  10305. /**
  10306. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  10307. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  10308. * operation.
  10309. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  10310. * Represents the MAC address of the peer for which the TWT capabilities
  10311. * are being queried. This is used in AP mode to represent the respective
  10312. * client. In STA mode, this is an optional parameter.
  10313. *
  10314. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  10315. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10316. * enum qca_wlan_twt_capa.
  10317. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  10318. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10319. * enum qca_wlan_twt_capa.
  10320. */
  10321. enum qca_wlan_vendor_attr_twt_capability {
  10322. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  10323. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  10324. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  10325. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  10326. /* keep last */
  10327. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  10328. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  10329. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  10330. };
  10331. /**
  10332. * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
  10333. * TWT (Target Wake Time) related parameters. It is used when
  10334. * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
  10335. * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10336. *
  10337. * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
  10338. * This attribute configures AC parameters to be used for all TWT
  10339. * sessions in AP mode.
  10340. * Uses the enum qca_wlan_ac_type values.
  10341. */
  10342. enum qca_wlan_vendor_attr_twt_set_param {
  10343. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
  10344. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
  10345. /* keep last */
  10346. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
  10347. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
  10348. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
  10349. };
  10350. /**
  10351. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  10352. * the TWT responder
  10353. *
  10354. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  10355. * parameters that are different from TWT requesting STA suggested
  10356. * or demanded TWT parameters
  10357. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  10358. * parameters that are different from TWT requesting STA TWT suggested
  10359. * or demanded parameters
  10360. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  10361. * setup
  10362. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  10363. * setup.
  10364. */
  10365. enum qca_wlan_vendor_twt_setup_resp_type {
  10366. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  10367. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  10368. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  10369. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  10370. };
  10371. /**
  10372. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  10373. * Represents the setup type being requested for TWT.
  10374. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  10375. * parameters but relying on AP to fill the parameters during the negotiation.
  10376. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  10377. * values which the AP may accept or AP may provide alternative parameters
  10378. * which the STA may accept.
  10379. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  10380. * alternate parameters than the requested ones.
  10381. */
  10382. enum qca_wlan_vendor_twt_setup_req_type {
  10383. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  10384. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  10385. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  10386. };
  10387. /**
  10388. * enum qca_wlan_throughput_level - Current throughput level
  10389. *
  10390. * Indicates the current level of throughput calculated by driver. The driver
  10391. * may choose different thresholds to decide whether the throughput level is
  10392. * low or medium or high based on variety of parameters like physical link
  10393. * capacity of current connection, number of pakcets being dispatched per
  10394. * second etc. The throughput level events might not be consistent with the
  10395. * actual current throughput value being observed.
  10396. *
  10397. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  10398. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  10399. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  10400. */
  10401. enum qca_wlan_throughput_level {
  10402. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  10403. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  10404. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  10405. };
  10406. /**
  10407. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  10408. * report throughput changes from driver to user space. enum values are used
  10409. * for NL attributes sent with
  10410. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  10411. */
  10412. enum qca_wlan_vendor_attr_throughput_change {
  10413. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  10414. /*
  10415. * Indicates the direction of throughput in which the change is being
  10416. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  10417. */
  10418. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  10419. /*
  10420. * Indicates the newly observed throughput level.
  10421. * qca_wlan_throughput_level describes the possible range of values.
  10422. * u8 attribute.
  10423. */
  10424. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  10425. /*
  10426. * Indicates the driver's guidance on the new value to be set to
  10427. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  10428. * may optionally include this attribute.
  10429. */
  10430. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  10431. /*
  10432. * Indicates the driver's guidance on the new value to be set to
  10433. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  10434. * values are from -31 to 31. Driver may optionally include this
  10435. * attribute.
  10436. */
  10437. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  10438. /*
  10439. * Indicates the driver's guidance on the new value to be set to
  10440. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  10441. * optionally include this attribute.
  10442. */
  10443. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  10444. /* keep last */
  10445. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  10446. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  10447. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  10448. };
  10449. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  10450. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  10451. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10452. */
  10453. enum qca_wlan_nan_ext_subcmd_type {
  10454. /* Subcmd of type NAN Enable Request */
  10455. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  10456. /* Subcmd of type NAN Disable Request */
  10457. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  10458. };
  10459. /**
  10460. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  10461. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10462. */
  10463. enum qca_wlan_vendor_attr_nan_params {
  10464. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  10465. /* Carries NAN command for firmware component. Every vendor command
  10466. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  10467. * payload containing the NAN command. NLA_BINARY attribute.
  10468. */
  10469. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  10470. /* Indicates the type of NAN command sent with
  10471. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  10472. * describes the possible range of values. This attribute is mandatory
  10473. * if the command being issued is either
  10474. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  10475. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  10476. */
  10477. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  10478. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  10479. * band. This attribute is mandatory when command type is
  10480. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  10481. */
  10482. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  10483. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  10484. * band. This attribute is optional and should be included when command
  10485. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  10486. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  10487. */
  10488. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  10489. /* keep last */
  10490. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  10491. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  10492. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  10493. };
  10494. /**
  10495. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  10496. * transport modes and is used by attribute
  10497. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  10498. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10499. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  10500. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  10501. * data. The data shall be encapsulated within
  10502. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
  10503. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  10504. */
  10505. enum qca_wlan_vendor_cfr_data_transport_modes {
  10506. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  10507. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  10508. };
  10509. /**
  10510. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  10511. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  10512. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10513. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  10514. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  10515. * with phase
  10516. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  10517. */
  10518. enum qca_wlan_vendor_cfr_method {
  10519. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  10520. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  10521. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  10522. };
  10523. /**
  10524. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  10525. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  10526. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  10527. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  10528. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  10529. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  10530. * is provided by one or more of below attributes:
  10531. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  10532. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  10533. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  10534. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  10535. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  10536. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  10537. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10538. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  10539. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  10540. */
  10541. enum qca_wlan_vendor_cfr_capture_type {
  10542. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  10543. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  10544. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  10545. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  10546. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  10547. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  10548. };
  10549. /**
  10550. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  10551. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  10552. * Channel Frequency Response capture parameters and enable periodic CFR
  10553. * capture.
  10554. *
  10555. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  10556. * MAC address of peer. This is for CFR version 1 only.
  10557. *
  10558. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  10559. * Enable peer CFR Capture. This attribute is mandatory to
  10560. * enable peer CFR capture. If this attribute is not present,
  10561. * peer CFR capture is disabled.
  10562. *
  10563. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  10564. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  10565. * Supported values: 20, 40, 80, 80+80, 160.
  10566. * Note that all targets may not support all bandwidths.
  10567. * This attribute is mandatory for version 1 if attribute
  10568. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10569. *
  10570. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  10571. * Periodicity of CFR measurement in msec.
  10572. * Periodicity should be a multiple of Base timer.
  10573. * Current Base timer value supported is 10 msecs (default).
  10574. * 0 for one shot capture.
  10575. * This attribute is mandatory for version 1 if attribute
  10576. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10577. *
  10578. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  10579. * Method used to capture Channel Frequency Response.
  10580. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  10581. * This attribute is mandatory for version 1 if attribute
  10582. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10583. *
  10584. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  10585. * Enable periodic CFR capture.
  10586. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  10587. * If this attribute is not present, periodic CFR capture is disabled.
  10588. *
  10589. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  10590. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  10591. * can't be enabled at same time. This attribute is mandatory if target
  10592. * support both versions and use one of them.
  10593. *
  10594. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  10595. * This attribute is mandatory for version 2 if
  10596. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  10597. * Bits 15:0 Bit fields indicating which group to be enabled.
  10598. * Bits 31:16 Reserved for future use.
  10599. *
  10600. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  10601. * CFR capture duration in microsecond. This attribute is mandatory for
  10602. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  10603. *
  10604. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  10605. * CFR capture interval in microsecond. This attribute is mandatory for
  10606. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  10607. *
  10608. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  10609. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  10610. * This attribute is mandatory for version 2.
  10611. *
  10612. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  10613. * Bit fields indicating which user in the current UL MU
  10614. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  10615. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  10616. * then the CFR capture will happen for user index 0 in the current
  10617. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  10618. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  10619. * This is for CFR version 2 only.
  10620. *
  10621. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  10622. * Indicates the number of consecutive Rx packets to be skipped
  10623. * before CFR capture is enabled again.
  10624. * This is for CFR version 2 only.
  10625. *
  10626. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  10627. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  10628. *
  10629. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  10630. * the following GROUP attributes:
  10631. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  10632. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  10633. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  10634. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  10635. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  10636. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  10637. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  10638. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  10639. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  10640. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10641. *
  10642. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  10643. * Target support multiple groups for some configurations. Group number could be
  10644. * any value between 0 and 15. This is for CFR version 2 only.
  10645. *
  10646. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  10647. * Transmitter address which is used to filter packets, this MAC address takes
  10648. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  10649. * This is for CFR version 2 only.
  10650. *
  10651. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  10652. * Receiver address which is used to filter packets, this MAC address takes
  10653. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  10654. * This is for CFR version 2 only.
  10655. *
  10656. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  10657. * Mask of transmitter address which is used to filter packets.
  10658. * This is for CFR version 2 only.
  10659. *
  10660. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  10661. * Mask of receiver address which is used to filter packets.
  10662. * This is for CFR version 2 only.
  10663. *
  10664. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  10665. * Indicates packets with a specific NSS will be filtered for CFR capture.
  10666. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  10667. * be done for packets matching the NSS specified within this bitmask.
  10668. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  10669. * bit 0 : NSS 1
  10670. * bit 1 : NSS 2
  10671. * ...
  10672. * bit 7 : NSS 8
  10673. *
  10674. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  10675. * Indicates packets with a specific BW will be filtered for CFR capture.
  10676. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  10677. * will be done for packets matching the bandwidths specified within this
  10678. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  10679. * numerated in enum nl80211_band (although not all bands may be supported
  10680. * by a given device).
  10681. *
  10682. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  10683. * Management packets matching the subtype filter categories will be
  10684. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10685. * represents the corresponding mgmt subtype value as per
  10686. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10687. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  10688. * This is for CFR version 2 only
  10689. *
  10690. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  10691. * Control packets matching the subtype filter categories will be
  10692. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10693. * represents the corresponding control subtype value as per
  10694. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10695. * This is for CFR version 2 only.
  10696. *
  10697. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  10698. * Data packets matching the subtype filter categories will be
  10699. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10700. * represents the corresponding data subtype value as per
  10701. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10702. * This is for CFR version 2 only.
  10703. *
  10704. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  10705. * Userspace can use this attribute to specify the driver about which transport
  10706. * mode shall be used by the driver to send CFR data to userspace. Uses values
  10707. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  10708. * not present, driver shall choose the default transport mechanism which is
  10709. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  10710. *
  10711. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  10712. * Userspace can use this attribute to specify the nl port id of the application
  10713. * which receives the CFR data and processes it further so that the drivers can
  10714. * unicast the NL events to a specific application. Optionally included when
  10715. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  10716. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  10717. * shall multicast the netlink events when this attribute is not included.
  10718. *
  10719. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  10720. * This attribute will be used by the driver to encapsulate and send CFR data
  10721. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  10722. * asynchronous event when the driver is configured to send CFR data using NL
  10723. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  10724. *
  10725. */
  10726. enum qca_wlan_vendor_peer_cfr_capture_attr {
  10727. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  10728. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  10729. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  10730. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  10731. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  10732. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  10733. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  10734. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  10735. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  10736. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  10737. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  10738. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  10739. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  10740. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  10741. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  10742. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  10743. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  10744. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  10745. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  10746. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  10747. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  10748. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  10749. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  10750. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  10751. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  10752. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  10753. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  10754. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  10755. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  10756. /* Keep last */
  10757. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  10758. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  10759. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  10760. };
  10761. /**
  10762. * enum qca_coex_config_profiles - This enum defines different types of
  10763. * traffic streams that can be prioritized one over the other during coex
  10764. * scenarios.
  10765. * The types defined in this enum are categorized in the below manner.
  10766. * 0 - 31 values corresponds to WLAN
  10767. * 32 - 63 values corresponds to BT
  10768. * 64 - 95 values corresponds to Zigbee
  10769. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  10770. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  10771. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  10772. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  10773. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  10774. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  10775. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  10776. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  10777. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  10778. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  10779. * @QCA_BT_A2DP: Prioritize BT A2DP
  10780. * @QCA_BT_BLE: Prioritize BT BLE
  10781. * @QCA_BT_SCO: Prioritize BT SCO
  10782. * @QCA_ZB_LOW: Prioritize Zigbee Low
  10783. * @QCA_ZB_HIGH: Prioritize Zigbee High
  10784. */
  10785. enum qca_coex_config_profiles {
  10786. /* 0 - 31 corresponds to WLAN */
  10787. QCA_WIFI_STA_DISCOVERY = 0,
  10788. QCA_WIFI_STA_CONNECTION = 1,
  10789. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  10790. QCA_WIFI_STA_DATA = 3,
  10791. QCA_WIFI_STA_ALL = 4,
  10792. QCA_WIFI_SAP_DISCOVERY = 5,
  10793. QCA_WIFI_SAP_CONNECTION = 6,
  10794. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  10795. QCA_WIFI_SAP_DATA = 8,
  10796. QCA_WIFI_SAP_ALL = 9,
  10797. QCA_WIFI_CASE_MAX = 31,
  10798. /* 32 - 63 corresponds to BT */
  10799. QCA_BT_A2DP = 32,
  10800. QCA_BT_BLE = 33,
  10801. QCA_BT_SCO = 34,
  10802. QCA_BT_CASE_MAX = 63,
  10803. /* 64 - 95 corresponds to Zigbee */
  10804. QCA_ZB_LOW = 64,
  10805. QCA_ZB_HIGH = 65,
  10806. QCA_ZB_CASE_MAX = 95,
  10807. /* 0xff is default value if the u8 profile value is not set. */
  10808. QCA_PROFILE_DEFAULT_VALUE = 255
  10809. };
  10810. /**
  10811. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  10812. * This enum defines the valid set of values of coex configuration types. These
  10813. * values may used by attribute
  10814. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  10815. *
  10816. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  10817. * weights to default values.
  10818. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  10819. * weights with configurability value.
  10820. */
  10821. enum qca_vendor_attr_coex_config_types {
  10822. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  10823. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  10824. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  10825. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  10826. };
  10827. /**
  10828. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  10829. * attributes
  10830. * Attributes for data used by
  10831. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  10832. *
  10833. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  10834. * Indicate config type.
  10835. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  10836. *
  10837. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  10838. * Indicate the Priority 1 profiles.
  10839. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10840. * In same priority level, maximum to 4 profiles can be set here.
  10841. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  10842. * Indicate the Priority 2 profiles.
  10843. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10844. * In same priority level, maximum to 4 profiles can be set here.
  10845. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  10846. * Indicate the Priority 3 profiles.
  10847. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10848. * In same priority level, maximum to 4 profiles can be set here.
  10849. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  10850. * Indicate the Priority 4 profiles.
  10851. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10852. * In same priority level, maximum to 4 profiles can be set here.
  10853. * NOTE:
  10854. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  10855. * arrangement:
  10856. * 1: In the same u32 attribute(priority x), the profiles enum values own
  10857. * same priority level.
  10858. * 2: 0xff is default value if the u8 profile value is not set.
  10859. * 3: max to 4 rules/profiles in same priority level.
  10860. * 4: max to 4 priority level (priority 1 - priority 4)
  10861. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  10862. * hybrid rules not support.
  10863. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  10864. * remain blank to reset all parameters.
  10865. * For example:
  10866. *
  10867. * If the attributes as follow:
  10868. * priority 1:
  10869. * ------------------------------------
  10870. * | 0xff | 0 | 1 | 2 |
  10871. * ------------------------------------
  10872. * priority 2:
  10873. * -------------------------------------
  10874. * | 0xff | 0xff | 0xff | 32 |
  10875. * -------------------------------------
  10876. * priority 3:
  10877. * -------------------------------------
  10878. * | 0xff | 0xff | 0xff | 65 |
  10879. * -------------------------------------
  10880. * then it means:
  10881. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10882. * owns same priority level.
  10883. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10884. * has priority over BT_A2DP and ZB_HIGH.
  10885. * 3: BT_A2DP has priority over ZB_HIGH.
  10886. */
  10887. enum qca_vendor_attr_coex_config_three_way {
  10888. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  10889. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  10890. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  10891. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  10892. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  10893. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  10894. /* Keep last */
  10895. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  10896. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  10897. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  10898. };
  10899. /**
  10900. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  10901. * This enum defines the valid set of values of peer stats cache types. These
  10902. * values are used by attribute
  10903. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  10904. *
  10905. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  10906. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  10907. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  10908. * statistics
  10909. */
  10910. enum qca_vendor_attr_peer_stats_cache_type {
  10911. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  10912. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  10913. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  10914. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  10915. };
  10916. /**
  10917. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  10918. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  10919. * Attributes are required to flush peer rate statistics from driver to
  10920. * user application.
  10921. *
  10922. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  10923. * Indicate peer stats cache type.
  10924. * The statistics types are 32-bit values from
  10925. * qca_vendor_attr_peer_stats_cache_type
  10926. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  10927. * of size 6, representing peer mac address.
  10928. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  10929. * containing buffer of statistics to send event to application layer entity.
  10930. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  10931. * representing cookie for peer unique session.
  10932. */
  10933. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  10934. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  10935. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  10936. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  10937. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  10938. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  10939. /* Keep last */
  10940. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  10941. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  10942. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  10943. };
  10944. /**
  10945. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  10946. * this enum defines all the possible state of zigbee, which can be
  10947. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  10948. *
  10949. * @ZIGBEE_IDLE: zigbee in idle state
  10950. * @ZIGBEE_FORM_NETWORK: zibee forming network
  10951. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  10952. * @ZIGBEE_JOIN: zigbee joining network
  10953. * @ZIGBEE_NETWORK_UP: zigbee network is up
  10954. * @ZIGBEE_HMI: zigbee in HMI mode
  10955. */
  10956. enum qca_mpta_helper_attr_zigbee_state {
  10957. ZIGBEE_IDLE = 0,
  10958. ZIGBEE_FORM_NETWORK = 1,
  10959. ZIGBEE_WAIT_JOIN = 2,
  10960. ZIGBEE_JOIN = 3,
  10961. ZIGBEE_NETWORK_UP = 4,
  10962. ZIGBEE_HMI = 5,
  10963. };
  10964. /**
  10965. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  10966. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  10967. */
  10968. enum qca_mpta_helper_vendor_attr {
  10969. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  10970. /* Optional attribute used to update zigbee state.
  10971. * enum qca_mpta_helper_attr_zigbee_state.
  10972. * NLA_U32 attribute.
  10973. */
  10974. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  10975. /* Optional attribute used to configure wlan duration for Shape-OCS
  10976. * during interrupt.
  10977. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  10978. * Value range 0 ~ 300 (ms).
  10979. * NLA_U32 attribute.
  10980. */
  10981. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  10982. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10983. * during interrupt.
  10984. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  10985. * Value range 0 ~ 300 (ms).
  10986. * NLA_U32 attribute.
  10987. */
  10988. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  10989. /* Optional attribute used to configure wlan duration for Shape-OCS
  10990. * monitor period.
  10991. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  10992. * Value range 0 ~ 300 (ms)
  10993. * NLA_U32 attribute
  10994. */
  10995. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  10996. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10997. * monitor period.
  10998. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  10999. * Value range 0 ~ 300 (ms)
  11000. * NLA_U32 attribute
  11001. */
  11002. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  11003. /* Optional attribute used to configure ocs interrupt duration.
  11004. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  11005. * Value range 1000 ~ 20000 (ms)
  11006. * NLA_U32 attribute
  11007. */
  11008. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  11009. /* Optional attribute used to configure ocs monitor duration.
  11010. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  11011. * Value range 1000 ~ 20000 (ms)
  11012. * NLA_U32 attribute
  11013. */
  11014. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  11015. /* Optional attribute used to notify wlan FW current zigbee channel.
  11016. * Value range 11 ~ 26
  11017. * NLA_U32 attribute
  11018. */
  11019. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  11020. /* Optional attribute used to configure wlan mute duration.
  11021. * Value range 0 ~ 400 (ms)
  11022. * NLA_U32 attribute
  11023. */
  11024. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  11025. /* keep last */
  11026. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  11027. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  11028. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  11029. };
  11030. /**
  11031. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  11032. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  11033. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  11034. *
  11035. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  11036. * to request the driver to start reporting Beacon frames.
  11037. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  11038. * to request the driver to stop reporting Beacon frames.
  11039. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  11040. * userspace to report received Beacon frames.
  11041. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  11042. * to indicate that the driver is going to pause reporting Beacon frames.
  11043. */
  11044. enum qca_wlan_vendor_beacon_reporting_op_types {
  11045. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  11046. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  11047. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  11048. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  11049. };
  11050. /**
  11051. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  11052. * types of reasons for which the driver is pausing reporting Beacon frames.
  11053. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  11054. *
  11055. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  11056. * reasons.
  11057. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  11058. * driver/firmware is starting a scan.
  11059. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  11060. * driver/firmware disconnects from the ESS and indicates the disconnection to
  11061. * userspace (non-seamless roaming case). This reason code will be used by the
  11062. * driver/firmware to indicate stopping of beacon report events. Userspace
  11063. * will need to start beacon reporting again (if desired) by sending vendor
  11064. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  11065. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  11066. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  11067. * completed.
  11068. */
  11069. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  11070. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  11071. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  11072. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  11073. };
  11074. /*
  11075. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  11076. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  11077. */
  11078. enum qca_wlan_vendor_attr_beacon_reporting_params {
  11079. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  11080. /* Specifies the type of operation that the vendor command/event is
  11081. * intended for. Possible values for this attribute are defined in
  11082. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  11083. */
  11084. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  11085. /* Optionally set by userspace to request the driver to report Beacon
  11086. * frames using asynchronous vendor events when the
  11087. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11088. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  11089. * If this flag is not set, the driver will only update Beacon frames
  11090. * in cfg80211 scan cache but not send any vendor events.
  11091. */
  11092. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  11093. /* Optionally used by userspace to request the driver/firmware to
  11094. * report Beacon frames periodically when the
  11095. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11096. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  11097. * u32 attribute, indicates the period of Beacon frames to be reported
  11098. * and in the units of beacon interval.
  11099. * If this attribute is missing in the command, then the default value
  11100. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  11101. * Zero is an invalid value.
  11102. * If a valid value is received for this attribute, the driver will
  11103. * update the cfg80211 scan cache periodically as per the value
  11104. * received in this attribute in addition to updating the cfg80211 scan
  11105. * cache when there is significant change in Beacon frame IEs.
  11106. */
  11107. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  11108. /* Used by the driver to encapsulate the SSID when the
  11109. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11110. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11111. * u8 array with a maximum size of 32.
  11112. *
  11113. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  11114. * will be taken from the SSID element of the received Beacon frame.
  11115. *
  11116. * When generating beacon report from Multiple BSSID Beacon frame and
  11117. * if the BSSID of the current connected BSS matches the BSSID of the
  11118. * transmitting BSS, the SSID will be taken from the SSID element of
  11119. * the received Beacon frame.
  11120. *
  11121. * When generating beacon report from Multiple BSSID Beacon frame and
  11122. * if the BSSID of the current connected BSS matches the BSSID of one
  11123. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  11124. * field included in the nontransmitted BSS profile whose derived BSSI
  11125. * is same as the BSSID of the current connected BSS. When there is no
  11126. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  11127. * of current connected* BSS, this attribute will not be present.
  11128. */
  11129. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  11130. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  11131. * is currently connected to when the
  11132. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11133. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  11134. * fixed size of 6 bytes.
  11135. *
  11136. * When generating beacon report from a Multiple BSSID beacon and the
  11137. * current connected BSSID matches one of the nontransmitted BSSIDs in
  11138. * a Multiple BSSID set, this BSSID will be that particular
  11139. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  11140. * transmitting address of the Beacon frame).
  11141. */
  11142. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  11143. /* Used by the driver to encapsulate the frequency in MHz on which
  11144. * the Beacon frame was received when the
  11145. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  11146. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11147. * u32 attribute.
  11148. */
  11149. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  11150. /* Used by the driver to encapsulate the Beacon interval
  11151. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11152. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11153. * u16 attribute. The value will be copied from the Beacon frame and
  11154. * the units are TUs.
  11155. */
  11156. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  11157. /* Used by the driver to encapsulate the Timestamp field from the
  11158. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  11159. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11160. * u64 attribute.
  11161. */
  11162. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  11163. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  11164. * Beacon frame is received in the driver when the
  11165. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11166. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  11167. * the units of nanoseconds. This value is expected to have accuracy of
  11168. * about 10 ms.
  11169. */
  11170. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  11171. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  11172. * which this event is generated when the
  11173. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11174. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  11175. */
  11176. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  11177. /* Used by the driver to specify the reason for the driver/firmware to
  11178. * pause sending beacons to userspace when the
  11179. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11180. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  11181. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  11182. * attribute.
  11183. */
  11184. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  11185. /* Used by the driver to specify whether the driver will automatically
  11186. * resume reporting beacon events to userspace later (for example after
  11187. * the ongoing off-channel activity is completed etc.) when the
  11188. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11189. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  11190. */
  11191. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  11192. /* Optionally set by userspace to request the driver not to resume
  11193. * beacon reporting after a pause is completed, when the
  11194. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11195. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  11196. * If this flag is set, the driver will not resume beacon reporting
  11197. * after any pause in beacon reporting is completed. Userspace has to
  11198. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  11199. * to initiate beacon reporting again. If this flag is set in the recent
  11200. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  11201. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  11202. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  11203. * set by the driver. Setting this flag until and unless there is a
  11204. * specific need is not recommended as there is a chance of some beacons
  11205. * received after pause command and next start command being not
  11206. * reported.
  11207. */
  11208. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  11209. /* Keep last */
  11210. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  11211. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  11212. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  11213. };
  11214. /**
  11215. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  11216. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  11217. *
  11218. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  11219. * a virtual device.
  11220. *
  11221. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  11222. * a physical device.
  11223. */
  11224. enum qca_vendor_oem_device_type {
  11225. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  11226. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  11227. };
  11228. /*
  11229. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  11230. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  11231. *
  11232. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  11233. * used to set/query the data to/from the firmware. On query, the same
  11234. * attribute is used to carry the respective data in the reply sent by the
  11235. * driver to userspace. The request to set/query the data and the format of the
  11236. * respective data from the firmware are embedded in the attribute. The
  11237. * maximum size of the attribute payload is 1024 bytes.
  11238. *
  11239. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  11240. * based on this field. This optional attribute is included to specify whether
  11241. * the device type is a virtual device or a physical device for the command.
  11242. * This attribute can be omitted for a virtual device (default) command.
  11243. * This u8 attribute is used to carry information for the device type using
  11244. * values defined by enum qca_vendor_oem_device_type.
  11245. *
  11246. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  11247. * attribute when the data is queried from the firmware.
  11248. *
  11249. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  11250. * is set when the userspace queries data from the firmware. This attribute
  11251. * should not be set when userspace sets the OEM data to the firmware.
  11252. */
  11253. enum qca_wlan_vendor_attr_oem_data_params {
  11254. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  11255. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  11256. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  11257. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  11258. /* keep last */
  11259. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  11260. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  11261. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  11262. };
  11263. /**
  11264. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  11265. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  11266. *
  11267. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  11268. * Nested attribute containing multiple ranges with following attributes:
  11269. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
  11270. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
  11271. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
  11272. *
  11273. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  11274. * Starting center frequency in MHz.
  11275. *
  11276. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  11277. * Ending center frequency in MHz.
  11278. *
  11279. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
  11280. * s32 attribute, optional. It is a per frequency range attribute.
  11281. * The maximum TX power limit from user space is to be applied on an
  11282. * unrestricted interface for corresponding frequency range. It is also
  11283. * possible that the actual TX power may be even lower than this cap due to
  11284. * other considerations such as regulatory compliance, SAR, etc. In absence of
  11285. * this attribute the driver shall follow current behavior which means
  11286. * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
  11287. * power derived by the driver based on regulatory/SAR during interface up.
  11288. *
  11289. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
  11290. * u32 attribute, optional. Indicates all the interface types which are
  11291. * restricted for all frequency ranges provided in
  11292. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  11293. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  11294. * This attribute encapsulates bitmasks of interface types defined in
  11295. * enum nl80211_iftype. If an interface is marked as restricted the driver must
  11296. * move to a safe channel and if no safe channel is available the driver shall
  11297. * terminate that interface functionality. In absence of this attribute,
  11298. * interface (SAP/P2P) can still continue operating on an unsafe channel with
  11299. * TX power limit derived from either
  11300. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
  11301. * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
  11302. * is not provided.
  11303. */
  11304. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  11305. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  11306. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  11307. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  11308. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  11309. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
  11310. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
  11311. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  11312. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  11313. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  11314. };
  11315. /*
  11316. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  11317. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  11318. */
  11319. enum qca_wlan_vendor_attr_add_sta_node_params {
  11320. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  11321. /* 6 byte MAC address of STA */
  11322. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  11323. /* Authentication algorithm used by the station of size u16;
  11324. * defined in enum nl80211_auth_type.
  11325. */
  11326. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  11327. /* keep last */
  11328. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  11329. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  11330. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  11331. };
  11332. /**
  11333. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  11334. * This enum defines the valid set of values of BT coex chain mode.
  11335. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  11336. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11337. *
  11338. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
  11339. * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
  11340. * separated, hybrid mode.
  11341. * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
  11342. * separated, fixed FDD mode.
  11343. */
  11344. enum qca_btc_chain_mode {
  11345. QCA_BTC_CHAIN_SHARED = 0,
  11346. QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
  11347. QCA_BTC_CHAIN_SEPARATED_FDD = 2,
  11348. };
  11349. /* deprecated legacy name */
  11350. #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
  11351. /**
  11352. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  11353. * chain mode.
  11354. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11355. *
  11356. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  11357. * Indicates the BT coex chain mode, are 32-bit values from
  11358. * enum qca_btc_chain_mode. This attribute is mandatory.
  11359. *
  11360. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  11361. * If set, vdev should be restarted when BT coex chain mode is updated.
  11362. * This attribute is optional.
  11363. */
  11364. enum qca_vendor_attr_btc_chain_mode {
  11365. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  11366. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  11367. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  11368. /* Keep last */
  11369. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  11370. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  11371. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  11372. };
  11373. /**
  11374. * enum qca_vendor_wlan_sta_flags - Station feature flags
  11375. * Bits will be set to 1 if the corresponding features are enabled.
  11376. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  11377. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  11378. for the station
  11379. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  11380. for the station
  11381. */
  11382. enum qca_vendor_wlan_sta_flags {
  11383. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  11384. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  11385. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  11386. };
  11387. /**
  11388. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  11389. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  11390. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  11391. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  11392. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  11393. */
  11394. enum qca_vendor_wlan_sta_guard_interval {
  11395. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  11396. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  11397. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  11398. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  11399. };
  11400. /**
  11401. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  11402. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  11403. *
  11404. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  11405. * Required attribute in request for AP mode only, 6-byte MAC address,
  11406. * corresponding to the station's MAC address for which information is
  11407. * requested. For STA mode this is not required as the info always correspond
  11408. * to the self STA and the current/last association.
  11409. *
  11410. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  11411. * Optionally used in response, u32 attribute, contains a bitmap of different
  11412. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  11413. *
  11414. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  11415. * Optionally used in response, u32 attribute, possible values are defined in
  11416. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  11417. * Guard interval used by the station.
  11418. *
  11419. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  11420. * Optionally used in response, u32 attribute, used in AP mode only.
  11421. * Value indicates the number of data frames received from station with retry
  11422. * bit set to 1 in FC.
  11423. *
  11424. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  11425. * Optionally used in response, u32 attribute, used in AP mode only.
  11426. * Counter for number of data frames with broadcast or multicast address in
  11427. * the destination address received from the station.
  11428. *
  11429. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  11430. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  11431. * Value indicates the number of data frames successfully transmitted only
  11432. * after retrying the packets and for which the TX status has been updated
  11433. * back to host from target.
  11434. *
  11435. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  11436. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  11437. * Value indicates the number of data frames not transmitted successfully even
  11438. * after retrying the packets for the number of times equal to the total number
  11439. * of retries allowed for that packet and for which the TX status has been
  11440. * updated back to host from target.
  11441. *
  11442. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  11443. * Optionally used in response, u32 attribute, used in AP mode only.
  11444. * Counter in the target for the number of data frames successfully transmitted
  11445. * to the station.
  11446. *
  11447. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  11448. * Optionally used in response, u32 attribute, used in AP mode only.
  11449. * Value indicates the number of data frames successfully transmitted only
  11450. * after retrying the packets.
  11451. *
  11452. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  11453. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  11454. * Value indicates the number of data frames not transmitted successfully even
  11455. * after retrying the packets for the number of times equal to the total number
  11456. * of retries allowed for that packet.
  11457. *
  11458. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  11459. * the STA mode only. Represent the number of probe requests sent by the STA
  11460. * while attempting to roam on missing certain number of beacons from the
  11461. * connected AP. If queried in the disconnected state, this represents the
  11462. * count for the last connected state.
  11463. *
  11464. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  11465. * the STA mode. Represent the number of probe responses received by the station
  11466. * while attempting to roam on missing certain number of beacons from the
  11467. * connected AP. When queried in the disconnected state, this represents the
  11468. * count when in last connected state.
  11469. *
  11470. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  11471. * STA mode only. Represents the total number of frames sent out by STA
  11472. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  11473. * only for the connect session. Represents the count of last connected session,
  11474. * when queried in the disconnected state.
  11475. *
  11476. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  11477. * Total number of RTS sent out by the STA. This data is maintained per connect
  11478. * session. Represents the count of last connected session, when queried in the
  11479. * disconnected state.
  11480. *
  11481. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  11482. * STA mode.Represent the number of RTS transmission failure that reach retry
  11483. * limit. This data is maintained per connect session. Represents the count of
  11484. * last connected session, when queried in the disconnected state.
  11485. *
  11486. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  11487. * the STA mode. Represent the total number of non aggregated frames transmitted
  11488. * by the STA. This data is maintained per connect session. Represents the count
  11489. * of last connected session, when queried in the disconnected state.
  11490. *
  11491. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  11492. * STA mode. Represent the total number of aggregated frames transmitted by the
  11493. * STA. This data is maintained per connect session. Represents the count of
  11494. * last connected session, when queried in the disconnected state.
  11495. *
  11496. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  11497. * the STA mode. Represents the number of received frames with a good PLCP. This
  11498. * data is maintained per connect session. Represents the count of last
  11499. * connected session, when queried in the disconnected state.
  11500. *
  11501. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  11502. * used in the STA mode. Represents the number of occasions that no valid
  11503. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  11504. * session. Represents the count of last connected session, when queried in the
  11505. * disconnected state.
  11506. *
  11507. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  11508. * STA mode. Represents the number of frames for which CRC check failed in the
  11509. * MAC. This data is maintained per connect session. Represents the count of
  11510. * last connected session, when queried in the disconnected state.
  11511. *
  11512. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  11513. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  11514. * data is maintained per connect session. Represents the count of last
  11515. * connected session, when queried in the disconnected state.
  11516. *
  11517. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  11518. * mode. Represents the number of received Block Acks. This data is maintained
  11519. * per connect session. Represents the count of last connected session, when
  11520. * queried in the disconnected state.
  11521. *
  11522. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  11523. * mode. Represents the number of beacons received from the connected BSS. This
  11524. * data is maintained per connect session. Represents the count of last
  11525. * connected session, when queried in the disconnected state.
  11526. *
  11527. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  11528. * STA mode. Represents the number of beacons received by the other BSS when in
  11529. * connected state (through the probes done by the STA). This data is maintained
  11530. * per connect session. Represents the count of last connected session, when
  11531. * queried in the disconnected state.
  11532. *
  11533. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  11534. * the STA mode. Represents the number of received DATA frames with good FCS and
  11535. * matching Receiver Address when in connected state. This data is maintained
  11536. * per connect session. Represents the count of last connected session, when
  11537. * queried in the disconnected state.
  11538. *
  11539. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  11540. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  11541. * when in the connected state. This data is maintained per connect session.
  11542. * Represents the count of last connected session, when queried in the
  11543. * disconnected state.
  11544. *
  11545. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  11546. * STA mode. This represents the target power in dBm for the transmissions done
  11547. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  11548. * connect session. Represents the count of last connected session, when
  11549. * queried in the disconnected state.
  11550. *
  11551. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  11552. * STA mode. This represents the Target power in dBm for transmissions done to
  11553. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11554. * session. Represents the count of last connected session, when queried in the
  11555. * disconnected state.
  11556. *
  11557. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  11558. * STA mode. This represents the Target power in dBm for transmissions done to
  11559. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  11560. * Represents the count of last connected session, when queried in the
  11561. * disconnected state.
  11562. *
  11563. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  11564. * STA mode. This represents the Target power in dBm for transmissions done to
  11565. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11566. * session. Represents the count of last connected session, when queried in
  11567. * the disconnected state.
  11568. *
  11569. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  11570. * STA mode. This represents the Target power in dBm for for transmissions done
  11571. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  11572. * Represents the count of last connected session, when queried in the
  11573. * disconnected state.
  11574. *
  11575. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  11576. * in the STA mode. This represents the Nested attribute representing the
  11577. * overflow counts of each receive buffer allocated to the hardware during the
  11578. * STA's connection. The number of hw buffers might vary for each WLAN
  11579. * solution and hence this attribute represents the nested array of all such
  11580. * HW buffer count. This data is maintained per connect session. Represents
  11581. * the count of last connected session, when queried in the disconnected state.
  11582. *
  11583. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  11584. * allowed as per the regulatory requirements for the current or last connected
  11585. * session. Used in the STA mode.
  11586. *
  11587. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  11588. * (dBm) used by the station in its latest unicast frame while communicating
  11589. * to the AP in the connected state. When queried in the disconnected state,
  11590. * this represents the TX power used by the STA with last AP communication
  11591. * when in connected state.
  11592. *
  11593. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  11594. * level used to adjust the RX sensitivity. Represents the current ANI level
  11595. * when queried in the connected state. When queried in the disconnected
  11596. * state, this corresponds to the latest ANI level at the instance of
  11597. * disconnection.
  11598. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  11599. * only. This represents the number of group addressed robust management frames
  11600. * received from this station with an invalid MIC or a missing MME when PMF is
  11601. * enabled.
  11602. *
  11603. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  11604. * only. This represents the number of group addressed robust management frames
  11605. * received from this station with the packet number less than or equal to the
  11606. * last received packet number when PMF is enabled.
  11607. *
  11608. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  11609. * mode only. This represents the number of Beacon frames received from this
  11610. * station with an invalid MIC or a missing MME when beacon protection is
  11611. * enabled.
  11612. *
  11613. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  11614. * only. This represents number of Beacon frames received from this station with
  11615. * the packet number less than or equal to the last received packet number when
  11616. * beacon protection is enabled.
  11617. *
  11618. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  11619. * STA mode only. Driver uses this attribute to populate the connection failure
  11620. * reason codes and the values are defined in
  11621. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  11622. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  11623. * connection failure from driver. The driver shall not include this attribute
  11624. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  11625. * connection failure observed in the last attempted connection.
  11626. *
  11627. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  11628. * used by the station in its last TX frame while communicating to the AP in the
  11629. * connected state. When queried in the disconnected state, this represents the
  11630. * rate used by the STA in the last TX frame to the AP when it was connected.
  11631. * This attribute is used for STA mode only.
  11632. *
  11633. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  11634. * This represents the rate index used by the STA for the last TX frame to the
  11635. * AP. When queried in the disconnected state, this gives the last RIX used by
  11636. * the STA in the last TX frame to the AP when it was connected.
  11637. *
  11638. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  11639. * mode only. This represents the number of times the STA TSF goes out of sync
  11640. * from the AP after the connection. If queried in the disconnected state, this
  11641. * gives the count of TSF out of sync for the last connection.
  11642. *
  11643. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  11644. * mode only. This represents the roam trigger reason for the last roaming
  11645. * attempted by the firmware. This can be queried either in connected state or
  11646. * disconnected state. Each bit of this attribute represents the different
  11647. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  11648. *
  11649. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  11650. * only. This represents the roam fail reason for the last failed roaming
  11651. * attempt by the firmware. Different roam failure reason codes are specified
  11652. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  11653. * connected state or disconnected state.
  11654. *
  11655. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  11656. * STA mode only. This represents the roam invoke fail reason for the last
  11657. * failed roam invoke. Different roam invoke failure reason codes
  11658. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  11659. * queried either in connected state or disconnected state.
  11660. *
  11661. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  11662. * This represents the average congestion duration of uplink frames in MAC
  11663. * queue in unit of ms. This can be queried either in connected state or
  11664. * disconnected state.
  11665. *
  11666. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
  11667. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11668. * rate value of TX packets. Every index of this nested attribute corresponds
  11669. * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
  11670. * queried in connected state.
  11671. *
  11672. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
  11673. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11674. * rate value of RX packets. Every index of this nested attribute corresponds
  11675. * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
  11676. * queried in connected state.
  11677. */
  11678. enum qca_wlan_vendor_attr_get_sta_info {
  11679. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  11680. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  11681. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  11682. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  11683. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  11684. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  11685. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  11686. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  11687. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  11688. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  11689. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  11690. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  11691. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  11692. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  11693. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  11694. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  11695. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  11696. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  11697. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  11698. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  11699. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  11700. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  11701. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  11702. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  11703. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  11704. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  11705. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  11706. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  11707. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  11708. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  11709. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  11710. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  11711. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  11712. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  11713. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  11714. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  11715. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  11716. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  11717. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  11718. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  11719. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  11720. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  11721. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  11722. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  11723. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  11724. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  11725. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  11726. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  11727. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
  11728. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
  11729. /* keep last */
  11730. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  11731. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  11732. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  11733. };
  11734. /**
  11735. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  11736. * Used when the driver triggers the STA to disconnect from the AP.
  11737. *
  11738. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  11739. * disconnection with the AP due to unspecified reasons.
  11740. *
  11741. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  11742. * disconnection with the AP due to a roaming failure. This roaming is triggered
  11743. * internally (host driver/firmware).
  11744. *
  11745. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  11746. * the AP when the user/external triggered roaming fails.
  11747. *
  11748. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  11749. * by the host driver whenever gateway reachability failure is detected and the
  11750. * driver disconnects with AP.
  11751. *
  11752. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  11753. * the AP on a channel switch announcement from it with an unsupported channel.
  11754. *
  11755. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  11756. * with indoor channels disabled and if the STA is connected on one of these
  11757. * disabled channels, the host driver disconnected the STA with this reason
  11758. * code.
  11759. *
  11760. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  11761. * explicit request from the user to disable the current operating channel.
  11762. *
  11763. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  11764. * the internal host driver/firmware recovery.
  11765. *
  11766. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  11767. * a timeout for the key installations from the user space.
  11768. *
  11769. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  11770. * STA on a band change request from the user space to a different band from the
  11771. * current operation channel/band.
  11772. *
  11773. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  11774. * interface down trigger from the user space.
  11775. *
  11776. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  11777. * STA on getting continuous transmission failures for multiple Data frames.
  11778. *
  11779. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  11780. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  11781. * represents inactivity from AP on such transmissions.
  11782. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  11783. * disconnection when SA Query times out (AP does not respond to SA Query).
  11784. *
  11785. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  11786. * STA on missing the beacons continuously from the AP.
  11787. *
  11788. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  11789. * able to move to the channel mentioned by the AP in CSA.
  11790. *
  11791. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  11792. */
  11793. enum qca_disconnect_reason_codes {
  11794. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  11795. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  11796. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  11797. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  11798. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  11799. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  11800. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  11801. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  11802. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  11803. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  11804. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  11805. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  11806. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  11807. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  11808. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  11809. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  11810. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  11811. };
  11812. /**
  11813. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  11814. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  11815. *
  11816. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  11817. * This attribute represents the driver specific reason codes (local
  11818. * driver/firmware initiated reasons for disconnection) defined
  11819. * in enum qca_disconnect_reason_codes.
  11820. */
  11821. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  11822. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  11823. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  11824. /* keep last */
  11825. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  11826. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  11827. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  11828. };
  11829. /**
  11830. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  11831. *
  11832. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  11833. */
  11834. enum qca_wlan_tspec_operation {
  11835. QCA_WLAN_TSPEC_ADD = 0,
  11836. QCA_WLAN_TSPEC_DEL = 1,
  11837. QCA_WLAN_TSPEC_GET = 2,
  11838. };
  11839. /**
  11840. * enum qca_wlan_tspec_direction - Direction in TSPEC
  11841. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  11842. *
  11843. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  11844. */
  11845. enum qca_wlan_tspec_direction {
  11846. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  11847. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  11848. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  11849. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  11850. };
  11851. /**
  11852. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  11853. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  11854. *
  11855. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  11856. */
  11857. enum qca_wlan_tspec_ack_policy {
  11858. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  11859. QCA_WLAN_TSPEC_NO_ACK = 1,
  11860. /* Reserved */
  11861. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  11862. };
  11863. /**
  11864. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  11865. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  11866. *
  11867. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  11868. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  11869. * are defined in enum qca_wlan_tspec_operation.
  11870. * Mandatory attribute for all kinds of config TSPEC requests.
  11871. *
  11872. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  11873. * u8 attribute. TS ID. Possible values are 0-7.
  11874. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  11875. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  11876. *
  11877. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  11878. * u8 attribute. Direction of data carried by the TS. Possible values are
  11879. * defined in enum qca_wlan_tspec_direction.
  11880. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11881. *
  11882. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  11883. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  11884. * with the TS. set - enabled, not set - disabled.
  11885. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11886. *
  11887. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  11888. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  11889. * belonging to this TS. Possible values are 0-7.
  11890. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11891. *
  11892. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  11893. * u8 attribute. Indicate whether MAC acknowledgements are required for
  11894. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  11895. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  11896. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11897. *
  11898. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  11899. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  11900. * belonging to this TS.
  11901. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11902. *
  11903. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  11904. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  11905. * belonging to this TS.
  11906. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11907. *
  11908. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  11909. * u32 attribute. Specify the minimum interval in microseconds between the
  11910. * start of two successive SPs.
  11911. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11912. *
  11913. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  11914. * u32 attribute. Specify the maximum interval in microseconds between the
  11915. * start of two successive SPs.
  11916. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11917. *
  11918. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  11919. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11920. * without arrival or transfer of an MPDU belonging to the TS before this TS
  11921. * is deleted by the MAC entity at the HC.
  11922. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11923. *
  11924. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  11925. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11926. * without arrival or transfer of an MSDU belonging to the TS before the
  11927. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  11928. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  11929. * interval is always less than or equal to the inactivity interval.
  11930. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11931. *
  11932. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  11933. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  11934. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11935. * bounds of this TSPEC.
  11936. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11937. *
  11938. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  11939. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  11940. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11941. * bounds of this TSPEC.
  11942. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11943. *
  11944. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  11945. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  11946. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  11947. * the bounds of this TSPEC.
  11948. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11949. *
  11950. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  11951. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  11952. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  11953. * value of 0 indicates that there are no bursts.
  11954. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11955. *
  11956. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  11957. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  11958. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  11959. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11960. *
  11961. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  11962. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  11963. * and above the stated application rates required to transport an MSDU/A-MSDU
  11964. * belonging to the TS in this TSPEC.
  11965. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11966. */
  11967. enum qca_wlan_vendor_attr_config_tspec {
  11968. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  11969. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  11970. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  11971. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  11972. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  11973. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  11974. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  11975. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  11976. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  11977. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  11978. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  11979. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  11980. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  11981. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  11982. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  11983. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  11984. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  11985. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  11986. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  11987. /* keep last */
  11988. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  11989. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  11990. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  11991. };
  11992. /**
  11993. * enum qca_wlan_medium_assess_type - Type of medium assess request
  11994. *
  11995. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  11996. */
  11997. enum qca_wlan_medium_assess_type {
  11998. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  11999. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  12000. };
  12001. /**
  12002. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  12003. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  12004. *
  12005. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  12006. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  12007. * Specify the type of medium assess request and indicate its type in response.
  12008. * Possible values are defined in enum qca_wlan_medium_assess_type.
  12009. *
  12010. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  12011. * u32 attribute. Mandatory in CCA request.
  12012. * Specify the assessment period in terms of seconds. Assessment result will be
  12013. * sent as the response to the CCA request after the assessment period.
  12014. *
  12015. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  12016. * u32 attribute. Mandatory in response to CCA request.
  12017. * Total timer tick count of the assessment cycle.
  12018. *
  12019. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  12020. * u32 attribute. Mandatory in response to CCA request.
  12021. * Timer tick count of idle time in the assessment cycle.
  12022. *
  12023. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  12024. * u32 attribute. Mandatory in response to CCA request.
  12025. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  12026. *
  12027. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  12028. * u32 attribute. Mandatory in response to CCA request.
  12029. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  12030. *
  12031. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  12032. * s32 attribute. Mandatory in response to CCA request.
  12033. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  12034. *
  12035. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  12036. * s32 attribute. Mandatory in response to CCA request.
  12037. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  12038. *
  12039. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  12040. * u8 attribute. Mandatory in congestion report request.
  12041. * 1-enable 0-disable.
  12042. *
  12043. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  12044. * u8 attribute. Mandatory in congestion report enable request and will be
  12045. * ignored if present in congestion report disable request. Possible values are
  12046. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  12047. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  12048. * congestion percentage reaches the configured threshold.
  12049. *
  12050. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  12051. * u8 attribute. Optional in congestion report enable request and will be
  12052. * ignored if present in congestion report disable request.
  12053. * Specify the interval of congestion report event in terms of seconds. Possible
  12054. * values are 1-255. Default value 1 will be used if this attribute is omitted
  12055. * or using invalid values.
  12056. *
  12057. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  12058. * u8 attribute. Mandatory in congestion report event.
  12059. * Indicate the actual congestion percentage. Possible values are 0-100.
  12060. */
  12061. enum qca_wlan_vendor_attr_medium_assess {
  12062. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  12063. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  12064. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  12065. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  12066. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  12067. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  12068. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  12069. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  12070. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  12071. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  12072. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  12073. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  12074. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  12075. /* keep last */
  12076. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  12077. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  12078. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  12079. };
  12080. /**
  12081. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  12082. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  12083. *
  12084. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  12085. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  12086. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  12087. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  12088. *
  12089. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
  12090. * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
  12091. *
  12092. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
  12093. * u8 attribute, required. indicates group id of Tx VDEV
  12094. *
  12095. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
  12096. * Nested attribute. This attribute shall be used by the driver to send
  12097. * group information. The attributes defined in enum
  12098. * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
  12099. * are nested in this attribute.
  12100. */
  12101. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  12102. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  12103. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  12104. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
  12105. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
  12106. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
  12107. /* keep last */
  12108. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  12109. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  12110. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  12111. };
  12112. /**
  12113. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
  12114. * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
  12115. *
  12116. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
  12117. * u32 attribute, required. contains interface index.
  12118. *
  12119. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
  12120. * u8 attribute, required. 0 - means vdev is in down state.
  12121. * 1- means vdev is in up state.
  12122. */
  12123. enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
  12124. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
  12125. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
  12126. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
  12127. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
  12128. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
  12129. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
  12130. };
  12131. /**
  12132. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  12133. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  12134. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  12135. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  12136. * frame
  12137. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  12138. * Request frame.
  12139. */
  12140. enum qca_wlan_vendor_oci_override_frame_type {
  12141. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  12142. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  12143. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  12144. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  12145. };
  12146. /**
  12147. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  12148. *
  12149. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  12150. * STA interface has to be given while selecting the connection policies
  12151. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  12152. * An interface is set as primary through the attribute
  12153. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  12154. * applicable if the primary interface has not been set earlier.
  12155. *
  12156. * The intention is not to downgrade the primary STA performance, such as:
  12157. * - Do not reduce the number of TX/RX chains of primary connection.
  12158. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  12159. * chains.
  12160. * - If using MCC, should set the MCC duty cycle of the primary connection to
  12161. * be higher than the secondary connection.
  12162. *
  12163. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  12164. * subsequent STA connection shall be chosen to balance with the existing
  12165. * concurrent STA's performance.
  12166. * Such as
  12167. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  12168. * capability.
  12169. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  12170. * to the secondary.
  12171. * - Prefer BSSID candidates which will help provide the best "overall"
  12172. * performance for all the STA connections.
  12173. */
  12174. enum qca_wlan_concurrent_sta_policy_config {
  12175. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  12176. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  12177. };
  12178. /**
  12179. * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
  12180. *
  12181. * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
  12182. * interface.
  12183. *
  12184. * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
  12185. * to meet gaming audio latency requirements.
  12186. *
  12187. * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
  12188. * concurrencies to meet lossless audio streaming requirements.
  12189. *
  12190. * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
  12191. * XR (eXtended Reality) requirements.
  12192. */
  12193. enum qca_wlan_concurrent_ap_policy_config {
  12194. QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
  12195. QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
  12196. QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
  12197. QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
  12198. };
  12199. /**
  12200. * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
  12201. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
  12202. *
  12203. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
  12204. * u8 attribute. Configures the concurrent STA policy configuration.
  12205. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  12206. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
  12207. * u8 attribute. Configures the concurrent AP policy configuration.
  12208. * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
  12209. */
  12210. enum qca_wlan_vendor_attr_concurrent_policy {
  12211. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
  12212. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
  12213. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
  12214. /* keep last */
  12215. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
  12216. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
  12217. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
  12218. };
  12219. /* Compatibility defines for previously used enum
  12220. * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
  12221. * in any new implementation.
  12222. */
  12223. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
  12224. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
  12225. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
  12226. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
  12227. #define qca_wlan_vendor_attr_concurrent_sta_policy \
  12228. qca_wlan_vendor_attr_concurrent_policy
  12229. /**
  12230. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  12231. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  12232. * attribute.
  12233. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  12234. * for unicast probe request.
  12235. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  12236. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  12237. * ath request.
  12238. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  12239. * received from AP.
  12240. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  12241. * request.
  12242. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  12243. * assoc request.
  12244. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  12245. * received from AP.
  12246. */
  12247. enum qca_sta_connect_fail_reason_codes {
  12248. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  12249. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  12250. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  12251. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  12252. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  12253. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  12254. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  12255. };
  12256. /**
  12257. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  12258. * OCI override request. These attributes are used inside nested attribute
  12259. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  12260. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  12261. *
  12262. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  12263. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  12264. * attribute to specify the frame type in which the OCI is to be overridden.
  12265. *
  12266. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  12267. * OCI frequency (in MHz) to override in the specified frame type.
  12268. */
  12269. enum qca_wlan_vendor_attr_oci_override {
  12270. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  12271. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  12272. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  12273. /* keep last */
  12274. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  12275. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  12276. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  12277. };
  12278. /**
  12279. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  12280. * filters defined in this enum are used in attribute
  12281. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  12282. *
  12283. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  12284. * shall filter the channels which are not usable because of coexistence with
  12285. * cellular radio.
  12286. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  12287. * shall filter the channels which are not usable because of existing active
  12288. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  12289. *
  12290. */
  12291. enum qca_wlan_vendor_usable_channels_filter {
  12292. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  12293. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  12294. };
  12295. /**
  12296. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  12297. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  12298. *
  12299. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  12300. * u32 attribute, required. Indicates the center frequency of the primary
  12301. * channel in MHz.
  12302. *
  12303. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  12304. * u32 attribute. Indicates the center frequency of the primary segment of the
  12305. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  12306. * 160 MHz, and 320 MHz channels.
  12307. *
  12308. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  12309. * u32 attribute. Indicates the center frequency of the secondary segment of
  12310. * 80+80 channel in MHz. This attribute is required only when
  12311. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  12312. *
  12313. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  12314. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  12315. * values are defined in enum nl80211_chan_width.
  12316. *
  12317. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  12318. * u32 attribute, required. Indicates all the interface types for which this
  12319. * channel is usable. This attribute encapsulates bitmasks of interface types
  12320. * defined in enum nl80211_iftype.
  12321. *
  12322. */
  12323. enum qca_wlan_vendor_attr_chan_info {
  12324. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  12325. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  12326. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  12327. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  12328. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  12329. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  12330. /* keep last */
  12331. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  12332. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  12333. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  12334. };
  12335. /**
  12336. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  12337. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  12338. *
  12339. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  12340. * u32 attribute. Indicates the bands from which the channels should be reported
  12341. * in response. This attribute encapsulates bit masks of bands defined in enum
  12342. * nl80211_band. Optional attribute, if not present in the request the driver
  12343. * shall return channels from all supported bands.
  12344. *
  12345. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  12346. * u32 attribute. Indicates all the interface types for which the usable
  12347. * channels information is requested. This attribute encapsulates bitmasks of
  12348. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  12349. * present in the request the driver shall send information of all supported
  12350. * interface modes.
  12351. *
  12352. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  12353. * u32 attribute. This attribute carries information of all filters that shall
  12354. * be applied while populating usable channels information by the driver. This
  12355. * attribute carries bit masks of different filters defined in enum
  12356. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  12357. * in the request the driver shall send information of channels without applying
  12358. * any of the filters that can be configured through this attribute.
  12359. *
  12360. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  12361. * Nested attribute. This attribute shall be used by the driver to send
  12362. * usability information of each channel. The attributes defined in enum
  12363. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  12364. */
  12365. enum qca_wlan_vendor_attr_usable_channels {
  12366. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  12367. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  12368. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  12369. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  12370. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  12371. /* keep last */
  12372. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  12373. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  12374. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  12375. };
  12376. /**
  12377. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  12378. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  12379. *
  12380. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  12381. * the list of radar history entries.
  12382. * Each entry contains freq, timestamp, and radar signal detect flag.
  12383. * The driver shall add an entry when CAC has finished, or radar signal
  12384. * has been detected post AP beaconing. The driver shall maintain at least
  12385. * 8 entries in order to save CAC result for a 160 MHz channel.
  12386. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  12387. * Channel frequency in MHz.
  12388. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  12389. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  12390. * or radar detection.
  12391. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  12392. * This flag indicates radar signal has been detected.
  12393. */
  12394. enum qca_wlan_vendor_attr_radar_history {
  12395. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  12396. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  12397. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  12398. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  12399. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  12400. /* keep last */
  12401. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  12402. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  12403. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  12404. };
  12405. /**
  12406. * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
  12407. *
  12408. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
  12409. * target exited MCC state and cleared the quota information. In the
  12410. * command it clears MCC quota setting and restores adaptive scheduling.
  12411. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
  12412. * will not be changed.
  12413. * This quota type is present in command/event.
  12414. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
  12415. * and the target may change the quota based on the data activity.
  12416. * This quota type is only present in event.
  12417. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
  12418. * by the target for low latency.
  12419. * This quota type is only present in command.
  12420. */
  12421. enum qca_wlan_vendor_mcc_quota_type {
  12422. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
  12423. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
  12424. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
  12425. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
  12426. };
  12427. /**
  12428. * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
  12429. * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
  12430. * quota information or as a command to set the required MCC quota for an
  12431. * interface.
  12432. *
  12433. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
  12434. * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
  12435. * In a command this specifies the MCC quota type to be set for the interface.
  12436. * In an event this provides the current quota type in force.
  12437. * This is required in a command and an event.
  12438. *
  12439. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
  12440. * the list of channel quota entries.
  12441. * In an event each entry contains the frequency and respective time quota for
  12442. * all the MCC interfaces.
  12443. * In a command it specifies the interface index and respective time quota.
  12444. * In a command only one entry (ifindex, quota pair) may be specified.
  12445. *
  12446. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
  12447. * Channel frequency in MHz. This is present only in an event.
  12448. *
  12449. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
  12450. * Channel time quota expressed as percentage.
  12451. * This is present in an event and a command.
  12452. * In an command, the user shall specify the quota to be allocated for the
  12453. * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
  12454. * In an event this provides the existing quota for the channel.
  12455. *
  12456. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
  12457. * Specifies the interface index (netdev) for which the corresponding
  12458. * configurations are applied. This is required in a command only. Only one
  12459. * interface index may be specified. If not specified, the configuration is
  12460. * rejected.
  12461. *
  12462. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
  12463. * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
  12464. * low latency mode. The firmware will do optimization for low
  12465. * latency in Multi-Channel concurrency state if enabled. And all existing
  12466. * user quota setting will be overwritten by the target.
  12467. * 0 - disable(default), 1 - enable.
  12468. * It is only present in a command with quota type of
  12469. * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
  12470. */
  12471. enum qca_wlan_vendor_attr_mcc_quota {
  12472. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
  12473. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
  12474. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
  12475. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
  12476. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
  12477. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
  12478. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
  12479. /* keep last */
  12480. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
  12481. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
  12482. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
  12483. };
  12484. /**
  12485. * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
  12486. * are used by the attribute
  12487. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
  12488. *
  12489. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
  12490. * invoke roam.
  12491. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
  12492. * detection failed when the roam trigger.
  12493. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
  12494. */
  12495. enum qca_wlan_roam_stats_invoke_reason {
  12496. QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
  12497. QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
  12498. QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
  12499. };
  12500. /**
  12501. * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
  12502. * values are used by the attribute
  12503. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
  12504. *
  12505. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
  12506. * roam by kickout.
  12507. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
  12508. * trigger by kickout.
  12509. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
  12510. * roam trigger by kickout.
  12511. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
  12512. * roam trigger by kickout.
  12513. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
  12514. * disappeared, and all TX is failing when roam trigger by kickout.
  12515. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
  12516. * timeout when roam trigger by kickout.
  12517. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
  12518. * peer has roamed to a repeater.
  12519. */
  12520. enum qca_wlan_roam_stats_tx_failures_reason {
  12521. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
  12522. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
  12523. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
  12524. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
  12525. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
  12526. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
  12527. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
  12528. };
  12529. /**
  12530. * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
  12531. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
  12532. *
  12533. * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
  12534. * detailed reason for roam scan being aborted.
  12535. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
  12536. * started due to high data RSSI during LOW-RSSI roaming.
  12537. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
  12538. * started due to good link speed during LOW-RSSI roaming.
  12539. * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
  12540. * due to high data RSSI during background roaming.
  12541. * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
  12542. * started due to high beacon RSSI during background roaming
  12543. */
  12544. enum qca_wlan_roam_stats_abort_reason {
  12545. QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
  12546. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
  12547. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
  12548. QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
  12549. QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
  12550. };
  12551. /**
  12552. * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
  12553. * These values are used by the attribute
  12554. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
  12555. *
  12556. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
  12557. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
  12558. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
  12559. * This is generally used in BTM events to indicate BTM frame exchange logs.
  12560. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
  12561. * from 2.4 GHz to 5 GHz or 6 GHz
  12562. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
  12563. * 5 GHz to 6 GHz
  12564. */
  12565. enum qca_wlan_roam_stats_scan_type {
  12566. QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
  12567. QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
  12568. QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
  12569. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
  12570. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
  12571. };
  12572. /**
  12573. * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
  12574. * These values are used by the attribute
  12575. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
  12576. *
  12577. * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
  12578. * detailed roam scan type.
  12579. * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
  12580. * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
  12581. */
  12582. enum qca_wlan_roam_stats_scan_dwell_type {
  12583. QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
  12584. QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
  12585. QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
  12586. };
  12587. /**
  12588. * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
  12589. * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
  12590. */
  12591. enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
  12592. /* 32-bit unsigned value to indicate center frequency of the primary
  12593. * channel in MHz for each roam scan channel.
  12594. */
  12595. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
  12596. /* 8-bit unsigned value to indicate channel scan type for each
  12597. * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
  12598. */
  12599. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
  12600. /* 32-bit unsigned value to indicate maximum scan time in milliseconds
  12601. * for each roam scan channel.
  12602. */
  12603. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
  12604. /* keep last */
  12605. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
  12606. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
  12607. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
  12608. };
  12609. /**
  12610. * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
  12611. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
  12612. *
  12613. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
  12614. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
  12615. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
  12616. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
  12617. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
  12618. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
  12619. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
  12620. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
  12621. */
  12622. enum qca_wlan_roam_stats_frame_subtype {
  12623. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
  12624. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
  12625. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
  12626. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
  12627. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
  12628. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
  12629. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
  12630. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
  12631. };
  12632. /**
  12633. * enum roam_frame_status - Specifies the valid values the vendor roam frame
  12634. * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
  12635. *
  12636. * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
  12637. * sent or received successfully.
  12638. * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
  12639. * receiving failed.
  12640. */
  12641. enum qca_wlan_roam_stats_frame_status {
  12642. QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
  12643. QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
  12644. };
  12645. /**
  12646. * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
  12647. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
  12648. */
  12649. enum qca_wlan_vendor_attr_roam_stats_frame_info {
  12650. /* 8-bit unsigned value to indicate the frame subtype during
  12651. * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
  12652. */
  12653. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
  12654. /* 8-bit unsigned value to indicate the frame is successful or failed
  12655. * during roaming, one of the values in
  12656. * qca_wlan_roam_stats_frame_status.
  12657. */
  12658. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
  12659. /* 64-bit unsigned value to indicate the timestamp for frame of
  12660. * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
  12661. * when sent or received during roaming, timestamp in milliseconds
  12662. * from system boot.
  12663. */
  12664. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
  12665. /* keep last */
  12666. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
  12667. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
  12668. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
  12669. };
  12670. /**
  12671. * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
  12672. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
  12673. */
  12674. enum qca_wlan_vendor_attr_roam_stats_info {
  12675. /* 64-bit unsigned value to indicate the timestamp when roam was
  12676. * triggered by the firmware, timestamp in milliseconds from system
  12677. * boot.
  12678. */
  12679. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
  12680. /* 32-bit unsigned value to indicate the roam trigger reason for the
  12681. * last roaming attempted by the firmware. This can be queried either
  12682. * in a connected state or disconnected state. The values of this
  12683. * attribute represent the roam trigger reason codes, which
  12684. * are defined in enum qca_roam_reason.
  12685. */
  12686. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
  12687. /* 8-bit unsigned value to indicate percentage of packets for which
  12688. * the RX rate is lower than the RX rate threshold in total RX packets,
  12689. * used for roaming trigger by per.
  12690. */
  12691. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
  12692. /* 8-bit unsigned value to indicate percentage of packets for which
  12693. * the TX rate is lower than TX rate threshold in total TX packets,
  12694. * used for roaming trigger by per.
  12695. */
  12696. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
  12697. /* 32-bit unsigned value to indicate final beacon miss count for
  12698. * trigger reason of beacon miss.
  12699. */
  12700. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
  12701. /* 32-bit unsigned value to indicate consecutive beacon miss count
  12702. * for trigger reason of beacon miss.
  12703. */
  12704. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
  12705. /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
  12706. * reason of beacon miss, 0 - success, 1 - fail.
  12707. * If QOS-NULL TX status is successful, beacon miss final count and
  12708. * consecutive beacon miss count will be reset to zero, and roam will
  12709. * not be triggered. If QOS-NULL TX status is failed, beacon miss final
  12710. * count and consecutive beacon miss count continue to calculate until
  12711. * roaming trigger by beacon miss.
  12712. */
  12713. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
  12714. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12715. * for trigger reason of poor RSSI.
  12716. */
  12717. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
  12718. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12719. * for trigger reason of poor RSSI.
  12720. */
  12721. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
  12722. /* 8-bit unsigned value to indicate RX link speed status
  12723. * for trigger reason of poor RSSI, 0 - good link speed,
  12724. * 1 - bad link speed.
  12725. */
  12726. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
  12727. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12728. * for trigger reason of better RSSI.
  12729. */
  12730. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
  12731. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12732. * for trigger reason of better RSSI.
  12733. */
  12734. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
  12735. /* 32-bit unsigned value to indicate RX throughput in bytes per second
  12736. * for trigger reason of congestion.
  12737. */
  12738. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
  12739. /* 32-bit unsigned value to indicate TX throughput in bytes per second
  12740. * for trigger reason of congestion.
  12741. */
  12742. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
  12743. /* 8-bit unsigned value to indicate roamable AP count
  12744. * for trigger reason of congestion.
  12745. */
  12746. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
  12747. /* 8-bit unsigned value to indicate invoke reason, one of the values
  12748. * defined in qca_wlan_roam_stats_invoke_reason.
  12749. */
  12750. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
  12751. /* 8-bit unsigned value to indicate request mode for trigger reason
  12752. * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
  12753. */
  12754. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
  12755. /* 32-bit unsigned value to indicate disassociate time in milliseconds
  12756. * for trigger reason of BTM.
  12757. */
  12758. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
  12759. /* 32-bit unsigned value to indicate preferred candidate list valid
  12760. * interval in milliseconds for trigger reason of BTM.
  12761. */
  12762. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
  12763. /* 8-bit unsigned value to indicate the number of preferred
  12764. * candidates for trigger reason of BTM.
  12765. */
  12766. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
  12767. /* 8-bit unsigned value to indicate response status for trigger
  12768. * reason of BTM, values are defined in IEEE Std 802.11-2020,
  12769. * Table 9-428 (BTM status code definitions).
  12770. */
  12771. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
  12772. /* 32-bit unsigned value to indicate BSS termination timeout value
  12773. * in milliseconds for trigger reason of BTM.
  12774. */
  12775. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
  12776. /* 32-bit unsigned value to indicate MBO associate retry timeout
  12777. * value in milliseconds for trigger reason of BTM.
  12778. */
  12779. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
  12780. /* 8-bit unsigned value to indicate dialog token number
  12781. * for trigger reason of BTM.
  12782. */
  12783. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
  12784. /* 8-bit unsigned value to indicate percentage of connected AP
  12785. * channel congestion utilization for trigger reason of BSS load.
  12786. */
  12787. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
  12788. /* 8-bit unsigned value to indicate disconnection type
  12789. * for trigger reason of disconnection. 1 - Deauthentication,
  12790. * 2 - Disassociation.
  12791. */
  12792. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
  12793. /* 16-bit unsigned value to indicate deauthentication or disassociation
  12794. * reason for trigger reason of disconnection, values are defined
  12795. * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
  12796. */
  12797. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
  12798. /* 32-bit unsigned value to indicate milliseconds of roam scan
  12799. * periodicity when needing to roam to find a better AP for trigger
  12800. * reason of periodic timer.
  12801. */
  12802. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
  12803. /* 8-bit signed value to indicate connected AP RSSI in dBm for
  12804. * trigger reason of background scan.
  12805. */
  12806. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
  12807. /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
  12808. * of background scan.
  12809. */
  12810. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
  12811. /* 8-bit signed value to indicate data RSSI threshold in dBm
  12812. * for trigger reason of background scan.
  12813. */
  12814. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
  12815. /* 32-bit unsigned value to indicate consecutive TX failure threshold
  12816. * for trigger reason of TX failures.
  12817. */
  12818. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
  12819. /* 8-bit unsigned value to indicate TX failure reason for trigger
  12820. * reason of TX failures, one of the values defined in
  12821. * qca_wlan_roam_stats_tx_failures_reason.
  12822. */
  12823. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
  12824. /* 8-bit unsigned value to indicate detail abort reason. One of the
  12825. * values in enum qca_wlan_roam_stats_abort_reason.
  12826. */
  12827. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
  12828. /* 8-bit signed value to indicate data RSSI in dBm when aborting the
  12829. * roam scan.
  12830. */
  12831. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
  12832. /* 8-bit signed value to indicate data RSSI threshold in dBm when
  12833. * aborting the roam scan.
  12834. */
  12835. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
  12836. /* 8-bit unsigned value to indicate data RSSI threshold in RX link
  12837. * speed status when aborting the roam scan.
  12838. * 0 - good link speed, 1 - bad link speed
  12839. */
  12840. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
  12841. /* 8-bit unsigned value to indicate roaming scan type.
  12842. * One of the values in enum qca_wlan_roam_stats_scan_type.
  12843. */
  12844. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
  12845. /* 8-bit unsigned value to indicate roaming result, used in STA mode
  12846. * only.
  12847. * 0-Roaming is successful, 1-Roaming is failed
  12848. */
  12849. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
  12850. /* 8-bit unsigned value to indicate the roam fail reason for the
  12851. * last failed roaming attempt by the firmware. Different roam failure
  12852. * reason codes are specified in enum qca_vendor_roam_fail_reasons.
  12853. * This can be queried either in connected state or disconnected state.
  12854. */
  12855. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
  12856. /* Nested attribute. Indicate roam scan info for each channel, the
  12857. * attributes defined in enum
  12858. * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
  12859. * this attribute.
  12860. */
  12861. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
  12862. /* 32-bit unsigned value to indicate total scan time during roam scan
  12863. * all channels, time in milliseconds.
  12864. */
  12865. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
  12866. /* Nested attribute. This attribute shall be used by the driver to
  12867. * send roam information of each subtype. The attributes defined in
  12868. * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
  12869. * this attribute.
  12870. */
  12871. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
  12872. /* 6-byte MAC address used by the driver to send roam stats information
  12873. * of the original AP BSSID. The original AP is the connected AP before
  12874. * roam happens, regardless of the roam resulting in success or failure.
  12875. * This attribute is only present when
  12876. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
  12877. * 0 (success) or 1 (failure).
  12878. * For non-MLO scenario, it indicates the original connected AP BSSID.
  12879. * For MLO scenario, it indicates the original BSSID of the link
  12880. * for which the reassociation occurred during the roam.
  12881. */
  12882. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45,
  12883. /* 6-byte MAC address used by the driver to send roam stats information
  12884. * of the roam candidate AP BSSID when roam failed. This is only present
  12885. * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
  12886. * 1 (failure). If the firmware updates more than one candidate AP BSSID
  12887. * to the driver, the driver only fills the last candidate AP BSSID and
  12888. * reports it to user space.
  12889. * For non-MLO scenario, it indicates the last candidate AP BSSID.
  12890. * For MLO scenario, it indicates the AP BSSID which may be the primary
  12891. * link BSSID or a nonprimary link BSSID.
  12892. */
  12893. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46,
  12894. /* 6-byte MAC address used by the driver to send roam stats information
  12895. * of the roamed AP BSSID when roam succeeds. This is only present when
  12896. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of
  12897. * 0 (success).
  12898. * For non-MLO scenario, it indicates the new AP BSSID to which has
  12899. * been successfully roamed.
  12900. * For MLO scenario, it indicates the new AP BSSID of the link on
  12901. * which the reassociation occurred during the roam.
  12902. */
  12903. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47,
  12904. /* keep last */
  12905. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
  12906. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
  12907. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
  12908. };
  12909. /**
  12910. * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
  12911. * report cached roam info from the driver to user space, enum values are used
  12912. * for netlink attributes sent with the
  12913. * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
  12914. */
  12915. enum qca_wlan_vendor_attr_roam_cached_stats {
  12916. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
  12917. /* Nested attribute, this attribute contains nested array roam info
  12918. * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
  12919. */
  12920. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
  12921. /* keep last */
  12922. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
  12923. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
  12924. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
  12925. };
  12926. /**
  12927. * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
  12928. * radio configurations present in each radio combination.
  12929. *
  12930. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
  12931. * the band info in the radio configuration. Uses the enum qca_set_band values.
  12932. *
  12933. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
  12934. * the number of antennas info in the radio configuration.
  12935. */
  12936. enum qca_wlan_vendor_attr_supported_radio_cfg {
  12937. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
  12938. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
  12939. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
  12940. /* keep last */
  12941. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
  12942. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
  12943. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
  12944. };
  12945. /**
  12946. * enum qca_wlan_vendor_attr_radio_combination - Attributes for
  12947. * radio combinations supported by the device.
  12948. *
  12949. * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
  12950. * provides the radio configurations present in the radio combination.
  12951. * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
  12952. * This attribute provides the values for radio combination matrix.
  12953. * For standalone config, the number of config values is one and the config
  12954. * carries the band and antenna information for standalone configuration. For
  12955. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
  12956. * configuration the number of config values is two and the config carries the
  12957. * band and antenna information for each simultaneous radio.
  12958. */
  12959. enum qca_wlan_vendor_attr_radio_combination {
  12960. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
  12961. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
  12962. /* keep last */
  12963. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
  12964. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
  12965. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
  12966. };
  12967. /**
  12968. * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
  12969. * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
  12970. *
  12971. * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
  12972. * provides the radio combinations supported by the device.
  12973. * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
  12974. * For example, in the radio combination matrix for a device which has two
  12975. * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
  12976. * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
  12977. * combinations is 5 and the radio combinations are
  12978. * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
  12979. * {{5 GHz 2X2}}, //Standalone 5 GHz
  12980. * {{6 GHz 2X2}}, //Standalone 6 GHz
  12981. * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
  12982. * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
  12983. * The band and antenna info together as nested data provides one radio config.
  12984. * Standalone configuration has one config with band and antenna nested data.
  12985. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
  12986. * have two nested band and antenna info data.
  12987. */
  12988. enum qca_wlan_vendor_attr_radio_combination_matrix {
  12989. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
  12990. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
  12991. /* keep last */
  12992. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
  12993. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
  12994. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
  12995. };
  12996. /**
  12997. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  12998. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  12999. *
  13000. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  13001. * Enable mDNS offload. This attribute is mandatory to enable
  13002. * mDNS offload feature. If this attribute is not present, mDNS offload
  13003. * is disabled.
  13004. *
  13005. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  13006. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  13007. * attribute is mandatory when enabling the feature, and not required when
  13008. * disabling the feature.
  13009. *
  13010. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  13011. * the following attributes:
  13012. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  13013. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  13014. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  13015. *
  13016. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  13017. * It consists of a hostname and ".local" as the domain name. The character
  13018. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  13019. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  13020. * supported per vdev.
  13021. * For example: myphone.local
  13022. *
  13023. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  13024. * u16 attribute. It specifies the total number of resource records present
  13025. * in the answer section of the answer payload. This attribute is needed by the
  13026. * firmware to populate the mDNS response frame for mNDS queries without having
  13027. * to parse the answer payload.
  13028. *
  13029. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  13030. * attribute sent by the mdnsResponder from userspace. It contains resource
  13031. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  13032. * payload is passed down to firmware and is transmitted in response to
  13033. * mDNS queries.
  13034. * The maximum size of the answer payload supported is 512 bytes.
  13035. */
  13036. enum qca_wlan_vendor_attr_mdns_offload {
  13037. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  13038. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  13039. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  13040. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  13041. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  13042. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  13043. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  13044. /* keep last */
  13045. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  13046. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  13047. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  13048. };
  13049. /**
  13050. * enum qca_vendor_attr_diag_event_type - Attributes used by
  13051. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  13052. *
  13053. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  13054. * driver/firmware during Connection request from Userspace. 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_SSID,
  13058. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13059. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  13060. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13061. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  13062. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  13063. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  13064. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  13065. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  13066. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  13067. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  13068. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13069. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13070. *
  13071. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  13072. * driver/firmware when a connection is failed. Uses the
  13073. * following attributes of enum qca_wlan_vendor_attr_diag:
  13074. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13075. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13076. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13077. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13078. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13079. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13080. *
  13081. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  13082. * driver/firmware during Authentication request from a device. Uses the
  13083. * following attributes of enum qca_wlan_vendor_attr_diag:
  13084. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13085. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13086. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13087. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  13088. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  13089. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13090. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13091. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13092. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13093. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13094. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13095. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13096. *
  13097. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  13098. * driver/firmware when device receives an authentication response. Uses the
  13099. * following attributes of enum qca_wlan_vendor_attr_diag:
  13100. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13101. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13102. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  13103. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  13104. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13105. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13106. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13107. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13108. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13109. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13110. *
  13111. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  13112. * driver/firmware when device sends an association request. Uses the
  13113. * following attributes of enum qca_wlan_vendor_attr_diag:
  13114. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13115. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13116. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13117. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13118. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13119. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13120. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13121. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13122. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13123. *
  13124. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  13125. * driver/firmware when device receives an association response. Uses the
  13126. * following attributes of enum qca_wlan_vendor_attr_diag:
  13127. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13128. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13129. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13130. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13131. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13132. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13133. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13134. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13135. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
  13136. *
  13137. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  13138. * driver/userspace when device receives a deauthentication response. Uses the
  13139. * following attributes of enum qca_wlan_vendor_attr_diag:
  13140. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13141. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13142. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13143. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13144. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13145. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13146. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13147. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13148. *
  13149. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  13150. * driver/userspace when device sends a deauthentication request. Uses the
  13151. * following attributes of enum qca_wlan_vendor_attr_diag:
  13152. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13153. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13154. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13155. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13156. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13157. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13158. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13159. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13160. *
  13161. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  13162. * driver/firmware when device receives a disassociation response. Uses the
  13163. * following attributes of enum qca_wlan_vendor_attr_diag:
  13164. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13165. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13166. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13167. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13168. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13169. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13170. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13171. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13172. *
  13173. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  13174. * driver/firmware when device sends a disassociation request. Uses the
  13175. * following attributes of enum qca_wlan_vendor_attr_diag:
  13176. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13177. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13178. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13179. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13180. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13181. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13182. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13183. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13184. *
  13185. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  13186. * driver/firmware when device did not receive beacon packets during connection.
  13187. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  13188. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13189. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13190. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13191. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13192. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13193. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13194. *
  13195. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  13196. * driver/firmware when Roaming scan is triggered. Uses the following
  13197. * attributes of enum qca_wlan_vendor_attr_diag:
  13198. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13199. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  13200. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  13201. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13202. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13203. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  13204. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  13205. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13206. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13207. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13208. *
  13209. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  13210. * driver/firmware Roam scanning is processed. Uses the following
  13211. * attributes of enum qca_wlan_vendor_attr_diag:
  13212. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13213. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13214. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  13215. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  13216. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13217. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13218. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13219. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13220. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
  13221. *
  13222. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  13223. * driver/firmware to provide Roam information of the current AP. Uses the
  13224. * following attributes of enum qca_wlan_vendor_attr_diag:
  13225. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13226. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13227. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13228. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13229. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13230. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  13231. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13232. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13233. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13234. *
  13235. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  13236. * driver/firmware to provide Roam information of the candid AP. Uses the
  13237. * following attributes of enum qca_wlan_vendor_attr_diag:
  13238. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13239. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13240. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13241. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13242. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13243. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  13244. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  13245. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13246. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13247. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13248. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13249. *
  13250. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  13251. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  13252. * following attributes of enum qca_wlan_vendor_attr_diag:
  13253. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13254. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
  13255. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13256. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13257. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13258. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13259. *
  13260. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  13261. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  13262. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13263. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13264. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13265. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13266. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13267. *
  13268. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  13269. * /firmware when STA sends a BTM request frame. Uses the following attributes
  13270. * of enum qca_wlan_vendor_attr_diag:
  13271. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13272. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13273. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  13274. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  13275. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  13276. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  13277. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13278. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13279. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13280. *
  13281. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  13282. * driver/firmware when STA queries about BTM transition. Uses the following
  13283. * attributes of enum qca_wlan_vendor_attr_diag:
  13284. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13285. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13286. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  13287. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13288. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13289. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13290. *
  13291. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  13292. * /firmware when STA receives BTM response frame. Uses the following
  13293. * attributes of enum qca_wlan_vendor_attr_diag:
  13294. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13295. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13296. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  13297. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  13298. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  13299. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13300. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13301. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13302. *
  13303. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  13304. * driver/firmware to provide BTM request candidate information. Uses the
  13305. * following attributes of enum qca_wlan_vendor_attr_diag:
  13306. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13307. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13308. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  13309. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13310. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13311. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13312. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13313. *
  13314. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  13315. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  13316. * enum qca_wlan_vendor_attr_diag:
  13317. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13318. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  13319. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13320. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  13321. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13322. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13323. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13324. *
  13325. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  13326. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  13327. * attributes of enum qca_wlan_vendor_attr_diag:
  13328. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13329. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13330. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13331. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13332. *
  13333. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  13334. * driver/firmware to indicate DHCP offering to AP. Uses the following
  13335. * attributes of enum qca_wlan_vendor_attr_diag:
  13336. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13337. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13338. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13339. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13340. *
  13341. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  13342. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  13343. * attributes of enum qca_wlan_vendor_attr_diag:
  13344. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13345. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13346. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13347. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13348. *
  13349. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  13350. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  13351. * attributes of enum qca_wlan_vendor_attr_diag:
  13352. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13353. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13354. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13355. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13356. *
  13357. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  13358. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  13359. * following attributes of enum qca_wlan_vendor_attr_diag:
  13360. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13361. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13362. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13363. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13364. *
  13365. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  13366. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  13367. * enum qca_wlan_vendor_attr_diag:
  13368. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13369. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13370. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13371. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13372. *
  13373. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  13374. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  13375. * enum qca_wlan_vendor_attr_diag:
  13376. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13377. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13378. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13379. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13380. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13381. *
  13382. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  13383. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  13384. * enum qca_wlan_vendor_attr_diag:
  13385. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13386. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13387. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13388. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13389. *
  13390. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  13391. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  13392. * enum qca_wlan_vendor_attr_diag:
  13393. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13394. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13395. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13396. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13397. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13398. *
  13399. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  13400. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  13401. * enum qca_wlan_vendor_attr_diag:
  13402. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13403. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13404. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13405. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13406. *
  13407. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  13408. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  13409. * enum qca_wlan_vendor_attr_diag:
  13410. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13411. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13412. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13413. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13414. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13415. *
  13416. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  13417. * /firmware to indicate device sent EAP request. Uses the following attributes
  13418. * of enum qca_wlan_vendor_attr_diag:
  13419. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13420. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13421. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13422. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13423. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13424. *
  13425. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  13426. * /firmware to indicate device received EAP response. Uses the following
  13427. * attributes of enum qca_wlan_vendor_attr_diag:
  13428. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13429. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13430. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13431. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13432. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13433. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13434. *
  13435. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  13436. * /firmware to indicate EAP frame transmission is success. Uses the following
  13437. * attributes of enum qca_wlan_vendor_attr_diag:
  13438. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13439. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13440. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13441. *
  13442. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  13443. * /firmware to indicate EAP frame transmission is failed. Uses the following
  13444. * attributes of enum qca_wlan_vendor_attr_diag:
  13445. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13446. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13447. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13448. *
  13449. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
  13450. * /firmware to indicate Reassocation request. Uses the following attributes
  13451. * of enum qca_wlan_vendor_attr_diag:
  13452. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13453. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13454. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13455. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13456. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13457. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13458. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13459. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13460. *
  13461. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
  13462. * /firmware to indicate Reassocation response. Uses the following attributes
  13463. * of enum qca_wlan_vendor_attr_diag:
  13464. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13465. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13466. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13467. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13468. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
  13469. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13470. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13471. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13472. */
  13473. enum qca_vendor_attr_diag_event_type {
  13474. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  13475. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  13476. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  13477. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  13478. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  13479. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  13480. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  13481. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  13482. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  13483. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  13484. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  13485. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  13486. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  13487. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  13488. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  13489. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  13490. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  13491. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  13492. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  13493. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  13494. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  13495. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  13496. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  13497. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  13498. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  13499. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  13500. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  13501. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  13502. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  13503. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  13504. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  13505. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  13506. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  13507. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  13508. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  13509. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  13510. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  13511. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
  13512. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
  13513. /* keep last */
  13514. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  13515. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  13516. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  13517. };
  13518. /**
  13519. * enum qca_wlan_vendor_tx_status - Used by attribute
  13520. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  13521. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  13522. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  13523. * is not received.
  13524. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  13525. * acknowledged.
  13526. */
  13527. enum qca_wlan_vendor_tx_status {
  13528. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  13529. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
  13530. QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
  13531. };
  13532. /**
  13533. * enum qca_roam_sub_reason - Used by attribute
  13534. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  13535. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  13536. * timer expiry
  13537. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  13538. * to no candidate found during LOW RSSI trigger.
  13539. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  13540. * Imminent timeout
  13541. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  13542. * failure
  13543. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  13544. * emergency like deauth/disassoc.
  13545. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  13546. * BSS transition management request.
  13547. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  13548. * Roam scan triggered due to Low RSSI periodic timer
  13549. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  13550. * Roam trigger due to periodic timer after no candidate found during CU
  13551. * inactivity timer scan.
  13552. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  13553. * found in high CU roam trigger.
  13554. */
  13555. enum qca_roam_sub_reason {
  13556. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  13557. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  13558. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  13559. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  13560. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  13561. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  13562. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  13563. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  13564. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  13565. };
  13566. /*
  13567. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  13568. * to send diag data to the userspace. The attributes defined in this enum are
  13569. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13570. *
  13571. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  13572. * by driver/firmware to send diag data. Each instance of this nested attribute
  13573. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  13574. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
  13575. * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  13576. * nested attribute can be sent with one vendor command
  13577. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13578. *
  13579. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  13580. * attribute indicates the type of the diag event from driver/firmware. Uses
  13581. * values from enum qca_vendor_attr_diag_event_type.
  13582. *
  13583. * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
  13584. * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
  13585. * API to send time of the day in microseconds to userspace.
  13586. *
  13587. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  13588. * This attribute indicates firmware timestamp in microseconds.
  13589. *
  13590. * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
  13591. * indicates wlan interface index.
  13592. *
  13593. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  13594. * indicates 6-byte MAC address representing the BSSID of the AP.
  13595. *
  13596. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  13597. * indicates the 6-byte MAC address representing the BSSID hint sent in
  13598. * the connect request.
  13599. *
  13600. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
  13601. * indicates the SSID in u8 array with a maximum length of 32.
  13602. *
  13603. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  13604. * indicates the frequency of AP in MHz.
  13605. *
  13606. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  13607. * indicates frequency hint given in the connect request in MHz.
  13608. *
  13609. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
  13610. * This attribute indicates RSSI of the 802.11 frame in dBm.
  13611. *
  13612. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  13613. * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
  13614. * Table 12-10—Integrity and key wrap algorithms.
  13615. *
  13616. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  13617. * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
  13618. * Table 12-10—Integrity and key wrap algorithms.
  13619. *
  13620. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  13621. * attribute indicates Group management cipher suite defined in IEEE Std
  13622. * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
  13623. *
  13624. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  13625. * indicates Auth key management suite defined in IEEE Std 802.11‐2020
  13626. * Table 9-151—AKM suite selectors.
  13627. *
  13628. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  13629. * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
  13630. * Section 9.4.1.1 Authentication Algorithm Number field.
  13631. *
  13632. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  13633. * indicates bluetooth COEX is active or not.
  13634. *
  13635. * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
  13636. * attribute indicates SAE authentication frame type. The possible values are
  13637. * 1 - SAE commit frame
  13638. * 2 - SAE confirm frame
  13639. *
  13640. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  13641. * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
  13642. * Table 9-49—Reason codes.
  13643. *
  13644. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  13645. * attribute indicates sequence number of the frame defined in IEEE Std
  13646. * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
  13647. * field.
  13648. *
  13649. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
  13650. * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
  13651. * 9-50—Status codes.
  13652. *
  13653. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  13654. * Uses enum qca_wlan_vendor_tx_status.
  13655. *
  13656. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  13657. * indicates if frame transmission is retried.
  13658. *
  13659. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  13660. * Uses enum qca_roam_reason.
  13661. *
  13662. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  13663. * Uses enum qca_roam_sub_reason.
  13664. *
  13665. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  13666. * indicates channel utilization in percentage.
  13667. *
  13668. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  13669. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  13670. *
  13671. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  13672. * This attribute indicates current RSSI threshold in dBm.
  13673. *
  13674. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  13675. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  13676. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  13677. *
  13678. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  13679. * This attribute indicates number of scanned candidate APs.
  13680. *
  13681. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  13682. * attribute indicates roam AP rank computed based on connection preference.
  13683. *
  13684. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  13685. * This attribute indicates expected throughput in kbps.
  13686. *
  13687. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  13688. * This attribute indicates the preference value of candidate AP / connected AP
  13689. * calculated in the firmware.
  13690. *
  13691. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
  13692. * indicates connection/roaming is successful or not.
  13693. *
  13694. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  13695. * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
  13696. * IE present in the BTM frame.
  13697. *
  13698. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  13699. * This attribute indicates BTM WTC duration in milliseconds.
  13700. *
  13701. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
  13702. * indicates dialog token value of BTM query/request/response frames.
  13703. *
  13704. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  13705. * attribute indicates the Transition Reason field indicates the reason why
  13706. * a transition attempt occurred and contains one of the values defined in IEEE
  13707. * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
  13708. *
  13709. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  13710. * indicates BTM mode defined in IEEE Std 802.11‐2020
  13711. * Figure 9-924—Request Mode field format.
  13712. *
  13713. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
  13714. * This attribute indicates the Disassociation Timer field which is the number
  13715. * of beacon transmission times (TBTTs) until the serving AP will send a
  13716. * Disassociation frame to this STA.
  13717. *
  13718. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
  13719. * This attribute indicates BTM validity interval field in TBTTs defined in
  13720. * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
  13721. * Action field format.
  13722. *
  13723. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  13724. * This attribute indicates BTM candidate list entries.
  13725. *
  13726. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  13727. * This attribute indicates network preference for BTM transition defined in
  13728. * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
  13729. *
  13730. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  13731. * This attribute indicates BTM transition status code defined in IEEE Std
  13732. * 802.11‐2020 Table 9-428—BTM status code definitions.
  13733. *
  13734. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  13735. * This attribute indicates BSS termination delay defined in IEEE Std
  13736. * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
  13737. *
  13738. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  13739. * This attribute indicates 6-byte MAC address representing the BSSID of the
  13740. * BSS that the non-AP STA transitions to.
  13741. *
  13742. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  13743. * indicates EAP frame type. The methods are enumerated by IANA at
  13744. * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
  13745. *
  13746. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  13747. * indicates EAP frame length.
  13748. *
  13749. * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
  13750. * attribute indicates the kernel timestamp. Driver uses ktime_get() API
  13751. * (Time from boot but not the time spent in suspend) to send in microseconds
  13752. * to userspace.
  13753. *
  13754. * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
  13755. * indicates the association id received in the (re)association response frame
  13756. * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
  13757. */
  13758. enum qca_wlan_vendor_attr_diag {
  13759. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  13760. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  13761. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  13762. QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
  13763. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
  13764. QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
  13765. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
  13766. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
  13767. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
  13768. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
  13769. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
  13770. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
  13771. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
  13772. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
  13773. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
  13774. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
  13775. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
  13776. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
  13777. QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
  13778. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
  13779. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
  13780. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
  13781. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
  13782. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
  13783. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
  13784. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
  13785. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
  13786. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
  13787. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
  13788. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  13789. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  13790. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  13791. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  13792. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  13793. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
  13794. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  13795. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  13796. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  13797. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  13798. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  13799. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  13800. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  13801. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  13802. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  13803. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  13804. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  13805. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  13806. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  13807. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  13808. QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
  13809. QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
  13810. /* keep last */
  13811. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  13812. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  13813. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  13814. };
  13815. /**
  13816. * qca_wlan_vendor_monitor_data_frame_type - Represent the various
  13817. * data types to be sent over the monitor interface.
  13818. */
  13819. enum qca_wlan_vendor_monitor_data_frame_type {
  13820. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
  13821. /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
  13822. not set */
  13823. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
  13824. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
  13825. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
  13826. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
  13827. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
  13828. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
  13829. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
  13830. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
  13831. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
  13832. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
  13833. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
  13834. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
  13835. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
  13836. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
  13837. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
  13838. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
  13839. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
  13840. };
  13841. /**
  13842. * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
  13843. * mgmt types to be sent over the monitor interface.
  13844. * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
  13845. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
  13846. * except the Beacons. Valid only in the Connect state.
  13847. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
  13848. * BSSID Beacons. Valid only in the Connect state.
  13849. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
  13850. * the Beacons obtained during the scan (off channel and connected channel)
  13851. * when in connected state.
  13852. */
  13853. enum qca_wlan_vendor_monitor_mgmt_frame_type {
  13854. QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
  13855. /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
  13856. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
  13857. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
  13858. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
  13859. };
  13860. /**
  13861. * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
  13862. * ctrl types to be sent over the monitor interface.
  13863. * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
  13864. * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
  13865. */
  13866. enum qca_wlan_vendor_monitor_ctrl_frame_type {
  13867. QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
  13868. /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
  13869. QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
  13870. };
  13871. /**
  13872. * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
  13873. * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
  13874. * monitor mode.
  13875. *
  13876. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
  13877. * Represents the tx data packet type to be monitored (u32). These data packets
  13878. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13879. *
  13880. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
  13881. * Represents the tx data packet type to be monitored (u32). These data packets
  13882. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13883. *
  13884. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
  13885. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13886. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13887. *
  13888. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
  13889. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13890. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13891. *
  13892. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
  13893. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13894. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13895. *
  13896. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
  13897. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13898. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13899. *
  13900. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
  13901. * u32 attribute, An interval only for the connected beacon interval, which
  13902. * expects that the connected BSSID's beacons shall be sent on the monitor
  13903. * interface only on this specific interval.
  13904. */
  13905. enum qca_wlan_vendor_attr_set_monitor_mode {
  13906. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
  13907. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
  13908. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
  13909. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
  13910. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
  13911. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
  13912. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
  13913. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
  13914. /* keep last */
  13915. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
  13916. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
  13917. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
  13918. };
  13919. /**
  13920. * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
  13921. * Bits will be set to 1 if the corresponding state is enabled.
  13922. *
  13923. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
  13924. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
  13925. */
  13926. enum qca_wlan_vendor_roam_scan_state {
  13927. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
  13928. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
  13929. };
  13930. /**
  13931. * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
  13932. * Bits will be set to 1 if the corresponding event is notified.
  13933. *
  13934. * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
  13935. * carries the trigger reason. When set, it is expected that the roam event
  13936. * carries the respective reason via the attribute
  13937. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
  13938. * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
  13939. *
  13940. * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
  13941. * carries the roam fail reason. When set, it is expected that the roam event
  13942. * carries the respective reason via the attribute
  13943. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
  13944. * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
  13945. *
  13946. * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
  13947. * event carries the roam invoke fail reason. When set, it is expected that
  13948. * the roam event carries the respective reason via the attribute
  13949. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
  13950. *
  13951. * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
  13952. * carries the roam scan state. When set, it is expected that the roam event
  13953. * carries the respective scan state via the attribute
  13954. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
  13955. * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
  13956. */
  13957. enum qca_wlan_vendor_roam_event_type {
  13958. QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
  13959. QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
  13960. QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
  13961. QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
  13962. };
  13963. /**
  13964. * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
  13965. * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
  13966. *
  13967. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
  13968. * representing the BSSID of the AP to which the Roam is attempted.
  13969. *
  13970. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
  13971. * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
  13972. * attempted.
  13973. *
  13974. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
  13975. * on which the roam is attempted.
  13976. *
  13977. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
  13978. * STA mode only. This represents the roam fail reason for the last failed
  13979. * roaming attempt by the firmware for the specific BSSID. Different roam
  13980. * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
  13981. */
  13982. enum qca_wlan_vendor_attr_roam_events_candidate_info {
  13983. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
  13984. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
  13985. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
  13986. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
  13987. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
  13988. /* keep last */
  13989. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
  13990. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
  13991. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
  13992. };
  13993. /**
  13994. * enum qca_wlan_vendor_attr_roam_events - Used by the
  13995. * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
  13996. * roam events to the driver or notify these events from the driver.
  13997. *
  13998. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
  13999. * driver/firmware to enable/disable the notification of roam events. It's a
  14000. * mandatory attribute and used only in the request from the userspace to the
  14001. * host driver. 1-Enable, 0-Disable.
  14002. * If the roaming is totally offloaded to the firmware, this request when
  14003. * enabled shall mandate the firmware to notify all the relevant roam events
  14004. * represented by the below attributes. If the host is in the suspend mode,
  14005. * the behavior of the firmware to notify these events is guided by
  14006. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
  14007. * these events in the suspend state, the firmware is expected to wake up the
  14008. * host before the respective events are notified. Please note that such a
  14009. * request to get the events in the suspend state will have a definite power
  14010. * implication.
  14011. *
  14012. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
  14013. * that the roam events need to be notified in the suspend state too. By
  14014. * default, these roam events are notified in the resume state. With this flag,
  14015. * the roam events are notified in both resume and suspend states.
  14016. * This attribute is used in the request from the userspace to the host driver.
  14017. *
  14018. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
  14019. * Represents the different roam event types, signified by the enum
  14020. * qca_wlan_vendor_roam_event_type.
  14021. * Each bit of this attribute represents the different roam even types reported
  14022. * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14023. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14024. *
  14025. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
  14026. * mode only. This represents the roam trigger reason for the last roaming
  14027. * attempted by the firmware. Each bit of this attribute represents the
  14028. * different roam trigger reason code which are defined in enum
  14029. * qca_vendor_roam_triggers.
  14030. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14031. *
  14032. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
  14033. * STA mode only. This represents the roam invoke fail reason for the last
  14034. * failed roam invoke. Different roam invoke failure reason codes
  14035. * are specified in enum qca_vendor_roam_invoke_fail_reasons.
  14036. *
  14037. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
  14038. * for which the roam is attempted. Each entry is a nested attribute defined
  14039. * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
  14040. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14041. *
  14042. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
  14043. * the scan state on which the roam events need to be notified. The values for
  14044. * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
  14045. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14046. *
  14047. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
  14048. * u32 values. List of frequencies in MHz considered for a roam scan.
  14049. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  14050. */
  14051. enum qca_wlan_vendor_attr_roam_events {
  14052. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
  14053. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
  14054. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
  14055. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
  14056. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
  14057. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
  14058. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
  14059. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
  14060. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
  14061. /* keep last */
  14062. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
  14063. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
  14064. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
  14065. };
  14066. /*
  14067. * enum qca_wlan_ratemask_params_type - Rate mask config type.
  14068. *
  14069. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
  14070. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
  14071. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
  14072. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
  14073. */
  14074. enum qca_wlan_ratemask_params_type {
  14075. QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
  14076. QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
  14077. QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
  14078. QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
  14079. };
  14080. /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
  14081. * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
  14082. * This is used to set the rate mask value to be used in rate selection.
  14083. *
  14084. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
  14085. * Array of nested containing attributes
  14086. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
  14087. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
  14088. *
  14089. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
  14090. * the different phy types to which the rate mask config is to be applied.
  14091. * The values for this attribute are referred from enum
  14092. * qca_wlan_vendor_ratemask_params_type.
  14093. *
  14094. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
  14095. * A bit value of 1 represents rate is enabled and a value of 0
  14096. * represents rate is disabled.
  14097. * For HE targets, 12 bits correpond to one NSS setting.
  14098. * b0-13 => NSS1, MCS 0-13
  14099. * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
  14100. * For VHT targets, 10 bits correspond to one NSS setting.
  14101. * b0-9 => NSS1, MCS 0-9
  14102. * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
  14103. * For HT targets, 8 bits correspond to one NSS setting.
  14104. * b0-7 => NSS1, MCS 0-7
  14105. * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
  14106. * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
  14107. */
  14108. enum qca_wlan_vendor_attr_ratemask_params {
  14109. QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
  14110. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
  14111. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
  14112. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
  14113. /* keep last */
  14114. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
  14115. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
  14116. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
  14117. };
  14118. /**
  14119. * enum qca_wlan_vendor_flush_pending_policy: Represents values for
  14120. * the policy to flush pending frames, configured via
  14121. * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
  14122. * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
  14123. *
  14124. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
  14125. * the flush policy configured before. This command basically disables the
  14126. * flush config set by the user.
  14127. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
  14128. * the flush policy to be immediate. All pending packets for the peer/TID are
  14129. * flushed when this command/policy is received.
  14130. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
  14131. * the flush policy to the end of TWT SP. All pending packets for the peer/TID
  14132. * are flushed when the end of TWT SP is reached.
  14133. */
  14134. enum qca_wlan_vendor_flush_pending_policy {
  14135. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
  14136. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
  14137. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
  14138. };
  14139. /**
  14140. * enum qca_wlan_vendor_attr_flush_pending - Attributes for
  14141. * flushing pending traffic in firmware.
  14142. *
  14143. * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
  14144. * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
  14145. * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
  14146. * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
  14147. * flush packets with access category. This is optional. See below.
  14148. * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
  14149. * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
  14150. * bit to 1 to act upon the TID. This is optional. Either this attribute or
  14151. * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
  14152. * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
  14153. * it is an error.
  14154. * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
  14155. * packets corresponding to the peer/TID provided. It is a u32 value,
  14156. * represented by %enum qca_wlan_vendor_flush_pending_policy. This
  14157. * value is honored only when TID mask is provided. This is not honored when AC
  14158. * mask is provided.
  14159. */
  14160. enum qca_wlan_vendor_attr_flush_pending {
  14161. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
  14162. QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
  14163. QCA_WLAN_VENDOR_ATTR_AC = 2,
  14164. QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
  14165. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
  14166. /* keep last */
  14167. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
  14168. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
  14169. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
  14170. };
  14171. /**
  14172. * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
  14173. * for) or drop existing PASN security association for the listed the
  14174. * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
  14175. * to userspace.
  14176. *
  14177. * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
  14178. * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
  14179. * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
  14180. * the driver to userspace to inform that the existing PASN keys of the
  14181. * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
  14182. * not valid anymore.
  14183. */
  14184. enum qca_wlan_vendor_pasn_action {
  14185. QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
  14186. QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
  14187. };
  14188. /**
  14189. * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
  14190. * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
  14191. *
  14192. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
  14193. * event from the driver to userspace and represents the local MAC address
  14194. * to be used for PASN handshake. When this attribute is present, userspace
  14195. * shall use the source address specified in this attribute by the driver
  14196. * for PASN handshake with peer device.
  14197. * This attribute is required in a command response from userspace to the
  14198. * driver and represents the MAC address that was used in PASN handshake
  14199. * with the peer device.
  14200. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
  14201. * peer device to which PASN handshake is requested in an event from the
  14202. * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  14203. * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
  14204. * Indicates the MAC address of the peer device for which the keys are to
  14205. * be invalidated in an event from the driver to userspace when
  14206. * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  14207. * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
  14208. * Indicates the MAC address of the peer device for which the status is
  14209. * being sent in a status report from userspace to the driver.
  14210. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
  14211. * in the event from the driver to userspace. When set, userspace is
  14212. * required to derive LTF key seed from KDK and set it to the driver.
  14213. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
  14214. * attribute is used in the command response from userspace to the driver.
  14215. * If present, it indicates the successful PASN handshake with the peer. If
  14216. * this flag is not present, it indicates that the PASN handshake with the
  14217. * peer device failed.
  14218. */
  14219. enum qca_wlan_vendor_attr_pasn_peer {
  14220. QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
  14221. QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
  14222. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
  14223. QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
  14224. QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
  14225. /* keep last */
  14226. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
  14227. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
  14228. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
  14229. };
  14230. /**
  14231. * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
  14232. * QCA_NL80211_VENDOR_SUBCMD_PASN command.
  14233. *
  14234. * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
  14235. * defined in enum qca_wlan_vendor_pasn_action and used only in an event
  14236. * from the driver to userspace.
  14237. * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
  14238. * details for each peer and used in both an event and a command response.
  14239. * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
  14240. * defined in enum qca_wlan_vendor_attr_pasn_peer.
  14241. */
  14242. enum qca_wlan_vendor_attr_pasn {
  14243. QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
  14244. QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
  14245. QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
  14246. /* keep last */
  14247. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
  14248. QCA_WLAN_VENDOR_ATTR_PASN_MAX =
  14249. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
  14250. };
  14251. /**
  14252. * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
  14253. * the ranging security context derived from PASN for each peer. Used in
  14254. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
  14255. *
  14256. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
  14257. * context for the peer.
  14258. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
  14259. * context for the peer.
  14260. */
  14261. enum qca_wlan_vendor_secure_ranging_ctx_action {
  14262. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
  14263. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
  14264. };
  14265. /**
  14266. * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
  14267. * used for deriving PASN keys to the driver. Used in
  14268. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
  14269. * @QCA_WLAN_VENDOR_SHA_256: SHA-256
  14270. * @QCA_WLAN_VENDOR_SHA_384: SHA-384
  14271. */
  14272. enum qca_wlan_vendor_sha_type {
  14273. QCA_WLAN_VENDOR_SHA_256,
  14274. QCA_WLAN_VENDOR_SHA_384,
  14275. };
  14276. /**
  14277. * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
  14278. * to set security context for the PASN peer from userspace to the driver.
  14279. * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
  14280. *
  14281. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
  14282. * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
  14283. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
  14284. * was used during the PASN handshake.
  14285. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
  14286. * the peer device for which secure ranging context is being configured.
  14287. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
  14288. * hash algorithm to be used, possible values are defined in enum
  14289. * qca_wlan_vendor_sha_type.
  14290. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
  14291. * the temporal key generated from the PASN handshake. The length of this
  14292. * attribute is dependent on the value of
  14293. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
  14294. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
  14295. * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
  14296. * (e.g., 0x000FAC04).
  14297. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
  14298. * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
  14299. * The length of this attribute is dependent on the value of
  14300. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
  14301. *
  14302. */
  14303. enum qca_wlan_vendor_attr_secure_ranging_ctx {
  14304. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
  14305. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
  14306. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
  14307. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
  14308. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
  14309. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
  14310. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
  14311. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
  14312. /* keep last */
  14313. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
  14314. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
  14315. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
  14316. };
  14317. /**
  14318. * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
  14319. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
  14320. * nested attribute. The packets that match a filter will be replied with
  14321. * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
  14322. *
  14323. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
  14324. * u32 attribute. Destination IPv4 address in network byte order, the
  14325. * IPv4 packets with different address will be filtered out.
  14326. * This attribute is optional.
  14327. *
  14328. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
  14329. * Flag attribute. If it's present, indicates that
  14330. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
  14331. * address; while if not, indicates that the address is a unicast/multicast
  14332. * address.
  14333. * This attribute is optional.
  14334. *
  14335. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
  14336. * NLA_BINARY attribute, length is 16 bytes.
  14337. * Destination IPv6 address in network byte order, the IPv6 packets
  14338. * with different destination address will be filtered out.
  14339. * This attribute is optional.
  14340. *
  14341. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
  14342. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
  14343. * Packets on both IPv4 and IPv6 will be processed if both are configured.
  14344. *
  14345. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
  14346. * u16 attribute. Destination UDP port, the packets with different destination
  14347. * UDP port will be filtered out.
  14348. * This attribute is mandatory.
  14349. *
  14350. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
  14351. * u32 attribute. Represents the offset (in UDP payload) of the data
  14352. * to be matched.
  14353. * This attribute is mandatory.
  14354. *
  14355. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
  14356. * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
  14357. * Binary data that is compared bit-by-bit against the data (specified
  14358. * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
  14359. * payload, the packets don't match will be filtered out.
  14360. * This attribute is mandatory.
  14361. */
  14362. enum qca_wlan_vendor_attr_coap_offload_filter {
  14363. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
  14364. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
  14365. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
  14366. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
  14367. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
  14368. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
  14369. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
  14370. /* keep last */
  14371. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
  14372. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
  14373. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
  14374. };
  14375. /**
  14376. * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
  14377. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
  14378. *
  14379. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
  14380. * u32 attribute. Source address (in network byte order) for replying
  14381. * the matching broadcast/multicast IPv4 packets.
  14382. * This attribute is optional.
  14383. *
  14384. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
  14385. * NLA_BINARY attribute, length is 16 bytes.
  14386. * Source address (in network byte order) for replying the matching
  14387. * multicast IPv6 packets.
  14388. * This attribute is optional.
  14389. *
  14390. * For broadcast/multicast offload reply, one of
  14391. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
  14392. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
  14393. * configured according to version of the IP address(es) configured in
  14394. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
  14395. * while for unicast case, firmware will take the destination IP address
  14396. * in the received matching packet as the source address for replying.
  14397. *
  14398. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
  14399. * Nested attribute. Filter for the received UDP packets, only the matching
  14400. * packets will be replied and cached.
  14401. * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
  14402. * attributes.
  14403. * This attribute is mandatory.
  14404. *
  14405. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
  14406. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14407. * CoAP message (UDP payload) to be sent upon receiving matching packets.
  14408. * Firmware is responsible for adding any necessary protocol headers.
  14409. * This attribute is mandatory.
  14410. *
  14411. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
  14412. * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
  14413. * A cached message will be dropped by firmware if it's expired.
  14414. * This attribute is optional. A default value of 40000 will be used in the
  14415. * absence of it.
  14416. */
  14417. enum qca_wlan_vendor_attr_coap_offload_reply {
  14418. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
  14419. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
  14420. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
  14421. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
  14422. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
  14423. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
  14424. /* keep last */
  14425. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
  14426. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
  14427. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
  14428. };
  14429. /**
  14430. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
  14431. * CoAP message (UDP) transmitting on IPv4.
  14432. *
  14433. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
  14434. * u32 attribute. Source address (in network byte order) for transmitting
  14435. * packets on IPv4.
  14436. * This attribute is mandatory.
  14437. *
  14438. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
  14439. * u16 attribute. Source UDP port.
  14440. * This attribute is optional, a random port is taken if it's not present.
  14441. *
  14442. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
  14443. * u32 attribute. Destination IPv4 address (in network byte order).
  14444. * This attribute is mandatory.
  14445. *
  14446. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
  14447. * Flag attribute. If it's present, indicates that
  14448. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
  14449. * address; while if not, indicates that the address is unicast/multicast
  14450. * address.
  14451. * This attribute is optional.
  14452. *
  14453. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
  14454. * u16 attribute. Destination UDP port.
  14455. * This attribute is mandatory.
  14456. */
  14457. enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
  14458. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
  14459. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
  14460. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
  14461. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
  14462. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
  14463. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
  14464. /* keep last */
  14465. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
  14466. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
  14467. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
  14468. };
  14469. /**
  14470. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
  14471. * CoAP message (UDP) transmitting on IPv6.
  14472. *
  14473. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
  14474. * NLA_BINARY attribute, length is 16 bytes.
  14475. * Source address (in network byte order) for transmitting packets on IPv6.
  14476. * This attribute is mandatory.
  14477. *
  14478. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
  14479. * u16 attribute. Source UDP port.
  14480. * This attribute is optional, a random port is taken if it's not present.
  14481. *
  14482. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
  14483. * NLA_BINARY attribute, length is 16 bytes.
  14484. * Destination IPv6 address (in network byte order).
  14485. * This attribute is mandatory.
  14486. *
  14487. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
  14488. * u16 attribute. Destination UDP port.
  14489. * This attribute is mandatory.
  14490. */
  14491. enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
  14492. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
  14493. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
  14494. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
  14495. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
  14496. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
  14497. /* keep last */
  14498. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
  14499. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
  14500. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
  14501. };
  14502. /**
  14503. * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
  14504. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
  14505. *
  14506. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
  14507. * Nested attribute. The IPv4 source/destination address/port for offload
  14508. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
  14509. * of supported attributes.
  14510. * This attribute is optional.
  14511. *
  14512. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
  14513. * Nested attribute. The IPv6 source/destination address/port for offload
  14514. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
  14515. * of supported attributes.
  14516. * This attribute is optional.
  14517. *
  14518. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
  14519. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
  14520. * Firmware will transmit the packets on both IPv4 and IPv6 if both are
  14521. * configured.
  14522. *
  14523. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
  14524. * u32 attribute. Period in milliseconds for the periodic transmitting.
  14525. * This attribute is mandatory.
  14526. *
  14527. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
  14528. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14529. * CoAP message (UDP payload) to be periodically transmitted. Firmware
  14530. * is responsible for adding any necessary protocol headers.
  14531. * This attribute is mandatory.
  14532. */
  14533. enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
  14534. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
  14535. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
  14536. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
  14537. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
  14538. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
  14539. /* keep last */
  14540. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
  14541. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
  14542. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
  14543. };
  14544. /**
  14545. * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
  14546. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
  14547. *
  14548. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
  14549. * u64 attribute. Received time (since system booted in microseconds) of
  14550. * the cached CoAP message.
  14551. * This attribute is mandatory.
  14552. *
  14553. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
  14554. * u32 attribute. Source IPv4 address (in network byte order) of the cached
  14555. * CoAP message.
  14556. * This attribute is optional.
  14557. *
  14558. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
  14559. * NLA_BINARY attribute, length is 16 bytes.
  14560. * Source IPv6 address (in network byte order) of the cached CoAP message.
  14561. * This attribute is optional.
  14562. *
  14563. * At most and at least one of
  14564. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
  14565. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
  14566. * an entry.
  14567. *
  14568. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
  14569. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14570. * The cached CoAP message (UDP payload). If the actual message size is
  14571. * greater than the maximum size, it will be truncated and leaving only
  14572. * the first 1152 bytes.
  14573. * This attribute is mandatory.
  14574. */
  14575. enum qca_wlan_vendor_attr_coap_offload_cache_info {
  14576. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
  14577. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
  14578. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
  14579. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
  14580. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
  14581. /* keep last */
  14582. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
  14583. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
  14584. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
  14585. };
  14586. /**
  14587. * enum qca_wlan_vendor_coap_offload_action - Actions for
  14588. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14589. *
  14590. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
  14591. * Enable CoAP offload reply.
  14592. * If it's enabled, firmware will start offload processing on each suspend
  14593. * and stop on each resume.
  14594. *
  14595. * Offload reply on match works as follows:
  14596. * Reply the packets that match the filter with the given CoAP
  14597. * message (with necessary protocol headers), increase the CoAP message
  14598. * ID in the given CoAP message by one for the next use after each successful
  14599. * transmission, and try to store the information of the received packet,
  14600. * including the received time, source IP address, and CoAP message (UDP
  14601. * payload).
  14602. *
  14603. * Firmware has a limit to the maximum stored entries, it takes the source IP
  14604. * address as the key of an entry, and keeps at most one entry for each key.
  14605. * A packet won't be stored if no entry for the same key is present and the
  14606. * total number of the existing unexpired entries reaches the maximum value.
  14607. *
  14608. * If any configured item is changed, user space should disable offload reply
  14609. * first and then issue a new enable request.
  14610. *
  14611. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
  14612. * Disable CoAP offload reply and return information of any cached CoAP
  14613. * messages.
  14614. *
  14615. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
  14616. * Enable CoAP offload periodic transmitting.
  14617. * If it's enabled, firmware will start offload periodic transmitting on
  14618. * each suspend and stop on each resume.
  14619. *
  14620. * Offload periodic transmitting works as follows:
  14621. * Send the given CoAP message (with necessary protocol headers) with the given
  14622. * source/destination IP address/UDP port periodically based on the given
  14623. * period and increase the CoAP message ID in the given CoAP message by one
  14624. * for the next use after each successful transmission.
  14625. *
  14626. * If any configured item is changed, user space should disable offload
  14627. * periodic transmitting first and then issue a new enable request.
  14628. *
  14629. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
  14630. * Disable CoAP offload periodic transmitting.
  14631. *
  14632. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
  14633. * Get information of the CoAP messages cached during offload reply
  14634. * processing. The cache is cleared after retrieval.
  14635. */
  14636. enum qca_wlan_vendor_coap_offload_action {
  14637. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
  14638. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
  14639. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
  14640. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
  14641. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
  14642. };
  14643. /**
  14644. * enum qca_wlan_vendor_attr_coap_offload - Used by the
  14645. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14646. * This is used to set parameters for CoAP offload processing, or get
  14647. * cached CoAP messages from firmware.
  14648. *
  14649. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
  14650. * u32 attribute. Action to take in this vendor command.
  14651. * See enum qca_wlan_vendor_coap_offload_action for supported actions.
  14652. * This attribute is mandatory.
  14653. *
  14654. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
  14655. * u32 attribute. Represents the Request ID for the CoAP offload
  14656. * configuration, which can help to identify the user entity starting
  14657. * the CoAP offload processing and accordingly stop the respective
  14658. * ones/get the cached CoAP messages with the matching ID.
  14659. * This attribute is mandatory.
  14660. *
  14661. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
  14662. * Nested attribute. Parameters for offload reply.
  14663. * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
  14664. * supported attributes.
  14665. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14666. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
  14667. * otherwise.
  14668. *
  14669. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
  14670. * Nested attribute. Parameters for offload periodic transmitting.
  14671. * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
  14672. * supported attributes.
  14673. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
  14674. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
  14675. * otherwise.
  14676. *
  14677. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
  14678. * Array of nested attributes. Information of the cached CoAP messages,
  14679. * where each entry is taken from
  14680. * enum qca_wlan_vendor_attr_coap_offload_cache_info.
  14681. * This attribute is used for reporting the cached CoAP messages
  14682. * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14683. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
  14684. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
  14685. * cached item if this attribute is not present.
  14686. */
  14687. enum qca_wlan_vendor_attr_coap_offload {
  14688. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
  14689. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
  14690. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
  14691. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
  14692. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
  14693. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
  14694. /* keep last */
  14695. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
  14696. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
  14697. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
  14698. };
  14699. /**
  14700. * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
  14701. * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
  14702. * Service (SCS) rule.
  14703. *
  14704. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
  14705. * Represents the unique id of SCS rule to be configured.
  14706. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
  14707. * Represents the request type: add, remove, or change.
  14708. * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
  14709. * Type definitions).
  14710. *
  14711. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
  14712. * in case of add/change request type.
  14713. * Represents the output traffic identifier (TID) to be assigned to the flow
  14714. * matching the rule.
  14715. *
  14716. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
  14717. * attribute in case of add/change request type.
  14718. * Represents type of classifier parameters present in SCS rule.
  14719. * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
  14720. * Only classifier types 4 and 10 are supported for SCS.
  14721. *
  14722. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
  14723. * in case of add/change request type when classifier type is TCLAS4.
  14724. * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
  14725. *
  14726. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
  14727. * attribute in case of add/change request type when classifier type is TCLAS4
  14728. * and version attribute is IPv4.
  14729. * Represents the source IPv4 address in the rule which is to be compared
  14730. * against the source IP address in the IPv4 header.
  14731. *
  14732. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
  14733. * attribute in case of add/change request type when classifier type is TCLAS4
  14734. * and version attribute is IPv4.
  14735. * Represents the destination IPv4 address in the rule which is to be compared
  14736. * against the destination IP address in the IPv4 header.
  14737. *
  14738. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
  14739. * attribute in case of add/change request type when classifier type is TCLAS4
  14740. * and version attribute is IPv6.
  14741. * Represents the source IPv6 address in the rule which is to be compared
  14742. * against the source IP address in the IPv6 header.
  14743. *
  14744. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
  14745. * attribute in case of add/change request type when classifier type is TCLAS4
  14746. * and version attribute is IPv6.
  14747. * Represents the destination IPv6 address in the rule which is to be compared
  14748. * against the destination IP address in the IPv6 header.
  14749. *
  14750. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
  14751. * in case of add/change request type when classifier type is TCLAS4.
  14752. * Represents the source port number in the rule which is to be compared against
  14753. * the source port number in the protocol header.
  14754. *
  14755. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
  14756. * in case of add/change request type when classifier type is TCLAS4.
  14757. * Represents the destination port number in the rule which is to be compared
  14758. * against the destination port number in the protocol header.
  14759. *
  14760. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
  14761. * in case of add/change request type when classifier type is TCLAS4.
  14762. * Represents the DSCP value in the rule which is to be compared against the
  14763. * DSCP field present in the IP header.
  14764. *
  14765. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
  14766. * attribute in case of add/change request type when classifier type is TCLAS4.
  14767. * Represents the protocol/next header in the rule which is to be compared
  14768. * against the protocol/next header field present in the IPv4/IPv6 header.
  14769. *
  14770. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
  14771. * attribute of size 3 bytes present in case of add/change request type
  14772. * when classifier type is TCLAS4 and version is IPv6.
  14773. * Represents the flow label value in the rule which is to be compared against
  14774. * the flow label field present in the IPv6 header.
  14775. *
  14776. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
  14777. * attribute in case of add/change request type when classifier type is TCLAS10.
  14778. * Represents the protocol instance number in the rule.
  14779. *
  14780. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
  14781. * attribute in case of add/change request type when classifier type is TCLAS10.
  14782. * Represents the protocol/next header in the rule which is to be compared
  14783. * against the protocol/next header field present in the IPv4/IPv6 header.
  14784. *
  14785. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
  14786. * attribute of variable length present when request type is add/change and
  14787. * classifier type is TCLAS10.
  14788. * Represents the mask to be used for masking the header contents of the header
  14789. * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
  14790. * attribute.
  14791. *
  14792. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
  14793. * attribute of variable length present when request type is add/change and
  14794. * classifier type is TCLAS10.
  14795. * Represents the value to be compared against after masking the header contents
  14796. * of the header specified by the
  14797. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
  14798. * filter mask specified by the
  14799. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
  14800. *
  14801. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
  14802. * attribute.
  14803. * Represents the service class id of the configured SCS rule.
  14804. *
  14805. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
  14806. * MAC address.
  14807. * Represents the destination MAC address in the rule.
  14808. *
  14809. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
  14810. * Represents the netdevice interface index in the rule.
  14811. */
  14812. enum qca_wlan_vendor_attr_scs_rule_config {
  14813. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
  14814. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
  14815. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
  14816. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
  14817. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
  14818. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
  14819. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
  14820. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
  14821. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
  14822. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
  14823. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
  14824. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
  14825. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
  14826. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
  14827. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
  14828. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
  14829. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
  14830. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
  14831. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
  14832. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
  14833. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
  14834. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
  14835. /* Keep last */
  14836. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
  14837. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
  14838. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
  14839. };
  14840. /**
  14841. * enum qca_wlan_vendor_sar_version - This describes the current SAR version
  14842. * used in the firmware.
  14843. *
  14844. * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
  14845. * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
  14846. *
  14847. * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
  14848. * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
  14849. * each CTL group. So user can select up to 6 SAR indexes from the current CTL
  14850. * groups.
  14851. *
  14852. * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
  14853. * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
  14854. * CTL group but user can choose up to 3 SAR set index only, as the top half
  14855. * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
  14856. * the SAR index (3 to 5) is used for DBS mode.
  14857. */
  14858. enum qca_wlan_vendor_sar_version {
  14859. QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
  14860. QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
  14861. QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
  14862. QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
  14863. };
  14864. /**
  14865. * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
  14866. * CTL grouping is enabled or disabled in the firmware.
  14867. *
  14868. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
  14869. * is enabled in firmware.
  14870. *
  14871. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
  14872. * is disabled in firmware.
  14873. *
  14874. */
  14875. enum qca_wlan_vendor_sar_ctl_group_state {
  14876. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
  14877. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
  14878. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
  14879. };
  14880. /**
  14881. * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
  14882. * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
  14883. * supported by the firmware.
  14884. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
  14885. * u32 attribute. This field describes current SAR version supported by the
  14886. * firmware.
  14887. * See enum qca_wlan_vendor_sar_version for more information.
  14888. * This attribute is mandatory.
  14889. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
  14890. * u32 attribute. This field describes whether CTL groups are enabled
  14891. * or disabled in the firmware.
  14892. * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
  14893. * This attribute is optional.
  14894. */
  14895. enum qca_wlan_vendor_attr_sar_capability {
  14896. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
  14897. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
  14898. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
  14899. /* Keep last */
  14900. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
  14901. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
  14902. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
  14903. };
  14904. /**
  14905. * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
  14906. * These statistics are sent from the driver in a response when userspace
  14907. * queries to get the statistics using the operation
  14908. * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
  14909. * by the driver when the SR feature is enabled, when the driver receives
  14910. * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
  14911. *
  14912. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14913. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14914. * This represents the number of non-SRG TX opportunities.
  14915. *
  14916. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14917. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14918. * This represents the number of non-SRG PPDUs tried to transmit.
  14919. *
  14920. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14921. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14922. * This represents the number of non-SRG PPDUs successfully transmitted.
  14923. *
  14924. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14925. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14926. * This represents the number of SRG TX opportunities.
  14927. *
  14928. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14929. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14930. * This represents the number of SRG PPDUs tried to transmit.
  14931. *
  14932. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14933. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14934. * This represents the number of SRG PPDUs successfully transmitted.
  14935. */
  14936. enum qca_wlan_vendor_attr_sr_stats {
  14937. QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
  14938. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
  14939. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
  14940. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
  14941. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
  14942. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
  14943. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
  14944. /* Keep last */
  14945. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
  14946. QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
  14947. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
  14948. };
  14949. /**
  14950. * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
  14951. * Spatial Reuse feature.
  14952. *
  14953. * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
  14954. * roaming to an AP that doesn't support/supports SR feature, respectively.
  14955. *
  14956. * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
  14957. * to change in concurrent interfaces that are supported by the driver.
  14958. */
  14959. enum qca_wlan_sr_reason_code {
  14960. QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
  14961. QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
  14962. };
  14963. /**
  14964. * enum qca_wlan_sr_operation - Defines the different types of SR operations.
  14965. * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
  14966. *
  14967. * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
  14968. * driver to enable the Spatial Reuse feature. Attributes
  14969. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14970. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
  14971. * operation.
  14972. *
  14973. * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
  14974. * driver to disable the Spatial Reuse feature.
  14975. *
  14976. * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
  14977. * asynchronous event sent to userspace when the SR feature is disabled.
  14978. * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
  14979. * and sent along with the asynchronous event.
  14980. *
  14981. * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
  14982. * asynchronous event when the SR feature is enabled again after the SR feature
  14983. * was suspended by the driver earlier. The enable reason is
  14984. * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
  14985. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14986. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
  14987. *
  14988. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
  14989. * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14990. * reuse transmissions. Userspace sends this operation to the driver.
  14991. * The driver/firmware upon receiving this operation shall prohibit PSR-based
  14992. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14993. *
  14994. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
  14995. * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14996. * reuse transmissions. Userspace sends this operation to the driver.
  14997. * The driver/firmware upon receiving this operation shall allow PSR-based
  14998. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14999. *
  15000. * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
  15001. * driver to get the SR statistics and the driver sends a synchronous response
  15002. * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
  15003. * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
  15004. *
  15005. * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
  15006. * driver to clear the SR statistics and upon receiving this operation
  15007. * the driver/firmware shall clear the SR statistics.
  15008. *
  15009. * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
  15010. * driver to get the SR parameters and the driver sends the synchronous response
  15011. * with the following required attributes:
  15012. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  15013. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  15014. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  15015. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  15016. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  15017. *
  15018. * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
  15019. * asynchronous event to userspace to update any changes in SR parameters.
  15020. * The following attributes are used with this operation:
  15021. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  15022. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  15023. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  15024. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  15025. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  15026. */
  15027. enum qca_wlan_sr_operation {
  15028. QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
  15029. QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
  15030. QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
  15031. QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
  15032. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
  15033. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
  15034. QCA_WLAN_SR_OPERATION_GET_STATS = 6,
  15035. QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
  15036. QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
  15037. QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
  15038. };
  15039. /**
  15040. * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
  15041. * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
  15042. *
  15043. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
  15044. * This attribute is optionally set in response to
  15045. * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
  15046. * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
  15047. * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
  15048. * about HESIGA_Spatial_reuse_value15_allowed.
  15049. *
  15050. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
  15051. * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
  15052. * operation. This indicates whether non-SRG OBSS PD SR transmissions are
  15053. * allowed or not at non-AP STAs that are associated with the AP. If present
  15054. * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
  15055. *
  15056. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
  15057. * attribute. This attribute is used in response to
  15058. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  15059. * Min Offset field which contains an unsigned integer that is added to -82 dBm
  15060. * to generate the value of the SRG OBSS PD Min parameter.
  15061. *
  15062. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  15063. * attribute. This attribute is used in response to
  15064. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  15065. * Max Offset field which contains an unsigned integer that is added to -82 dBm
  15066. * to generate the value of the SRG OBSS PD Max parameter.
  15067. *
  15068. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  15069. * attribute. This attribute is used in response to
  15070. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
  15071. * PD Max Offset field which contains an unsigned integer that is added to -82
  15072. * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
  15073. *
  15074. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  15075. * Userspace optionally sends this attribute with
  15076. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  15077. * preferred SRG PD threshold. The driver shall send this attribute to
  15078. * userspace in SR resume event to indicate the PD threshold being used for SR.
  15079. * When there is change in SRG PD threshold (for example, due to roaming, etc.)
  15080. * the driver shall indicate the userspace the newly configured SRG PD threshold
  15081. * using an asynchronous event.
  15082. *
  15083. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  15084. * Userspace optionally sends this attribute with
  15085. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  15086. * preferred non-SRG PD threshold. The driver shall send this attribute to
  15087. * userspace in SR resume event to indicate the PD threshold being used for SR.
  15088. * When there is change in non-SRG PD threshold (for example, due to roaming,
  15089. * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
  15090. * threshold using an asynchronous event.
  15091. *
  15092. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
  15093. * values are defined in enum qca_wlan_sr_reason_code. This
  15094. * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
  15095. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
  15096. */
  15097. enum qca_wlan_vendor_attr_sr_params {
  15098. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
  15099. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
  15100. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
  15101. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
  15102. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
  15103. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
  15104. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
  15105. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
  15106. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
  15107. /* keep last */
  15108. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
  15109. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
  15110. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
  15111. };
  15112. /**
  15113. * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
  15114. * command QCA_NL80211_VENDOR_SUBCMD_SR.
  15115. *
  15116. * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
  15117. * from userspace to the driver. Possible values are defined in enum
  15118. * qca_wlan_sr_operation.
  15119. *
  15120. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
  15121. * configuration parameters. The possible attributes inside this attribute are
  15122. * defined in enum qca_wlan_vendor_attr_sr_params.
  15123. * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  15124. * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
  15125. * also in response from the driver to userspace when the response is sent for
  15126. * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
  15127. * The driver uses this attribute in asynchronous events in which the operation
  15128. * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
  15129. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
  15130. *
  15131. * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
  15132. * statistics. These attributes used inside this are defined in enum
  15133. * qca_wlan_vendor_attr_sr_stats.
  15134. * This attribute is used in response from the driver to a command in which
  15135. * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  15136. * %QCA_WLAN_SR_OPERATION_GET_STATS.
  15137. */
  15138. enum qca_wlan_vendor_attr_sr {
  15139. QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
  15140. QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
  15141. QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
  15142. QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
  15143. /* Keep last */
  15144. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
  15145. QCA_WLAN_VENDOR_ATTR_SR_MAX =
  15146. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
  15147. };
  15148. /**
  15149. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
  15150. * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
  15151. *
  15152. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
  15153. * used by the peer on the link that corresponds to the link used for sending
  15154. * the event notification.
  15155. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
  15156. * MLD MAC address of the peer.
  15157. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
  15158. * used to pass ifindex of the primary netdev.
  15159. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute,
  15160. * used to pass ifindex of the MLD netdev.
  15161. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute,
  15162. * used to indicate the number of links that the non-AP MLD negotiated to be
  15163. * used in the ML connection.
  15164. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested
  15165. * attribute, contains information regarding links of the non-AP MLD.
  15166. * User applications need to know all the links of a non-AP MLD that are
  15167. * participating in the ML association. The possible attributes inside this
  15168. * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info.
  15169. */
  15170. enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
  15171. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
  15172. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
  15173. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
  15174. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
  15175. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4,
  15176. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5,
  15177. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6,
  15178. /* keep last */
  15179. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
  15180. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
  15181. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
  15182. };
  15183. /**
  15184. * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for
  15185. * non-AP MLD link parameters used by the attribute
  15186. * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO.
  15187. *
  15188. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used
  15189. * to pass the netdev ifindex of the non-AP MLD link.
  15190. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of
  15191. * the non-AP MLD link.
  15192. */
  15193. enum qca_wlan_vendor_attr_mlo_link_info {
  15194. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0,
  15195. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1,
  15196. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2,
  15197. /* keep last */
  15198. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST,
  15199. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX =
  15200. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1,
  15201. };
  15202. /**
  15203. * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
  15204. * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
  15205. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
  15206. * and PSD information.
  15207. *
  15208. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
  15209. * u32. This attribute is used to indicate the start of the queried frequency
  15210. * range in MHz.
  15211. *
  15212. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
  15213. * This attribute is used to indicate the end of the queried frequency range
  15214. * in MHz.
  15215. *
  15216. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
  15217. * This attribute will contain the PSD information for a single range as
  15218. * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
  15219. * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
  15220. *
  15221. * The PSD power info (dBm/MHz) from user space should be multiplied
  15222. * by a factor of 100 when sending to the driver to preserve granularity
  15223. * up to 2 decimal places.
  15224. * Example:
  15225. * PSD power value: 10.21 dBm/MHz
  15226. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
  15227. *
  15228. * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
  15229. * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
  15230. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
  15231. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15232. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  15233. *
  15234. * The following set of attributes will be used to exchange frequency and
  15235. * corresponding PSD information for AFC between the user space and the driver.
  15236. */
  15237. enum qca_wlan_vendor_attr_afc_freq_psd_info {
  15238. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
  15239. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
  15240. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
  15241. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
  15242. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
  15243. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
  15244. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
  15245. };
  15246. /**
  15247. * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
  15248. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
  15249. * channel list and corresponding EIRP information.
  15250. *
  15251. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
  15252. * This attribute is used to indicate queried channel from
  15253. * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
  15254. *
  15255. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
  15256. * This attribute is used to configure the EIRP power info corresponding
  15257. * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
  15258. * The EIRP power info(dBm) from user space should be multiplied
  15259. * by a factor of 100 when sending to Driver to preserve granularity up to
  15260. * 2 decimal places.
  15261. * Example:
  15262. * EIRP power value: 34.23 dBm
  15263. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
  15264. *
  15265. * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
  15266. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15267. * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
  15268. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15269. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
  15270. *
  15271. * The following set of attributes will be used to exchange Channel and
  15272. * corresponding EIRP information for AFC between the user space and Driver.
  15273. */
  15274. enum qca_wlan_vendor_attr_afc_chan_eirp_info {
  15275. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
  15276. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
  15277. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
  15278. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
  15279. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
  15280. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
  15281. };
  15282. /**
  15283. * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
  15284. * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15285. * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
  15286. * channel, and EIRP related information.
  15287. *
  15288. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
  15289. * This attribute is used to indicate the operating class, as listed under
  15290. * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
  15291. *
  15292. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
  15293. * for updating the channel number and EIRP power information.
  15294. * It uses the attributes defined in
  15295. * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
  15296. *
  15297. * Operating class information packing format for
  15298. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15299. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15300. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
  15301. *
  15302. * m - Total number of operating classes.
  15303. * n, j - Number of queried channels for the corresponding operating class.
  15304. *
  15305. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15306. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15307. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15308. * .....
  15309. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15310. * ....
  15311. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15312. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15313. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15314. * ....
  15315. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15316. *
  15317. * Operating class information packing format for
  15318. * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15319. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15320. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15321. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  15322. *
  15323. * m - Total number of operating classes.
  15324. * n, j - Number of channels for the corresponding operating class.
  15325. *
  15326. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15327. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15328. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15329. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15330. * .....
  15331. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15332. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
  15333. * ....
  15334. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15335. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15336. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15337. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15338. * ....
  15339. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15340. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
  15341. *
  15342. * The following set of attributes will be used to exchange operating class
  15343. * information for AFC between the user space and the driver.
  15344. */
  15345. enum qca_wlan_vendor_attr_afc_opclass_info {
  15346. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
  15347. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
  15348. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
  15349. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
  15350. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
  15351. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
  15352. };
  15353. /**
  15354. * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
  15355. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
  15356. *
  15357. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
  15358. * driver to userspace in order to query the new AFC power values.
  15359. *
  15360. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
  15361. * complete event will be sent from the driver to userspace to indicate
  15362. * processing of the AFC response.
  15363. *
  15364. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
  15365. * will be sent from the driver to userspace to indicate last received
  15366. * AFC response data has been cleared on the AP due to invalid data
  15367. * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
  15368. *
  15369. * The following enum defines the different event types that will be
  15370. * used by the driver to help trigger corresponding AFC functionality in user
  15371. * space.
  15372. */
  15373. enum qca_wlan_vendor_afc_event_type {
  15374. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
  15375. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
  15376. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
  15377. };
  15378. /**
  15379. * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
  15380. * deployment type.
  15381. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
  15382. *
  15383. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
  15384. *
  15385. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
  15386. *
  15387. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
  15388. *
  15389. * The following enum defines different deployment modes that the AP might
  15390. * come up in. This information will be essential to retrieve deployment-type
  15391. * specific SP power values for AFC operation.
  15392. */
  15393. enum qca_wlan_vendor_afc_ap_deployment_type {
  15394. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
  15395. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
  15396. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
  15397. };
  15398. /**
  15399. * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
  15400. * indicate AFC response status.
  15401. * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
  15402. *
  15403. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
  15404. *
  15405. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
  15406. * command was not received within the expected time of the AFC expiry event
  15407. * being triggered.
  15408. *
  15409. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
  15410. * parsing error by the driver.
  15411. *
  15412. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
  15413. * error.
  15414. *
  15415. * The following enum defines the status codes that the driver will use to
  15416. * indicate whether the AFC data is valid or not.
  15417. */
  15418. enum qca_wlan_vendor_afc_evt_status_code {
  15419. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
  15420. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
  15421. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
  15422. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
  15423. };
  15424. /**
  15425. * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
  15426. * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
  15427. * support sending only a single request to the user space at a time.
  15428. *
  15429. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
  15430. * Used with event to notify the type of AFC event received.
  15431. * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
  15432. *
  15433. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
  15434. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15435. * otherwise unused.
  15436. *
  15437. * This attribute is used to indicate the AP deployment type in the AFC request.
  15438. * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
  15439. *
  15440. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
  15441. * Unique request identifier generated by the AFC client for every
  15442. * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
  15443. * The user space application is responsible for ensuring no duplicate values
  15444. * are in-flight with the server, e.g., by delaying a request, should the same
  15445. * value be received from different radios in parallel.
  15446. *
  15447. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
  15448. * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15449. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
  15450. *
  15451. * This attribute indicates the AFC spec version information. This will
  15452. * indicate the AFC version AFC client must use to query the AFC data.
  15453. * Bits 15:0 - Minor version
  15454. * Bits 31:16 - Major version
  15455. *
  15456. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
  15457. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15458. * otherwise unused.
  15459. * This attribute indicates the minimum desired power (in dBm) for
  15460. * the queried spectrum.
  15461. *
  15462. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
  15463. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15464. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15465. *
  15466. * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
  15467. * This attribute is used to indicate if there were any errors parsing the
  15468. * AFC response.
  15469. *
  15470. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
  15471. * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15472. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15473. *
  15474. * This attribute indicates the AFC response code. The AFC response codes are
  15475. * in the following categories:
  15476. * -1: General Failure.
  15477. * 0: Success.
  15478. * 100 - 199: General errors related to protocol.
  15479. * 300 - 399: Error events specific to message exchange
  15480. * for the Available Spectrum Inquiry.
  15481. *
  15482. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
  15483. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15484. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15485. *
  15486. * This attribute indicates the date until which the current response is
  15487. * valid for in UTC format.
  15488. * Date format: bits 7:0 - DD (Day 1-31)
  15489. * bits 15:8 - MM (Month 1-12)
  15490. * bits 31:16 - YYYY (Year)
  15491. *
  15492. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
  15493. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15494. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15495. *
  15496. * This attribute indicates the time until which the current response is
  15497. * valid for in UTC format.
  15498. * Time format: bits 7:0 - SS (Seconds 0-59)
  15499. * bits 15:8 - MM (Minutes 0-59)
  15500. * bits 23:16 - HH (Hours 0-23)
  15501. * bits 31:24 - Reserved
  15502. *
  15503. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
  15504. * for updating the list of frequency ranges to be queried.
  15505. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15506. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15507. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15508. * It uses the attributes defined in
  15509. * enum qca_wlan_vendor_attr_afc_freq_psd_info.
  15510. *
  15511. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
  15512. * for updating the list of operating classes and corresponding channels to be
  15513. * queried.
  15514. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15515. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15516. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15517. * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
  15518. */
  15519. enum qca_wlan_vendor_attr_afc_event {
  15520. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
  15521. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
  15522. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
  15523. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
  15524. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
  15525. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
  15526. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
  15527. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
  15528. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
  15529. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
  15530. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
  15531. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
  15532. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
  15533. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
  15534. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
  15535. };
  15536. /**
  15537. * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
  15538. * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
  15539. * will support sending only a single AFC response to the driver at a time.
  15540. *
  15541. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
  15542. * This attribute will be used to send a single Spectrum Inquiry response object
  15543. * from the 'availableSpectrumInquiryResponses' array object from the response
  15544. * JSON.
  15545. *
  15546. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
  15547. *
  15548. * This attribute indicates the period (in seconds) for which the response
  15549. * data received is valid for.
  15550. *
  15551. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
  15552. *
  15553. * This attribute indicates the request ID for which the corresponding
  15554. * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
  15555. *
  15556. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
  15557. *
  15558. * This attribute indicates the date until which the current response is
  15559. * valid for in UTC format.
  15560. * Date format: bits 7:0 - DD (Day 1-31)
  15561. * bits 15:8 - MM (Month 1-12)
  15562. * bits 31:16 - YYYY (Year)
  15563. *
  15564. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
  15565. *
  15566. * This attribute indicates the time until which the current response is
  15567. * valid for in UTC format.
  15568. * Time format: bits 7:0 - SS (Seconds 0-59)
  15569. * bits 15:8 - MM (Minutes 0-59)
  15570. * bits 23:16 - HH (Hours 0-23)
  15571. * bits 31:24 - Reserved
  15572. *
  15573. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
  15574. *
  15575. * This attribute indicates the AFC response code. The AFC response codes are
  15576. * in the following categories:
  15577. * -1: General Failure.
  15578. * 0: Success.
  15579. * 100 - 199: General errors related to protocol.
  15580. * 300 - 399: Error events specific to message exchange
  15581. * for the Available Spectrum Inquiry.
  15582. *
  15583. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
  15584. * for PSD info of all the queried frequency ranges. It uses the attributes
  15585. * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
  15586. *
  15587. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
  15588. * attributes for EIRP info of all queried operating class/channels. It uses
  15589. * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
  15590. * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
  15591. *
  15592. */
  15593. enum qca_wlan_vendor_attr_afc_response {
  15594. QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
  15595. QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
  15596. QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
  15597. QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
  15598. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
  15599. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
  15600. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
  15601. QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
  15602. QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
  15603. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
  15604. QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
  15605. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
  15606. };
  15607. /**
  15608. * enum qca_wlan_dozed_ap_state - Doze states for AP interface
  15609. *
  15610. * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
  15611. *
  15612. * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
  15613. * beaconing at higher beacon interval with Rx disabled.
  15614. */
  15615. enum qca_wlan_dozed_ap_state {
  15616. QCA_WLAN_DOZED_AP_DISABLE = 0,
  15617. QCA_WLAN_DOZED_AP_ENABLE = 1,
  15618. };
  15619. /**
  15620. * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
  15621. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
  15622. * configuration.
  15623. *
  15624. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
  15625. * Configures the doze state for an AP interface. Possible values are defined
  15626. * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
  15627. * gets triggered asynchronously to provide updated AP interface configuration.
  15628. *
  15629. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
  15630. * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
  15631. * command, which is used later to maintain synchronization between commands
  15632. * and asynchronous events.
  15633. *
  15634. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
  15635. * Used in event to indicate the next TBTT TSF timer value after applying the
  15636. * doze mode configuration. Next TBTT TSF is the time at which the AP sends
  15637. * the first beacon after entering or exiting dozed mode.
  15638. *
  15639. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
  15640. * Used with event to inform the periodicity of beacon transmission that would
  15641. * be skipped at all TBTTs in between.
  15642. */
  15643. enum qca_wlan_vendor_attr_dozed_ap {
  15644. QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
  15645. QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
  15646. QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
  15647. QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
  15648. QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
  15649. /* Keep last */
  15650. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
  15651. QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
  15652. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
  15653. };
  15654. /**
  15655. * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
  15656. * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
  15657. * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
  15658. * capture running status.
  15659. * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
  15660. * capture running status.
  15661. **/
  15662. enum qca_wlan_vendor_monitor_mode_status {
  15663. QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
  15664. QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
  15665. };
  15666. /**
  15667. * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
  15668. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
  15669. * information regarding the local packet capture over the monitor mode.
  15670. *
  15671. * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
  15672. * represents the status of the start capture commands. The values used with
  15673. * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
  15674. * is returned by the driver in the response to the command.
  15675. */
  15676. enum qca_wlan_vendor_attr_get_monitor_mode {
  15677. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
  15678. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
  15679. /* Keep last */
  15680. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
  15681. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
  15682. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
  15683. };
  15684. /**
  15685. * enum qca_wlan_vendor_link_state_op_types - Defines different types of
  15686. * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
  15687. * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
  15688. *
  15689. * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
  15690. * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
  15691. */
  15692. enum qca_wlan_vendor_link_state_op_types {
  15693. QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
  15694. QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
  15695. };
  15696. /**
  15697. * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
  15698. * links state control modes. This enum is used by
  15699. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
  15700. *
  15701. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
  15702. * by the driver.
  15703. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
  15704. * user space.
  15705. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
  15706. * desired number of MLO links to operate in active state at any given time.
  15707. * The driver will choose which MLO links should operate in the active state.
  15708. * See enum qca_wlan_vendor_link_state for active state definition.
  15709. */
  15710. enum qca_wlan_vendor_link_state_control_modes {
  15711. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
  15712. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
  15713. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
  15714. };
  15715. /**
  15716. * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
  15717. * links state operation modes. This enum is used by
  15718. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
  15719. *
  15720. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
  15721. * mode, the driver selects the operating mode of the links, without any
  15722. * guidance from the user space.
  15723. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
  15724. * operation mode the driver should select MLO links that will achieve low
  15725. * latency.
  15726. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
  15727. * throughput operation mode the driver should select MLO links that will
  15728. * achieve higher throughput.
  15729. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
  15730. * operation mode the driver should select MLO links that will achieve low
  15731. * power.
  15732. */
  15733. enum qca_wlan_vendor_link_state_operation_modes {
  15734. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
  15735. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
  15736. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
  15737. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
  15738. };
  15739. /**
  15740. * enum qca_wlan_vendor_link_state - Represents the possible link states of an
  15741. * MLO link.
  15742. *
  15743. * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not
  15744. * be used for data transmission but it can have TIDs mapped to it. It will be
  15745. * in doze state always and does not monitor the beacons.
  15746. * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be
  15747. * used for data TX/RX and monitors the beacons to check TIM bit indication.
  15748. * It may enter doze state and comes out based on the transmit data traffic and
  15749. * TIM bit indication in the beacon.
  15750. */
  15751. enum qca_wlan_vendor_link_state {
  15752. QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
  15753. QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
  15754. };
  15755. /**
  15756. * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
  15757. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
  15758. *
  15759. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
  15760. * MLO link.
  15761. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
  15762. * enum qca_wlan_vendor_link_state for possible MLO link states.
  15763. */
  15764. enum qca_wlan_vendor_attr_link_state_config {
  15765. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
  15766. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
  15767. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
  15768. /* Keep last */
  15769. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
  15770. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
  15771. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
  15772. };
  15773. /**
  15774. * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
  15775. * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
  15776. *
  15777. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
  15778. * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
  15779. * Required only in a command. Possible values for this attribute are defined in
  15780. * enum qca_wlan_vendor_link_state_op_types.
  15781. *
  15782. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
  15783. * links control mode type. Optional attribute in a command when
  15784. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15785. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15786. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15787. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15788. * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
  15789. *
  15790. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
  15791. * Indicates the state of the each MLO link affiliated with the interface.
  15792. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15793. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15794. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15795. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
  15796. * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15797. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15798. * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
  15799. *
  15800. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
  15801. * Represents the number of active state links. See enum
  15802. * qca_wlan_vendor_link_state for active state definition.
  15803. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15804. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15805. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15806. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
  15807. *
  15808. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
  15809. * links operation mode type. Optional attribute in a command when
  15810. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15811. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15812. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15813. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15814. * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
  15815. * modes.
  15816. */
  15817. enum qca_wlan_vendor_attr_mlo_link_state {
  15818. QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
  15819. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
  15820. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
  15821. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
  15822. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
  15823. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
  15824. /* keep last */
  15825. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
  15826. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
  15827. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
  15828. };
  15829. /**
  15830. * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
  15831. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15832. *
  15833. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
  15834. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15835. * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
  15836. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  15837. * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
  15838. * traffic for that link.
  15839. *
  15840. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
  15841. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15842. * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
  15843. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  15844. * that link ID in downlink traffic. Otherwise, the TID is not mapped to
  15845. * downlink traffic for that link.
  15846. */
  15847. enum qca_wlan_vendor_attr_tid_link_map_status {
  15848. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
  15849. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
  15850. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
  15851. /* keep last */
  15852. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
  15853. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
  15854. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
  15855. };
  15856. /*
  15857. * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
  15858. * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
  15859. *
  15860. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
  15861. * AP MLD address with which this TID-to-link negotiation mapping is
  15862. * established/updated.
  15863. *
  15864. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
  15865. * nested attributes containing TID-to-links mapping information. This will have
  15866. * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
  15867. * map information. If this attribute is not present the default TID-to-link
  15868. * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
  15869. * downlink traffic.
  15870. * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
  15871. */
  15872. enum qca_wlan_vendor_attr_tid_to_link_map {
  15873. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
  15874. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
  15875. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
  15876. /* keep last */
  15877. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
  15878. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
  15879. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
  15880. };
  15881. /**
  15882. * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
  15883. * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
  15884. *
  15885. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
  15886. * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
  15887. *
  15888. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
  15889. * A bitmap of the removed setup links link IDs.
  15890. */
  15891. enum qca_wlan_vendor_attr_link_reconfig {
  15892. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
  15893. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
  15894. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
  15895. /* keep last */
  15896. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
  15897. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
  15898. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1,
  15899. };
  15900. /**
  15901. * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
  15902. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
  15903. *
  15904. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
  15905. * Indicates the MLO link id on which the TDLS discovery response
  15906. * frame is to be transmitted.
  15907. */
  15908. enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
  15909. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
  15910. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
  15911. /* Keep last */
  15912. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
  15913. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
  15914. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
  15915. };
  15916. /**
  15917. * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states.
  15918. *
  15919. * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status
  15920. * for all stations.
  15921. *
  15922. * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to
  15923. * establish the session.
  15924. *
  15925. * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is
  15926. * established.
  15927. *
  15928. * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS
  15929. * session is established using MCC.
  15930. *
  15931. * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was
  15932. * established, but is temporarily dropped currently.
  15933. *
  15934. * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish.
  15935. */
  15936. enum qca_wlan_vendor_tdls_state {
  15937. QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1,
  15938. QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2,
  15939. QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3,
  15940. QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4,
  15941. QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5,
  15942. QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6,
  15943. };
  15944. /**
  15945. * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons.
  15946. *
  15947. * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established.
  15948. *
  15949. * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason.
  15950. *
  15951. * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported.
  15952. *
  15953. * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported.
  15954. *
  15955. * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better
  15956. * than through direct link.
  15957. *
  15958. * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS
  15959. * session anymore.
  15960. */
  15961. enum qca_wlan_vendor_tdls_reason {
  15962. QCA_WLAN_TDLS_REASON_SUCCESS = 0,
  15963. QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1,
  15964. QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2,
  15965. QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3,
  15966. QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4,
  15967. QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5,
  15968. };
  15969. /**
  15970. * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by
  15971. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command.
  15972. *
  15973. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer
  15974. * station to enable the TDLS session. Optional attribute. The driver sends the
  15975. * TDLS session result as an asynchronous response using the command
  15976. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in
  15977. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command.
  15978. *
  15979. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the
  15980. * channel on which the TDLS session to be established. Required only when
  15981. * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  15982. *
  15983. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute.
  15984. * Indicates the global operating class of the TDLS session to be established.
  15985. * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  15986. *
  15987. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates
  15988. * the maximum latency of the WLAN packets to be transmitted/received in
  15989. * milliseconds on TDLS session. Required only when
  15990. * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  15991. *
  15992. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute.
  15993. * Indicates the minimum bandwidth to be used to establish the TDLS session
  15994. * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is
  15995. * present.
  15996. */
  15997. enum qca_wlan_vendor_attr_tdls_enable {
  15998. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  15999. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1,
  16000. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2,
  16001. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3,
  16002. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4,
  16003. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5,
  16004. /* keep last */
  16005. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  16006. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  16007. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  16008. };
  16009. /**
  16010. * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by
  16011. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command.
  16012. *
  16013. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer
  16014. * station to disable the TDLS session. Optional attribute.
  16015. */
  16016. enum qca_wlan_vendor_attr_tdls_disable {
  16017. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  16018. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1,
  16019. /* keep last */
  16020. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  16021. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  16022. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  16023. };
  16024. /**
  16025. * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by
  16026. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command.
  16027. *
  16028. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the
  16029. * peer station. Optional attribute. Used in
  16030. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response.
  16031. *
  16032. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the
  16033. * TDLS session state with the peer specified in
  16034. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from
  16035. * enum qca_wlan_vendor_tdls_state. Used in
  16036. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16037. *
  16038. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the
  16039. * reason for the TDLS session state indicated in
  16040. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum
  16041. * qca_wlan_vendor_tdls_reason. Used in
  16042. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16043. *
  16044. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the
  16045. * channel of the TDLS session established with
  16046. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
  16047. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16048. *
  16049. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute.
  16050. * Indicates the global operating class of the TDLS session established with
  16051. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
  16052. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  16053. *
  16054. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates
  16055. * the current number of active TDLS sessions. This is indicated in the response
  16056. * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
  16057. * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
  16058. *
  16059. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates
  16060. * whether the driver can initiate new TDLS session. This is indicated in the
  16061. * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
  16062. * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
  16063. */
  16064. enum qca_wlan_vendor_attr_tdls_get_status {
  16065. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  16066. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1,
  16067. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2,
  16068. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3,
  16069. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4,
  16070. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5,
  16071. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6,
  16072. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7,
  16073. /* keep last */
  16074. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  16075. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  16076. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  16077. };
  16078. /**
  16079. * enum qca_wlan_vendor_attr_tdls_state - Attributes used by
  16080. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command.
  16081. *
  16082. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the
  16083. * peer station. Required attribute.
  16084. *
  16085. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates
  16086. * the current TDLS state. Required attribute. Uses the values from
  16087. * enum qca_wlan_vendor_tdls_state.
  16088. *
  16089. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the
  16090. * reason of the current TDLS session state. Required attribute. Uses the values
  16091. * from enum qca_wlan_vendor_tdls_reason.
  16092. *
  16093. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the
  16094. * TDLS session channel. Required attribute.
  16095. *
  16096. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute.
  16097. * Indicates the TDLS session global operating class. Required attribute.
  16098. */
  16099. enum qca_wlan_vendor_attr_tdls_state {
  16100. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  16101. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1,
  16102. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2,
  16103. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3,
  16104. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4,
  16105. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5,
  16106. /* keep last */
  16107. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  16108. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  16109. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  16110. };
  16111. /*
  16112. * enum qca_wlan_vendor_opm_mode - Modes supported by
  16113. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute.
  16114. *
  16115. * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled
  16116. * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled
  16117. * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user
  16118. * to configure power save inactivity timeout and speculative wake up
  16119. * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  16120. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes.
  16121. */
  16122. enum qca_wlan_vendor_opm_mode {
  16123. QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0,
  16124. QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1,
  16125. QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2,
  16126. };
  16127. /* enum qca_wlan_audio_transport_switch_type - Represents the possible transport
  16128. * switch types.
  16129. *
  16130. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN: Request to route audio data
  16131. * via non-WLAN transport (ex: bluetooth).
  16132. *
  16133. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN: Request to route audio data via
  16134. * WLAN transport.
  16135. */
  16136. enum qca_wlan_audio_transport_switch_type {
  16137. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0,
  16138. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1,
  16139. };
  16140. /**
  16141. * enum qca_wlan_audio_transport_switch_status - Represents the status of audio
  16142. * transport switch request.
  16143. *
  16144. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED: Request to switch transport
  16145. * has been rejected. For ex: when transport switch is requested from WLAN
  16146. * to non-WLAN transport, user space modules and peers would evaluate the switch
  16147. * request and may not be ready for switch and hence switch to non-WLAN transport
  16148. * gets rejected.
  16149. *
  16150. * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED: Request to switch transport
  16151. * has been completed. This is sent only in command path. Ex: when host driver
  16152. * had requested for audio transport switch and userspace modules as well as
  16153. * peers are ready for the switch, userspace module switches the transport and
  16154. * sends subcommand with status completed to host driver.
  16155. */
  16156. enum qca_wlan_audio_transport_switch_status {
  16157. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED = 0,
  16158. QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED = 1,
  16159. };
  16160. /**
  16161. * enum qca_wlan_vendor_attr_audio_transport_switch - Attributes used by
  16162. * %QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH vendor command.
  16163. *
  16164. * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE: u8 attribute. Indicates
  16165. * the transport switch type from one of the values in enum
  16166. * qca_wlan_audio_transport_switch_type. This is mandatory param in both
  16167. * command and event path. This attribute is included in both requests and
  16168. * responses.
  16169. *
  16170. * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS: u8 attribute. Indicates
  16171. * the transport switch status from one of the values in enum
  16172. * qca_wlan_audio_transport_switch_status. This is optional param and used in
  16173. * both command and event path. This attribute must not be included in requests.
  16174. */
  16175. enum qca_wlan_vendor_attr_audio_transport_switch {
  16176. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_INVALID = 0,
  16177. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE = 1,
  16178. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS = 2,
  16179. /* keep last */
  16180. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST,
  16181. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_MAX =
  16182. QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST - 1,
  16183. };
  16184. #endif