qca_vendor.h 715 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: declares vendor commands interfacing with linux kernel
  21. */
  22. #ifndef _WLAN_QCA_VENDOR_H_
  23. #define _WLAN_QCA_VENDOR_H_
  24. /* Vendor id to be used in vendor specific command and events
  25. * to user space.
  26. * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
  27. * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
  28. * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
  29. * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
  30. */
  31. #define QCA_NL80211_VENDOR_ID 0x001374
  32. #ifndef BIT
  33. #define BIT(x) (1U << (x))
  34. #endif
  35. /**
  36. * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
  37. *
  38. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
  39. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
  40. * Sub commands 2 to 8 are not used
  41. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
  42. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
  43. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
  44. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  45. * NAN Request/Response and NAN Indication messages. These messages are
  46. * interpreted between the framework and the firmware component. While
  47. * sending the command from userspace to the driver, payload is not
  48. * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
  49. * is used when receiving vendor events in userspace from the driver.
  50. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
  51. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
  52. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
  53. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
  54. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
  55. * results
  56. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
  57. * results
  58. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
  59. * results
  60. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
  61. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
  62. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
  63. * channels
  64. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
  65. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
  66. * results
  67. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
  68. * available. Used when report_threshold is reached in scan cache.
  69. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
  70. * result. Used to report scan results when each probe rsp. is received,
  71. * if report_events enabled in wifi_scan_cmd_params.
  72. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
  73. * Indicates progress of scanning state-machine.
  74. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
  75. * ap found
  76. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
  77. * bssid
  78. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
  79. * hotlist bssid
  80. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
  81. * change
  82. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
  83. * significant change
  84. * ap found
  85. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
  86. * significant change
  87. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable
  88. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable
  89. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status
  90. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state
  91. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  92. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  93. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  94. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  95. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  96. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  97. * roaming and auth information.
  98. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  99. *
  100. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  101. * invoke the ACS function in device and pass selected channels to
  102. * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
  103. *
  104. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  105. * driver.
  106. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  107. * started CAC on DFS channel
  108. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  109. * completed the CAC check on DFS channel
  110. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  111. * check was aborted by the driver
  112. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  113. * driver completed NOP
  114. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  115. * driver detected radar signal on the current operating channel
  116. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  117. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  118. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  119. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  120. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  121. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  122. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  123. * extscan reset ssid hotlist
  124. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  125. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  126. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  127. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  128. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  129. * reset passpoint list
  130. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  131. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  132. * passpoint network found
  133. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  134. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  135. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  136. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  137. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  138. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  139. list
  140. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  141. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
  142. * to the host driver. This command sets the band through either
  143. * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
  144. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
  145. * refers enum qca_set_band as unsigned integer values and
  146. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
  147. * values. Also, the acceptable values for
  148. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
  149. * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
  150. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
  151. * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
  152. * implementations configure using both the attributes, the configurations
  153. * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
  154. * precedence.
  155. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  156. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  157. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  158. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  159. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  160. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  161. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  162. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  163. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  164. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  165. * start the P2P Listen Offload function in device and pass the listen
  166. * channel, period, interval, count, number of device types, device
  167. * types and vendor information elements to device driver and firmware.
  168. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  169. * indicate stop request/response of the P2P Listen Offload function in
  170. * device. As an event, it indicates either the feature stopped after it
  171. * was already running or feature has actually failed to start.
  172. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  173. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  174. * beaconing, this sub command provides the driver, the frequencies on the
  175. * 5 GHz to check for any radar activity. Driver selects one channel from
  176. * this priority list provided through
  177. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  178. * to check for radar activity on it. If no radar activity is detected
  179. * during the channel availability check period, driver internally switches
  180. * to the selected frequency of operation. If the frequency is zero, driver
  181. * internally selects a channel. The status of this conditional switch is
  182. * indicated through an event using the same sub command through
  183. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  184. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  185. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  186. * indication period and threshold for MAC layer counters.
  187. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  188. * in the host driver. The different TDLS configurations are defined
  189. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  190. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  191. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  192. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  193. * require methods to set SAR limits on TX power of WLAN/WWAN.
  194. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  195. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  196. * configuration of vendor ACS.
  197. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  198. * requisite information leading to a power save failure. The information
  199. * carried as part of this event is represented by the
  200. * enum qca_attr_chip_power_save_failure attributes.
  201. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  202. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  203. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  204. * statistics are represented by the enum qca_attr_nud_stats_get
  205. * attributes.
  206. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  207. * the BSS transition status, whether accept or reject, for a list of
  208. * candidate BSSIDs provided by the userspace. This uses the vendor
  209. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  210. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  211. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  212. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  213. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  214. * the driver shall specify array of
  215. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  216. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  217. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  218. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  219. * specific QCA module. The trace levels are represented by
  220. * enum qca_attr_trace_level attributes.
  221. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  222. * Protocol antenna limit in different modes. See enum
  223. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  224. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  225. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  226. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  227. * identifying the operation in success case. In failure cases an
  228. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  229. * describing the reason for the failure is returned.
  230. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  231. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  232. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  233. * be stopped.
  234. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  235. * specific interface. This can be used to modify some of the low level
  236. * scan parameters (off channel dwell time, home channel time) in the
  237. * driver/firmware. These parameters are maintained within the host
  238. * driver.
  239. * This command is valid only when the interface is in the connected
  240. * state.
  241. * These scan parameters shall be reset by the driver/firmware once
  242. * disconnected. The attributes used with this command are defined in
  243. * enum qca_wlan_vendor_attr_active_tos.
  244. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  245. * driver has detected an internal failure. This event carries the
  246. * information indicating the reason that triggered this detection. The
  247. * attributes for this command are defined in
  248. * enum qca_wlan_vendor_attr_hang.
  249. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  250. * of spectral parameters used. The spectral scan parameters are specified
  251. * by enum qca_wlan_vendor_attr_spectral_scan.
  252. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  253. * for spectral scan functionality. The debug stats are specified by
  254. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  255. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  256. * scan system capabilities. The capabilities are specified
  257. * by enum qca_wlan_vendor_attr_spectral_cap.
  258. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  259. * status of spectral scan. The status values are specified
  260. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  261. * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
  262. * peer pending packets. Specify the peer MAC address in
  263. * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
  264. * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
  265. * in enum qca_wlan_vendor_attr_flush_pending.
  266. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  267. * RF Operating Parameter (RROP) information. The attributes for this
  268. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  269. * intended for use by external Auto Channel Selection applications.
  270. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  271. * (SAR) power limits. This is a companion to the command
  272. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  273. * settings currently in use. The attributes returned by this command are
  274. * defined by enum qca_vendor_attr_sar_limits.
  275. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  276. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  277. * This works both as a query (user space asks the current mode) or event
  278. * interface (driver advertizing the current mode to the user space).
  279. * Driver does not trigger this event for temporary hardware mode changes.
  280. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  281. * channel change etc ) are updated with this event. Attributes for this
  282. * interface are defined in enum qca_wlan_vendor_attr_mac.
  283. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  284. * per peer per TID. Attributes for this command are define in
  285. * enum qca_wlan_set_qdepth_thresh_attr
  286. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
  287. * guide for WLAN driver. Request to suspend of driver and FW if the
  288. * temperature is higher than the suspend threshold; resume action is
  289. * requested to driver if the temperature is lower than the resume
  290. * threshold. In user poll mode, request temperature data by user. For test
  291. * purpose, getting thermal shutdown configuration parameters is needed.
  292. * Attributes for this interface are defined in
  293. * enum qca_wlan_vendor_attr_thermal_cmd.
  294. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
  295. * driver. Thermal temperature and indication of resume completion are
  296. * reported as thermal events. The attributes for this command are defined
  297. * in enum qca_wlan_vendor_attr_thermal_event.
  298. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  299. * test configuration. Attributes for this command are defined in
  300. * enum qca_wlan_vendor_attr_wifi_test_config.
  301. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  302. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  303. * carried a payload which was a binary blob of data. The command was not
  304. * extendable to send more information. The newer version carries the
  305. * legacy blob encapsulated within an attribute and can be extended with
  306. * additional vendor attributes that can enhance the NAN command
  307. * interface.
  308. * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
  309. * configure parameters per peer to capture Channel Frequency Response
  310. * (CFR) and enable Periodic CFR capture. The attributes for this command
  311. * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
  312. * can also be used to send CFR data from the driver to userspace when
  313. * netlink events are used to send CFR data.
  314. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  315. * The returned firmware state is specified in the attribute
  316. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  317. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  318. * is used by host driver to flush per-peer cached statistics to user space
  319. * application. This interface is used as an event from host driver to
  320. * user space application. Attributes for this event are specified in
  321. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  322. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  323. * sent as event from host driver.
  324. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  325. * improve the success rate of Zigbee joining network.
  326. * Due to PTA master limitation, zigbee joining network success rate is
  327. * low while wlan is working. Wlan host driver need to configure some
  328. * parameters including Zigbee state and specific WLAN periods to enhance
  329. * PTA master. All this parameters are delivered by the NetLink attributes
  330. * defined in "enum qca_mpta_helper_vendor_attr".
  331. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  332. * implement Beacon frame reporting feature.
  333. *
  334. * Userspace can request the driver/firmware to periodically report
  335. * received Beacon frames whose BSSID is same as the current connected
  336. * BSS's MAC address.
  337. *
  338. * In case the STA seamlessly (without sending disconnect indication to
  339. * userspace) roams to a different BSS, Beacon frame reporting will be
  340. * automatically enabled for the Beacon frames whose BSSID is same as the
  341. * MAC address of the new BSS. Beacon reporting will be stopped when the
  342. * STA is disconnected (when the disconnect indication is sent to
  343. * userspace) and need to be explicitly enabled by userspace for next
  344. * connection.
  345. *
  346. * When a Beacon frame matching configured conditions is received, and if
  347. * userspace has requested to send asynchronous beacon reports, the
  348. * driver/firmware will encapsulate the details of the Beacon frame in an
  349. * event and send it to userspace along with updating the BSS information
  350. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  351. * scan cache with the information from the received Beacon frame but
  352. * will not send any active report to userspace.
  353. *
  354. * The userspace can request the driver/firmware to stop reporting Beacon
  355. * frames. If the driver/firmware is not able to receive Beacon frames
  356. * due to other Wi-Fi operations such as off-channel activities, etc.,
  357. * the driver/firmware will send a pause event to userspace and stop
  358. * reporting Beacon frames. Whether the beacon reporting will be
  359. * automatically resumed or not by the driver/firmware later will be
  360. * reported to userspace using the
  361. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  362. * reporting shall be resumed for all the cases except either when
  363. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  364. * in the command which triggered the current beacon reporting or during
  365. * any disconnection case as indicated by setting
  366. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  367. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  368. * driver.
  369. *
  370. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  371. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  372. * flag not set, the next first
  373. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  374. * shall be considered as un-pause event.
  375. *
  376. * All the attributes used with this command are defined in
  377. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  378. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  379. * interop issues with the DUT. This sub command is used to transfer the
  380. * ap info between driver and user space. This works both as a command
  381. * or event. As a command, it configs the stored list of aps from user
  382. * space to firmware; as an event, it indicates the ap info detected by
  383. * firmware to user space for persistent storage. The attributes defined
  384. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  385. * parameters.
  386. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  387. * binary blobs from application/service to firmware. The attributes
  388. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  389. * deliver the parameters.
  390. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
  391. * to send/receive avoid frequency data using
  392. * enum qca_wlan_vendor_attr_avoid_frequency_ext.
  393. * This new command is alternative to existing command
  394. * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  395. * is using stream of bytes instead of structured data using vendor
  396. * attributes. User space sends unsafe frequency ranges to the driver using
  397. * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
  398. * reception of this command, the driver shall check if an interface is
  399. * operating on an unsafe frequency and the driver shall try to move to a
  400. * safe channel when needed. If the driver is not able to find a safe
  401. * channel the interface can keep operating on an unsafe channel with the
  402. * TX power limit derived based on internal configurations like
  403. * regulatory/SAR rules.
  404. *
  405. * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
  406. * add the STA node details in driver/firmware. Attributes for this event
  407. * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  408. * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
  409. * coex chain mode from application/service.
  410. * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
  411. * to deliver the parameters.
  412. * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
  413. * get information of a station from driver to userspace. This command can
  414. * be used in both STA and AP modes. For STA mode, it provides information
  415. * of the current association when in connected state or the last
  416. * association when in disconnected state. For AP mode, only information
  417. * of the currently connected stations is available. This command uses
  418. * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
  419. * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
  420. * Host drivers can request the user space entity to set the SAR power
  421. * limits with this event. Accordingly, the user space entity is expected
  422. * to set the SAR power limits. Host drivers can retry this event to the
  423. * user space for the SAR power limits configuration from user space. If
  424. * the driver does not get the SAR power limits from user space for all
  425. * the retried attempts, it can configure a default SAR power limit.
  426. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
  427. * is used to update the information about the station from the driver to
  428. * userspace. Uses attributes from enum
  429. * qca_wlan_vendor_attr_update_sta_info.
  430. *
  431. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
  432. * The host driver initiates the disconnection for scenarios such as beacon
  433. * miss, NUD failure, peer kick out, etc. The disconnection indication
  434. * through cfg80211_disconnected() expects the reason codes from enum
  435. * ieee80211_reasoncode which does not signify these various reasons why
  436. * the driver has triggered the disconnection. This event will be used to
  437. * send the driver specific reason codes by the host driver to userspace.
  438. * Host drivers should trigger this event and pass the respective reason
  439. * code immediately prior to triggering cfg80211_disconnected(). The
  440. * attributes used with this event are defined in enum
  441. * qca_wlan_vendor_attr_driver_disconnect_reason.
  442. *
  443. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
  444. * add/delete TSPEC for each AC. One command is for one specific AC only.
  445. * This command can only be used in STA mode and the STA must be
  446. * associated with an AP when the command is issued. Uses attributes
  447. * defined in enum qca_wlan_vendor_attr_config_tspec.
  448. *
  449. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
  450. * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
  451. *
  452. * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
  453. * the host driver. The band configurations obtained are referred through
  454. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
  455. *
  456. * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
  457. * assessment.
  458. * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
  459. *
  460. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  461. * used to update SSID information in hostapd when it is updated in the
  462. * driver. Uses the attribute NL80211_ATTR_SSID.
  463. *
  464. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
  465. * the driver to send opaque data from the firmware to userspace. The
  466. * driver sends an event to userspace whenever such data is received from
  467. * the firmware.
  468. *
  469. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
  470. * send this opaque data for this event.
  471. *
  472. * The format of the opaque data is specific to the particular firmware
  473. * version and there is no guarantee of the format remaining same.
  474. *
  475. * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
  476. * The host driver selects Tx VDEV, and notifies user. The attributes
  477. * used with this event are defined in enum
  478. * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
  479. * This event contains Tx VDEV group information contains other VDEVs
  480. * interface index and status information.
  481. *
  482. * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
  483. * configure the concurrent session policies when multiple interfaces
  484. * are (getting) active. The attributes used by this command are defined
  485. * in enum qca_wlan_vendor_attr_concurrent_policy.
  486. *
  487. * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
  488. * to query usable channels for different interface types such as STA,
  489. * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
  490. * channels in the response based on country code, different static
  491. * configurations, concurrency combinations, etc. The attributes used
  492. * with this command are defined in
  493. * enum qca_wlan_vendor_attr_usable_channels.
  494. *
  495. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
  496. * to get DFS radar history from the driver to userspace. The driver
  497. * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
  498. * array of nested entries.
  499. * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
  500. * enable/disable mDNS offload to the firmware. The attributes used with
  501. * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
  502. *
  503. * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
  504. * important debug events that are required for various issues. The
  505. * attributes used with this command are defined in
  506. * enum qca_wlan_vendor_attr_diag.
  507. * This command is defined for temporary usage until this interface is
  508. * moved to the existing diag infra with cnss diag events. This command
  509. * will be deprecated soon and it is not recommended to do any further
  510. * enhancements to this command.
  511. *
  512. * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
  513. * to set packet monitor mode that aims to send the specified set of TX and
  514. * RX frames on the current client interface to an active monitor interface.
  515. * If this Monitor mode is set, the driver will send the configured frames,
  516. * from the interface on which the command is issued, to an active monitor
  517. * interface. The attributes used with this command are defined in
  518. * enum qca_wlan_vendor_attr_set_monitor_mode.
  519. *
  520. * Though the monitor mode is configured for the respective data/mgmt/ctrl
  521. * frames, it is up to the respective WLAN driver/firmware/hardware designs
  522. * to consider the possibility of sending these frames over the monitor
  523. * interface. For example, the control frames are handled with in the
  524. * hardware and thus passing such frames over the monitor interface is left
  525. * to the respective designs.
  526. *
  527. * Also, this monitor mode is governed to behave accordingly in
  528. * suspend/resume states. If the firmware handles any of such frames
  529. * in suspend state without waking up the host and if the monitor mode
  530. * is configured to notify all such frames, then the firmware is expected
  531. * to resume the host and forward the respective frames to the monitor
  532. * interface. Please note that such a request to get the frames over the
  533. * monitor interface will have a definite power implications.
  534. *
  535. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
  536. * as a request to set the driver/firmware with the parameters to trigger
  537. * the roaming events, and also used by the driver/firmware to pass on the
  538. * various roam events to userspace.
  539. * Applicable only for the STA mode. The attributes used with this command
  540. * are defined in enum qca_wlan_vendor_attr_roam_events.
  541. *
  542. * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
  543. * rate mask config for a list of phy types. Userspace shall provide
  544. * an array of the vendor attributes defined in
  545. * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
  546. *
  547. * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
  548. * when two interfaces are active on the same band, using two different
  549. * home channels, and only supported by a single radio. In this scenario
  550. * the device must split the use of the radio between the two interfaces.
  551. * The percentage of time allocated to a given interface is the quota.
  552. * Depending on the configuration, the quota can either be fixed or
  553. * dynamic.
  554. *
  555. * When used as an event, the device will report the quota type, and for
  556. * all interfaces operating in MCC it will report the current quota.
  557. * When used as a command, the device can be configured for a specific
  558. * quota type, and in the case of a fixed quota, the quota to apply to one
  559. * of the interfaces.
  560. *
  561. * Applications can use the event to do TX bitrate control based on the
  562. * information, and can use the command to explicitly set the quota to
  563. * enhance performance in specific scenarios.
  564. *
  565. * The attributes used with this command are defined in
  566. * enum qca_wlan_vendor_attr_mcc_quota.
  567. *
  568. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
  569. * user space that the driver is ready for operations again after
  570. * recovering from internal failures. This occurs following a failure
  571. * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
  572. *
  573. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
  574. * get the WLAN radio combinations matrix supported by the device which
  575. * provides the device simultaneous radio configurations such as
  576. * standalone, dual band simultaneous, and single band simultaneous.
  577. *
  578. * The attributes used with this command are defined in
  579. * enum qca_wlan_vendor_attr_radio_combination_matrix.
  580. *
  581. * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
  582. * security negotiation and key generation to user space.
  583. *
  584. * When used as an event, the driver requests userspace to trigger the PASN
  585. * authentication or dropping of a PTKSA for the indicated peer devices.
  586. * When used as a command response, userspace indicates a consolidated
  587. * status report for all the peers that were requested for.
  588. *
  589. * The attributes used with this command are defined in
  590. * enum qca_wlan_vendor_attr_pasn.
  591. *
  592. * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
  593. * secure ranging context such as TK and LTF keyseed for each peer
  594. * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
  595. *
  596. * The attributes used with this command are defined in
  597. * enum qca_wlan_vendor_attr_secure_ranging_ctx.
  598. *
  599. * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
  600. * enable/disable offload processing in firmware during system/runtime
  601. * suspend for CoAP messages (see RFC7252: The Constrained Application
  602. * Protocol) and fetch information of the CoAP messages cached during
  603. * offload processing.
  604. *
  605. * The attributes used with this command are defined in
  606. * enum qca_wlan_vendor_attr_coap_offload.
  607. *
  608. * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
  609. * (add, remove, or change) a Stream Classification Service (SCS) rule.
  610. *
  611. * The attributes used with this event are defined in
  612. * enum qca_wlan_vendor_attr_scs_rule_config.
  613. *
  614. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
  615. * supported by the WLAN firmware.
  616. *
  617. * The attributes used with this command are defined in
  618. * enum qca_wlan_vendor_attr_sar_capability.
  619. *
  620. * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
  621. * (SR) feature. This command is used by userspace to configure SR
  622. * parameters to the driver and to get the SR related parameters and
  623. * statistics with synchronous responses from the driver.
  624. * The driver also uses this command to send asynchronous events to
  625. * userspace to indicate suspend/resume of SR feature and changes
  626. * in SR parameters.
  627. *
  628. * The attributes used with this command are defined in
  629. * enum qca_wlan_vendor_attr_sr.
  630. *
  631. * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
  632. * notify application layer about the primary netdev of an MLO connection.
  633. * In some implementations, MLO has multiple netdevs out of which one
  634. * netdev is designated as primary to provide a unified interface to the
  635. * bridge. In those implementations this event is sent on every MLO peer
  636. * connection.
  637. *
  638. * The attributes used with this event are defined in
  639. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
  640. *
  641. * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
  642. * driver to notify different AFC events to userspace. The attributes used
  643. * with this command are defined in enum qca_wlan_vendor_attr_afc_event.
  644. *
  645. * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
  646. * userspace to deliver AFC response data to driver. The attributes used
  647. * with this command are defined in enum qca_wlan_vendor_attr_afc_response.
  648. *
  649. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
  650. * operate in doze mode.
  651. *
  652. * Userspace uses this command to configure the AP interface to enter or
  653. * exit from doze mode. The driver sends this event after it enters or
  654. * exits the doze mode with the updated AP doze mode settings.
  655. *
  656. * The attributes used with this subcommand are defined in
  657. * enum qca_wlan_vendor_attr_dozed_ap.
  658. *
  659. * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
  660. * to get the status of local packet capture of monitor mode. The monitor
  661. * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
  662. * subcommand.
  663. *
  664. * The attributes used with this command are defined in enum
  665. * qca_wlan_vendor_attr_get_monitor_mode.
  666. *
  667. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
  668. * get roam information from the driver to user space. It provides the
  669. * latest several instances of roam information cached in the driver.
  670. * The command is only used for STA mode. The attributes used with this
  671. * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
  672. *
  673. * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
  674. * configure and fetch the state information of the MLO links affiliated
  675. * with the STA interface. The attributes used with this command are
  676. * defined in enum qca_wlan_vendor_attr_mlo_link_state.
  677. *
  678. * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
  679. * vendor subcommand to trigger channel utilization measurement on entire
  680. * channel width of the connected channel(s). For MLO connection, connected
  681. * channel utilization measurement shall be done on all the MLO links.
  682. * The driver may use regular scan or wideband energy detection feature
  683. * based on the hardware capability for connected channel(s) utilization
  684. * measurement. The driver indicates the connected channel(s) utilization
  685. * measurement completion as an asynchronous event with this command ID to
  686. * userspace. Upon receiving this event, userspace can use
  687. * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current
  688. * connected channel(s) and can derive the channel utilization percentage
  689. * (CU) of each 20 MHz sub-channel of the entire connected channel using
  690. * %NL80211_CMD_GET_SURVEY response.
  691. * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
  692. * This command is only used for STA mode.
  693. *
  694. * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is
  695. * used as an event to notify the userspace of TID-to-link map changes
  696. * negotiated by the driver or updated by associated AP MLD with Beacon,
  697. * Probe Response, or Action frames. The attributes used with this command
  698. * are defined in enum qca_wlan_vendor_attr_tid_to_link_map.
  699. *
  700. * Note that the attribute
  701. * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to
  702. * the current connected AP MLD address.
  703. *
  704. * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal
  705. * of STA MLD setup links due to AP MLD removing the corresponding
  706. * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup
  707. * links are removed during Multi-Link reconfiguration, the driver shall
  708. * use %NL80211_CMD_DISCONNECT instead of this command since it is a
  709. * connection drop. The attributes used with this command are defined in
  710. * enum qca_wlan_vendor_attr_link_reconfig.
  711. * Note that the attribute
  712. * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to
  713. * the current connected AP MLD address.
  714. *
  715. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure
  716. * the driver with MLO link id information on which to transmit the TDLS
  717. * discovery response frame on the configured MLO BSS link when the
  718. * local station is connected in MLO mode. This command is sent to the
  719. * driver prior to the TDLS discovery response management transmit
  720. * operation and is followed immediately by the TDLS discovery response
  721. * management frame transmit command.
  722. *
  723. * The driver saves the configured MLO link id information and uses it for
  724. * the following TDLS discovery response frame transmission on the
  725. * configured MLO BSS link and the link id information is cleared in the
  726. * driver after the TDLS discovery response frame is successfully
  727. * transmitted. This behavior is independent of the TDLS peer STA connection
  728. * mode (MLO or non-MLO).
  729. *
  730. * Uses the attributes defined in
  731. * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext.
  732. */
  733. enum qca_nl80211_vendor_subcmds {
  734. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  735. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  736. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  737. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  738. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  739. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  740. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  741. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  742. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  743. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  744. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  745. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  746. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  747. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  748. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  749. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  750. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  751. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  752. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  753. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  754. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  755. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  756. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  757. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  758. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  759. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  760. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  761. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  762. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  763. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  764. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  765. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  766. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  767. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  768. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  769. /* Get Concurrency Matrix */
  770. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  771. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  772. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  773. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  774. /* Deprecated */
  775. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  776. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  777. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  778. /* Off loaded DFS events */
  779. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  780. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  781. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  782. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  783. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  784. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  785. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  786. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  787. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  788. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  789. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  790. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  791. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  792. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  793. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  794. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  795. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  796. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  797. /* Wi-Fi Configuration subcommands */
  798. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  799. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  800. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  801. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  802. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  803. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  804. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  805. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  806. /* NS Offload enable/disable cmd */
  807. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  808. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  809. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  810. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  811. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  812. /* OCB commands */
  813. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  814. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  815. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  816. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  817. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  818. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  819. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  820. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  821. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  822. /* subcommand to get link properties */
  823. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  824. /* LFR Subnet Detection */
  825. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  826. /* DBS subcommands */
  827. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  828. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  829. /* Vendor setband command */
  830. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  831. /* Vendor scan commands */
  832. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  833. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  834. /* OTA test subcommand */
  835. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  836. /* Tx power scaling subcommands */
  837. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  838. /* Tx power scaling in db subcommands */
  839. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  840. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  841. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  842. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  843. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  844. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  845. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  846. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  847. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  848. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  849. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  850. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  851. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  852. /* FTM/indoor location subcommands */
  853. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  854. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  855. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  856. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  857. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  858. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  859. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  860. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  861. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  862. /* Encrypt/Decrypt command */
  863. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  864. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  865. /* DMG low level RF sector operations */
  866. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  867. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  868. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  869. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  870. /* Configure the TDLS mode from user space */
  871. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  872. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  873. /* Vendor abort scan command */
  874. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  875. /* Set Specific Absorption Rate(SAR) Power Limits */
  876. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  877. /* External Auto channel configuration setting */
  878. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  879. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  880. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  881. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  882. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  883. /* Set the trace level for QDF */
  884. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  885. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  886. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  887. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  888. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  889. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  890. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  891. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  892. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  893. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  894. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  895. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  896. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  897. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  898. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  899. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  900. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  901. /* Wi-Fi test configuration subcommand */
  902. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  903. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  904. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  905. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  906. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  907. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  908. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  909. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  910. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  911. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  912. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  913. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  914. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  915. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  916. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  917. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  918. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  919. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  920. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  921. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  922. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  923. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  924. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  925. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  926. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  927. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
  928. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  929. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  930. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  931. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  932. QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
  933. QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
  934. QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
  935. QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
  936. /* 206..212 - reserved for QCA */
  937. QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
  938. QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
  939. QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
  940. QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
  941. QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
  942. QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
  943. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
  944. QCA_NL80211_VENDOR_SUBCMD_SR = 220,
  945. QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
  946. QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
  947. QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
  948. QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
  949. QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
  950. QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
  951. QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
  952. QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
  953. QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
  954. QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
  955. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
  956. };
  957. enum qca_wlan_vendor_tos {
  958. QCA_WLAN_VENDOR_TOS_BK = 0,
  959. QCA_WLAN_VENDOR_TOS_BE = 1,
  960. QCA_WLAN_VENDOR_TOS_VI = 2,
  961. QCA_WLAN_VENDOR_TOS_VO = 3,
  962. };
  963. /**
  964. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  965. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  966. */
  967. enum qca_wlan_vendor_attr_active_tos {
  968. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  969. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  970. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  971. /* Flag attribute representing the start (attribute included) or stop
  972. * (attribute not included) of the respective TOS.
  973. */
  974. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  975. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  976. };
  977. enum qca_wlan_vendor_hang_reason {
  978. /* Unspecified reason */
  979. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  980. /* No Map for the MAC entry for the received frame */
  981. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  982. /* peer deletion timeout happened */
  983. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  984. /* peer unmap timeout */
  985. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  986. /* Scan request timed out */
  987. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  988. /* Consecutive Scan attempt failures */
  989. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  990. /* Unable to get the message buffer */
  991. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  992. /* Current command processing is timedout */
  993. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  994. /* Timeout for an ACK from FW for suspend request */
  995. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  996. /* Timeout for an ACK from FW for resume request */
  997. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  998. /* Transmission timeout for consecutive data frames */
  999. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  1000. /* Timeout for the TX completion status of data frame */
  1001. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  1002. /* DXE failure for tx/Rx, DXE resource unavailability */
  1003. QCA_WLAN_HANG_DXE_FAILURE = 12,
  1004. /* WMI pending commands exceed the maximum count */
  1005. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  1006. /* Timeout for peer STA connection accept command's response from the
  1007. * FW in AP mode. This command is triggered when a STA (peer) connects
  1008. * to AP (DUT).
  1009. */
  1010. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  1011. /* Timeout for the AP connection accept command's response from the FW
  1012. * in STA mode. This command is triggered when the STA (DUT) connects
  1013. * to an AP (peer).
  1014. */
  1015. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  1016. /* Timeout waiting for the response to the MAC HW mode change command
  1017. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  1018. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  1019. * Channel Concurrency) mode.
  1020. */
  1021. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  1022. /* Timeout waiting for the response from FW to configure the MAC HW's
  1023. * mode. This operation is to configure the single/two MACs in either
  1024. * SCC/MCC/DBS mode.
  1025. */
  1026. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  1027. /* Timeout waiting for response of VDEV start command from the FW */
  1028. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  1029. /* Timeout waiting for response of VDEV restart command from the FW */
  1030. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  1031. /* Timeout waiting for response of VDEV stop command from the FW */
  1032. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  1033. /* Timeout waiting for response of VDEV delete command from the FW */
  1034. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  1035. /* Timeout waiting for response of peer all delete request command to
  1036. * the FW on a specific VDEV.
  1037. */
  1038. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  1039. /* WMI sequence mismatch between WMI command and Tx completion */
  1040. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  1041. /* Write to Device HAL register failed */
  1042. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  1043. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  1044. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  1045. /* Bus failure */
  1046. QCA_WLAN_HANG_BUS_FAILURE = 26,
  1047. /* tasklet/credit latency found */
  1048. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  1049. /* MSDU buffers received in REO error ring, exceeding certain
  1050. * threshold
  1051. */
  1052. QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
  1053. /* Vdev SM is out of sync and connect req received
  1054. * when already connected
  1055. */
  1056. QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
  1057. /* Stats request timeout */
  1058. QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
  1059. /* Leak in TX descriptor for a packet */
  1060. QCA_WLAN_HANG_TX_DESC_LEAK = 31,
  1061. /* Scheduler watchdog timeout */
  1062. QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
  1063. /* Failed to send self peer deletion cmd to firmware */
  1064. QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
  1065. /* Received del self sta without del bss */
  1066. QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
  1067. /* Recovery needed when sending flush completion to userspace */
  1068. QCA_WLAN_HANG_FLUSH_LOGS = 35,
  1069. /* Host wakeup because of page fault */
  1070. QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
  1071. };
  1072. /**
  1073. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  1074. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  1075. */
  1076. enum qca_wlan_vendor_attr_hang {
  1077. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  1078. /*
  1079. * Reason for the Hang - Represented by enum
  1080. * qca_wlan_vendor_hang_reason.
  1081. */
  1082. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  1083. /* The binary blob data associated with the hang reason specified by
  1084. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  1085. * contain the required dump to analyze the reason for the hang.
  1086. * NLA_BINARY attribute, the max size is 1024 bytes.
  1087. */
  1088. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  1089. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  1090. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  1091. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  1092. };
  1093. /**
  1094. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  1095. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  1096. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  1097. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  1098. level needs to be updated.
  1099. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  1100. * to be set.
  1101. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  1102. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  1103. */
  1104. enum qca_vendor_attr_set_trace_level {
  1105. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  1106. /*
  1107. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  1108. * attributes.
  1109. */
  1110. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  1111. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  1112. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  1113. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  1114. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  1115. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  1116. };
  1117. /**
  1118. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  1119. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  1120. * station information. The information obtained through these
  1121. * commands signify the current info in connected state and
  1122. * latest cached information during the connected state , if queried
  1123. * when in disconnected state.
  1124. *
  1125. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  1126. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  1127. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  1128. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  1129. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  1130. */
  1131. enum qca_wlan_vendor_attr_get_station {
  1132. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  1133. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  1134. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  1135. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  1136. /* keep last */
  1137. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  1138. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  1139. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  1140. };
  1141. /**
  1142. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  1143. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  1144. *
  1145. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  1146. * Used in STA mode. This attribute represents the list of channel center
  1147. * frequencies in MHz (u32) the station has learnt during the last connection
  1148. * or roaming attempt. This information shall not signify the channels for
  1149. * an explicit scan request from the user space. Host drivers can update this
  1150. * information to the user space in both connected and disconnected state.
  1151. * In the disconnected state this information shall signify the channels
  1152. * scanned in the last connection/roam attempt that lead to the disconnection.
  1153. */
  1154. enum qca_wlan_vendor_attr_update_sta_info {
  1155. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  1156. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  1157. /* keep last */
  1158. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  1159. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  1160. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  1161. };
  1162. /**
  1163. * enum qca_wlan_802_11_mode - dot11 mode
  1164. * @QCA_WLAN_802_11_MODE_11B: mode B
  1165. * @QCA_WLAN_802_11_MODE_11G: mode G
  1166. * @QCA_WLAN_802_11_MODE_11N: mode N
  1167. * @QCA_WLAN_802_11_MODE_11A: mode A
  1168. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  1169. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  1170. * @QCA_WLAN_802_11_MODE_11BE: mode BE
  1171. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  1172. */
  1173. enum qca_wlan_802_11_mode {
  1174. QCA_WLAN_802_11_MODE_11B,
  1175. QCA_WLAN_802_11_MODE_11G,
  1176. QCA_WLAN_802_11_MODE_11N,
  1177. QCA_WLAN_802_11_MODE_11A,
  1178. QCA_WLAN_802_11_MODE_11AC,
  1179. QCA_WLAN_802_11_MODE_11AX,
  1180. QCA_WLAN_802_11_MODE_11BE,
  1181. QCA_WLAN_802_11_MODE_INVALID,
  1182. };
  1183. /**
  1184. * enum qca_wlan_auth_type - Authentication key management type
  1185. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  1186. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  1187. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  1188. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  1189. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  1190. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  1191. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  1192. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  1193. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  1194. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  1195. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  1196. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  1197. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  1198. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  1199. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  1200. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  1201. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  1202. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  1203. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  1204. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  1205. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  1206. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  1207. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  1208. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  1209. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  1210. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  1211. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  1212. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  1213. */
  1214. enum qca_wlan_auth_type {
  1215. QCA_WLAN_AUTH_TYPE_INVALID,
  1216. QCA_WLAN_AUTH_TYPE_OPEN,
  1217. QCA_WLAN_AUTH_TYPE_SHARED,
  1218. QCA_WLAN_AUTH_TYPE_WPA,
  1219. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  1220. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  1221. QCA_WLAN_AUTH_TYPE_RSN,
  1222. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  1223. QCA_WLAN_AUTH_TYPE_FT,
  1224. QCA_WLAN_AUTH_TYPE_FT_PSK,
  1225. QCA_WLAN_AUTH_TYPE_SHA256,
  1226. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  1227. QCA_WLAN_AUTH_TYPE_WAI,
  1228. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  1229. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  1230. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  1231. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  1232. QCA_WLAN_AUTH_TYPE_FT_SAE,
  1233. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  1234. QCA_WLAN_AUTH_TYPE_SAE,
  1235. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  1236. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  1237. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  1238. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  1239. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  1240. QCA_WLAN_AUTH_TYPE_OWE,
  1241. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  1242. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  1243. };
  1244. /**
  1245. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  1246. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  1247. *
  1248. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  1249. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  1250. * Get the standard NL attributes Nested with this attribute.
  1251. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  1252. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  1253. * NL80211_ATTR_STA_INFO
  1254. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  1255. * Get the standard NL attributes Nested with this attribute.
  1256. * Ex : Query HT/VHT Capability advertised by the AP.
  1257. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  1258. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  1259. * Number of successful Roam attempts before a
  1260. * disconnect, Unsigned 32 bit value
  1261. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  1262. * Authentication Key Management Type used for the connected session.
  1263. * Signified by enum qca_wlan_auth_type
  1264. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  1265. * connected Session, signified by enum qca_wlan_802_11_mode
  1266. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  1267. * HS20 Indication Element
  1268. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  1269. * Status Code Corresponding to the Association Failure.
  1270. * Unsigned 32 bit value.
  1271. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  1272. * Max phy rate of remote station
  1273. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  1274. * TX packets to remote station
  1275. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  1276. * TX bytes to remote station
  1277. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  1278. * RX packets from remote station
  1279. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  1280. * RX bytes from remote station
  1281. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  1282. * Last TX rate with remote station
  1283. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1284. * Last RX rate with remote station
  1285. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1286. * Remote station enable/disable WMM
  1287. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1288. * Remote station connection mode
  1289. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1290. * Remote station AMPDU enable/disable
  1291. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1292. * Remote station TX Space-time block coding enable/disable
  1293. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1294. * Remote station RX Space-time block coding enable/disable
  1295. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1296. * Remote station channel width
  1297. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1298. * Remote station short GI enable/disable
  1299. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1300. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1301. * containing the raw information elements from Beacon frames. Represents
  1302. * the Beacon frames of the current BSS in the connected state. When queried
  1303. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1304. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1305. * disconnect reason for the last disconnection if the disconnection is
  1306. * triggered from the host driver. The values are referred from
  1307. * enum qca_disconnect_reason_codes. If the disconnect is from
  1308. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1309. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1310. * Applicable in AP mode only. It contains the raw information elements
  1311. * from assoc request frame of the given peer station. User queries with the
  1312. * mac address of peer station when it disconnects. Host driver sends
  1313. * assoc request frame of the given station. Host driver doesn't provide
  1314. * the IEs when the peer station is still in connected state.
  1315. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1316. * sending HE operation info.
  1317. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1318. *
  1319. */
  1320. enum qca_wlan_vendor_attr_get_station_info {
  1321. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1322. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1323. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1324. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1325. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1326. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1327. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1328. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1329. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1330. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1331. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1332. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1333. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1334. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1335. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1336. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1337. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1338. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1339. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1340. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1341. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1342. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1343. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1344. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1345. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1346. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1347. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1348. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1349. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1350. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1351. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1352. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1353. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1354. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1355. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1356. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1357. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1358. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1359. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1360. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1361. /* keep last */
  1362. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1363. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1364. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1365. };
  1366. /**
  1367. * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute
  1368. *
  1369. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value
  1370. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit
  1371. * value
  1372. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets
  1373. * keep as unsigned for now
  1374. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class
  1375. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms
  1376. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth
  1377. * in KBPS
  1378. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last
  1379. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value
  1380. */
  1381. enum qca_wlan_vendor_attr_tdls_enable {
  1382. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  1383. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR,
  1384. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL,
  1385. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS,
  1386. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS,
  1387. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS,
  1388. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  1389. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  1390. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  1391. };
  1392. /**
  1393. * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute
  1394. *
  1395. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value
  1396. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned
  1397. * 8-bit value
  1398. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last
  1399. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value
  1400. */
  1401. enum qca_wlan_vendor_attr_tdls_disable {
  1402. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  1403. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR,
  1404. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  1405. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  1406. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  1407. };
  1408. /**
  1409. * qca_chip_power_save_failure_reason: Power save failure reason
  1410. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1411. * due to protocol/module.
  1412. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1413. * due to hardware
  1414. */
  1415. enum qca_chip_power_save_failure_reason {
  1416. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1417. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1418. };
  1419. /**
  1420. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1421. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1422. * information leading to the power save failure.
  1423. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1424. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1425. * represented by enum qca_chip_power_save_failure_reason
  1426. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1427. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1428. */
  1429. enum qca_attr_chip_power_save_failure {
  1430. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1431. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1432. /* keep last */
  1433. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1434. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1435. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1436. };
  1437. /**
  1438. * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute
  1439. *
  1440. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value
  1441. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned
  1442. * 8-bit value
  1443. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state,
  1444. * unsigned 32-bit value
  1445. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason
  1446. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel,
  1447. * unsigned 32-bit value
  1448. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating
  1449. * class, unsigned 32-bit value
  1450. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last
  1451. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value
  1452. */
  1453. enum qca_wlan_vendor_attr_tdls_get_status {
  1454. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  1455. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR,
  1456. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE,
  1457. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON,
  1458. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL,
  1459. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS,
  1460. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  1461. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  1462. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  1463. };
  1464. /**
  1465. * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute
  1466. *
  1467. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value
  1468. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned
  1469. * 8-bit value
  1470. * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state,
  1471. * unsigned 32-bit value
  1472. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason
  1473. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel,
  1474. * unsigned 32-bit value
  1475. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state
  1476. * operating class, unsigned 32-bit value
  1477. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last
  1478. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value
  1479. */
  1480. enum qca_wlan_vendor_attr_tdls_state {
  1481. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  1482. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR,
  1483. QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE,
  1484. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON,
  1485. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL,
  1486. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS,
  1487. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  1488. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  1489. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_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. * Here the RSSI of the current BSSID need not be poor.
  3228. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  3229. * by triggering a periodic scan to find a better AP to roam.
  3230. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  3231. * when the connected channel environment is too noisy/congested.
  3232. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  3233. * when BTM Request frame is received from the connected AP.
  3234. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  3235. * when the channel utilization is goes above the configured threshold.
  3236. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  3237. * based on the request from the user (space).
  3238. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  3239. * device receives Deauthentication/Disassociation frame from connected
  3240. * AP.
  3241. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  3242. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  3243. * is determined to be a poor one.
  3244. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  3245. * based on continuous TX Data Frame failures to the connected AP.
  3246. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  3247. * based on the scan results obtained from an external scan (not
  3248. * triggered to aim roaming)
  3249. *
  3250. * Set the corresponding roam trigger reason bit to consider it for roam
  3251. * trigger.
  3252. * Userspace can set multiple bits and send to the driver. The driver shall
  3253. * consider all of them to trigger/initiate a roam scan.
  3254. */
  3255. enum qca_vendor_roam_triggers {
  3256. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  3257. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  3258. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  3259. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  3260. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  3261. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  3262. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  3263. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  3264. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  3265. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  3266. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  3267. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  3268. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  3269. };
  3270. /*
  3271. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  3272. * fail reasons. This enum value is used in
  3273. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  3274. *
  3275. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  3276. * able to trigger the scan.
  3277. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  3278. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  3279. * scan.
  3280. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  3281. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  3282. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  3283. * status code.
  3284. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  3285. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  3286. * frame.
  3287. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  3288. * with error status code.
  3289. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  3290. * received.
  3291. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  3292. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  3293. * frame.
  3294. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  3295. * internally before transmission.
  3296. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  3297. * Request frame.
  3298. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  3299. * dropped internally.
  3300. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  3301. * times out.
  3302. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  3303. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  3304. * internally.
  3305. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  3306. * M2 frame.
  3307. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  3308. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  3309. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  3310. * internally.
  3311. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  3312. * frame.
  3313. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  3314. * started for final beacon miss case.
  3315. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  3316. * received from the AP during roaming handoff.
  3317. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  3318. * or host is suspended and gives the indication of the last roamed AP only
  3319. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  3320. * progress, this ongoing roaming is aborted and the last roamed AP is
  3321. * indicated to host.
  3322. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  3323. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  3324. * out.
  3325. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  3326. * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
  3327. * current network conditions are fine.
  3328. */
  3329. enum qca_vendor_roam_fail_reasons {
  3330. QCA_ROAM_FAIL_REASON_NONE = 0,
  3331. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  3332. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  3333. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  3334. QCA_ROAM_FAIL_REASON_HOST = 4,
  3335. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  3336. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  3337. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  3338. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  3339. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  3340. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  3341. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  3342. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  3343. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  3344. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  3345. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  3346. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  3347. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  3348. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  3349. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  3350. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  3351. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  3352. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  3353. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  3354. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  3355. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  3356. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  3357. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  3358. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  3359. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  3360. QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
  3361. };
  3362. /*
  3363. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  3364. * invoke fail reasons. This enum value is used in
  3365. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  3366. *
  3367. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  3368. * in roam invoke command.
  3369. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  3370. * enabled.
  3371. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  3372. * length is invalid.
  3373. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  3374. * in progress.
  3375. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  3376. * of the AP in the roam invoke command to firmware. This reason is sent by the
  3377. * firmware when the given AP is configured to be ignored or SSID/security
  3378. * does not match.
  3379. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  3380. * firmware internal reasons.
  3381. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  3382. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  3383. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  3384. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  3385. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  3386. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  3387. */
  3388. enum qca_vendor_roam_invoke_fail_reasons {
  3389. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  3390. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  3391. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  3392. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  3393. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  3394. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  3395. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  3396. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  3397. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  3398. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  3399. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  3400. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  3401. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  3402. };
  3403. /**
  3404. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  3405. *
  3406. * Each attribute carries a weightage in percentage (%).
  3407. *
  3408. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  3409. * Represents the weightage to be given for the RSSI selection
  3410. * criteria among other parameters.
  3411. *
  3412. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  3413. * Represents the weightage to be given for the rate selection
  3414. * criteria among other parameters.
  3415. *
  3416. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  3417. * Represents the weightage to be given for the band width selection
  3418. * criteria among other parameters.
  3419. *
  3420. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  3421. * Represents the weightage to be given for the band selection
  3422. * criteria among other parameters.
  3423. *
  3424. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  3425. * Represents the weightage to be given for the NSS selection
  3426. * criteria among other parameters.
  3427. *
  3428. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  3429. * Represents the weightage to be given for the channel congestion
  3430. * selection criteria among other parameters.
  3431. *
  3432. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  3433. * Represents the weightage to be given for the beamforming selection
  3434. * criteria among other parameters.
  3435. *
  3436. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  3437. * Represents the weightage to be given for the OCE selection
  3438. * criteria among other parameters.
  3439. */
  3440. enum qca_vendor_attr_roam_candidate_selection_criteria {
  3441. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  3442. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  3443. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  3444. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  3445. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  3446. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  3447. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  3448. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  3449. /* keep last */
  3450. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  3451. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  3452. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  3453. };
  3454. /**
  3455. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  3456. * The following attributes are used to set/get/clear the respective
  3457. * configurations to/from the driver.
  3458. * For the get, the attribute for the configuration to be queried shall
  3459. * carry any of its acceptable values to the driver. In return, the driver
  3460. * shall send the configured values within the same attribute to the user
  3461. * space.
  3462. *
  3463. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  3464. * Signifies to enable/disable roam control in driver.
  3465. * 1-enable, 0-disable
  3466. * Enable: Mandates the driver to do the further roams using the
  3467. * configuration parameters set through
  3468. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  3469. * Disable: Disables the driver/firmware roaming triggered through
  3470. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  3471. * expected to continue with the default configurations.
  3472. *
  3473. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  3474. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  3475. * Roam control status is obtained through this attribute.
  3476. *
  3477. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  3478. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  3479. * is to be cleared in the driver.
  3480. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  3481. * and shall be ignored if used with other sub commands.
  3482. * If this attribute is specified along with subcmd
  3483. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  3484. * all other attributes, if there are any.
  3485. * If this attribute is not specified when the subcmd
  3486. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  3487. * clear the data corresponding to the attributes specified.
  3488. *
  3489. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  3490. * list of frequencies and its type, represented by
  3491. * enum qca_vendor_attr_scan_freq_list_scheme.
  3492. * Frequency list and its type are mandatory for this attribute to set
  3493. * the frequencies.
  3494. * Frequency type is mandatory for this attribute to get the frequencies
  3495. * and the frequency list is obtained through
  3496. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  3497. * Frequency list type is mandatory for this attribute to clear the
  3498. * frequencies.
  3499. *
  3500. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  3501. * Carries the value of scan period in seconds to set.
  3502. * The value of scan period is obtained with the same attribute for get.
  3503. * Clears the scan period in the driver when specified with clear command.
  3504. * Scan period is the idle time in seconds between each subsequent
  3505. * channel scans.
  3506. *
  3507. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  3508. * Carries the value of full scan period in seconds to set.
  3509. * The value of full scan period is obtained with the same attribute for
  3510. * get.
  3511. * Clears the full scan period in the driver when specified with clear
  3512. * command. Full scan period is the idle period in seconds between two
  3513. * successive full channel roam scans.
  3514. *
  3515. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  3516. * Carries a bitmap of the roam triggers specified in
  3517. * enum qca_vendor_roam_triggers.
  3518. * The driver shall enable roaming by enabling corresponding roam triggers
  3519. * based on the trigger bits sent with this attribute.
  3520. * If this attribute is not configured, the driver shall proceed with
  3521. * default behavior.
  3522. * The bitmap configured is obtained with the same attribute for get.
  3523. * Clears the bitmap configured in driver when specified with clear
  3524. * command.
  3525. *
  3526. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3527. * weightage in percentage (%) to be given for each selection criteria.
  3528. * Different roam candidate selection criteria are represented by
  3529. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3530. * The driver shall select the roam candidate based on corresponding
  3531. * candidate selection scores sent.
  3532. *
  3533. * An empty nested attribute is used to indicate that no specific
  3534. * preference score/criteria is configured (i.e., to disable this mechanism
  3535. * in the set case and to show that the mechanism is disabled in the get
  3536. * case).
  3537. *
  3538. * Userspace can send multiple attributes out of this enum to the driver.
  3539. * Since this attribute represents the weight/percentage of preference for
  3540. * the respective selection criteria, it is preferred to configure 100%
  3541. * total weightage. The value in each attribute or cumulative weight of the
  3542. * values in all the nested attributes should not exceed 100%. The driver
  3543. * shall reject such configuration.
  3544. *
  3545. * If the weights configured through this attribute are less than 100%,
  3546. * the driver shall honor the weights (x%) passed for the corresponding
  3547. * selection criteria and choose/distribute rest of the weight (100-x)%
  3548. * for the other selection criteria, based on its internal logic.
  3549. *
  3550. * The selection criteria configured is obtained with the same
  3551. * attribute for get.
  3552. *
  3553. * Clears the selection criteria configured in the driver when specified
  3554. * with clear command.
  3555. *
  3556. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3557. * Represents value of scan frequency scheme from
  3558. * enum qca_roam_scan_scheme.
  3559. *
  3560. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3561. * signifying the RSSI threshold of the current connected AP, indicating
  3562. * the driver to trigger roam only when the current connected AP's RSSI
  3563. * is lesser than this threshold.
  3564. *
  3565. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3566. * signifying the RSSI threshold of the candidate AP, indicating
  3567. * the driver to trigger roam only to the candidate AP with RSSI
  3568. * better than this threshold. If RSSI thresholds for candidate APs found
  3569. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3570. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3571. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3572. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3573. * will take precedence over the value configured using
  3574. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3575. *
  3576. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3577. * user triggered reason code to be sent to the AP in response to AP's
  3578. * request to trigger the roam if the roaming cannot be triggered.
  3579. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3580. *
  3581. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3582. * Carries a bitmap of the roam triggers specified in
  3583. * enum qca_vendor_roam_triggers.
  3584. * Represents the roam triggers for which the specific scan scheme from
  3585. * enum qca_roam_scan_scheme has to be applied.
  3586. * It's an optional attribute. If this attribute is not configured, but
  3587. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3588. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3589. * all the roams.
  3590. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3591. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3592. * driver shall proceed with the default behavior.
  3593. *
  3594. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3595. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3596. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3597. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3598. * threshold. Optional attribute. If this attribute is not included, then
  3599. * threshold value specified by the
  3600. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3601. *
  3602. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3603. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3604. * band. The driver/firmware shall trigger roaming to the candidate AP
  3605. * found in 5GHz band only if it's RSSI value is better than this
  3606. * threshold. Optional attribute. If this attribute is not included, then
  3607. * threshold value specified by the
  3608. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3609. *
  3610. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3611. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3612. * band. The driver/firmware shall trigger roaming to the candidate AP
  3613. * found in 6GHz band only if it's RSSI value is better than this
  3614. * threshold. Optional attribute. If this attribute is not included, then
  3615. * threshold value specified by the
  3616. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3617. *
  3618. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3619. * Carries bitmask value of bits from &enum qca_set_band and represents
  3620. * all the bands in which roaming is allowed. The configuration is valid
  3621. * until next disconnection. If this attribute is not present, the
  3622. * existing configuration shall be used. By default, roaming is allowed
  3623. * on all bands supported by local device. When the value is set to
  3624. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3625. *
  3626. * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
  3627. * Optional parameter. RX link speed threshold to disable roaming.
  3628. * If the current RX link speed is above the threshold, roaming is not
  3629. * needed. If this attribute is not configured, or if it is set to 0, the
  3630. * driver will not consider the RX link speed in the roaming decision.
  3631. *
  3632. * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
  3633. * Optional parameter. This configuration delays hand-off (in msec) by the
  3634. * specified duration to receive pending rx frames from current BSS.
  3635. *
  3636. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
  3637. * value.
  3638. * During the roam scan, if there are no desired APs found in the partial
  3639. * frequency list, an immediate full scan on all the supported frequencies
  3640. * is initiated as a fallback. This flag controls the frequency list
  3641. * creation for the full scan on the following lines.
  3642. * 1 - Full scan to exclude the frequencies that were already scanned by
  3643. * the previous partial scan.
  3644. * 0 - Full scan to include all the supported frequencies irrespective of
  3645. * the ones part of the earlier partial scan.
  3646. * If this flag is not specified, a full scan shall include all the
  3647. * supported frequencies irrespective of the ones part of an earlier
  3648. * partial scan.
  3649. *
  3650. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
  3651. * value.
  3652. * During the roam scan, if there are no desired APs found in the partial
  3653. * frequency list, an immediate full scan on all the supported frequencies
  3654. * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
  3655. * frequencies, including all PSC frequencies by default. This attribute
  3656. * controls the inclusion of the 6 GHz PSC frequencies for the full scan
  3657. * as following.
  3658. * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
  3659. * prior discovery of any 6 GHz frequency support in the environment.
  3660. * This discovery can happen through a prior RNR, 11k neighbor
  3661. * request, 11v BTM request, host scan, etc.
  3662. * 0 - Default behavior. Full scan to include all the supported 6 GHz
  3663. * PSC frequencies regardless of whether 6 GHz BSSs have been
  3664. * discovered.
  3665. * The default behavior if this flag is not specified is to include all
  3666. * the supported 6 GHz PSC frequencies in the roam full scan.
  3667. */
  3668. enum qca_vendor_attr_roam_control {
  3669. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3670. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3671. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3672. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3673. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3674. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3675. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3676. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3677. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3678. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3679. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3680. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3681. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3682. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3683. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3684. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3685. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3686. QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
  3687. QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
  3688. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
  3689. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
  3690. /* keep last */
  3691. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3692. QCA_ATTR_ROAM_CONTROL_MAX =
  3693. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3694. };
  3695. /**
  3696. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3697. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3698. *
  3699. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3700. * Represents the different roam sub commands referred by
  3701. * enum qca_wlan_vendor_roaming_subcmd.
  3702. *
  3703. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3704. * Represents the Request ID for the specific set of commands.
  3705. * This also helps to map specific set of commands to the respective
  3706. * ID / client. e.g., helps to identify the user entity configuring the
  3707. * Blacklist BSSID and accordingly clear the respective ones with the
  3708. * matching ID.
  3709. *
  3710. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3711. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3712. *
  3713. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3714. * to carry the list of Whitelist SSIDs.
  3715. *
  3716. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3717. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3718. * represent the list of SSIDs to which the firmware/driver can consider
  3719. * to roam to.
  3720. *
  3721. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3722. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3723. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3724. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3725. *
  3726. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3727. * value, RSSI threshold above which 5GHz RSSI is favored.
  3728. *
  3729. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3730. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3731. *
  3732. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3733. * value, factor by which 5GHz RSSI is boosted.
  3734. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3735. *
  3736. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3737. * value, factor by which 5GHz RSSI is penalized.
  3738. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3739. *
  3740. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3741. * value, maximum boost that can be applied to a 5GHz RSSI.
  3742. *
  3743. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3744. * value, boost applied to current BSSID to ensure the currently
  3745. * associated BSSID is favored so as to prevent ping-pong situations.
  3746. *
  3747. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3748. * value, RSSI below which "Alert" roam is enabled.
  3749. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3750. * because the RSSI is low, or because many successive beacons have been
  3751. * lost or other bad link conditions.
  3752. *
  3753. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3754. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3755. * firmware is hunting for a better BSSID or white listed SSID even though
  3756. * the RSSI of the link is good. The parameters enabling the roaming are
  3757. * configured through the PARAM_A_BAND_XX attrbutes.
  3758. *
  3759. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3760. * represents the BSSIDs preferred over others while evaluating them
  3761. * for the roaming.
  3762. *
  3763. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3764. * 32-bit value. Represents the number of preferred BSSIDs set.
  3765. *
  3766. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3767. * address representing the BSSID to be preferred.
  3768. *
  3769. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3770. * 32-bit value, representing the modifier to be applied to the RSSI of
  3771. * the BSSID for the purpose of comparing it with other roam candidate.
  3772. *
  3773. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3774. * represents the BSSIDs to get blacklisted for roaming.
  3775. *
  3776. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3777. * 32-bit value, represents the number of blacklisted BSSIDs.
  3778. *
  3779. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3780. * address representing the Blacklisted BSSID.
  3781. *
  3782. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3783. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3784. * select this BSSID in the worst case (when no other BSSIDs are better).
  3785. *
  3786. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3787. * set/get/clear the roam control config as
  3788. * defined @enum qca_vendor_attr_roam_control.
  3789. *
  3790. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3791. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3792. */
  3793. enum qca_wlan_vendor_attr_roaming_config_params {
  3794. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3795. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3796. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3797. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3798. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3799. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3800. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3801. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3802. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3803. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3804. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3805. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3806. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3807. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3808. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3809. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3810. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3811. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3812. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3813. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3814. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3815. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3816. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3817. /* keep last */
  3818. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3819. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3820. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3821. };
  3822. /**
  3823. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3824. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3825. *
  3826. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3827. * configure the white list SSIDs. These are configured through
  3828. * the following attributes.
  3829. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3830. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3831. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3832. *
  3833. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3834. * configure the Roam params. These parameters are evaluated on the extscan
  3835. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3836. * params.
  3837. *
  3838. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3839. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3840. * to enable/disable Lazy roam.
  3841. *
  3842. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3843. * preference. Contains the attribute
  3844. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3845. * preference.
  3846. *
  3847. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3848. *
  3849. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3850. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3851. * set the same.
  3852. *
  3853. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3854. * roam control config to the driver with the attribute
  3855. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3856. *
  3857. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3858. * roam control config from driver with the attribute
  3859. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3860. * For the get, the attribute for the configuration to be queried shall
  3861. * carry any of its acceptable value to the driver. In return, the driver
  3862. * shall send the configured values within the same attribute to the user
  3863. * space.
  3864. *
  3865. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3866. * roam control config in the driver with the attribute
  3867. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3868. * The driver shall continue with its default roaming behavior when data
  3869. * corresponding to an attribute is cleared.
  3870. */
  3871. enum qca_wlan_vendor_roaming_subcmd {
  3872. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3873. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3874. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3875. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3876. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3877. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3878. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3879. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3880. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3881. };
  3882. /**
  3883. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3884. *
  3885. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3886. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3887. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3888. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3889. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3890. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3891. */
  3892. enum qca_wlan_vendor_attr_get_wifi_info {
  3893. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3894. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3895. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3896. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3897. /* KEEP LAST */
  3898. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3899. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3900. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3901. };
  3902. enum qca_wlan_vendor_attr_logger_results {
  3903. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3904. /*
  3905. * Unsigned 32-bit value; must match the request Id supplied by
  3906. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3907. */
  3908. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3909. /*
  3910. * Unsigned 32-bit value; used to indicate the size of memory
  3911. * dump to be allocated.
  3912. */
  3913. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3914. /* keep last */
  3915. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3916. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3917. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3918. };
  3919. /**
  3920. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3921. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3922. */
  3923. enum qca_wlan_vendor_channel_prop_flags {
  3924. /* Bits 0, 1, 2, and 3 are reserved */
  3925. /* Turbo channel */
  3926. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3927. /* CCK channel */
  3928. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3929. /* OFDM channel */
  3930. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3931. /* 2.4 GHz spectrum channel. */
  3932. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3933. /* 5 GHz spectrum channel */
  3934. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3935. /* Only passive scan allowed */
  3936. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3937. /* Dynamic CCK-OFDM channel */
  3938. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3939. /* GFSK channel (FHSS PHY) */
  3940. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3941. /* Radar found on channel */
  3942. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3943. /* 11a static turbo channel only */
  3944. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3945. /* Half rate channel */
  3946. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3947. /* Quarter rate channel */
  3948. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3949. /* HT 20 channel */
  3950. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3951. /* HT 40 with extension channel above */
  3952. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3953. /* HT 40 with extension channel below */
  3954. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3955. /* HT 40 intolerant */
  3956. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3957. /* VHT 20 channel */
  3958. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  3959. /* VHT 40 with extension channel above */
  3960. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  3961. /* VHT 40 with extension channel below */
  3962. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  3963. /* VHT 80 channel */
  3964. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  3965. /* HT 40 intolerant mark bit for ACS use */
  3966. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  3967. /* Channel temporarily blocked due to noise */
  3968. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  3969. /* VHT 160 channel */
  3970. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  3971. /* VHT 80+80 channel */
  3972. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  3973. /* HE 20 channel */
  3974. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  3975. /* HE 40 with extension channel above */
  3976. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  3977. /* HE 40 with extension channel below */
  3978. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  3979. /* HE 40 intolerant */
  3980. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
  3981. };
  3982. /**
  3983. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  3984. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  3985. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  3986. */
  3987. enum qca_wlan_vendor_channel_prop_flags_2 {
  3988. /* HE 40 intolerant mark bit for ACS use */
  3989. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  3990. /* HE 80 channel */
  3991. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  3992. /* HE 160 channel */
  3993. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  3994. /* HE 80+80 channel */
  3995. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  3996. };
  3997. /**
  3998. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  3999. * each channel. This is used by
  4000. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  4001. */
  4002. enum qca_wlan_vendor_channel_prop_flags_ext {
  4003. /* Radar found on channel */
  4004. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  4005. /* DFS required on channel */
  4006. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  4007. /* DFS required on channel for 2nd band of 80+80 */
  4008. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  4009. /* If channel has been checked for DFS */
  4010. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  4011. /* Excluded in 802.11d */
  4012. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  4013. /* Channel Switch Announcement received on this channel */
  4014. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  4015. /* Ad-hoc is not allowed */
  4016. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  4017. /* Station only channel */
  4018. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  4019. /* DFS radar history for slave device (STA mode) */
  4020. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  4021. /* DFS CAC valid for slave device (STA mode) */
  4022. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  4023. };
  4024. /**
  4025. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  4026. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  4027. * information to start/stop the NUD statistics collection.
  4028. */
  4029. enum qca_attr_nud_stats_set {
  4030. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  4031. /*
  4032. * Flag to start/stop the NUD statistics collection.
  4033. * Start - If included, Stop - If not included
  4034. */
  4035. QCA_ATTR_NUD_STATS_SET_START = 1,
  4036. /* IPv4 address of the default gateway (in network byte order) */
  4037. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  4038. /*
  4039. * Represents the data packet type to be monitored.
  4040. * Host driver tracks the stats corresponding to each data frame
  4041. * represented by these flags.
  4042. * These data packets are represented by
  4043. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  4044. */
  4045. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  4046. /* keep last */
  4047. QCA_ATTR_NUD_STATS_SET_LAST,
  4048. QCA_ATTR_NUD_STATS_SET_MAX =
  4049. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  4050. };
  4051. /**
  4052. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  4053. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4054. * information to start / stop the NUD stats collection.
  4055. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  4056. * Bitmap to Flag to Start / Stop the NUD stats collection
  4057. * Start - If included , Stop - If not included
  4058. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
  4059. * IPv4 address of Default Gateway (in network byte order)
  4060. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4061. * information to start / stop the NUD stats collection.
  4062. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  4063. * Flag to Start / Stop the NUD stats collection
  4064. * Start - If included , Stop - If not included
  4065. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
  4066. * IPv4 address of Default Gateway (in network byte order)
  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_DEST_IPV4: set nud debug stats
  4070. * Flag to Start / Stop the NUD stats collection
  4071. * Start - If included , Stop - If not included
  4072. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
  4073. * IPv4 address of Default Gateway (in network byte order)
  4074. */
  4075. enum qca_attr_connectivity_check_stats_set {
  4076. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  4077. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  4078. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  4079. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  4080. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  4081. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  4082. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  4083. /* keep last */
  4084. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  4085. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  4086. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  4087. };
  4088. /**
  4089. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  4090. * data types for which the stats have to get collected.
  4091. */
  4092. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  4093. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  4094. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  4095. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  4096. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  4097. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  4098. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  4099. * to represent the stats of respective data type.
  4100. */
  4101. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  4102. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  4103. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  4104. };
  4105. enum qca_attr_connectivity_check_stats {
  4106. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  4107. /* Data packet type for which the stats are collected.
  4108. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  4109. */
  4110. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  4111. /* ID corresponding to the DNS frame for which the respective DNS stats
  4112. * are monitored (u32).
  4113. */
  4114. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  4115. /* source / destination port on which the respective proto stats are
  4116. * collected (u32).
  4117. */
  4118. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  4119. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  4120. /* IPv4/IPv6 address for which the destined data packets are
  4121. * monitored. (in network byte order)
  4122. */
  4123. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  4124. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  4125. /* Data packet Request count received from netdev */
  4126. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  4127. /* Data packet Request count sent to lower MAC from upper MAC */
  4128. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  4129. /* Data packet Request count received by lower MAC from upper MAC */
  4130. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  4131. /* Data packet Request count successfully transmitted by the device */
  4132. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  4133. /* Data packet Response count received by lower MAC */
  4134. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  4135. /* Data packet Response count received by upper MAC */
  4136. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  4137. /* Data packet Response count delivered to netdev */
  4138. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  4139. /* Data Packet Response count that are dropped out of order */
  4140. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  4141. /* keep last */
  4142. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  4143. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  4144. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  4145. };
  4146. /**
  4147. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  4148. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  4149. * NUD statistics collected when queried.
  4150. */
  4151. enum qca_attr_nud_stats_get {
  4152. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  4153. /* ARP Request count from netdev */
  4154. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  4155. /* ARP Request count sent to lower MAC from upper MAC */
  4156. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  4157. /* ARP Request count received by lower MAC from upper MAC */
  4158. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  4159. /* ARP Request count successfully transmitted by the device */
  4160. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  4161. /* ARP Response count received by lower MAC */
  4162. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  4163. /* ARP Response count received by upper MAC */
  4164. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  4165. /* ARP Response count delivered to netdev */
  4166. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  4167. /* ARP Response count delivered to netdev */
  4168. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  4169. /*
  4170. * Flag indicating if the station's link to the AP is active.
  4171. * Active Link - If included, Inactive link - If not included
  4172. */
  4173. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  4174. /*
  4175. * Flag indicating if there is any duplicate address detected (DAD).
  4176. * Yes - If detected, No - If not detected.
  4177. */
  4178. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  4179. /*
  4180. * List of Data types for which the stats are requested.
  4181. * This list does not carry ARP stats as they are done by the
  4182. * above attributes. Represented by enum qca_attr_nud_data_stats.
  4183. */
  4184. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  4185. /* keep last */
  4186. QCA_ATTR_NUD_STATS_GET_LAST,
  4187. QCA_ATTR_NUD_STATS_GET_MAX =
  4188. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  4189. };
  4190. enum qca_wlan_btm_candidate_status {
  4191. QCA_STATUS_ACCEPT = 0,
  4192. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  4193. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  4194. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  4195. QCA_STATUS_REJECT_LOW_RSSI = 4,
  4196. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  4197. QCA_STATUS_REJECT_UNKNOWN = 6,
  4198. };
  4199. enum qca_wlan_vendor_attr_btm_candidate_info {
  4200. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  4201. /* 6-byte MAC address representing the BSSID of transition candidate */
  4202. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  4203. /*
  4204. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  4205. * returned by the driver. It says whether the BSSID provided in
  4206. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  4207. * the driver, if not it specifies the reason for rejection.
  4208. * Note that the user-space can overwrite the transition reject reason
  4209. * codes provided by driver based on more information.
  4210. */
  4211. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  4212. /* keep last */
  4213. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  4214. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  4215. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  4216. };
  4217. enum qca_attr_trace_level {
  4218. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  4219. /*
  4220. * Nested array of the following attributes:
  4221. * QCA_ATTR_TRACE_LEVEL_MODULE,
  4222. * QCA_ATTR_TRACE_LEVEL_MASK.
  4223. */
  4224. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  4225. /*
  4226. * Specific QCA host driver module. Please refer to the QCA host
  4227. * driver implementation to get the specific module ID.
  4228. */
  4229. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  4230. /* Different trace level masks represented in the QCA host driver. */
  4231. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  4232. /* keep last */
  4233. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  4234. QCA_ATTR_TRACE_LEVEL_MAX =
  4235. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  4236. };
  4237. /**
  4238. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  4239. * supported features
  4240. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  4241. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  4242. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  4243. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  4244. *
  4245. * enum values are used for NL attributes for data used by
  4246. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  4247. */
  4248. enum qca_wlan_vendor_attr_get_logger_features {
  4249. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  4250. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  4251. /* keep last */
  4252. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  4253. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  4254. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  4255. };
  4256. /**
  4257. * enum qca_wlan_vendor_attr_link_properties - link properties
  4258. *
  4259. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  4260. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  4261. * specify the number of spatial streams negotiated
  4262. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  4263. * to specify negotiated rate flags i.e. ht, vht and channel width
  4264. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  4265. * specify the operating frequency
  4266. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  4267. * (STA / AP ) for the connected link.
  4268. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  4269. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  4270. * address of the peer represented by
  4271. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  4272. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  4273. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  4274. */
  4275. enum qca_wlan_vendor_attr_link_properties {
  4276. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  4277. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  4278. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  4279. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  4280. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  4281. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  4282. /* KEEP LAST */
  4283. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  4284. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  4285. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  4286. };
  4287. /**
  4288. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  4289. *
  4290. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  4291. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  4292. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  4293. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  4294. *
  4295. * enum values are used for NL attributes for data used by
  4296. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  4297. */
  4298. enum qca_wlan_vendor_attr_nd_offload {
  4299. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  4300. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  4301. /* Keep last */
  4302. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  4303. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  4304. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  4305. };
  4306. /**
  4307. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  4308. *
  4309. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  4310. * management offload, a mechanism where the station's firmware
  4311. * does the exchange with the AP to establish the temporal keys
  4312. * after roaming, rather than having the user space wpa_supplicant do it.
  4313. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  4314. * band selection based on channel selection results.
  4315. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  4316. * simultaneous off-channel operations.
  4317. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  4318. * Listen offload; a mechanism where the station's firmware takes care of
  4319. * responding to incoming Probe Request frames received from other P2P
  4320. * Devices whilst in Listen state, rather than having the user space
  4321. * wpa_supplicant do it. Information from received P2P requests are
  4322. * forwarded from firmware to host whenever the host processor wakes up.
  4323. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  4324. * specific features.
  4325. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  4326. * features.
  4327. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  4328. * specific features only. If a Device sets this bit but not the
  4329. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  4330. * this Device may not support all OCE AP functionalities but can support
  4331. * only OCE STA-CFON functionalities.
  4332. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  4333. * managed regulatory.
  4334. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  4335. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  4336. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  4337. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  4338. * and applying thermal configuration through
  4339. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  4340. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  4341. * userspace.
  4342. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  4343. * With Adaptive 11r feature, access points advertise the vendor
  4344. * specific IEs and MDE but do not include FT AKM in the RSNE.
  4345. * The Adaptive 11r supported stations are expected to identify
  4346. * such vendor specific IEs and connect to the AP in FT mode though
  4347. * the profile is configured in non-FT mode.
  4348. * The driver-based SME cases also need to have this support for
  4349. * Adaptive 11r to handle the connection and roaming scenarios.
  4350. * This flag indicates the support for the same to the user space.
  4351. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  4352. * concurrent network sessions on different Wi-Fi Bands. This feature
  4353. * capability is attributed to the hardware's capability to support
  4354. * the same (e.g., DBS).
  4355. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  4356. * responses for the respective TWT operations are asynchronous (separate)
  4357. * event message) from the driver. If not specified, the responses are
  4358. * synchronous (in vendor command reply) to the request. Each TWT
  4359. * operation is specifically mentioned (against its respective)
  4360. * documentation) to support either of these or both modes.
  4361. * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
  4362. * that the driver requires add/del virtual interface path using the
  4363. * generic nl80211 commands for NDP interface create/delete and to
  4364. * register/unregister the netdev instead of creating/deleting the NDP
  4365. * interface using the vendor commands
  4366. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
  4367. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
  4368. * (5.12 version onward), interface creation/deletion is not allowed using
  4369. * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
  4370. * during the register/unregister of netdev. Create and delete NDP
  4371. * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
  4372. * commands respectively if the driver advertises this capability set.
  4373. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
  4374. * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
  4375. * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
  4376. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
  4377. * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
  4378. * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
  4379. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
  4380. * station mode supports secure RTT measurement exchange. If
  4381. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4382. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
  4383. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
  4384. * mode supports secure RTT measurement exchange. If
  4385. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4386. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
  4387. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
  4388. * the device in station mode supports protection of range negotiation and
  4389. * measurement management frames. If
  4390. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4391. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
  4392. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
  4393. * the device in AP mode supports protection of range negotiation and
  4394. * measurement management frames. If
  4395. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4396. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
  4397. * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
  4398. * in AP mode supports configuring allowed frequency list for AP operation
  4399. * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
  4400. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  4401. */
  4402. enum qca_wlan_vendor_features {
  4403. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  4404. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  4405. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  4406. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  4407. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  4408. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  4409. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  4410. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  4411. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  4412. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  4413. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  4414. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  4415. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  4416. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  4417. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  4418. QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
  4419. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
  4420. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
  4421. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
  4422. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
  4423. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
  4424. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
  4425. QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
  4426. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  4427. };
  4428. /**
  4429. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  4430. * conditional channel switch
  4431. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  4432. * value
  4433. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  4434. * frequency list (an array of u32 values in host byte order)
  4435. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  4436. * conditional switch (u32)- 0: Success, Non-zero: Failure
  4437. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  4438. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  4439. */
  4440. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  4441. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  4442. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  4443. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  4444. /* Keep Last */
  4445. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  4446. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  4447. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  4448. };
  4449. /**
  4450. * enum wifi_logger_supported_features - values for supported logger features
  4451. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  4452. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  4453. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  4454. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  4455. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  4456. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  4457. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  4458. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  4459. */
  4460. enum wifi_logger_supported_features {
  4461. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  4462. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  4463. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  4464. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  4465. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  4466. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  4467. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  4468. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  4469. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  4470. };
  4471. /**
  4472. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  4473. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4474. *
  4475. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  4476. * Used with event to notify the primary channel number selected in ACS
  4477. * operation.
  4478. * Note: If both the driver and user-space application supports the 6 GHz band,
  4479. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  4480. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  4481. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4482. * is still used if either of the driver or user space application doesn't
  4483. * support the 6 GHz band.
  4484. *
  4485. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  4486. * Used with event to notify the secondary channel number selected in ACS
  4487. * operation.
  4488. * Note: If both the driver and user-space application supports the 6 GHz band,
  4489. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  4490. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  4491. * To maintain backward compatibility,
  4492. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  4493. * the driver or user space application doesn't support 6 GHz band.
  4494. *
  4495. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  4496. * (a) Used with command to configure hw_mode from
  4497. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  4498. * (b) Also used with event to notify the hw_mode of selected primary channel
  4499. * in ACS operation.
  4500. *
  4501. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  4502. * Used with command to configure ACS operation for HT mode.
  4503. * Disable (flag attribute not present) - HT disabled and
  4504. * Enable (flag attribute present) - HT enabled.
  4505. *
  4506. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  4507. * Used with command to configure ACS operation for HT40 mode.
  4508. * Disable (flag attribute not present) - HT40 disabled and
  4509. * Enable (flag attribute present) - HT40 enabled.
  4510. *
  4511. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  4512. * Used with command to configure ACS operation for VHT mode.
  4513. * Disable (flag attribute not present) - VHT disabled and
  4514. * Enable (flag attribute present) - VHT enabled.
  4515. *
  4516. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  4517. * mandatory with event.
  4518. * If specified in command path, ACS operation is configured with the given
  4519. * channel width (in MHz).
  4520. * In event path, specifies the channel width of the primary channel selected.
  4521. *
  4522. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  4523. * Used with command to configure channel list using an array of
  4524. * channel numbers (u8).
  4525. * Note: If both the driver and user-space application supports the 6 GHz band,
  4526. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  4527. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  4528. *
  4529. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  4530. * Used with event to notify the VHT segment 0 center channel number selected in
  4531. * ACS operation.
  4532. * Note: If both the driver and user-space application supports the 6 GHz band,
  4533. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  4534. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  4535. * To maintain backward compatibility,
  4536. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  4537. * the driver or user space application doesn't support the 6 GHz band.
  4538. *
  4539. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  4540. * Used with event to notify the VHT segment 1 center channel number selected in
  4541. * ACS operation.
  4542. * Note: If both the driver and user-space application supports the 6 GHz band,
  4543. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  4544. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  4545. * To maintain backward compatibility,
  4546. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  4547. * the driver or user space application doesn't support the 6 GHz band.
  4548. *
  4549. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  4550. * Used with command to configure the channel list using an array of channel
  4551. * center frequencies in MHz (u32).
  4552. * Note: If both the driver and user-space application supports the 6 GHz band,
  4553. * the driver first parses the frequency list and if it fails to get a frequency
  4554. * list, parses the channel list specified using
  4555. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  4556. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  4557. *
  4558. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  4559. * Used with event to notify the primary channel center frequency (MHz) selected
  4560. * in ACS operation.
  4561. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4562. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  4563. *
  4564. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  4565. * Used with event to notify the secondary channel center frequency (MHz)
  4566. * selected in ACS operation.
  4567. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4568. * includes this attribute along with
  4569. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  4570. *
  4571. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  4572. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  4573. * selected in ACS operation.
  4574. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4575. * includes this attribute along with
  4576. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  4577. *
  4578. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  4579. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  4580. * selected in ACS operation.
  4581. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4582. * includes this attribute along with
  4583. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  4584. *
  4585. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  4586. * Used with command to notify the driver of EDMG request for ACS
  4587. * operation.
  4588. *
  4589. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  4590. * Used with event to notify the EDMG channel number selected in ACS
  4591. * operation.
  4592. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4593. *
  4594. * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
  4595. * Used with event to notify the puncture pattern selected in ACS operation.
  4596. * Encoding for this attribute will follow the convention used in the Disabled
  4597. * Subchannel Bitmap field of the EHT Operation IE.
  4598. *
  4599. * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
  4600. * Used with command to configure ACS operation for EHT mode.
  4601. * Disable (flag attribute not present) - EHT disabled and
  4602. * Enable (flag attribute present) - EHT enabled.
  4603. *
  4604. * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
  4605. * Used with command to configure how older scan can be considered for ACS
  4606. * scoring. In case scan was performed on partial set of channels configured
  4607. * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
  4608. * (in ms), then scan only remaining channels.
  4609. */
  4610. enum qca_wlan_vendor_attr_acs_offload {
  4611. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  4612. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  4613. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  4614. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  4615. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  4616. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  4617. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  4618. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  4619. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  4620. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  4621. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  4622. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  4623. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  4624. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  4625. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  4626. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  4627. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  4628. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  4629. QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
  4630. QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
  4631. QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
  4632. /* keep last */
  4633. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4634. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4635. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4636. };
  4637. /**
  4638. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4639. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4640. *
  4641. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4642. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4643. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4644. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4645. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4646. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4647. */
  4648. enum qca_wlan_vendor_acs_hw_mode {
  4649. QCA_ACS_MODE_IEEE80211B,
  4650. QCA_ACS_MODE_IEEE80211G,
  4651. QCA_ACS_MODE_IEEE80211A,
  4652. QCA_ACS_MODE_IEEE80211AD,
  4653. QCA_ACS_MODE_IEEE80211ANY,
  4654. QCA_ACS_MODE_IEEE80211AX,
  4655. };
  4656. /**
  4657. * enum qca_access_policy - access control policy
  4658. *
  4659. * Access control policy is applied on the configured IE
  4660. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4661. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4662. *
  4663. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4664. *» with the specific configuration (IE) set, i.e. allow all the
  4665. *» connections which do not match the configuration.
  4666. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4667. *» with the specific configuration (IE) set, i.e. deny all the
  4668. *» connections which do not match the configuration.
  4669. */
  4670. enum qca_access_policy {
  4671. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4672. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4673. };
  4674. /**
  4675. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4676. *
  4677. * The valid values for the ignore assoc disallowed
  4678. *
  4679. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4680. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4681. *
  4682. */
  4683. enum qca_ignore_assoc_disallowed {
  4684. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4685. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4686. };
  4687. /* Attributes for data used by
  4688. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4689. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4690. */
  4691. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4692. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4693. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4694. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4695. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4696. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4697. enum qca_wlan_vendor_attr_config {
  4698. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4699. /*
  4700. * Unsigned 32-bit value to set the DTIM period.
  4701. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4702. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4703. * DTIM beacons.
  4704. */
  4705. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  4706. /*
  4707. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4708. * used to calculate statistics like average the TSF offset or average
  4709. * number of frame leaked.
  4710. * For instance, upon Beacon frame reception:
  4711. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4712. * For instance, when evaluating leaky APs:
  4713. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4714. */
  4715. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4716. /*
  4717. * Unsigned 32-bit value to configure guard time, i.e., when
  4718. * implementing IEEE power management based on frame control PM bit, how
  4719. * long the driver waits before shutting down the radio and after
  4720. * receiving an ACK frame for a Data frame with PM bit set.
  4721. */
  4722. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4723. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4724. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4725. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4726. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4727. /*
  4728. * Unsigned 32-bit value to configure the number of continuous
  4729. * Beacon Miss which shall be used by the firmware to penalize
  4730. * the RSSI.
  4731. */
  4732. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4733. /*
  4734. * Unsigned 8-bit value to configure the channel avoidance indication
  4735. * behavior. Firmware to send only one indication and ignore duplicate
  4736. * indications when set to avoid multiple Apps wakeups.
  4737. */
  4738. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4739. /*
  4740. * 8-bit unsigned value to configure the maximum TX MPDU for
  4741. * aggregation.
  4742. */
  4743. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4744. /*
  4745. * 8-bit unsigned value to configure the maximum RX MPDU for
  4746. * aggregation.
  4747. */
  4748. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4749. /*
  4750. * 8-bit unsigned value to configure the Non aggregate/11g sw
  4751. * retry threshold (0 disable, 31 max).
  4752. */
  4753. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4754. /*
  4755. * 8-bit unsigned value to configure the aggregate sw
  4756. * retry threshold (0 disable, 31 max).
  4757. */
  4758. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4759. /*
  4760. * 8-bit unsigned value to configure the MGMT frame
  4761. * retry threshold (0 disable, 31 max).
  4762. */
  4763. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4764. /*
  4765. * 8-bit unsigned value to configure the CTRL frame
  4766. * retry threshold (0 disable, 31 max).
  4767. */
  4768. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4769. /*
  4770. * 8-bit unsigned value to configure the propagation delay for
  4771. * 2G/5G band (0~63, units in us)
  4772. */
  4773. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4774. /*
  4775. * Unsigned 32-bit value to configure the number of unicast TX fail
  4776. * packet count. The peer is disconnected once this threshold is
  4777. * reached.
  4778. */
  4779. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4780. /*
  4781. * Attribute used to set scan default IEs to the driver.
  4782. *
  4783. * These IEs can be used by scan operations that will be initiated by
  4784. * the driver/firmware.
  4785. *
  4786. * For further scan requests coming to the driver, these IEs should be
  4787. * merged with the IEs received along with scan request coming to the
  4788. * driver. If a particular IE is present in the scan default IEs but not
  4789. * present in the scan request, then that IE should be added to the IEs
  4790. * sent in the Probe Request frames for that scan request.
  4791. */
  4792. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4793. /* Unsigned 32-bit attribute for generic commands */
  4794. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4795. /* Unsigned 32-bit value attribute for generic commands */
  4796. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4797. /* Unsigned 32-bit data attribute for generic command response */
  4798. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4799. /*
  4800. * Unsigned 32-bit length attribute for
  4801. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4802. */
  4803. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4804. /*
  4805. * Unsigned 32-bit flags attribute for
  4806. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4807. */
  4808. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4809. /*
  4810. * Unsigned 32-bit, defining the access policy.
  4811. * See enum qca_access_policy. Used with
  4812. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4813. */
  4814. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4815. /*
  4816. * Sets the list of full set of IEs for which a specific access policy
  4817. * has to be applied. Used along with
  4818. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4819. * Zero length payload can be used to clear this access constraint.
  4820. */
  4821. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4822. /*
  4823. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4824. * corresponding configurations are applied. If the interface index is
  4825. * not specified, the configurations are attributed to the respective
  4826. * wiphy.
  4827. */
  4828. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4829. /*
  4830. * 8-bit unsigned value to trigger QPower:
  4831. * 1-Enable, 0-Disable
  4832. */
  4833. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4834. /*
  4835. * 8-bit unsigned value to configure the driver and below layers to
  4836. * ignore the assoc disallowed set by APs while connecting
  4837. * 1-Ignore, 0-Don't ignore
  4838. */
  4839. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4840. /*
  4841. * 32-bit unsigned value to trigger antenna diversity features:
  4842. * 1-Enable, 0-Disable
  4843. */
  4844. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4845. /* 32-bit unsigned value to configure specific chain antenna */
  4846. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4847. /*
  4848. * 32-bit unsigned value to trigger cycle selftest
  4849. * 1-Enable, 0-Disable
  4850. */
  4851. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4852. /*
  4853. * 32-bit unsigned to configure the cycle time of selftest
  4854. * the unit is micro-second
  4855. */
  4856. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4857. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4858. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4859. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4860. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4861. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4862. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4863. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4864. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4865. /* 6-byte MAC address to point out the specific peer */
  4866. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
  4867. /* 32-bit unsigned value to set window size for specific peer */
  4868. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4869. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4870. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4871. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4872. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4873. /*
  4874. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4875. * station device while in disconnect state. The attribute use the
  4876. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4877. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4878. * 10 MHz channel width, the station will not connect to a BSS using 20
  4879. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4880. * clear this constraint.
  4881. */
  4882. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4883. /*
  4884. * 32-bit unsigned value to configure the propagation absolute delay
  4885. * for 2G/5G band (units in us)
  4886. */
  4887. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4888. /* 32-bit unsigned value to set probe period */
  4889. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4890. /* 32-bit unsigned value to set stay period */
  4891. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4892. /* 32-bit unsigned value to set snr diff */
  4893. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4894. /* 32-bit unsigned value to set probe dwell time */
  4895. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4896. /* 32-bit unsigned value to set mgmt snr weight */
  4897. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4898. /* 32-bit unsigned value to set data snr weight */
  4899. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4900. /* 32-bit unsigned value to set ack snr weight */
  4901. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4902. /*
  4903. * 32-bit unsigned value to configure the listen interval.
  4904. * This is in units of beacon intervals. This configuration alters
  4905. * the negotiated listen interval with the AP during the connection.
  4906. * It is highly recommended to configure a value less than or equal to
  4907. * the one negotiated during the association. Configuring any greater
  4908. * value can have adverse effects (frame loss, AP disassociating STA,
  4909. * etc.).
  4910. */
  4911. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4912. /*
  4913. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4914. * disable operations that would cause the AP/GO to leave its operating
  4915. * channel.
  4916. *
  4917. * This will restrict the scans to the AP/GO operating channel and the
  4918. * channels of the other band, if DBS is supported.A STA/CLI interface
  4919. * brought up after this setting is enabled, will be restricted to
  4920. * connecting to devices only on the AP/GO interface's operating channel
  4921. * or on the other band in DBS case. P2P supported channel list is
  4922. * modified, to only include AP interface's operating-channel and the
  4923. * channels of the other band if DBS is supported.
  4924. *
  4925. * These restrictions are only applicable as long as the AP/GO interface
  4926. * is alive. If the AP/GO interface is brought down then this
  4927. * setting/restriction is forgotten.
  4928. *
  4929. * If this variable is set on an AP/GO interface while a multi-channel
  4930. * concurrent session is active, it has no effect on the operation of
  4931. * the current interfaces, other than restricting the scan to the AP/GO
  4932. * operating channel and the other band channels if DBS is supported.
  4933. * However, if the STA is brought down and restarted then the new STA
  4934. * connection will either be formed on the AP/GO channel or on the
  4935. * other band in a DBS case. This is because of the scan being
  4936. * restricted on these channels as mentioned above.
  4937. *
  4938. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  4939. */
  4940. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  4941. /*
  4942. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  4943. * on an interface.
  4944. * 1 - Enable , 0 - Disable.
  4945. */
  4946. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  4947. /*
  4948. * 8 bit unsigned value to globally enable/disable scan
  4949. * 1 - Enable, 0 - Disable.
  4950. */
  4951. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  4952. /* 8-bit unsigned value to set the total beacon miss count */
  4953. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  4954. /*
  4955. * Unsigned 32-bit value to configure the number of continuous
  4956. * Beacon Miss which shall be used by the firmware to penalize
  4957. * the RSSI for BTC.
  4958. */
  4959. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  4960. /*
  4961. * 8-bit unsigned value to configure the driver and below layers to
  4962. * enable/disable all fils features.
  4963. * 0-enable, 1-disable
  4964. */
  4965. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  4966. /* 16-bit unsigned value to configure the level of WLAN latency
  4967. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  4968. */
  4969. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  4970. /*
  4971. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  4972. * the connect interface. Exclusively used for the scenarios where the
  4973. * device is used as a test bed device with special functionality and
  4974. * not recommended for production. This helps driver to not validate the
  4975. * RSNE passed from user space and thus allow arbitrary IE data to be
  4976. * used for testing purposes.
  4977. * 1-enable, 0-disable.
  4978. * Applications set/reset this configuration. If not reset, this
  4979. * parameter remains in use until the driver is unloaded.
  4980. */
  4981. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  4982. /*
  4983. * 8-bit unsigned value to trigger green Tx power saving.
  4984. * 1-Enable, 0-Disable
  4985. */
  4986. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  4987. /*
  4988. * Attribute to configure disconnect IEs to the driver.
  4989. * This carries an array of unsigned 8-bit characters.
  4990. *
  4991. * If this is configured, driver shall fill the IEs in disassoc/deauth
  4992. * frame.
  4993. * These IEs are expected to be considered only for the next
  4994. * immediate disconnection (disassoc/deauth frame) originated by
  4995. * the DUT, irrespective of the entity (user space/driver/firmware)
  4996. * triggering the disconnection.
  4997. * The host drivers are not expected to use the IEs set through
  4998. * this interface for further disconnections after the first immediate
  4999. * disconnection initiated post the configuration.
  5000. * If the IEs are also updated through cfg80211 interface (after the
  5001. * enhancement to cfg80211_disconnect), host driver is expected to
  5002. * take the union of IEs from both of these interfaces and send in
  5003. * further disassoc/deauth frames.
  5004. */
  5005. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  5006. /* 8-bit unsigned value for ELNA bypass.
  5007. * 0 - Disable eLNA bypass.
  5008. * 1 - Enable eLNA bypass.
  5009. * 2 - Reset eLNA bypass configuration, the driver should
  5010. * revert to the default configuration of eLNA bypass.
  5011. */
  5012. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  5013. /* 8-bit unsigned value. This attribute enables/disables the host driver
  5014. * to send the Beacon Report response with failure reason for the
  5015. * scenarios where STA cannot honor the Beacon report request from AP.
  5016. * 1-Enable, 0-Disable.
  5017. */
  5018. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  5019. /* 8-bit unsigned value. This attribute enables/disables the host driver
  5020. * to send roam reason information in the reassociation request to the
  5021. * AP. 1-Enable, 0-Disable.
  5022. */
  5023. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  5024. /* 32-bit unsigned value to configure different PHY modes to the
  5025. * driver/firmware. The possible values are defined in
  5026. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  5027. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  5028. * the driver.
  5029. */
  5030. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  5031. /* 8-bit unsigned value to configure the maximum supported channel width
  5032. * for STA mode. If this value is configured when STA is in connected
  5033. * state, it should not exceed the negotiated channel width. If it is
  5034. * configured when STA is in disconnected state, the configured value
  5035. * will take effect for the next immediate connection.
  5036. * Possible values are:
  5037. * NL80211_CHAN_WIDTH_20
  5038. * NL80211_CHAN_WIDTH_40
  5039. * NL80211_CHAN_WIDTH_80
  5040. * NL80211_CHAN_WIDTH_80P80
  5041. * NL80211_CHAN_WIDTH_160
  5042. */
  5043. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  5044. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  5045. * This attribute is only applicable for STA mode. When dynamic
  5046. * bandwidth adjustment is disabled, STA will use static channel width
  5047. * the value of which is negotiated during connection.
  5048. * 1-enable (default), 0-disable
  5049. */
  5050. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  5051. /* 8-bit unsigned value to configure the maximum number of subframes of
  5052. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5053. * it is decided by hardware.
  5054. */
  5055. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  5056. /* 8-bit unsigned value to configure the maximum number of subframes of
  5057. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5058. * it is decided by hardware.
  5059. */
  5060. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  5061. /* 8-bit unsigned value. This attribute is used to dynamically
  5062. * enable/disable the LDPC capability of the device. When configured in
  5063. * the disconnected state, the updated configuration will be considered
  5064. * for the immediately following connection attempt. If this
  5065. * configuration is modified while the device is in the connected state,
  5066. * the LDPC TX will be updated with this configuration immediately,
  5067. * while the LDPC RX configuration update will take place starting from
  5068. * the subsequent association attempt.
  5069. * 1-Enable, 0-Disable.
  5070. */
  5071. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  5072. /* 8-bit unsigned value. This attribute is used to dynamically
  5073. * enable/disable the TX STBC capability of the device. When configured
  5074. * in the disconnected state, the updated configuration will be
  5075. * considered for the immediately following connection attempt. If the
  5076. * connection is formed with TX STBC enabled and if this configuration
  5077. * is disabled during that association, the TX will be impacted
  5078. * immediately. Further connection attempts will disable TX STBC.
  5079. * However, enabling the TX STBC for a connected session with disabled
  5080. * capability is not allowed and will fail.
  5081. * 1-Enable, 0-Disable.
  5082. */
  5083. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  5084. /* 8-bit unsigned value. This attribute is used to dynamically
  5085. * enable/disable the RX STBC capability of the device. When configured
  5086. * in the disconnected state, the updated configuration will be
  5087. * considered for the immediately following connection attempt. If the
  5088. * configuration is modified in the connected state, there will be no
  5089. * impact for the current association, but further connection attempts
  5090. * will use the updated configuration.
  5091. * 1-Enable, 0-Disable.
  5092. */
  5093. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  5094. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5095. * the number of spatial streams. When configured in the disconnected
  5096. * state, the updated configuration will be considered for the
  5097. * immediately following connection attempt. If the NSS is updated after
  5098. * the connection, the updated NSS value is notified to the peer using
  5099. * the Operating Mode Notification/Spatial Multiplexing Power Save
  5100. * frame. The updated NSS value after the connection shall not be
  5101. * greater than the one negotiated during the connection. Any such
  5102. * higher value configuration shall be returned with a failure.
  5103. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  5104. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  5105. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  5106. * configure the asymmetric NSS configuration (such as 1X2).
  5107. */
  5108. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  5109. /*
  5110. * 8-bit unsigned value to trigger Optimized Power Management:
  5111. * 1-Enable, 0-Disable
  5112. */
  5113. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  5114. /* 8-bit unsigned value. This attribute takes the QOS/access category
  5115. * value represented by the enum qca_wlan_ac_type and expects the driver
  5116. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  5117. * is invalid for this attribute. This will override the DSCP value
  5118. * configured in the frame with the intention to only upgrade the QOS.
  5119. * That said, it is not intended to downgrade the QOS for the frames.
  5120. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  5121. * to disable.
  5122. *
  5123. * If only UDP frames of BE or BK access category needs to be upgraded
  5124. * without changing the access category of VO or VI UDP frames, refer to
  5125. * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
  5126. *
  5127. * This attribute is not recommended to be used as it blindly forces all
  5128. * UDP packets to a higher access category which could impact the
  5129. * traffic pattern of all apps using UDP and can cause unknown behavior.
  5130. */
  5131. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  5132. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5133. * the number of chains to be used for transmitting data. This
  5134. * configuration is allowed only when in connected state and will be
  5135. * effective until disconnected. The driver rejects this configuration
  5136. * if the number of spatial streams being used in the current connection
  5137. * cannot be supported by this configuration.
  5138. */
  5139. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  5140. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5141. * the number of chains to be used for receiving data. This
  5142. * configuration is allowed only when in connected state and will be
  5143. * effective until disconnected. The driver rejects this configuration
  5144. * if the number of spatial streams being used in the current connection
  5145. * cannot be supported by this configuration.
  5146. */
  5147. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  5148. /* 8-bit unsigned value to configure ANI setting type.
  5149. * See &enum qca_wlan_ani_setting for possible values.
  5150. */
  5151. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  5152. /* 32-bit signed value to configure ANI level. This is used when
  5153. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  5154. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  5155. * is invalid, the driver will return a failure.
  5156. */
  5157. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  5158. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5159. * the number of spatial streams used for transmitting the data. When
  5160. * configured in the disconnected state, the configured value will
  5161. * be considered for the following connection attempt.
  5162. * If the NSS is updated after the connection, the updated NSS value
  5163. * is notified to the peer using the Operating Mode Notification/Spatial
  5164. * Multiplexing Power Save frame.
  5165. * The TX NSS value configured after the connection shall not be greater
  5166. * than the value negotiated during the connection. Any such higher
  5167. * value configuration shall be treated as invalid configuration by
  5168. * the driver. This attribute shall be configured along with
  5169. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  5170. * configuration (such as 2X2 or 1X1) or the asymmetric
  5171. * configuration (such as 1X2).
  5172. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5173. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  5174. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  5175. */
  5176. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  5177. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5178. * the number of spatial streams used for receiving the data. When
  5179. * configured in the disconnected state, the configured value will
  5180. * be considered for the following connection attempt.
  5181. * If the NSS is updated after the connection, the updated NSS value
  5182. * is notified to the peer using the Operating Mode Notification/Spatial
  5183. * Multiplexing Power Save frame.
  5184. * The RX NSS value configured after the connection shall not be greater
  5185. * than the value negotiated during the connection. Any such higher
  5186. * value configuration shall be treated as invalid configuration by
  5187. * the driver. This attribute shall be configured along with
  5188. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  5189. * configuration (such as 2X2 or 1X1) or the asymmetric
  5190. * configuration (such as 1X2).
  5191. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5192. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  5193. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  5194. */
  5195. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  5196. /*
  5197. * 8-bit unsigned value. This attribute, when set, indicates whether the
  5198. * specified interface is the primary STA interface when there are more
  5199. * than one STA interfaces concurrently active.
  5200. *
  5201. * This configuration helps the firmware/hardware to support certain
  5202. * features (e.g., roaming) on this primary interface, if the same
  5203. * cannot be supported on the concurrent STA interfaces simultaneously.
  5204. *
  5205. * This configuration is only applicable for a single STA interface on
  5206. * a device and gives the priority for it only over other concurrent STA
  5207. * interfaces.
  5208. *
  5209. * If the device is a multi wiphy/soc, this configuration applies to a
  5210. * single STA interface across the wiphys.
  5211. *
  5212. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  5213. */
  5214. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  5215. /*
  5216. * 8-bit unsigned value. This attribute can be used to configure the
  5217. * driver to enable/disable FT-over-DS feature. Possible values for
  5218. * this attribute are 1-Enable and 0-Disable.
  5219. */
  5220. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  5221. /*
  5222. * 8-bit unsigned value. This attribute can be used to configure the
  5223. * firmware to enable/disable ARP/NS offload feature. Possible values
  5224. * for this attribute are 0-Disable and 1-Enable.
  5225. *
  5226. * This attribute is only applicable for STA/P2P-Client interface,
  5227. * and is optional, default behavior is APR/NS offload Enable.
  5228. *
  5229. * This attribute can be set in disconncted and connected state, and
  5230. * will restore to default behavior if interface is closed.
  5231. */
  5232. QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
  5233. /*
  5234. * 8-bit unsigned value. This attribute can be used to configure the
  5235. * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
  5236. * for this attribute are defined in the enum qca_dbam_config.
  5237. */
  5238. QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
  5239. /* 8-bit unsigned value. This attribute takes the QoS/access category
  5240. * value represented by the enum qca_wlan_ac_type and expects the driver
  5241. * to upgrade the UDP frames of BE or BK access category to this access
  5242. * category. This attribute will not modify UDP frames of VO or VI
  5243. * access category. The value of QCA_WLAN_AC_ALL is invalid for this
  5244. * attribute.
  5245. *
  5246. * This will override the DSCP value configured in the frame with the
  5247. * intention to only upgrade the access category. That said, it is not
  5248. * intended to downgrade the access category for the frames.
  5249. * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
  5250. * disabled, as BK is of the lowest priority and an upgrade to it does
  5251. * not result in any changes for the frames.
  5252. *
  5253. * This attribute behavior is similar to
  5254. * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
  5255. * only UDP frames of BE or BK access category are upgraded and not
  5256. * UDP frames of VI or VO access category.
  5257. *
  5258. * This attribute is not recommended to be used as it blindly forces all
  5259. * UDP packets of BE or BK access category to a higher access category
  5260. * which could impact the traffic pattern of all apps using UDP and can
  5261. * cause unknown behavior.
  5262. */
  5263. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
  5264. /* 8-bit unsigned value to configure the driver to enable/disable the
  5265. * periodic sounding for Tx beamformer functionality. The default
  5266. * behavior uses algorithm to do sounding based on packet stats.
  5267. *
  5268. * 0 - Default behavior.
  5269. * 1 - Enable the periodic sounding for Tx beamformer.
  5270. * This attribute is used for testing purposes.
  5271. */
  5272. QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
  5273. /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
  5274. * Userspace sends this information to driver/firmware to configure
  5275. * wfc state. Driver/Firmware uses this information to
  5276. * optimize power savings, rate adaption, roaming, etc.
  5277. *
  5278. * 1 - wfc is on.
  5279. * 0 - wfc is off.
  5280. */
  5281. QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
  5282. /* 8-bit unsigned value to configure the driver to enable/disable the
  5283. * EHT EML capability in management frame EHT capabilities.
  5284. * 1 - Enable, 0 - Disable.
  5285. */
  5286. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
  5287. /* 8-bit unsigned value to configure the driver with EHT MLO max
  5288. * simultaneous links to be used for MLO connection.
  5289. * The range of the value is 0 to 14.
  5290. */
  5291. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
  5292. /* 8-bit unsigned value to configure the driver with EHT MLO maximum
  5293. * number of links to be used for MLO connection.
  5294. * The range of the value is 1 to 16.
  5295. */
  5296. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
  5297. /* 8-bit unsigned value to configure the driver with EHT MLO mode.
  5298. * Uses enum qca_wlan_eht_mlo_mode values.
  5299. */
  5300. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
  5301. /* Nested attribute with frequencies in u32 attributes to configure a
  5302. * list of allowed 20 MHz channel center frequencies in MHz for AP
  5303. * operation. Whenever performing a channel selection operation, the
  5304. * driver shall generate a new list based on this provided list by
  5305. * filtering out channels that cannot be used at that time due to
  5306. * regulatory or other constraints. The resulting list is used as the
  5307. * list of all allowed channels, i.e., operation on any channel that is
  5308. * not included is not allowed, whenever performing operations like ACS
  5309. * and DFS.
  5310. *
  5311. * Userspace shall configure this before starting the AP and the
  5312. * configuration is valid only from the next BSS start and until the
  5313. * BSS is stopped. The driver shall clear this configuration when the
  5314. * AP is stopped and fall back to the default behavior for subsequent
  5315. * AP operation.
  5316. *
  5317. * The default behavior when this configuration is not applicable is the
  5318. * driver can choose any of the channels supported by the hardware
  5319. * except the channels that cannot be used due to regulatory or other
  5320. * constraints.
  5321. *
  5322. * The driver shall reject this configuration if done after the AP is
  5323. * started. This attribute can be used to specify user's choice of
  5324. * frequencies and static puncture channel list, etc.
  5325. */
  5326. QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
  5327. /* Nested attribute to indicate EHT MLO links to be forced active.
  5328. * It contains link MAC address attributes. These nested attributes are
  5329. * of the type NL80211_ATTR_MAC and are used to force enabling of the
  5330. * MLO links corresponding to the indicated link MAC addresses.
  5331. * Subsequently, the links corresponding to the link MAC addresses that
  5332. * are not indicated are forced inactive.
  5333. */
  5334. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
  5335. /* 8-bit unsigned value to configure EMLSR mode entry or exit.
  5336. * Uses enum qca_wlan_emlsr_mode values.
  5337. */
  5338. QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
  5339. /* keep last */
  5340. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  5341. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  5342. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  5343. };
  5344. /**
  5345. * enum qca_dbam_config - Specifies DBAM config mode
  5346. * @QCA_DBAM_DISABLE: Firmware disables DBAM
  5347. * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
  5348. * internal criteria are met.
  5349. * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
  5350. */
  5351. enum qca_dbam_config {
  5352. QCA_DBAM_DISABLE = 0,
  5353. QCA_DBAM_ENABLE = 1,
  5354. QCA_DBAM_FORCE_ENABLE = 2,
  5355. };
  5356. /**
  5357. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  5358. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  5359. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  5360. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  5361. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  5362. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  5363. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  5364. */
  5365. enum qca_wlan_vendor_attr_wifi_logger_start {
  5366. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  5367. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  5368. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  5369. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  5370. /* keep last */
  5371. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  5372. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  5373. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  5374. };
  5375. /*
  5376. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  5377. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  5378. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  5379. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  5380. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  5381. */
  5382. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  5383. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  5384. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  5385. /* keep last */
  5386. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  5387. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  5388. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  5389. };
  5390. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  5391. /**
  5392. * enum wlan_offloaded_packets_control - control commands
  5393. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  5394. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  5395. *
  5396. */
  5397. enum wlan_offloaded_packets_control {
  5398. WLAN_START_OFFLOADED_PACKETS = 1,
  5399. WLAN_STOP_OFFLOADED_PACKETS = 2
  5400. };
  5401. /**
  5402. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  5403. *
  5404. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  5405. * the offloaded data.
  5406. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  5407. * data.
  5408. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  5409. * indication.
  5410. */
  5411. enum qca_wlan_vendor_attr_data_offload_ind {
  5412. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  5413. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  5414. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  5415. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  5416. /* keep last */
  5417. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  5418. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  5419. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  5420. };
  5421. /**
  5422. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  5423. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  5424. */
  5425. enum qca_wlan_vendor_attr_offloaded_packets {
  5426. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  5427. /* Takes valid value from the enum
  5428. * qca_wlan_offloaded_packets_sending_control
  5429. * Unsigned 32-bit value
  5430. */
  5431. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  5432. /* Unsigned 32-bit value */
  5433. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  5434. /* array of u8 len: Max packet size */
  5435. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  5436. /* 6-byte MAC address used to represent source MAC address */
  5437. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  5438. /* 6-byte MAC address used to represent destination MAC address */
  5439. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  5440. /* Unsigned 32-bit value, in milli seconds */
  5441. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  5442. /* This optional unsigned 16-bit attribute is used for specifying
  5443. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  5444. */
  5445. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  5446. /* keep last */
  5447. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  5448. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  5449. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  5450. };
  5451. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  5452. /**
  5453. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  5454. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  5455. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  5456. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  5457. */
  5458. enum qca_wlan_rssi_monitoring_control {
  5459. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  5460. QCA_WLAN_RSSI_MONITORING_START,
  5461. QCA_WLAN_RSSI_MONITORING_STOP,
  5462. };
  5463. /**
  5464. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  5465. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  5466. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  5467. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  5468. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  5469. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  5470. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  5471. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  5472. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  5473. */
  5474. enum qca_wlan_vendor_attr_rssi_monitoring {
  5475. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  5476. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  5477. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  5478. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  5479. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  5480. /* attributes to be used/received in callback */
  5481. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  5482. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  5483. /* keep last */
  5484. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  5485. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  5486. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  5487. };
  5488. /**
  5489. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  5490. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5491. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  5492. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  5493. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  5494. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
  5495. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  5496. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  5497. * address
  5498. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  5499. * created
  5500. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  5501. * NCS_SK_TYPE/PMK/SCID instead
  5502. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  5503. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  5504. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  5505. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  5506. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  5507. * code: accept/reject
  5508. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  5509. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  5510. * driver
  5511. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  5512. * driver
  5513. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  5514. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  5515. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  5516. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  5517. * PMKID
  5518. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  5519. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  5520. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  5521. * update:
  5522. * BIT_0: NSS Update
  5523. * BIT_1: Channel list update
  5524. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  5525. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  5526. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  5527. * 0:20 MHz,
  5528. * 1:40 MHz,
  5529. * 2:80 MHz,
  5530. * 3:160 MHz
  5531. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  5532. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  5533. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  5534. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  5535. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  5536. * transport port used by NDP.
  5537. * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  5538. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  5539. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  5540. * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
  5541. * NDP remote peer supports NAN NDPE. 1:support 0:not support
  5542. * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
  5543. * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
  5544. * A lower-case representation of the Service Name shall be used to
  5545. * calculate the Service ID.
  5546. * Array of u8: length is 6 bytes
  5547. * This attribute is used and optional for ndp indication.
  5548. */
  5549. enum qca_wlan_vendor_attr_ndp_params {
  5550. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  5551. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  5552. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  5553. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  5554. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  5555. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  5556. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  5557. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  5558. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  5559. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  5560. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  5561. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  5562. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  5563. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  5564. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  5565. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  5566. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  5567. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  5568. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  5569. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  5570. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  5571. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  5572. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  5573. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  5574. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  5575. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  5576. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  5577. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  5578. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  5579. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  5580. QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
  5581. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
  5582. /* keep last */
  5583. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  5584. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  5585. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  5586. };
  5587. /**
  5588. * enum qca_wlan_ndp_sub_cmd - NDP sub commands types for
  5589. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5590. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  5591. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
  5592. * data path interface.
  5593. * This command was initially designed to both create and start a NAN
  5594. * data path interface. However, changes to Linux 5.12 no longer allow
  5595. * interface creation via vendor commands. When the driver advertises
  5596. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5597. * userspace must explicitly first create the interface using
  5598. * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
  5599. * to start the interface.
  5600. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
  5601. * data path interface.
  5602. * This command was initially designed to both stop and delete a NAN
  5603. * data path interface. However, changes to Linux 5.12 no longer allow
  5604. * interface deletion via vendor commands. When the driver advertises
  5605. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5606. * userspace must explicitly delete the interface using
  5607. * NL80211_CMD_DEL_INTERFACE after calling this command.
  5608. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  5609. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  5610. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  5611. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  5612. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  5613. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  5614. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  5615. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  5616. * being received
  5617. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  5618. * update
  5619. */
  5620. enum qca_wlan_ndp_sub_cmd {
  5621. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  5622. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  5623. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  5624. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  5625. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  5626. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  5627. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  5628. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  5629. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  5630. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  5631. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  5632. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  5633. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  5634. };
  5635. /**
  5636. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  5637. * information. These attributes are sent as part of
  5638. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  5639. * attributes correspond to a single channel.
  5640. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  5641. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5642. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  5643. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5644. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  5645. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  5646. * regulatory transmission power
  5647. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  5648. * transmission power
  5649. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  5650. * transmission power
  5651. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  5652. * class id
  5653. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  5654. * antenna gain in dbm
  5655. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  5656. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  5657. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
  5658. * center frequency in MHz.
  5659. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  5660. * segment 0 in center freq in MHz. (this is the legacy alias)
  5661. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
  5662. * center frequency in MHz.
  5663. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  5664. * segment 1 in center freq in MHz. (this is the legacy alias)
  5665. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
  5666. * flag indicating the AP power modes supported by the channel, as given by
  5667. * enum qca_wlan_vendor_external_acs_chan_power_level.
  5668. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
  5669. * attributes for each power mode. It takes attr as defined in enum
  5670. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5671. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
  5672. * This indicates the overlapping 320 MHz center frequency in MHz, if the
  5673. * given primary channel supports more than one 320 MHz channel bonding.
  5674. *
  5675. */
  5676. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  5677. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  5678. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  5679. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  5680. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  5681. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  5682. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  5683. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  5684. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  5685. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  5686. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  5687. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  5688. /*
  5689. * A bitmask (u32) with flags specified in
  5690. * enum qca_wlan_vendor_channel_prop_flags_2.
  5691. */
  5692. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  5693. /*
  5694. * Segment 0 in MHz (u32).
  5695. *
  5696. * For 20/40/80 MHz bandwidth, this indicates the channel center
  5697. * frequency index for the 20/40/80 MHz operating channel.
  5698. * For 160 MHz bandwidth, this indicates the channel center
  5699. * frequency of the primary 80 MHz channel.
  5700. * For 320 MHz bandwidth, indicates the channel center frequency
  5701. * of the primary 160 MHz channel.
  5702. *
  5703. * To maintain backward compatibility,
  5704. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5705. * is also maintained.
  5706. */
  5707. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
  5708. /* Legacy alias for the Segment 0 attribute.
  5709. *
  5710. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  5711. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5712. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5713. * along with
  5714. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  5715. *
  5716. * If both the driver and user-space application supports the 6 GHz
  5717. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  5718. * is deprecated and
  5719. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5720. * should be used.
  5721. *
  5722. * To maintain backward compatibility,
  5723. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5724. * is still used if either of the driver or user space application
  5725. * doesn't support the 6 GHz band.
  5726. */
  5727. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
  5728. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
  5729. /*
  5730. * Segment 1 in MHz (u32).
  5731. *
  5732. * For 20/40/80 MHz bandwidth, this is set to 0.
  5733. * For 160 MHz bandwidth, indicates the channel center frequency of the
  5734. * 160 MHz channel.
  5735. * For 320 MHz bandwidth, indicates the channel center frequency of the
  5736. * 320 MHz channel.
  5737. *
  5738. * To maintain backward compatibility,
  5739. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5740. * is also maintained.
  5741. */
  5742. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
  5743. /* Legacy alias for the Segment 1 attribute.
  5744. *
  5745. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  5746. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5747. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5748. * along with
  5749. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  5750. *
  5751. * If both the driver and user-space application supports the 6 GHz
  5752. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  5753. * is deprecated and
  5754. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5755. * should be considered.
  5756. *
  5757. * To maintain backward compatibility,
  5758. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5759. * is still used if either of the driver or user space application
  5760. * doesn't support the 6 GHz band.
  5761. */
  5762. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
  5763. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
  5764. /*
  5765. * 16-bit attribute of bits indicating the AP power modes supported by
  5766. * the channel (u16).
  5767. * Note: Currently, only 3 bits are used in the attribute and each bit
  5768. * corresponds to the power mode mentioned in enum
  5769. * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
  5770. * set if the associated mode is supported.
  5771. */
  5772. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
  5773. = 14,
  5774. /* Array of nested attributes for each power mode. It takes attr as
  5775. * defined in enum
  5776. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5777. */
  5778. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
  5779. /*
  5780. * This indicates the overlapping 320 MHz center frequency in MHz
  5781. * (u32), if the given primary channel supports more than one
  5782. * 320 MHz channel bonding.
  5783. *
  5784. * Example:
  5785. * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
  5786. * center frequency (primary 160 MHz) is 6185 MHz and there can be two
  5787. * possible segment 2 frequencies for this (320 MHz center
  5788. * frequencies):
  5789. *
  5790. * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
  5791. * from frequency 5945 MHz - 6265 MHz
  5792. * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
  5793. * from frequency 6105 MHz - 6425 MHz
  5794. *
  5795. * In this case,
  5796. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
  5797. * return 6185 MHz.
  5798. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
  5799. * return 6105 MHz.
  5800. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5801. * will return 6265 MHz.
  5802. */
  5803. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5804. = 16,
  5805. /* keep last */
  5806. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  5807. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  5808. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  5809. };
  5810. /**
  5811. * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
  5812. * values that the vendor external ACS channel power attribute
  5813. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
  5814. * take.
  5815. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
  5816. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
  5817. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
  5818. */
  5819. enum qca_wlan_vendor_external_acs_chan_power_level {
  5820. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
  5821. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
  5822. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
  5823. };
  5824. /**
  5825. * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
  5826. * attributes for power mode type and power values corresponding to that.
  5827. * These attributes are sent as part of
  5828. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
  5829. */
  5830. enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
  5831. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
  5832. /*
  5833. * Power mode (u8) takes the values defined in enum
  5834. * qca_wlan_vendor_external_acs_chan_power_mode
  5835. */
  5836. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
  5837. = 1,
  5838. /*
  5839. * Indicates if power value is a PSD/EIRP value (flag). If flag is
  5840. * present, it indicates a PSD value.
  5841. */
  5842. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
  5843. /*
  5844. * Power value (u32) PSD/EIRP as indicated by
  5845. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
  5846. * for power mode corresponding to the
  5847. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
  5848. * Units for PSD - dBm/MHz
  5849. * Units for EIRP - dBm
  5850. */
  5851. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
  5852. = 3,
  5853. /* keep last */
  5854. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
  5855. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
  5856. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
  5857. };
  5858. /**
  5859. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  5860. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  5861. * driver.
  5862. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  5863. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  5864. * ACS need to be started
  5865. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  5866. * driver supports spectral scanning or not
  5867. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  5868. * offloaded to firmware.
  5869. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  5870. * provides additional channel capability as part of scan operation.
  5871. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  5872. * interface status is UP
  5873. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  5874. * interface. It takes one of nl80211_iftype values.
  5875. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  5876. * of chan width. ACS logic should try to get a channel with specified width
  5877. * if not found then look for lower values.
  5878. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  5879. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  5880. * a/b/g/n/ac.
  5881. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  5882. * among which ACS should choose best frequency.
  5883. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  5884. * driver which will have <channel(u8), weight(u8)> format as array of
  5885. * nested values.
  5886. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  5887. * for each channel. It takes attr as defined in
  5888. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  5889. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  5890. * qca_wlan_vendor_attr_external_acs_policy.
  5891. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  5892. * Operating Parameter (RROP) availability information (u16). It uses values
  5893. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  5894. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
  5895. * indicate if driver supports 6 GHz AFC trigger for External ACS.
  5896. */
  5897. enum qca_wlan_vendor_attr_external_acs_event {
  5898. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  5899. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  5900. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  5901. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  5902. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  5903. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  5904. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  5905. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  5906. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  5907. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  5908. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  5909. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  5910. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  5911. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  5912. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  5913. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
  5914. /* keep last */
  5915. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  5916. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  5917. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  5918. };
  5919. enum qca_iface_type {
  5920. QCA_IFACE_TYPE_STA,
  5921. QCA_IFACE_TYPE_AP,
  5922. QCA_IFACE_TYPE_P2P_CLIENT,
  5923. QCA_IFACE_TYPE_P2P_GO,
  5924. QCA_IFACE_TYPE_IBSS,
  5925. QCA_IFACE_TYPE_TDLS,
  5926. };
  5927. /**
  5928. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  5929. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  5930. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  5931. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  5932. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  5933. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  5934. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  5935. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  5936. */
  5937. enum qca_wlan_vendor_attr_pcl_config {
  5938. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  5939. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  5940. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  5941. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  5942. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  5943. };
  5944. enum qca_set_band {
  5945. QCA_SETBAND_AUTO = 0,
  5946. QCA_SETBAND_5G = BIT(0),
  5947. QCA_SETBAND_2G = BIT(1),
  5948. QCA_SETBAND_6G = BIT(2),
  5949. };
  5950. /**
  5951. * enum set_reset_packet_filter - set packet filter control commands
  5952. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  5953. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  5954. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  5955. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  5956. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  5957. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  5958. */
  5959. enum set_reset_packet_filter {
  5960. QCA_WLAN_SET_PACKET_FILTER = 1,
  5961. QCA_WLAN_GET_PACKET_FILTER = 2,
  5962. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  5963. QCA_WLAN_READ_PACKET_FILTER = 4,
  5964. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  5965. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  5966. };
  5967. /**
  5968. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  5969. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  5970. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  5971. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  5972. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  5973. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  5974. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  5975. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  5976. * section in packet filter buffer
  5977. */
  5978. enum qca_wlan_vendor_attr_packet_filter {
  5979. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  5980. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  5981. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  5982. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  5983. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  5984. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  5985. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  5986. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  5987. /* keep last */
  5988. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  5989. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  5990. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  5991. };
  5992. /**
  5993. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  5994. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  5995. */
  5996. enum qca_wlan_vendor_attr_wake_stats {
  5997. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  5998. /* Unsigned 32-bit value indicating the total count of wake event */
  5999. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  6000. /* Array of individual wake count, each index representing wake reason
  6001. */
  6002. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  6003. /* Unsigned 32-bit value representing wake count array */
  6004. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  6005. /* Unsigned 32-bit total wake count value of driver/fw */
  6006. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  6007. /* Array of wake stats of driver/fw */
  6008. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  6009. /* Unsigned 32-bit total wake count value of driver/fw */
  6010. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  6011. /* Unsigned 32-bit total wake count value of packets received */
  6012. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  6013. /* Unsigned 32-bit wake count value unicast packets received */
  6014. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  6015. /* Unsigned 32-bit wake count value multicast packets received */
  6016. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  6017. /* Unsigned 32-bit wake count value broadcast packets received */
  6018. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  6019. /* Unsigned 32-bit wake count value of ICMP packets */
  6020. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  6021. /* Unsigned 32-bit wake count value of ICMP6 packets */
  6022. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  6023. /* Unsigned 32-bit value ICMP6 router advertisement */
  6024. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  6025. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  6026. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  6027. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  6028. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  6029. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  6030. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  6031. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  6032. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  6033. /* Unsigned 32-bit wake count value of receive side multicast */
  6034. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  6035. /* Unsigned 32-bit wake count value of a given RSSI breach */
  6036. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  6037. /* Unsigned 32-bit wake count value of low RSSI */
  6038. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  6039. /* Unsigned 32-bit value GSCAN count */
  6040. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  6041. /* Unsigned 32-bit value PNO complete count */
  6042. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  6043. /* Unsigned 32-bit value PNO match count */
  6044. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  6045. /* keep last */
  6046. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  6047. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  6048. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  6049. };
  6050. /**
  6051. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  6052. * configured by userspace to the driver/firmware. The values will be
  6053. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  6054. * The driver/firmware takes necessary actions requested by userspace
  6055. * such as throttling wifi tx etc. in order to mitigate high temperature.
  6056. *
  6057. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  6058. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  6059. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  6060. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  6061. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  6062. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  6063. */
  6064. enum qca_wlan_vendor_thermal_level {
  6065. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  6066. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  6067. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  6068. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  6069. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  6070. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  6071. };
  6072. /**
  6073. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  6074. * cmd value. Used for NL attributes for data used by
  6075. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6076. */
  6077. enum qca_wlan_vendor_attr_thermal_cmd {
  6078. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  6079. /* The value of command, driver will implement different operations
  6080. * according to this value. It uses values defined in
  6081. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  6082. * u32 attribute.
  6083. */
  6084. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  6085. /* Userspace uses this attribute to configure thermal level to the
  6086. * driver/firmware, or get thermal level from the driver/firmware.
  6087. * Used in request or response, u32 attribute,
  6088. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  6089. */
  6090. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  6091. /* Userspace uses this attribute to configure the time in which the
  6092. * driver/firmware should complete applying settings it received from
  6093. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  6094. * command type. Used in request, u32 attribute, value is in
  6095. * milliseconds. A value of zero indicates to apply the settings
  6096. * immediately. The driver/firmware can delay applying the configured
  6097. * thermal settings within the time specified in this attribute if
  6098. * there is any critical ongoing operation.
  6099. */
  6100. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  6101. /* Nested attribute, driver/firmware uses this attribute to report
  6102. * thermal stats of different thermal levels to userspace when requested
  6103. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  6104. * type. This attribute contains nested array of records of thermal
  6105. * statistics of multiple levels. The attributes used inside this nested
  6106. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  6107. */
  6108. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  6109. /* keep last */
  6110. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  6111. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  6112. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  6113. };
  6114. /**
  6115. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  6116. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  6117. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  6118. * thermal command types sent to driver.
  6119. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  6120. * get thermal shutdown configuration parameters for display. Parameters
  6121. * responded from driver are defined in
  6122. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  6123. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  6124. * get temperature. Host should respond with a temperature data. It is defined
  6125. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  6126. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  6127. * suspend action.
  6128. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  6129. * resume action.
  6130. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  6131. * the driver/firmware.
  6132. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  6133. * thermal level from the driver/firmware. The driver should respond with a
  6134. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  6135. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  6136. * current thermal stats from the driver/firmware. The driver should respond
  6137. * with stats of all thermal levels encapsulated in attribute
  6138. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  6139. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  6140. * the current thermal stats all thermal levels maintained in the
  6141. * driver/firmware and start counting from zero again.
  6142. */
  6143. enum qca_wlan_vendor_attr_thermal_cmd_type {
  6144. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  6145. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  6146. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  6147. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  6148. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  6149. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  6150. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  6151. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  6152. };
  6153. /**
  6154. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  6155. * to get chip temperature by user.
  6156. * enum values are used for NL attributes for data used by
  6157. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  6158. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6159. */
  6160. enum qca_wlan_vendor_attr_thermal_get_temperature {
  6161. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  6162. /* Temperature value (degree Celsius) from driver.
  6163. * u32 attribute.
  6164. */
  6165. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  6166. /* keep last */
  6167. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  6168. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  6169. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  6170. };
  6171. /**
  6172. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  6173. * report thermal events from driver to user space.
  6174. * enum values are used for NL attributes for data used by
  6175. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  6176. */
  6177. enum qca_wlan_vendor_attr_thermal_event {
  6178. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  6179. /* Temperature value (degree Celsius) from driver.
  6180. * u32 attribute.
  6181. */
  6182. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  6183. /* Indication of resume completion from power save mode.
  6184. * NLA_FLAG attribute.
  6185. */
  6186. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  6187. /* Thermal level from the driver.
  6188. * u32 attribute. Possible values are defined in
  6189. * enum qca_wlan_vendor_thermal_level.
  6190. */
  6191. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  6192. /* keep last */
  6193. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  6194. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  6195. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  6196. };
  6197. /**
  6198. * enum qca_vendor_element_id - QCA Vendor Specific element types
  6199. *
  6200. * These values are used to identify QCA Vendor Specific elements. The
  6201. * payload of the element starts with the three octet OUI (OUI_QCA) and
  6202. * is followed by a single octet type which is defined by this enum.
  6203. *
  6204. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  6205. * This element can be used to specify preference order for supported
  6206. * channels. The channels in this list are in preference order (the first
  6207. * one has the highest preference) and are described as a pair of
  6208. * (global) Operating Class and Channel Number (each one octet) fields.
  6209. *
  6210. * This extends the standard P2P functionality by providing option to have
  6211. * more than one preferred operating channel. When this element is present,
  6212. * it replaces the preference indicated in the Operating Channel attribute.
  6213. * For supporting other implementations, the Operating Channel attribute is
  6214. * expected to be used with the highest preference channel. Similarly, all
  6215. * the channels included in this Preferred channel list element are
  6216. * expected to be included in the Channel List attribute.
  6217. *
  6218. * This vendor element may be included in GO Negotiation Request, P2P
  6219. * Invitation Request, and Provision Discovery Request frames.
  6220. *
  6221. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  6222. * This element can be used for pre-standard publication testing of HE
  6223. * before P802.11ax draft assigns the element ID. The payload of this
  6224. * vendor specific element is defined by the latest P802.11ax draft.
  6225. * Please note that the draft is still work in progress and this element
  6226. * payload is subject to change.
  6227. *
  6228. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  6229. * This element can be used for pre-standard publication testing of HE
  6230. * before P802.11ax draft assigns the element ID. The payload of this
  6231. * vendor specific element is defined by the latest P802.11ax draft.
  6232. * Please note that the draft is still work in progress and this element
  6233. * payload is subject to change.
  6234. *
  6235. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  6236. * element).
  6237. * This element can be used for pre-standard publication testing of HE
  6238. * before P802.11ax draft assigns the element ID extension. The payload of
  6239. * this vendor specific element is defined by the latest P802.11ax draft
  6240. * (not including the Element ID Extension field). Please note that the
  6241. * draft is still work in progress and this element payload is subject to
  6242. * change.
  6243. *
  6244. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  6245. * This element can be used for pre-standard publication testing of HE
  6246. * before P802.11ax draft assigns the element ID extension. The payload of
  6247. * this vendor specific element is defined by the latest P802.11ax draft
  6248. * (not including the Element ID Extension field). Please note that the
  6249. * draft is still work in progress and this element payload is subject to
  6250. * change.
  6251. *
  6252. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  6253. * This element can be used for pre-standard publication testing of HE
  6254. * before P802.11ax draft assigns the element ID extension. The payload of
  6255. * this vendor specific element is defined by the latest P802.11ax draft
  6256. * (not including the Element ID Extension field). Please note that the
  6257. * draft is still work in progress and this element payload is subject to
  6258. * change.
  6259. */
  6260. enum qca_vendor_element_id {
  6261. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  6262. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  6263. QCA_VENDOR_ELEM_HE_OPER = 2,
  6264. QCA_VENDOR_ELEM_RAPS = 3,
  6265. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  6266. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  6267. };
  6268. /**
  6269. * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
  6270. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
  6271. * Specify the TSF command. Possible values are defined in
  6272. * &enum qca_tsf_cmd.
  6273. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
  6274. * This attribute contains TSF timer value. This attribute is only available
  6275. * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6276. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
  6277. * This attribute contains SOC timer value at TSF capture. This attribute is
  6278. * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6279. * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
  6280. * This attribute is used to provide TSF sync interval and only applicable when
  6281. * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
  6282. * driver will use the default value. Time unit is in milliseconds.
  6283. */
  6284. enum qca_vendor_attr_tsf_cmd {
  6285. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  6286. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  6287. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  6288. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  6289. QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
  6290. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  6291. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  6292. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  6293. };
  6294. /**
  6295. * enum qca_tsf_cmd: TSF driver commands
  6296. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  6297. * @QCA_TSF_GET: Get TSF capture value
  6298. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  6299. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  6300. * will automatically send TSF report to the host. To query
  6301. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  6302. * initiated first.
  6303. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  6304. * will not automatically send TSF report to the host. If
  6305. * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  6306. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  6307. * operation needs to be initiated.
  6308. * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
  6309. * fetches TSF and host time mapping from the firmware with interval configured
  6310. * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
  6311. * interval value is not provided the driver will use the default value. The
  6312. * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
  6313. * command.
  6314. * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
  6315. */
  6316. enum qca_tsf_cmd {
  6317. QCA_TSF_CAPTURE,
  6318. QCA_TSF_GET,
  6319. QCA_TSF_SYNC_GET,
  6320. QCA_TSF_AUTO_REPORT_ENABLE,
  6321. QCA_TSF_AUTO_REPORT_DISABLE,
  6322. QCA_TSF_SYNC_START,
  6323. QCA_TSF_SYNC_STOP,
  6324. };
  6325. /**
  6326. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  6327. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  6328. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  6329. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  6330. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  6331. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  6332. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  6333. */
  6334. enum qca_vendor_attr_get_preferred_freq_list {
  6335. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  6336. /* A 32-unsigned value; the interface type/mode for which the preferred
  6337. * frequency list is requested (see enum qca_iface_type for possible
  6338. * values); used in both south- and north-bound.
  6339. */
  6340. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  6341. /* An array of 32-unsigned values; values are frequency (MHz); used
  6342. * in north-bound only.
  6343. */
  6344. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  6345. /* An array of nested values as per enum
  6346. * qca_wlan_vendor_attr_pcl_config attribute.
  6347. * Each element contains frequency (MHz), weight, and flag
  6348. * bit mask indicating how the frequency should be used in P2P
  6349. * negotiation.
  6350. */
  6351. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  6352. /* keep last */
  6353. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  6354. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  6355. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  6356. };
  6357. /**
  6358. * enum qca_vendor_attr_probable_oper_channel - channel hint
  6359. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  6360. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  6361. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  6362. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  6363. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  6364. */
  6365. enum qca_vendor_attr_probable_oper_channel {
  6366. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  6367. /* 32-bit unsigned value; indicates the connection/iface type likely to
  6368. * come on this channel (see enum qca_iface_type).
  6369. */
  6370. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  6371. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  6372. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  6373. /* keep last */
  6374. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  6375. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  6376. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  6377. };
  6378. /**
  6379. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  6380. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  6381. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  6382. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  6383. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  6384. */
  6385. enum qca_wlan_vendor_attr_gw_param_config {
  6386. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  6387. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  6388. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  6389. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  6390. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  6391. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  6392. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  6393. };
  6394. /**
  6395. * enum drv_dbs_capability - DBS capability
  6396. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  6397. * @DRV_DBS_CAPABILITY_1X1: 1x1
  6398. * @DRV_DBS_CAPABILITY_2X2: 2x2
  6399. */
  6400. enum drv_dbs_capability {
  6401. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  6402. DRV_DBS_CAPABILITY_1X1,
  6403. DRV_DBS_CAPABILITY_2X2,
  6404. };
  6405. /**
  6406. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  6407. *
  6408. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  6409. */
  6410. enum qca_vendor_attr_txpower_decr_db {
  6411. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  6412. /*
  6413. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  6414. * a virtual interface.
  6415. */
  6416. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  6417. /* keep last */
  6418. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  6419. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  6420. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  6421. };
  6422. /**
  6423. * enum qca_vendor_attr_ota_test - Enable OTA test
  6424. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  6425. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  6426. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  6427. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  6428. */
  6429. enum qca_vendor_attr_ota_test {
  6430. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  6431. /* 8-bit unsigned value to indicate if OTA test is enabled */
  6432. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  6433. /* keep last */
  6434. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  6435. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  6436. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  6437. };
  6438. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  6439. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  6440. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  6441. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  6442. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  6443. */
  6444. enum qca_vendor_attr_txpower_scale {
  6445. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  6446. /* 8-bit unsigned value to indicate the scaling of tx power */
  6447. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  6448. /* keep last */
  6449. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  6450. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  6451. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  6452. };
  6453. /**
  6454. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  6455. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  6456. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  6457. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  6458. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  6459. */
  6460. enum qca_vendor_attr_txpower_scale_decr_db {
  6461. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  6462. /* 8-bit unsigned value to indicate the scaling of tx power */
  6463. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  6464. /* keep last */
  6465. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  6466. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  6467. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  6468. };
  6469. /**
  6470. * enum dfs_mode - state of DFS mode
  6471. * @DFS_MODE_NONE: DFS mode attribute is none
  6472. * @DFS_MODE_ENABLE: DFS mode is enabled
  6473. * @DFS_MODE_DISABLE: DFS mode is disabled
  6474. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  6475. */
  6476. enum dfs_mode {
  6477. DFS_MODE_NONE,
  6478. DFS_MODE_ENABLE,
  6479. DFS_MODE_DISABLE,
  6480. DFS_MODE_DEPRIORITIZE
  6481. };
  6482. /**
  6483. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  6484. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  6485. *
  6486. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  6487. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  6488. *
  6489. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  6490. * channel number hint for ACS operation, if valid channel is specified then
  6491. * ACS operation gives priority to this channel.
  6492. * Note: If both the driver and user space application supports the 6 GHz band,
  6493. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  6494. * should be used.
  6495. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  6496. * is still used if either of the driver or user space application doesn't
  6497. * support the 6 GHz band.
  6498. *
  6499. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  6500. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  6501. * frequency is specified, ACS operation gives priority to this channel.
  6502. */
  6503. enum qca_wlan_vendor_attr_acs_config {
  6504. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  6505. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  6506. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  6507. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  6508. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  6509. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  6510. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  6511. };
  6512. /**
  6513. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  6514. */
  6515. enum qca_wlan_vendor_attr_get_hw_capability {
  6516. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  6517. /*
  6518. * Antenna isolation
  6519. * An attribute used in the response.
  6520. * The content of this attribute is encoded in a byte array. Each byte
  6521. * value is an antenna isolation value. The array length is the number
  6522. * of antennas.
  6523. */
  6524. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  6525. /*
  6526. * Request HW capability
  6527. * An attribute used in the request.
  6528. * The content of this attribute is a u32 array for one or more of
  6529. * hardware capabilities (attribute IDs) that are being requested. Each
  6530. * u32 value has a value from this
  6531. * enum qca_wlan_vendor_attr_get_hw_capability
  6532. * identifying which capabilities are requested.
  6533. */
  6534. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  6535. /* keep last */
  6536. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  6537. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  6538. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  6539. };
  6540. /**
  6541. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  6542. * config params for sta roam policy
  6543. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  6544. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  6545. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  6546. * If sta should skip unsafe channels or not in scanning
  6547. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  6548. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  6549. */
  6550. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  6551. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  6552. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  6553. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  6554. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  6555. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  6556. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  6557. };
  6558. /* Attributes for FTM commands and events */
  6559. /**
  6560. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  6561. *
  6562. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  6563. * enum qca_wlan_vendor_attr_loc_capa_flags.
  6564. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  6565. * of measurement sessions that can run concurrently.
  6566. * Default is one session (no session concurrency).
  6567. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  6568. * peers that are supported in running sessions. For example,
  6569. * if the value is 8 and maximum number of sessions is 2, you can
  6570. * have one session with 8 unique peers, or 2 sessions with 4 unique
  6571. * peers each, and so on.
  6572. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  6573. * of bursts per peer, as an exponent (2^value). Default is 0,
  6574. * meaning no multi-burst support.
  6575. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  6576. * of measurement exchanges allowed in a single burst.
  6577. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  6578. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  6579. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  6580. */
  6581. enum qca_wlan_vendor_attr_loc_capa {
  6582. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  6583. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  6584. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  6585. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  6586. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  6587. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  6588. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  6589. /* keep last */
  6590. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  6591. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  6592. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  6593. };
  6594. /**
  6595. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  6596. *
  6597. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  6598. * can be configured as an FTM responder (for example, an AP that
  6599. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  6600. * will be supported if set.
  6601. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  6602. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  6603. * will be supported if set.
  6604. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  6605. * supports immediate (ASAP) response.
  6606. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  6607. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  6608. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  6609. * requesting AOA measurements as part of an FTM session.
  6610. */
  6611. enum qca_wlan_vendor_attr_loc_capa_flags {
  6612. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  6613. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  6614. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  6615. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  6616. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  6617. };
  6618. /**
  6619. * enum qca_wlan_ani_setting - ANI setting type
  6620. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  6621. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  6622. */
  6623. enum qca_wlan_ani_setting {
  6624. QCA_WLAN_ANI_SETTING_AUTO = 0,
  6625. QCA_WLAN_ANI_SETTING_FIXED = 1,
  6626. };
  6627. /**
  6628. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  6629. *
  6630. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  6631. * Channel number on which Access Point should restart.
  6632. * Note: If both the driver and user space application supports the 6 GHz band,
  6633. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  6634. * should be used.
  6635. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  6636. * is still used if either of the driver or user space application doesn't
  6637. * support the 6 GHz band.
  6638. *
  6639. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  6640. * Nested attribute to hold list of center frequencies on which AP is
  6641. * expected to operate. This is irrespective of ACS configuration.
  6642. * This list is a priority based one and is looked for before the AP is
  6643. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  6644. * co-exist in the system.
  6645. *
  6646. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  6647. * Channel center frequency (MHz) on which the access point should restart.
  6648. */
  6649. enum qca_wlan_vendor_attr_sap_config {
  6650. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  6651. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  6652. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  6653. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  6654. /* Keep last */
  6655. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  6656. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  6657. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  6658. };
  6659. /**
  6660. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  6661. * a single peer in a measurement session.
  6662. *
  6663. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  6664. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  6665. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  6666. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  6667. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  6668. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  6669. * list of supported attributes.
  6670. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  6671. * secure measurement.
  6672. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  6673. * measurement every <value> bursts. If 0 or not specified,
  6674. * AOA measurements will be disabled for this peer.
  6675. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  6676. * the measurement frames are exchanged. Optional; if not
  6677. * specified, try to locate the peer in the kernel scan
  6678. * results cache and use frequency from there.
  6679. */
  6680. enum qca_wlan_vendor_attr_ftm_peer_info {
  6681. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  6682. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  6683. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  6684. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  6685. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  6686. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  6687. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  6688. /* keep last */
  6689. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  6690. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  6691. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  6692. };
  6693. /**
  6694. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  6695. * per-peer
  6696. *
  6697. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  6698. * immediate (ASAP) response from peer.
  6699. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  6700. * LCI report from peer. The LCI report includes the absolute
  6701. * location of the peer in "official" coordinates (similar to GPS).
  6702. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  6703. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  6704. * Location civic report from peer. The LCR includes the location
  6705. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  6706. * 11.24.6.7 for more information.
  6707. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  6708. * request a secure measurement.
  6709. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  6710. */
  6711. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  6712. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  6713. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  6714. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  6715. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  6716. };
  6717. /**
  6718. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  6719. *
  6720. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  6721. * to perform in a single burst.
  6722. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  6723. * perform, specified as an exponent (2^value).
  6724. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  6725. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  6726. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  6727. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  6728. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  6729. */
  6730. enum qca_wlan_vendor_attr_ftm_meas_param {
  6731. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  6732. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  6733. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  6734. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  6735. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  6736. /* keep last */
  6737. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  6738. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  6739. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  6740. };
  6741. /**
  6742. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  6743. *
  6744. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  6745. * peer.
  6746. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  6747. * request for this peer.
  6748. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  6749. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  6750. * to measurement results for this peer.
  6751. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  6752. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  6753. * request failed and peer requested not to send an additional request
  6754. * for this number of seconds.
  6755. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  6756. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6757. * 9.4.2.22.10.
  6758. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  6759. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6760. * 9.4.2.22.13.
  6761. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  6762. * overridden some measurement request parameters. See
  6763. * enum qca_wlan_vendor_attr_ftm_meas_param.
  6764. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  6765. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  6766. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  6767. * results. Each entry is a nested attribute defined
  6768. * by enum qca_wlan_vendor_attr_ftm_meas.
  6769. */
  6770. enum qca_wlan_vendor_attr_ftm_peer_result {
  6771. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  6772. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  6773. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  6774. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  6775. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  6776. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  6777. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  6778. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  6779. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  6780. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  6781. /* keep last */
  6782. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  6783. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  6784. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  6785. };
  6786. /**
  6787. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  6788. *
  6789. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  6790. * will be provided. Peer may have overridden some measurement parameters,
  6791. * in which case overridden parameters will be report by
  6792. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  6793. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  6794. * of performing the measurement request. No more results will be sent
  6795. * for this peer in this session.
  6796. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  6797. * failed, and requested not to send an additional request for number
  6798. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  6799. * attribute.
  6800. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  6801. * failed. Request was not sent over the air.
  6802. */
  6803. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  6804. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  6805. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  6806. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  6807. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  6808. };
  6809. /**
  6810. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  6811. * for measurement result, per-peer
  6812. *
  6813. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  6814. * measurement completed for this peer. No more results will be reported
  6815. * for this peer in this session.
  6816. */
  6817. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  6818. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  6819. };
  6820. /**
  6821. * enum qca_vendor_attr_loc_session_status: Session completion status code
  6822. *
  6823. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  6824. * successfully.
  6825. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  6826. * by request.
  6827. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  6828. * was invalid and was not started.
  6829. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  6830. * and did not complete normally (for example out of resources).
  6831. */
  6832. enum qca_vendor_attr_loc_session_status {
  6833. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  6834. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  6835. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  6836. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  6837. };
  6838. /**
  6839. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  6840. *
  6841. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  6842. * recorded by responder, in picoseconds.
  6843. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6844. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  6845. * initiator, in picoseconds.
  6846. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6847. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  6848. * initiator, in picoseconds.
  6849. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6850. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  6851. * responder, in picoseconds.
  6852. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6853. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  6854. * during this measurement exchange. Optional and will be provided if
  6855. * the hardware can measure it.
  6856. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  6857. * responder. Not always provided.
  6858. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6859. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  6860. * responder. Not always provided.
  6861. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6862. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  6863. * initiator. Not always provided.
  6864. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6865. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  6866. * initiator. Not always provided.
  6867. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6868. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  6869. */
  6870. enum qca_wlan_vendor_attr_ftm_meas {
  6871. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  6872. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  6873. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  6874. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  6875. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  6876. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  6877. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  6878. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  6879. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  6880. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  6881. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  6882. /* keep last */
  6883. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  6884. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  6885. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  6886. };
  6887. /**
  6888. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  6889. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  6890. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  6891. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  6892. * of the social channels.
  6893. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  6894. * A 32-bit unsigned value; the P2P listen offload period (ms).
  6895. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  6896. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  6897. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  6898. * A 32-bit unsigned value; number of interval times the Firmware needs
  6899. * to run the offloaded P2P listen operation before it stops.
  6900. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  6901. * An array of unsigned 8-bit characters; vendor information elements.
  6902. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  6903. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  6904. * A 32-bit unsigned value; a control flag to indicate whether listen
  6905. * results need to be flushed to wpa_supplicant.
  6906. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  6907. * A 8-bit unsigned value; reason code for P2P listen offload stop
  6908. * event.
  6909. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  6910. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  6911. */
  6912. enum qca_wlan_vendor_attr_p2p_listen_offload {
  6913. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  6914. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  6915. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  6916. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  6917. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  6918. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  6919. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  6920. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  6921. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  6922. /* keep last */
  6923. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  6924. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  6925. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  6926. };
  6927. /**
  6928. * enum qca_wlan_vendor_drv_info - WLAN driver info
  6929. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  6930. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  6931. * between Firmware & Host.
  6932. */
  6933. enum qca_wlan_vendor_drv_info {
  6934. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  6935. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  6936. /* keep last */
  6937. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  6938. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  6939. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  6940. };
  6941. /**
  6942. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  6943. *
  6944. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  6945. * CIR (channel impulse response) path for each antenna.
  6946. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  6947. * of the strongest CIR path for each antenna.
  6948. */
  6949. enum qca_wlan_vendor_attr_aoa_type {
  6950. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  6951. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  6952. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  6953. };
  6954. /**
  6955. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  6956. * validate encryption engine
  6957. *
  6958. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  6959. * This will be included if the request is for decryption; if not included,
  6960. * the request is treated as a request for encryption by default.
  6961. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  6962. * indicating the key cipher suite. Takes same values as
  6963. * NL80211_ATTR_KEY_CIPHER.
  6964. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  6965. * Key Id to be used for encryption
  6966. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  6967. * Key (TK) to be used for encryption/decryption
  6968. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  6969. * Packet number to be specified for encryption/decryption
  6970. * 6 bytes for TKIP/CCMP/GCMP.
  6971. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  6972. * representing the 802.11 packet (header + payload + FCS) that
  6973. * needs to be encrypted/decrypted.
  6974. * Encrypted/decrypted response from the driver will also be sent
  6975. * to userspace with the same attribute.
  6976. */
  6977. enum qca_wlan_vendor_attr_encryption_test {
  6978. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  6979. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  6980. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  6981. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  6982. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  6983. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  6984. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  6985. /* keep last */
  6986. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  6987. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  6988. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  6989. };
  6990. /**
  6991. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  6992. * sector for DMG RF sector operations.
  6993. *
  6994. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  6995. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  6996. */
  6997. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  6998. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  6999. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  7000. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  7001. };
  7002. /**
  7003. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  7004. *
  7005. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  7006. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  7007. */
  7008. enum qca_wlan_vendor_attr_fw_state {
  7009. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  7010. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  7011. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  7012. };
  7013. /**
  7014. * BRP antenna limit mode
  7015. *
  7016. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  7017. * antenna limit, BRP will be performed as usual.
  7018. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  7019. * antennas limit. the hardware may use less antennas than the
  7020. * maximum limit.
  7021. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  7022. * use exactly the specified number of antennas for BRP.
  7023. */
  7024. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  7025. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  7026. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  7027. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  7028. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  7029. };
  7030. /**
  7031. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  7032. * DMG RF sector configuration for a single RF module.
  7033. * The values are defined in a compact way which closely matches
  7034. * the way it is stored in HW registers.
  7035. * The configuration provides values for 32 antennas and 8 distribution
  7036. * amplifiers, and together describes the characteristics of the RF
  7037. * sector - such as a beam in some direction with some gain.
  7038. *
  7039. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  7040. * of RF module for this configuration.
  7041. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  7042. * amplifier gain index. Unsigned 32 bit number containing
  7043. * bits for all 32 antennas.
  7044. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  7045. * amplifier gain index. Unsigned 32 bit number containing
  7046. * bits for all 32 antennas.
  7047. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  7048. * amplifier gain index. Unsigned 32 bit number containing
  7049. * bits for all 32 antennas.
  7050. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  7051. * for first 16 antennas, 2 bits per antenna.
  7052. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  7053. * for last 16 antennas, 2 bits per antenna.
  7054. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  7055. * DTYPE values (3 bits) for each distribution amplifier, followed
  7056. * by X16 switch bits for each distribution amplifier. There are
  7057. * total of 8 distribution amplifiers.
  7058. */
  7059. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  7060. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  7061. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  7062. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  7063. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  7064. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  7065. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  7066. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  7067. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  7068. /* keep last */
  7069. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  7070. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  7071. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  7072. };
  7073. /**
  7074. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  7075. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  7076. *
  7077. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  7078. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  7079. * represents the different TDLS trigger modes.
  7080. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  7081. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  7082. * of packets shall meet the criteria for implicit TDLS setup.
  7083. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  7084. * packets within a duration.
  7085. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  7086. * a TDLS setup.
  7087. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
  7088. * a TDLS Discovery to the Peer.
  7089. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  7090. * discovery attempts to know the TDLS capability of the peer. A peer is
  7091. * marked as TDLS not capable if there is no response for all the attempts.
  7092. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  7093. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  7094. * number of TX / RX frames meet the criteria for TDLS teardown.
  7095. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  7096. * (u32) of Tx/Rx packets within a duration
  7097. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  7098. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  7099. * corresponding to the RSSI of the peer below which a TDLS
  7100. * setup is triggered.
  7101. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  7102. * corresponding to the RSSI of the peer above which
  7103. * a TDLS teardown is triggered.
  7104. */
  7105. enum qca_wlan_vendor_attr_tdls_configuration {
  7106. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  7107. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  7108. /* Attributes configuring the TDLS Implicit Trigger */
  7109. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  7110. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  7111. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  7112. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  7113. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  7114. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  7115. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  7116. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  7117. /* keep last */
  7118. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  7119. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  7120. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  7121. };
  7122. /**
  7123. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  7124. * the driver.
  7125. *
  7126. * The following are the different values for
  7127. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  7128. *
  7129. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  7130. * initiate/teardown the TDLS connection to a respective peer comes
  7131. * from the user space. wpa_supplicant provides the commands
  7132. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  7133. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  7134. * setup/teardown to the eligible peer once the configured criteria
  7135. * (such as TX/RX threshold, RSSI) is met. The attributes
  7136. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  7137. * the different configuration criteria for the TDLS trigger from the
  7138. * host driver.
  7139. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  7140. * the TDLS setup / teardown through the implicit mode, only to the
  7141. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  7142. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  7143. * External mode works on top of the implicit mode, thus the host Driver
  7144. * is expected to be configured in TDLS Implicit mode too to operate in
  7145. * External mode. Configuring External mode alone without Implicit
  7146. * mode is invalid.
  7147. *
  7148. * All the above implementations work as expected only when the host driver
  7149. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  7150. * representing that the TDLS message exchange is not internal to the host
  7151. * driver, but depends on wpa_supplicant to do the message exchange.
  7152. */
  7153. enum qca_wlan_vendor_tdls_trigger_mode {
  7154. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  7155. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  7156. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  7157. };
  7158. /**
  7159. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  7160. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  7161. * that is hard-coded in the Board Data File (BDF).
  7162. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  7163. * that is hard-coded in the Board Data File (BDF).
  7164. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  7165. * that is hard-coded in the Board Data File (BDF).
  7166. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  7167. * that is hard-coded in the Board Data File (BDF).
  7168. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  7169. * that is hard-coded in the Board Data File (BDF).
  7170. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  7171. * source of SAR power limits, thereby disabling the SAR power
  7172. * limit feature.
  7173. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  7174. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7175. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  7176. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7177. *
  7178. * This enumerates the valid set of values that may be supplied for
  7179. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  7180. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  7181. * the response to an instance of the
  7182. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7183. */
  7184. enum qca_vendor_attr_sar_limits_selections {
  7185. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  7186. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  7187. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  7188. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  7189. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  7190. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  7191. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  7192. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  7193. };
  7194. /**
  7195. * enum qca_vendor_attr_sar_limits_spec_modulations -
  7196. * SAR limits specification modulation
  7197. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  7198. * CCK modulation
  7199. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  7200. * OFDM modulation
  7201. *
  7202. * This enumerates the valid set of values that may be supplied for
  7203. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  7204. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  7205. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  7206. * command or in the response to an instance of the
  7207. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7208. */
  7209. enum qca_vendor_attr_sar_limits_spec_modulations {
  7210. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  7211. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  7212. };
  7213. /**
  7214. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  7215. *
  7216. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  7217. * select which SAR power limit table should be used. Valid
  7218. * values are enumerated in enum
  7219. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  7220. * power limit selection is unchanged if this attribute is not
  7221. * present.
  7222. *
  7223. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  7224. * which specifies the number of SAR power limit specifications
  7225. * which will follow.
  7226. *
  7227. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  7228. * limit specifications. The number of specifications is
  7229. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  7230. * specification contains a set of
  7231. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  7232. * specification is uniquely identified by the attributes
  7233. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  7234. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  7235. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  7236. * contains as a payload the attribute
  7237. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  7238. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  7239. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  7240. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  7241. * needed based upon the value of
  7242. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  7243. *
  7244. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  7245. * indicate for which band this specification applies. Valid
  7246. * values are enumerated in enum %nl80211_band (although not all
  7247. * bands may be supported by a given device). If the attribute is
  7248. * not supplied then the specification will be applied to all
  7249. * supported bands.
  7250. *
  7251. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  7252. * to indicate for which antenna chain this specification
  7253. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  7254. * attribute is not supplied then the specification will be
  7255. * applied to all chains.
  7256. *
  7257. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  7258. * value to indicate for which modulation scheme this
  7259. * specification applies. Valid values are enumerated in enum
  7260. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  7261. * is not supplied then the specification will be applied to all
  7262. * modulation schemes.
  7263. *
  7264. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  7265. * value to specify the actual power limit value in units of 0.5
  7266. * dBm (i.e., a value of 11 represents 5.5 dBm).
  7267. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7268. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  7269. *
  7270. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  7271. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  7272. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7273. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  7274. *
  7275. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  7276. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  7277. */
  7278. enum qca_vendor_attr_sar_limits {
  7279. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  7280. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  7281. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  7282. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  7283. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  7284. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  7285. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  7286. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  7287. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  7288. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  7289. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  7290. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  7291. };
  7292. /**
  7293. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  7294. * offload which is an extension for LL_STATS.
  7295. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  7296. * If MAC counters do not exceed the threshold, FW will report monitored
  7297. * link layer counters periodically as this setting. The first report is
  7298. * always triggered by this timer.
  7299. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  7300. * For each MAC layer counter, FW holds two copies. One is the current value.
  7301. * The other is the last report. Once a current counter's increment is larger
  7302. * than the threshold, FW will indicate that counter to host even if the
  7303. * monitoring timer does not expire.
  7304. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  7305. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  7306. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  7307. * failure code.
  7308. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  7309. * 1: TX packet discarded
  7310. * 2: No ACK
  7311. * 3: Postpone
  7312. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  7313. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  7314. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  7315. * Threshold for all monitored parameters. If per counter dedicated threshold
  7316. * is not enabled, this threshold will take effect.
  7317. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  7318. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  7319. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  7320. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  7321. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  7322. * Bit0: TX counter unit in MSDU
  7323. * Bit1: TX counter unit in MPDU
  7324. * Bit2: TX counter unit in PPDU
  7325. * Bit3: TX counter unit in byte
  7326. * Bit4: Dropped MSDUs
  7327. * Bit5: Dropped Bytes
  7328. * Bit6: MPDU retry counter
  7329. * Bit7: MPDU failure counter
  7330. * Bit8: PPDU failure counter
  7331. * Bit9: MPDU aggregation counter
  7332. * Bit10: MCS counter for ACKed MPDUs
  7333. * Bit11: MCS counter for Failed MPDUs
  7334. * Bit12: TX Delay counter
  7335. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  7336. * Bit0: MAC RX counter unit in MPDU
  7337. * Bit1: MAC RX counter unit in byte
  7338. * Bit2: PHY RX counter unit in PPDU
  7339. * Bit3: PHY RX counter unit in byte
  7340. * Bit4: Disorder counter
  7341. * Bit5: Retry counter
  7342. * Bit6: Duplication counter
  7343. * Bit7: Discard counter
  7344. * Bit8: MPDU aggregation size counter
  7345. * Bit9: MCS counter
  7346. * Bit10: Peer STA power state change (wake to sleep) counter
  7347. * Bit11: Peer STA power save counter, total time in PS mode
  7348. * Bit12: Probe request counter
  7349. * Bit13: Other management frames counter
  7350. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  7351. * Bit0: Idle time
  7352. * Bit1: TX time
  7353. * Bit2: time RX in current bss
  7354. * Bit3: Out of current bss time
  7355. * Bit4: Wireless medium busy time
  7356. * Bit5: RX in bad condition time
  7357. * Bit6: TX in bad condition time
  7358. * Bit7: time wlan card not available
  7359. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  7360. * Bit0: Per channel SNR counter
  7361. * Bit1: Per channel noise floor counter
  7362. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  7363. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  7364. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  7365. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  7366. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  7367. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  7368. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  7369. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  7370. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  7371. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  7372. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  7373. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  7374. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  7375. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  7376. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  7377. * aggregation stats buffer length
  7378. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  7379. * buffer for ACKed MPDUs.
  7380. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  7381. * buffer for failed MPDUs.
  7382. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  7383. * length of delay stats array.
  7384. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  7385. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  7386. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  7387. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  7388. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  7389. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  7390. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  7391. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  7392. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  7393. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  7394. * flagged as retransmissions
  7395. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  7396. * flagged as duplicated
  7397. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  7398. * packets discarded
  7399. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  7400. * stats buffer.
  7401. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  7402. * stats buffer.
  7403. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  7404. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  7405. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  7406. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  7407. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  7408. * requests received
  7409. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  7410. * frames received
  7411. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  7412. * there is no TX, nor RX, nor interference.
  7413. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  7414. * transmitting packets.
  7415. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  7416. * for receiving.
  7417. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  7418. * interference detected.
  7419. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  7420. * receiving packets with errors.
  7421. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  7422. * TX no-ACK.
  7423. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  7424. * the chip is unable to work in normal conditions.
  7425. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  7426. * receiving packets in current BSS.
  7427. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  7428. * receiving packets not in current BSS.
  7429. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  7430. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  7431. * This is a container for per antenna signal stats.
  7432. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  7433. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  7434. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  7435. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  7436. */
  7437. enum qca_wlan_vendor_attr_ll_stats_ext {
  7438. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  7439. /* Attributes for configurations */
  7440. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  7441. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  7442. /* Peer STA power state change */
  7443. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  7444. /* TX failure event */
  7445. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  7446. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  7447. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  7448. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  7449. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  7450. /* MAC counters */
  7451. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  7452. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  7453. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  7454. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  7455. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  7456. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  7457. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  7458. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  7459. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  7460. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  7461. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  7462. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  7463. /* Sub-attributes for PEER_AC_TX */
  7464. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  7465. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  7466. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  7467. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  7468. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  7469. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  7470. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  7471. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  7472. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  7473. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  7474. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  7475. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  7476. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  7477. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  7478. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  7479. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  7480. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  7481. /* Sub-attributes for PEER_AC_RX */
  7482. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  7483. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  7484. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  7485. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  7486. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  7487. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  7488. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  7489. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  7490. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  7491. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  7492. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  7493. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  7494. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  7495. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  7496. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  7497. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  7498. /* Sub-attributes for CCA_BSS */
  7499. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  7500. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  7501. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  7502. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  7503. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  7504. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  7505. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  7506. /* sub-attribute for BSS_RX_TIME */
  7507. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  7508. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  7509. /* Sub-attributes for PEER_SIGNAL */
  7510. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  7511. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  7512. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  7513. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  7514. /* Sub-attributes for IFACE_BSS */
  7515. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  7516. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  7517. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  7518. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  7519. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  7520. };
  7521. /**
  7522. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  7523. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  7524. * in priority order as decided after ACS operation in userspace.
  7525. *
  7526. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  7527. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  7528. *
  7529. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  7530. * Array of nested values for each channel with following attributes:
  7531. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7532. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7533. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7534. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7535. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7536. * Note: If both the driver and user-space application supports the 6 GHz band,
  7537. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  7538. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  7539. * To maintain backward compatibility,
  7540. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  7541. * is still used if either of the driver or user space application doesn't
  7542. * support the 6 GHz band.
  7543. *
  7544. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  7545. * Primary channel number
  7546. * Note: If both the driver and user-space application supports the 6 GHz band,
  7547. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  7548. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  7549. * To maintain backward compatibility,
  7550. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  7551. * is still used if either of the driver or user space application doesn't
  7552. * support the 6 GHz band.
  7553. *
  7554. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  7555. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  7556. * Note: If both the driver and user-space application supports the 6 GHz band,
  7557. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  7558. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  7559. * To maintain backward compatibility,
  7560. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  7561. * is still used if either of the driver or user space application
  7562. * doesn't support the 6 GHz band.
  7563. *
  7564. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  7565. * VHT seg0 channel number
  7566. * Note: If both the driver and user-space application supports the 6 GHz band,
  7567. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  7568. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  7569. * To maintain backward compatibility,
  7570. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  7571. * is still used if either of the driver or user space application
  7572. * doesn't support the 6 GHz band.
  7573. *
  7574. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  7575. * VHT seg1 channel number
  7576. * Note: If both the driver and user-space application supports the 6 GHz band,
  7577. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  7578. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  7579. * To maintain backward compatibility,
  7580. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  7581. * is still used if either of the driver or user space application
  7582. * doesn't support the 6 GHz band.
  7583. *
  7584. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  7585. * Takes one of enum nl80211_chan_width values.
  7586. *
  7587. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  7588. * Array of nested values for each channel with following attributes:
  7589. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  7590. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  7591. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  7592. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  7593. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7594. * Note: If user-space application has no support of the 6 GHz band, this
  7595. * attribute is optional.
  7596. *
  7597. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  7598. * Primary channel frequency in MHz
  7599. * Note: If user-space application has no support of the 6 GHz band, this
  7600. * attribute is optional.
  7601. *
  7602. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  7603. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  7604. * Note: If user-space application has no support of the 6 GHz band, this
  7605. * attribute is optional.
  7606. *
  7607. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  7608. * VHT seg0 channel frequency in MHz
  7609. * Note: If user-space application has no support of the 6GHz band, this
  7610. * attribute is optional.
  7611. *
  7612. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  7613. * VHT seg1 channel frequency in MHz
  7614. * Note: If user-space application has no support of the 6 GHz band, this
  7615. * attribute is optional.
  7616. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
  7617. * Puncture Bitmap for selected primary channel. Optional if no support
  7618. * for EHT (IEEE 802.11be). Encoding for this attribute follows the
  7619. * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
  7620. * element.
  7621. */
  7622. enum qca_wlan_vendor_attr_external_acs_channels {
  7623. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  7624. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  7625. */
  7626. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  7627. /* Array of nested values for each channel with following attributes:
  7628. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  7629. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7630. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7631. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7632. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7633. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7634. */
  7635. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  7636. /* This (u8) will hold values of one of enum nl80211_bands */
  7637. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  7638. /* Primary channel (u8) */
  7639. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  7640. /* Secondary channel (u8) used for HT 40 MHz channels */
  7641. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  7642. /* VHT seg0 channel (u8) */
  7643. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  7644. /* VHT seg1 channel (u8) */
  7645. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  7646. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  7647. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  7648. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  7649. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  7650. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  7651. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  7652. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  7653. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
  7654. /* keep last */
  7655. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  7656. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  7657. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  7658. };
  7659. /**
  7660. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  7661. * the ACS has to be triggered. These values are used by
  7662. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  7663. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  7664. */
  7665. enum qca_wlan_vendor_acs_select_reason {
  7666. /* Represents the reason that the ACS triggered during the AP start */
  7667. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  7668. /* Represents the reason that DFS found with the current channel */
  7669. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  7670. /* Represents the reason that LTE co-exist in the current band. */
  7671. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  7672. /* Represents the reason that generic, uncategorized interference has
  7673. * been found in the current channel.
  7674. */
  7675. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  7676. /* Represents the reason that excessive 802.11 interference has been
  7677. * found in the current channel.
  7678. */
  7679. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  7680. /* Represents the reason that generic Continuous Wave (CW) interference
  7681. * has been found in the current channel.
  7682. */
  7683. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  7684. /* Represents the reason that Microwave Oven (MWO) interference has been
  7685. * found in the current channel.
  7686. */
  7687. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  7688. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  7689. * (FHSS) interference has been found in the current channel. This may
  7690. * include 802.11 waveforms.
  7691. */
  7692. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  7693. /* Represents the reason that non-802.11 generic Frequency-Hopping
  7694. * Spread Spectrum (FHSS) interference has been found in the current
  7695. * channel.
  7696. */
  7697. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  7698. /* Represents the reason that generic Wideband (WB) interference has
  7699. * been found in the current channel. This may include 802.11 waveforms.
  7700. */
  7701. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  7702. /* Represents the reason that non-802.11 generic Wideband (WB)
  7703. * interference has been found in the current channel.
  7704. */
  7705. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  7706. /* Represents the reason that Jammer interference has been found in the
  7707. * current channel.
  7708. */
  7709. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  7710. /* Represents the reason that ACS triggered by AFC */
  7711. QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
  7712. };
  7713. /**
  7714. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  7715. *
  7716. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  7717. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  7718. * to get the available value that this item can use.
  7719. *
  7720. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  7721. * value to specify the gpio number.
  7722. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7723. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7724. *
  7725. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  7726. * value to specify the gpio output level, please refer to enum qca_gpio_value
  7727. * to get the available value that this item can use.
  7728. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7729. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7730. *
  7731. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  7732. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  7733. * to get the available value that this item can use.
  7734. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7735. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7736. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7737. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7738. * attribute is present.
  7739. *
  7740. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  7741. * value to specify the gpio interrupt mode, please refer to enum
  7742. * qca_gpio_interrupt_mode to get the available value that this item can use.
  7743. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7744. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7745. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7746. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7747. * attribute is present.
  7748. *
  7749. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  7750. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  7751. * to get the available value that this item can use.
  7752. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7753. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7754. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7755. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7756. * attribute is present.
  7757. *
  7758. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  7759. * Value to specify the mux config. Meaning of a given value is dependent
  7760. * on the target chipset and gpio pin. Must be of the range 0-15.
  7761. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7762. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  7763. *
  7764. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  7765. * Value to specify the drive, Refer to enum qca_gpio_drive.
  7766. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7767. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  7768. *
  7769. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  7770. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7771. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  7772. * other parameters for the given GPIO will be obtained from internal
  7773. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  7774. * specified to indicate the GPIO pin being configured.
  7775. */
  7776. enum qca_wlan_gpio_attr {
  7777. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  7778. /* Unsigned 32-bit attribute for GPIO command */
  7779. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  7780. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  7781. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  7782. /* Unsigned 32-bit attribute for GPIO value to configure */
  7783. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  7784. /* Unsigned 32-bit attribute for GPIO pull type */
  7785. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  7786. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  7787. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  7788. /* Unsigned 32-bit attribute for GPIO direction to configure */
  7789. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  7790. /* Unsigned 32-bit attribute for GPIO mux config */
  7791. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  7792. /* Unsigned 32-bit attribute for GPIO drive */
  7793. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  7794. /* Flag attribute for using internal gpio configuration */
  7795. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  7796. /* keep last */
  7797. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  7798. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  7799. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  7800. };
  7801. /**
  7802. * enum gpio_cmd_type - GPIO configuration command type
  7803. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  7804. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  7805. */
  7806. enum qca_gpio_cmd_type {
  7807. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  7808. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  7809. };
  7810. /**
  7811. * enum qca_gpio_pull_type - GPIO pull type
  7812. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  7813. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  7814. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  7815. */
  7816. enum qca_gpio_pull_type {
  7817. QCA_WLAN_GPIO_PULL_NONE = 0,
  7818. QCA_WLAN_GPIO_PULL_UP = 1,
  7819. QCA_WLAN_GPIO_PULL_DOWN = 2,
  7820. QCA_WLAN_GPIO_PULL_MAX,
  7821. };
  7822. /**
  7823. * enum qca_gpio_direction - GPIO direction
  7824. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  7825. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  7826. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  7827. */
  7828. enum qca_gpio_direction {
  7829. QCA_WLAN_GPIO_INPUT = 0,
  7830. QCA_WLAN_GPIO_OUTPUT = 1,
  7831. QCA_WLAN_GPIO_DIR_MAX,
  7832. };
  7833. /**
  7834. * enum qca_gpio_value - GPIO Value
  7835. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  7836. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  7837. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  7838. */
  7839. enum qca_gpio_value {
  7840. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  7841. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  7842. QCA_WLAN_GPIO_LEVEL_MAX,
  7843. };
  7844. /**
  7845. * enum gpio_interrupt_mode - GPIO interrupt mode
  7846. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  7847. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  7848. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  7849. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  7850. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  7851. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  7852. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  7853. */
  7854. enum qca_gpio_interrupt_mode {
  7855. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  7856. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  7857. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  7858. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  7859. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  7860. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  7861. QCA_WLAN_GPIO_INTMODE_MAX,
  7862. };
  7863. /**
  7864. * enum gpio_drive - GPIO drive
  7865. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  7866. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  7867. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  7868. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  7869. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  7870. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  7871. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  7872. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  7873. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  7874. */
  7875. enum qca_gpio_drive {
  7876. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  7877. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  7878. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  7879. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  7880. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  7881. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  7882. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  7883. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  7884. QCA_WLAN_GPIO_DRIVE_MAX,
  7885. };
  7886. /**
  7887. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  7888. * MSDUQ depth threshold per peer per tid in the target
  7889. *
  7890. * Associated Vendor Command:
  7891. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  7892. */
  7893. enum qca_wlan_set_qdepth_thresh_attr {
  7894. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  7895. /* 6-byte MAC address */
  7896. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  7897. /* Unsigned 32-bit attribute for holding the TID */
  7898. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  7899. /* Unsigned 32-bit attribute for holding the update mask
  7900. * bit 0 - Update high priority msdu qdepth threshold
  7901. * bit 1 - Update low priority msdu qdepth threshold
  7902. * bit 2 - Update UDP msdu qdepth threshold
  7903. * bit 3 - Update Non UDP msdu qdepth threshold
  7904. * rest of bits are reserved
  7905. */
  7906. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  7907. /* Unsigned 32-bit attribute for holding the threshold value */
  7908. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  7909. /* keep last */
  7910. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  7911. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  7912. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  7913. };
  7914. /**
  7915. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  7916. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  7917. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  7918. * external ACS policies to select the channels w.r.t. the PCL weights.
  7919. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  7920. * their PCL weights.)
  7921. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  7922. * select a channel with non-zero PCL weight.
  7923. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  7924. * channel with non-zero PCL weight.
  7925. *
  7926. */
  7927. enum qca_wlan_vendor_attr_external_acs_policy {
  7928. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  7929. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  7930. };
  7931. /**
  7932. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  7933. */
  7934. enum qca_wlan_vendor_attr_spectral_scan {
  7935. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  7936. /*
  7937. * Number of times the chip enters spectral scan mode before
  7938. * deactivating spectral scans. When set to 0, chip will enter spectral
  7939. * scan mode continuously. u32 attribute.
  7940. */
  7941. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  7942. /*
  7943. * Spectral scan period. Period increment resolution is 256*Tclk,
  7944. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  7945. */
  7946. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  7947. /* Spectral scan priority. u32 attribute. */
  7948. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  7949. /* Number of FFT data points to compute. u32 attribute. */
  7950. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  7951. /*
  7952. * Enable targeted gain change before starting the spectral scan FFT.
  7953. * u32 attribute.
  7954. */
  7955. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  7956. /* Restart a queued spectral scan. u32 attribute. */
  7957. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  7958. /*
  7959. * Noise floor reference number for the calculation of bin power.
  7960. * u32 attribute.
  7961. */
  7962. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  7963. /*
  7964. * Disallow spectral scan triggers after TX/RX packets by setting
  7965. * this delay value to roughly SIFS time period or greater.
  7966. * u32 attribute.
  7967. */
  7968. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  7969. /*
  7970. * Number of strong bins (inclusive) per sub-channel, below
  7971. * which a signal is declared a narrow band tone. u32 attribute.
  7972. */
  7973. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  7974. /*
  7975. * Specify the threshold over which a bin is declared strong (for
  7976. * scan bandwidth analysis). u32 attribute.
  7977. */
  7978. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  7979. /* Spectral scan report mode. u32 attribute. */
  7980. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  7981. /*
  7982. * RSSI report mode, if the ADC RSSI is below
  7983. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  7984. * then FFTs will not trigger, but timestamps and summaries get
  7985. * reported. u32 attribute.
  7986. */
  7987. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  7988. /*
  7989. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  7990. * to ensure spectral scan reporting with normal error code.
  7991. * u32 attribute.
  7992. */
  7993. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  7994. /*
  7995. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  7996. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  7997. * u32 attribute.
  7998. */
  7999. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  8000. /*
  8001. * Format of FFT report to software for spectral scan triggered FFTs.
  8002. * 0: No FFT report (only spectral scan summary report)
  8003. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  8004. * report
  8005. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  8006. * bins (in-band) per FFT + spectral scan summary report
  8007. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  8008. * bins (all) per FFT + spectral scan summary report
  8009. * u32 attribute.
  8010. */
  8011. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  8012. /*
  8013. * Number of LSBs to shift out in order to scale the FFT bins.
  8014. * u32 attribute.
  8015. */
  8016. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  8017. /*
  8018. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  8019. * in dBm power. u32 attribute.
  8020. */
  8021. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  8022. /*
  8023. * Per chain enable mask to select input ADC for search FFT.
  8024. * u32 attribute.
  8025. */
  8026. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  8027. /*
  8028. * An unsigned 64-bit integer provided by host driver to identify the
  8029. * spectral scan request. This attribute is included in the scan
  8030. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  8031. * and used as an attribute in
  8032. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  8033. * specific scan to be stopped.
  8034. */
  8035. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  8036. /* Skip interval for FFT reports. u32 attribute */
  8037. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  8038. /* Set to report only one set of FFT results.
  8039. * u32 attribute.
  8040. */
  8041. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  8042. /* Debug level for spectral module in driver.
  8043. * 0 : Verbosity level 0
  8044. * 1 : Verbosity level 1
  8045. * 2 : Verbosity level 2
  8046. * 3 : Matched filterID display
  8047. * 4 : One time dump of FFT report
  8048. * u32 attribute.
  8049. */
  8050. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  8051. /* Type of spectral scan request. u32 attribute.
  8052. * It uses values defined in enum
  8053. * qca_wlan_vendor_attr_spectral_scan_request_type.
  8054. */
  8055. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  8056. /* This specifies the frequency span over which spectral
  8057. * scan would be carried out. Its value depends on the
  8058. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  8059. * the relation is as follows.
  8060. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8061. * Not applicable. Spectral scan would happen in the
  8062. * operating span.
  8063. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8064. * Center frequency (in MHz) of the span of interest or
  8065. * for convenience, center frequency (in MHz) of any channel
  8066. * in the span of interest. For 80+80 MHz agile spectral scan
  8067. * request it represents center frequency (in MHz) of the primary
  8068. * 80 MHz span or for convenience, center frequency (in MHz) of any
  8069. * channel in the primary 80 MHz span. If agile spectral scan is
  8070. * initiated without setting a valid frequency it returns the
  8071. * error code
  8072. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  8073. * u32 attribute.
  8074. */
  8075. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  8076. /* Spectral scan mode. u32 attribute.
  8077. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8078. * If this attribute is not present, it is assumed to be
  8079. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  8080. */
  8081. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  8082. /* Spectral scan error code. u32 attribute.
  8083. * It uses values defined in enum
  8084. * qca_wlan_vendor_spectral_scan_error_code.
  8085. * This attribute is included only in failure scenarios.
  8086. */
  8087. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  8088. /* 8-bit unsigned value to enable/disable debug of the
  8089. * Spectral DMA ring.
  8090. * 1-enable, 0-disable
  8091. */
  8092. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  8093. /* 8-bit unsigned value to enable/disable debug of the
  8094. * Spectral DMA buffers.
  8095. * 1-enable, 0-disable
  8096. */
  8097. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  8098. /* This specifies the frequency span over which spectral scan would be
  8099. * carried out. Its value depends on the value of
  8100. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  8101. * follows.
  8102. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8103. * Not applicable. Spectral scan would happen in the operating span.
  8104. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8105. * This attribute is applicable only for agile spectral scan
  8106. * requests in 80+80 MHz mode. It represents center frequency (in
  8107. * MHz) of the secondary 80 MHz span or for convenience, center
  8108. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  8109. * u32 attribute.
  8110. */
  8111. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  8112. /* This attribute specifies the bandwidth to be used for Spectral scan
  8113. * operation. This is an u8 attribute and uses the values in enum
  8114. * nl80211_chan_width. This is an optional attribute.
  8115. * If this attribute is not populated, the driver should configure the
  8116. * Spectral scan bandwidth to the maximum value supported by the target
  8117. * for the current operating bandwidth.
  8118. */
  8119. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  8120. /* Spectral FFT recapture flag attribute, to enable/disable FFT
  8121. * recapture. Recapture can only be enabled for Scan period greater
  8122. * than 52us.
  8123. * If this attribute is enabled, re-triggers will be enabled in uCode
  8124. * when AGC gain changes.
  8125. */
  8126. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
  8127. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  8128. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  8129. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  8130. };
  8131. /**
  8132. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  8133. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  8134. */
  8135. enum qca_wlan_vendor_attr_spectral_diag_stats {
  8136. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  8137. /* Number of spectral TLV signature mismatches.
  8138. * u64 attribute.
  8139. */
  8140. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  8141. /* Number of spectral phyerror events with insufficient length when
  8142. * parsing for secondary 80 search FFT report. u64 attribute.
  8143. */
  8144. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  8145. /* Number of spectral phyerror events without secondary 80
  8146. * search FFT report. u64 attribute.
  8147. */
  8148. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  8149. /* Number of spectral phyerror events with vht operation segment 1 id
  8150. * mismatches in search fft report. u64 attribute.
  8151. */
  8152. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  8153. /* Number of spectral phyerror events with vht operation segment 2 id
  8154. * mismatches in search fft report. u64 attribute.
  8155. */
  8156. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  8157. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  8158. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  8159. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  8160. };
  8161. /**
  8162. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  8163. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  8164. */
  8165. enum qca_wlan_vendor_attr_spectral_cap {
  8166. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  8167. /* Flag attribute to indicate phydiag capability */
  8168. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  8169. /* Flag attribute to indicate radar detection capability */
  8170. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  8171. /* Flag attribute to indicate spectral capability */
  8172. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  8173. /* Flag attribute to indicate advanced spectral capability */
  8174. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  8175. /* Spectral hardware generation. u32 attribute.
  8176. * It uses values defined in enum
  8177. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  8178. */
  8179. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  8180. /* Spectral bin scaling formula ID. u16 attribute.
  8181. * It uses values defined in enum
  8182. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  8183. */
  8184. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  8185. /* Spectral bin scaling param - low level offset.
  8186. * s16 attribute.
  8187. */
  8188. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  8189. /* Spectral bin scaling param - high level offset.
  8190. * s16 attribute.
  8191. */
  8192. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  8193. /* Spectral bin scaling param - RSSI threshold.
  8194. * s16 attribute.
  8195. */
  8196. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  8197. /* Spectral bin scaling param - default AGC max gain.
  8198. * u8 attribute.
  8199. */
  8200. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  8201. /* Flag attribute to indicate agile spectral scan capability
  8202. * for 20/40/80 MHz modes.
  8203. */
  8204. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  8205. /* Flag attribute to indicate agile spectral scan capability
  8206. * for 160 MHz mode.
  8207. */
  8208. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  8209. /* Flag attribute to indicate agile spectral scan capability
  8210. * for 80+80 MHz mode.
  8211. */
  8212. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  8213. /* Number of spectral detectors used for scan in 20 MHz.
  8214. * u32 attribute.
  8215. */
  8216. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  8217. /* Number of spectral detectors used for scan in 40 MHz.
  8218. * u32 attribute.
  8219. */
  8220. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  8221. /* Number of spectral detectors used for scan in 80 MHz.
  8222. * u32 attribute.
  8223. */
  8224. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  8225. /* Number of spectral detectors used for scan in 160 MHz.
  8226. * u32 attribute.
  8227. */
  8228. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  8229. /* Number of spectral detectors used for scan in 80+80 MHz.
  8230. * u32 attribute.
  8231. */
  8232. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  8233. /* Flag attribute to indicate agile spectral scan capability
  8234. * for 320 MHz mode.
  8235. */
  8236. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
  8237. /* Number of spectral detectors used for scan in 320 MHz.
  8238. * u32 attribute.
  8239. */
  8240. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
  8241. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  8242. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  8243. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  8244. };
  8245. /**
  8246. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  8247. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  8248. */
  8249. enum qca_wlan_vendor_attr_spectral_scan_status {
  8250. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  8251. /* Flag attribute to indicate whether spectral scan is enabled */
  8252. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  8253. /* Flag attribute to indicate whether spectral scan is in progress*/
  8254. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  8255. /* Spectral scan mode. u32 attribute.
  8256. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8257. * If this attribute is not present, normal mode
  8258. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  8259. * requested.
  8260. */
  8261. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  8262. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  8263. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  8264. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  8265. };
  8266. /**
  8267. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  8268. * wlan latency module.
  8269. *
  8270. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  8271. * power saving which would causing data exchange out of service, this
  8272. * would be a big impact on latency. For latency sensitive applications over
  8273. * Wi-Fi are intolerant to such operations and thus would configure them
  8274. * to meet their respective needs. It is well understood by such applications
  8275. * that altering the default behavior would degrade the Wi-Fi functionality
  8276. * w.r.t the above pointed WLAN operations.
  8277. *
  8278. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  8279. * Default WLAN operation level which throughput orientated.
  8280. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
  8281. * Use XR level to benefit XR (extended reality) application to achieve
  8282. * latency and power by via constraint scan/roaming/adaptive PS.
  8283. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  8284. * Use low latency level to benefit application like concurrent
  8285. * downloading or video streaming via constraint scan/adaptive PS.
  8286. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  8287. * Use ultra low latency level to benefit for gaming/voice
  8288. * application via constraint scan/roaming/adaptive PS.
  8289. */
  8290. enum qca_wlan_vendor_attr_config_latency_level {
  8291. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  8292. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  8293. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
  8294. /* legacy name */
  8295. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
  8296. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
  8297. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  8298. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  8299. /* keep last */
  8300. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  8301. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  8302. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  8303. };
  8304. /**
  8305. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  8306. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  8307. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  8308. * spectral scan request types.
  8309. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  8310. * set the spectral parameters and start scan.
  8311. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  8312. * only set the spectral parameters.
  8313. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  8314. * only start the spectral scan.
  8315. */
  8316. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  8317. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  8318. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  8319. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  8320. };
  8321. /**
  8322. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  8323. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  8324. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  8325. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  8326. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  8327. * spectral scan modes.
  8328. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  8329. * spectral scan in the current operating span.
  8330. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  8331. * spectral scan in the configured agile span.
  8332. */
  8333. enum qca_wlan_vendor_spectral_scan_mode {
  8334. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  8335. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  8336. };
  8337. /**
  8338. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  8339. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  8340. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  8341. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  8342. * of a parameter is not supported.
  8343. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  8344. * mode is not supported.
  8345. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  8346. * has invalid value.
  8347. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  8348. * is not initialized.
  8349. */
  8350. enum qca_wlan_vendor_spectral_scan_error_code {
  8351. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  8352. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  8353. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  8354. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  8355. };
  8356. /**
  8357. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  8358. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  8359. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8360. * spectral hardware generation.
  8361. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  8362. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  8363. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  8364. */
  8365. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  8366. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  8367. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  8368. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  8369. };
  8370. /**
  8371. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  8372. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  8373. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8374. * Spectral bin scaling formula ID.
  8375. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  8376. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  8377. * and RSSI threshold based formula.
  8378. */
  8379. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  8380. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  8381. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  8382. };
  8383. /**
  8384. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  8385. * RF Operating Parameter (RROP) information is available, and if so, at which
  8386. * point in the application-driver interaction sequence it can be retrieved by
  8387. * the application from the driver. This point may vary by architecture and
  8388. * other factors. This is a u16 value.
  8389. */
  8390. enum qca_wlan_vendor_attr_rropavail_info {
  8391. /* RROP information is unavailable. */
  8392. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  8393. /* RROP information is available and the application can retrieve the
  8394. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  8395. * event from the driver.
  8396. */
  8397. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  8398. /* RROP information is available only after a vendor specific scan
  8399. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  8400. * successfully completed. The application can retrieve the information
  8401. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  8402. * the driver.
  8403. */
  8404. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  8405. };
  8406. /**
  8407. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  8408. * Representative RF Operating Parameter (RROP) information. It is sent for the
  8409. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  8410. * intended for use by external Auto Channel Selection applications. It provides
  8411. * guidance values for some RF parameters that are used by the system during
  8412. * operation. These values could vary by channel, band, radio, and so on.
  8413. */
  8414. enum qca_wlan_vendor_attr_rrop_info {
  8415. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  8416. /* Representative Tx Power List (RTPL) which has an array of nested
  8417. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  8418. */
  8419. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  8420. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  8421. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  8422. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  8423. };
  8424. /**
  8425. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  8426. * entry instances in the Representative Tx Power List (RTPL). It provides
  8427. * simplified power values intended for helping external Auto channel Selection
  8428. * applications compare potential Tx power performance between channels, other
  8429. * operating conditions remaining identical. These values are not necessarily
  8430. * the actual Tx power values that will be used by the system. They are also not
  8431. * necessarily the max or average values that will be used. Instead, they are
  8432. * relative, summarized keys for algorithmic use computed by the driver or
  8433. * underlying firmware considering a number of vendor specific factors.
  8434. */
  8435. enum qca_wlan_vendor_attr_rtplinst {
  8436. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  8437. /* Primary channel number (u8).
  8438. * Note: If both the driver and user space application support the
  8439. * 6 GHz band, this attribute is deprecated and
  8440. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  8441. * maintain backward compatibility,
  8442. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  8443. * driver or user space application or both do not support the 6 GHz
  8444. * band.
  8445. */
  8446. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  8447. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  8448. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  8449. /* Representative Tx power in dBm (s32) with emphasis on range. */
  8450. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  8451. /* Primary channel center frequency (u32) in MHz */
  8452. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  8453. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  8454. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  8455. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  8456. };
  8457. /**
  8458. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  8459. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8460. *
  8461. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  8462. * array of nested values as per attributes in
  8463. * enum qca_wlan_vendor_attr_mac_mode_info.
  8464. */
  8465. enum qca_wlan_vendor_attr_mac {
  8466. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  8467. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  8468. /* keep last */
  8469. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  8470. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  8471. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  8472. };
  8473. /**
  8474. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  8475. * WiFi netdev interface on a respective MAC. Used by the attribute
  8476. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  8477. *
  8478. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  8479. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  8480. * the connected Wi-Fi interface(u32).
  8481. */
  8482. enum qca_wlan_vendor_attr_mac_iface_info {
  8483. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  8484. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  8485. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  8486. /* keep last */
  8487. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  8488. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  8489. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  8490. };
  8491. /**
  8492. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  8493. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  8494. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8495. *
  8496. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  8497. * MAC (u32)
  8498. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  8499. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  8500. * in enum nl80211_band.
  8501. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  8502. * interfaces associated with this MAC. Represented by enum
  8503. * qca_wlan_vendor_attr_mac_iface_info.
  8504. */
  8505. enum qca_wlan_vendor_attr_mac_info {
  8506. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  8507. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  8508. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  8509. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  8510. /* keep last */
  8511. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  8512. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  8513. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  8514. };
  8515. /**
  8516. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  8517. * to get thermal status from driver/firmware.
  8518. * enum values are used for NL attributes encapsulated inside
  8519. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  8520. *
  8521. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  8522. * of a thermal level in Celsius. u32 size.
  8523. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  8524. * of a thermal level in Celsius. u32 size.
  8525. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  8526. * thermal level in milliseconds. u32 size.
  8527. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  8528. * of times the temperature crossed into the temperature range defined by the
  8529. * thermal level from both higher and lower directions. u32 size.
  8530. */
  8531. enum qca_wlan_vendor_attr_thermal_stats {
  8532. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  8533. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  8534. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  8535. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  8536. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  8537. /* keep last */
  8538. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  8539. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  8540. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  8541. };
  8542. /**
  8543. * enum he_fragmentation_val - HE fragmentation support values
  8544. * Indicates level of dynamic fragmentation that is supported by
  8545. * a STA as a recipient.
  8546. * HE fragmentation values are defined as per 11ax spec and are used in
  8547. * HE capability IE to advertise the support. These values are validated
  8548. * in the driver to check the device capability and advertised in the HE
  8549. * capability element.
  8550. *
  8551. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  8552. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  8553. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  8554. * within an A-MPDU that is not an S-MPDU.
  8555. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  8556. * contained within an MPDU or S-MPDU and support for up to one dynamic
  8557. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  8558. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  8559. * MPDU or S-MPDU.
  8560. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  8561. * contained within an MPDU or S-MPDU and support for multiple dynamic
  8562. * fragments for each MSDU and for each A-MSDU if supported by the
  8563. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  8564. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  8565. */
  8566. enum he_fragmentation_val {
  8567. HE_FRAG_DISABLE,
  8568. HE_FRAG_LEVEL1,
  8569. HE_FRAG_LEVEL2,
  8570. HE_FRAG_LEVEL3,
  8571. };
  8572. /**
  8573. * enum he_mcs_config - HE MCS support configuration
  8574. *
  8575. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  8576. * These values are used in driver to configure the HE MCS map to advertise
  8577. * Tx/Rx MCS map in HE capability and these values are applied for all the
  8578. * streams supported by the device. To configure MCS for different bandwidths,
  8579. * vendor command needs to be sent using this attribute with appropriate value.
  8580. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  8581. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  8582. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  8583. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  8584. *
  8585. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  8586. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  8587. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  8588. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  8589. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  8590. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  8591. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  8592. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  8593. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  8594. */
  8595. enum he_mcs_config {
  8596. HE_80_MCS0_7 = 0,
  8597. HE_80_MCS0_9 = 1,
  8598. HE_80_MCS0_11 = 2,
  8599. HE_160_MCS0_7 = 4,
  8600. HE_160_MCS0_9 = 5,
  8601. HE_160_MCS0_11 = 6,
  8602. HE_80p80_MCS0_7 = 8,
  8603. HE_80p80_MCS0_9 = 9,
  8604. HE_80p80_MCS0_11 = 10,
  8605. };
  8606. /**
  8607. * enum qca_wlan_ba_session_config - BA session configuration
  8608. *
  8609. * Indicates the configuration values for BA session configuration attribute.
  8610. *
  8611. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  8612. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  8613. */
  8614. enum qca_wlan_ba_session_config {
  8615. QCA_WLAN_ADD_BA = 1,
  8616. QCA_WLAN_DELETE_BA = 2,
  8617. };
  8618. /**
  8619. * enum qca_wlan_ac_type - access category type
  8620. *
  8621. * Indicates the access category type value.
  8622. *
  8623. * @QCA_WLAN_AC_BE: BE access category
  8624. * @QCA_WLAN_AC_BK: BK access category
  8625. * @QCA_WLAN_AC_VI: VI access category
  8626. * @QCA_WLAN_AC_VO: VO access category
  8627. * @QCA_WLAN_AC_ALL: All ACs
  8628. */
  8629. enum qca_wlan_ac_type {
  8630. QCA_WLAN_AC_BE = 0,
  8631. QCA_WLAN_AC_BK = 1,
  8632. QCA_WLAN_AC_VI = 2,
  8633. QCA_WLAN_AC_VO = 3,
  8634. QCA_WLAN_AC_ALL = 4,
  8635. };
  8636. /**
  8637. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  8638. *
  8639. * Indicates the HE LTF configuration value.
  8640. *
  8641. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  8642. * the mandatory HE-LTF based on the GI setting
  8643. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  8644. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  8645. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  8646. */
  8647. enum qca_wlan_he_ltf_cfg {
  8648. QCA_WLAN_HE_LTF_AUTO = 0,
  8649. QCA_WLAN_HE_LTF_1X = 1,
  8650. QCA_WLAN_HE_LTF_2X = 2,
  8651. QCA_WLAN_HE_LTF_4X = 3,
  8652. };
  8653. /**
  8654. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  8655. *
  8656. * Indicates the HE trigger frame MAC padding duration value.
  8657. *
  8658. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  8659. * process the trigger frame.
  8660. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  8661. * trigger frame.
  8662. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  8663. * trigger frame.
  8664. */
  8665. enum qca_wlan_he_mac_padding_dur {
  8666. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  8667. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  8668. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  8669. };
  8670. /**
  8671. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  8672. *
  8673. * Indicates the HE Operating mode control channel width setting value.
  8674. *
  8675. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  8676. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  8677. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  8678. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  8679. */
  8680. enum qca_wlan_he_om_ctrl_ch_bw {
  8681. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  8682. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  8683. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  8684. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  8685. };
  8686. /**
  8687. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  8688. *
  8689. * Indicates the frame types to use for keep alive data.
  8690. *
  8691. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  8692. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  8693. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  8694. */
  8695. enum qca_wlan_keep_alive_data_type {
  8696. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  8697. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  8698. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  8699. };
  8700. /**
  8701. * enum eht_mcs_config - EHT MCS support configuration
  8702. *
  8703. * Configures the EHT Tx/Rx MCS map in EHT Capability element.
  8704. * These values are used in the driver to configure the EHT MCS map to advertise
  8705. * Tx/Rx MCS map in EHT capability and these values are applied for all the
  8706. * streams supported by the device.
  8707. * @EHT_MCS0_7: EHT MCS 0 to 7 support
  8708. * @EHT_MCS0_9: EHT MCS 0 to 9 support
  8709. * @EHT_MCS0_11: EHT MCS 0 to 11 support
  8710. * @EHT_MCS0_13: EHT MCS 0 to 13 support
  8711. */
  8712. enum eht_mcs_config {
  8713. EHT_MCS0_7 = 0,
  8714. EHT_MCS0_9 = 1,
  8715. EHT_MCS0_11 = 2,
  8716. EHT_MCS0_13 = 3,
  8717. };
  8718. /**
  8719. * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
  8720. * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
  8721. * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
  8722. * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
  8723. * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
  8724. * multi-link multi radio mode.
  8725. * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
  8726. * multi-link multi radio mode.
  8727. */
  8728. enum qca_wlan_eht_mlo_mode {
  8729. QCA_WLAN_EHT_MODE_INVALID = 0,
  8730. QCA_WLAN_EHT_MLSR = 1,
  8731. QCA_WLAN_EHT_EMLSR = 2,
  8732. QCA_WLAN_EHT_NON_STR_MLMR = 3,
  8733. QCA_WLAN_EHT_STR_MLMR = 4,
  8734. };
  8735. /**
  8736. * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
  8737. * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
  8738. * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
  8739. */
  8740. enum qca_wlan_emlsr_mode {
  8741. QCA_WLAN_EMLSR_MODE_ENTER = 0,
  8742. QCA_WLAN_EMLSR_MODE_EXIT = 1,
  8743. };
  8744. /**
  8745. * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
  8746. * EHT operating mode control transmit request. These attributes are
  8747. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
  8748. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  8749. *
  8750. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  8751. * indicates the maximum number of spatial streams, NSS, that the STA
  8752. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  8753. * and is set to NSS - 1.
  8754. *
  8755. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  8756. * indicates the operating channel width supported by the STA for both
  8757. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  8758. *
  8759. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  8760. * indicates the all trigger based UL MU operations by the STA.
  8761. * 0 - UL MU operations are enabled by the STA.
  8762. * 1 - All triggered UL MU transmissions are suspended by the STA.
  8763. *
  8764. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  8765. * indicates the maximum number of space-time streams, NSTS, that
  8766. * the STA supports in transmission and is set to NSTS - 1.
  8767. *
  8768. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  8769. * combined with the UL MU Disable subfield and the recipient's setting
  8770. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  8771. * capabilities to determine which HE TB PPDUs are possible by the
  8772. * STA to transmit.
  8773. * 0 - UL MU data operations are enabled by the STA.
  8774. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  8775. * bit is not set, else UL MU Tx is suspended.
  8776. *
  8777. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  8778. * Control subfield combined with the Rx NSS subfield in the OM Control subfield
  8779. * indicates NSS - 1, where NSS is the maximum number of spatial streams that
  8780. * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
  8781. *
  8782. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
  8783. * 320 MHz operating channel width supported by the EHT STA for both reception
  8784. * and transmission.
  8785. *
  8786. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  8787. * Control subfield combined with the Tx NSTS subfield in OM Control subfield
  8788. * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
  8789. * that the STA supports in transmission for PPDU bandwidths less than or equal
  8790. * to 80 MHz.
  8791. */
  8792. enum qca_wlan_vendor_attr_omi_tx {
  8793. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  8794. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  8795. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  8796. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  8797. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  8798. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  8799. QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
  8800. QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
  8801. QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
  8802. /* keep last */
  8803. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
  8804. QCA_WLAN_VENDOR_ATTR_OMI_MAX =
  8805. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
  8806. };
  8807. /* deprecated legacy names */
  8808. #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
  8809. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
  8810. #define qca_wlan_vendor_attr_he_omi_tx \
  8811. qca_wlan_vendor_attr_omi_tx
  8812. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
  8813. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
  8814. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
  8815. QCA_WLAN_VENDOR_ATTR_OMI_MAX
  8816. /**
  8817. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  8818. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  8819. *
  8820. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  8821. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  8822. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  8823. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  8824. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  8825. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  8826. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  8827. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  8828. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  8829. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  8830. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  8831. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  8832. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  8833. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  8834. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  8835. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  8836. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  8837. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  8838. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  8839. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  8840. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  8841. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  8842. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  8843. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  8844. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  8845. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  8846. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  8847. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  8848. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  8849. */
  8850. enum qca_wlan_vendor_phy_mode {
  8851. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  8852. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  8853. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  8854. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  8855. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  8856. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  8857. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  8858. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  8859. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  8860. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  8861. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  8862. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  8863. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  8864. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  8865. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  8866. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  8867. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  8868. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  8869. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  8870. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  8871. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  8872. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  8873. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  8874. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  8875. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  8876. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  8877. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  8878. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  8879. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  8880. };
  8881. /* Attributes for data used by
  8882. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  8883. */
  8884. enum qca_wlan_vendor_attr_wifi_test_config {
  8885. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  8886. /* 8-bit unsigned value to configure the driver to enable/disable
  8887. * WMM feature. This attribute is used to configure testbed device.
  8888. * 1-enable, 0-disable
  8889. */
  8890. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  8891. /* 8-bit unsigned value to configure the driver to accept/reject
  8892. * the addba request from peer. This attribute is used to configure
  8893. * the testbed device.
  8894. * 1-accept addba, 0-reject addba
  8895. */
  8896. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  8897. /* 8-bit unsigned value to configure the driver to send or not to
  8898. * send the addba request to peer.
  8899. * This attribute is used to configure the testbed device.
  8900. * 1-send addba, 0-do not send addba
  8901. */
  8902. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  8903. /* 8-bit unsigned value to indicate the HE fragmentation support.
  8904. * Uses enum he_fragmentation_val values.
  8905. * This attribute is used to configure the testbed device to
  8906. * allow the advertised hardware capabilities to be downgraded
  8907. * for testing purposes.
  8908. */
  8909. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  8910. /* 8-bit unsigned value to indicate the HE MCS support.
  8911. * Uses enum he_mcs_config values.
  8912. * This attribute is used to configure the testbed device to
  8913. * allow the advertised hardware capabilities to be downgraded
  8914. * for testing purposes.
  8915. */
  8916. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  8917. /* 8-bit unsigned value to configure the driver to allow or not to
  8918. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  8919. * This attribute is used to configure the testbed device.
  8920. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  8921. */
  8922. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  8923. /* 8-bit unsigned value to configure the driver to add a
  8924. * new BA session or delete the existing BA session for
  8925. * given TID. ADDBA command uses the buffer size and tid
  8926. * configuration if user specifies the values else default
  8927. * value for buffer size is used for all tids if the tid
  8928. * also not specified. For DEL_BA command TID value is
  8929. * required to process the command.
  8930. * Uses enum qca_wlan_ba_session_config values.
  8931. * This attribute is used to configure the testbed device.
  8932. */
  8933. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  8934. /* 16-bit unsigned value to configure the buffer size in addba
  8935. * request and response frames.
  8936. * This attribute is used to configure the testbed device.
  8937. * The range of the value is 0 to 256.
  8938. */
  8939. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  8940. /* 8-bit unsigned value to configure the buffer size in addba
  8941. * request and response frames.
  8942. * This attribute is used to configure the testbed device.
  8943. */
  8944. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  8945. /* 8-bit unsigned value to configure the no ack policy.
  8946. * To configure no ack policy, access category value
  8947. * is required to process the command.
  8948. * This attribute is used to configure the testbed device.
  8949. * 1 - enable no ack, 0 - disable no ack
  8950. */
  8951. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  8952. /* 8-bit unsigned value to configure the AC for no ack policy
  8953. * This attribute is used to configure the testbed device.
  8954. * uses the enum qca_wlan_ac_type values
  8955. */
  8956. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  8957. /* 8-bit unsigned value to configure the HE LTF
  8958. * This attribute is used to configure the testbed device.
  8959. * Uses the enum qca_wlan_he_ltf_cfg values.
  8960. */
  8961. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  8962. /* 8-bit unsigned value to configure the tx beamformee.
  8963. * This attribute is used to configure the testbed device.
  8964. * 1 - enable, 0 - disable.
  8965. */
  8966. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  8967. /* 8-bit unsigned value to configure the tx beamformee number of
  8968. * space-time streams.
  8969. * This attribute is used to configure the testbed device.
  8970. * The range of the value is 0 to 8
  8971. */
  8972. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  8973. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  8974. * This attribute is used to configure the testbed device.
  8975. * Uses the enum qca_wlan_ac_type values.
  8976. */
  8977. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  8978. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  8979. * To configure MU EDCA AIFSN value, MU EDCA access category value
  8980. * is required to process the command.
  8981. * This attribute is used to configure the testbed device.
  8982. */
  8983. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  8984. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  8985. * given AC.
  8986. * To configure MU EDCA ECW min value, MU EDCA access category value
  8987. * is required to process the command.
  8988. * This attribute is used to configure the testbed device.
  8989. */
  8990. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  8991. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  8992. * given AC.
  8993. * To configure MU EDCA ECW max value, MU EDCA access category value
  8994. * is required to process the command.
  8995. * This attribute is used to configure the testbed device.
  8996. */
  8997. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  8998. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  8999. * To configure MU EDCA timer value, MU EDCA access category value
  9000. * is required to process the command.
  9001. * This attribute is used to configure the testbed device.
  9002. */
  9003. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  9004. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  9005. * duration.
  9006. * This attribute is used to configure the testbed device.
  9007. * Uses the enum qca_wlan_he_mac_padding_dur values.
  9008. */
  9009. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  9010. /* 8-bit unsigned value to override the MU EDCA params to defaults
  9011. * regardless of the AP beacon MU EDCA params. If it is enabled use
  9012. * the default values else use the MU EDCA params from AP beacon.
  9013. * This attribute is used to configure the testbed device.
  9014. * 1 - enable override, 0 - disable.
  9015. */
  9016. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  9017. /* 8-bit unsigned value to configure the support for receiving
  9018. * an MPDU that contains an operating mode control subfield.
  9019. * This attribute is used to configure the testbed device.
  9020. * 1-enable, 0-disable.
  9021. */
  9022. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  9023. /* Nested attribute values required to setup the TWT session.
  9024. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  9025. * information to set up the session. It contains broadcast flags,
  9026. * set_up flags, trigger value, flow type, flow ID, wake interval
  9027. * exponent, protection, target wake time, wake duration, wake interval
  9028. * mantissa. These nested attributes are used to setup a host triggered
  9029. * TWT session.
  9030. */
  9031. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  9032. /* This nested attribute is used to terminate the current TWT session.
  9033. * It does not currently carry any attributes.
  9034. */
  9035. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  9036. /* This nested attribute is used to suspend the current TWT session.
  9037. * It does not currently carry any attributes.
  9038. */
  9039. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  9040. /* Nested attribute values to indicate the request for resume.
  9041. * This attribute is used to resume the TWT session.
  9042. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  9043. * parameters required to resume the TWT session.
  9044. */
  9045. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  9046. /* 8-bit unsigned value to set the HE operating mode control
  9047. * (OM CTRL) Channel Width subfield.
  9048. * The Channel Width subfield indicates the operating channel width
  9049. * supported by the STA for both reception and transmission.
  9050. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  9051. * This setting is cleared with the
  9052. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9053. * flag attribute to reset defaults.
  9054. * This attribute is used to configure the testbed device.
  9055. */
  9056. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  9057. /* 8-bit unsigned value to configure the number of spatial
  9058. * streams in HE operating mode control field.
  9059. * This setting is cleared with the
  9060. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9061. * flag attribute to reset defaults.
  9062. * This attribute is used to configure the testbed device.
  9063. */
  9064. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  9065. /* Flag attribute to configure the UL MU disable bit in
  9066. * HE operating mode control field.
  9067. * This setting is cleared with the
  9068. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9069. * flag attribute to reset defaults.
  9070. * This attribute is used to configure the testbed device.
  9071. */
  9072. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  9073. /* Flag attribute to clear the previously set HE operating mode
  9074. * control field configuration.
  9075. * This attribute is used to configure the testbed device to reset
  9076. * defaults to clear any previously set HE operating mode control
  9077. * field configuration.
  9078. */
  9079. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  9080. /* 8-bit unsigned value to configure HE single user PPDU
  9081. * transmission. By default this setting is disabled and it
  9082. * is disabled in the reset defaults of the device configuration.
  9083. * This attribute is used to configure the testbed device.
  9084. * 1-enable, 0-disable
  9085. */
  9086. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  9087. /* 8-bit unsigned value to configure action frame transmission
  9088. * in HE trigger based PPDU transmission.
  9089. * By default this setting is disabled and it is disabled in
  9090. * the reset defaults of the device configuration.
  9091. * This attribute is used to configure the testbed device.
  9092. * 1-enable, 0-disable
  9093. */
  9094. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  9095. /* Nested attribute to indicate HE operating mode control field
  9096. * transmission. It contains operating mode control field Nss,
  9097. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  9098. * These nested attributes are used to send HE operating mode control
  9099. * with configured values.
  9100. * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
  9101. * This attribute is used to configure the testbed device.
  9102. */
  9103. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
  9104. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  9105. * support for the reception of a frame that carries an HE variant
  9106. * HT Control field.
  9107. * This attribute is used to configure the testbed device.
  9108. * 1-enable, 0-disable
  9109. */
  9110. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  9111. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  9112. * This attribute is used to configure the testbed device.
  9113. * 1-enable, 0-disable
  9114. */
  9115. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  9116. /* 8-bit unsigned value to configure HE testbed defaults.
  9117. * This attribute is used to configure the testbed device.
  9118. * 1-set the device HE capabilities to testbed defaults.
  9119. * 0-reset the device HE capabilities to supported config.
  9120. */
  9121. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  9122. /* 8-bit unsigned value to configure twt request support.
  9123. * This attribute is used to configure the testbed device.
  9124. * 1-enable, 0-disable.
  9125. */
  9126. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  9127. /* 8-bit unsigned value to configure protection for Management
  9128. * frames when PMF is enabled for the association.
  9129. * This attribute is used to configure the testbed device.
  9130. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  9131. */
  9132. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  9133. /* Flag attribute to inject Disassociation frame to the connected AP.
  9134. * This attribute is used to configure the testbed device.
  9135. */
  9136. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  9137. /* 8-bit unsigned value to configure an override for the RSNXE Used
  9138. * subfield in the MIC control field of the FTE in FT Reassociation
  9139. * Request frame.
  9140. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  9141. * This attribute is used to configure the testbed device.
  9142. * This attribute can be configured when STA is in disconnected or
  9143. * associated state and the configuration is valid until the next
  9144. * disconnection.
  9145. */
  9146. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  9147. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  9148. * Switch Announcement) when STA is in connected state.
  9149. * 0 - Default behavior, 1 - Ignore CSA.
  9150. * This attribute is used to configure the testbed device.
  9151. * This attribute can be configured when STA is in disconnected or
  9152. * associated state and the configuration is valid until the next
  9153. * disconnection.
  9154. */
  9155. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  9156. /* Nested attribute values required to configure OCI (Operating Channel
  9157. * Information). Attributes defined in enum
  9158. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  9159. * This attribute is used to configure the testbed device.
  9160. * This attribute can be configured when STA is in disconnected or
  9161. * associated state and the configuration is valid until the next
  9162. * disconnection.
  9163. */
  9164. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  9165. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  9166. * Query timeout. If this configuration is enabled STA shall not send
  9167. * Deauthentication frmae when SA Query times out (mainly, after a
  9168. * channel switch when OCV is enabled).
  9169. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  9170. * This attribute is used to configure the testbed device.
  9171. * This attribute can be configured only when STA is in associated state
  9172. * and the configuration is valid until the disconnection.
  9173. */
  9174. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  9175. /* 8-bit unsigned value to configure the driver/firmware to start or
  9176. * stop transmitting FILS discovery frames.
  9177. * 0 - Stop transmitting FILS discovery frames
  9178. * 1 - Start transmitting FILS discovery frames
  9179. * This attribute is used to configure the testbed device.
  9180. * This attribute can be configured only in AP mode and the
  9181. * configuration is valid until AP restart.
  9182. */
  9183. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  9184. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9185. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  9186. * information field.
  9187. * 0 - Disable full bandwidth UL MU-MIMO subfield
  9188. * 1 - Enable full bandwidth UL MU-MIMO subfield
  9189. * This attribute is used to configure the testbed device.
  9190. */
  9191. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  9192. /* 16-bit unsigned value to configure the driver with a specific BSS
  9193. * max idle period to advertise in the BSS Max Idle Period element
  9194. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  9195. * This attribute is used to configure the testbed device.
  9196. */
  9197. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  9198. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  9199. * for data transmission.
  9200. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  9201. * This attribute is used to configure the testbed device.
  9202. */
  9203. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  9204. /* 8-bit unsigned value to configure the driver to disable data and
  9205. * management response frame transmission to test the BSS max idle
  9206. * feature.
  9207. * 0 - Default behavior, 1 - Disable data and management response Tx.
  9208. * This attribute is used to configure the testbed device.
  9209. */
  9210. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  9211. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9212. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  9213. * information field.
  9214. * 0 - Disable Punctured Preamble Rx subfield
  9215. * 1 - Enable Punctured Preamble Rx subfield
  9216. * This attribute is used to configure the testbed device.
  9217. */
  9218. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  9219. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  9220. * requirement mismatch for 6 GHz connection.
  9221. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  9222. * This attribute is used to configure the testbed device.
  9223. */
  9224. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  9225. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  9226. * connection with all security modes.
  9227. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  9228. * modes.
  9229. * This attribute is used for testing purposes.
  9230. */
  9231. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  9232. /* 8-bit unsigned value to configure the driver to transmit data with
  9233. * ER SU PPDU type.
  9234. *
  9235. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  9236. * This attribute is used for testing purposes.
  9237. */
  9238. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  9239. /* 8-bit unsigned value to configure the driver to use Data or
  9240. * Management frame type for keep alive data.
  9241. * Uses enum qca_wlan_keep_alive_data_type values.
  9242. *
  9243. * This attribute is used for testing purposes.
  9244. */
  9245. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  9246. /* 8-bit unsigned value to configure the driver to use scan request
  9247. * BSSID value in Probe Request frame RA(A1) during the scan. The
  9248. * driver saves this configuration and applies this setting to all user
  9249. * space scan requests until the setting is cleared. If this
  9250. * configuration is set, the driver uses the BSSID value from the scan
  9251. * request to set the RA(A1) in the Probe Request frames during the
  9252. * scan.
  9253. *
  9254. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  9255. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  9256. * This attribute is used for testing purposes.
  9257. */
  9258. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  9259. /* 8-bit unsigned value to configure the driver to enable/disable the
  9260. * BSS max idle period support.
  9261. *
  9262. * 0 - Disable the BSS max idle support.
  9263. * 1 - Enable the BSS max idle support.
  9264. * This attribute is used for testing purposes.
  9265. */
  9266. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  9267. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9268. * disable Rx control frame to MultiBSS subfield in the HE MAC
  9269. * capabilities information field.
  9270. * 0 - Disable Rx control frame to MultiBSS subfield
  9271. * 1 - Enable Rx control frame to MultiBSS subfield
  9272. * This attribute is used to configure the testbed device.
  9273. */
  9274. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  9275. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9276. * disable Broadcast TWT support subfield in the HE MAC capabilities
  9277. * information field.
  9278. * 0 - Disable Broadcast TWT support subfield
  9279. * 1 - Enable Broadcast TWT support subfield
  9280. * This attribute is used to configure the testbed device.
  9281. */
  9282. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  9283. /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
  9284. * mode for 802.11be MLO capable devices. If the attribute is set to 1,
  9285. * and if the FW supports this capability too, then the STA host
  9286. * advertises this capability to AP over assoc request frame. This
  9287. * attribute will not have any effect on legacy devices with no 802.11be
  9288. * support.
  9289. * 0 - Default behavior
  9290. * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
  9291. * This attribute is used to configure the testbed device.
  9292. */
  9293. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
  9294. /* 8-bit unsigned value to configure the driver to enable/disable the
  9295. * periodic sounding for Tx beamformer functionality. The default
  9296. * behavior uses algorithm to do sounding based on packet stats.
  9297. *
  9298. * 0 - Default behavior.
  9299. * 1 - Enable the periodic sounding for Tx beamformer.
  9300. * This attribute is used for testing purposes.
  9301. */
  9302. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
  9303. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9304. * to indicate the maximum number of spatial streams that the STA
  9305. * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
  9306. * The range of the value is 3 to 7.
  9307. * This attribute is used to configure the testbed device.
  9308. */
  9309. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
  9310. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9311. * to indicate the maximum number of spatial streams that the STA
  9312. * can receive in an EHT sounding NDP for 160 MHz bandwidth.
  9313. * The range of the value is 3 to 7.
  9314. * This attribute is used to configure the testbed device.
  9315. */
  9316. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
  9317. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9318. * to indicate the maximum number of spatial streams that the STA
  9319. * can receive in an EHT sounding NDP for 320 MHz bandwidth.
  9320. * The range of the value is 3 to 7.
  9321. * This attribute is used to configure the testbed device.
  9322. */
  9323. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
  9324. /* 8-bit unsigned value to configure the driver to exclude station
  9325. * profile in Probe Request frame Multi-Link element.
  9326. * 0 - Default behavior, sends the Probe Request frame with station
  9327. * profile data included in the Multi-Link element.
  9328. * 1 - Exclude station profile in Probe Request frame Multi-Link
  9329. * element.
  9330. * This attribute is used to configure the testbed device.
  9331. */
  9332. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
  9333. /* 8-bit unsigned value to configure EHT testbed defaults.
  9334. * This attribute is used to configure the testbed device.
  9335. * 1 - Set the device EHT capabilities to testbed defaults.
  9336. * 0 - Reset the device EHT capabilities to supported config.
  9337. */
  9338. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
  9339. /* 8-bit unsigned value to indicate the EHT MCS support.
  9340. * Uses enum eht_mcs_config values.
  9341. * This attribute is used to configure the testbed device to
  9342. * allow the advertised hardware capabilities to be downgraded
  9343. * for testing purposes.
  9344. */
  9345. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
  9346. /* 8-bit unsigned value to configure EHT TB Sounding Feedback
  9347. * Rate Limit capability.
  9348. * This attribute is used to configure the testbed device.
  9349. * 0 - Indicates no maximum supported data rate limitation.
  9350. * 1 - Indicates the maximum supported data rate is the lower of
  9351. * the 1500 Mb/s and the maximum supported data rate.
  9352. */
  9353. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
  9354. /* 8-bit unsigned value to configure the support for receiving an MPDU
  9355. * that contains an EHT operating mode control subfield.
  9356. * This attribute is used to configure the testbed device.
  9357. * 1-enable, 0-disable.
  9358. */
  9359. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
  9360. /* 8-bit unsigned value to configure the driver with EMLSR padding delay
  9361. * subfield value.
  9362. *
  9363. * 0 - 0 us
  9364. * 1 - 32 us
  9365. * 2 - 64 us
  9366. * 3 - 128 us
  9367. * 4 - 256 us
  9368. * 5-255 - Reserved
  9369. *
  9370. * This attribute is used for testing purposes.
  9371. */
  9372. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
  9373. /*
  9374. * 8-bit unsigned value to indicate the firmware to force the active MLO
  9375. * links to power save mode for the configured number of beacon periods.
  9376. * This allows the firmware to suspend STA links for X beacon periods
  9377. * and remain asleep even if the AP advertises TIM as opposed to regular
  9378. * power save mode where STA links wake up if the AP indicates that it
  9379. * has buffered data to send.
  9380. * This attribute is used to configure the testbed device.
  9381. */
  9382. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
  9383. /*
  9384. * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
  9385. * to enable simultaneous transmission of PPDUs on all active links.
  9386. * 0 - Default behavior
  9387. * 1 - Enter STR mode for simultaneous data transmission on all links
  9388. */
  9389. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
  9390. /* keep last */
  9391. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  9392. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  9393. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  9394. };
  9395. /**
  9396. * enum qca_wlan_twt_operation - Operation of the config TWT request
  9397. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  9398. * The response for the respective operations can be either synchronous or
  9399. * asynchronous (wherever specified). If synchronous, the response to this
  9400. * operation is obtained in the corresponding vendor command reply to the user
  9401. * space. For the asynchronous case the response is obtained as an event with
  9402. * the same operation type.
  9403. *
  9404. * Drivers shall support either of these modes but not both simultaneously.
  9405. * This support for asynchronous mode is advertised through the flag
  9406. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  9407. * the driver shall support synchronous mode.
  9408. *
  9409. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  9410. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9411. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  9412. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  9413. * synchronous or asynchronous operation.
  9414. *
  9415. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  9416. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9417. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  9418. *
  9419. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  9420. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9421. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9422. * This terminate can either get triggered by the user space or can as well be
  9423. * a notification from the firmware if it initiates a terminate.
  9424. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9425. * the request from user space can either be a synchronous or asynchronous
  9426. * operation.
  9427. *
  9428. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  9429. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9430. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9431. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9432. * this is either a synchronous or asynchronous operation.
  9433. *
  9434. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  9435. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9436. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  9437. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  9438. * request.
  9439. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9440. * capability, this is either a synchronous or asynchronous operation.
  9441. *
  9442. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  9443. * combination of suspend and resume in a single request. Required parameters
  9444. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  9445. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  9446. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9447. * capability, this is either a synchronous or asynchronous operation.
  9448. *
  9449. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  9450. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  9451. * session is setup. It's a synchronous operation.
  9452. *
  9453. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  9454. * Valid only after the TWT session is setup. It's a synchronous operation.
  9455. *
  9456. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  9457. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  9458. * operation.
  9459. *
  9460. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
  9461. * ready for a new TWT session setup after it issued a twt teardown.
  9462. *
  9463. * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
  9464. * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
  9465. * the enum qca_wlan_vendor_attr_twt_set_param.
  9466. *
  9467. * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
  9468. * related information for example TWT required bit in AP capabilities etc.
  9469. * The reason for the notification is sent using
  9470. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
  9471. */
  9472. enum qca_wlan_twt_operation {
  9473. QCA_WLAN_TWT_SET = 0,
  9474. QCA_WLAN_TWT_GET = 1,
  9475. QCA_WLAN_TWT_TERMINATE = 2,
  9476. QCA_WLAN_TWT_SUSPEND = 3,
  9477. QCA_WLAN_TWT_RESUME = 4,
  9478. QCA_WLAN_TWT_NUDGE = 5,
  9479. QCA_WLAN_TWT_GET_STATS = 6,
  9480. QCA_WLAN_TWT_CLEAR_STATS = 7,
  9481. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  9482. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  9483. QCA_WLAN_TWT_SET_PARAM = 10,
  9484. QCA_WLAN_TWT_NOTIFY = 11,
  9485. };
  9486. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  9487. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  9488. *
  9489. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  9490. * u8 attribute. Specify the TWT operation of this request. Possible values
  9491. * are defined in enum qca_wlan_twt_operation. The parameters for the
  9492. * respective operation is specified through
  9493. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  9494. *
  9495. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  9496. * parameters configured for TWT. These parameters are represented by
  9497. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
  9498. * enum qca_wlan_vendor_attr_twt_set_param or
  9499. * enum qca_wlan_vendor_attr_twt_stats based on the operation.
  9500. *
  9501. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
  9502. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
  9503. * The values used by this attribute are defined in
  9504. * enum qca_wlan_vendor_twt_status.
  9505. */
  9506. enum qca_wlan_vendor_attr_config_twt {
  9507. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  9508. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  9509. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  9510. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
  9511. /* keep last */
  9512. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  9513. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  9514. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  9515. };
  9516. /**
  9517. * qca_wlan_twt_setup_state: Represents the TWT session states.
  9518. *
  9519. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  9520. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  9521. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  9522. */
  9523. enum qca_wlan_twt_setup_state {
  9524. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  9525. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  9526. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  9527. };
  9528. /**
  9529. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  9530. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  9531. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  9532. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9533. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9534. *
  9535. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  9536. * Disable (flag attribute not present) - Individual TWT
  9537. * Enable (flag attribute present) - Broadcast TWT.
  9538. * Individual means the session is between the STA and the AP.
  9539. * This session is established using a separate negotiation between
  9540. * STA and AP.
  9541. * Broadcast means the session is across multiple STAs and an AP. The
  9542. * configuration parameters are announced in Beacon frames by the AP.
  9543. * This is used in
  9544. * 1. TWT SET Request and Response
  9545. * 2. TWT GET Response
  9546. *
  9547. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  9548. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  9549. * specify the TWT request type. This is used in TWT SET operation.
  9550. *
  9551. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  9552. * Enable (flag attribute present) - TWT with trigger support.
  9553. * Disable (flag attribute not present) - TWT without trigger support.
  9554. * Trigger means the AP will send the trigger frame to allow STA to send data.
  9555. * Without trigger, the STA will wait for the MU EDCA timer before
  9556. * transmitting the data.
  9557. * This is used in
  9558. * 1. TWT SET Request and Response
  9559. * 2. TWT GET Response
  9560. *
  9561. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  9562. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  9563. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  9564. * NULL frame to AP.
  9565. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  9566. * This is a required parameter for
  9567. * 1. TWT SET Request and Response
  9568. * 2. TWT GET Response
  9569. *
  9570. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  9571. * Flow ID is the unique identifier for each TWT session.
  9572. * If not provided then dialog ID will be set to zero.
  9573. * This is an optional parameter for
  9574. * 1. TWT SET Request and Response
  9575. * 2. TWT GET Request and Response
  9576. * 3. TWT TERMINATE Request and Response
  9577. * 4. TWT SUSPEND Request and Response
  9578. * Flow Id values from 0 to 254 represent a single TWT session
  9579. * Flow ID value of 255 represents all twt sessions for the following
  9580. * 1. TWT TERMINATE Request and Response
  9581. * 2. TWT SUSPEND Request and Response
  9582. * 4. TWT CLEAR STATISTICS request
  9583. * 5. TWT GET STATISTICS request and response
  9584. * If an invalid dialog id is provided, status
  9585. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9586. *
  9587. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  9588. * This attribute (exp) is used along with the mantissa to derive the
  9589. * wake interval using the following formula:
  9590. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  9591. * Wake interval is the interval between 2 successive SP.
  9592. * This is a required parameter for
  9593. * 1. TWT SET Request and Response
  9594. * 2. TWT GET Response
  9595. *
  9596. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  9597. * Enable (flag attribute present) - Protection required.
  9598. * Disable (flag attribute not present) - Protection not required.
  9599. * If protection is enabled, then the AP will use protection
  9600. * mechanism using RTS/CTS to self to reserve the airtime.
  9601. * This is used in
  9602. * 1. TWT SET Request and Response
  9603. * 2. TWT GET Response
  9604. *
  9605. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  9606. * This attribute is used as the SP offset which is the offset from
  9607. * TSF after which the wake happens. The units are in microseconds. If
  9608. * this attribute is not provided, then the value will be set to zero.
  9609. * This is an optional parameter for
  9610. * 1. TWT SET Request and Response
  9611. * 2. TWT GET Response
  9612. *
  9613. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  9614. * This is the duration of the service period. This is specified as
  9615. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  9616. * This is a required parameter for
  9617. * 1. TWT SET Request and Response
  9618. * 2. TWT GET Response
  9619. *
  9620. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  9621. * This attribute is used to configure wake interval mantissa.
  9622. * The units are in TU.
  9623. * This is a required parameter for
  9624. * 1. TWT SET Request and Response
  9625. * 2. TWT GET Response
  9626. *
  9627. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  9628. * This field is applicable for TWT response only.
  9629. * This contains status values in enum qca_wlan_vendor_twt_status
  9630. * and is passed to the userspace. This is used in TWT SET operation.
  9631. * This is a required parameter for
  9632. * 1. TWT SET Response
  9633. * 2. TWT TERMINATE Response
  9634. * 3. TWT SUSPEND Response
  9635. * 4. TWT RESUME Response
  9636. * 5. TWT NUDGE Response
  9637. *
  9638. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  9639. * This field is applicable for TWT response only.
  9640. * This field contains response type from the TWT responder and is
  9641. * passed to the userspace. The values for this field are defined in
  9642. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  9643. * response.
  9644. *
  9645. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  9646. * In TWT setup command this field contains absolute TSF that will
  9647. * be used by TWT requester during setup.
  9648. * In TWT response this field contains absolute TSF value of the
  9649. * wake time received from the TWT responder and is passed to
  9650. * the userspace.
  9651. * This is an optional parameter for
  9652. * 1. TWT SET Request
  9653. * This is a required parameter for
  9654. * 1. TWT SET Response
  9655. * 2. TWT GET Response
  9656. *
  9657. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  9658. * Enable (flag attribute present) - Indicates that the TWT responder
  9659. * supports reception of TWT information frame from the TWT requestor.
  9660. * Disable (flag attribute not present) - Indicates that the responder
  9661. * doesn't support reception of TWT information frame from requestor.
  9662. * This is used in
  9663. * 1. TWT SET Response
  9664. * 2. TWT GET Response
  9665. *
  9666. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  9667. * Represents the MAC address of the peer for which the TWT session
  9668. * is being configured. This is used in AP mode to represent the respective
  9669. * client
  9670. * In AP mode, this is a required parameter in response for
  9671. * 1. TWT SET
  9672. * 2. TWT GET
  9673. * 3. TWT TERMINATE
  9674. * 4. TWT SUSPEND
  9675. * In STA mode, this is an optional parameter in request and response for
  9676. * the above four TWT operations.
  9677. * In AP mode, this is a required parameter in request for
  9678. * 1. TWT GET
  9679. * 2. TWT TERMINATE
  9680. *
  9681. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  9682. * Minimum tolerance limit of wake interval parameter in microseconds.
  9683. *
  9684. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  9685. * Maximum tolerance limit of wake interval parameter in microseconds.
  9686. *
  9687. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  9688. * Minimum tolerance limit of wake duration parameter in microseconds.
  9689. *
  9690. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  9691. * Maximum tolerance limit of wake duration parameter in microseconds.
  9692. *
  9693. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  9694. * TWT state for the given dialog id. The values for this are represented
  9695. * by enum qca_wlan_twt_setup_state.
  9696. * This is obtained through TWT GET operation.
  9697. *
  9698. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  9699. * This attribute is used to configure wake interval mantissa.
  9700. * The unit is microseconds. This attribute, when specified, takes
  9701. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  9702. * This parameter is used for
  9703. * 1. TWT SET Request and Response
  9704. * 2. TWT GET Response
  9705. *
  9706. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  9707. * This attribute is used to configure Broadcast TWT ID.
  9708. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  9709. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  9710. * This parameter is used for
  9711. * 1. TWT SET Request
  9712. * 2. TWT TERMINATE Request
  9713. *
  9714. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  9715. * This attribute is used to configure Broadcast TWT recommendation.
  9716. * The Broadcast TWT Recommendation subfield contains a value that indicates
  9717. * recommendations on the types of frames that are transmitted by TWT
  9718. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  9719. * The allowed values are 0 - 3.
  9720. * This parameter is used for
  9721. * 1. TWT SET Request
  9722. *
  9723. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  9724. * This attribute is used to configure Broadcast TWT Persistence.
  9725. * The Broadcast TWT Persistence subfield indicates the number of
  9726. * TBTTs during which the Broadcast TWT SPs corresponding to this
  9727. * broadcast TWT Parameter set are present. The number of beacon intervals
  9728. * during which the Broadcast TWT SPs are present is equal to the value in the
  9729. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  9730. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  9731. * This parameter is used for
  9732. * 1. TWT SET Request
  9733. *
  9734. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  9735. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  9736. * from TWT response frame.
  9737. * This parameter is used for
  9738. * 1. TWT SET Response
  9739. * 2. TWT GET Response
  9740. *
  9741. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
  9742. * This attribute is used to configure the announce timeout value (in us) in
  9743. * firmware. This timeout value is only applicable for announced TWT. If
  9744. * timeout value is non-zero then firmware waits upto timeout value to use
  9745. * data frame as announcement frame. If timeout value is 0 then firmware sends
  9746. * explicit QoS NULL frame as announcement frame on SP start. Default value in
  9747. * firmware is 0.
  9748. * This parameter is used for
  9749. * 1. TWT SET Request
  9750. */
  9751. enum qca_wlan_vendor_attr_twt_setup {
  9752. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  9753. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  9754. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  9755. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  9756. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  9757. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  9758. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  9759. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  9760. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  9761. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  9762. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  9763. /* TWT Response only attributes */
  9764. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  9765. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  9766. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  9767. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  9768. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  9769. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  9770. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  9771. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  9772. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  9773. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  9774. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  9775. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  9776. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  9777. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  9778. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  9779. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
  9780. /* keep last */
  9781. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  9782. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  9783. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  9784. };
  9785. /**
  9786. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  9787. * TWT operation
  9788. *
  9789. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  9790. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  9791. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  9792. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  9793. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  9794. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  9795. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  9796. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  9797. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  9798. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  9799. * request/response frame
  9800. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  9801. * frame
  9802. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  9803. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  9804. * unknown reason
  9805. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  9806. * suspend state
  9807. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  9808. * invalid IE in the received TWT frame
  9809. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  9810. * the responder are not in the specified range
  9811. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  9812. * session due to request from the responder. Used on the TWT_TERMINATE
  9813. * notification from the firmware.
  9814. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  9815. * session due to roaming. Used on the TWT_TERMINATE notification from the
  9816. * firmware.
  9817. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  9818. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  9819. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  9820. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  9821. * request due to roaming in progress.
  9822. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  9823. * setup request due to channel switch in progress.
  9824. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  9825. * request due to scan in progress.
  9826. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  9827. * terminate an existing TWT session on power save exit request from userspace.
  9828. * Used on the TWT_TERMINATE notification from the driver/firmware.
  9829. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
  9830. * required bit in its capabilities.
  9831. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
  9832. * the TWT required bit(1->0) in its capabilities.
  9833. */
  9834. enum qca_wlan_vendor_twt_status {
  9835. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  9836. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  9837. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  9838. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  9839. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  9840. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  9841. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  9842. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  9843. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  9844. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  9845. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  9846. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  9847. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  9848. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  9849. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  9850. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  9851. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  9852. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  9853. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  9854. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  9855. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  9856. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  9857. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  9858. QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
  9859. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
  9860. };
  9861. /**
  9862. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  9863. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  9864. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  9865. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9866. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9867. *
  9868. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  9869. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  9870. * These attributes are used as the SP offset which is the offset from TSF after
  9871. * which the wake happens. The units are in microseconds. Please note that
  9872. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  9873. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  9874. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  9875. * will be set to zero.
  9876. *
  9877. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  9878. * This attribute represents the next TWT subfield size.
  9879. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9880. * and 4 for 64 bits.
  9881. *
  9882. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  9883. * Flow ID is the unique identifier for each TWT session. This attribute
  9884. * represents the respective TWT session to resume.
  9885. * Flow Id values from 0 to 254 represent a single TWT session
  9886. * Flow ID value of 255 represents all TWT sessions.
  9887. * If an invalid dialog id is provided, status
  9888. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9889. *
  9890. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  9891. * Represents the MAC address of the peer to which TWT Resume is
  9892. * being sent. This is used in AP mode to represent the respective
  9893. * client and is a required parameter. In STA mode, this is an optional
  9894. * parameter
  9895. *
  9896. */
  9897. enum qca_wlan_vendor_attr_twt_resume {
  9898. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  9899. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  9900. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  9901. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  9902. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  9903. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  9904. /* keep last */
  9905. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  9906. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  9907. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  9908. };
  9909. /**
  9910. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  9911. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  9912. * and resume in a single request. These attributes are sent as part of
  9913. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9914. *
  9915. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9916. * Flow ID is the unique identifier for each TWT session. This attribute
  9917. * represents the respective TWT session to suspend and resume.
  9918. *
  9919. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  9920. * Flow ID is the unique identifier for each TWT session. This attribute
  9921. * represents the respective TWT session to suspend and resume.
  9922. * Flow Id values from 0 to 254 represent a single TWT session
  9923. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  9924. * and response.
  9925. * If an invalid dialog id is provided, status
  9926. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9927. *
  9928. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  9929. * This attribute is used as the SP offset which is the offset from
  9930. * TSF after which the wake happens. The units are in microseconds.
  9931. *
  9932. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  9933. * This attribute represents the next TWT subfield size.
  9934. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  9935. * and 4 for 64 bits.
  9936. *
  9937. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  9938. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  9939. * being sent. This is used in AP mode to represent the respective
  9940. * client and is a required parameter. In STA mode, this is an optional
  9941. * parameter.
  9942. *
  9943. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  9944. * This field contains absolute TSF value of the time at which twt
  9945. * sesion will be resumed.
  9946. *
  9947. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
  9948. * This field will be used when device supports Flexible TWT.
  9949. * This field contains an offset value by which to shift the starting time
  9950. * of the next service period. The value of offset can be negative or positive.
  9951. * If provided, this attribute will override
  9952. * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
  9953. */
  9954. enum qca_wlan_vendor_attr_twt_nudge {
  9955. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  9956. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  9957. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  9958. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  9959. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  9960. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  9961. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
  9962. /* keep last */
  9963. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  9964. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  9965. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  9966. };
  9967. /**
  9968. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  9969. * TWT (Target Wake Time) get statistics and clear statistics request.
  9970. * These attributes are sent as part of
  9971. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9972. *
  9973. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  9974. * Flow ID is the unique identifier for each TWT session. This attribute
  9975. * represents the respective TWT session for get and clear TWT statistics.
  9976. * Flow Id values from 0 to 254 represent a single TWT session
  9977. * Flow ID value of 255 represents all TWT sessions in
  9978. * 1) TWT GET STATISTICS request and response
  9979. * 2) TWT CLEAR STATISTICS request
  9980. *
  9981. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  9982. * Represents the MAC address of the peer for which TWT Statistics
  9983. * is required.
  9984. * In AP mode this is used to represent the respective
  9985. * client and is a required parameter for
  9986. * 1) TWT GET STATISTICS request and response
  9987. * 2) TWT CLEAR STATISTICS request and response
  9988. * In STA mode, this is an optional parameter.
  9989. *
  9990. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  9991. * This is the duration of the service period in microseconds.
  9992. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9993. *
  9994. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  9995. * Average of actual wake duration observed so far. Unit is microseconds.
  9996. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  9997. *
  9998. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  9999. * Number of TWT service period elapsed so far.
  10000. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10001. *
  10002. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10003. * This is the minimum value of wake duration observed across
  10004. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10005. * microseconds.
  10006. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10007. *
  10008. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10009. * This is the maximum value of wake duration observed across
  10010. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10011. * microseconds.
  10012. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10013. *
  10014. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  10015. * Average number of MPDU's transmitted successfully across
  10016. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10017. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10018. *
  10019. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  10020. * Average number of MPDU's received successfully across
  10021. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10022. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10023. *
  10024. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  10025. * Average number of bytes transmitted successfully across
  10026. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10027. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10028. *
  10029. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  10030. * Average number of bytes received successfully across
  10031. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10032. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10033. *
  10034. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  10035. * Status of the TWT GET STATISTICS request.
  10036. * This contains status values in enum qca_wlan_vendor_twt_status
  10037. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10038. */
  10039. enum qca_wlan_vendor_attr_twt_stats {
  10040. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  10041. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  10042. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  10043. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  10044. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  10045. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  10046. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  10047. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  10048. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  10049. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  10050. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  10051. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  10052. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  10053. /* keep last */
  10054. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  10055. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  10056. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  10057. };
  10058. /**
  10059. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  10060. * supported by the device and peer.
  10061. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  10062. *
  10063. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  10064. * TWT non-scheduling STA. This capability is advertised in the HE
  10065. * capability/Extended capabilities information element in the
  10066. * Association request frame by the device.
  10067. *
  10068. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  10069. * by the TWT scheduling AP. This capability is advertised in the extended
  10070. * capabilities/HE capabilities information element.
  10071. *
  10072. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  10073. * for the broadcast TWT functionality. On responder side, this indicates
  10074. * support for the role of broadcast TWT scheduling functionality. This
  10075. * capability is advertised in the HE capabilities information element.
  10076. *
  10077. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  10078. * This capability is advertised in the HE capabilities information element.
  10079. *
  10080. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  10081. * that it mandates the associated HE STAs to support TWT. This capability is
  10082. * advertised by AP in the HE Operation Parameters field of the HE operation
  10083. * information element.
  10084. */
  10085. enum qca_wlan_twt_capa {
  10086. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  10087. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  10088. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  10089. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  10090. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  10091. };
  10092. /**
  10093. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  10094. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  10095. * operation.
  10096. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  10097. * Represents the MAC address of the peer for which the TWT capabilities
  10098. * are being queried. This is used in AP mode to represent the respective
  10099. * client. In STA mode, this is an optional parameter.
  10100. *
  10101. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  10102. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10103. * enum qca_wlan_twt_capa.
  10104. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  10105. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10106. * enum qca_wlan_twt_capa.
  10107. */
  10108. enum qca_wlan_vendor_attr_twt_capability {
  10109. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  10110. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  10111. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  10112. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  10113. /* keep last */
  10114. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  10115. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  10116. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  10117. };
  10118. /**
  10119. * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
  10120. * TWT (Target Wake Time) related parameters. It is used when
  10121. * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
  10122. * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10123. *
  10124. * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
  10125. * This attribute configures AC parameters to be used for all TWT
  10126. * sessions in AP mode.
  10127. * Uses the enum qca_wlan_ac_type values.
  10128. */
  10129. enum qca_wlan_vendor_attr_twt_set_param {
  10130. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
  10131. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
  10132. /* keep last */
  10133. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
  10134. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
  10135. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
  10136. };
  10137. /**
  10138. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  10139. * the TWT responder
  10140. *
  10141. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  10142. * parameters that are different from TWT requesting STA suggested
  10143. * or demanded TWT parameters
  10144. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  10145. * parameters that are different from TWT requesting STA TWT suggested
  10146. * or demanded parameters
  10147. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  10148. * setup
  10149. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  10150. * setup.
  10151. */
  10152. enum qca_wlan_vendor_twt_setup_resp_type {
  10153. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  10154. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  10155. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  10156. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  10157. };
  10158. /**
  10159. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  10160. * Represents the setup type being requested for TWT.
  10161. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  10162. * parameters but relying on AP to fill the parameters during the negotiation.
  10163. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  10164. * values which the AP may accept or AP may provide alternative parameters
  10165. * which the STA may accept.
  10166. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  10167. * alternate parameters than the requested ones.
  10168. */
  10169. enum qca_wlan_vendor_twt_setup_req_type {
  10170. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  10171. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  10172. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  10173. };
  10174. /**
  10175. * enum qca_wlan_throughput_level - Current throughput level
  10176. *
  10177. * Indicates the current level of throughput calculated by driver. The driver
  10178. * may choose different thresholds to decide whether the throughput level is
  10179. * low or medium or high based on variety of parameters like physical link
  10180. * capacity of current connection, number of pakcets being dispatched per
  10181. * second etc. The throughput level events might not be consistent with the
  10182. * actual current throughput value being observed.
  10183. *
  10184. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  10185. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  10186. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  10187. */
  10188. enum qca_wlan_throughput_level {
  10189. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  10190. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  10191. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  10192. };
  10193. /**
  10194. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  10195. * report throughput changes from driver to user space. enum values are used
  10196. * for NL attributes sent with
  10197. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  10198. */
  10199. enum qca_wlan_vendor_attr_throughput_change {
  10200. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  10201. /*
  10202. * Indicates the direction of throughput in which the change is being
  10203. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  10204. */
  10205. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  10206. /*
  10207. * Indicates the newly observed throughput level.
  10208. * qca_wlan_throughput_level describes the possible range of values.
  10209. * u8 attribute.
  10210. */
  10211. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  10212. /*
  10213. * Indicates the driver's guidance on the new value to be set to
  10214. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  10215. * may optionally include this attribute.
  10216. */
  10217. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  10218. /*
  10219. * Indicates the driver's guidance on the new value to be set to
  10220. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  10221. * values are from -31 to 31. Driver may optionally include this
  10222. * attribute.
  10223. */
  10224. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  10225. /*
  10226. * Indicates the driver's guidance on the new value to be set to
  10227. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  10228. * optionally include this attribute.
  10229. */
  10230. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  10231. /* keep last */
  10232. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  10233. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  10234. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  10235. };
  10236. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  10237. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  10238. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10239. */
  10240. enum qca_wlan_nan_ext_subcmd_type {
  10241. /* Subcmd of type NAN Enable Request */
  10242. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  10243. /* Subcmd of type NAN Disable Request */
  10244. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  10245. };
  10246. /**
  10247. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  10248. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10249. */
  10250. enum qca_wlan_vendor_attr_nan_params {
  10251. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  10252. /* Carries NAN command for firmware component. Every vendor command
  10253. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  10254. * payload containing the NAN command. NLA_BINARY attribute.
  10255. */
  10256. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  10257. /* Indicates the type of NAN command sent with
  10258. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  10259. * describes the possible range of values. This attribute is mandatory
  10260. * if the command being issued is either
  10261. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  10262. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  10263. */
  10264. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  10265. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  10266. * band. This attribute is mandatory when command type is
  10267. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  10268. */
  10269. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  10270. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  10271. * band. This attribute is optional and should be included when command
  10272. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  10273. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  10274. */
  10275. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  10276. /* keep last */
  10277. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  10278. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  10279. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  10280. };
  10281. /**
  10282. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  10283. * transport modes and is used by attribute
  10284. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  10285. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10286. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  10287. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  10288. * data. The data shall be encapsulated within
  10289. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
  10290. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  10291. */
  10292. enum qca_wlan_vendor_cfr_data_transport_modes {
  10293. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  10294. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  10295. };
  10296. /**
  10297. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  10298. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  10299. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10300. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  10301. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  10302. * with phase
  10303. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  10304. */
  10305. enum qca_wlan_vendor_cfr_method {
  10306. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  10307. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  10308. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  10309. };
  10310. /**
  10311. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  10312. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  10313. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  10314. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  10315. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  10316. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  10317. * is provided by one or more of below attributes:
  10318. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  10319. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  10320. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  10321. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  10322. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  10323. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  10324. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10325. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  10326. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  10327. */
  10328. enum qca_wlan_vendor_cfr_capture_type {
  10329. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  10330. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  10331. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  10332. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  10333. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  10334. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  10335. };
  10336. /**
  10337. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  10338. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  10339. * Channel Frequency Response capture parameters and enable periodic CFR
  10340. * capture.
  10341. *
  10342. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  10343. * MAC address of peer. This is for CFR version 1 only.
  10344. *
  10345. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  10346. * Enable peer CFR Capture. This attribute is mandatory to
  10347. * enable peer CFR capture. If this attribute is not present,
  10348. * peer CFR capture is disabled.
  10349. *
  10350. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  10351. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  10352. * Supported values: 20, 40, 80, 80+80, 160.
  10353. * Note that all targets may not support all bandwidths.
  10354. * This attribute is mandatory for version 1 if attribute
  10355. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10356. *
  10357. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  10358. * Periodicity of CFR measurement in msec.
  10359. * Periodicity should be a multiple of Base timer.
  10360. * Current Base timer value supported is 10 msecs (default).
  10361. * 0 for one shot capture.
  10362. * This attribute is mandatory for version 1 if attribute
  10363. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10364. *
  10365. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  10366. * Method used to capture Channel Frequency Response.
  10367. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  10368. * This attribute is mandatory for version 1 if attribute
  10369. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10370. *
  10371. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  10372. * Enable periodic CFR capture.
  10373. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  10374. * If this attribute is not present, periodic CFR capture is disabled.
  10375. *
  10376. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  10377. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  10378. * can't be enabled at same time. This attribute is mandatory if target
  10379. * support both versions and use one of them.
  10380. *
  10381. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  10382. * This attribute is mandatory for version 2 if
  10383. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  10384. * Bits 15:0 Bit fields indicating which group to be enabled.
  10385. * Bits 31:16 Reserved for future use.
  10386. *
  10387. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  10388. * CFR capture duration in microsecond. This attribute is mandatory for
  10389. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  10390. *
  10391. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  10392. * CFR capture interval in microsecond. This attribute is mandatory for
  10393. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  10394. *
  10395. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  10396. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  10397. * This attribute is mandatory for version 2.
  10398. *
  10399. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  10400. * Bit fields indicating which user in the current UL MU
  10401. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  10402. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  10403. * then the CFR capture will happen for user index 0 in the current
  10404. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  10405. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  10406. * This is for CFR version 2 only.
  10407. *
  10408. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  10409. * Indicates the number of consecutive Rx packets to be skipped
  10410. * before CFR capture is enabled again.
  10411. * This is for CFR version 2 only.
  10412. *
  10413. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  10414. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  10415. *
  10416. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  10417. * the following GROUP attributes:
  10418. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  10419. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  10420. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  10421. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  10422. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  10423. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  10424. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  10425. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  10426. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  10427. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10428. *
  10429. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  10430. * Target support multiple groups for some configurations. Group number could be
  10431. * any value between 0 and 15. This is for CFR version 2 only.
  10432. *
  10433. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  10434. * Transmitter address which is used to filter packets, this MAC address takes
  10435. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  10436. * This is for CFR version 2 only.
  10437. *
  10438. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  10439. * Receiver address which is used to filter packets, this MAC address takes
  10440. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  10441. * This is for CFR version 2 only.
  10442. *
  10443. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  10444. * Mask of transmitter address which is used to filter packets.
  10445. * This is for CFR version 2 only.
  10446. *
  10447. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  10448. * Mask of receiver address which is used to filter packets.
  10449. * This is for CFR version 2 only.
  10450. *
  10451. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  10452. * Indicates packets with a specific NSS will be filtered for CFR capture.
  10453. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  10454. * be done for packets matching the NSS specified within this bitmask.
  10455. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  10456. * bit 0 : NSS 1
  10457. * bit 1 : NSS 2
  10458. * ...
  10459. * bit 7 : NSS 8
  10460. *
  10461. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  10462. * Indicates packets with a specific BW will be filtered for CFR capture.
  10463. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  10464. * will be done for packets matching the bandwidths specified within this
  10465. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  10466. * numerated in enum nl80211_band (although not all bands may be supported
  10467. * by a given device).
  10468. *
  10469. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  10470. * Management packets matching the subtype filter categories will be
  10471. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10472. * represents the corresponding mgmt subtype value as per
  10473. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10474. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  10475. * This is for CFR version 2 only
  10476. *
  10477. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  10478. * Control packets matching the subtype filter categories will be
  10479. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10480. * represents the corresponding control subtype value as per
  10481. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10482. * This is for CFR version 2 only.
  10483. *
  10484. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  10485. * Data packets matching the subtype filter categories will be
  10486. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10487. * represents the corresponding data subtype value as per
  10488. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10489. * This is for CFR version 2 only.
  10490. *
  10491. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  10492. * Userspace can use this attribute to specify the driver about which transport
  10493. * mode shall be used by the driver to send CFR data to userspace. Uses values
  10494. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  10495. * not present, driver shall choose the default transport mechanism which is
  10496. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  10497. *
  10498. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  10499. * Userspace can use this attribute to specify the nl port id of the application
  10500. * which receives the CFR data and processes it further so that the drivers can
  10501. * unicast the NL events to a specific application. Optionally included when
  10502. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  10503. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  10504. * shall multicast the netlink events when this attribute is not included.
  10505. *
  10506. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  10507. * This attribute will be used by the driver to encapsulate and send CFR data
  10508. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  10509. * asynchronous event when the driver is configured to send CFR data using NL
  10510. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  10511. *
  10512. */
  10513. enum qca_wlan_vendor_peer_cfr_capture_attr {
  10514. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  10515. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  10516. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  10517. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  10518. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  10519. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  10520. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  10521. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  10522. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  10523. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  10524. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  10525. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  10526. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  10527. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  10528. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  10529. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  10530. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  10531. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  10532. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  10533. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  10534. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  10535. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  10536. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  10537. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  10538. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  10539. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  10540. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  10541. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  10542. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  10543. /* Keep last */
  10544. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  10545. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  10546. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  10547. };
  10548. /**
  10549. * enum qca_coex_config_profiles - This enum defines different types of
  10550. * traffic streams that can be prioritized one over the other during coex
  10551. * scenarios.
  10552. * The types defined in this enum are categorized in the below manner.
  10553. * 0 - 31 values corresponds to WLAN
  10554. * 32 - 63 values corresponds to BT
  10555. * 64 - 95 values corresponds to Zigbee
  10556. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  10557. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  10558. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  10559. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  10560. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  10561. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  10562. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  10563. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  10564. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  10565. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  10566. * @QCA_BT_A2DP: Prioritize BT A2DP
  10567. * @QCA_BT_BLE: Prioritize BT BLE
  10568. * @QCA_BT_SCO: Prioritize BT SCO
  10569. * @QCA_ZB_LOW: Prioritize Zigbee Low
  10570. * @QCA_ZB_HIGH: Prioritize Zigbee High
  10571. */
  10572. enum qca_coex_config_profiles {
  10573. /* 0 - 31 corresponds to WLAN */
  10574. QCA_WIFI_STA_DISCOVERY = 0,
  10575. QCA_WIFI_STA_CONNECTION = 1,
  10576. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  10577. QCA_WIFI_STA_DATA = 3,
  10578. QCA_WIFI_STA_ALL = 4,
  10579. QCA_WIFI_SAP_DISCOVERY = 5,
  10580. QCA_WIFI_SAP_CONNECTION = 6,
  10581. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  10582. QCA_WIFI_SAP_DATA = 8,
  10583. QCA_WIFI_SAP_ALL = 9,
  10584. QCA_WIFI_CASE_MAX = 31,
  10585. /* 32 - 63 corresponds to BT */
  10586. QCA_BT_A2DP = 32,
  10587. QCA_BT_BLE = 33,
  10588. QCA_BT_SCO = 34,
  10589. QCA_BT_CASE_MAX = 63,
  10590. /* 64 - 95 corresponds to Zigbee */
  10591. QCA_ZB_LOW = 64,
  10592. QCA_ZB_HIGH = 65,
  10593. QCA_ZB_CASE_MAX = 95,
  10594. /* 0xff is default value if the u8 profile value is not set. */
  10595. QCA_PROFILE_DEFAULT_VALUE = 255
  10596. };
  10597. /**
  10598. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  10599. * This enum defines the valid set of values of coex configuration types. These
  10600. * values may used by attribute
  10601. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  10602. *
  10603. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  10604. * weights to default values.
  10605. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  10606. * weights with configurability value.
  10607. */
  10608. enum qca_vendor_attr_coex_config_types {
  10609. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  10610. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  10611. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  10612. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  10613. };
  10614. /**
  10615. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  10616. * attributes
  10617. * Attributes for data used by
  10618. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  10619. *
  10620. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  10621. * Indicate config type.
  10622. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  10623. *
  10624. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  10625. * Indicate the Priority 1 profiles.
  10626. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10627. * In same priority level, maximum to 4 profiles can be set here.
  10628. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  10629. * Indicate the Priority 2 profiles.
  10630. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10631. * In same priority level, maximum to 4 profiles can be set here.
  10632. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  10633. * Indicate the Priority 3 profiles.
  10634. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10635. * In same priority level, maximum to 4 profiles can be set here.
  10636. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  10637. * Indicate the Priority 4 profiles.
  10638. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10639. * In same priority level, maximum to 4 profiles can be set here.
  10640. * NOTE:
  10641. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  10642. * arrangement:
  10643. * 1: In the same u32 attribute(priority x), the profiles enum values own
  10644. * same priority level.
  10645. * 2: 0xff is default value if the u8 profile value is not set.
  10646. * 3: max to 4 rules/profiles in same priority level.
  10647. * 4: max to 4 priority level (priority 1 - priority 4)
  10648. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  10649. * hybrid rules not support.
  10650. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  10651. * remain blank to reset all parameters.
  10652. * For example:
  10653. *
  10654. * If the attributes as follow:
  10655. * priority 1:
  10656. * ------------------------------------
  10657. * | 0xff | 0 | 1 | 2 |
  10658. * ------------------------------------
  10659. * priority 2:
  10660. * -------------------------------------
  10661. * | 0xff | 0xff | 0xff | 32 |
  10662. * -------------------------------------
  10663. * priority 3:
  10664. * -------------------------------------
  10665. * | 0xff | 0xff | 0xff | 65 |
  10666. * -------------------------------------
  10667. * then it means:
  10668. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10669. * owns same priority level.
  10670. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10671. * has priority over BT_A2DP and ZB_HIGH.
  10672. * 3: BT_A2DP has priority over ZB_HIGH.
  10673. */
  10674. enum qca_vendor_attr_coex_config_three_way {
  10675. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  10676. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  10677. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  10678. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  10679. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  10680. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  10681. /* Keep last */
  10682. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  10683. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  10684. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  10685. };
  10686. /**
  10687. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  10688. * This enum defines the valid set of values of peer stats cache types. These
  10689. * values are used by attribute
  10690. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  10691. *
  10692. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  10693. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  10694. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  10695. * statistics
  10696. */
  10697. enum qca_vendor_attr_peer_stats_cache_type {
  10698. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  10699. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  10700. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  10701. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  10702. };
  10703. /**
  10704. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  10705. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  10706. * Attributes are required to flush peer rate statistics from driver to
  10707. * user application.
  10708. *
  10709. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  10710. * Indicate peer stats cache type.
  10711. * The statistics types are 32-bit values from
  10712. * qca_vendor_attr_peer_stats_cache_type
  10713. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  10714. * of size 6, representing peer mac address.
  10715. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  10716. * containing buffer of statistics to send event to application layer entity.
  10717. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  10718. * representing cookie for peer unique session.
  10719. */
  10720. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  10721. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  10722. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  10723. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  10724. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  10725. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  10726. /* Keep last */
  10727. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  10728. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  10729. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  10730. };
  10731. /**
  10732. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  10733. * this enum defines all the possible state of zigbee, which can be
  10734. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  10735. *
  10736. * @ZIGBEE_IDLE: zigbee in idle state
  10737. * @ZIGBEE_FORM_NETWORK: zibee forming network
  10738. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  10739. * @ZIGBEE_JOIN: zigbee joining network
  10740. * @ZIGBEE_NETWORK_UP: zigbee network is up
  10741. * @ZIGBEE_HMI: zigbee in HMI mode
  10742. */
  10743. enum qca_mpta_helper_attr_zigbee_state {
  10744. ZIGBEE_IDLE = 0,
  10745. ZIGBEE_FORM_NETWORK = 1,
  10746. ZIGBEE_WAIT_JOIN = 2,
  10747. ZIGBEE_JOIN = 3,
  10748. ZIGBEE_NETWORK_UP = 4,
  10749. ZIGBEE_HMI = 5,
  10750. };
  10751. /**
  10752. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  10753. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  10754. */
  10755. enum qca_mpta_helper_vendor_attr {
  10756. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  10757. /* Optional attribute used to update zigbee state.
  10758. * enum qca_mpta_helper_attr_zigbee_state.
  10759. * NLA_U32 attribute.
  10760. */
  10761. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  10762. /* Optional attribute used to configure wlan duration for Shape-OCS
  10763. * during interrupt.
  10764. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  10765. * Value range 0 ~ 300 (ms).
  10766. * NLA_U32 attribute.
  10767. */
  10768. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  10769. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10770. * during interrupt.
  10771. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  10772. * Value range 0 ~ 300 (ms).
  10773. * NLA_U32 attribute.
  10774. */
  10775. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  10776. /* Optional attribute used to configure wlan duration for Shape-OCS
  10777. * monitor period.
  10778. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  10779. * Value range 0 ~ 300 (ms)
  10780. * NLA_U32 attribute
  10781. */
  10782. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  10783. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10784. * monitor period.
  10785. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  10786. * Value range 0 ~ 300 (ms)
  10787. * NLA_U32 attribute
  10788. */
  10789. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  10790. /* Optional attribute used to configure ocs interrupt duration.
  10791. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  10792. * Value range 1000 ~ 20000 (ms)
  10793. * NLA_U32 attribute
  10794. */
  10795. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  10796. /* Optional attribute used to configure ocs monitor duration.
  10797. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  10798. * Value range 1000 ~ 20000 (ms)
  10799. * NLA_U32 attribute
  10800. */
  10801. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  10802. /* Optional attribute used to notify wlan FW current zigbee channel.
  10803. * Value range 11 ~ 26
  10804. * NLA_U32 attribute
  10805. */
  10806. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  10807. /* Optional attribute used to configure wlan mute duration.
  10808. * Value range 0 ~ 400 (ms)
  10809. * NLA_U32 attribute
  10810. */
  10811. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  10812. /* keep last */
  10813. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  10814. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  10815. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  10816. };
  10817. /**
  10818. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  10819. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  10820. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  10821. *
  10822. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  10823. * to request the driver to start reporting Beacon frames.
  10824. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  10825. * to request the driver to stop reporting Beacon frames.
  10826. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  10827. * userspace to report received Beacon frames.
  10828. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  10829. * to indicate that the driver is going to pause reporting Beacon frames.
  10830. */
  10831. enum qca_wlan_vendor_beacon_reporting_op_types {
  10832. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  10833. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  10834. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  10835. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  10836. };
  10837. /**
  10838. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  10839. * types of reasons for which the driver is pausing reporting Beacon frames.
  10840. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  10841. *
  10842. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  10843. * reasons.
  10844. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  10845. * driver/firmware is starting a scan.
  10846. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  10847. * driver/firmware disconnects from the ESS and indicates the disconnection to
  10848. * userspace (non-seamless roaming case). This reason code will be used by the
  10849. * driver/firmware to indicate stopping of beacon report events. Userspace
  10850. * will need to start beacon reporting again (if desired) by sending vendor
  10851. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  10852. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  10853. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  10854. * completed.
  10855. */
  10856. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  10857. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  10858. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  10859. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  10860. };
  10861. /*
  10862. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  10863. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  10864. */
  10865. enum qca_wlan_vendor_attr_beacon_reporting_params {
  10866. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  10867. /* Specifies the type of operation that the vendor command/event is
  10868. * intended for. Possible values for this attribute are defined in
  10869. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  10870. */
  10871. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  10872. /* Optionally set by userspace to request the driver to report Beacon
  10873. * frames using asynchronous vendor events when the
  10874. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10875. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  10876. * If this flag is not set, the driver will only update Beacon frames
  10877. * in cfg80211 scan cache but not send any vendor events.
  10878. */
  10879. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  10880. /* Optionally used by userspace to request the driver/firmware to
  10881. * report Beacon frames periodically when the
  10882. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10883. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  10884. * u32 attribute, indicates the period of Beacon frames to be reported
  10885. * and in the units of beacon interval.
  10886. * If this attribute is missing in the command, then the default value
  10887. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  10888. * Zero is an invalid value.
  10889. * If a valid value is received for this attribute, the driver will
  10890. * update the cfg80211 scan cache periodically as per the value
  10891. * received in this attribute in addition to updating the cfg80211 scan
  10892. * cache when there is significant change in Beacon frame IEs.
  10893. */
  10894. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  10895. /* Used by the driver to encapsulate the SSID when the
  10896. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10897. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10898. * u8 array with a maximum size of 32.
  10899. *
  10900. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  10901. * will be taken from the SSID element of the received Beacon frame.
  10902. *
  10903. * When generating beacon report from Multiple BSSID Beacon frame and
  10904. * if the BSSID of the current connected BSS matches the BSSID of the
  10905. * transmitting BSS, the SSID will be taken from the SSID element of
  10906. * the received Beacon frame.
  10907. *
  10908. * When generating beacon report from Multiple BSSID Beacon frame and
  10909. * if the BSSID of the current connected BSS matches the BSSID of one
  10910. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  10911. * field included in the nontransmitted BSS profile whose derived BSSI
  10912. * is same as the BSSID of the current connected BSS. When there is no
  10913. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  10914. * of current connected* BSS, this attribute will not be present.
  10915. */
  10916. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  10917. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  10918. * is currently connected to when the
  10919. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10920. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  10921. * fixed size of 6 bytes.
  10922. *
  10923. * When generating beacon report from a Multiple BSSID beacon and the
  10924. * current connected BSSID matches one of the nontransmitted BSSIDs in
  10925. * a Multiple BSSID set, this BSSID will be that particular
  10926. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  10927. * transmitting address of the Beacon frame).
  10928. */
  10929. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  10930. /* Used by the driver to encapsulate the frequency in MHz on which
  10931. * the Beacon frame was received when the
  10932. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  10933. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10934. * u32 attribute.
  10935. */
  10936. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  10937. /* Used by the driver to encapsulate the Beacon interval
  10938. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10939. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10940. * u16 attribute. The value will be copied from the Beacon frame and
  10941. * the units are TUs.
  10942. */
  10943. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  10944. /* Used by the driver to encapsulate the Timestamp field from the
  10945. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  10946. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  10947. * u64 attribute.
  10948. */
  10949. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  10950. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  10951. * Beacon frame is received in the driver when the
  10952. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10953. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  10954. * the units of nanoseconds. This value is expected to have accuracy of
  10955. * about 10 ms.
  10956. */
  10957. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  10958. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  10959. * which this event is generated when the
  10960. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10961. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  10962. */
  10963. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  10964. /* Used by the driver to specify the reason for the driver/firmware to
  10965. * pause sending beacons to userspace when the
  10966. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10967. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  10968. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  10969. * attribute.
  10970. */
  10971. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  10972. /* Used by the driver to specify whether the driver will automatically
  10973. * resume reporting beacon events to userspace later (for example after
  10974. * the ongoing off-channel activity is completed etc.) when the
  10975. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10976. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  10977. */
  10978. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  10979. /* Optionally set by userspace to request the driver not to resume
  10980. * beacon reporting after a pause is completed, when the
  10981. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10982. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  10983. * If this flag is set, the driver will not resume beacon reporting
  10984. * after any pause in beacon reporting is completed. Userspace has to
  10985. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  10986. * to initiate beacon reporting again. If this flag is set in the recent
  10987. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  10988. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  10989. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  10990. * set by the driver. Setting this flag until and unless there is a
  10991. * specific need is not recommended as there is a chance of some beacons
  10992. * received after pause command and next start command being not
  10993. * reported.
  10994. */
  10995. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  10996. /* Keep last */
  10997. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  10998. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  10999. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  11000. };
  11001. /**
  11002. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  11003. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  11004. *
  11005. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  11006. * a virtual device.
  11007. *
  11008. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  11009. * a physical device.
  11010. */
  11011. enum qca_vendor_oem_device_type {
  11012. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  11013. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  11014. };
  11015. /*
  11016. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  11017. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  11018. *
  11019. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  11020. * used to set/query the data to/from the firmware. On query, the same
  11021. * attribute is used to carry the respective data in the reply sent by the
  11022. * driver to userspace. The request to set/query the data and the format of the
  11023. * respective data from the firmware are embedded in the attribute. The
  11024. * maximum size of the attribute payload is 1024 bytes.
  11025. *
  11026. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  11027. * based on this field. This optional attribute is included to specify whether
  11028. * the device type is a virtual device or a physical device for the command.
  11029. * This attribute can be omitted for a virtual device (default) command.
  11030. * This u8 attribute is used to carry information for the device type using
  11031. * values defined by enum qca_vendor_oem_device_type.
  11032. *
  11033. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  11034. * attribute when the data is queried from the firmware.
  11035. *
  11036. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  11037. * is set when the userspace queries data from the firmware. This attribute
  11038. * should not be set when userspace sets the OEM data to the firmware.
  11039. */
  11040. enum qca_wlan_vendor_attr_oem_data_params {
  11041. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  11042. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  11043. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  11044. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  11045. /* keep last */
  11046. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  11047. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  11048. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  11049. };
  11050. /**
  11051. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  11052. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  11053. *
  11054. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  11055. * Nested attribute containing multiple ranges with following attributes:
  11056. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
  11057. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
  11058. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
  11059. *
  11060. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  11061. * Starting center frequency in MHz.
  11062. *
  11063. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  11064. * Ending center frequency in MHz.
  11065. *
  11066. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
  11067. * s32 attribute, optional. It is a per frequency range attribute.
  11068. * The maximum TX power limit from user space is to be applied on an
  11069. * unrestricted interface for corresponding frequency range. It is also
  11070. * possible that the actual TX power may be even lower than this cap due to
  11071. * other considerations such as regulatory compliance, SAR, etc. In absence of
  11072. * this attribute the driver shall follow current behavior which means
  11073. * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
  11074. * power derived by the driver based on regulatory/SAR during interface up.
  11075. *
  11076. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
  11077. * u32 attribute, optional. Indicates all the interface types which are
  11078. * restricted for all frequency ranges provided in
  11079. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  11080. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  11081. * This attribute encapsulates bitmasks of interface types defined in
  11082. * enum nl80211_iftype. If an interface is marked as restricted the driver must
  11083. * move to a safe channel and if no safe channel is available the driver shall
  11084. * terminate that interface functionality. In absence of this attribute,
  11085. * interface (SAP/P2P) can still continue operating on an unsafe channel with
  11086. * TX power limit derived from either
  11087. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
  11088. * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
  11089. * is not provided.
  11090. */
  11091. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  11092. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  11093. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  11094. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  11095. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  11096. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
  11097. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
  11098. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  11099. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  11100. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  11101. };
  11102. /*
  11103. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  11104. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  11105. */
  11106. enum qca_wlan_vendor_attr_add_sta_node_params {
  11107. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  11108. /* 6 byte MAC address of STA */
  11109. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  11110. /* Authentication algorithm used by the station of size u16;
  11111. * defined in enum nl80211_auth_type.
  11112. */
  11113. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  11114. /* keep last */
  11115. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  11116. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  11117. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  11118. };
  11119. /**
  11120. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  11121. * This enum defines the valid set of values of BT coex chain mode.
  11122. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  11123. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11124. *
  11125. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
  11126. * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
  11127. * separated, hybrid mode.
  11128. * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
  11129. * separated, fixed FDD mode.
  11130. */
  11131. enum qca_btc_chain_mode {
  11132. QCA_BTC_CHAIN_SHARED = 0,
  11133. QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
  11134. QCA_BTC_CHAIN_SEPARATED_FDD = 2,
  11135. };
  11136. /* deprecated legacy name */
  11137. #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
  11138. /**
  11139. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  11140. * chain mode.
  11141. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11142. *
  11143. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  11144. * Indicates the BT coex chain mode, are 32-bit values from
  11145. * enum qca_btc_chain_mode. This attribute is mandatory.
  11146. *
  11147. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  11148. * If set, vdev should be restarted when BT coex chain mode is updated.
  11149. * This attribute is optional.
  11150. */
  11151. enum qca_vendor_attr_btc_chain_mode {
  11152. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  11153. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  11154. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  11155. /* Keep last */
  11156. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  11157. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  11158. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  11159. };
  11160. /**
  11161. * enum qca_vendor_wlan_sta_flags - Station feature flags
  11162. * Bits will be set to 1 if the corresponding features are enabled.
  11163. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  11164. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  11165. for the station
  11166. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  11167. for the station
  11168. */
  11169. enum qca_vendor_wlan_sta_flags {
  11170. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  11171. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  11172. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  11173. };
  11174. /**
  11175. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  11176. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  11177. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  11178. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  11179. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  11180. */
  11181. enum qca_vendor_wlan_sta_guard_interval {
  11182. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  11183. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  11184. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  11185. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  11186. };
  11187. /**
  11188. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  11189. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  11190. *
  11191. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  11192. * Required attribute in request for AP mode only, 6-byte MAC address,
  11193. * corresponding to the station's MAC address for which information is
  11194. * requested. For STA mode this is not required as the info always correspond
  11195. * to the self STA and the current/last association.
  11196. *
  11197. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  11198. * Optionally used in response, u32 attribute, contains a bitmap of different
  11199. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  11200. *
  11201. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  11202. * Optionally used in response, u32 attribute, possible values are defined in
  11203. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  11204. * Guard interval used by the station.
  11205. *
  11206. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  11207. * Optionally used in response, u32 attribute, used in AP mode only.
  11208. * Value indicates the number of data frames received from station with retry
  11209. * bit set to 1 in FC.
  11210. *
  11211. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  11212. * Optionally used in response, u32 attribute, used in AP mode only.
  11213. * Counter for number of data frames with broadcast or multicast address in
  11214. * the destination address received from the station.
  11215. *
  11216. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  11217. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  11218. * Value indicates the number of data frames successfully transmitted only
  11219. * after retrying the packets and for which the TX status has been updated
  11220. * back to host from target.
  11221. *
  11222. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  11223. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  11224. * Value indicates the number of data frames not transmitted successfully even
  11225. * after retrying the packets for the number of times equal to the total number
  11226. * of retries allowed for that packet and for which the TX status has been
  11227. * updated back to host from target.
  11228. *
  11229. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  11230. * Optionally used in response, u32 attribute, used in AP mode only.
  11231. * Counter in the target for the number of data frames successfully transmitted
  11232. * to the station.
  11233. *
  11234. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  11235. * Optionally used in response, u32 attribute, used in AP mode only.
  11236. * Value indicates the number of data frames successfully transmitted only
  11237. * after retrying the packets.
  11238. *
  11239. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  11240. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  11241. * Value indicates the number of data frames not transmitted successfully even
  11242. * after retrying the packets for the number of times equal to the total number
  11243. * of retries allowed for that packet.
  11244. *
  11245. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  11246. * the STA mode only. Represent the number of probe requests sent by the STA
  11247. * while attempting to roam on missing certain number of beacons from the
  11248. * connected AP. If queried in the disconnected state, this represents the
  11249. * count for the last connected state.
  11250. *
  11251. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  11252. * the STA mode. Represent the number of probe responses received by the station
  11253. * while attempting to roam on missing certain number of beacons from the
  11254. * connected AP. When queried in the disconnected state, this represents the
  11255. * count when in last connected state.
  11256. *
  11257. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  11258. * STA mode only. Represents the total number of frames sent out by STA
  11259. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  11260. * only for the connect session. Represents the count of last connected session,
  11261. * when queried in the disconnected state.
  11262. *
  11263. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  11264. * Total number of RTS sent out by the STA. This data is maintained per connect
  11265. * session. Represents the count of last connected session, when queried in the
  11266. * disconnected state.
  11267. *
  11268. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  11269. * STA mode.Represent the number of RTS transmission failure that reach retry
  11270. * limit. This data is maintained per connect session. Represents the count of
  11271. * last connected session, when queried in the disconnected state.
  11272. *
  11273. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  11274. * the STA mode. Represent the total number of non aggregated frames transmitted
  11275. * by the STA. This data is maintained per connect session. Represents the count
  11276. * of last connected session, when queried in the disconnected state.
  11277. *
  11278. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  11279. * STA mode. Represent the total number of aggregated frames transmitted by the
  11280. * STA. This data is maintained per connect session. Represents the count of
  11281. * last connected session, when queried in the disconnected state.
  11282. *
  11283. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  11284. * the STA mode. Represents the number of received frames with a good PLCP. This
  11285. * data is maintained per connect session. Represents the count of last
  11286. * connected session, when queried in the disconnected state.
  11287. *
  11288. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  11289. * used in the STA mode. Represents the number of occasions that no valid
  11290. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  11291. * session. Represents the count of last connected session, when queried in the
  11292. * disconnected state.
  11293. *
  11294. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  11295. * STA mode. Represents the number of frames for which CRC check failed in the
  11296. * MAC. This data is maintained per connect session. Represents the count of
  11297. * last connected session, when queried in the disconnected state.
  11298. *
  11299. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  11300. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  11301. * data is maintained per connect session. Represents the count of last
  11302. * connected session, when queried in the disconnected state.
  11303. *
  11304. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  11305. * mode. Represents the number of received Block Acks. This data is maintained
  11306. * per connect session. Represents the count of last connected session, when
  11307. * queried in the disconnected state.
  11308. *
  11309. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  11310. * mode. Represents the number of beacons received from the connected BSS. This
  11311. * data is maintained per connect session. Represents the count of last
  11312. * connected session, when queried in the disconnected state.
  11313. *
  11314. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  11315. * STA mode. Represents the number of beacons received by the other BSS when in
  11316. * connected state (through the probes done by the STA). This data is maintained
  11317. * per connect session. Represents the count of last connected session, when
  11318. * queried in the disconnected state.
  11319. *
  11320. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  11321. * the STA mode. Represents the number of received DATA frames with good FCS and
  11322. * matching Receiver Address when in connected state. This data is maintained
  11323. * per connect session. Represents the count of last connected session, when
  11324. * queried in the disconnected state.
  11325. *
  11326. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  11327. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  11328. * when in the connected state. This data is maintained per connect session.
  11329. * Represents the count of last connected session, when queried in the
  11330. * disconnected state.
  11331. *
  11332. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  11333. * STA mode. This represents the target power in dBm for the transmissions done
  11334. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  11335. * connect session. Represents the count of last connected session, when
  11336. * queried in the disconnected state.
  11337. *
  11338. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  11339. * STA mode. This represents the Target power in dBm for transmissions done to
  11340. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11341. * session. Represents the count of last connected session, when queried in the
  11342. * disconnected state.
  11343. *
  11344. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  11345. * STA mode. This represents the Target power in dBm for transmissions done to
  11346. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  11347. * Represents the count of last connected session, when queried in the
  11348. * disconnected state.
  11349. *
  11350. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  11351. * STA mode. This represents the Target power in dBm for transmissions done to
  11352. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11353. * session. Represents the count of last connected session, when queried in
  11354. * the disconnected state.
  11355. *
  11356. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  11357. * STA mode. This represents the Target power in dBm for for transmissions done
  11358. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  11359. * Represents the count of last connected session, when queried in the
  11360. * disconnected state.
  11361. *
  11362. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  11363. * in the STA mode. This represents the Nested attribute representing the
  11364. * overflow counts of each receive buffer allocated to the hardware during the
  11365. * STA's connection. The number of hw buffers might vary for each WLAN
  11366. * solution and hence this attribute represents the nested array of all such
  11367. * HW buffer count. This data is maintained per connect session. Represents
  11368. * the count of last connected session, when queried in the disconnected state.
  11369. *
  11370. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  11371. * allowed as per the regulatory requirements for the current or last connected
  11372. * session. Used in the STA mode.
  11373. *
  11374. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  11375. * (dBm) used by the station in its latest unicast frame while communicating
  11376. * to the AP in the connected state. When queried in the disconnected state,
  11377. * this represents the TX power used by the STA with last AP communication
  11378. * when in connected state.
  11379. *
  11380. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  11381. * level used to adjust the RX sensitivity. Represents the current ANI level
  11382. * when queried in the connected state. When queried in the disconnected
  11383. * state, this corresponds to the latest ANI level at the instance of
  11384. * disconnection.
  11385. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  11386. * only. This represents the number of group addressed robust management frames
  11387. * received from this station with an invalid MIC or a missing MME when PMF is
  11388. * enabled.
  11389. *
  11390. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  11391. * only. This represents the number of group addressed robust management frames
  11392. * received from this station with the packet number less than or equal to the
  11393. * last received packet number when PMF is enabled.
  11394. *
  11395. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  11396. * mode only. This represents the number of Beacon frames received from this
  11397. * station with an invalid MIC or a missing MME when beacon protection is
  11398. * enabled.
  11399. *
  11400. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  11401. * only. This represents number of Beacon frames received from this station with
  11402. * the packet number less than or equal to the last received packet number when
  11403. * beacon protection is enabled.
  11404. *
  11405. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  11406. * STA mode only. Driver uses this attribute to populate the connection failure
  11407. * reason codes and the values are defined in
  11408. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  11409. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  11410. * connection failure from driver. The driver shall not include this attribute
  11411. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  11412. * connection failure observed in the last attempted connection.
  11413. *
  11414. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  11415. * used by the station in its last TX frame while communicating to the AP in the
  11416. * connected state. When queried in the disconnected state, this represents the
  11417. * rate used by the STA in the last TX frame to the AP when it was connected.
  11418. * This attribute is used for STA mode only.
  11419. *
  11420. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  11421. * This represents the rate index used by the STA for the last TX frame to the
  11422. * AP. When queried in the disconnected state, this gives the last RIX used by
  11423. * the STA in the last TX frame to the AP when it was connected.
  11424. *
  11425. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  11426. * mode only. This represents the number of times the STA TSF goes out of sync
  11427. * from the AP after the connection. If queried in the disconnected state, this
  11428. * gives the count of TSF out of sync for the last connection.
  11429. *
  11430. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  11431. * mode only. This represents the roam trigger reason for the last roaming
  11432. * attempted by the firmware. This can be queried either in connected state or
  11433. * disconnected state. Each bit of this attribute represents the different
  11434. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  11435. *
  11436. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  11437. * only. This represents the roam fail reason for the last failed roaming
  11438. * attempt by the firmware. Different roam failure reason codes are specified
  11439. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  11440. * connected state or disconnected state.
  11441. *
  11442. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  11443. * STA mode only. This represents the roam invoke fail reason for the last
  11444. * failed roam invoke. Different roam invoke failure reason codes
  11445. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  11446. * queried either in connected state or disconnected state.
  11447. *
  11448. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  11449. * This represents the average congestion duration of uplink frames in MAC
  11450. * queue in unit of ms. This can be queried either in connected state or
  11451. * disconnected state.
  11452. *
  11453. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
  11454. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11455. * rate value of TX packets. Every index of this nested attribute corresponds
  11456. * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
  11457. * queried in connected state.
  11458. *
  11459. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
  11460. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11461. * rate value of RX packets. Every index of this nested attribute corresponds
  11462. * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
  11463. * queried in connected state.
  11464. */
  11465. enum qca_wlan_vendor_attr_get_sta_info {
  11466. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  11467. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  11468. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  11469. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  11470. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  11471. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  11472. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  11473. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  11474. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  11475. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  11476. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  11477. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  11478. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  11479. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  11480. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  11481. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  11482. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  11483. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  11484. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  11485. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  11486. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  11487. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  11488. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  11489. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  11490. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  11491. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  11492. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  11493. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  11494. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  11495. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  11496. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  11497. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  11498. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  11499. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  11500. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  11501. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  11502. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  11503. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  11504. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  11505. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  11506. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  11507. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  11508. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  11509. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  11510. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  11511. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  11512. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  11513. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  11514. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
  11515. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
  11516. /* keep last */
  11517. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  11518. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  11519. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  11520. };
  11521. /**
  11522. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  11523. * Used when the driver triggers the STA to disconnect from the AP.
  11524. *
  11525. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  11526. * disconnection with the AP due to unspecified reasons.
  11527. *
  11528. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  11529. * disconnection with the AP due to a roaming failure. This roaming is triggered
  11530. * internally (host driver/firmware).
  11531. *
  11532. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  11533. * the AP when the user/external triggered roaming fails.
  11534. *
  11535. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  11536. * by the host driver whenever gateway reachability failure is detected and the
  11537. * driver disconnects with AP.
  11538. *
  11539. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  11540. * the AP on a channel switch announcement from it with an unsupported channel.
  11541. *
  11542. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  11543. * with indoor channels disabled and if the STA is connected on one of these
  11544. * disabled channels, the host driver disconnected the STA with this reason
  11545. * code.
  11546. *
  11547. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  11548. * explicit request from the user to disable the current operating channel.
  11549. *
  11550. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  11551. * the internal host driver/firmware recovery.
  11552. *
  11553. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  11554. * a timeout for the key installations from the user space.
  11555. *
  11556. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  11557. * STA on a band change request from the user space to a different band from the
  11558. * current operation channel/band.
  11559. *
  11560. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  11561. * interface down trigger from the user space.
  11562. *
  11563. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  11564. * STA on getting continuous transmission failures for multiple Data frames.
  11565. *
  11566. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  11567. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  11568. * represents inactivity from AP on such transmissions.
  11569. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  11570. * disconnection when SA Query times out (AP does not respond to SA Query).
  11571. *
  11572. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  11573. * STA on missing the beacons continuously from the AP.
  11574. *
  11575. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  11576. * able to move to the channel mentioned by the AP in CSA.
  11577. *
  11578. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  11579. */
  11580. enum qca_disconnect_reason_codes {
  11581. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  11582. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  11583. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  11584. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  11585. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  11586. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  11587. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  11588. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  11589. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  11590. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  11591. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  11592. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  11593. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  11594. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  11595. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  11596. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  11597. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  11598. };
  11599. /**
  11600. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  11601. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  11602. *
  11603. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  11604. * This attribute represents the driver specific reason codes (local
  11605. * driver/firmware initiated reasons for disconnection) defined
  11606. * in enum qca_disconnect_reason_codes.
  11607. */
  11608. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  11609. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  11610. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  11611. /* keep last */
  11612. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  11613. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  11614. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  11615. };
  11616. /**
  11617. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  11618. *
  11619. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  11620. */
  11621. enum qca_wlan_tspec_operation {
  11622. QCA_WLAN_TSPEC_ADD = 0,
  11623. QCA_WLAN_TSPEC_DEL = 1,
  11624. QCA_WLAN_TSPEC_GET = 2,
  11625. };
  11626. /**
  11627. * enum qca_wlan_tspec_direction - Direction in TSPEC
  11628. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  11629. *
  11630. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  11631. */
  11632. enum qca_wlan_tspec_direction {
  11633. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  11634. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  11635. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  11636. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  11637. };
  11638. /**
  11639. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  11640. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  11641. *
  11642. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  11643. */
  11644. enum qca_wlan_tspec_ack_policy {
  11645. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  11646. QCA_WLAN_TSPEC_NO_ACK = 1,
  11647. /* Reserved */
  11648. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  11649. };
  11650. /**
  11651. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  11652. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  11653. *
  11654. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  11655. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  11656. * are defined in enum qca_wlan_tspec_operation.
  11657. * Mandatory attribute for all kinds of config TSPEC requests.
  11658. *
  11659. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  11660. * u8 attribute. TS ID. Possible values are 0-7.
  11661. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  11662. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  11663. *
  11664. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  11665. * u8 attribute. Direction of data carried by the TS. Possible values are
  11666. * defined in enum qca_wlan_tspec_direction.
  11667. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11668. *
  11669. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  11670. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  11671. * with the TS. set - enabled, not set - disabled.
  11672. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11673. *
  11674. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  11675. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  11676. * belonging to this TS. Possible values are 0-7.
  11677. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11678. *
  11679. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  11680. * u8 attribute. Indicate whether MAC acknowledgements are required for
  11681. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  11682. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  11683. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11684. *
  11685. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  11686. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  11687. * belonging to this TS.
  11688. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11689. *
  11690. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  11691. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  11692. * belonging to this TS.
  11693. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11694. *
  11695. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  11696. * u32 attribute. Specify the minimum interval in microseconds between the
  11697. * start of two successive SPs.
  11698. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11699. *
  11700. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  11701. * u32 attribute. Specify the maximum interval in microseconds between the
  11702. * start of two successive SPs.
  11703. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11704. *
  11705. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  11706. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11707. * without arrival or transfer of an MPDU belonging to the TS before this TS
  11708. * is deleted by the MAC entity at the HC.
  11709. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11710. *
  11711. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  11712. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11713. * without arrival or transfer of an MSDU belonging to the TS before the
  11714. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  11715. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  11716. * interval is always less than or equal to the inactivity interval.
  11717. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11718. *
  11719. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  11720. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  11721. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11722. * bounds of this TSPEC.
  11723. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11724. *
  11725. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  11726. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  11727. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11728. * bounds of this TSPEC.
  11729. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11730. *
  11731. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  11732. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  11733. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  11734. * the bounds of this TSPEC.
  11735. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11736. *
  11737. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  11738. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  11739. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  11740. * value of 0 indicates that there are no bursts.
  11741. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11742. *
  11743. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  11744. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  11745. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  11746. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11747. *
  11748. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  11749. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  11750. * and above the stated application rates required to transport an MSDU/A-MSDU
  11751. * belonging to the TS in this TSPEC.
  11752. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11753. */
  11754. enum qca_wlan_vendor_attr_config_tspec {
  11755. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  11756. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  11757. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  11758. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  11759. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  11760. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  11761. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  11762. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  11763. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  11764. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  11765. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  11766. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  11767. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  11768. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  11769. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  11770. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  11771. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  11772. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  11773. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  11774. /* keep last */
  11775. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  11776. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  11777. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  11778. };
  11779. /**
  11780. * enum qca_wlan_medium_assess_type - Type of medium assess request
  11781. *
  11782. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  11783. */
  11784. enum qca_wlan_medium_assess_type {
  11785. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  11786. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  11787. };
  11788. /**
  11789. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  11790. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  11791. *
  11792. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  11793. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  11794. * Specify the type of medium assess request and indicate its type in response.
  11795. * Possible values are defined in enum qca_wlan_medium_assess_type.
  11796. *
  11797. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  11798. * u32 attribute. Mandatory in CCA request.
  11799. * Specify the assessment period in terms of seconds. Assessment result will be
  11800. * sent as the response to the CCA request after the assessment period.
  11801. *
  11802. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  11803. * u32 attribute. Mandatory in response to CCA request.
  11804. * Total timer tick count of the assessment cycle.
  11805. *
  11806. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  11807. * u32 attribute. Mandatory in response to CCA request.
  11808. * Timer tick count of idle time in the assessment cycle.
  11809. *
  11810. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  11811. * u32 attribute. Mandatory in response to CCA request.
  11812. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  11813. *
  11814. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  11815. * u32 attribute. Mandatory in response to CCA request.
  11816. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  11817. *
  11818. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  11819. * s32 attribute. Mandatory in response to CCA request.
  11820. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  11821. *
  11822. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  11823. * s32 attribute. Mandatory in response to CCA request.
  11824. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  11825. *
  11826. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  11827. * u8 attribute. Mandatory in congestion report request.
  11828. * 1-enable 0-disable.
  11829. *
  11830. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  11831. * u8 attribute. Mandatory in congestion report enable request and will be
  11832. * ignored if present in congestion report disable request. Possible values are
  11833. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  11834. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  11835. * congestion percentage reaches the configured threshold.
  11836. *
  11837. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  11838. * u8 attribute. Optional in congestion report enable request and will be
  11839. * ignored if present in congestion report disable request.
  11840. * Specify the interval of congestion report event in terms of seconds. Possible
  11841. * values are 1-255. Default value 1 will be used if this attribute is omitted
  11842. * or using invalid values.
  11843. *
  11844. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  11845. * u8 attribute. Mandatory in congestion report event.
  11846. * Indicate the actual congestion percentage. Possible values are 0-100.
  11847. */
  11848. enum qca_wlan_vendor_attr_medium_assess {
  11849. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  11850. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  11851. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  11852. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  11853. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  11854. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  11855. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  11856. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  11857. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  11858. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  11859. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  11860. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  11861. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  11862. /* keep last */
  11863. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  11864. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  11865. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  11866. };
  11867. /**
  11868. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  11869. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  11870. *
  11871. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  11872. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  11873. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  11874. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  11875. *
  11876. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
  11877. * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
  11878. *
  11879. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
  11880. * u8 attribute, required. indicates group id of Tx VDEV
  11881. *
  11882. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
  11883. * Nested attribute. This attribute shall be used by the driver to send
  11884. * group information. The attributes defined in enum
  11885. * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
  11886. * are nested in this attribute.
  11887. */
  11888. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  11889. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  11890. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  11891. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
  11892. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
  11893. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
  11894. /* keep last */
  11895. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  11896. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  11897. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  11898. };
  11899. /**
  11900. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
  11901. * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
  11902. *
  11903. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
  11904. * u32 attribute, required. contains interface index.
  11905. *
  11906. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
  11907. * u8 attribute, required. 0 - means vdev is in down state.
  11908. * 1- means vdev is in up state.
  11909. */
  11910. enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
  11911. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
  11912. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
  11913. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
  11914. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
  11915. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
  11916. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
  11917. };
  11918. /**
  11919. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  11920. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  11921. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  11922. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  11923. * frame
  11924. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  11925. * Request frame.
  11926. */
  11927. enum qca_wlan_vendor_oci_override_frame_type {
  11928. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  11929. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  11930. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  11931. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  11932. };
  11933. /**
  11934. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  11935. *
  11936. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  11937. * STA interface has to be given while selecting the connection policies
  11938. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  11939. * An interface is set as primary through the attribute
  11940. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  11941. * applicable if the primary interface has not been set earlier.
  11942. *
  11943. * The intention is not to downgrade the primary STA performance, such as:
  11944. * - Do not reduce the number of TX/RX chains of primary connection.
  11945. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  11946. * chains.
  11947. * - If using MCC, should set the MCC duty cycle of the primary connection to
  11948. * be higher than the secondary connection.
  11949. *
  11950. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  11951. * subsequent STA connection shall be chosen to balance with the existing
  11952. * concurrent STA's performance.
  11953. * Such as
  11954. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  11955. * capability.
  11956. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  11957. * to the secondary.
  11958. * - Prefer BSSID candidates which will help provide the best "overall"
  11959. * performance for all the STA connections.
  11960. */
  11961. enum qca_wlan_concurrent_sta_policy_config {
  11962. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  11963. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  11964. };
  11965. /**
  11966. * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
  11967. *
  11968. * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
  11969. * interface.
  11970. *
  11971. * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
  11972. * to meet gaming audio latency requirements.
  11973. *
  11974. * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
  11975. * concurrencies to meet lossless audio streaming requirements.
  11976. *
  11977. * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
  11978. * XR (eXtended Reality) requirements.
  11979. */
  11980. enum qca_wlan_concurrent_ap_policy_config {
  11981. QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
  11982. QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
  11983. QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
  11984. QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
  11985. };
  11986. /**
  11987. * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
  11988. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
  11989. *
  11990. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
  11991. * u8 attribute. Configures the concurrent STA policy configuration.
  11992. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  11993. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
  11994. * u8 attribute. Configures the concurrent AP policy configuration.
  11995. * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
  11996. */
  11997. enum qca_wlan_vendor_attr_concurrent_policy {
  11998. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
  11999. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
  12000. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
  12001. /* keep last */
  12002. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
  12003. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
  12004. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
  12005. };
  12006. /* Compatibility defines for previously used enum
  12007. * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
  12008. * in any new implementation.
  12009. */
  12010. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
  12011. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
  12012. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
  12013. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
  12014. #define qca_wlan_vendor_attr_concurrent_sta_policy \
  12015. qca_wlan_vendor_attr_concurrent_policy
  12016. /**
  12017. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  12018. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  12019. * attribute.
  12020. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  12021. * for unicast probe request.
  12022. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  12023. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  12024. * ath request.
  12025. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  12026. * received from AP.
  12027. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  12028. * request.
  12029. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  12030. * assoc request.
  12031. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  12032. * received from AP.
  12033. */
  12034. enum qca_sta_connect_fail_reason_codes {
  12035. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  12036. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  12037. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  12038. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  12039. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  12040. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  12041. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  12042. };
  12043. /**
  12044. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  12045. * OCI override request. These attributes are used inside nested attribute
  12046. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  12047. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  12048. *
  12049. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  12050. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  12051. * attribute to specify the frame type in which the OCI is to be overridden.
  12052. *
  12053. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  12054. * OCI frequency (in MHz) to override in the specified frame type.
  12055. */
  12056. enum qca_wlan_vendor_attr_oci_override {
  12057. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  12058. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  12059. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  12060. /* keep last */
  12061. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  12062. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  12063. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  12064. };
  12065. /**
  12066. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  12067. * filters defined in this enum are used in attribute
  12068. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  12069. *
  12070. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  12071. * shall filter the channels which are not usable because of coexistence with
  12072. * cellular radio.
  12073. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  12074. * shall filter the channels which are not usable because of existing active
  12075. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  12076. *
  12077. */
  12078. enum qca_wlan_vendor_usable_channels_filter {
  12079. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  12080. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  12081. };
  12082. /**
  12083. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  12084. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  12085. *
  12086. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  12087. * u32 attribute, required. Indicates the center frequency of the primary
  12088. * channel in MHz.
  12089. *
  12090. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  12091. * u32 attribute. Indicates the center frequency of the primary segment of the
  12092. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  12093. * 160 MHz, and 320 MHz channels.
  12094. *
  12095. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  12096. * u32 attribute. Indicates the center frequency of the secondary segment of
  12097. * 80+80 channel in MHz. This attribute is required only when
  12098. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  12099. *
  12100. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  12101. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  12102. * values are defined in enum nl80211_chan_width.
  12103. *
  12104. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  12105. * u32 attribute, required. Indicates all the interface types for which this
  12106. * channel is usable. This attribute encapsulates bitmasks of interface types
  12107. * defined in enum nl80211_iftype.
  12108. *
  12109. */
  12110. enum qca_wlan_vendor_attr_chan_info {
  12111. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  12112. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  12113. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  12114. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  12115. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  12116. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  12117. /* keep last */
  12118. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  12119. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  12120. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  12121. };
  12122. /**
  12123. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  12124. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  12125. *
  12126. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  12127. * u32 attribute. Indicates the bands from which the channels should be reported
  12128. * in response. This attribute encapsulates bit masks of bands defined in enum
  12129. * nl80211_band. Optional attribute, if not present in the request the driver
  12130. * shall return channels from all supported bands.
  12131. *
  12132. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  12133. * u32 attribute. Indicates all the interface types for which the usable
  12134. * channels information is requested. This attribute encapsulates bitmasks of
  12135. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  12136. * present in the request the driver shall send information of all supported
  12137. * interface modes.
  12138. *
  12139. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  12140. * u32 attribute. This attribute carries information of all filters that shall
  12141. * be applied while populating usable channels information by the driver. This
  12142. * attribute carries bit masks of different filters defined in enum
  12143. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  12144. * in the request the driver shall send information of channels without applying
  12145. * any of the filters that can be configured through this attribute.
  12146. *
  12147. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  12148. * Nested attribute. This attribute shall be used by the driver to send
  12149. * usability information of each channel. The attributes defined in enum
  12150. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  12151. */
  12152. enum qca_wlan_vendor_attr_usable_channels {
  12153. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  12154. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  12155. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  12156. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  12157. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  12158. /* keep last */
  12159. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  12160. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  12161. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  12162. };
  12163. /**
  12164. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  12165. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  12166. *
  12167. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  12168. * the list of radar history entries.
  12169. * Each entry contains freq, timestamp, and radar signal detect flag.
  12170. * The driver shall add an entry when CAC has finished, or radar signal
  12171. * has been detected post AP beaconing. The driver shall maintain at least
  12172. * 8 entries in order to save CAC result for a 160 MHz channel.
  12173. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  12174. * Channel frequency in MHz.
  12175. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  12176. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  12177. * or radar detection.
  12178. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  12179. * This flag indicates radar signal has been detected.
  12180. */
  12181. enum qca_wlan_vendor_attr_radar_history {
  12182. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  12183. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  12184. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  12185. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  12186. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  12187. /* keep last */
  12188. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  12189. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  12190. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  12191. };
  12192. /**
  12193. * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
  12194. *
  12195. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
  12196. * target exited MCC state and cleared the quota information. In the
  12197. * command it clears MCC quota setting and restores adaptive scheduling.
  12198. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
  12199. * will not be changed.
  12200. * This quota type is present in command/event.
  12201. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
  12202. * and the target may change the quota based on the data activity.
  12203. * This quota type is only present in event.
  12204. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
  12205. * by the target for low latency.
  12206. * This quota type is only present in command.
  12207. */
  12208. enum qca_wlan_vendor_mcc_quota_type {
  12209. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
  12210. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
  12211. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
  12212. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
  12213. };
  12214. /**
  12215. * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
  12216. * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
  12217. * quota information or as a command to set the required MCC quota for an
  12218. * interface.
  12219. *
  12220. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
  12221. * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
  12222. * In a command this specifies the MCC quota type to be set for the interface.
  12223. * In an event this provides the current quota type in force.
  12224. * This is required in a command and an event.
  12225. *
  12226. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
  12227. * the list of channel quota entries.
  12228. * In an event each entry contains the frequency and respective time quota for
  12229. * all the MCC interfaces.
  12230. * In a command it specifies the interface index and respective time quota.
  12231. * In a command only one entry (ifindex, quota pair) may be specified.
  12232. *
  12233. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
  12234. * Channel frequency in MHz. This is present only in an event.
  12235. *
  12236. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
  12237. * Channel time quota expressed as percentage.
  12238. * This is present in an event and a command.
  12239. * In an command, the user shall specify the quota to be allocated for the
  12240. * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
  12241. * In an event this provides the existing quota for the channel.
  12242. *
  12243. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
  12244. * Specifies the interface index (netdev) for which the corresponding
  12245. * configurations are applied. This is required in a command only. Only one
  12246. * interface index may be specified. If not specified, the configuration is
  12247. * rejected.
  12248. *
  12249. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
  12250. * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
  12251. * low latency mode. The firmware will do optimization for low
  12252. * latency in Multi-Channel concurrency state if enabled. And all existing
  12253. * user quota setting will be overwritten by the target.
  12254. * 0 - disable(default), 1 - enable.
  12255. * It is only present in a command with quota type of
  12256. * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
  12257. */
  12258. enum qca_wlan_vendor_attr_mcc_quota {
  12259. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
  12260. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
  12261. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
  12262. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
  12263. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
  12264. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
  12265. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
  12266. /* keep last */
  12267. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
  12268. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
  12269. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
  12270. };
  12271. /**
  12272. * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
  12273. * are used by the attribute
  12274. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
  12275. *
  12276. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
  12277. * invoke roam.
  12278. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
  12279. * detection failed when the roam trigger.
  12280. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
  12281. */
  12282. enum qca_wlan_roam_stats_invoke_reason {
  12283. QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
  12284. QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
  12285. QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
  12286. };
  12287. /**
  12288. * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
  12289. * values are used by the attribute
  12290. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
  12291. *
  12292. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
  12293. * roam by kickout.
  12294. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
  12295. * trigger by kickout.
  12296. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
  12297. * roam trigger by kickout.
  12298. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
  12299. * roam trigger by kickout.
  12300. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
  12301. * disappeared, and all TX is failing when roam trigger by kickout.
  12302. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
  12303. * timeout when roam trigger by kickout.
  12304. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
  12305. * peer has roamed to a repeater.
  12306. */
  12307. enum qca_wlan_roam_stats_tx_failures_reason {
  12308. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
  12309. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
  12310. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
  12311. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
  12312. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
  12313. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
  12314. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
  12315. };
  12316. /**
  12317. * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
  12318. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
  12319. *
  12320. * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
  12321. * detailed reason for roam scan being aborted.
  12322. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
  12323. * started due to high data RSSI during LOW-RSSI roaming.
  12324. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
  12325. * started due to good link speed during LOW-RSSI roaming.
  12326. * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
  12327. * due to high data RSSI during background roaming.
  12328. * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
  12329. * started due to high beacon RSSI during background roaming
  12330. */
  12331. enum qca_wlan_roam_stats_abort_reason {
  12332. QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
  12333. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
  12334. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
  12335. QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
  12336. QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
  12337. };
  12338. /**
  12339. * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
  12340. * These values are used by the attribute
  12341. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
  12342. *
  12343. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
  12344. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
  12345. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
  12346. * This is generally used in BTM events to indicate BTM frame exchange logs.
  12347. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
  12348. * from 2.4 GHz to 5 GHz or 6 GHz
  12349. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
  12350. * 5 GHz to 6 GHz
  12351. */
  12352. enum qca_wlan_roam_stats_scan_type {
  12353. QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
  12354. QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
  12355. QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
  12356. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
  12357. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
  12358. };
  12359. /**
  12360. * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
  12361. * These values are used by the attribute
  12362. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
  12363. *
  12364. * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
  12365. * detailed roam scan type.
  12366. * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
  12367. * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
  12368. */
  12369. enum qca_wlan_roam_stats_scan_dwell_type {
  12370. QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
  12371. QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
  12372. QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
  12373. };
  12374. /**
  12375. * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
  12376. * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
  12377. */
  12378. enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
  12379. /* 32-bit unsigned value to indicate center frequency of the primary
  12380. * channel in MHz for each roam scan channel.
  12381. */
  12382. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
  12383. /* 8-bit unsigned value to indicate channel scan type for each
  12384. * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
  12385. */
  12386. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
  12387. /* 32-bit unsigned value to indicate maximum scan time in milliseconds
  12388. * for each roam scan channel.
  12389. */
  12390. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
  12391. /* keep last */
  12392. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
  12393. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
  12394. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
  12395. };
  12396. /**
  12397. * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
  12398. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
  12399. *
  12400. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
  12401. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
  12402. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
  12403. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
  12404. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
  12405. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
  12406. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
  12407. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
  12408. */
  12409. enum qca_wlan_roam_stats_frame_subtype {
  12410. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
  12411. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
  12412. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
  12413. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
  12414. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
  12415. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
  12416. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
  12417. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
  12418. };
  12419. /**
  12420. * enum roam_frame_status - Specifies the valid values the vendor roam frame
  12421. * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
  12422. *
  12423. * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
  12424. * sent or received successfully.
  12425. * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
  12426. * receiving failed.
  12427. */
  12428. enum qca_wlan_roam_stats_frame_status {
  12429. QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
  12430. QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
  12431. };
  12432. /**
  12433. * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
  12434. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
  12435. */
  12436. enum qca_wlan_vendor_attr_roam_stats_frame_info {
  12437. /* 8-bit unsigned value to indicate the frame subtype during
  12438. * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
  12439. */
  12440. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
  12441. /* 8-bit unsigned value to indicate the frame is successful or failed
  12442. * during roaming, one of the values in
  12443. * qca_wlan_roam_stats_frame_status.
  12444. */
  12445. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
  12446. /* 64-bit unsigned value to indicate the timestamp for frame of
  12447. * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
  12448. * when sent or received during roaming, timestamp in milliseconds
  12449. * from system boot.
  12450. */
  12451. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
  12452. /* keep last */
  12453. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
  12454. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
  12455. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
  12456. };
  12457. /**
  12458. * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
  12459. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
  12460. */
  12461. enum qca_wlan_vendor_attr_roam_stats_info {
  12462. /* 64-bit unsigned value to indicate the timestamp when roam was
  12463. * triggered by the firmware, timestamp in milliseconds from system
  12464. * boot.
  12465. */
  12466. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
  12467. /* 32-bit unsigned value to indicate the roam trigger reason for the
  12468. * last roaming attempted by the firmware. This can be queried either
  12469. * in a connected state or disconnected state. The values of this
  12470. * attribute represent the roam trigger reason codes, which
  12471. * are defined in enum qca_roam_reason.
  12472. */
  12473. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
  12474. /* 8-bit unsigned value to indicate percentage of packets for which
  12475. * the RX rate is lower than the RX rate threshold in total RX packets,
  12476. * used for roaming trigger by per.
  12477. */
  12478. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
  12479. /* 8-bit unsigned value to indicate percentage of packets for which
  12480. * the TX rate is lower than TX rate threshold in total TX packets,
  12481. * used for roaming trigger by per.
  12482. */
  12483. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
  12484. /* 32-bit unsigned value to indicate final beacon miss count for
  12485. * trigger reason of beacon miss.
  12486. */
  12487. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
  12488. /* 32-bit unsigned value to indicate consecutive beacon miss count
  12489. * for trigger reason of beacon miss.
  12490. */
  12491. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
  12492. /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
  12493. * reason of beacon miss, 0 - success, 1 - fail.
  12494. * If QOS-NULL TX status is successful, beacon miss final count and
  12495. * consecutive beacon miss count will be reset to zero, and roam will
  12496. * not be triggered. If QOS-NULL TX status is failed, beacon miss final
  12497. * count and consecutive beacon miss count continue to calculate until
  12498. * roaming trigger by beacon miss.
  12499. */
  12500. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
  12501. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12502. * for trigger reason of poor RSSI.
  12503. */
  12504. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
  12505. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12506. * for trigger reason of poor RSSI.
  12507. */
  12508. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
  12509. /* 8-bit unsigned value to indicate RX link speed status
  12510. * for trigger reason of poor RSSI, 0 - good link speed,
  12511. * 1 - bad link speed.
  12512. */
  12513. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
  12514. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12515. * for trigger reason of better RSSI.
  12516. */
  12517. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
  12518. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12519. * for trigger reason of better RSSI.
  12520. */
  12521. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
  12522. /* 32-bit unsigned value to indicate RX throughput in bytes per second
  12523. * for trigger reason of congestion.
  12524. */
  12525. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
  12526. /* 32-bit unsigned value to indicate TX throughput in bytes per second
  12527. * for trigger reason of congestion.
  12528. */
  12529. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
  12530. /* 8-bit unsigned value to indicate roamable AP count
  12531. * for trigger reason of congestion.
  12532. */
  12533. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
  12534. /* 8-bit unsigned value to indicate invoke reason, one of the values
  12535. * defined in qca_wlan_roam_stats_invoke_reason.
  12536. */
  12537. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
  12538. /* 8-bit unsigned value to indicate request mode for trigger reason
  12539. * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
  12540. */
  12541. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
  12542. /* 32-bit unsigned value to indicate disassociate time in milliseconds
  12543. * for trigger reason of BTM.
  12544. */
  12545. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
  12546. /* 32-bit unsigned value to indicate preferred candidate list valid
  12547. * interval in milliseconds for trigger reason of BTM.
  12548. */
  12549. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
  12550. /* 8-bit unsigned value to indicate the number of preferred
  12551. * candidates for trigger reason of BTM.
  12552. */
  12553. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
  12554. /* 8-bit unsigned value to indicate response status for trigger
  12555. * reason of BTM, values are defined in IEEE Std 802.11-2020,
  12556. * Table 9-428 (BTM status code definitions).
  12557. */
  12558. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
  12559. /* 32-bit unsigned value to indicate BSS termination timeout value
  12560. * in milliseconds for trigger reason of BTM.
  12561. */
  12562. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
  12563. /* 32-bit unsigned value to indicate MBO associate retry timeout
  12564. * value in milliseconds for trigger reason of BTM.
  12565. */
  12566. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
  12567. /* 8-bit unsigned value to indicate dialog token number
  12568. * for trigger reason of BTM.
  12569. */
  12570. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
  12571. /* 8-bit unsigned value to indicate percentage of connected AP
  12572. * channel congestion utilization for trigger reason of BSS load.
  12573. */
  12574. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
  12575. /* 8-bit unsigned value to indicate disconnection type
  12576. * for trigger reason of disconnection. 1 - Deauthentication,
  12577. * 2 - Disassociation.
  12578. */
  12579. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
  12580. /* 16-bit unsigned value to indicate deauthentication or disassociation
  12581. * reason for trigger reason of disconnection, values are defined
  12582. * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
  12583. */
  12584. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
  12585. /* 32-bit unsigned value to indicate milliseconds of roam scan
  12586. * periodicity when needing to roam to find a better AP for trigger
  12587. * reason of periodic timer.
  12588. */
  12589. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
  12590. /* 8-bit signed value to indicate connected AP RSSI in dBm for
  12591. * trigger reason of background scan.
  12592. */
  12593. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
  12594. /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
  12595. * of background scan.
  12596. */
  12597. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
  12598. /* 8-bit signed value to indicate data RSSI threshold in dBm
  12599. * for trigger reason of background scan.
  12600. */
  12601. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
  12602. /* 32-bit unsigned value to indicate consecutive TX failure threshold
  12603. * for trigger reason of TX failures.
  12604. */
  12605. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
  12606. /* 8-bit unsigned value to indicate TX failure reason for trigger
  12607. * reason of TX failures, one of the values defined in
  12608. * qca_wlan_roam_stats_tx_failures_reason.
  12609. */
  12610. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
  12611. /* 8-bit unsigned value to indicate detail abort reason. One of the
  12612. * values in enum qca_wlan_roam_stats_abort_reason.
  12613. */
  12614. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
  12615. /* 8-bit signed value to indicate data RSSI in dBm when aborting the
  12616. * roam scan.
  12617. */
  12618. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
  12619. /* 8-bit signed value to indicate data RSSI threshold in dBm when
  12620. * aborting the roam scan.
  12621. */
  12622. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
  12623. /* 8-bit unsigned value to indicate data RSSI threshold in RX link
  12624. * speed status when aborting the roam scan.
  12625. * 0 - good link speed, 1 - bad link speed
  12626. */
  12627. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
  12628. /* 8-bit unsigned value to indicate roaming scan type.
  12629. * One of the values in enum qca_wlan_roam_stats_scan_type.
  12630. */
  12631. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
  12632. /* 8-bit unsigned value to indicate roaming result, used in STA mode
  12633. * only.
  12634. * 0-Roaming is successful, 1-Roaming is failed
  12635. */
  12636. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
  12637. /* 8-bit unsigned value to indicate the roam fail reason for the
  12638. * last failed roaming attempt by the firmware. Different roam failure
  12639. * reason codes are specified in enum qca_vendor_roam_fail_reasons.
  12640. * This can be queried either in connected state or disconnected state.
  12641. */
  12642. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
  12643. /* Nested attribute. Indicate roam scan info for each channel, the
  12644. * attributes defined in enum
  12645. * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
  12646. * this attribute.
  12647. */
  12648. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
  12649. /* 32-bit unsigned value to indicate total scan time during roam scan
  12650. * all channels, time in milliseconds.
  12651. */
  12652. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
  12653. /* Nested attribute. This attribute shall be used by the driver to
  12654. * send roam information of each subtype. The attributes defined in
  12655. * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
  12656. * this attribute.
  12657. */
  12658. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
  12659. /* keep last */
  12660. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
  12661. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
  12662. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
  12663. };
  12664. /**
  12665. * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
  12666. * report cached roam info from the driver to user space, enum values are used
  12667. * for netlink attributes sent with the
  12668. * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
  12669. */
  12670. enum qca_wlan_vendor_attr_roam_cached_stats {
  12671. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
  12672. /* Nested attribute, this attribute contains nested array roam info
  12673. * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
  12674. */
  12675. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
  12676. /* keep last */
  12677. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
  12678. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
  12679. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
  12680. };
  12681. /**
  12682. * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
  12683. * radio configurations present in each radio combination.
  12684. *
  12685. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
  12686. * the band info in the radio configuration. Uses the enum qca_set_band values.
  12687. *
  12688. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
  12689. * the number of antennas info in the radio configuration.
  12690. */
  12691. enum qca_wlan_vendor_attr_supported_radio_cfg {
  12692. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
  12693. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
  12694. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
  12695. /* keep last */
  12696. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
  12697. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
  12698. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
  12699. };
  12700. /**
  12701. * enum qca_wlan_vendor_attr_radio_combination - Attributes for
  12702. * radio combinations supported by the device.
  12703. *
  12704. * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
  12705. * provides the radio configurations present in the radio combination.
  12706. * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
  12707. * This attribute provides the values for radio combination matrix.
  12708. * For standalone config, the number of config values is one and the config
  12709. * carries the band and antenna information for standalone configuration. For
  12710. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
  12711. * configuration the number of config values is two and the config carries the
  12712. * band and antenna information for each simultaneous radio.
  12713. */
  12714. enum qca_wlan_vendor_attr_radio_combination {
  12715. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
  12716. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
  12717. /* keep last */
  12718. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
  12719. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
  12720. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
  12721. };
  12722. /**
  12723. * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
  12724. * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
  12725. *
  12726. * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
  12727. * provides the radio combinations supported by the device.
  12728. * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
  12729. * For example, in the radio combination matrix for a device which has two
  12730. * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
  12731. * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
  12732. * combinations is 5 and the radio combinations are
  12733. * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
  12734. * {{5 GHz 2X2}}, //Standalone 5 GHz
  12735. * {{6 GHz 2X2}}, //Standalone 6 GHz
  12736. * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
  12737. * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
  12738. * The band and antenna info together as nested data provides one radio config.
  12739. * Standalone configuration has one config with band and antenna nested data.
  12740. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
  12741. * have two nested band and antenna info data.
  12742. */
  12743. enum qca_wlan_vendor_attr_radio_combination_matrix {
  12744. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
  12745. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
  12746. /* keep last */
  12747. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
  12748. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
  12749. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
  12750. };
  12751. /**
  12752. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  12753. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  12754. *
  12755. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  12756. * Enable mDNS offload. This attribute is mandatory to enable
  12757. * mDNS offload feature. If this attribute is not present, mDNS offload
  12758. * is disabled.
  12759. *
  12760. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  12761. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  12762. * attribute is mandatory when enabling the feature, and not required when
  12763. * disabling the feature.
  12764. *
  12765. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  12766. * the following attributes:
  12767. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  12768. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  12769. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  12770. *
  12771. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  12772. * It consists of a hostname and ".local" as the domain name. The character
  12773. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  12774. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  12775. * supported per vdev.
  12776. * For example: myphone.local
  12777. *
  12778. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  12779. * u16 attribute. It specifies the total number of resource records present
  12780. * in the answer section of the answer payload. This attribute is needed by the
  12781. * firmware to populate the mDNS response frame for mNDS queries without having
  12782. * to parse the answer payload.
  12783. *
  12784. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  12785. * attribute sent by the mdnsResponder from userspace. It contains resource
  12786. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  12787. * payload is passed down to firmware and is transmitted in response to
  12788. * mDNS queries.
  12789. * The maximum size of the answer payload supported is 512 bytes.
  12790. */
  12791. enum qca_wlan_vendor_attr_mdns_offload {
  12792. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  12793. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  12794. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  12795. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  12796. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  12797. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  12798. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  12799. /* keep last */
  12800. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  12801. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  12802. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  12803. };
  12804. /**
  12805. * enum qca_vendor_attr_diag_event_type - Attributes used by
  12806. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  12807. *
  12808. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  12809. * driver/firmware during Connection request from Userspace. Uses the
  12810. * following attributes of enum qca_wlan_vendor_attr_diag:
  12811. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12812. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  12813. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12814. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  12815. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12816. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  12817. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  12818. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  12819. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  12820. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12821. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  12822. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  12823. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12824. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12825. *
  12826. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  12827. * driver/firmware when a connection is failed. Uses the
  12828. * following attributes of enum qca_wlan_vendor_attr_diag:
  12829. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12830. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12831. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12832. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12833. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12834. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12835. *
  12836. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  12837. * driver/firmware during Authentication request from a device. Uses the
  12838. * following attributes of enum qca_wlan_vendor_attr_diag:
  12839. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12840. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12841. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12842. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12843. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  12844. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12845. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12846. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12847. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12848. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12849. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12850. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12851. *
  12852. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  12853. * driver/firmware when device receives an authentication response. Uses the
  12854. * following attributes of enum qca_wlan_vendor_attr_diag:
  12855. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12856. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12857. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12858. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  12859. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12860. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12861. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12862. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12863. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12864. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12865. *
  12866. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  12867. * driver/firmware when device sends an association request. Uses the
  12868. * following attributes of enum qca_wlan_vendor_attr_diag:
  12869. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12870. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12871. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12872. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12873. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12874. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12875. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12876. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12877. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12878. *
  12879. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  12880. * driver/firmware when device receives an association response. Uses the
  12881. * following attributes of enum qca_wlan_vendor_attr_diag:
  12882. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12883. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12884. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12885. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12886. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12887. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12888. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12889. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  12890. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
  12891. *
  12892. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  12893. * driver/userspace when device receives a deauthentication response. Uses the
  12894. * following attributes of enum qca_wlan_vendor_attr_diag:
  12895. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12896. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12897. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12898. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12899. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12900. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12901. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12902. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12903. *
  12904. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  12905. * driver/userspace when device sends a deauthentication request. Uses the
  12906. * following attributes of enum qca_wlan_vendor_attr_diag:
  12907. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12908. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12909. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12910. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12911. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12912. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12913. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12914. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12915. *
  12916. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  12917. * driver/firmware when device receives a disassociation response. Uses the
  12918. * following attributes of enum qca_wlan_vendor_attr_diag:
  12919. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12920. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12921. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12922. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12923. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12924. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12925. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12926. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12927. *
  12928. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  12929. * driver/firmware when device sends a disassociation request. Uses the
  12930. * following attributes of enum qca_wlan_vendor_attr_diag:
  12931. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12932. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12933. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12934. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12935. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12936. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12937. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12938. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12939. *
  12940. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  12941. * driver/firmware when device did not receive beacon packets during connection.
  12942. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  12943. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12944. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12945. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12946. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12947. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12948. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12949. *
  12950. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  12951. * driver/firmware when Roaming scan is triggered. Uses the following
  12952. * attributes of enum qca_wlan_vendor_attr_diag:
  12953. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12954. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  12955. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  12956. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12957. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  12958. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  12959. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  12960. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12961. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12962. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12963. *
  12964. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  12965. * driver/firmware Roam scanning is processed. Uses the following
  12966. * attributes of enum qca_wlan_vendor_attr_diag:
  12967. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12968. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  12969. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  12970. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  12971. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12972. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12973. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12974. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  12975. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
  12976. *
  12977. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  12978. * driver/firmware to provide Roam information of the current AP. Uses the
  12979. * following attributes of enum qca_wlan_vendor_attr_diag:
  12980. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12981. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12982. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12983. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12984. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  12985. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  12986. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12987. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12988. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12989. *
  12990. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  12991. * driver/firmware to provide Roam information of the candid AP. Uses the
  12992. * following attributes of enum qca_wlan_vendor_attr_diag:
  12993. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12994. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12995. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12996. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12997. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  12998. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  12999. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  13000. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13001. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13002. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13003. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13004. *
  13005. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  13006. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  13007. * following attributes of enum qca_wlan_vendor_attr_diag:
  13008. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13009. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
  13010. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13011. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13012. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13013. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13014. *
  13015. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  13016. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  13017. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13018. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13019. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13020. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13021. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13022. *
  13023. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  13024. * /firmware when STA sends a BTM request frame. Uses the following attributes
  13025. * of enum qca_wlan_vendor_attr_diag:
  13026. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13027. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13028. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  13029. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  13030. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  13031. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  13032. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13033. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13034. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13035. *
  13036. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  13037. * driver/firmware when STA queries about BTM transition. Uses the following
  13038. * attributes of enum qca_wlan_vendor_attr_diag:
  13039. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13040. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13041. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  13042. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13043. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13044. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13045. *
  13046. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  13047. * /firmware when STA receives BTM response frame. Uses the following
  13048. * attributes of enum qca_wlan_vendor_attr_diag:
  13049. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13050. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13051. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  13052. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  13053. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  13054. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13055. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13056. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13057. *
  13058. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  13059. * driver/firmware to provide BTM request candidate information. Uses the
  13060. * following attributes of enum qca_wlan_vendor_attr_diag:
  13061. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13062. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13063. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  13064. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13065. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13066. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13067. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13068. *
  13069. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  13070. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  13071. * enum qca_wlan_vendor_attr_diag:
  13072. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13073. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  13074. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13075. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  13076. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13077. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13078. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13079. *
  13080. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  13081. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  13082. * attributes of enum qca_wlan_vendor_attr_diag:
  13083. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13084. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13085. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13086. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13087. *
  13088. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  13089. * driver/firmware to indicate DHCP offering to AP. Uses the following
  13090. * attributes of enum qca_wlan_vendor_attr_diag:
  13091. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13092. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13093. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13094. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13095. *
  13096. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  13097. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  13098. * attributes of enum qca_wlan_vendor_attr_diag:
  13099. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13100. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13101. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13102. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13103. *
  13104. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  13105. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  13106. * attributes of enum qca_wlan_vendor_attr_diag:
  13107. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13108. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13109. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13110. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13111. *
  13112. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  13113. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  13114. * following attributes of enum qca_wlan_vendor_attr_diag:
  13115. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13116. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13117. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13118. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13119. *
  13120. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  13121. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  13122. * enum qca_wlan_vendor_attr_diag:
  13123. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13124. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13125. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13126. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13127. *
  13128. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  13129. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  13130. * enum qca_wlan_vendor_attr_diag:
  13131. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13132. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13133. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13134. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13135. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13136. *
  13137. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  13138. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  13139. * enum qca_wlan_vendor_attr_diag:
  13140. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13141. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13142. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13143. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13144. *
  13145. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  13146. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  13147. * enum qca_wlan_vendor_attr_diag:
  13148. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13149. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13150. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13151. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13152. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13153. *
  13154. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  13155. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  13156. * enum qca_wlan_vendor_attr_diag:
  13157. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13158. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13159. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13160. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13161. *
  13162. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  13163. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  13164. * enum qca_wlan_vendor_attr_diag:
  13165. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13166. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13167. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13168. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13169. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13170. *
  13171. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  13172. * /firmware to indicate device sent EAP request. Uses the following attributes
  13173. * of enum qca_wlan_vendor_attr_diag:
  13174. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13175. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13176. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13177. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13178. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13179. *
  13180. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  13181. * /firmware to indicate device received EAP response. Uses the following
  13182. * attributes of enum qca_wlan_vendor_attr_diag:
  13183. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13184. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13185. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13186. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13187. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13188. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13189. *
  13190. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  13191. * /firmware to indicate EAP frame transmission is success. Uses the following
  13192. * attributes of enum qca_wlan_vendor_attr_diag:
  13193. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13194. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13195. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13196. *
  13197. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  13198. * /firmware to indicate EAP frame transmission is failed. Uses the following
  13199. * attributes of enum qca_wlan_vendor_attr_diag:
  13200. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13201. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13202. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13203. *
  13204. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
  13205. * /firmware to indicate Reassocation request. Uses the following attributes
  13206. * of enum qca_wlan_vendor_attr_diag:
  13207. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13208. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13209. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13210. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13211. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13212. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13213. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13214. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13215. *
  13216. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
  13217. * /firmware to indicate Reassocation response. Uses the following attributes
  13218. * of enum qca_wlan_vendor_attr_diag:
  13219. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13220. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13221. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13222. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13223. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
  13224. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13225. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13226. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13227. */
  13228. enum qca_vendor_attr_diag_event_type {
  13229. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  13230. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  13231. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  13232. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  13233. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  13234. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  13235. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  13236. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  13237. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  13238. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  13239. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  13240. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  13241. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  13242. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  13243. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  13244. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  13245. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  13246. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  13247. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  13248. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  13249. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  13250. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  13251. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  13252. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  13253. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  13254. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  13255. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  13256. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  13257. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  13258. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  13259. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  13260. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  13261. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  13262. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  13263. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  13264. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  13265. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  13266. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
  13267. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
  13268. /* keep last */
  13269. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  13270. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  13271. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  13272. };
  13273. /**
  13274. * enum qca_wlan_vendor_tx_status - Used by attribute
  13275. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  13276. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  13277. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  13278. * is not received.
  13279. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  13280. * acknowledged.
  13281. */
  13282. enum qca_wlan_vendor_tx_status {
  13283. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  13284. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
  13285. QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
  13286. };
  13287. /**
  13288. * enum qca_roam_sub_reason - Used by attribute
  13289. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  13290. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  13291. * timer expiry
  13292. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  13293. * to no candidate found during LOW RSSI trigger.
  13294. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  13295. * Imminent timeout
  13296. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  13297. * failure
  13298. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  13299. * emergency like deauth/disassoc.
  13300. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  13301. * BSS transition management request.
  13302. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  13303. * Roam scan triggered due to Low RSSI periodic timer
  13304. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  13305. * Roam trigger due to periodic timer after no candidate found during CU
  13306. * inactivity timer scan.
  13307. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  13308. * found in high CU roam trigger.
  13309. */
  13310. enum qca_roam_sub_reason {
  13311. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  13312. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  13313. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  13314. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  13315. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  13316. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  13317. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  13318. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  13319. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  13320. };
  13321. /*
  13322. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  13323. * to send diag data to the userspace. The attributes defined in this enum are
  13324. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13325. *
  13326. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  13327. * by driver/firmware to send diag data. Each instance of this nested attribute
  13328. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  13329. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
  13330. * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  13331. * nested attribute can be sent with one vendor command
  13332. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13333. *
  13334. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  13335. * attribute indicates the type of the diag event from driver/firmware. Uses
  13336. * values from enum qca_vendor_attr_diag_event_type.
  13337. *
  13338. * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
  13339. * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
  13340. * API to send time of the day in microseconds to userspace.
  13341. *
  13342. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  13343. * This attribute indicates firmware timestamp in microseconds.
  13344. *
  13345. * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
  13346. * indicates wlan interface index.
  13347. *
  13348. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  13349. * indicates 6-byte MAC address representing the BSSID of the AP.
  13350. *
  13351. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  13352. * indicates the 6-byte MAC address representing the BSSID hint sent in
  13353. * the connect request.
  13354. *
  13355. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
  13356. * indicates the SSID in u8 array with a maximum length of 32.
  13357. *
  13358. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  13359. * indicates the frequency of AP in MHz.
  13360. *
  13361. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  13362. * indicates frequency hint given in the connect request in MHz.
  13363. *
  13364. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
  13365. * This attribute indicates RSSI of the 802.11 frame in dBm.
  13366. *
  13367. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  13368. * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
  13369. * Table 12-10—Integrity and key wrap algorithms.
  13370. *
  13371. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  13372. * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
  13373. * Table 12-10—Integrity and key wrap algorithms.
  13374. *
  13375. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  13376. * attribute indicates Group management cipher suite defined in IEEE Std
  13377. * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
  13378. *
  13379. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  13380. * indicates Auth key management suite defined in IEEE Std 802.11‐2020
  13381. * Table 9-151—AKM suite selectors.
  13382. *
  13383. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  13384. * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
  13385. * Section 9.4.1.1 Authentication Algorithm Number field.
  13386. *
  13387. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  13388. * indicates bluetooth COEX is active or not.
  13389. *
  13390. * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
  13391. * attribute indicates SAE authentication frame type. The possible values are
  13392. * 1 - SAE commit frame
  13393. * 2 - SAE confirm frame
  13394. *
  13395. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  13396. * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
  13397. * Table 9-49—Reason codes.
  13398. *
  13399. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  13400. * attribute indicates sequence number of the frame defined in IEEE Std
  13401. * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
  13402. * field.
  13403. *
  13404. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
  13405. * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
  13406. * 9-50—Status codes.
  13407. *
  13408. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  13409. * Uses enum qca_wlan_vendor_tx_status.
  13410. *
  13411. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  13412. * indicates if frame transmission is retried.
  13413. *
  13414. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  13415. * Uses enum qca_roam_reason.
  13416. *
  13417. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  13418. * Uses enum qca_roam_sub_reason.
  13419. *
  13420. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  13421. * indicates channel utilization in percentage.
  13422. *
  13423. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  13424. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  13425. *
  13426. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  13427. * This attribute indicates current RSSI threshold in dBm.
  13428. *
  13429. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  13430. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  13431. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  13432. *
  13433. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  13434. * This attribute indicates number of scanned candidate APs.
  13435. *
  13436. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  13437. * attribute indicates roam AP rank computed based on connection preference.
  13438. *
  13439. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  13440. * This attribute indicates expected throughput in kbps.
  13441. *
  13442. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  13443. * This attribute indicates the preference value of candidate AP / connected AP
  13444. * calculated in the firmware.
  13445. *
  13446. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
  13447. * indicates connection/roaming is successful or not.
  13448. *
  13449. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  13450. * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
  13451. * IE present in the BTM frame.
  13452. *
  13453. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  13454. * This attribute indicates BTM WTC duration in milliseconds.
  13455. *
  13456. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
  13457. * indicates dialog token value of BTM query/request/response frames.
  13458. *
  13459. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  13460. * attribute indicates the Transition Reason field indicates the reason why
  13461. * a transition attempt occurred and contains one of the values defined in IEEE
  13462. * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
  13463. *
  13464. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  13465. * indicates BTM mode defined in IEEE Std 802.11‐2020
  13466. * Figure 9-924—Request Mode field format.
  13467. *
  13468. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
  13469. * This attribute indicates the Disassociation Timer field which is the number
  13470. * of beacon transmission times (TBTTs) until the serving AP will send a
  13471. * Disassociation frame to this STA.
  13472. *
  13473. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
  13474. * This attribute indicates BTM validity interval field in TBTTs defined in
  13475. * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
  13476. * Action field format.
  13477. *
  13478. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  13479. * This attribute indicates BTM candidate list entries.
  13480. *
  13481. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  13482. * This attribute indicates network preference for BTM transition defined in
  13483. * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
  13484. *
  13485. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  13486. * This attribute indicates BTM transition status code defined in IEEE Std
  13487. * 802.11‐2020 Table 9-428—BTM status code definitions.
  13488. *
  13489. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  13490. * This attribute indicates BSS termination delay defined in IEEE Std
  13491. * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
  13492. *
  13493. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  13494. * This attribute indicates 6-byte MAC address representing the BSSID of the
  13495. * BSS that the non-AP STA transitions to.
  13496. *
  13497. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  13498. * indicates EAP frame type. The methods are enumerated by IANA at
  13499. * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
  13500. *
  13501. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  13502. * indicates EAP frame length.
  13503. *
  13504. * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
  13505. * attribute indicates the kernel timestamp. Driver uses ktime_get() API
  13506. * (Time from boot but not the time spent in suspend) to send in microseconds
  13507. * to userspace.
  13508. *
  13509. * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
  13510. * indicates the association id received in the (re)association response frame
  13511. * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
  13512. */
  13513. enum qca_wlan_vendor_attr_diag {
  13514. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  13515. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  13516. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  13517. QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
  13518. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
  13519. QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
  13520. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
  13521. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
  13522. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
  13523. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
  13524. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
  13525. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
  13526. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
  13527. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
  13528. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
  13529. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
  13530. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
  13531. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
  13532. QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
  13533. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
  13534. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
  13535. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
  13536. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
  13537. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
  13538. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
  13539. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
  13540. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
  13541. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
  13542. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
  13543. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  13544. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  13545. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  13546. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  13547. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  13548. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
  13549. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  13550. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  13551. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  13552. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  13553. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  13554. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  13555. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  13556. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  13557. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  13558. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  13559. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  13560. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  13561. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  13562. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  13563. QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
  13564. QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
  13565. /* keep last */
  13566. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  13567. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  13568. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  13569. };
  13570. /**
  13571. * qca_wlan_vendor_monitor_data_frame_type - Represent the various
  13572. * data types to be sent over the monitor interface.
  13573. */
  13574. enum qca_wlan_vendor_monitor_data_frame_type {
  13575. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
  13576. /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
  13577. not set */
  13578. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
  13579. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
  13580. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
  13581. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
  13582. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
  13583. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
  13584. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
  13585. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
  13586. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
  13587. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
  13588. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
  13589. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
  13590. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
  13591. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
  13592. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
  13593. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
  13594. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
  13595. };
  13596. /**
  13597. * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
  13598. * mgmt types to be sent over the monitor interface.
  13599. * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
  13600. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
  13601. * except the Beacons. Valid only in the Connect state.
  13602. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
  13603. * BSSID Beacons. Valid only in the Connect state.
  13604. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
  13605. * the Beacons obtained during the scan (off channel and connected channel)
  13606. * when in connected state.
  13607. */
  13608. enum qca_wlan_vendor_monitor_mgmt_frame_type {
  13609. QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
  13610. /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
  13611. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
  13612. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
  13613. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
  13614. };
  13615. /**
  13616. * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
  13617. * ctrl types to be sent over the monitor interface.
  13618. * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
  13619. * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
  13620. */
  13621. enum qca_wlan_vendor_monitor_ctrl_frame_type {
  13622. QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
  13623. /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
  13624. QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
  13625. };
  13626. /**
  13627. * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
  13628. * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
  13629. * monitor mode.
  13630. *
  13631. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
  13632. * Represents the tx data packet type to be monitored (u32). These data packets
  13633. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13634. *
  13635. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
  13636. * Represents the tx data packet type to be monitored (u32). These data packets
  13637. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13638. *
  13639. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
  13640. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13641. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13642. *
  13643. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
  13644. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13645. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13646. *
  13647. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
  13648. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13649. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13650. *
  13651. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
  13652. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13653. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13654. *
  13655. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
  13656. * u32 attribute, An interval only for the connected beacon interval, which
  13657. * expects that the connected BSSID's beacons shall be sent on the monitor
  13658. * interface only on this specific interval.
  13659. */
  13660. enum qca_wlan_vendor_attr_set_monitor_mode {
  13661. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
  13662. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
  13663. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
  13664. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
  13665. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
  13666. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
  13667. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
  13668. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
  13669. /* keep last */
  13670. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
  13671. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
  13672. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
  13673. };
  13674. /**
  13675. * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
  13676. * Bits will be set to 1 if the corresponding state is enabled.
  13677. *
  13678. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
  13679. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
  13680. */
  13681. enum qca_wlan_vendor_roam_scan_state {
  13682. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
  13683. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
  13684. };
  13685. /**
  13686. * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
  13687. * Bits will be set to 1 if the corresponding event is notified.
  13688. *
  13689. * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
  13690. * carries the trigger reason. When set, it is expected that the roam event
  13691. * carries the respective reason via the attribute
  13692. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
  13693. * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
  13694. *
  13695. * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
  13696. * carries the roam fail reason. When set, it is expected that the roam event
  13697. * carries the respective reason via the attribute
  13698. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
  13699. * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
  13700. *
  13701. * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
  13702. * event carries the roam invoke fail reason. When set, it is expected that
  13703. * the roam event carries the respective reason via the attribute
  13704. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
  13705. *
  13706. * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
  13707. * carries the roam scan state. When set, it is expected that the roam event
  13708. * carries the respective scan state via the attribute
  13709. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
  13710. * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
  13711. */
  13712. enum qca_wlan_vendor_roam_event_type {
  13713. QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
  13714. QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
  13715. QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
  13716. QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
  13717. };
  13718. /**
  13719. * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
  13720. * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
  13721. *
  13722. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
  13723. * representing the BSSID of the AP to which the Roam is attempted.
  13724. *
  13725. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
  13726. * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
  13727. * attempted.
  13728. *
  13729. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
  13730. * on which the roam is attempted.
  13731. *
  13732. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
  13733. * STA mode only. This represents the roam fail reason for the last failed
  13734. * roaming attempt by the firmware for the specific BSSID. Different roam
  13735. * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
  13736. */
  13737. enum qca_wlan_vendor_attr_roam_events_candidate_info {
  13738. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
  13739. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
  13740. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
  13741. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
  13742. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
  13743. /* keep last */
  13744. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
  13745. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
  13746. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
  13747. };
  13748. /**
  13749. * enum qca_wlan_vendor_attr_roam_events - Used by the
  13750. * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
  13751. * roam events to the driver or notify these events from the driver.
  13752. *
  13753. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
  13754. * driver/firmware to enable/disable the notification of roam events. It's a
  13755. * mandatory attribute and used only in the request from the userspace to the
  13756. * host driver. 1-Enable, 0-Disable.
  13757. * If the roaming is totally offloaded to the firmware, this request when
  13758. * enabled shall mandate the firmware to notify all the relevant roam events
  13759. * represented by the below attributes. If the host is in the suspend mode,
  13760. * the behavior of the firmware to notify these events is guided by
  13761. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
  13762. * these events in the suspend state, the firmware is expected to wake up the
  13763. * host before the respective events are notified. Please note that such a
  13764. * request to get the events in the suspend state will have a definite power
  13765. * implication.
  13766. *
  13767. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
  13768. * that the roam events need to be notified in the suspend state too. By
  13769. * default, these roam events are notified in the resume state. With this flag,
  13770. * the roam events are notified in both resume and suspend states.
  13771. * This attribute is used in the request from the userspace to the host driver.
  13772. *
  13773. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
  13774. * Represents the different roam event types, signified by the enum
  13775. * qca_wlan_vendor_roam_event_type.
  13776. * Each bit of this attribute represents the different roam even types reported
  13777. * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13778. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13779. *
  13780. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
  13781. * mode only. This represents the roam trigger reason for the last roaming
  13782. * attempted by the firmware. Each bit of this attribute represents the
  13783. * different roam trigger reason code which are defined in enum
  13784. * qca_vendor_roam_triggers.
  13785. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13786. *
  13787. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
  13788. * STA mode only. This represents the roam invoke fail reason for the last
  13789. * failed roam invoke. Different roam invoke failure reason codes
  13790. * are specified in enum qca_vendor_roam_invoke_fail_reasons.
  13791. *
  13792. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
  13793. * for which the roam is attempted. Each entry is a nested attribute defined
  13794. * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
  13795. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13796. *
  13797. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
  13798. * the scan state on which the roam events need to be notified. The values for
  13799. * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
  13800. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13801. *
  13802. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
  13803. * u32 values. List of frequencies in MHz considered for a roam scan.
  13804. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13805. */
  13806. enum qca_wlan_vendor_attr_roam_events {
  13807. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
  13808. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
  13809. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
  13810. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
  13811. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
  13812. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
  13813. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
  13814. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
  13815. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
  13816. /* keep last */
  13817. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
  13818. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
  13819. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
  13820. };
  13821. /*
  13822. * enum qca_wlan_ratemask_params_type - Rate mask config type.
  13823. *
  13824. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
  13825. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
  13826. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
  13827. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
  13828. */
  13829. enum qca_wlan_ratemask_params_type {
  13830. QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
  13831. QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
  13832. QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
  13833. QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
  13834. };
  13835. /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
  13836. * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
  13837. * This is used to set the rate mask value to be used in rate selection.
  13838. *
  13839. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
  13840. * Array of nested containing attributes
  13841. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
  13842. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
  13843. *
  13844. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
  13845. * the different phy types to which the rate mask config is to be applied.
  13846. * The values for this attribute are referred from enum
  13847. * qca_wlan_vendor_ratemask_params_type.
  13848. *
  13849. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
  13850. * A bit value of 1 represents rate is enabled and a value of 0
  13851. * represents rate is disabled.
  13852. * For HE targets, 12 bits correpond to one NSS setting.
  13853. * b0-13 => NSS1, MCS 0-13
  13854. * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
  13855. * For VHT targets, 10 bits correspond to one NSS setting.
  13856. * b0-9 => NSS1, MCS 0-9
  13857. * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
  13858. * For HT targets, 8 bits correspond to one NSS setting.
  13859. * b0-7 => NSS1, MCS 0-7
  13860. * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
  13861. * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
  13862. */
  13863. enum qca_wlan_vendor_attr_ratemask_params {
  13864. QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
  13865. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
  13866. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
  13867. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
  13868. /* keep last */
  13869. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
  13870. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
  13871. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
  13872. };
  13873. /**
  13874. * enum qca_wlan_vendor_flush_pending_policy: Represents values for
  13875. * the policy to flush pending frames, configured via
  13876. * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
  13877. * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
  13878. *
  13879. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
  13880. * the flush policy configured before. This command basically disables the
  13881. * flush config set by the user.
  13882. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
  13883. * the flush policy to be immediate. All pending packets for the peer/TID are
  13884. * flushed when this command/policy is received.
  13885. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
  13886. * the flush policy to the end of TWT SP. All pending packets for the peer/TID
  13887. * are flushed when the end of TWT SP is reached.
  13888. */
  13889. enum qca_wlan_vendor_flush_pending_policy {
  13890. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
  13891. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
  13892. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
  13893. };
  13894. /**
  13895. * enum qca_wlan_vendor_attr_flush_pending - Attributes for
  13896. * flushing pending traffic in firmware.
  13897. *
  13898. * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
  13899. * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
  13900. * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
  13901. * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
  13902. * flush packets with access category. This is optional. See below.
  13903. * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
  13904. * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
  13905. * bit to 1 to act upon the TID. This is optional. Either this attribute or
  13906. * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
  13907. * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
  13908. * it is an error.
  13909. * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
  13910. * packets corresponding to the peer/TID provided. It is a u32 value,
  13911. * represented by %enum qca_wlan_vendor_flush_pending_policy. This
  13912. * value is honored only when TID mask is provided. This is not honored when AC
  13913. * mask is provided.
  13914. */
  13915. enum qca_wlan_vendor_attr_flush_pending {
  13916. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
  13917. QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
  13918. QCA_WLAN_VENDOR_ATTR_AC = 2,
  13919. QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
  13920. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
  13921. /* keep last */
  13922. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
  13923. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
  13924. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
  13925. };
  13926. /**
  13927. * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
  13928. * for) or drop existing PASN security association for the listed the
  13929. * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
  13930. * to userspace.
  13931. *
  13932. * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
  13933. * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
  13934. * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
  13935. * the driver to userspace to inform that the existing PASN keys of the
  13936. * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
  13937. * not valid anymore.
  13938. */
  13939. enum qca_wlan_vendor_pasn_action {
  13940. QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
  13941. QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
  13942. };
  13943. /**
  13944. * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
  13945. * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
  13946. *
  13947. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
  13948. * event from the driver to userspace and represents the local MAC address
  13949. * to be used for PASN handshake. When this attribute is present, userspace
  13950. * shall use the source address specified in this attribute by the driver
  13951. * for PASN handshake with peer device.
  13952. * This attribute is required in a command response from userspace to the
  13953. * driver and represents the MAC address that was used in PASN handshake
  13954. * with the peer device.
  13955. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
  13956. * peer device to which PASN handshake is requested in an event from the
  13957. * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  13958. * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
  13959. * Indicates the MAC address of the peer device for which the keys are to
  13960. * be invalidated in an event from the driver to userspace when
  13961. * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  13962. * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
  13963. * Indicates the MAC address of the peer device for which the status is
  13964. * being sent in a status report from userspace to the driver.
  13965. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
  13966. * in the event from the driver to userspace. When set, userspace is
  13967. * required to derive LTF key seed from KDK and set it to the driver.
  13968. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
  13969. * attribute is used in the command response from userspace to the driver.
  13970. * If present, it indicates the successful PASN handshake with the peer. If
  13971. * this flag is not present, it indicates that the PASN handshake with the
  13972. * peer device failed.
  13973. */
  13974. enum qca_wlan_vendor_attr_pasn_peer {
  13975. QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
  13976. QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
  13977. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
  13978. QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
  13979. QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
  13980. /* keep last */
  13981. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
  13982. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
  13983. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
  13984. };
  13985. /**
  13986. * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
  13987. * QCA_NL80211_VENDOR_SUBCMD_PASN command.
  13988. *
  13989. * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
  13990. * defined in enum qca_wlan_vendor_pasn_action and used only in an event
  13991. * from the driver to userspace.
  13992. * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
  13993. * details for each peer and used in both an event and a command response.
  13994. * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
  13995. * defined in enum qca_wlan_vendor_attr_pasn_peer.
  13996. */
  13997. enum qca_wlan_vendor_attr_pasn {
  13998. QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
  13999. QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
  14000. QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
  14001. /* keep last */
  14002. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
  14003. QCA_WLAN_VENDOR_ATTR_PASN_MAX =
  14004. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
  14005. };
  14006. /**
  14007. * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
  14008. * the ranging security context derived from PASN for each peer. Used in
  14009. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
  14010. *
  14011. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
  14012. * context for the peer.
  14013. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
  14014. * context for the peer.
  14015. */
  14016. enum qca_wlan_vendor_secure_ranging_ctx_action {
  14017. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
  14018. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
  14019. };
  14020. /**
  14021. * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
  14022. * used for deriving PASN keys to the driver. Used in
  14023. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
  14024. * @QCA_WLAN_VENDOR_SHA_256: SHA-256
  14025. * @QCA_WLAN_VENDOR_SHA_384: SHA-384
  14026. */
  14027. enum qca_wlan_vendor_sha_type {
  14028. QCA_WLAN_VENDOR_SHA_256,
  14029. QCA_WLAN_VENDOR_SHA_384,
  14030. };
  14031. /**
  14032. * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
  14033. * to set security context for the PASN peer from userspace to the driver.
  14034. * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
  14035. *
  14036. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
  14037. * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
  14038. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
  14039. * was used during the PASN handshake.
  14040. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
  14041. * the peer device for which secure ranging context is being configured.
  14042. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
  14043. * hash algorithm to be used, possible values are defined in enum
  14044. * qca_wlan_vendor_sha_type.
  14045. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
  14046. * the temporal key generated from the PASN handshake. The length of this
  14047. * attribute is dependent on the value of
  14048. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
  14049. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
  14050. * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
  14051. * (e.g., 0x000FAC04).
  14052. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
  14053. * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
  14054. * The length of this attribute is dependent on the value of
  14055. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
  14056. *
  14057. */
  14058. enum qca_wlan_vendor_attr_secure_ranging_ctx {
  14059. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
  14060. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
  14061. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
  14062. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
  14063. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
  14064. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
  14065. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
  14066. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
  14067. /* keep last */
  14068. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
  14069. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
  14070. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
  14071. };
  14072. /**
  14073. * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
  14074. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
  14075. * nested attribute. The packets that match a filter will be replied with
  14076. * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
  14077. *
  14078. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
  14079. * u32 attribute. Destination IPv4 address in network byte order, the
  14080. * IPv4 packets with different address will be filtered out.
  14081. * This attribute is optional.
  14082. *
  14083. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
  14084. * Flag attribute. If it's present, indicates that
  14085. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
  14086. * address; while if not, indicates that the address is a unicast/multicast
  14087. * address.
  14088. * This attribute is optional.
  14089. *
  14090. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
  14091. * NLA_BINARY attribute, length is 16 bytes.
  14092. * Destination IPv6 address in network byte order, the IPv6 packets
  14093. * with different destination address will be filtered out.
  14094. * This attribute is optional.
  14095. *
  14096. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
  14097. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
  14098. * Packets on both IPv4 and IPv6 will be processed if both are configured.
  14099. *
  14100. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
  14101. * u16 attribute. Destination UDP port, the packets with different destination
  14102. * UDP port will be filtered out.
  14103. * This attribute is mandatory.
  14104. *
  14105. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
  14106. * u32 attribute. Represents the offset (in UDP payload) of the data
  14107. * to be matched.
  14108. * This attribute is mandatory.
  14109. *
  14110. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
  14111. * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
  14112. * Binary data that is compared bit-by-bit against the data (specified
  14113. * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
  14114. * payload, the packets don't match will be filtered out.
  14115. * This attribute is mandatory.
  14116. */
  14117. enum qca_wlan_vendor_attr_coap_offload_filter {
  14118. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
  14119. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
  14120. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
  14121. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
  14122. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
  14123. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
  14124. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
  14125. /* keep last */
  14126. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
  14127. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
  14128. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
  14129. };
  14130. /**
  14131. * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
  14132. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
  14133. *
  14134. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
  14135. * u32 attribute. Source address (in network byte order) for replying
  14136. * the matching broadcast/multicast IPv4 packets.
  14137. * This attribute is optional.
  14138. *
  14139. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
  14140. * NLA_BINARY attribute, length is 16 bytes.
  14141. * Source address (in network byte order) for replying the matching
  14142. * multicast IPv6 packets.
  14143. * This attribute is optional.
  14144. *
  14145. * For broadcast/multicast offload reply, one of
  14146. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
  14147. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
  14148. * configured according to version of the IP address(es) configured in
  14149. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
  14150. * while for unicast case, firmware will take the destination IP address
  14151. * in the received matching packet as the source address for replying.
  14152. *
  14153. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
  14154. * Nested attribute. Filter for the received UDP packets, only the matching
  14155. * packets will be replied and cached.
  14156. * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
  14157. * attributes.
  14158. * This attribute is mandatory.
  14159. *
  14160. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
  14161. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14162. * CoAP message (UDP payload) to be sent upon receiving matching packets.
  14163. * Firmware is responsible for adding any necessary protocol headers.
  14164. * This attribute is mandatory.
  14165. *
  14166. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
  14167. * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
  14168. * A cached message will be dropped by firmware if it's expired.
  14169. * This attribute is optional. A default value of 40000 will be used in the
  14170. * absence of it.
  14171. */
  14172. enum qca_wlan_vendor_attr_coap_offload_reply {
  14173. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
  14174. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
  14175. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
  14176. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
  14177. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
  14178. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
  14179. /* keep last */
  14180. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
  14181. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
  14182. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
  14183. };
  14184. /**
  14185. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
  14186. * CoAP message (UDP) transmitting on IPv4.
  14187. *
  14188. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
  14189. * u32 attribute. Source address (in network byte order) for transmitting
  14190. * packets on IPv4.
  14191. * This attribute is mandatory.
  14192. *
  14193. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
  14194. * u16 attribute. Source UDP port.
  14195. * This attribute is optional, a random port is taken if it's not present.
  14196. *
  14197. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
  14198. * u32 attribute. Destination IPv4 address (in network byte order).
  14199. * This attribute is mandatory.
  14200. *
  14201. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
  14202. * Flag attribute. If it's present, indicates that
  14203. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
  14204. * address; while if not, indicates that the address is unicast/multicast
  14205. * address.
  14206. * This attribute is optional.
  14207. *
  14208. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
  14209. * u16 attribute. Destination UDP port.
  14210. * This attribute is mandatory.
  14211. */
  14212. enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
  14213. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
  14214. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
  14215. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
  14216. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
  14217. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
  14218. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
  14219. /* keep last */
  14220. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
  14221. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
  14222. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
  14223. };
  14224. /**
  14225. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
  14226. * CoAP message (UDP) transmitting on IPv6.
  14227. *
  14228. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
  14229. * NLA_BINARY attribute, length is 16 bytes.
  14230. * Source address (in network byte order) for transmitting packets on IPv6.
  14231. * This attribute is mandatory.
  14232. *
  14233. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
  14234. * u16 attribute. Source UDP port.
  14235. * This attribute is optional, a random port is taken if it's not present.
  14236. *
  14237. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
  14238. * NLA_BINARY attribute, length is 16 bytes.
  14239. * Destination IPv6 address (in network byte order).
  14240. * This attribute is mandatory.
  14241. *
  14242. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
  14243. * u16 attribute. Destination UDP port.
  14244. * This attribute is mandatory.
  14245. */
  14246. enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
  14247. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
  14248. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
  14249. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
  14250. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
  14251. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
  14252. /* keep last */
  14253. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
  14254. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
  14255. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
  14256. };
  14257. /**
  14258. * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
  14259. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
  14260. *
  14261. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
  14262. * Nested attribute. The IPv4 source/destination address/port for offload
  14263. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
  14264. * of supported attributes.
  14265. * This attribute is optional.
  14266. *
  14267. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
  14268. * Nested attribute. The IPv6 source/destination address/port for offload
  14269. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
  14270. * of supported attributes.
  14271. * This attribute is optional.
  14272. *
  14273. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
  14274. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
  14275. * Firmware will transmit the packets on both IPv4 and IPv6 if both are
  14276. * configured.
  14277. *
  14278. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
  14279. * u32 attribute. Period in milliseconds for the periodic transmitting.
  14280. * This attribute is mandatory.
  14281. *
  14282. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
  14283. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14284. * CoAP message (UDP payload) to be periodically transmitted. Firmware
  14285. * is responsible for adding any necessary protocol headers.
  14286. * This attribute is mandatory.
  14287. */
  14288. enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
  14289. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
  14290. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
  14291. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
  14292. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
  14293. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
  14294. /* keep last */
  14295. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
  14296. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
  14297. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
  14298. };
  14299. /**
  14300. * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
  14301. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
  14302. *
  14303. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
  14304. * u64 attribute. Received time (since system booted in microseconds) of
  14305. * the cached CoAP message.
  14306. * This attribute is mandatory.
  14307. *
  14308. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
  14309. * u32 attribute. Source IPv4 address (in network byte order) of the cached
  14310. * CoAP message.
  14311. * This attribute is optional.
  14312. *
  14313. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
  14314. * NLA_BINARY attribute, length is 16 bytes.
  14315. * Source IPv6 address (in network byte order) of the cached CoAP message.
  14316. * This attribute is optional.
  14317. *
  14318. * At most and at least one of
  14319. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
  14320. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
  14321. * an entry.
  14322. *
  14323. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
  14324. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14325. * The cached CoAP message (UDP payload). If the actual message size is
  14326. * greater than the maximum size, it will be truncated and leaving only
  14327. * the first 1152 bytes.
  14328. * This attribute is mandatory.
  14329. */
  14330. enum qca_wlan_vendor_attr_coap_offload_cache_info {
  14331. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
  14332. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
  14333. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
  14334. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
  14335. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
  14336. /* keep last */
  14337. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
  14338. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
  14339. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
  14340. };
  14341. /**
  14342. * enum qca_wlan_vendor_coap_offload_action - Actions for
  14343. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14344. *
  14345. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
  14346. * Enable CoAP offload reply.
  14347. * If it's enabled, firmware will start offload processing on each suspend
  14348. * and stop on each resume.
  14349. *
  14350. * Offload reply on match works as follows:
  14351. * Reply the packets that match the filter with the given CoAP
  14352. * message (with necessary protocol headers), increase the CoAP message
  14353. * ID in the given CoAP message by one for the next use after each successful
  14354. * transmission, and try to store the information of the received packet,
  14355. * including the received time, source IP address, and CoAP message (UDP
  14356. * payload).
  14357. *
  14358. * Firmware has a limit to the maximum stored entries, it takes the source IP
  14359. * address as the key of an entry, and keeps at most one entry for each key.
  14360. * A packet won't be stored if no entry for the same key is present and the
  14361. * total number of the existing unexpired entries reaches the maximum value.
  14362. *
  14363. * If any configured item is changed, user space should disable offload reply
  14364. * first and then issue a new enable request.
  14365. *
  14366. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
  14367. * Disable CoAP offload reply and return information of any cached CoAP
  14368. * messages.
  14369. *
  14370. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
  14371. * Enable CoAP offload periodic transmitting.
  14372. * If it's enabled, firmware will start offload periodic transmitting on
  14373. * each suspend and stop on each resume.
  14374. *
  14375. * Offload periodic transmitting works as follows:
  14376. * Send the given CoAP message (with necessary protocol headers) with the given
  14377. * source/destination IP address/UDP port periodically based on the given
  14378. * period and increase the CoAP message ID in the given CoAP message by one
  14379. * for the next use after each successful transmission.
  14380. *
  14381. * If any configured item is changed, user space should disable offload
  14382. * periodic transmitting first and then issue a new enable request.
  14383. *
  14384. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
  14385. * Disable CoAP offload periodic transmitting.
  14386. *
  14387. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
  14388. * Get information of the CoAP messages cached during offload reply
  14389. * processing. The cache is cleared after retrieval.
  14390. */
  14391. enum qca_wlan_vendor_coap_offload_action {
  14392. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
  14393. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
  14394. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
  14395. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
  14396. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
  14397. };
  14398. /**
  14399. * enum qca_wlan_vendor_attr_coap_offload - Used by the
  14400. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14401. * This is used to set parameters for CoAP offload processing, or get
  14402. * cached CoAP messages from firmware.
  14403. *
  14404. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
  14405. * u32 attribute. Action to take in this vendor command.
  14406. * See enum qca_wlan_vendor_coap_offload_action for supported actions.
  14407. * This attribute is mandatory.
  14408. *
  14409. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
  14410. * u32 attribute. Represents the Request ID for the CoAP offload
  14411. * configuration, which can help to identify the user entity starting
  14412. * the CoAP offload processing and accordingly stop the respective
  14413. * ones/get the cached CoAP messages with the matching ID.
  14414. * This attribute is mandatory.
  14415. *
  14416. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
  14417. * Nested attribute. Parameters for offload reply.
  14418. * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
  14419. * supported attributes.
  14420. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14421. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
  14422. * otherwise.
  14423. *
  14424. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
  14425. * Nested attribute. Parameters for offload periodic transmitting.
  14426. * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
  14427. * supported attributes.
  14428. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
  14429. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
  14430. * otherwise.
  14431. *
  14432. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
  14433. * Array of nested attributes. Information of the cached CoAP messages,
  14434. * where each entry is taken from
  14435. * enum qca_wlan_vendor_attr_coap_offload_cache_info.
  14436. * This attribute is used for reporting the cached CoAP messages
  14437. * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14438. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
  14439. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
  14440. * cached item if this attribute is not present.
  14441. */
  14442. enum qca_wlan_vendor_attr_coap_offload {
  14443. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
  14444. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
  14445. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
  14446. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
  14447. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
  14448. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
  14449. /* keep last */
  14450. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
  14451. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
  14452. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
  14453. };
  14454. /**
  14455. * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
  14456. * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
  14457. * Service (SCS) rule.
  14458. *
  14459. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
  14460. * Represents the unique id of SCS rule to be configured.
  14461. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
  14462. * Represents the request type: add, remove, or change.
  14463. * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
  14464. * Type definitions).
  14465. *
  14466. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
  14467. * in case of add/change request type.
  14468. * Represents the output traffic identifier (TID) to be assigned to the flow
  14469. * matching the rule.
  14470. *
  14471. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
  14472. * attribute in case of add/change request type.
  14473. * Represents type of classifier parameters present in SCS rule.
  14474. * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
  14475. * Only classifier types 4 and 10 are supported for SCS.
  14476. *
  14477. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
  14478. * in case of add/change request type when classifier type is TCLAS4.
  14479. * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
  14480. *
  14481. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
  14482. * attribute in case of add/change request type when classifier type is TCLAS4
  14483. * and version attribute is IPv4.
  14484. * Represents the source IPv4 address in the rule which is to be compared
  14485. * against the source IP address in the IPv4 header.
  14486. *
  14487. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
  14488. * attribute in case of add/change request type when classifier type is TCLAS4
  14489. * and version attribute is IPv4.
  14490. * Represents the destination IPv4 address in the rule which is to be compared
  14491. * against the destination IP address in the IPv4 header.
  14492. *
  14493. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
  14494. * attribute in case of add/change request type when classifier type is TCLAS4
  14495. * and version attribute is IPv6.
  14496. * Represents the source IPv6 address in the rule which is to be compared
  14497. * against the source IP address in the IPv6 header.
  14498. *
  14499. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
  14500. * attribute in case of add/change request type when classifier type is TCLAS4
  14501. * and version attribute is IPv6.
  14502. * Represents the destination IPv6 address in the rule which is to be compared
  14503. * against the destination IP address in the IPv6 header.
  14504. *
  14505. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
  14506. * in case of add/change request type when classifier type is TCLAS4.
  14507. * Represents the source port number in the rule which is to be compared against
  14508. * the source port number in the protocol header.
  14509. *
  14510. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
  14511. * in case of add/change request type when classifier type is TCLAS4.
  14512. * Represents the destination port number in the rule which is to be compared
  14513. * against the destination port number in the protocol header.
  14514. *
  14515. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
  14516. * in case of add/change request type when classifier type is TCLAS4.
  14517. * Represents the DSCP value in the rule which is to be compared against the
  14518. * DSCP field present in the IP header.
  14519. *
  14520. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
  14521. * attribute in case of add/change request type when classifier type is TCLAS4.
  14522. * Represents the protocol/next header in the rule which is to be compared
  14523. * against the protocol/next header field present in the IPv4/IPv6 header.
  14524. *
  14525. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
  14526. * attribute of size 3 bytes present in case of add/change request type
  14527. * when classifier type is TCLAS4 and version is IPv6.
  14528. * Represents the flow label value in the rule which is to be compared against
  14529. * the flow label field present in the IPv6 header.
  14530. *
  14531. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
  14532. * attribute in case of add/change request type when classifier type is TCLAS10.
  14533. * Represents the protocol instance number in the rule.
  14534. *
  14535. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
  14536. * attribute in case of add/change request type when classifier type is TCLAS10.
  14537. * Represents the protocol/next header in the rule which is to be compared
  14538. * against the protocol/next header field present in the IPv4/IPv6 header.
  14539. *
  14540. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
  14541. * attribute of variable length present when request type is add/change and
  14542. * classifier type is TCLAS10.
  14543. * Represents the mask to be used for masking the header contents of the header
  14544. * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
  14545. * attribute.
  14546. *
  14547. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
  14548. * attribute of variable length present when request type is add/change and
  14549. * classifier type is TCLAS10.
  14550. * Represents the value to be compared against after masking the header contents
  14551. * of the header specified by the
  14552. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
  14553. * filter mask specified by the
  14554. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
  14555. *
  14556. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
  14557. * attribute.
  14558. * Represents the service class id of the configured SCS rule.
  14559. *
  14560. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
  14561. * MAC address.
  14562. * Represents the destination MAC address in the rule.
  14563. *
  14564. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
  14565. * Represents the netdevice interface index in the rule.
  14566. */
  14567. enum qca_wlan_vendor_attr_scs_rule_config {
  14568. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
  14569. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
  14570. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
  14571. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
  14572. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
  14573. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
  14574. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
  14575. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
  14576. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
  14577. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
  14578. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
  14579. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
  14580. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
  14581. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
  14582. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
  14583. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
  14584. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
  14585. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
  14586. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
  14587. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
  14588. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
  14589. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
  14590. /* Keep last */
  14591. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
  14592. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
  14593. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
  14594. };
  14595. /**
  14596. * enum qca_wlan_vendor_sar_version - This describes the current SAR version
  14597. * used in the firmware.
  14598. *
  14599. * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
  14600. * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
  14601. *
  14602. * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
  14603. * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
  14604. * each CTL group. So user can select up to 6 SAR indexes from the current CTL
  14605. * groups.
  14606. *
  14607. * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
  14608. * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
  14609. * CTL group but user can choose up to 3 SAR set index only, as the top half
  14610. * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
  14611. * the SAR index (3 to 5) is used for DBS mode.
  14612. */
  14613. enum qca_wlan_vendor_sar_version {
  14614. QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
  14615. QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
  14616. QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
  14617. QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
  14618. };
  14619. /**
  14620. * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
  14621. * CTL grouping is enabled or disabled in the firmware.
  14622. *
  14623. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
  14624. * is enabled in firmware.
  14625. *
  14626. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
  14627. * is disabled in firmware.
  14628. *
  14629. */
  14630. enum qca_wlan_vendor_sar_ctl_group_state {
  14631. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
  14632. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
  14633. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
  14634. };
  14635. /**
  14636. * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
  14637. * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
  14638. * supported by the firmware.
  14639. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
  14640. * u32 attribute. This field describes current SAR version supported by the
  14641. * firmware.
  14642. * See enum qca_wlan_vendor_sar_version for more information.
  14643. * This attribute is mandatory.
  14644. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
  14645. * u32 attribute. This field describes whether CTL groups are enabled
  14646. * or disabled in the firmware.
  14647. * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
  14648. * This attribute is optional.
  14649. */
  14650. enum qca_wlan_vendor_attr_sar_capability {
  14651. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
  14652. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
  14653. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
  14654. /* Keep last */
  14655. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
  14656. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
  14657. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
  14658. };
  14659. /**
  14660. * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
  14661. * These statistics are sent from the driver in a response when userspace
  14662. * queries to get the statistics using the operation
  14663. * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
  14664. * by the driver when the SR feature is enabled, when the driver receives
  14665. * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
  14666. *
  14667. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14668. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14669. * This represents the number of non-SRG TX opportunities.
  14670. *
  14671. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14672. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14673. * This represents the number of non-SRG PPDUs tried to transmit.
  14674. *
  14675. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14676. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14677. * This represents the number of non-SRG PPDUs successfully transmitted.
  14678. *
  14679. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14680. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14681. * This represents the number of SRG TX opportunities.
  14682. *
  14683. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14684. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14685. * This represents the number of SRG PPDUs tried to transmit.
  14686. *
  14687. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14688. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14689. * This represents the number of SRG PPDUs successfully transmitted.
  14690. */
  14691. enum qca_wlan_vendor_attr_sr_stats {
  14692. QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
  14693. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
  14694. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
  14695. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
  14696. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
  14697. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
  14698. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
  14699. /* Keep last */
  14700. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
  14701. QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
  14702. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
  14703. };
  14704. /**
  14705. * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
  14706. * Spatial Reuse feature.
  14707. *
  14708. * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
  14709. * roaming to an AP that doesn't support/supports SR feature, respectively.
  14710. *
  14711. * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
  14712. * to change in concurrent interfaces that are supported by the driver.
  14713. */
  14714. enum qca_wlan_sr_reason_code {
  14715. QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
  14716. QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
  14717. };
  14718. /**
  14719. * enum qca_wlan_sr_operation - Defines the different types of SR operations.
  14720. * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
  14721. *
  14722. * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
  14723. * driver to enable the Spatial Reuse feature. Attributes
  14724. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14725. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
  14726. * operation.
  14727. *
  14728. * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
  14729. * driver to disable the Spatial Reuse feature.
  14730. *
  14731. * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
  14732. * asynchronous event sent to userspace when the SR feature is disabled.
  14733. * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
  14734. * and sent along with the asynchronous event.
  14735. *
  14736. * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
  14737. * asynchronous event when the SR feature is enabled again after the SR feature
  14738. * was suspended by the driver earlier. The enable reason is
  14739. * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
  14740. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14741. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
  14742. *
  14743. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
  14744. * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14745. * reuse transmissions. Userspace sends this operation to the driver.
  14746. * The driver/firmware upon receiving this operation shall prohibit PSR-based
  14747. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14748. *
  14749. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
  14750. * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14751. * reuse transmissions. Userspace sends this operation to the driver.
  14752. * The driver/firmware upon receiving this operation shall allow PSR-based
  14753. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14754. *
  14755. * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
  14756. * driver to get the SR statistics and the driver sends a synchronous response
  14757. * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
  14758. * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
  14759. *
  14760. * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
  14761. * driver to clear the SR statistics and upon receiving this operation
  14762. * the driver/firmware shall clear the SR statistics.
  14763. *
  14764. * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
  14765. * driver to get the SR parameters and the driver sends the synchronous response
  14766. * with the following required attributes:
  14767. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  14768. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  14769. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  14770. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  14771. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  14772. *
  14773. * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
  14774. * asynchronous event to userspace to update any changes in SR parameters.
  14775. * The following attributes are used with this operation:
  14776. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  14777. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  14778. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  14779. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  14780. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  14781. */
  14782. enum qca_wlan_sr_operation {
  14783. QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
  14784. QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
  14785. QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
  14786. QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
  14787. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
  14788. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
  14789. QCA_WLAN_SR_OPERATION_GET_STATS = 6,
  14790. QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
  14791. QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
  14792. QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
  14793. };
  14794. /**
  14795. * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
  14796. * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
  14797. *
  14798. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
  14799. * This attribute is optionally set in response to
  14800. * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
  14801. * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
  14802. * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
  14803. * about HESIGA_Spatial_reuse_value15_allowed.
  14804. *
  14805. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
  14806. * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
  14807. * operation. This indicates whether non-SRG OBSS PD SR transmissions are
  14808. * allowed or not at non-AP STAs that are associated with the AP. If present
  14809. * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
  14810. *
  14811. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
  14812. * attribute. This attribute is used in response to
  14813. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  14814. * Min Offset field which contains an unsigned integer that is added to -82 dBm
  14815. * to generate the value of the SRG OBSS PD Min parameter.
  14816. *
  14817. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  14818. * attribute. This attribute is used in response to
  14819. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  14820. * Max Offset field which contains an unsigned integer that is added to -82 dBm
  14821. * to generate the value of the SRG OBSS PD Max parameter.
  14822. *
  14823. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  14824. * attribute. This attribute is used in response to
  14825. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
  14826. * PD Max Offset field which contains an unsigned integer that is added to -82
  14827. * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
  14828. *
  14829. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  14830. * Userspace optionally sends this attribute with
  14831. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  14832. * preferred SRG PD threshold. The driver shall send this attribute to
  14833. * userspace in SR resume event to indicate the PD threshold being used for SR.
  14834. * When there is change in SRG PD threshold (for example, due to roaming, etc.)
  14835. * the driver shall indicate the userspace the newly configured SRG PD threshold
  14836. * using an asynchronous event.
  14837. *
  14838. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  14839. * Userspace optionally sends this attribute with
  14840. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  14841. * preferred non-SRG PD threshold. The driver shall send this attribute to
  14842. * userspace in SR resume event to indicate the PD threshold being used for SR.
  14843. * When there is change in non-SRG PD threshold (for example, due to roaming,
  14844. * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
  14845. * threshold using an asynchronous event.
  14846. *
  14847. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
  14848. * values are defined in enum qca_wlan_sr_reason_code. This
  14849. * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
  14850. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
  14851. */
  14852. enum qca_wlan_vendor_attr_sr_params {
  14853. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
  14854. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
  14855. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
  14856. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
  14857. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
  14858. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
  14859. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
  14860. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
  14861. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
  14862. /* keep last */
  14863. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
  14864. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
  14865. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
  14866. };
  14867. /**
  14868. * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
  14869. * command QCA_NL80211_VENDOR_SUBCMD_SR.
  14870. *
  14871. * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
  14872. * from userspace to the driver. Possible values are defined in enum
  14873. * qca_wlan_sr_operation.
  14874. *
  14875. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
  14876. * configuration parameters. The possible attributes inside this attribute are
  14877. * defined in enum qca_wlan_vendor_attr_sr_params.
  14878. * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  14879. * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
  14880. * also in response from the driver to userspace when the response is sent for
  14881. * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
  14882. * The driver uses this attribute in asynchronous events in which the operation
  14883. * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
  14884. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
  14885. *
  14886. * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
  14887. * statistics. These attributes used inside this are defined in enum
  14888. * qca_wlan_vendor_attr_sr_stats.
  14889. * This attribute is used in response from the driver to a command in which
  14890. * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  14891. * %QCA_WLAN_SR_OPERATION_GET_STATS.
  14892. */
  14893. enum qca_wlan_vendor_attr_sr {
  14894. QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
  14895. QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
  14896. QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
  14897. QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
  14898. /* Keep last */
  14899. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
  14900. QCA_WLAN_VENDOR_ATTR_SR_MAX =
  14901. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
  14902. };
  14903. /**
  14904. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
  14905. * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
  14906. *
  14907. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
  14908. * used by the peer on the link that corresponds to the link used for sending
  14909. * the event notification.
  14910. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
  14911. * MLD MAC address of the peer.
  14912. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
  14913. * used to pass ifindex of the primary netdev.
  14914. */
  14915. enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
  14916. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
  14917. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
  14918. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
  14919. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
  14920. /* keep last */
  14921. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
  14922. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
  14923. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
  14924. };
  14925. /**
  14926. * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
  14927. * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
  14928. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
  14929. * and PSD information.
  14930. *
  14931. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
  14932. * u32. This attribute is used to indicate the start of the queried frequency
  14933. * range in MHz.
  14934. *
  14935. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
  14936. * This attribute is used to indicate the end of the queried frequency range
  14937. * in MHz.
  14938. *
  14939. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
  14940. * This attribute will contain the PSD information for a single range as
  14941. * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
  14942. * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
  14943. *
  14944. * The PSD power info (dBm/MHz) from user space should be multiplied
  14945. * by a factor of 100 when sending to the driver to preserve granularity
  14946. * up to 2 decimal places.
  14947. * Example:
  14948. * PSD power value: 10.21 dBm/MHz
  14949. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
  14950. *
  14951. * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
  14952. * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
  14953. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
  14954. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14955. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  14956. *
  14957. * The following set of attributes will be used to exchange frequency and
  14958. * corresponding PSD information for AFC between the user space and the driver.
  14959. */
  14960. enum qca_wlan_vendor_attr_afc_freq_psd_info {
  14961. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
  14962. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
  14963. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
  14964. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
  14965. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
  14966. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
  14967. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
  14968. };
  14969. /**
  14970. * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
  14971. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
  14972. * channel list and corresponding EIRP information.
  14973. *
  14974. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
  14975. * This attribute is used to indicate queried channel from
  14976. * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
  14977. *
  14978. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
  14979. * This attribute is used to configure the EIRP power info corresponding
  14980. * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
  14981. * The EIRP power info(dBm) from user space should be multiplied
  14982. * by a factor of 100 when sending to Driver to preserve granularity up to
  14983. * 2 decimal places.
  14984. * Example:
  14985. * EIRP power value: 34.23 dBm
  14986. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
  14987. *
  14988. * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
  14989. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  14990. * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
  14991. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  14992. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
  14993. *
  14994. * The following set of attributes will be used to exchange Channel and
  14995. * corresponding EIRP information for AFC between the user space and Driver.
  14996. */
  14997. enum qca_wlan_vendor_attr_afc_chan_eirp_info {
  14998. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
  14999. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
  15000. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
  15001. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
  15002. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
  15003. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
  15004. };
  15005. /**
  15006. * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
  15007. * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15008. * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
  15009. * channel, and EIRP related information.
  15010. *
  15011. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
  15012. * This attribute is used to indicate the operating class, as listed under
  15013. * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
  15014. *
  15015. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
  15016. * for updating the channel number and EIRP power information.
  15017. * It uses the attributes defined in
  15018. * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
  15019. *
  15020. * Operating class information packing format for
  15021. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15022. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15023. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
  15024. *
  15025. * m - Total number of operating classes.
  15026. * n, j - Number of queried channels for the corresponding operating class.
  15027. *
  15028. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15029. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15030. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15031. * .....
  15032. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15033. * ....
  15034. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15035. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15036. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15037. * ....
  15038. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15039. *
  15040. * Operating class information packing format for
  15041. * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15042. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15043. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15044. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  15045. *
  15046. * m - Total number of operating classes.
  15047. * n, j - Number of channels for the corresponding operating class.
  15048. *
  15049. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15050. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15051. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15052. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15053. * .....
  15054. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15055. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
  15056. * ....
  15057. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15058. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15059. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15060. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15061. * ....
  15062. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15063. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
  15064. *
  15065. * The following set of attributes will be used to exchange operating class
  15066. * information for AFC between the user space and the driver.
  15067. */
  15068. enum qca_wlan_vendor_attr_afc_opclass_info {
  15069. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
  15070. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
  15071. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
  15072. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
  15073. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
  15074. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
  15075. };
  15076. /**
  15077. * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
  15078. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
  15079. *
  15080. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
  15081. * driver to userspace in order to query the new AFC power values.
  15082. *
  15083. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
  15084. * complete event will be sent from the driver to userspace to indicate
  15085. * processing of the AFC response.
  15086. *
  15087. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
  15088. * will be sent from the driver to userspace to indicate last received
  15089. * AFC response data has been cleared on the AP due to invalid data
  15090. * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
  15091. *
  15092. * The following enum defines the different event types that will be
  15093. * used by the driver to help trigger corresponding AFC functionality in user
  15094. * space.
  15095. */
  15096. enum qca_wlan_vendor_afc_event_type {
  15097. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
  15098. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
  15099. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
  15100. };
  15101. /**
  15102. * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
  15103. * deployment type.
  15104. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
  15105. *
  15106. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
  15107. *
  15108. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
  15109. *
  15110. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
  15111. *
  15112. * The following enum defines different deployment modes that the AP might
  15113. * come up in. This information will be essential to retrieve deployment-type
  15114. * specific SP power values for AFC operation.
  15115. */
  15116. enum qca_wlan_vendor_afc_ap_deployment_type {
  15117. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
  15118. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
  15119. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
  15120. };
  15121. /**
  15122. * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
  15123. * indicate AFC response status.
  15124. * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
  15125. *
  15126. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
  15127. *
  15128. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
  15129. * command was not received within the expected time of the AFC expiry event
  15130. * being triggered.
  15131. *
  15132. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
  15133. * parsing error by the driver.
  15134. *
  15135. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
  15136. * error.
  15137. *
  15138. * The following enum defines the status codes that the driver will use to
  15139. * indicate whether the AFC data is valid or not.
  15140. */
  15141. enum qca_wlan_vendor_afc_evt_status_code {
  15142. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
  15143. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
  15144. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
  15145. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
  15146. };
  15147. /**
  15148. * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
  15149. * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
  15150. * support sending only a single request to the user space at a time.
  15151. *
  15152. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
  15153. * Used with event to notify the type of AFC event received.
  15154. * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
  15155. *
  15156. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
  15157. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15158. * otherwise unused.
  15159. *
  15160. * This attribute is used to indicate the AP deployment type in the AFC request.
  15161. * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
  15162. *
  15163. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
  15164. * Unique request identifier generated by the AFC client for every
  15165. * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
  15166. * The user space application is responsible for ensuring no duplicate values
  15167. * are in-flight with the server, e.g., by delaying a request, should the same
  15168. * value be received from different radios in parallel.
  15169. *
  15170. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
  15171. * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15172. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
  15173. *
  15174. * This attribute indicates the AFC spec version information. This will
  15175. * indicate the AFC version AFC client must use to query the AFC data.
  15176. * Bits 15:0 - Minor version
  15177. * Bits 31:16 - Major version
  15178. *
  15179. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
  15180. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15181. * otherwise unused.
  15182. * This attribute indicates the minimum desired power (in dBm) for
  15183. * the queried spectrum.
  15184. *
  15185. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
  15186. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15187. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15188. *
  15189. * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
  15190. * This attribute is used to indicate if there were any errors parsing the
  15191. * AFC response.
  15192. *
  15193. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
  15194. * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15195. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15196. *
  15197. * This attribute indicates the AFC response code. The AFC response codes are
  15198. * in the following categories:
  15199. * -1: General Failure.
  15200. * 0: Success.
  15201. * 100 - 199: General errors related to protocol.
  15202. * 300 - 399: Error events specific to message exchange
  15203. * for the Available Spectrum Inquiry.
  15204. *
  15205. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
  15206. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15207. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15208. *
  15209. * This attribute indicates the date until which the current response is
  15210. * valid for in UTC format.
  15211. * Date format: bits 7:0 - DD (Day 1-31)
  15212. * bits 15:8 - MM (Month 1-12)
  15213. * bits 31:16 - YYYY (Year)
  15214. *
  15215. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
  15216. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15217. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15218. *
  15219. * This attribute indicates the time until which the current response is
  15220. * valid for in UTC format.
  15221. * Time format: bits 7:0 - SS (Seconds 0-59)
  15222. * bits 15:8 - MM (Minutes 0-59)
  15223. * bits 23:16 - HH (Hours 0-23)
  15224. * bits 31:24 - Reserved
  15225. *
  15226. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
  15227. * for updating the list of frequency ranges to be queried.
  15228. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15229. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15230. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15231. * It uses the attributes defined in
  15232. * enum qca_wlan_vendor_attr_afc_freq_psd_info.
  15233. *
  15234. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
  15235. * for updating the list of operating classes and corresponding channels to be
  15236. * queried.
  15237. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15238. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15239. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15240. * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
  15241. */
  15242. enum qca_wlan_vendor_attr_afc_event {
  15243. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
  15244. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
  15245. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
  15246. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
  15247. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
  15248. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
  15249. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
  15250. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
  15251. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
  15252. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
  15253. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
  15254. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
  15255. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
  15256. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
  15257. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
  15258. };
  15259. /**
  15260. * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
  15261. * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
  15262. * will support sending only a single AFC response to the driver at a time.
  15263. *
  15264. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
  15265. * This attribute will be used to send a single Spectrum Inquiry response object
  15266. * from the 'availableSpectrumInquiryResponses' array object from the response
  15267. * JSON.
  15268. *
  15269. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
  15270. *
  15271. * This attribute indicates the period (in seconds) for which the response
  15272. * data received is valid for.
  15273. *
  15274. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
  15275. *
  15276. * This attribute indicates the request ID for which the corresponding
  15277. * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
  15278. *
  15279. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
  15280. *
  15281. * This attribute indicates the date until which the current response is
  15282. * valid for in UTC format.
  15283. * Date format: bits 7:0 - DD (Day 1-31)
  15284. * bits 15:8 - MM (Month 1-12)
  15285. * bits 31:16 - YYYY (Year)
  15286. *
  15287. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
  15288. *
  15289. * This attribute indicates the time until which the current response is
  15290. * valid for in UTC format.
  15291. * Time format: bits 7:0 - SS (Seconds 0-59)
  15292. * bits 15:8 - MM (Minutes 0-59)
  15293. * bits 23:16 - HH (Hours 0-23)
  15294. * bits 31:24 - Reserved
  15295. *
  15296. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
  15297. *
  15298. * This attribute indicates the AFC response code. The AFC response codes are
  15299. * in the following categories:
  15300. * -1: General Failure.
  15301. * 0: Success.
  15302. * 100 - 199: General errors related to protocol.
  15303. * 300 - 399: Error events specific to message exchange
  15304. * for the Available Spectrum Inquiry.
  15305. *
  15306. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
  15307. * for PSD info of all the queried frequency ranges. It uses the attributes
  15308. * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
  15309. *
  15310. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
  15311. * attributes for EIRP info of all queried operating class/channels. It uses
  15312. * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
  15313. * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
  15314. *
  15315. */
  15316. enum qca_wlan_vendor_attr_afc_response {
  15317. QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
  15318. QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
  15319. QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
  15320. QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
  15321. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
  15322. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
  15323. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
  15324. QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
  15325. QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
  15326. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
  15327. QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
  15328. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
  15329. };
  15330. /**
  15331. * enum qca_wlan_dozed_ap_state - Doze states for AP interface
  15332. *
  15333. * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
  15334. *
  15335. * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
  15336. * beaconing at higher beacon interval with Rx disabled.
  15337. */
  15338. enum qca_wlan_dozed_ap_state {
  15339. QCA_WLAN_DOZED_AP_DISABLE = 0,
  15340. QCA_WLAN_DOZED_AP_ENABLE = 1,
  15341. };
  15342. /**
  15343. * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
  15344. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
  15345. * configuration.
  15346. *
  15347. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
  15348. * Configures the doze state for an AP interface. Possible values are defined
  15349. * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
  15350. * gets triggered asynchronously to provide updated AP interface configuration.
  15351. *
  15352. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
  15353. * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
  15354. * command, which is used later to maintain synchronization between commands
  15355. * and asynchronous events.
  15356. *
  15357. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
  15358. * Used in event to indicate the next TBTT TSF timer value after applying the
  15359. * doze mode configuration. Next TBTT TSF is the time at which the AP sends
  15360. * the first beacon after entering or exiting dozed mode.
  15361. *
  15362. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
  15363. * Used with event to inform the periodicity of beacon transmission that would
  15364. * be skipped at all TBTTs in between.
  15365. */
  15366. enum qca_wlan_vendor_attr_dozed_ap {
  15367. QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
  15368. QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
  15369. QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
  15370. QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
  15371. QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
  15372. /* Keep last */
  15373. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
  15374. QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
  15375. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
  15376. };
  15377. /**
  15378. * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
  15379. * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
  15380. * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
  15381. * capture running status.
  15382. * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
  15383. * capture running status.
  15384. **/
  15385. enum qca_wlan_vendor_monitor_mode_status {
  15386. QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
  15387. QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
  15388. };
  15389. /**
  15390. * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
  15391. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
  15392. * information regarding the local packet capture over the monitor mode.
  15393. *
  15394. * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
  15395. * represents the status of the start capture commands. The values used with
  15396. * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
  15397. * is returned by the driver in the response to the command.
  15398. */
  15399. enum qca_wlan_vendor_attr_get_monitor_mode {
  15400. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
  15401. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
  15402. /* Keep last */
  15403. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
  15404. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
  15405. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
  15406. };
  15407. /**
  15408. * enum qca_wlan_vendor_link_state_op_types - Defines different types of
  15409. * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
  15410. * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
  15411. *
  15412. * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
  15413. * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
  15414. */
  15415. enum qca_wlan_vendor_link_state_op_types {
  15416. QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
  15417. QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
  15418. };
  15419. /**
  15420. * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
  15421. * links state control modes. This enum is used by
  15422. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
  15423. *
  15424. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
  15425. * by the driver.
  15426. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
  15427. * user space.
  15428. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
  15429. * desired number of MLO links to operate in active state at any given time.
  15430. * The driver will choose which MLO links should operate in the active state.
  15431. * See enum qca_wlan_vendor_link_state for active state definition.
  15432. */
  15433. enum qca_wlan_vendor_link_state_control_modes {
  15434. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
  15435. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
  15436. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
  15437. };
  15438. /**
  15439. * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
  15440. * links state operation modes. This enum is used by
  15441. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
  15442. *
  15443. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
  15444. * mode, the driver selects the operating mode of the links, without any
  15445. * guidance from the user space.
  15446. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
  15447. * operation mode the driver should select MLO links that will achieve low
  15448. * latency.
  15449. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
  15450. * throughput operation mode the driver should select MLO links that will
  15451. * achieve higher throughput.
  15452. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
  15453. * operation mode the driver should select MLO links that will achieve low
  15454. * power.
  15455. */
  15456. enum qca_wlan_vendor_link_state_operation_modes {
  15457. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
  15458. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
  15459. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
  15460. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
  15461. };
  15462. /**
  15463. * enum qca_wlan_vendor_link_state - Represents the possible link states of an
  15464. * MLO link.
  15465. *
  15466. * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not
  15467. * be used for data transmission but it can have TIDs mapped to it. It will be
  15468. * in doze state always and does not monitor the beacons.
  15469. * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be
  15470. * used for data TX/RX and monitors the beacons to check TIM bit indication.
  15471. * It may enter doze state and comes out based on the transmit data traffic and
  15472. * TIM bit indication in the beacon.
  15473. */
  15474. enum qca_wlan_vendor_link_state {
  15475. QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
  15476. QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
  15477. };
  15478. /**
  15479. * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
  15480. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
  15481. *
  15482. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
  15483. * MLO link.
  15484. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
  15485. * enum qca_wlan_vendor_link_state for possible MLO link states.
  15486. */
  15487. enum qca_wlan_vendor_attr_link_state_config {
  15488. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
  15489. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
  15490. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
  15491. /* Keep last */
  15492. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
  15493. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
  15494. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
  15495. };
  15496. /**
  15497. * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
  15498. * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
  15499. *
  15500. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
  15501. * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
  15502. * Required only in a command. Possible values for this attribute are defined in
  15503. * enum qca_wlan_vendor_link_state_op_types.
  15504. *
  15505. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
  15506. * links control mode type. Optional attribute in a command when
  15507. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15508. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15509. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15510. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15511. * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
  15512. *
  15513. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
  15514. * Indicates the state of the each MLO link affiliated with the interface.
  15515. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15516. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15517. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15518. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
  15519. * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15520. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15521. * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
  15522. *
  15523. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
  15524. * Represents the number of active state links. See enum
  15525. * qca_wlan_vendor_link_state for active state definition.
  15526. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15527. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15528. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15529. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
  15530. *
  15531. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
  15532. * links operation mode type. Optional attribute in a command when
  15533. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15534. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15535. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15536. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15537. * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
  15538. * modes.
  15539. */
  15540. enum qca_wlan_vendor_attr_mlo_link_state {
  15541. QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
  15542. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
  15543. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
  15544. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
  15545. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
  15546. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
  15547. /* keep last */
  15548. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
  15549. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
  15550. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
  15551. };
  15552. /**
  15553. * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
  15554. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15555. *
  15556. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
  15557. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15558. * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
  15559. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  15560. * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
  15561. * traffic for that link.
  15562. *
  15563. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
  15564. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15565. * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
  15566. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  15567. * that link ID in downlink traffic. Otherwise, the TID is not mapped to
  15568. * downlink traffic for that link.
  15569. */
  15570. enum qca_wlan_vendor_attr_tid_link_map_status {
  15571. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
  15572. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
  15573. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
  15574. /* keep last */
  15575. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
  15576. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
  15577. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
  15578. };
  15579. /*
  15580. * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
  15581. * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
  15582. *
  15583. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
  15584. * AP MLD address with which this TID-to-link negotiation mapping is
  15585. * established/updated.
  15586. *
  15587. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
  15588. * nested attributes containing TID-to-links mapping information. This will have
  15589. * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
  15590. * map information. If this attribute is not present the default TID-to-link
  15591. * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
  15592. * downlink traffic.
  15593. * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
  15594. */
  15595. enum qca_wlan_vendor_attr_tid_to_link_map {
  15596. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
  15597. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
  15598. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
  15599. /* keep last */
  15600. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
  15601. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
  15602. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
  15603. };
  15604. /**
  15605. * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
  15606. * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
  15607. *
  15608. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
  15609. * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
  15610. *
  15611. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
  15612. * A bitmap of the removed setup links link IDs.
  15613. */
  15614. enum qca_wlan_vendor_attr_link_reconfig {
  15615. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
  15616. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
  15617. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
  15618. /* keep last */
  15619. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
  15620. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
  15621. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1,
  15622. };
  15623. /**
  15624. * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
  15625. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
  15626. *
  15627. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
  15628. * Indicates the MLO link id on which the TDLS discovery response
  15629. * frame is to be transmitted.
  15630. */
  15631. enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
  15632. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
  15633. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
  15634. /* Keep last */
  15635. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
  15636. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
  15637. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
  15638. };
  15639. #endif