qca_vendor.h 731 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: declares vendor commands interfacing with linux kernel
  21. */
  22. #ifndef _WLAN_QCA_VENDOR_H_
  23. #define _WLAN_QCA_VENDOR_H_
  24. /* Vendor id to be used in vendor specific command and events
  25. * to user space.
  26. * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID,
  27. * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and
  28. * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in
  29. * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that
  30. */
  31. #define QCA_NL80211_VENDOR_ID 0x001374
  32. #ifndef BIT
  33. #define BIT(x) (1U << (x))
  34. #endif
  35. /**
  36. * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command
  37. *
  38. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified
  39. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test
  40. * Sub commands 2 to 8 are not used
  41. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming
  42. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency.
  43. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability
  44. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  45. * NAN Request/Response and NAN Indication messages. These messages are
  46. * interpreted between the framework and the firmware component. While
  47. * sending the command from userspace to the driver, payload is not
  48. * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN
  49. * is used when receiving vendor events in userspace from the driver.
  50. * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats
  51. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set
  52. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get
  53. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear
  54. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio
  55. * results
  56. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface
  57. * results
  58. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer
  59. * results
  60. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start
  61. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop
  62. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid
  63. * channels
  64. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability
  65. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached
  66. * results
  67. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results
  68. * available. Used when report_threshold is reached in scan cache.
  69. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan
  70. * result. Used to report scan results when each probe rsp. is received,
  71. * if report_events enabled in wifi_scan_cmd_params.
  72. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target.
  73. * Indicates progress of scanning state-machine.
  74. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist
  75. * ap found
  76. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist
  77. * bssid
  78. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset
  79. * hotlist bssid
  80. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant
  81. * change
  82. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set
  83. * significant change
  84. * ap found
  85. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset
  86. * significant change
  87. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: This command is used to enable TDLS
  88. * capability or to form a session with the specified peer.
  89. * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
  90. * indicates to enable TDLS capability on the interface.
  91. * If %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is nested in
  92. * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
  93. * form a TDLS session with the specified peer MAC address.
  94. * The attributes used with this command are defined in
  95. * enum qca_wlan_vendor_attr_tdls_enable.
  96. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: This command is used to disable TDLS
  97. * capability or to terminate the session with the specified peer.
  98. * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
  99. * indicates to disable TDLS capability on the interface.
  100. * If %QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR is nested in
  101. * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
  102. * terminate TDLS session with the specified peer MAC address.
  103. * The attributes used with this command are defined in
  104. * enum qca_wlan_vendor_attr_tdls_disable.
  105. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: This command is to get the TDLS
  106. * status at the interface level or with the specific peer.
  107. * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this
  108. * indicates the TDLS status query is at interface level.
  109. * If %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR is nested in
  110. * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to
  111. * get TDLS session status with the specified peer MAC address.
  112. * The attributes used with this command are defined in
  113. * enum qca_wlan_vendor_attr_tdls_get_status.
  114. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: This event is to indicate the result
  115. * of the TDLS session request with the peer sent by userspace in
  116. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE.
  117. * The attributes used with this command are defined in
  118. * enum qca_wlan_vendor_attr_tdls_state.
  119. * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features
  120. * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui
  121. * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag
  122. * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix
  123. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys
  124. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the
  125. * roaming and auth information.
  126. * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule
  127. *
  128. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  129. * invoke the ACS function in device and pass selected channels to
  130. * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes.
  131. *
  132. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the
  133. * driver.
  134. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver
  135. * started CAC on DFS channel
  136. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver
  137. * completed the CAC check on DFS channel
  138. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC
  139. * check was aborted by the driver
  140. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the
  141. * driver completed NOP
  142. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the
  143. * driver detected radar signal on the current operating channel
  144. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information
  145. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to
  146. * configure various wiphy or interface level configurations. Attributes
  147. * are defined in enum qca_wlan_vendor_attr_config. Userspace can send one
  148. * or more configuration attributes with a single command. The driver
  149. * accepts the command only if all the configurations are known, otherwise
  150. * it rejects the command. The driver returns success only if processing of
  151. * all the configurations succeeds. The driver continues to process all the
  152. * configurations even if processing of some configurations failed and
  153. * returns the last error occurred while processing the failed
  154. * configurations.
  155. *
  156. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to
  157. * get the current values of the various wiphy or interface level
  158. * configurations. Attributes are defined in enum
  159. * qca_wlan_vendor_attr_config. Userspace needs to specify the
  160. * configuration attributes for which it wants to get the values in the
  161. * command, there is no significance for the value sent in the attribute
  162. * unless explicitly specified in the corresponding configuration
  163. * attribute documentation. The driver accepts the command only if all the
  164. * configurations are known, otherwise it rejects the command. The driver
  165. * returns success only if fetching of all configuration values succeeds
  166. * and indicates the configuration values in corresponding attributes in
  167. * the response. The driver continues to process all the configurations
  168. * even if processing of some configurations failed and returns the last
  169. * error occurred while processing the failed configurations.
  170. *
  171. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger
  172. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request
  173. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set
  174. * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam
  175. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist
  176. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST:
  177. * extscan reset ssid hotlist
  178. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found
  179. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost
  180. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list
  181. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list
  182. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST:
  183. * reset passpoint list
  184. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found
  185. * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND:
  186. * passpoint network found
  187. * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config
  188. * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config
  189. * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features
  190. * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties
  191. * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters
  192. * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel
  193. list
  194. * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint
  195. * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band
  196. * to the host driver. This command sets the band through either
  197. * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or
  198. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE
  199. * refers enum qca_set_band as unsigned integer values and
  200. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask
  201. * values. Also, the acceptable values for
  202. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further
  203. * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The
  204. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the
  205. * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the
  206. * implementations configure using both the attributes, the configurations
  207. * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the
  208. * precedence.
  209. * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command
  210. * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete
  211. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan
  212. * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test
  213. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage
  214. * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB
  215. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration
  216. * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command
  217. * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration
  218. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  219. * start the P2P Listen Offload function in device and pass the listen
  220. * channel, period, interval, count, number of device types, device
  221. * types and vendor information elements to device driver and firmware.
  222. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  223. * indicate stop request/response of the P2P Listen Offload function in
  224. * device. As an event, it indicates either the feature stopped after it
  225. * was already running or feature has actually failed to start.
  226. * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information
  227. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts
  228. * beaconing, this sub command provides the driver, the frequencies on the
  229. * 5 GHz to check for any radar activity. Driver selects one channel from
  230. * this priority list provided through
  231. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  232. * to check for radar activity on it. If no radar activity is detected
  233. * during the channel availability check period, driver internally switches
  234. * to the selected frequency of operation. If the frequency is zero, driver
  235. * internally selects a channel. The status of this conditional switch is
  236. * indicated through an event using the same sub command through
  237. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  238. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch
  239. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config
  240. * indication period and threshold for MAC layer counters.
  241. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  242. * in the host driver. The different TDLS configurations are defined
  243. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  244. * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities
  245. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate
  246. * (SAR) power limits. A critical regulation for FCC compliance, OEMs
  247. * require methods to set SAR limits on TX power of WLAN/WWAN.
  248. * enum qca_vendor_attr_sar_limits attributes are used with this command.
  249. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set
  250. * configuration of vendor ACS.
  251. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  252. * requisite information leading to a power save failure. The information
  253. * carried as part of this event is represented by the
  254. * enum qca_attr_chip_power_save_failure attributes.
  255. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  256. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  257. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  258. * statistics are represented by the enum qca_attr_nud_stats_get
  259. * attributes.
  260. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  261. * the BSS transition status, whether accept or reject, for a list of
  262. * candidate BSSIDs provided by the userspace. This uses the vendor
  263. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  264. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  265. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  266. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  267. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  268. * the driver shall specify array of
  269. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  270. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  271. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  272. * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a
  273. * specific QCA module. The trace levels are represented by
  274. * enum qca_attr_trace_level attributes.
  275. * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement
  276. * Protocol antenna limit in different modes. See enum
  277. * qca_wlan_vendor_attr_brp_ant_limit_mode.
  278. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan
  279. * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan.
  280. * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE)
  281. * identifying the operation in success case. In failure cases an
  282. * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE)
  283. * describing the reason for the failure is returned.
  284. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses
  285. * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from
  286. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to
  287. * be stopped.
  288. * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the
  289. * specific interface. This can be used to modify some of the low level
  290. * scan parameters (off channel dwell time, home channel time) in the
  291. * driver/firmware. These parameters are maintained within the host
  292. * driver.
  293. * This command is valid only when the interface is in the connected
  294. * state.
  295. * These scan parameters shall be reset by the driver/firmware once
  296. * disconnected. The attributes used with this command are defined in
  297. * enum qca_wlan_vendor_attr_active_tos.
  298. * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the
  299. * driver has detected an internal failure. This event carries the
  300. * information indicating the reason that triggered this detection. The
  301. * attributes for this command are defined in
  302. * enum qca_wlan_vendor_attr_hang.
  303. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values
  304. * of spectral parameters used. The spectral scan parameters are specified
  305. * by enum qca_wlan_vendor_attr_spectral_scan.
  306. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats
  307. * for spectral scan functionality. The debug stats are specified by
  308. * enum qca_wlan_vendor_attr_spectral_diag_stats.
  309. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral
  310. * scan system capabilities. The capabilities are specified
  311. * by enum qca_wlan_vendor_attr_spectral_cap.
  312. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current
  313. * status of spectral scan. The status values are specified
  314. * by enum qca_wlan_vendor_attr_spectral_scan_status.
  315. * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush
  316. * peer pending packets. Specify the peer MAC address in
  317. * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets
  318. * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed
  319. * in enum qca_wlan_vendor_attr_flush_pending.
  320. * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative
  321. * RF Operating Parameter (RROP) information. The attributes for this
  322. * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is
  323. * intended for use by external Auto Channel Selection applications.
  324. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate
  325. * (SAR) power limits. This is a companion to the command
  326. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the
  327. * settings currently in use. The attributes returned by this command are
  328. * defined by enum qca_vendor_attr_sar_limits.
  329. * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of
  330. * the WLAN hardware MAC's associated with each WLAN netdev interface.
  331. * This works both as a query (user space asks the current mode) or event
  332. * interface (driver advertizing the current mode to the user space).
  333. * Driver does not trigger this event for temporary hardware mode changes.
  334. * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion,
  335. * channel change etc ) are updated with this event. Attributes for this
  336. * interface are defined in enum qca_wlan_vendor_attr_mac.
  337. * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold
  338. * per peer per TID. Attributes for this command are define in
  339. * enum qca_wlan_set_qdepth_thresh_attr
  340. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action
  341. * guide for WLAN driver. Request to suspend of driver and FW if the
  342. * temperature is higher than the suspend threshold; resume action is
  343. * requested to driver if the temperature is lower than the resume
  344. * threshold. In user poll mode, request temperature data by user. For test
  345. * purpose, getting thermal shutdown configuration parameters is needed.
  346. * Attributes for this interface are defined in
  347. * enum qca_wlan_vendor_attr_thermal_cmd.
  348. * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from
  349. * driver. Thermal temperature and indication of resume completion are
  350. * reported as thermal events. The attributes for this command are defined
  351. * in enum qca_wlan_vendor_attr_thermal_event.
  352. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi
  353. * test configuration. Attributes for this command are defined in
  354. * enum qca_wlan_vendor_attr_wifi_test_config.
  355. * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor
  356. * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN,
  357. * carried a payload which was a binary blob of data. The command was not
  358. * extendable to send more information. The newer version carries the
  359. * legacy blob encapsulated within an attribute and can be extended with
  360. * additional vendor attributes that can enhance the NAN command
  361. * interface.
  362. * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to
  363. * configure parameters per peer to capture Channel Frequency Response
  364. * (CFR) and enable Periodic CFR capture. The attributes for this command
  365. * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command
  366. * can also be used to send CFR data from the driver to userspace when
  367. * netlink events are used to send CFR data.
  368. * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state.
  369. * The returned firmware state is specified in the attribute
  370. * QCA_WLAN_VENDOR_ATTR_FW_STATE.
  371. * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand
  372. * is used by host driver to flush per-peer cached statistics to user space
  373. * application. This interface is used as an event from host driver to
  374. * user space application. Attributes for this event are specified in
  375. * enum qca_wlan_vendor_attr_peer_stats_cache_params.
  376. * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be
  377. * sent as event from host driver.
  378. * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to
  379. * improve the success rate of Zigbee joining network.
  380. * Due to PTA master limitation, zigbee joining network success rate is
  381. * low while wlan is working. Wlan host driver need to configure some
  382. * parameters including Zigbee state and specific WLAN periods to enhance
  383. * PTA master. All this parameters are delivered by the NetLink attributes
  384. * defined in "enum qca_mpta_helper_vendor_attr".
  385. * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to
  386. * implement Beacon frame reporting feature.
  387. *
  388. * Userspace can request the driver/firmware to periodically report
  389. * received Beacon frames whose BSSID is same as the current connected
  390. * BSS's MAC address.
  391. *
  392. * In case the STA seamlessly (without sending disconnect indication to
  393. * userspace) roams to a different BSS, Beacon frame reporting will be
  394. * automatically enabled for the Beacon frames whose BSSID is same as the
  395. * MAC address of the new BSS. Beacon reporting will be stopped when the
  396. * STA is disconnected (when the disconnect indication is sent to
  397. * userspace) and need to be explicitly enabled by userspace for next
  398. * connection.
  399. *
  400. * When a Beacon frame matching configured conditions is received, and if
  401. * userspace has requested to send asynchronous beacon reports, the
  402. * driver/firmware will encapsulate the details of the Beacon frame in an
  403. * event and send it to userspace along with updating the BSS information
  404. * in cfg80211 scan cache, otherwise driver will only update the cfg80211
  405. * scan cache with the information from the received Beacon frame but
  406. * will not send any active report to userspace.
  407. *
  408. * The userspace can request the driver/firmware to stop reporting Beacon
  409. * frames. If the driver/firmware is not able to receive Beacon frames
  410. * due to other Wi-Fi operations such as off-channel activities, etc.,
  411. * the driver/firmware will send a pause event to userspace and stop
  412. * reporting Beacon frames. Whether the beacon reporting will be
  413. * automatically resumed or not by the driver/firmware later will be
  414. * reported to userspace using the
  415. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon
  416. * reporting shall be resumed for all the cases except either when
  417. * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag
  418. * in the command which triggered the current beacon reporting or during
  419. * any disconnection case as indicated by setting
  420. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to
  421. * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the
  422. * driver.
  423. *
  424. * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received
  425. * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES
  426. * flag not set, the next first
  427. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver
  428. * shall be considered as un-pause event.
  429. *
  430. * All the attributes used with this command are defined in
  431. * enum qca_wlan_vendor_attr_beacon_reporting_params.
  432. * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have
  433. * interop issues with the DUT. This sub command is used to transfer the
  434. * ap info between driver and user space. This works both as a command
  435. * or event. As a command, it configs the stored list of aps from user
  436. * space to firmware; as an event, it indicates the ap info detected by
  437. * firmware to user space for persistent storage. The attributes defined
  438. * in enum qca_vendor_attr_interop_issues_ap are used to deliver the
  439. * parameters.
  440. * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data
  441. * binary blobs from application/service to firmware. The attributes
  442. * defined in enum qca_wlan_vendor_attr_oem_data_params are used to
  443. * deliver the parameters.
  444. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used
  445. * to send/receive avoid frequency data using
  446. * enum qca_wlan_vendor_attr_avoid_frequency_ext.
  447. * This new command is alternative to existing command
  448. * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event
  449. * is using stream of bytes instead of structured data using vendor
  450. * attributes. User space sends unsafe frequency ranges to the driver using
  451. * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On
  452. * reception of this command, the driver shall check if an interface is
  453. * operating on an unsafe frequency and the driver shall try to move to a
  454. * safe channel when needed. If the driver is not able to find a safe
  455. * channel the interface can keep operating on an unsafe channel with the
  456. * TX power limit derived based on internal configurations like
  457. * regulatory/SAR rules.
  458. *
  459. * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to
  460. * add the STA node details in driver/firmware. Attributes for this event
  461. * are specified in enum qca_wlan_vendor_attr_add_sta_node_params.
  462. * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT
  463. * coex chain mode from application/service.
  464. * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used
  465. * to deliver the parameters.
  466. * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to
  467. * get information of a station from driver to userspace. This command can
  468. * be used in both STA and AP modes. For STA mode, it provides information
  469. * of the current association when in connected state or the last
  470. * association when in disconnected state. For AP mode, only information
  471. * of the currently connected stations is available. This command uses
  472. * attributes defined in enum qca_wlan_vendor_attr_get_sta_info.
  473. * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event.
  474. * Host drivers can request the user space entity to set the SAR power
  475. * limits with this event. Accordingly, the user space entity is expected
  476. * to set the SAR power limits. Host drivers can retry this event to the
  477. * user space for the SAR power limits configuration from user space. If
  478. * the driver does not get the SAR power limits from user space for all
  479. * the retried attempts, it can configure a default SAR power limit.
  480. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and
  481. * is used to update the information about the station from the driver to
  482. * userspace. Uses attributes from enum
  483. * qca_wlan_vendor_attr_update_sta_info.
  484. *
  485. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event.
  486. * The host driver initiates the disconnection for scenarios such as beacon
  487. * miss, NUD failure, peer kick out, etc. The disconnection indication
  488. * through cfg80211_disconnected() expects the reason codes from enum
  489. * ieee80211_reasoncode which does not signify these various reasons why
  490. * the driver has triggered the disconnection. This event will be used to
  491. * send the driver specific reason codes by the host driver to userspace.
  492. * Host drivers should trigger this event and pass the respective reason
  493. * code immediately prior to triggering cfg80211_disconnected(). The
  494. * attributes used with this event are defined in enum
  495. * qca_wlan_vendor_attr_driver_disconnect_reason.
  496. *
  497. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to
  498. * add/delete TSPEC for each AC. One command is for one specific AC only.
  499. * This command can only be used in STA mode and the STA must be
  500. * associated with an AP when the command is issued. Uses attributes
  501. * defined in enum qca_wlan_vendor_attr_config_tspec.
  502. *
  503. * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT.
  504. * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt.
  505. *
  506. * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from
  507. * the host driver. The band configurations obtained are referred through
  508. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
  509. *
  510. * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
  511. * assessment.
  512. * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
  513. *
  514. * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  515. * used to update SSID information in hostapd when it is updated in the
  516. * driver. Uses the attribute NL80211_ATTR_SSID.
  517. *
  518. * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
  519. * the driver to send opaque data from the firmware to userspace. The
  520. * driver sends an event to userspace whenever such data is received from
  521. * the firmware.
  522. *
  523. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
  524. * send this opaque data for this event.
  525. *
  526. * The format of the opaque data is specific to the particular firmware
  527. * version and there is no guarantee of the format remaining same.
  528. *
  529. * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event.
  530. * The host driver selects Tx VDEV, and notifies user. The attributes
  531. * used with this event are defined in enum
  532. * qca_wlan_vendor_attr_mbssid_tx_vdev_status.
  533. * This event contains Tx VDEV group information contains other VDEVs
  534. * interface index and status information.
  535. *
  536. * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to
  537. * configure the concurrent session policies when multiple interfaces
  538. * are (getting) active. The attributes used by this command are defined
  539. * in enum qca_wlan_vendor_attr_concurrent_policy.
  540. *
  541. * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command
  542. * to query usable channels for different interface types such as STA,
  543. * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable
  544. * channels in the response based on country code, different static
  545. * configurations, concurrency combinations, etc. The attributes used
  546. * with this command are defined in
  547. * enum qca_wlan_vendor_attr_usable_channels.
  548. *
  549. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used
  550. * to get DFS radar history from the driver to userspace. The driver
  551. * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an
  552. * array of nested entries.
  553. * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to
  554. * enable/disable mDNS offload to the firmware. The attributes used with
  555. * this command are defined in enum qca_wlan_vendor_attr_mdns_offload.
  556. *
  557. * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send
  558. * important debug events that are required for various issues. The
  559. * attributes used with this command are defined in
  560. * enum qca_wlan_vendor_attr_diag.
  561. * This command is defined for temporary usage until this interface is
  562. * moved to the existing diag infra with cnss diag events. This command
  563. * will be deprecated soon and it is not recommended to do any further
  564. * enhancements to this command.
  565. *
  566. * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used
  567. * to set packet monitor mode that aims to send the specified set of TX and
  568. * RX frames on the current client interface to an active monitor interface.
  569. * If this Monitor mode is set, the driver will send the configured frames,
  570. * from the interface on which the command is issued, to an active monitor
  571. * interface. The attributes used with this command are defined in
  572. * enum qca_wlan_vendor_attr_set_monitor_mode.
  573. *
  574. * Though the monitor mode is configured for the respective data/mgmt/ctrl
  575. * frames, it is up to the respective WLAN driver/firmware/hardware designs
  576. * to consider the possibility of sending these frames over the monitor
  577. * interface. For example, the control frames are handled with in the
  578. * hardware and thus passing such frames over the monitor interface is left
  579. * to the respective designs.
  580. *
  581. * Also, this monitor mode is governed to behave accordingly in
  582. * suspend/resume states. If the firmware handles any of such frames
  583. * in suspend state without waking up the host and if the monitor mode
  584. * is configured to notify all such frames, then the firmware is expected
  585. * to resume the host and forward the respective frames to the monitor
  586. * interface. Please note that such a request to get the frames over the
  587. * monitor interface will have a definite power implications.
  588. *
  589. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both
  590. * as a request to set the driver/firmware with the parameters to trigger
  591. * the roaming events, and also used by the driver/firmware to pass on the
  592. * various roam events to userspace.
  593. * Applicable only for the STA mode. The attributes used with this command
  594. * are defined in enum qca_wlan_vendor_attr_roam_events.
  595. *
  596. * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the
  597. * rate mask config for a list of phy types. Userspace shall provide
  598. * an array of the vendor attributes defined in
  599. * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS.
  600. *
  601. * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs
  602. * when two interfaces are active on the same band, using two different
  603. * home channels, and only supported by a single radio. In this scenario
  604. * the device must split the use of the radio between the two interfaces.
  605. * The percentage of time allocated to a given interface is the quota.
  606. * Depending on the configuration, the quota can either be fixed or
  607. * dynamic.
  608. *
  609. * When used as an event, the device will report the quota type, and for
  610. * all interfaces operating in MCC it will report the current quota.
  611. * When used as a command, the device can be configured for a specific
  612. * quota type, and in the case of a fixed quota, the quota to apply to one
  613. * of the interfaces.
  614. *
  615. * Applications can use the event to do TX bitrate control based on the
  616. * information, and can use the command to explicitly set the quota to
  617. * enhance performance in specific scenarios.
  618. *
  619. * The attributes used with this command are defined in
  620. * enum qca_wlan_vendor_attr_mcc_quota.
  621. *
  622. * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the
  623. * user space that the driver is ready for operations again after
  624. * recovering from internal failures. This occurs following a failure
  625. * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG.
  626. *
  627. * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to
  628. * get the WLAN radio combinations matrix supported by the device which
  629. * provides the device simultaneous radio configurations such as
  630. * standalone, dual band simultaneous, and single band simultaneous.
  631. *
  632. * The attributes used with this command are defined in
  633. * enum qca_wlan_vendor_attr_radio_combination_matrix.
  634. *
  635. * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation
  636. * security negotiation and key generation to user space.
  637. *
  638. * When used as an event, the driver requests userspace to trigger the PASN
  639. * authentication or dropping of a PTKSA for the indicated peer devices.
  640. * When used as a command response, userspace indicates a consolidated
  641. * status report for all the peers that were requested for.
  642. *
  643. * The attributes used with this command are defined in
  644. * enum qca_wlan_vendor_attr_pasn.
  645. *
  646. * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set
  647. * secure ranging context such as TK and LTF keyseed for each peer
  648. * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event.
  649. *
  650. * The attributes used with this command are defined in
  651. * enum qca_wlan_vendor_attr_secure_ranging_ctx.
  652. *
  653. * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to
  654. * enable/disable offload processing in firmware during system/runtime
  655. * suspend for CoAP messages (see RFC7252: The Constrained Application
  656. * Protocol) and fetch information of the CoAP messages cached during
  657. * offload processing.
  658. *
  659. * The attributes used with this command are defined in
  660. * enum qca_wlan_vendor_attr_coap_offload.
  661. *
  662. * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure
  663. * (add, remove, or change) a Stream Classification Service (SCS) rule.
  664. *
  665. * The attributes used with this event are defined in
  666. * enum qca_wlan_vendor_attr_scs_rule_config.
  667. *
  668. * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities
  669. * supported by the WLAN firmware.
  670. *
  671. * The attributes used with this command are defined in
  672. * enum qca_wlan_vendor_attr_sar_capability.
  673. *
  674. * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse
  675. * (SR) feature. This command is used by userspace to configure SR
  676. * parameters to the driver and to get the SR related parameters and
  677. * statistics with synchronous responses from the driver.
  678. * The driver also uses this command to send asynchronous events to
  679. * userspace to indicate suspend/resume of SR feature and changes
  680. * in SR parameters.
  681. *
  682. * The attributes used with this command are defined in
  683. * enum qca_wlan_vendor_attr_sr.
  684. *
  685. * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to
  686. * notify application layer about the primary netdev of an MLO connection.
  687. * In some implementations, MLO has multiple netdevs out of which one
  688. * netdev is designated as primary to provide a unified interface to the
  689. * bridge. In those implementations this event is sent on every MLO peer
  690. * connection.
  691. *
  692. * The attributes used with this event are defined in
  693. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event.
  694. *
  695. * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the
  696. * driver to notify different AFC events to userspace. The attributes used
  697. * with this command are defined in enum qca_wlan_vendor_attr_afc_event.
  698. *
  699. * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by
  700. * userspace to deliver AFC response data to driver. The attributes used
  701. * with this command are defined in enum qca_wlan_vendor_attr_afc_response.
  702. *
  703. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to
  704. * operate in doze mode.
  705. *
  706. * Userspace uses this command to configure the AP interface to enter or
  707. * exit from doze mode. The driver sends this event after it enters or
  708. * exits the doze mode with the updated AP doze mode settings.
  709. *
  710. * The attributes used with this subcommand are defined in
  711. * enum qca_wlan_vendor_attr_dozed_ap.
  712. *
  713. * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used
  714. * to get the status of local packet capture of monitor mode. The monitor
  715. * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE
  716. * subcommand.
  717. *
  718. * The attributes used with this command are defined in enum
  719. * qca_wlan_vendor_attr_get_monitor_mode.
  720. *
  721. * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to
  722. * get roam information from the driver to user space. It provides the
  723. * latest several instances of roam information cached in the driver.
  724. * The command is only used for STA mode. The attributes used with this
  725. * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats.
  726. *
  727. * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to
  728. * configure and fetch the state information of the MLO links affiliated
  729. * with the STA interface. The attributes used with this command are
  730. * defined in enum qca_wlan_vendor_attr_mlo_link_state.
  731. *
  732. * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
  733. * vendor subcommand to trigger channel utilization measurement on entire
  734. * channel width of the connected channel(s). For MLO connection, connected
  735. * channel utilization measurement shall be done on all the MLO links.
  736. * The driver may use regular scan or wideband energy detection feature
  737. * based on the hardware capability for connected channel(s) utilization
  738. * measurement. The driver indicates the connected channel(s) utilization
  739. * measurement completion as an asynchronous event with this command ID to
  740. * userspace. Upon receiving this event, userspace can use
  741. * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current
  742. * connected channel(s) and can derive the channel utilization percentage
  743. * (CU) of each 20 MHz sub-channel of the entire connected channel using
  744. * %NL80211_CMD_GET_SURVEY response.
  745. * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
  746. * This command is only used for STA mode.
  747. *
  748. * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is
  749. * used as an event to notify the userspace of TID-to-link map changes
  750. * negotiated by the driver or updated by associated AP MLD with Beacon,
  751. * Probe Response, or Action frames. The attributes used with this command
  752. * are defined in enum qca_wlan_vendor_attr_tid_to_link_map.
  753. *
  754. * Note that the attribute
  755. * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to
  756. * the current connected AP MLD address.
  757. *
  758. * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal
  759. * of STA MLD setup links due to AP MLD removing the corresponding
  760. * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup
  761. * links are removed during Multi-Link reconfiguration, the driver shall
  762. * use %NL80211_CMD_DISCONNECT instead of this command since it is a
  763. * connection drop. The attributes used with this command are defined in
  764. * enum qca_wlan_vendor_attr_link_reconfig.
  765. * Note that the attribute
  766. * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to
  767. * the current connected AP MLD address.
  768. *
  769. * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure
  770. * the driver with MLO link id information on which to transmit the TDLS
  771. * discovery response frame on the configured MLO BSS link when the
  772. * local station is connected in MLO mode. This command is sent to the
  773. * driver prior to the TDLS discovery response management transmit
  774. * operation and is followed immediately by the TDLS discovery response
  775. * management frame transmit command.
  776. *
  777. * The driver saves the configured MLO link id information and uses it for
  778. * the following TDLS discovery response frame transmission on the
  779. * configured MLO BSS link and the link id information is cleared in the
  780. * driver after the TDLS discovery response frame is successfully
  781. * transmitted. This behavior is independent of the TDLS peer STA connection
  782. * mode (MLO or non-MLO).
  783. *
  784. * Uses the attributes defined in
  785. * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext.
  786. */
  787. enum qca_nl80211_vendor_subcmds {
  788. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  789. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  790. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  791. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  792. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  793. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  794. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  795. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  796. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  797. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  798. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  799. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  800. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  801. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20,
  802. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21,
  803. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22,
  804. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23,
  805. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24,
  806. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25,
  807. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26,
  808. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27,
  809. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28,
  810. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29,
  811. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30,
  812. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31,
  813. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32,
  814. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  815. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  816. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  817. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  818. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  819. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  820. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  821. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  822. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41,
  823. /* Get Concurrency Matrix */
  824. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  825. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  826. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  827. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  828. /* Deprecated */
  829. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53,
  830. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  831. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  832. /* Off loaded DFS events */
  833. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  834. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  835. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  836. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  837. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  838. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  839. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  840. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  841. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  842. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65,
  843. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66,
  844. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67,
  845. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68,
  846. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69,
  847. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70,
  848. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71,
  849. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72,
  850. QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73,
  851. /* Wi-Fi Configuration subcommands */
  852. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  853. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  854. QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76,
  855. QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77,
  856. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78,
  857. QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79,
  858. QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80,
  859. QCA_NL80211_VENDOR_SUBCMD_NDP = 81,
  860. /* NS Offload enable/disable cmd */
  861. QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82,
  862. QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83,
  863. QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84,
  864. QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85,
  865. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  866. /* OCB commands */
  867. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  868. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  869. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  870. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  871. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  872. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  873. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  874. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  875. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  876. /* subcommand to get link properties */
  877. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  878. /* LFR Subnet Detection */
  879. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  880. /* DBS subcommands */
  881. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  882. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  883. /* Vendor setband command */
  884. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  885. /* Vendor scan commands */
  886. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  887. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  888. /* OTA test subcommand */
  889. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  890. /* Tx power scaling subcommands */
  891. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  892. /* Tx power scaling in db subcommands */
  893. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115,
  894. QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116,
  895. QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117,
  896. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  897. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  898. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  899. QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121,
  900. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  901. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  902. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  903. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  904. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  905. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  906. /* FTM/indoor location subcommands */
  907. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  908. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  909. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  910. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  911. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  912. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  913. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  914. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  915. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  916. /* Encrypt/Decrypt command */
  917. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  918. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  919. /* DMG low level RF sector operations */
  920. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  921. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  922. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  923. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  924. /* Configure the TDLS mode from user space */
  925. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  926. QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144,
  927. /* Vendor abort scan command */
  928. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  929. /* Set Specific Absorption Rate(SAR) Power Limits */
  930. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  931. /* External Auto channel configuration setting */
  932. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  933. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  934. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  935. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  936. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  937. /* Set the trace level for QDF */
  938. QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152,
  939. QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153,
  940. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154,
  941. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155,
  942. QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156,
  943. QCA_NL80211_VENDOR_SUBCMD_HANG = 157,
  944. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158,
  945. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159,
  946. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160,
  947. QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161,
  948. QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162,
  949. QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163,
  950. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164,
  951. QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165,
  952. QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166,
  953. QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167,
  954. QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168,
  955. /* Wi-Fi test configuration subcommand */
  956. QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169,
  957. QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171,
  958. QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173,
  959. QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174,
  960. QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175,
  961. QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177,
  962. QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178,
  963. QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179,
  964. QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180,
  965. QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181,
  966. QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182,
  967. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183,
  968. QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184,
  969. QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185,
  970. QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186,
  971. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187,
  972. QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188,
  973. QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189,
  974. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
  975. QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
  976. QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
  977. QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
  978. QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
  979. QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
  980. QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
  981. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197,
  982. QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198,
  983. QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199,
  984. QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200,
  985. QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201,
  986. QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202,
  987. QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203,
  988. QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204,
  989. QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205,
  990. /* 206..212 - reserved for QCA */
  991. QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213,
  992. QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214,
  993. QCA_NL80211_VENDOR_SUBCMD_PASN = 215,
  994. QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216,
  995. QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217,
  996. QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218,
  997. QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219,
  998. QCA_NL80211_VENDOR_SUBCMD_SR = 220,
  999. QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221,
  1000. QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222,
  1001. QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223,
  1002. QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224,
  1003. QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
  1004. QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
  1005. QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
  1006. QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
  1007. QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229,
  1008. QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230,
  1009. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231,
  1010. };
  1011. enum qca_wlan_vendor_tos {
  1012. QCA_WLAN_VENDOR_TOS_BK = 0,
  1013. QCA_WLAN_VENDOR_TOS_BE = 1,
  1014. QCA_WLAN_VENDOR_TOS_VI = 2,
  1015. QCA_WLAN_VENDOR_TOS_VO = 3,
  1016. };
  1017. /**
  1018. * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command
  1019. * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS.
  1020. */
  1021. enum qca_wlan_vendor_attr_active_tos {
  1022. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0,
  1023. /* Type Of Service - Represented by qca_wlan_vendor_tos */
  1024. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1,
  1025. /* Flag attribute representing the start (attribute included) or stop
  1026. * (attribute not included) of the respective TOS.
  1027. */
  1028. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2,
  1029. QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3,
  1030. };
  1031. enum qca_wlan_vendor_hang_reason {
  1032. /* Unspecified reason */
  1033. QCA_WLAN_HANG_REASON_UNSPECIFIED = 0,
  1034. /* No Map for the MAC entry for the received frame */
  1035. QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1,
  1036. /* peer deletion timeout happened */
  1037. QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2,
  1038. /* peer unmap timeout */
  1039. QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3,
  1040. /* Scan request timed out */
  1041. QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4,
  1042. /* Consecutive Scan attempt failures */
  1043. QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5,
  1044. /* Unable to get the message buffer */
  1045. QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6,
  1046. /* Current command processing is timedout */
  1047. QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7,
  1048. /* Timeout for an ACK from FW for suspend request */
  1049. QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8,
  1050. /* Timeout for an ACK from FW for resume request */
  1051. QCA_WLAN_HANG_RESUME_TIMEOUT = 9,
  1052. /* Transmission timeout for consecutive data frames */
  1053. QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10,
  1054. /* Timeout for the TX completion status of data frame */
  1055. QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11,
  1056. /* DXE failure for tx/Rx, DXE resource unavailability */
  1057. QCA_WLAN_HANG_DXE_FAILURE = 12,
  1058. /* WMI pending commands exceed the maximum count */
  1059. QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13,
  1060. /* Timeout for peer STA connection accept command's response from the
  1061. * FW in AP mode. This command is triggered when a STA (peer) connects
  1062. * to AP (DUT).
  1063. */
  1064. QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14,
  1065. /* Timeout for the AP connection accept command's response from the FW
  1066. * in STA mode. This command is triggered when the STA (DUT) connects
  1067. * to an AP (peer).
  1068. */
  1069. QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15,
  1070. /* Timeout waiting for the response to the MAC HW mode change command
  1071. * sent to FW as a part of MAC mode switch among DBS (Dual Band
  1072. * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi
  1073. * Channel Concurrency) mode.
  1074. */
  1075. QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16,
  1076. /* Timeout waiting for the response from FW to configure the MAC HW's
  1077. * mode. This operation is to configure the single/two MACs in either
  1078. * SCC/MCC/DBS mode.
  1079. */
  1080. QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17,
  1081. /* Timeout waiting for response of VDEV start command from the FW */
  1082. QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18,
  1083. /* Timeout waiting for response of VDEV restart command from the FW */
  1084. QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19,
  1085. /* Timeout waiting for response of VDEV stop command from the FW */
  1086. QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20,
  1087. /* Timeout waiting for response of VDEV delete command from the FW */
  1088. QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21,
  1089. /* Timeout waiting for response of peer all delete request command to
  1090. * the FW on a specific VDEV.
  1091. */
  1092. QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22,
  1093. /* WMI sequence mismatch between WMI command and Tx completion */
  1094. QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23,
  1095. /* Write to Device HAL register failed */
  1096. QCA_WLAN_HANG_REG_WRITE_FAILURE = 24,
  1097. /* No credit left to send the wow_wakeup_from_sleep to firmware */
  1098. QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25,
  1099. /* Bus failure */
  1100. QCA_WLAN_HANG_BUS_FAILURE = 26,
  1101. /* tasklet/credit latency found */
  1102. QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27,
  1103. /* MSDU buffers received in REO error ring, exceeding certain
  1104. * threshold
  1105. */
  1106. QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28,
  1107. /* Vdev SM is out of sync and connect req received
  1108. * when already connected
  1109. */
  1110. QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29,
  1111. /* Stats request timeout */
  1112. QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30,
  1113. /* Leak in TX descriptor for a packet */
  1114. QCA_WLAN_HANG_TX_DESC_LEAK = 31,
  1115. /* Scheduler watchdog timeout */
  1116. QCA_WLAN_HANG_SCHED_TIMEOUT = 32,
  1117. /* Failed to send self peer deletion cmd to firmware */
  1118. QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33,
  1119. /* Received del self sta without del bss */
  1120. QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34,
  1121. /* Recovery needed when sending flush completion to userspace */
  1122. QCA_WLAN_HANG_FLUSH_LOGS = 35,
  1123. /* Host wakeup because of page fault */
  1124. QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36,
  1125. };
  1126. /**
  1127. * enum qca_wlan_vendor_attr_hang - Used by the vendor command
  1128. * QCA_NL80211_VENDOR_SUBCMD_HANG.
  1129. */
  1130. enum qca_wlan_vendor_attr_hang {
  1131. QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0,
  1132. /*
  1133. * Reason for the Hang - Represented by enum
  1134. * qca_wlan_vendor_hang_reason.
  1135. */
  1136. QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1,
  1137. /* The binary blob data associated with the hang reason specified by
  1138. * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to
  1139. * contain the required dump to analyze the reason for the hang.
  1140. * NLA_BINARY attribute, the max size is 1024 bytes.
  1141. */
  1142. QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2,
  1143. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST,
  1144. QCA_WLAN_VENDOR_ATTR_HANG_MAX =
  1145. QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1,
  1146. };
  1147. /**
  1148. * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level
  1149. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level
  1150. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters
  1151. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace
  1152. level needs to be updated.
  1153. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need
  1154. * to be set.
  1155. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last.
  1156. * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute.
  1157. */
  1158. enum qca_vendor_attr_set_trace_level {
  1159. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0,
  1160. /*
  1161. * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM
  1162. * attributes.
  1163. */
  1164. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1,
  1165. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2,
  1166. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3,
  1167. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST,
  1168. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX =
  1169. QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1,
  1170. };
  1171. /**
  1172. * enum qca_wlan_vendor_attr_get_station - Sub commands used by
  1173. * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding
  1174. * station information. The information obtained through these
  1175. * commands signify the current info in connected state and
  1176. * latest cached information during the connected state , if queried
  1177. * when in disconnected state.
  1178. *
  1179. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute
  1180. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info
  1181. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason
  1182. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info
  1183. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last
  1184. */
  1185. enum qca_wlan_vendor_attr_get_station {
  1186. QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0,
  1187. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO,
  1188. QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON,
  1189. QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE,
  1190. /* keep last */
  1191. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST,
  1192. QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX =
  1193. QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1,
  1194. };
  1195. /**
  1196. * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes
  1197. * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command.
  1198. *
  1199. * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC.
  1200. * Used in STA mode. This attribute represents the list of channel center
  1201. * frequencies in MHz (u32) the station has learnt during the last connection
  1202. * or roaming attempt. This information shall not signify the channels for
  1203. * an explicit scan request from the user space. Host drivers can update this
  1204. * information to the user space in both connected and disconnected state.
  1205. * In the disconnected state this information shall signify the channels
  1206. * scanned in the last connection/roam attempt that lead to the disconnection.
  1207. */
  1208. enum qca_wlan_vendor_attr_update_sta_info {
  1209. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0,
  1210. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1,
  1211. /* keep last */
  1212. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST,
  1213. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX =
  1214. QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1,
  1215. };
  1216. /**
  1217. * enum qca_wlan_802_11_mode - dot11 mode
  1218. * @QCA_WLAN_802_11_MODE_11B: mode B
  1219. * @QCA_WLAN_802_11_MODE_11G: mode G
  1220. * @QCA_WLAN_802_11_MODE_11N: mode N
  1221. * @QCA_WLAN_802_11_MODE_11A: mode A
  1222. * @QCA_WLAN_802_11_MODE_11AC: mode AC
  1223. * @QCA_WLAN_802_11_MODE_11AX: mode AX
  1224. * @QCA_WLAN_802_11_MODE_11BE: mode BE
  1225. * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode
  1226. */
  1227. enum qca_wlan_802_11_mode {
  1228. QCA_WLAN_802_11_MODE_11B,
  1229. QCA_WLAN_802_11_MODE_11G,
  1230. QCA_WLAN_802_11_MODE_11N,
  1231. QCA_WLAN_802_11_MODE_11A,
  1232. QCA_WLAN_802_11_MODE_11AC,
  1233. QCA_WLAN_802_11_MODE_11AX,
  1234. QCA_WLAN_802_11_MODE_11BE,
  1235. QCA_WLAN_802_11_MODE_INVALID,
  1236. };
  1237. /**
  1238. * enum qca_wlan_auth_type - Authentication key management type
  1239. * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type
  1240. * @QCA_WLAN_AUTH_TYPE_OPEN: Open key
  1241. * @QCA_WLAN_AUTH_TYPE_SHARED: shared key
  1242. * @QCA_WLAN_AUTH_TYPE_WPA: wpa key
  1243. * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key
  1244. * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key
  1245. * @QCA_WLAN_AUTH_TYPE_RSN: rsn key
  1246. * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key
  1247. * @QCA_WLAN_AUTH_TYPE_FT: ft key
  1248. * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key
  1249. * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key
  1250. * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk
  1251. * @QCA_WLAN_AUTH_TYPE_WAI: wai key
  1252. * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key
  1253. * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key
  1254. * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key
  1255. * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key
  1256. * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm
  1257. * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384
  1258. * @QCA_WLAN_AUTH_TYPE_SAE: SAE key
  1259. * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key
  1260. * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key
  1261. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key
  1262. * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key
  1263. * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key
  1264. * @QCA_WLAN_AUTH_TYPE_OWE: owe key
  1265. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key
  1266. * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key
  1267. */
  1268. enum qca_wlan_auth_type {
  1269. QCA_WLAN_AUTH_TYPE_INVALID,
  1270. QCA_WLAN_AUTH_TYPE_OPEN,
  1271. QCA_WLAN_AUTH_TYPE_SHARED,
  1272. QCA_WLAN_AUTH_TYPE_WPA,
  1273. QCA_WLAN_AUTH_TYPE_WPA_PSK,
  1274. QCA_WLAN_AUTH_TYPE_WPA_NONE,
  1275. QCA_WLAN_AUTH_TYPE_RSN,
  1276. QCA_WLAN_AUTH_TYPE_RSN_PSK,
  1277. QCA_WLAN_AUTH_TYPE_FT,
  1278. QCA_WLAN_AUTH_TYPE_FT_PSK,
  1279. QCA_WLAN_AUTH_TYPE_SHA256,
  1280. QCA_WLAN_AUTH_TYPE_SHA256_PSK,
  1281. QCA_WLAN_AUTH_TYPE_WAI,
  1282. QCA_WLAN_AUTH_TYPE_WAI_PSK,
  1283. QCA_WLAN_AUTH_TYPE_CCKM_WPA,
  1284. QCA_WLAN_AUTH_TYPE_CCKM_RSN,
  1285. QCA_WLAN_AUTH_TYPE_AUTOSWITCH,
  1286. QCA_WLAN_AUTH_TYPE_FT_SAE,
  1287. QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384,
  1288. QCA_WLAN_AUTH_TYPE_SAE,
  1289. QCA_WLAN_AUTH_TYPE_FILS_SHA256,
  1290. QCA_WLAN_AUTH_TYPE_FILS_SHA384,
  1291. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256,
  1292. QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384,
  1293. QCA_WLAN_AUTH_TYPE_DPP_RSN,
  1294. QCA_WLAN_AUTH_TYPE_OWE,
  1295. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
  1296. QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
  1297. };
  1298. /**
  1299. * enum qca_wlan_vendor_attr_get_station_info - Station Info queried
  1300. * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION.
  1301. *
  1302. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute
  1303. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR:
  1304. * Get the standard NL attributes Nested with this attribute.
  1305. * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link -
  1306. * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) /
  1307. * NL80211_ATTR_STA_INFO
  1308. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR:
  1309. * Get the standard NL attributes Nested with this attribute.
  1310. * Ex : Query HT/VHT Capability advertised by the AP.
  1311. * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY
  1312. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT:
  1313. * Number of successful Roam attempts before a
  1314. * disconnect, Unsigned 32 bit value
  1315. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM:
  1316. * Authentication Key Management Type used for the connected session.
  1317. * Signified by enum qca_wlan_auth_type
  1318. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the
  1319. * connected Session, signified by enum qca_wlan_802_11_mode
  1320. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION:
  1321. * HS20 Indication Element
  1322. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON:
  1323. * Status Code Corresponding to the Association Failure.
  1324. * Unsigned 32 bit value.
  1325. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE:
  1326. * Max phy rate of remote station
  1327. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS:
  1328. * TX packets to remote station
  1329. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES:
  1330. * TX bytes to remote station
  1331. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS:
  1332. * RX packets from remote station
  1333. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES:
  1334. * RX bytes from remote station
  1335. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE:
  1336. * Last TX rate with remote station
  1337. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE:
  1338. * Last RX rate with remote station
  1339. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM:
  1340. * Remote station enable/disable WMM
  1341. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE:
  1342. * Remote station connection mode
  1343. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU:
  1344. * Remote station AMPDU enable/disable
  1345. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC:
  1346. * Remote station TX Space-time block coding enable/disable
  1347. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC:
  1348. * Remote station RX Space-time block coding enable/disable
  1349. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH:
  1350. * Remote station channel width
  1351. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE:
  1352. * Remote station short GI enable/disable
  1353. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding
  1354. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute
  1355. * containing the raw information elements from Beacon frames. Represents
  1356. * the Beacon frames of the current BSS in the connected state. When queried
  1357. * in the disconnected state, these IEs correspond to the last connected BSSID.
  1358. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver
  1359. * disconnect reason for the last disconnection if the disconnection is
  1360. * triggered from the host driver. The values are referred from
  1361. * enum qca_disconnect_reason_codes. If the disconnect is from
  1362. * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED.
  1363. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute
  1364. * Applicable in AP mode only. It contains the raw information elements
  1365. * from assoc request frame of the given peer station. User queries with the
  1366. * mac address of peer station when it disconnects. Host driver sends
  1367. * assoc request frame of the given station. Host driver doesn't provide
  1368. * the IEs when the peer station is still in connected state.
  1369. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for
  1370. * sending HE operation info.
  1371. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2: Attribute
  1372. * type for remote channel width greater than 160 MHz.
  1373. * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last
  1374. *
  1375. */
  1376. enum qca_wlan_vendor_attr_get_station_info {
  1377. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0,
  1378. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR,
  1379. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR,
  1380. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT,
  1381. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM,
  1382. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE,
  1383. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION,
  1384. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION,
  1385. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION,
  1386. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON,
  1387. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE,
  1388. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS,
  1389. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES,
  1390. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS,
  1391. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES,
  1392. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE,
  1393. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE,
  1394. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM,
  1395. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE,
  1396. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU,
  1397. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC,
  1398. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC,
  1399. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH,
  1400. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE,
  1401. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD,
  1402. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT,
  1403. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT,
  1404. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE,
  1405. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN,
  1406. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED,
  1407. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI,
  1408. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY,
  1409. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST,
  1410. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW,
  1411. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW,
  1412. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW,
  1413. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES,
  1414. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON,
  1415. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES,
  1416. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION,
  1417. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2,
  1418. /* keep last */
  1419. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST,
  1420. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX =
  1421. QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1,
  1422. };
  1423. /**
  1424. * qca_chip_power_save_failure_reason: Power save failure reason
  1425. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure
  1426. * due to protocol/module.
  1427. * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure
  1428. * due to hardware
  1429. */
  1430. enum qca_chip_power_save_failure_reason {
  1431. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  1432. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  1433. };
  1434. /**
  1435. * qca_attr_chip_power_save_failure: attributes to vendor subcmd
  1436. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite
  1437. * information leading to the power save failure.
  1438. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid
  1439. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason
  1440. * represented by enum qca_chip_power_save_failure_reason
  1441. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last
  1442. * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value
  1443. */
  1444. enum qca_attr_chip_power_save_failure {
  1445. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  1446. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  1447. /* keep last */
  1448. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  1449. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  1450. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  1451. };
  1452. /* enum's to provide TDLS capabilities */
  1453. enum qca_wlan_vendor_attr_get_tdls_capabilities {
  1454. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0,
  1455. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1,
  1456. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2,
  1457. /* keep last */
  1458. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST,
  1459. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX =
  1460. QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1,
  1461. };
  1462. /* Compatibility defines for previously used subcmd names.
  1463. * These values should not be used in any new implementation.
  1464. */
  1465. #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \
  1466. QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY
  1467. enum qca_wlan_vendor_attr {
  1468. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  1469. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  1470. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  1471. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  1472. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  1473. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1474. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  1475. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  1476. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  1477. /*
  1478. * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  1479. * by enum qca_roaming_policy.
  1480. */
  1481. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  1482. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  1483. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  1484. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  1485. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  1486. /*
  1487. * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
  1488. * Unsigned 32-bit value.
  1489. */
  1490. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  1491. /* Unsigned 32-bit value */
  1492. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  1493. /* Unsigned 32-bit value */
  1494. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  1495. /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable
  1496. * value for this attribute are only till QCA_SETBAND_2G. This attribute
  1497. * is deprecated. Recommendation is to use
  1498. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured
  1499. * using both the attributes, the ones configured through
  1500. * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence.
  1501. */
  1502. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  1503. /* Dummy (NOP) attribute for 64 bit padding */
  1504. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  1505. /*
  1506. * Unique FTM session cookie (Unsigned 64 bit). Specified in
  1507. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  1508. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  1509. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  1510. */
  1511. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  1512. /*
  1513. * Indoor location capabilities, returned by
  1514. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  1515. * see enum qca_wlan_vendor_attr_loc_capa.
  1516. */
  1517. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  1518. /*
  1519. * Array of nested attributes containing information about each peer
  1520. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  1521. * for supported attributes for each peer.
  1522. */
  1523. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  1524. /*
  1525. * Array of nested attributes containing measurement results for
  1526. * one or more peers, reported by the
  1527. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  1528. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  1529. * attributes.
  1530. */
  1531. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  1532. /* Flag attribute for enabling or disabling responder functionality. */
  1533. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  1534. /*
  1535. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1536. * command to specify the LCI report that will be sent by
  1537. * the responder during a measurement exchange. The format is
  1538. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  1539. */
  1540. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  1541. /*
  1542. * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1543. * command to specify the location civic report that will
  1544. * be sent by the responder during a measurement exchange.
  1545. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  1546. */
  1547. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  1548. /*
  1549. * Session/measurement completion status code,
  1550. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  1551. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  1552. * see enum qca_vendor_attr_loc_session_status.
  1553. */
  1554. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  1555. /*
  1556. * Initial dialog token used by responder (0 if not specified),
  1557. * unsigned 8 bit value.
  1558. */
  1559. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  1560. /*
  1561. * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  1562. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  1563. * AOA measurements are needed as part of an FTM session.
  1564. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  1565. * enum qca_wlan_vendor_attr_aoa_type.
  1566. */
  1567. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  1568. /*
  1569. * A bit mask (unsigned 32 bit value) of antenna arrays used
  1570. * by indoor location measurements. Refers to the antenna
  1571. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  1572. */
  1573. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  1574. /*
  1575. * AOA measurement data. Its contents depends on the AOA measurement
  1576. * type and antenna array mask:
  1577. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  1578. * phase of the strongest CIR path for each antenna in the measured
  1579. * array(s).
  1580. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  1581. * values, phase and amplitude of the strongest CIR path for each
  1582. * antenna in the measured array(s).
  1583. */
  1584. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  1585. /*
  1586. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1587. * to specify the chain number (unsigned 32 bit value) to inquire
  1588. * the corresponding antenna RSSI value */
  1589. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  1590. /*
  1591. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1592. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  1593. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  1594. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  1595. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  1596. /*
  1597. * TSF timer value, unsigned 64 bit value.
  1598. * May be returned by various commands.
  1599. */
  1600. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  1601. /*
  1602. * DMG RF sector index, unsigned 16 bit number. Valid values are
  1603. * 0..127 for sector indices or 65535 as special value used to
  1604. * unlock sector selection in
  1605. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  1606. */
  1607. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  1608. /*
  1609. * DMG RF sector type, unsigned 8 bit value. One of the values
  1610. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  1611. */
  1612. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  1613. /*
  1614. * Bitmask of DMG RF modules for which information is requested. Each
  1615. * bit corresponds to an RF module with the same index as the bit
  1616. * number. Unsigned 32 bit number but only low 8 bits can be set since
  1617. * all DMG chips currently have up to 8 RF modules.
  1618. */
  1619. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  1620. /*
  1621. * Array of nested attributes where each entry is DMG RF sector
  1622. * configuration for a single RF module.
  1623. * Attributes for each entry are taken from enum
  1624. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  1625. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  1626. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  1627. */
  1628. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  1629. /*
  1630. * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  1631. * to report frame aggregation statistics to userspace.
  1632. */
  1633. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  1634. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  1635. /*
  1636. * Unsigned 8-bit value representing MBO transition reason code as
  1637. * provided by the AP used by subcommand
  1638. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  1639. * specified by the userspace in the request to the driver.
  1640. */
  1641. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  1642. /*
  1643. * Array of nested attributes, BSSID and status code, used by subcommand
  1644. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  1645. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  1646. * The userspace space specifies the list/array of candidate BSSIDs in
  1647. * the order of preference in the request. The driver specifies the
  1648. * status code, for each BSSID in the list, in the response. The
  1649. * acceptable candidates are listed in the order preferred by the
  1650. * driver.
  1651. */
  1652. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  1653. /*
  1654. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1655. * See enum qca_wlan_vendor_attr_brp_ant_limit_mode.
  1656. */
  1657. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38,
  1658. /*
  1659. * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command
  1660. * to define the number of antennas to use for BRP.
  1661. * different purpose in each ANT_LIMIT_MODE:
  1662. * DISABLE - ignored
  1663. * EFFECTIVE - upper limit to number of antennas to be used
  1664. * FORCE - exact number of antennas to be used
  1665. * unsigned 8 bit value
  1666. */
  1667. QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39,
  1668. /*
  1669. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1670. * to report the corresponding antenna index to the chain RSSI value
  1671. */
  1672. QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40,
  1673. /*
  1674. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  1675. * to report the specific antenna EVM value (unsigned 32 bit value).
  1676. * With a determinate group of antennas, the driver specifies the
  1677. * EVM value for each antenna ID, and application extract them
  1678. * in user space.
  1679. */
  1680. QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41,
  1681. /*
  1682. * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report
  1683. * wlan firmware current state. FW state is an unsigned 8 bit value,
  1684. * one of the values in enum qca_wlan_vendor_attr_fw_state.
  1685. */
  1686. QCA_WLAN_VENDOR_ATTR_FW_STATE = 42,
  1687. /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the
  1688. * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the
  1689. * integer values of enum qca_set_band till QCA_SETBAND_2G are valid.
  1690. * This attribute shall consider the bitmask combinations to define
  1691. * the respective Band combinations and always takes precedence over
  1692. * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE.
  1693. */
  1694. QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43,
  1695. /* keep last */
  1696. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  1697. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1
  1698. };
  1699. enum qca_wlan_vendor_attr_extscan_config_params {
  1700. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  1701. /* Unsigned 32-bit value */
  1702. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  1703. /*
  1704. * Attributes for data used by
  1705. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command.
  1706. */
  1707. /* Unsigned 32-bit value */
  1708. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  1709. = 2,
  1710. /* Unsigned 32-bit value */
  1711. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  1712. = 3,
  1713. /*
  1714. * Attributes for input params used by
  1715. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command.
  1716. */
  1717. /* Unsigned 32-bit value; channel frequency */
  1718. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4,
  1719. /* Unsigned 32-bit value; dwell time in ms. */
  1720. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  1721. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  1722. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6,
  1723. /* Unsigned 8-bit value; channel class */
  1724. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7,
  1725. /* Unsigned 8-bit value; bucket index, 0 based */
  1726. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8,
  1727. /* Unsigned 8-bit value; band. */
  1728. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9,
  1729. /* Unsigned 32-bit value; desired period, in ms. */
  1730. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10,
  1731. /* Unsigned 8-bit value; report events semantics. */
  1732. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  1733. /*
  1734. * Unsigned 32-bit value. Followed by a nested array of
  1735. * EXTSCAN_CHANNEL_SPEC_* attributes.
  1736. */
  1737. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  1738. /*
  1739. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes.
  1740. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1741. */
  1742. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13,
  1743. /* Unsigned 32-bit value; base timer period in ms. */
  1744. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  1745. /*
  1746. * Unsigned 32-bit value; number of APs to store in each scan in the
  1747. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  1748. */
  1749. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  1750. /*
  1751. * Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  1752. * up AP.
  1753. */
  1754. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  1755. = 16,
  1756. /*
  1757. * Unsigned 8-bit value; number of scan bucket specs; followed by a
  1758. * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size
  1759. * of the array is determined by NUM_BUCKETS.
  1760. */
  1761. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  1762. /*
  1763. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes.
  1764. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  1765. */
  1766. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18,
  1767. /* Unsigned 8-bit value */
  1768. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  1769. = 19,
  1770. /* Unsigned 32-bit value; maximum number of results to be returned. */
  1771. QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  1772. = 20,
  1773. /* An array of 6 x unsigned 8-bit value */
  1774. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  1775. /* Signed 32-bit value */
  1776. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  1777. /* Signed 32-bit value */
  1778. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  1779. /* Unsigned 32-bit value */
  1780. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  1781. /*
  1782. * Number of hotlist APs as unsigned 32-bit value, followed by a nested
  1783. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  1784. * array is determined by NUM_AP.
  1785. */
  1786. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  1787. /*
  1788. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes.
  1789. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  1790. */
  1791. QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26,
  1792. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  1793. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  1794. = 27,
  1795. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1796. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  1797. = 28,
  1798. /* Unsigned 32-bit value; number of APs breaching threshold. */
  1799. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  1800. /*
  1801. * Unsigned 32-bit value; number of APs. Followed by an array of
  1802. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  1803. */
  1804. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  1805. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  1806. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  1807. = 31,
  1808. /*
  1809. * Unsigned 32-bit value. If max_period is non zero or different than
  1810. * period, then this bucket is an exponential backoff bucket.
  1811. */
  1812. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  1813. /* Unsigned 32-bit value. */
  1814. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33,
  1815. /*
  1816. * Unsigned 32-bit value. For exponential back off bucket, number of
  1817. * scans to perform for a given period.
  1818. */
  1819. QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  1820. /*
  1821. * Unsigned 8-bit value; in number of scans, wake up AP after these
  1822. * many scans.
  1823. */
  1824. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  1825. = 35,
  1826. /*
  1827. * Attributes for data used by
  1828. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command.
  1829. */
  1830. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  1831. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  1832. = 36,
  1833. /*
  1834. * Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  1835. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  1836. * size of the array is determined by NUM_SSID.
  1837. */
  1838. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  1839. /*
  1840. * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_*
  1841. * attributes.
  1842. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  1843. */
  1844. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38,
  1845. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  1846. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  1847. /* Unsigned 8-bit value */
  1848. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  1849. /* Signed 32-bit value */
  1850. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  1851. /* Signed 32-bit value */
  1852. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  1853. /* Unsigned 32-bit value; a bitmask with additional extscan config flag.
  1854. */
  1855. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43,
  1856. /* keep last */
  1857. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  1858. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX =
  1859. QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  1860. };
  1861. enum qca_wlan_vendor_attr_extscan_results {
  1862. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0,
  1863. /*
  1864. * Unsigned 32-bit value; must match the request Id supplied by
  1865. * Wi-Fi HAL in the corresponding subcmd NL msg.
  1866. */
  1867. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1,
  1868. /*
  1869. * Unsigned 32-bit value; used to indicate the status response from
  1870. * firmware/driver for the vendor sub-command.
  1871. */
  1872. QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2,
  1873. /*
  1874. * EXTSCAN Valid Channels attributes */
  1875. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  1876. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3,
  1877. /*
  1878. * An array of NUM_CHANNELS x unsigned 32-bit value integers
  1879. * representing channel numbers.
  1880. */
  1881. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4,
  1882. /* EXTSCAN Capabilities attributes */
  1883. /* Unsigned 32-bit value */
  1884. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  1885. /* Unsigned 32-bit value */
  1886. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  1887. /* Unsigned 32-bit value */
  1888. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  1889. = 7,
  1890. /* Unsigned 32-bit value */
  1891. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  1892. = 8,
  1893. /* Signed 32-bit value */
  1894. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  1895. = 9,
  1896. /* Unsigned 32-bit value */
  1897. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  1898. /* Unsigned 32-bit value */
  1899. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  1900. = 11,
  1901. /* Unsigned 32-bit value */
  1902. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  1903. = 12,
  1904. /*
  1905. * EXTSCAN Attributes used with
  1906. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  1907. */
  1908. /* Unsigned 32-bit value */
  1909. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  1910. /*
  1911. * EXTSCAN attributes used with
  1912. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command.
  1913. */
  1914. /*
  1915. * An array of NUM_RESULTS_AVAILABLE x
  1916. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_*
  1917. */
  1918. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14,
  1919. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  1920. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  1921. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  1922. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  1923. /* An array of 6 x unsigned 8-bit value */
  1924. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  1925. /* Unsigned 32-bit value; channel frequency in MHz */
  1926. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  1927. /* Signed 32-bit value */
  1928. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  1929. /* Unsigned 32-bit value */
  1930. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  1931. /* Unsigned 32-bit value */
  1932. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  1933. /* Unsigned 16-bit value */
  1934. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  1935. /* Unsigned 16-bit value */
  1936. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  1937. /* Unsigned 32-bit value; size of the IE DATA blob */
  1938. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  1939. /*
  1940. * An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  1941. * information elements found in the beacon; this data should be a
  1942. * packed list of wifi_information_element objects, one after the
  1943. * other.
  1944. */
  1945. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  1946. /*
  1947. * Unsigned 8-bit value; set by driver to indicate more scan results are
  1948. * available.
  1949. */
  1950. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  1951. /*
  1952. * EXTSCAN attributes for
  1953. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command.
  1954. */
  1955. /* Unsigned 8-bit value */
  1956. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  1957. /* Unsigned 32-bit value */
  1958. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  1959. /*
  1960. * EXTSCAN attributes for
  1961. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command.
  1962. */
  1963. /*
  1964. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1965. * to indicate number of results.
  1966. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  1967. * list of results.
  1968. */
  1969. /*
  1970. * EXTSCAN attributes for
  1971. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command.
  1972. */
  1973. /* An array of 6 x unsigned 8-bit value */
  1974. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  1975. /* Unsigned 32-bit value */
  1976. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  1977. = 30,
  1978. /* Unsigned 32-bit value. */
  1979. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  1980. = 31,
  1981. /*
  1982. * A nested array of signed 32-bit RSSI values. Size of the array is
  1983. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  1984. */
  1985. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  1986. = 32,
  1987. /*
  1988. * EXTSCAN attributes used with
  1989. * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command.
  1990. */
  1991. /*
  1992. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  1993. * to indicate number of extscan cached results returned.
  1994. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate
  1995. * the list of extscan cached results.
  1996. */
  1997. /*
  1998. * An array of NUM_RESULTS_AVAILABLE x
  1999. * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_*
  2000. */
  2001. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33,
  2002. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  2003. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34,
  2004. /*
  2005. * Unsigned 32-bit value; a bitmask w/additional information about scan.
  2006. */
  2007. QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35,
  2008. /*
  2009. * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2010. * to indicate number of wifi scan results/bssids retrieved by the scan.
  2011. * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the
  2012. * list of wifi scan results returned for each cached result block.
  2013. */
  2014. /*
  2015. * EXTSCAN attributes for
  2016. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  2017. */
  2018. /*
  2019. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  2020. * number of results.
  2021. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2022. * list of wifi scan results returned for each
  2023. * wifi_passpoint_match_result block.
  2024. * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  2025. */
  2026. /*
  2027. * EXTSCAN attributes for
  2028. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  2029. */
  2030. /* Unsigned 32-bit value */
  2031. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  2032. = 36,
  2033. /*
  2034. * A nested array of
  2035. * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  2036. * attributes. Array size =
  2037. * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  2038. */
  2039. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  2040. /* Unsigned 32-bit value; network block id for the matched network */
  2041. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  2042. /*
  2043. * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested
  2044. * list of wifi scan results returned for each
  2045. * wifi_passpoint_match_result block.
  2046. */
  2047. /* Unsigned 32-bit value */
  2048. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  2049. /*
  2050. * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  2051. * ANQP data in the information_element format.
  2052. */
  2053. QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  2054. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2055. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  2056. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2057. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  2058. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2059. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  2060. = 43,
  2061. /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */
  2062. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  2063. = 44,
  2064. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45,
  2065. QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46,
  2066. /* keep last */
  2067. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST,
  2068. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX =
  2069. QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1,
  2070. };
  2071. /**
  2072. * enum qca_vendor_interop_issues_ap_type - interop issues type
  2073. * This enum defines the valid set of values of interop issues type. These
  2074. * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE.
  2075. *
  2076. * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue
  2077. * when the STA's Qpower feature is enabled.
  2078. */
  2079. enum qca_vendor_interop_issues_ap_type {
  2080. QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0,
  2081. QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1,
  2082. };
  2083. /**
  2084. * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues
  2085. * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP.
  2086. *
  2087. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value
  2088. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type
  2089. * 32-bit unsigned value, The type defined in enum
  2090. * qca_vendor_interop_issues_ap_type are used.
  2091. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container
  2092. * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes,
  2093. * it is present and mandatory for the command but is not used for
  2094. * the event since only a single BSSID is reported in an event.
  2095. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid
  2096. * 6-byte MAC address. It is used within the nested
  2097. * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case
  2098. * and without such encapsulation in the event case.
  2099. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value
  2100. * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value
  2101. */
  2102. enum qca_vendor_attr_interop_issues_ap {
  2103. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID,
  2104. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE,
  2105. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST,
  2106. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID,
  2107. /* keep last */
  2108. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST,
  2109. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX =
  2110. QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1
  2111. };
  2112. #ifdef WLAN_FEATURE_LINK_LAYER_STATS
  2113. enum qca_wlan_vendor_attr_ll_stats_set {
  2114. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  2115. /* Unsigned 32-bit value */
  2116. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  2117. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
  2118. /* keep last */
  2119. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  2120. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  2121. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
  2122. };
  2123. /**
  2124. * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS
  2125. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK.
  2126. *
  2127. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics.
  2128. *
  2129. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within
  2130. * radio statistics.
  2131. *
  2132. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel
  2133. * statistics within radio statistics.
  2134. *
  2135. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within
  2136. * radio statistics.
  2137. *
  2138. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics.
  2139. *
  2140. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics
  2141. * within interface statistics.
  2142. *
  2143. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within
  2144. * interface statistics.
  2145. *
  2146. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention
  2147. * (min, max, avg) statistics within AC statistics.
  2148. *
  2149. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics
  2150. * on this interface.
  2151. *
  2152. * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer
  2153. * statistics depending on the peer_mac.
  2154. */
  2155. enum qca_wlan_ll_stats_clr_req_bitmap {
  2156. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0),
  2157. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1),
  2158. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2),
  2159. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3),
  2160. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4),
  2161. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5),
  2162. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6),
  2163. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7),
  2164. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8),
  2165. QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9),
  2166. };
  2167. enum qca_wlan_vendor_attr_ll_stats_clr {
  2168. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  2169. /* Unsigned 32bit bitmap for clearing statistics, specified
  2170. * in the enum qca_wlan_ll_stats_clr_req_bitmap.
  2171. */
  2172. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
  2173. /* Unsigned 8 bit value: Request to stop statistics collection */
  2174. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
  2175. /* Unsigned 32 bit bitmap: Response from the driver
  2176. * for the cleared statistics
  2177. */
  2178. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
  2179. /* Unsigned 8 bit value: Response from driver/firmware
  2180. * for the stop request
  2181. */
  2182. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
  2183. /* keep last */
  2184. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  2185. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  2186. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
  2187. };
  2188. /**
  2189. * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS
  2190. * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK.
  2191. *
  2192. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics.
  2193. *
  2194. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics.
  2195. *
  2196. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics.
  2197. *
  2198. * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics.
  2199. */
  2200. enum qca_wlan_ll_stats_get_req_bitmap {
  2201. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0),
  2202. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1),
  2203. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2),
  2204. QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3),
  2205. };
  2206. enum qca_wlan_vendor_attr_ll_stats_get {
  2207. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  2208. /* Unsigned 32 bit value provided by the caller issuing the GET stats
  2209. * command. When reporting the stats results, the driver uses the same
  2210. * value to indicate which GET request the results correspond to.
  2211. */
  2212. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
  2213. /* Unsigned 32 bit value - bit mask to identify what statistics are
  2214. * requested for retrieval specified in the enum
  2215. * qca_wlan_ll_stats_get_req_bitmap
  2216. */
  2217. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
  2218. /* keep last */
  2219. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  2220. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  2221. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
  2222. };
  2223. enum qca_wlan_vendor_attr_ll_stats_results {
  2224. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  2225. /*
  2226. * For Multi Link Operation (MLO) connection, per-link statistics will
  2227. * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and
  2228. * cumulative statistics will be sent outside of
  2229. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward
  2230. * compatibility with legacy user space. Attributes which don't have
  2231. * explicit documentation for MLO will be sent only outside of
  2232. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values
  2233. * don't depend on whether the connection is MLO capable or not, e.g.,
  2234. * radio and channel specific attributes.
  2235. */
  2236. /* Unsigned 32bit value. Used by the driver; must match the request id
  2237. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  2238. */
  2239. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  2240. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2241. * the link with the best RSSI outside
  2242. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2243. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2244. */
  2245. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  2246. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2247. * the link with the best RSSI outside
  2248. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2249. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2250. */
  2251. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  2252. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2253. * the link with the best RSSI outside
  2254. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2255. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2256. */
  2257. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  2258. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2259. * the link with the best RSSI outside
  2260. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2261. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2262. */
  2263. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  2264. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2265. * the link with the best RSSI outside
  2266. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2267. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2268. */
  2269. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  2270. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2271. * the link with the best RSSI outside
  2272. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2273. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2274. */
  2275. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  2276. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2277. * the link with the best RSSI outside
  2278. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2279. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2280. */
  2281. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  2282. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  2283. * nested within the interface stats.
  2284. */
  2285. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  2286. * Type = enum wifi_interface_mode.
  2287. */
  2288. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  2289. /* Interface MAC address. An array of 6 Unsigned int8 */
  2290. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  2291. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  2292. * AUTHENTICATING, etc. valid for STA, CLI only.
  2293. */
  2294. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  2295. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  2296. */
  2297. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  2298. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  2299. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  2300. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  2301. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  2302. /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD
  2303. * address of the AP. An array of 6 unsigned 8 bit values
  2304. */
  2305. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  2306. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  2307. * values.
  2308. */
  2309. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  2310. /* Country string for this association. An array of 3 unsigned 8 bit
  2311. * values.
  2312. */
  2313. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  2314. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  2315. * be nested within the interface stats.
  2316. * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2317. * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_*
  2318. * indicate the aggregate of all links outside
  2319. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2320. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes
  2321. * indicate value of the MLO link with the best RSSI outside
  2322. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2323. * These attributes indicate the link specific value inside
  2324. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2325. */
  2326. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  2327. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  2328. /* Unsigned int 32 value corresponding to respective AC */
  2329. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  2330. /* Unsigned int 32 value corresponding to respective AC */
  2331. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  2332. /* Unsigned int 32 value corresponding to respective AC */
  2333. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  2334. /* Unsigned int 32 value corresponding to respective AC */
  2335. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  2336. /* Unsigned int 32 value corresponding to respective AC */
  2337. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  2338. /* Unsigned int 32 value corresponding to respective AC */
  2339. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  2340. /* Unsigned int 32 value corresponding to respective AC */
  2341. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  2342. /* Unsigned int 32 value corresponding to respective AC */
  2343. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  2344. /* Unsigned int 32 value corresponding to respective AC */
  2345. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  2346. /* Unsigned int 32 values corresponding to respective AC */
  2347. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  2348. /* Unsigned int 32 values corresponding to respective AC */
  2349. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  2350. /* Unsigned int 32 values corresponding to respective AC */
  2351. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  2352. /* Unsigned int 32 values corresponding to respective AC */
  2353. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  2354. /* Unsigned int 32 values corresponding to respective AC */
  2355. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  2356. /* Unsigned 32 bit value. Number of peers */
  2357. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  2358. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  2359. * nested within the interface stats.
  2360. */
  2361. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  2362. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  2363. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  2364. * 8 bit values.
  2365. */
  2366. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  2367. /* Unsigned int 32 bit value representing capabilities corresponding
  2368. * to respective peer.
  2369. */
  2370. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  2371. /* Unsigned 32 bit value. Number of rates */
  2372. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  2373. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2374. * are nested within the rate stat.
  2375. */
  2376. /* Wi-Fi Rate - separate attributes defined for individual fields */
  2377. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  2378. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  2379. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  2380. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  2381. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  2382. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  2383. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  2384. * in the units of 0.5 Mbps HT/VHT it would be MCS index
  2385. */
  2386. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  2387. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  2388. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  2389. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  2390. * nested within the peer info stats.
  2391. */
  2392. /* Unsigned int 32 bit value. Number of successfully transmitted data
  2393. * packets, i.e., with ACK received corresponding to the respective
  2394. * rate.
  2395. */
  2396. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  2397. /* Unsigned int 32 bit value. Number of received data packets
  2398. * corresponding to the respective rate.
  2399. */
  2400. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  2401. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  2402. * received corresponding to the respective rate.
  2403. */
  2404. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  2405. /* Unsigned int 32 bit value. Total number of data packet retries for
  2406. * the respective rate.
  2407. */
  2408. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  2409. /* Unsigned int 32 bit value. Total number of short data packet retries
  2410. * for the respective rate.
  2411. */
  2412. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  2413. /* Unsigned int 32 bit value. Total number of long data packet retries
  2414. * for the respective rate.
  2415. */
  2416. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2417. /* Unsigned 32 bit value. This is used to indicate radio ID of the radio
  2418. * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2419. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used
  2420. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID
  2421. * of the MLO link.
  2422. */
  2423. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2424. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2425. * accruing over time.
  2426. */
  2427. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2428. /* Unsigned 32 bit value. Total number of msecs the radio is
  2429. * transmitting accruing over time.
  2430. */
  2431. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2432. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2433. * receive accruing over time.
  2434. */
  2435. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2436. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2437. * to all scan accruing over time.
  2438. */
  2439. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2440. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2441. * to NAN accruing over time.
  2442. */
  2443. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2444. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2445. * to GSCAN accruing over time.
  2446. */
  2447. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2448. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2449. * to roam scan accruing over time.
  2450. */
  2451. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2452. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2453. * to PNO scan accruing over time.
  2454. */
  2455. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2456. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2457. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2458. */
  2459. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2460. /* Unsigned 32 bit value. Number of channels. */
  2461. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2462. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2463. * be nested within the channel stats.
  2464. */
  2465. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2466. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2467. /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to
  2468. * indicate the primary frequency of the channel when
  2469. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is
  2470. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside
  2471. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency
  2472. * on which the MLO link is operating.
  2473. */
  2474. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2475. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2476. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2477. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2478. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2479. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2480. * nested within the radio stats.
  2481. */
  2482. /* Unsigned int 32 bit value representing total number of msecs the
  2483. * radio is awake on that channel accruing over time, corresponding to
  2484. * the respective channel.
  2485. */
  2486. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2487. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2488. * register is busy accruing over time corresponding to the respective
  2489. * channel.
  2490. */
  2491. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2492. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2493. /* Signifies the nested list of channel attributes
  2494. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_*
  2495. */
  2496. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2497. /* Signifies the nested list of peer info attributes
  2498. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection,
  2499. * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to
  2500. * indicate on which link the peer is connected.
  2501. */
  2502. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2503. /* Signifies the nested list of rate info attributes
  2504. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2505. */
  2506. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2507. /* Signifies the nested list of wmm info attributes
  2508. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2509. */
  2510. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2511. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2512. * that more stats, e.g., peers or radio, are to follow in the next
  2513. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2514. * Otherwise, it is set to 0.
  2515. */
  2516. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2517. /* Unsigned 64 bit value. For an MLO connection, indicates the value of
  2518. * the link with the best RSSI outside
  2519. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2520. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2521. */
  2522. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2523. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2524. * the link with the best RSSI outside
  2525. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2526. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2527. */
  2528. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2529. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2530. * the link with the best RSSI outside
  2531. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2532. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2533. */
  2534. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2535. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2536. * the link with the best RSSI outside
  2537. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2538. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2539. */
  2540. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2541. /* Unsigned 32 bit value */
  2542. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2543. /* Unsigned 32 bit value */
  2544. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2545. /* Number of msecs the radio spent in transmitting for each power level
  2546. */
  2547. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2548. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2549. * the link with the best RSSI outside
  2550. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2551. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2552. */
  2553. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2554. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2555. * the link with the best RSSI outside
  2556. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2557. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2558. */
  2559. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2560. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2561. * the link with the best RSSI outside
  2562. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2563. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2564. */
  2565. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2566. /* Unsigned 32 bit value. For an MLO connection, indicates the value of
  2567. * the link with the best RSSI outside
  2568. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2569. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2570. */
  2571. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2572. /* Unsigned int 32 value.
  2573. * Pending MSDUs corresponding to respective AC.
  2574. */
  2575. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83,
  2576. /* u32 value representing total time in milliseconds for which the radio
  2577. * is transmitting on this channel. This attribute will be nested
  2578. * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2579. */
  2580. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84,
  2581. /* u32 value representing total time in milliseconds for which the radio
  2582. * is receiving all 802.11 frames intended for this device on this
  2583. * channel. This attribute will be nested within
  2584. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO.
  2585. */
  2586. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85,
  2587. /* u8 value representing the channel load percentage. Possible values
  2588. * are 0-100.
  2589. */
  2590. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86,
  2591. /* u8 value representing the time slicing duty cycle percentage.
  2592. * Possible values are 0-100. For an MLO connection, indicates the value
  2593. * of the link with the best RSSI outside
  2594. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2595. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2596. */
  2597. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87,
  2598. /* Unsigned 32 bit value. The number of Beacon frames which are received
  2599. * from the associated AP and indicate buffered unicast frame(s) for us
  2600. * in the TIM element. For an MLO connection, indicates the value of the
  2601. * link with the best RSSI outside
  2602. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2603. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2604. */
  2605. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88,
  2606. /* Unsigned 32 bit value. The total number of Beacon frames received
  2607. * from the associated AP that have wrongly indicated buffered unicast
  2608. * traffic in the TIM element for us.
  2609. * Below scenarios will be considered as wrong TIM element beacon:
  2610. * 1) The related TIM element is set in the beacon for STA but STA
  2611. * doesn’t receive any unicast data after this beacon.
  2612. * 2) The related TIM element is still set in the beacon for STA
  2613. * after STA has indicated power save exit by QoS Null Data frame.
  2614. * For an MLO connection, indicates the value of the link with the best
  2615. * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link
  2616. * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2617. */
  2618. QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89,
  2619. /* Signed 32 bit value. It represents the noise floor calibration value.
  2620. * Possible values are -120~-50 dBm. For an MLO connection, indicates
  2621. * the value of the link with the best RSSI outside
  2622. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value
  2623. * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK.
  2624. */
  2625. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90,
  2626. /* Attribute used for padding for 64-bit alignment */
  2627. QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91,
  2628. /* Unsigned u8 value, link ID of an MLO link. Used inside nested
  2629. * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the
  2630. * link ID of the MLO link for which the statistics are embedded in the
  2631. * nested attribute. Used inside nested attribute
  2632. * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected
  2633. * link ID of the peer.
  2634. */
  2635. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92,
  2636. /* A nested array of attributes for each MLO link, each containing
  2637. * per-link statistics of a multi link connection. The attributes used
  2638. * inside this nested attribute are defined in enum
  2639. * qca_wlan_vendor_attr_ll_stats_results.
  2640. *
  2641. * For non-MLO connection, this attribute is not present and the
  2642. * statistics will be sent outside this attribute (without nesting).
  2643. *
  2644. * For MLO connection, this attribute is present and also cumulative
  2645. * statistics of all the links will be sent outside of this attribute
  2646. * to be compatible with legacy user space.
  2647. */
  2648. QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93,
  2649. /* keep last */
  2650. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2651. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2652. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2653. };
  2654. enum qca_wlan_vendor_attr_ll_stats_type {
  2655. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2656. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2657. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2658. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2659. /* keep last */
  2660. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2661. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2662. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2663. };
  2664. #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
  2665. /**
  2666. * enum qca_wlan_vendor_attr_get_supported_features - get supported feature
  2667. *
  2668. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value
  2669. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value
  2670. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last
  2671. * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value
  2672. */
  2673. enum qca_wlan_vendor_attr_get_supported_features {
  2674. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0,
  2675. QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1,
  2676. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST,
  2677. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX =
  2678. QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1,
  2679. };
  2680. /**
  2681. * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui
  2682. *
  2683. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value
  2684. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit
  2685. * value
  2686. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last
  2687. * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value
  2688. */
  2689. enum qca_wlan_vendor_attr_set_scanning_mac_oui {
  2690. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0,
  2691. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1,
  2692. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST,
  2693. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX =
  2694. QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1,
  2695. };
  2696. /**
  2697. * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the
  2698. * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take.
  2699. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority
  2700. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority
  2701. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority
  2702. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority
  2703. * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority
  2704. */
  2705. enum qca_wlan_vendor_scan_priority {
  2706. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0,
  2707. QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1,
  2708. QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2,
  2709. QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3,
  2710. QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4,
  2711. };
  2712. /**
  2713. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  2714. *
  2715. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  2716. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  2717. * with frequencies to be scanned (in MHz)
  2718. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  2719. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  2720. * rates to be included
  2721. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  2722. * at non CCK rate in 2GHz band
  2723. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  2724. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  2725. * driver for the specific scan request
  2726. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  2727. * request decoded as in enum scan_status
  2728. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  2729. * scan flag is set
  2730. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  2731. * randomisation
  2732. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  2733. * specific BSSID to scan for.
  2734. * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in
  2735. * microseconds. This is a common value which applies across all
  2736. * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES.
  2737. * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to
  2738. * other scan requests. It is a u32 attribute and takes values from enum
  2739. * qca_wlan_vendor_scan_priority. This is an optional attribute.
  2740. * If this attribute is not configured, the driver shall use
  2741. * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan.
  2742. */
  2743. enum qca_wlan_vendor_attr_scan {
  2744. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  2745. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  2746. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  2747. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  2748. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  2749. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  2750. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  2751. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  2752. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  2753. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  2754. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  2755. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  2756. QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12,
  2757. QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13,
  2758. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  2759. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  2760. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  2761. };
  2762. /**
  2763. * enum scan_status - Specifies the valid values the vendor scan attribute
  2764. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  2765. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  2766. * new scan results
  2767. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  2768. */
  2769. enum scan_status {
  2770. VENDOR_SCAN_STATUS_NEW_RESULTS,
  2771. VENDOR_SCAN_STATUS_ABORTED,
  2772. VENDOR_SCAN_STATUS_MAX,
  2773. };
  2774. /**
  2775. * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix
  2776. *
  2777. * NL attributes for data used by
  2778. * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command.
  2779. *
  2780. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value
  2781. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX:
  2782. * Unsigned 32-bit value
  2783. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE:
  2784. * Unsigned 32-bit value
  2785. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An
  2786. * array of SET_SIZE x Unsigned 32bit values representing concurrency
  2787. * combinations
  2788. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last
  2789. * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value
  2790. */
  2791. enum qca_wlan_vendor_attr_get_concurrency_matrix {
  2792. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0,
  2793. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX
  2794. = 1,
  2795. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2,
  2796. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3,
  2797. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST,
  2798. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX =
  2799. QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1,
  2800. };
  2801. /**
  2802. * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag
  2803. *
  2804. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value
  2805. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value
  2806. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last
  2807. * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value
  2808. */
  2809. enum qca_wlan_vendor_attr_set_no_dfs_flag {
  2810. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0,
  2811. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1,
  2812. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST,
  2813. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX =
  2814. QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1,
  2815. };
  2816. /**
  2817. * enum qca_vendor_attr_wisa_cmd
  2818. * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr
  2819. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32)
  2820. * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last
  2821. * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value
  2822. * WISA setup vendor commands
  2823. */
  2824. enum qca_vendor_attr_wisa_cmd {
  2825. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  2826. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  2827. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  2828. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  2829. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  2830. };
  2831. enum qca_roaming_policy {
  2832. QCA_ROAMING_NOT_ALLOWED,
  2833. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  2834. };
  2835. /**
  2836. * enum qca_roam_reason - Represents the reason codes for roaming. Used by
  2837. * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON.
  2838. *
  2839. * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below
  2840. * reasons.
  2841. *
  2842. * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached
  2843. * the configured threshold.
  2844. *
  2845. * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured
  2846. * beacon misses from the then connected AP.
  2847. *
  2848. * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported
  2849. * by the connected AP.
  2850. *
  2851. * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a
  2852. * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is
  2853. * not poor.
  2854. *
  2855. * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel
  2856. * or environment being very noisy / congested.
  2857. *
  2858. * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request
  2859. * from the user (user space).
  2860. *
  2861. * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from
  2862. * connected AP.
  2863. *
  2864. * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization
  2865. * breaching out the configured threshold.
  2866. *
  2867. * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS
  2868. * transition request.
  2869. *
  2870. * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended,
  2871. * there is no data activity with the AP and the current rssi falls below a
  2872. * certain threshold.
  2873. *
  2874. * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to
  2875. * deauthentication or disassociation frames received from the connected AP.
  2876. *
  2877. * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic
  2878. * scan that happens when there is no candidate AP found during the poor
  2879. * RSSI scan trigger.
  2880. *
  2881. * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan
  2882. * results obtained from an external scan (not aimed at roaming).
  2883. *
  2884. * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth
  2885. * connection is established when the station is connected in 2.4 Ghz band.
  2886. *
  2887. * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame
  2888. * failures to the connected AP.
  2889. */
  2890. enum qca_roam_reason {
  2891. QCA_ROAM_REASON_UNKNOWN,
  2892. QCA_ROAM_REASON_PER,
  2893. QCA_ROAM_REASON_BEACON_MISS,
  2894. QCA_ROAM_REASON_POOR_RSSI,
  2895. QCA_ROAM_REASON_BETTER_RSSI,
  2896. QCA_ROAM_REASON_CONGESTION,
  2897. QCA_ROAM_REASON_USER_TRIGGER,
  2898. QCA_ROAM_REASON_BTM,
  2899. QCA_ROAM_REASON_BSS_LOAD,
  2900. QCA_ROAM_REASON_WTC,
  2901. QCA_ROAM_REASON_IDLE,
  2902. QCA_ROAM_REASON_DISCONNECTION,
  2903. QCA_ROAM_REASON_PERIODIC_TIMER,
  2904. QCA_ROAM_REASON_BACKGROUND_SCAN,
  2905. QCA_ROAM_REASON_BT_ACTIVITY,
  2906. QCA_ROAM_REASON_STA_KICKOUT,
  2907. };
  2908. /**
  2909. * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming
  2910. *
  2911. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE
  2912. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE
  2913. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status
  2914. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter
  2915. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK
  2916. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK
  2917. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status
  2918. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS:
  2919. * Indicates the status of re-association requested by user space for
  2920. * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID.
  2921. * Type u16.
  2922. * Represents the status code from AP. Use
  2923. * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the
  2924. * real status code for failures.
  2925. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION:
  2926. * This attribute indicates that the old association was maintained when
  2927. * a re-association is requested by user space and that re-association
  2928. * attempt fails (i.e., cannot connect to the requested BSS, but can
  2929. * remain associated with the BSS with which the association was in
  2930. * place when being requested to roam). Used along with
  2931. * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current
  2932. * re-association status. Type flag.
  2933. * This attribute is applicable only for re-association failure cases.
  2934. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK
  2935. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID
  2936. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next
  2937. * seq number
  2938. * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value
  2939. * representing the reasons for the roaming. Defined by enum
  2940. * qca_roam_reason.
  2941. */
  2942. enum qca_wlan_vendor_attr_roam_auth {
  2943. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  2944. /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address
  2945. * of the roamed AP for MLO roaming.
  2946. */
  2947. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  2948. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  2949. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  2950. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  2951. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  2952. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  2953. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  2954. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  2955. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS,
  2956. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION,
  2957. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK,
  2958. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID,
  2959. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM,
  2960. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON,
  2961. /* A nested attribute containing per-link information of all the links
  2962. * of MLO connection done while roaming. The attributes used inside this
  2963. * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links.
  2964. */
  2965. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15,
  2966. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  2967. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  2968. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  2969. };
  2970. /**
  2971. * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside
  2972. * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS.
  2973. *
  2974. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link.
  2975. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link.
  2976. * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link.
  2977. */
  2978. enum qca_wlan_vendor_attr_mlo_links {
  2979. QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0,
  2980. QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1,
  2981. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2,
  2982. QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3,
  2983. /* Keep last */
  2984. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST,
  2985. QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX =
  2986. QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1,
  2987. };
  2988. /**
  2989. * enum qca_wlan_vendor_attr_wifi_config - wifi config
  2990. *
  2991. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value
  2992. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM
  2993. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor
  2994. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time
  2995. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last
  2996. * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value
  2997. */
  2998. enum qca_wlan_vendor_attr_wifi_config {
  2999. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0,
  3000. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1,
  3001. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2,
  3002. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3,
  3003. /* keep last */
  3004. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST,
  3005. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX =
  3006. QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1,
  3007. };
  3008. /**
  3009. * enum qca_wlan_epno_type - the type of request to the EPNO command
  3010. * @QCA_WLAN_EPNO: epno type request
  3011. * @QCA_WLAN_PNO: pno type request
  3012. */
  3013. enum qca_wlan_epno_type {
  3014. QCA_WLAN_EPNO,
  3015. QCA_WLAN_PNO
  3016. };
  3017. /**
  3018. * enum qca_wlan_vendor_attr_pno_config_params - pno config params
  3019. *
  3020. * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value
  3021. *
  3022. * NL attributes for data used by
  3023. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  3024. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM:
  3025. * Unsigned 32-bit value; pno passpoint number of networks
  3026. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY:
  3027. * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  3028. * attributes. Array size =
  3029. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  3030. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID:
  3031. * Unsigned 32-bit value; network id
  3032. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM:
  3033. * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded
  3034. * realm, 0 if unspecified.
  3035. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID:
  3036. * An array of 16 x Unsigned 32-bit value; roaming consortium ids
  3037. * to match, 0 if unspecified.
  3038. * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN:
  3039. * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if
  3040. * unspecified.
  3041. *
  3042. * NL attributes for data used by
  3043. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  3044. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS:
  3045. * Unsigned 32-bit value; set pno number of networks
  3046. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST:
  3047. * Array of nested
  3048. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  3049. * attributes. Array size =
  3050. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS
  3051. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID:
  3052. * An array of 33 x Unsigned 8-bit value; NULL terminated SSID
  3053. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD:
  3054. * Signed 8-bit value; threshold for considering this SSID as found,
  3055. * required granularity for this threshold is 4dBm to 8dBm
  3056. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS:
  3057. * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX
  3058. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT:
  3059. * Unsigned 8-bit value; auth bit field for matching WPA IE
  3060. * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE
  3061. * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type
  3062. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST
  3063. * Nested attribute to send the channel list
  3064. *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL
  3065. * Unsigned 32-bit value; indicates the Interval between PNO scan
  3066. * cycles in msec
  3067. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI
  3068. * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered
  3069. *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI
  3070. * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered
  3071. * This attribute is obsolete now.
  3072. *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX
  3073. * Signed 32-bit value; the maximum score that a network
  3074. * can have before bonuses
  3075. *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS
  3076. * Signed 32-bit value; only report when there is a network's
  3077. * score this much higher han the current connection
  3078. *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS
  3079. * Signed 32-bit value; score bonus for all networks with
  3080. * the same network flag
  3081. *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS
  3082. * Signed 32-bit value; score bonus for networks that are not open
  3083. *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS
  3084. * Signed 32-bit value; 5GHz RSSI score bonus applied to all
  3085. * 5GHz networks
  3086. *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID
  3087. * Unsigned 32-bit value, representing the PNO Request ID
  3088. * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last
  3089. * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max
  3090. */
  3091. enum qca_wlan_vendor_attr_pno_config_params {
  3092. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  3093. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  3094. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  3095. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  3096. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  3097. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  3098. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  3099. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  3100. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  3101. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  3102. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10,
  3103. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  3104. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  3105. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  3106. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  3107. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  3108. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  3109. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  3110. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  3111. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  3112. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  3113. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  3114. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  3115. QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23,
  3116. /* keep last */
  3117. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  3118. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  3119. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  3120. };
  3121. /**
  3122. * enum qca_scan_freq_list_type: Frequency list types
  3123. *
  3124. * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list
  3125. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3126. * a preferred frequency list for roaming.
  3127. *
  3128. * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list
  3129. * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as
  3130. * a specific frequency list for roaming.
  3131. */
  3132. enum qca_scan_freq_list_type {
  3133. QCA_PREFERRED_SCAN_FREQ_LIST = 1,
  3134. QCA_SPECIFIC_SCAN_FREQ_LIST = 2,
  3135. };
  3136. /**
  3137. * enum qca_roam_scan_scheme: scan scheme
  3138. *
  3139. * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan.
  3140. * Indicates the driver to not scan on a Roam Trigger scenario, but
  3141. * Disconnect.e.g., On a BTM request from the AP driver/firmware shall
  3142. * disconnect from the current connected AP by notifying a failure
  3143. * code in the BTM response.
  3144. *
  3145. * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to
  3146. * trigger partial frequency scans. These frequencies are the ones learnt
  3147. * or maintained by the driver based on the probability of finding the
  3148. * BSSID's in the ESS for which the roaming is triggered.
  3149. *
  3150. * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to
  3151. * trigger the scan on all the valid frequencies to find the better
  3152. * candidates to roam.
  3153. */
  3154. enum qca_roam_scan_scheme {
  3155. QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0,
  3156. QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1,
  3157. QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2,
  3158. };
  3159. /**
  3160. * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme
  3161. *
  3162. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values.
  3163. * List of frequencies in MHz to be considered for a roam scan.
  3164. *
  3165. * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value.
  3166. * Type of frequency list scheme being configured/gotten as defined by the
  3167. * enum qca_scan_freq_list_type.
  3168. */
  3169. enum qca_vendor_attr_scan_freq_list_scheme {
  3170. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1,
  3171. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2,
  3172. /* keep last */
  3173. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST,
  3174. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX =
  3175. QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1,
  3176. };
  3177. /*
  3178. * enum qca_vendor_roam_triggers: Bitmap of roaming triggers
  3179. *
  3180. * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on
  3181. * a bad packet error rates (PER).
  3182. * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered
  3183. * based on beacon misses from the connected AP.
  3184. * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered
  3185. * due to poor RSSI of the connected AP.
  3186. * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered
  3187. * upon finding a BSSID with a better RSSI than the connected BSSID.
  3188. * Here the RSSI of the current BSSID need not be poor.
  3189. * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered
  3190. * by triggering a periodic scan to find a better AP to roam.
  3191. * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered
  3192. * when the connected channel environment is too noisy/congested.
  3193. * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered
  3194. * when BTM Request frame is received from the connected AP.
  3195. * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered
  3196. * when the channel utilization is goes above the configured threshold.
  3197. * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered
  3198. * based on the request from the user (space).
  3199. * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when
  3200. * device receives Deauthentication/Disassociation frame from connected
  3201. * AP.
  3202. * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the
  3203. * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI
  3204. * is determined to be a poor one.
  3205. * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered
  3206. * based on continuous TX Data Frame failures to the connected AP.
  3207. * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered
  3208. * based on the scan results obtained from an external scan (not
  3209. * triggered to aim roaming)
  3210. *
  3211. * Set the corresponding roam trigger reason bit to consider it for roam
  3212. * trigger.
  3213. * Userspace can set multiple bits and send to the driver. The driver shall
  3214. * consider all of them to trigger/initiate a roam scan.
  3215. */
  3216. enum qca_vendor_roam_triggers {
  3217. QCA_ROAM_TRIGGER_REASON_PER = 1 << 0,
  3218. QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1,
  3219. QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2,
  3220. QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3,
  3221. QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4,
  3222. QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5,
  3223. QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6,
  3224. QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7,
  3225. QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8,
  3226. QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9,
  3227. QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10,
  3228. QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11,
  3229. QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12,
  3230. };
  3231. /*
  3232. * enum qca_vendor_roam_fail_reasons: Defines the various roam
  3233. * fail reasons. This enum value is used in
  3234. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute.
  3235. *
  3236. * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not
  3237. * able to trigger the scan.
  3238. * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan.
  3239. * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam
  3240. * scan.
  3241. * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host.
  3242. * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame.
  3243. * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error
  3244. * status code.
  3245. * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received.
  3246. * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request
  3247. * frame.
  3248. * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame
  3249. * with error status code.
  3250. * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not
  3251. * received.
  3252. * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan.
  3253. * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication
  3254. * frame.
  3255. * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped
  3256. * internally before transmission.
  3257. * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation
  3258. * Request frame.
  3259. * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is
  3260. * dropped internally.
  3261. * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and
  3262. * times out.
  3263. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame.
  3264. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped
  3265. * internally.
  3266. * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key
  3267. * M2 frame.
  3268. * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received.
  3269. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame.
  3270. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped
  3271. * internally.
  3272. * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4
  3273. * frame.
  3274. * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not
  3275. * started for final beacon miss case.
  3276. * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame
  3277. * received from the AP during roaming handoff.
  3278. * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps
  3279. * or host is suspended and gives the indication of the last roamed AP only
  3280. * when the Apps is resumed. If the Apps is resumed while the roaming is in
  3281. * progress, this ongoing roaming is aborted and the last roamed AP is
  3282. * indicated to host.
  3283. * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID.
  3284. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times
  3285. * out.
  3286. * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails.
  3287. * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the
  3288. * current network conditions are fine.
  3289. */
  3290. enum qca_vendor_roam_fail_reasons {
  3291. QCA_ROAM_FAIL_REASON_NONE = 0,
  3292. QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1,
  3293. QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2,
  3294. QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3,
  3295. QCA_ROAM_FAIL_REASON_HOST = 4,
  3296. QCA_ROAM_FAIL_REASON_AUTH_SEND = 5,
  3297. QCA_ROAM_FAIL_REASON_AUTH_RECV = 6,
  3298. QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7,
  3299. QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8,
  3300. QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9,
  3301. QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10,
  3302. QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11,
  3303. QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12,
  3304. QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13,
  3305. QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14,
  3306. QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15,
  3307. QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16,
  3308. QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17,
  3309. QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18,
  3310. QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19,
  3311. QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20,
  3312. QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21,
  3313. QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22,
  3314. QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23,
  3315. QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24,
  3316. QCA_ROAM_FAIL_REASON_DISCONNECT = 25,
  3317. QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26,
  3318. QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27,
  3319. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28,
  3320. QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29,
  3321. QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30,
  3322. };
  3323. /*
  3324. * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam
  3325. * invoke fail reasons. This enum value is used in
  3326. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute.
  3327. *
  3328. * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed
  3329. * in roam invoke command.
  3330. * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not
  3331. * enabled.
  3332. * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID
  3333. * length is invalid.
  3334. * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already
  3335. * in progress.
  3336. * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response
  3337. * of the AP in the roam invoke command to firmware. This reason is sent by the
  3338. * firmware when the given AP is configured to be ignored or SSID/security
  3339. * does not match.
  3340. * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of
  3341. * firmware internal reasons.
  3342. * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled.
  3343. * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke.
  3344. * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail.
  3345. * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid.
  3346. * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to.
  3347. * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed.
  3348. */
  3349. enum qca_vendor_roam_invoke_fail_reasons {
  3350. QCA_ROAM_INVOKE_STATUS_NONE = 0,
  3351. QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1,
  3352. QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2,
  3353. QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3,
  3354. QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4,
  3355. QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5,
  3356. QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6,
  3357. QCA_ROAM_INVOKE_STATUS_DISALLOW = 7,
  3358. QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8,
  3359. QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9,
  3360. QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10,
  3361. QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11,
  3362. QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12,
  3363. };
  3364. /**
  3365. * enum qca_vendor_attr_roam_candidate_selection_criteria:
  3366. *
  3367. * Each attribute carries a weightage in percentage (%).
  3368. *
  3369. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value.
  3370. * Represents the weightage to be given for the RSSI selection
  3371. * criteria among other parameters.
  3372. *
  3373. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value.
  3374. * Represents the weightage to be given for the rate selection
  3375. * criteria among other parameters.
  3376. *
  3377. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value.
  3378. * Represents the weightage to be given for the band width selection
  3379. * criteria among other parameters.
  3380. *
  3381. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value.
  3382. * Represents the weightage to be given for the band selection
  3383. * criteria among other parameters.
  3384. *
  3385. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value.
  3386. * Represents the weightage to be given for the NSS selection
  3387. * criteria among other parameters.
  3388. *
  3389. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value.
  3390. * Represents the weightage to be given for the channel congestion
  3391. * selection criteria among other parameters.
  3392. *
  3393. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value.
  3394. * Represents the weightage to be given for the beamforming selection
  3395. * criteria among other parameters.
  3396. *
  3397. * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value.
  3398. * Represents the weightage to be given for the OCE selection
  3399. * criteria among other parameters.
  3400. */
  3401. enum qca_vendor_attr_roam_candidate_selection_criteria {
  3402. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1,
  3403. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2,
  3404. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3,
  3405. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4,
  3406. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5,
  3407. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6,
  3408. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7,
  3409. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8,
  3410. /* keep last */
  3411. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST,
  3412. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX =
  3413. QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1,
  3414. };
  3415. /**
  3416. * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration
  3417. * The following attributes are used to set/get/clear the respective
  3418. * configurations to/from the driver.
  3419. * For the get, the attribute for the configuration to be queried shall
  3420. * carry any of its acceptable values to the driver. In return, the driver
  3421. * shall send the configured values within the same attribute to the user
  3422. * space.
  3423. *
  3424. * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value.
  3425. * Signifies to enable/disable roam control in driver.
  3426. * 1-enable, 0-disable
  3427. * Enable: Mandates the driver to do the further roams using the
  3428. * configuration parameters set through
  3429. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET.
  3430. * Disable: Disables the driver/firmware roaming triggered through
  3431. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is
  3432. * expected to continue with the default configurations.
  3433. *
  3434. * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value.
  3435. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET.
  3436. * Roam control status is obtained through this attribute.
  3437. *
  3438. * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the
  3439. * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
  3440. * is to be cleared in the driver.
  3441. * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR
  3442. * and shall be ignored if used with other sub commands.
  3443. * If this attribute is specified along with subcmd
  3444. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore
  3445. * all other attributes, if there are any.
  3446. * If this attribute is not specified when the subcmd
  3447. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall
  3448. * clear the data corresponding to the attributes specified.
  3449. *
  3450. * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the
  3451. * list of frequencies and its type, represented by
  3452. * enum qca_vendor_attr_scan_freq_list_scheme.
  3453. * Frequency list and its type are mandatory for this attribute to set
  3454. * the frequencies.
  3455. * Frequency type is mandatory for this attribute to get the frequencies
  3456. * and the frequency list is obtained through
  3457. * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST.
  3458. * Frequency list type is mandatory for this attribute to clear the
  3459. * frequencies.
  3460. *
  3461. * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value.
  3462. * Carries the value of scan period in seconds to set.
  3463. * The value of scan period is obtained with the same attribute for get.
  3464. * Clears the scan period in the driver when specified with clear command.
  3465. * Scan period is the idle time in seconds between each subsequent
  3466. * channel scans.
  3467. *
  3468. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value.
  3469. * Carries the value of full scan period in seconds to set.
  3470. * The value of full scan period is obtained with the same attribute for
  3471. * get.
  3472. * Clears the full scan period in the driver when specified with clear
  3473. * command. Full scan period is the idle period in seconds between two
  3474. * successive full channel roam scans.
  3475. *
  3476. * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value.
  3477. * Carries a bitmap of the roam triggers specified in
  3478. * enum qca_vendor_roam_triggers.
  3479. * The driver shall enable roaming by enabling corresponding roam triggers
  3480. * based on the trigger bits sent with this attribute.
  3481. * If this attribute is not configured, the driver shall proceed with
  3482. * default behavior.
  3483. * The bitmap configured is obtained with the same attribute for get.
  3484. * Clears the bitmap configured in driver when specified with clear
  3485. * command.
  3486. *
  3487. * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the
  3488. * weightage in percentage (%) to be given for each selection criteria.
  3489. * Different roam candidate selection criteria are represented by
  3490. * enum qca_vendor_attr_roam_candidate_selection_criteria.
  3491. * The driver shall select the roam candidate based on corresponding
  3492. * candidate selection scores sent.
  3493. *
  3494. * An empty nested attribute is used to indicate that no specific
  3495. * preference score/criteria is configured (i.e., to disable this mechanism
  3496. * in the set case and to show that the mechanism is disabled in the get
  3497. * case).
  3498. *
  3499. * Userspace can send multiple attributes out of this enum to the driver.
  3500. * Since this attribute represents the weight/percentage of preference for
  3501. * the respective selection criteria, it is preferred to configure 100%
  3502. * total weightage. The value in each attribute or cumulative weight of the
  3503. * values in all the nested attributes should not exceed 100%. The driver
  3504. * shall reject such configuration.
  3505. *
  3506. * If the weights configured through this attribute are less than 100%,
  3507. * the driver shall honor the weights (x%) passed for the corresponding
  3508. * selection criteria and choose/distribute rest of the weight (100-x)%
  3509. * for the other selection criteria, based on its internal logic.
  3510. *
  3511. * The selection criteria configured is obtained with the same
  3512. * attribute for get.
  3513. *
  3514. * Clears the selection criteria configured in the driver when specified
  3515. * with clear command.
  3516. *
  3517. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value.
  3518. * Represents value of scan frequency scheme from
  3519. * enum qca_roam_scan_scheme.
  3520. *
  3521. * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3522. * signifying the RSSI threshold of the current connected AP, indicating
  3523. * the driver to trigger roam only when the current connected AP's RSSI
  3524. * is lesser than this threshold.
  3525. *
  3526. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm,
  3527. * signifying the RSSI threshold of the candidate AP, indicating
  3528. * the driver to trigger roam only to the candidate AP with RSSI
  3529. * better than this threshold. If RSSI thresholds for candidate APs found
  3530. * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using
  3531. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ,
  3532. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or
  3533. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values
  3534. * will take precedence over the value configured using
  3535. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute.
  3536. *
  3537. * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the
  3538. * user triggered reason code to be sent to the AP in response to AP's
  3539. * request to trigger the roam if the roaming cannot be triggered.
  3540. * Applies to all the scenarios of AP assisted roaming (e.g., BTM).
  3541. *
  3542. * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value.
  3543. * Carries a bitmap of the roam triggers specified in
  3544. * enum qca_vendor_roam_triggers.
  3545. * Represents the roam triggers for which the specific scan scheme from
  3546. * enum qca_roam_scan_scheme has to be applied.
  3547. * It's an optional attribute. If this attribute is not configured, but
  3548. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme
  3549. * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for
  3550. * all the roams.
  3551. * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and
  3552. * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the
  3553. * driver shall proceed with the default behavior.
  3554. *
  3555. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value
  3556. * in dBm, signifying the RSSI threshold of the candidate AP found in
  3557. * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate
  3558. * AP found in 2.4GHz band only if it's RSSI value is better than this
  3559. * threshold. Optional attribute. If this attribute is not included, then
  3560. * threshold value specified by the
  3561. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3562. *
  3563. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in
  3564. * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz
  3565. * band. The driver/firmware shall trigger roaming to the candidate AP
  3566. * found in 5GHz band only if it's RSSI value is better than this
  3567. * threshold. Optional attribute. If this attribute is not included, then
  3568. * threshold value specified by the
  3569. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3570. *
  3571. * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in
  3572. * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz
  3573. * band. The driver/firmware shall trigger roaming to the candidate AP
  3574. * found in 6GHz band only if it's RSSI value is better than this
  3575. * threshold. Optional attribute. If this attribute is not included, then
  3576. * threshold value specified by the
  3577. * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used.
  3578. *
  3579. * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value.
  3580. * Carries bitmask value of bits from &enum qca_set_band and represents
  3581. * all the bands in which roaming is allowed. The configuration is valid
  3582. * until next disconnection. If this attribute is not present, the
  3583. * existing configuration shall be used. By default, roaming is allowed
  3584. * on all bands supported by local device. When the value is set to
  3585. * %QCA_SETBAND_AUTO, all supported bands shall be enabled.
  3586. *
  3587. * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps.
  3588. * Optional parameter. RX link speed threshold to disable roaming.
  3589. * If the current RX link speed is above the threshold, roaming is not
  3590. * needed. If this attribute is not configured, or if it is set to 0, the
  3591. * driver will not consider the RX link speed in the roaming decision.
  3592. *
  3593. * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds.
  3594. * Optional parameter. This configuration delays hand-off (in msec) by the
  3595. * specified duration to receive pending rx frames from current BSS.
  3596. *
  3597. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit
  3598. * value.
  3599. * During the roam scan, if there are no desired APs found in the partial
  3600. * frequency list, an immediate full scan on all the supported frequencies
  3601. * is initiated as a fallback. This flag controls the frequency list
  3602. * creation for the full scan on the following lines.
  3603. * 1 - Full scan to exclude the frequencies that were already scanned by
  3604. * the previous partial scan.
  3605. * 0 - Full scan to include all the supported frequencies irrespective of
  3606. * the ones part of the earlier partial scan.
  3607. * If this flag is not specified, a full scan shall include all the
  3608. * supported frequencies irrespective of the ones part of an earlier
  3609. * partial scan.
  3610. *
  3611. * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit
  3612. * value.
  3613. * During the roam scan, if there are no desired APs found in the partial
  3614. * frequency list, an immediate full scan on all the supported frequencies
  3615. * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz
  3616. * frequencies, including all PSC frequencies by default. This attribute
  3617. * controls the inclusion of the 6 GHz PSC frequencies for the full scan
  3618. * as following.
  3619. * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the
  3620. * prior discovery of any 6 GHz frequency support in the environment.
  3621. * This discovery can happen through a prior RNR, 11k neighbor
  3622. * request, 11v BTM request, host scan, etc.
  3623. * 0 - Default behavior. Full scan to include all the supported 6 GHz
  3624. * PSC frequencies regardless of whether 6 GHz BSSs have been
  3625. * discovered.
  3626. * The default behavior if this flag is not specified is to include all
  3627. * the supported 6 GHz PSC frequencies in the roam full scan.
  3628. */
  3629. enum qca_vendor_attr_roam_control {
  3630. QCA_ATTR_ROAM_CONTROL_ENABLE = 1,
  3631. QCA_ATTR_ROAM_CONTROL_STATUS = 2,
  3632. QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3,
  3633. QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4,
  3634. QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5,
  3635. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6,
  3636. QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7,
  3637. QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8,
  3638. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9,
  3639. QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10,
  3640. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11,
  3641. QCA_ATTR_ROAM_CONTROL_USER_REASON = 12,
  3642. QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13,
  3643. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14,
  3644. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15,
  3645. QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16,
  3646. QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17,
  3647. QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24,
  3648. QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25,
  3649. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26,
  3650. QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27,
  3651. /* keep last */
  3652. QCA_ATTR_ROAM_CONTROL_AFTER_LAST,
  3653. QCA_ATTR_ROAM_CONTROL_MAX =
  3654. QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1,
  3655. };
  3656. /**
  3657. * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by
  3658. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  3659. *
  3660. * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value.
  3661. * Represents the different roam sub commands referred by
  3662. * enum qca_wlan_vendor_roaming_subcmd.
  3663. *
  3664. * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value.
  3665. * Represents the Request ID for the specific set of commands.
  3666. * This also helps to map specific set of commands to the respective
  3667. * ID / client. e.g., helps to identify the user entity configuring the
  3668. * Blacklist BSSID and accordingly clear the respective ones with the
  3669. * matching ID.
  3670. *
  3671. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned
  3672. * 32-bit value.Represents the number of whitelist SSIDs configured.
  3673. *
  3674. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute
  3675. * to carry the list of Whitelist SSIDs.
  3676. *
  3677. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute,
  3678. * 0..32 octets). Represents the white list SSID. Whitelist SSIDs
  3679. * represent the list of SSIDs to which the firmware/driver can consider
  3680. * to roam to.
  3681. *
  3682. * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when
  3683. * comparing with a 2.4GHz BSSID. They are not applied when comparing two
  3684. * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD -
  3685. * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS.
  3686. *
  3687. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit
  3688. * value, RSSI threshold above which 5GHz RSSI is favored.
  3689. *
  3690. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit
  3691. * value, RSSI threshold below which 5GHz RSSI is penalized.
  3692. *
  3693. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit
  3694. * value, factor by which 5GHz RSSI is boosted.
  3695. * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor
  3696. *
  3697. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit
  3698. * value, factor by which 5GHz RSSI is penalized.
  3699. * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor
  3700. *
  3701. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit
  3702. * value, maximum boost that can be applied to a 5GHz RSSI.
  3703. *
  3704. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit
  3705. * value, boost applied to current BSSID to ensure the currently
  3706. * associated BSSID is favored so as to prevent ping-pong situations.
  3707. *
  3708. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit
  3709. * value, RSSI below which "Alert" roam is enabled.
  3710. * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID
  3711. * because the RSSI is low, or because many successive beacons have been
  3712. * lost or other bad link conditions.
  3713. *
  3714. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit
  3715. * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where
  3716. * firmware is hunting for a better BSSID or white listed SSID even though
  3717. * the RSSI of the link is good. The parameters enabling the roaming are
  3718. * configured through the PARAM_A_BAND_XX attrbutes.
  3719. *
  3720. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute,
  3721. * represents the BSSIDs preferred over others while evaluating them
  3722. * for the roaming.
  3723. *
  3724. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned
  3725. * 32-bit value. Represents the number of preferred BSSIDs set.
  3726. *
  3727. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC
  3728. * address representing the BSSID to be preferred.
  3729. *
  3730. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed
  3731. * 32-bit value, representing the modifier to be applied to the RSSI of
  3732. * the BSSID for the purpose of comparing it with other roam candidate.
  3733. *
  3734. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute,
  3735. * represents the BSSIDs to get blacklisted for roaming.
  3736. *
  3737. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned
  3738. * 32-bit value, represents the number of blacklisted BSSIDs.
  3739. *
  3740. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC
  3741. * address representing the Blacklisted BSSID.
  3742. *
  3743. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute,
  3744. * indicates this BSSID blacklist as a hint to the driver. The driver can
  3745. * select this BSSID in the worst case (when no other BSSIDs are better).
  3746. *
  3747. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to
  3748. * set/get/clear the roam control config as
  3749. * defined @enum qca_vendor_attr_roam_control.
  3750. *
  3751. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last
  3752. * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max
  3753. */
  3754. enum qca_wlan_vendor_attr_roaming_config_params {
  3755. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  3756. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  3757. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  3758. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  3759. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  3760. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  3761. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  3762. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  3763. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  3764. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  3765. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  3766. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  3767. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  3768. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  3769. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  3770. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  3771. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  3772. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  3773. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  3774. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  3775. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  3776. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21,
  3777. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22,
  3778. /* keep last */
  3779. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  3780. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  3781. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  3782. };
  3783. /**
  3784. * enum qca_wlan_vendor_roaming_subcmd: Referred by
  3785. * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD.
  3786. *
  3787. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to
  3788. * configure the white list SSIDs. These are configured through
  3789. * the following attributes.
  3790. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS,
  3791. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST,
  3792. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID
  3793. *
  3794. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to
  3795. * configure the Roam params. These parameters are evaluated on the extscan
  3796. * results. Refers the attributes PARAM_A_BAND_XX above to configure the
  3797. * params.
  3798. *
  3799. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses
  3800. * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE
  3801. * to enable/disable Lazy roam.
  3802. *
  3803. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID
  3804. * preference. Contains the attribute
  3805. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID
  3806. * preference.
  3807. *
  3808. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params
  3809. *
  3810. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist
  3811. * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to
  3812. * set the same.
  3813. *
  3814. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the
  3815. * roam control config to the driver with the attribute
  3816. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3817. *
  3818. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the
  3819. * roam control config from driver with the attribute
  3820. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3821. * For the get, the attribute for the configuration to be queried shall
  3822. * carry any of its acceptable value to the driver. In return, the driver
  3823. * shall send the configured values within the same attribute to the user
  3824. * space.
  3825. *
  3826. * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the
  3827. * roam control config in the driver with the attribute
  3828. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL.
  3829. * The driver shall continue with its default roaming behavior when data
  3830. * corresponding to an attribute is cleared.
  3831. */
  3832. enum qca_wlan_vendor_roaming_subcmd {
  3833. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1,
  3834. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2,
  3835. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3,
  3836. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4,
  3837. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5,
  3838. QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6,
  3839. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7,
  3840. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8,
  3841. QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9,
  3842. };
  3843. /**
  3844. * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information
  3845. *
  3846. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value
  3847. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version
  3848. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version
  3849. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index
  3850. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last
  3851. * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max
  3852. */
  3853. enum qca_wlan_vendor_attr_get_wifi_info {
  3854. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  3855. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  3856. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  3857. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3,
  3858. /* KEEP LAST */
  3859. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  3860. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  3861. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  3862. };
  3863. enum qca_wlan_vendor_attr_logger_results {
  3864. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  3865. /*
  3866. * Unsigned 32-bit value; must match the request Id supplied by
  3867. * Wi-Fi HAL in the corresponding subcmd NL msg.
  3868. */
  3869. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  3870. /*
  3871. * Unsigned 32-bit value; used to indicate the size of memory
  3872. * dump to be allocated.
  3873. */
  3874. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  3875. /* keep last */
  3876. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  3877. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  3878. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  3879. };
  3880. /**
  3881. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  3882. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  3883. */
  3884. enum qca_wlan_vendor_channel_prop_flags {
  3885. /* Bits 0, 1, 2, and 3 are reserved */
  3886. /* Turbo channel */
  3887. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  3888. /* CCK channel */
  3889. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  3890. /* OFDM channel */
  3891. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  3892. /* 2.4 GHz spectrum channel. */
  3893. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  3894. /* 5 GHz spectrum channel */
  3895. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  3896. /* Only passive scan allowed */
  3897. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  3898. /* Dynamic CCK-OFDM channel */
  3899. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  3900. /* GFSK channel (FHSS PHY) */
  3901. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  3902. /* Radar found on channel */
  3903. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  3904. /* 11a static turbo channel only */
  3905. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  3906. /* Half rate channel */
  3907. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  3908. /* Quarter rate channel */
  3909. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  3910. /* HT 20 channel */
  3911. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  3912. /* HT 40 with extension channel above */
  3913. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  3914. /* HT 40 with extension channel below */
  3915. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  3916. /* HT 40 intolerant */
  3917. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  3918. /* VHT 20 channel */
  3919. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  3920. /* VHT 40 with extension channel above */
  3921. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  3922. /* VHT 40 with extension channel below */
  3923. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  3924. /* VHT 80 channel */
  3925. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  3926. /* HT 40 intolerant mark bit for ACS use */
  3927. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  3928. /* Channel temporarily blocked due to noise */
  3929. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  3930. /* VHT 160 channel */
  3931. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  3932. /* VHT 80+80 channel */
  3933. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  3934. /* HE 20 channel */
  3935. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28,
  3936. /* HE 40 with extension channel above */
  3937. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29,
  3938. /* HE 40 with extension channel below */
  3939. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30,
  3940. /* HE 40 intolerant */
  3941. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31,
  3942. };
  3943. /**
  3944. * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a
  3945. * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is
  3946. * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2.
  3947. */
  3948. enum qca_wlan_vendor_channel_prop_flags_2 {
  3949. /* HE 40 intolerant mark bit for ACS use */
  3950. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0,
  3951. /* HE 80 channel */
  3952. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1,
  3953. /* HE 160 channel */
  3954. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2,
  3955. /* HE 80+80 channel */
  3956. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3,
  3957. };
  3958. /**
  3959. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  3960. * each channel. This is used by
  3961. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  3962. */
  3963. enum qca_wlan_vendor_channel_prop_flags_ext {
  3964. /* Radar found on channel */
  3965. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  3966. /* DFS required on channel */
  3967. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  3968. /* DFS required on channel for 2nd band of 80+80 */
  3969. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  3970. /* If channel has been checked for DFS */
  3971. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  3972. /* Excluded in 802.11d */
  3973. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  3974. /* Channel Switch Announcement received on this channel */
  3975. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  3976. /* Ad-hoc is not allowed */
  3977. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  3978. /* Station only channel */
  3979. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  3980. /* DFS radar history for slave device (STA mode) */
  3981. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  3982. /* DFS CAC valid for slave device (STA mode) */
  3983. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  3984. };
  3985. /**
  3986. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  3987. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  3988. * information to start/stop the NUD statistics collection.
  3989. */
  3990. enum qca_attr_nud_stats_set {
  3991. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  3992. /*
  3993. * Flag to start/stop the NUD statistics collection.
  3994. * Start - If included, Stop - If not included
  3995. */
  3996. QCA_ATTR_NUD_STATS_SET_START = 1,
  3997. /* IPv4 address of the default gateway (in network byte order) */
  3998. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  3999. /*
  4000. * Represents the data packet type to be monitored.
  4001. * Host driver tracks the stats corresponding to each data frame
  4002. * represented by these flags.
  4003. * These data packets are represented by
  4004. * enum qca_wlan_vendor_nud_stats_set_data_pkt_info.
  4005. */
  4006. QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3,
  4007. /* keep last */
  4008. QCA_ATTR_NUD_STATS_SET_LAST,
  4009. QCA_ATTR_NUD_STATS_SET_MAX =
  4010. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  4011. };
  4012. /**
  4013. * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd
  4014. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4015. * information to start / stop the NUD stats collection.
  4016. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats
  4017. * Bitmap to Flag to Start / Stop the NUD stats collection
  4018. * Start - If included , Stop - If not included
  4019. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address
  4020. * IPv4 address of Default Gateway (in network byte order)
  4021. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4022. * information to start / stop the NUD stats collection.
  4023. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats
  4024. * Flag to Start / Stop the NUD stats collection
  4025. * Start - If included , Stop - If not included
  4026. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address
  4027. * IPv4 address of Default Gateway (in network byte order)
  4028. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite
  4029. * information to start / stop the NUD stats collection.
  4030. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats
  4031. * Flag to Start / Stop the NUD stats collection
  4032. * Start - If included , Stop - If not included
  4033. * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address
  4034. * IPv4 address of Default Gateway (in network byte order)
  4035. */
  4036. enum qca_attr_connectivity_check_stats_set {
  4037. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0,
  4038. QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1,
  4039. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2,
  4040. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3,
  4041. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4,
  4042. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5,
  4043. QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6,
  4044. /* keep last */
  4045. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST,
  4046. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX =
  4047. QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1,
  4048. };
  4049. /**
  4050. * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various
  4051. * data types for which the stats have to get collected.
  4052. */
  4053. enum qca_wlan_vendor_connectivity_check_pkt_flags {
  4054. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0,
  4055. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1,
  4056. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2,
  4057. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3,
  4058. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4,
  4059. /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get
  4060. * to represent the stats of respective data type.
  4061. */
  4062. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5,
  4063. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6,
  4064. QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7,
  4065. };
  4066. enum qca_attr_connectivity_check_stats {
  4067. QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0,
  4068. /* Data packet type for which the stats are collected.
  4069. * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags
  4070. */
  4071. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1,
  4072. /* ID corresponding to the DNS frame for which the respective DNS stats
  4073. * are monitored (u32).
  4074. */
  4075. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2,
  4076. /* source / destination port on which the respective proto stats are
  4077. * collected (u32).
  4078. */
  4079. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3,
  4080. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4,
  4081. /* IPv4/IPv6 address for which the destined data packets are
  4082. * monitored. (in network byte order)
  4083. */
  4084. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5,
  4085. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6,
  4086. /* Data packet Request count received from netdev */
  4087. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7,
  4088. /* Data packet Request count sent to lower MAC from upper MAC */
  4089. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8,
  4090. /* Data packet Request count received by lower MAC from upper MAC */
  4091. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9,
  4092. /* Data packet Request count successfully transmitted by the device */
  4093. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10,
  4094. /* Data packet Response count received by lower MAC */
  4095. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11,
  4096. /* Data packet Response count received by upper MAC */
  4097. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12,
  4098. /* Data packet Response count delivered to netdev */
  4099. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13,
  4100. /* Data Packet Response count that are dropped out of order */
  4101. QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14,
  4102. /* keep last */
  4103. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST,
  4104. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX =
  4105. QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1,
  4106. };
  4107. /**
  4108. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  4109. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  4110. * NUD statistics collected when queried.
  4111. */
  4112. enum qca_attr_nud_stats_get {
  4113. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  4114. /* ARP Request count from netdev */
  4115. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  4116. /* ARP Request count sent to lower MAC from upper MAC */
  4117. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  4118. /* ARP Request count received by lower MAC from upper MAC */
  4119. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  4120. /* ARP Request count successfully transmitted by the device */
  4121. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  4122. /* ARP Response count received by lower MAC */
  4123. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  4124. /* ARP Response count received by upper MAC */
  4125. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  4126. /* ARP Response count delivered to netdev */
  4127. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  4128. /* ARP Response count delivered to netdev */
  4129. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  4130. /*
  4131. * Flag indicating if the station's link to the AP is active.
  4132. * Active Link - If included, Inactive link - If not included
  4133. */
  4134. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9,
  4135. /*
  4136. * Flag indicating if there is any duplicate address detected (DAD).
  4137. * Yes - If detected, No - If not detected.
  4138. */
  4139. QCA_ATTR_NUD_STATS_IS_DAD = 10,
  4140. /*
  4141. * List of Data types for which the stats are requested.
  4142. * This list does not carry ARP stats as they are done by the
  4143. * above attributes. Represented by enum qca_attr_nud_data_stats.
  4144. */
  4145. QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11,
  4146. /* keep last */
  4147. QCA_ATTR_NUD_STATS_GET_LAST,
  4148. QCA_ATTR_NUD_STATS_GET_MAX =
  4149. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  4150. };
  4151. enum qca_wlan_btm_candidate_status {
  4152. QCA_STATUS_ACCEPT = 0,
  4153. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  4154. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  4155. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  4156. QCA_STATUS_REJECT_LOW_RSSI = 4,
  4157. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  4158. QCA_STATUS_REJECT_UNKNOWN = 6,
  4159. };
  4160. enum qca_wlan_vendor_attr_btm_candidate_info {
  4161. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  4162. /* 6-byte MAC address representing the BSSID of transition candidate */
  4163. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  4164. /*
  4165. * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  4166. * returned by the driver. It says whether the BSSID provided in
  4167. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  4168. * the driver, if not it specifies the reason for rejection.
  4169. * Note that the user-space can overwrite the transition reject reason
  4170. * codes provided by driver based on more information.
  4171. */
  4172. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  4173. /* keep last */
  4174. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  4175. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  4176. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  4177. };
  4178. enum qca_attr_trace_level {
  4179. QCA_ATTR_TRACE_LEVEL_INVALID = 0,
  4180. /*
  4181. * Nested array of the following attributes:
  4182. * QCA_ATTR_TRACE_LEVEL_MODULE,
  4183. * QCA_ATTR_TRACE_LEVEL_MASK.
  4184. */
  4185. QCA_ATTR_TRACE_LEVEL_PARAM = 1,
  4186. /*
  4187. * Specific QCA host driver module. Please refer to the QCA host
  4188. * driver implementation to get the specific module ID.
  4189. */
  4190. QCA_ATTR_TRACE_LEVEL_MODULE = 2,
  4191. /* Different trace level masks represented in the QCA host driver. */
  4192. QCA_ATTR_TRACE_LEVEL_MASK = 3,
  4193. /* keep last */
  4194. QCA_ATTR_TRACE_LEVEL_AFTER_LAST,
  4195. QCA_ATTR_TRACE_LEVEL_MAX =
  4196. QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1,
  4197. };
  4198. /**
  4199. * enum qca_wlan_vendor_attr_get_logger_features - value for logger
  4200. * supported features
  4201. * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid
  4202. * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features
  4203. * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum
  4204. * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type
  4205. *
  4206. * enum values are used for NL attributes for data used by
  4207. * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command.
  4208. */
  4209. enum qca_wlan_vendor_attr_get_logger_features {
  4210. QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0,
  4211. QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1,
  4212. /* keep last */
  4213. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST,
  4214. QCA_WLAN_VENDOR_ATTR_LOGGER_MAX =
  4215. QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1,
  4216. };
  4217. /**
  4218. * enum qca_wlan_vendor_attr_link_properties - link properties
  4219. *
  4220. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value
  4221. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to
  4222. * specify the number of spatial streams negotiated
  4223. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value
  4224. * to specify negotiated rate flags i.e. ht, vht and channel width
  4225. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to
  4226. * specify the operating frequency
  4227. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer
  4228. * (STA / AP ) for the connected link.
  4229. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a
  4230. * &struct nl80211_sta_flag_update for the respective connected link. MAC
  4231. * address of the peer represented by
  4232. * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR.
  4233. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last
  4234. * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value
  4235. */
  4236. enum qca_wlan_vendor_attr_link_properties {
  4237. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0,
  4238. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1,
  4239. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2,
  4240. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3,
  4241. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4,
  4242. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5,
  4243. /* KEEP LAST */
  4244. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST,
  4245. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX =
  4246. QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1,
  4247. };
  4248. /**
  4249. * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support
  4250. *
  4251. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid
  4252. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload
  4253. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum
  4254. * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type
  4255. *
  4256. * enum values are used for NL attributes for data used by
  4257. * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command.
  4258. */
  4259. enum qca_wlan_vendor_attr_nd_offload {
  4260. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0,
  4261. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG,
  4262. /* Keep last */
  4263. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST,
  4264. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX =
  4265. QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1,
  4266. };
  4267. /**
  4268. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  4269. *
  4270. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  4271. * management offload, a mechanism where the station's firmware
  4272. * does the exchange with the AP to establish the temporal keys
  4273. * after roaming, rather than having the user space wpa_supplicant do it.
  4274. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  4275. * band selection based on channel selection results.
  4276. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  4277. * simultaneous off-channel operations.
  4278. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  4279. * Listen offload; a mechanism where the station's firmware takes care of
  4280. * responding to incoming Probe Request frames received from other P2P
  4281. * Devices whilst in Listen state, rather than having the user space
  4282. * wpa_supplicant do it. Information from received P2P requests are
  4283. * forwarded from firmware to host whenever the host processor wakes up.
  4284. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA
  4285. * specific features.
  4286. * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific
  4287. * features.
  4288. * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON
  4289. * specific features only. If a Device sets this bit but not the
  4290. * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that
  4291. * this Device may not support all OCE AP functionalities but can support
  4292. * only OCE STA-CFON functionalities.
  4293. * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self
  4294. * managed regulatory.
  4295. * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time).
  4296. * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE)
  4297. * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation
  4298. * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving
  4299. * and applying thermal configuration through
  4300. * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and
  4301. * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from
  4302. * userspace.
  4303. * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r.
  4304. * With Adaptive 11r feature, access points advertise the vendor
  4305. * specific IEs and MDE but do not include FT AKM in the RSNE.
  4306. * The Adaptive 11r supported stations are expected to identify
  4307. * such vendor specific IEs and connect to the AP in FT mode though
  4308. * the profile is configured in non-FT mode.
  4309. * The driver-based SME cases also need to have this support for
  4310. * Adaptive 11r to handle the connection and roaming scenarios.
  4311. * This flag indicates the support for the same to the user space.
  4312. * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports
  4313. * concurrent network sessions on different Wi-Fi Bands. This feature
  4314. * capability is attributed to the hardware's capability to support
  4315. * the same (e.g., DBS).
  4316. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the
  4317. * responses for the respective TWT operations are asynchronous (separate)
  4318. * event message) from the driver. If not specified, the responses are
  4319. * synchronous (in vendor command reply) to the request. Each TWT
  4320. * operation is specifically mentioned (against its respective)
  4321. * documentation) to support either of these or both modes.
  4322. * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates
  4323. * that the driver requires add/del virtual interface path using the
  4324. * generic nl80211 commands for NDP interface create/delete and to
  4325. * register/unregister the netdev instead of creating/deleting the NDP
  4326. * interface using the vendor commands
  4327. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and
  4328. * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel
  4329. * (5.12 version onward), interface creation/deletion is not allowed using
  4330. * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK
  4331. * during the register/unregister of netdev. Create and delete NDP
  4332. * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE
  4333. * commands respectively if the driver advertises this capability set.
  4334. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in
  4335. * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is
  4336. * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored.
  4337. * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP
  4338. * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then
  4339. * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored.
  4340. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in
  4341. * station mode supports secure RTT measurement exchange. If
  4342. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4343. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored.
  4344. * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP
  4345. * mode supports secure RTT measurement exchange. If
  4346. * NL80211_EXT_FEATURE_SECURE_RTT is set,
  4347. * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored.
  4348. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that
  4349. * the device in station mode supports protection of range negotiation and
  4350. * measurement management frames. If
  4351. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4352. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored.
  4353. * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that
  4354. * the device in AP mode supports protection of range negotiation and
  4355. * measurement management frames. If
  4356. * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then
  4357. * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored.
  4358. * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device
  4359. * in AP mode supports configuring allowed frequency list for AP operation
  4360. * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST.
  4361. * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates
  4362. * that the device supports enhanced audio experience over WLAN feature.
  4363. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  4364. */
  4365. enum qca_wlan_vendor_features {
  4366. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  4367. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  4368. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  4369. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  4370. QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4,
  4371. QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5,
  4372. QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6,
  4373. QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7,
  4374. QCA_WLAN_VENDOR_FEATURE_TWT = 8,
  4375. QCA_WLAN_VENDOR_FEATURE_11AX = 9,
  4376. QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10,
  4377. QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11,
  4378. QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12,
  4379. QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13,
  4380. QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14,
  4381. QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15,
  4382. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16,
  4383. QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17,
  4384. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18,
  4385. QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19,
  4386. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20,
  4387. QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21,
  4388. QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22,
  4389. QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23,
  4390. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  4391. };
  4392. /**
  4393. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP
  4394. * conditional channel switch
  4395. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial
  4396. * value
  4397. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based
  4398. * frequency list (an array of u32 values in host byte order)
  4399. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the
  4400. * conditional switch (u32)- 0: Success, Non-zero: Failure
  4401. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last
  4402. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max
  4403. */
  4404. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  4405. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  4406. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  4407. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  4408. /* Keep Last */
  4409. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  4410. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  4411. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  4412. };
  4413. /**
  4414. * enum wifi_logger_supported_features - values for supported logger features
  4415. * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW
  4416. * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics
  4417. * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events
  4418. * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver
  4419. * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver
  4420. * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health
  4421. * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump
  4422. * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate
  4423. */
  4424. enum wifi_logger_supported_features {
  4425. WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)),
  4426. WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)),
  4427. WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)),
  4428. WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)),
  4429. WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)),
  4430. WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)),
  4431. WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)),
  4432. WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)),
  4433. WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8))
  4434. };
  4435. /**
  4436. * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get
  4437. * capabilities features
  4438. */
  4439. enum qca_wlan_tdls_caps_features_supported {
  4440. WIFI_TDLS_SUPPORT = (1 << (0)),
  4441. WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)),
  4442. WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)),
  4443. /* Indicates if the TDLS session can be formed with the peer using
  4444. * higher bandwidth than the bandwidth of the AP path.
  4445. */
  4446. WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)),
  4447. };
  4448. /**
  4449. * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with
  4450. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4451. *
  4452. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8).
  4453. * Used with event to notify the primary channel number selected in ACS
  4454. * operation.
  4455. * Note: If both the driver and user-space application supports the 6 GHz band,
  4456. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use
  4457. * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead.
  4458. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4459. * is still used if either of the driver or user space application doesn't
  4460. * support the 6 GHz band.
  4461. *
  4462. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8).
  4463. * Used with event to notify the secondary channel number selected in ACS
  4464. * operation.
  4465. * Note: If both the driver and user-space application supports the 6 GHz band,
  4466. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use
  4467. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead.
  4468. * To maintain backward compatibility,
  4469. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of
  4470. * the driver or user space application doesn't support 6 GHz band.
  4471. *
  4472. * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8).
  4473. * (a) Used with command to configure hw_mode from
  4474. * enum qca_wlan_vendor_acs_hw_mode for ACS operation.
  4475. * (b) Also used with event to notify the hw_mode of selected primary channel
  4476. * in ACS operation.
  4477. *
  4478. * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute.
  4479. * Used with command to configure ACS operation for HT mode.
  4480. * Disable (flag attribute not present) - HT disabled and
  4481. * Enable (flag attribute present) - HT enabled.
  4482. *
  4483. * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute.
  4484. * Used with command to configure ACS operation for HT40 mode.
  4485. * Disable (flag attribute not present) - HT40 disabled and
  4486. * Enable (flag attribute present) - HT40 enabled.
  4487. *
  4488. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute.
  4489. * Used with command to configure ACS operation for VHT mode.
  4490. * Disable (flag attribute not present) - VHT disabled and
  4491. * Enable (flag attribute present) - VHT enabled.
  4492. *
  4493. * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and
  4494. * mandatory with event.
  4495. * If specified in command path, ACS operation is configured with the given
  4496. * channel width (in MHz).
  4497. * In event path, specifies the channel width of the primary channel selected.
  4498. *
  4499. * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC.
  4500. * Used with command to configure channel list using an array of
  4501. * channel numbers (u8).
  4502. * Note: If both the driver and user-space application supports the 6 GHz band,
  4503. * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas
  4504. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional.
  4505. *
  4506. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  4507. * Used with event to notify the VHT segment 0 center channel number selected in
  4508. * ACS operation.
  4509. * Note: If both the driver and user-space application supports the 6 GHz band,
  4510. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  4511. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
  4512. * To maintain backward compatibility,
  4513. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of
  4514. * the driver or user space application doesn't support the 6 GHz band.
  4515. *
  4516. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  4517. * Used with event to notify the VHT segment 1 center channel number selected in
  4518. * ACS operation.
  4519. * Note: If both the driver and user-space application supports the 6 GHz band,
  4520. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  4521. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
  4522. * To maintain backward compatibility,
  4523. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of
  4524. * the driver or user space application doesn't support the 6 GHz band.
  4525. *
  4526. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC.
  4527. * Used with command to configure the channel list using an array of channel
  4528. * center frequencies in MHz (u32).
  4529. * Note: If both the driver and user-space application supports the 6 GHz band,
  4530. * the driver first parses the frequency list and if it fails to get a frequency
  4531. * list, parses the channel list specified using
  4532. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in
  4533. * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST).
  4534. *
  4535. * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32).
  4536. * Used with event to notify the primary channel center frequency (MHz) selected
  4537. * in ACS operation.
  4538. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4539. * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL.
  4540. *
  4541. * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32).
  4542. * Used with event to notify the secondary channel center frequency (MHz)
  4543. * selected in ACS operation.
  4544. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4545. * includes this attribute along with
  4546. * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL.
  4547. *
  4548. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32).
  4549. * Used with event to notify the VHT segment 0 center channel frequency (MHz)
  4550. * selected in ACS operation.
  4551. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4552. * includes this attribute along with
  4553. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL.
  4554. *
  4555. * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32).
  4556. * Used with event to notify the VHT segment 1 center channel frequency (MHz)
  4557. * selected in ACS operation.
  4558. * Note: If the driver supports the 6 GHz band, the event sent from the driver
  4559. * includes this attribute along with
  4560. * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL.
  4561. *
  4562. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute.
  4563. * Used with command to notify the driver of EDMG request for ACS
  4564. * operation.
  4565. *
  4566. * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8).
  4567. * Used with event to notify the EDMG channel number selected in ACS
  4568. * operation.
  4569. * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL
  4570. *
  4571. * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16).
  4572. * Used with event to notify the puncture pattern selected in ACS operation.
  4573. * Encoding for this attribute will follow the convention used in the Disabled
  4574. * Subchannel Bitmap field of the EHT Operation IE.
  4575. *
  4576. * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute.
  4577. * Used with command to configure ACS operation for EHT mode.
  4578. * Disable (flag attribute not present) - EHT disabled and
  4579. * Enable (flag attribute present) - EHT enabled.
  4580. *
  4581. * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32).
  4582. * Used with command to configure how older scan can be considered for ACS
  4583. * scoring. In case scan was performed on partial set of channels configured
  4584. * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME
  4585. * (in ms), then scan only remaining channels.
  4586. */
  4587. enum qca_wlan_vendor_attr_acs_offload {
  4588. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  4589. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1,
  4590. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2,
  4591. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3,
  4592. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4,
  4593. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5,
  4594. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6,
  4595. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7,
  4596. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8,
  4597. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9,
  4598. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10,
  4599. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11,
  4600. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12,
  4601. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13,
  4602. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14,
  4603. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15,
  4604. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16,
  4605. QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17,
  4606. QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18,
  4607. QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19,
  4608. QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20,
  4609. /* keep last */
  4610. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  4611. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  4612. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  4613. };
  4614. /**
  4615. * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the
  4616. * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS.
  4617. *
  4618. * @QCA_ACS_MODE_IEEE80211B: 802.11b mode
  4619. * @QCA_ACS_MODE_IEEE80211G: 802.11g mode
  4620. * @QCA_ACS_MODE_IEEE80211A: 802.11a mode
  4621. * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode
  4622. * @QCA_ACS_MODE_IEEE80211ANY: all modes
  4623. * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode
  4624. */
  4625. enum qca_wlan_vendor_acs_hw_mode {
  4626. QCA_ACS_MODE_IEEE80211B,
  4627. QCA_ACS_MODE_IEEE80211G,
  4628. QCA_ACS_MODE_IEEE80211A,
  4629. QCA_ACS_MODE_IEEE80211AD,
  4630. QCA_ACS_MODE_IEEE80211ANY,
  4631. QCA_ACS_MODE_IEEE80211AX,
  4632. };
  4633. /**
  4634. * enum qca_access_policy - access control policy
  4635. *
  4636. * Access control policy is applied on the configured IE
  4637. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  4638. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  4639. *
  4640. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match
  4641. *» with the specific configuration (IE) set, i.e. allow all the
  4642. *» connections which do not match the configuration.
  4643. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match
  4644. *» with the specific configuration (IE) set, i.e. deny all the
  4645. *» connections which do not match the configuration.
  4646. */
  4647. enum qca_access_policy {
  4648. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  4649. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  4650. };
  4651. /**
  4652. * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values
  4653. *
  4654. * The valid values for the ignore assoc disallowed
  4655. *
  4656. * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed
  4657. * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed
  4658. *
  4659. */
  4660. enum qca_ignore_assoc_disallowed {
  4661. QCA_IGNORE_ASSOC_DISALLOWED_DISABLE,
  4662. QCA_IGNORE_ASSOC_DISALLOWED_ENABLE
  4663. };
  4664. /* Attributes for data used by
  4665. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  4666. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  4667. */
  4668. #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\
  4669. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES
  4670. #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\
  4671. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL
  4672. #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\
  4673. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON
  4674. enum qca_wlan_vendor_attr_config {
  4675. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  4676. /*
  4677. * Unsigned 32-bit value to set the DTIM period.
  4678. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  4679. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  4680. * DTIM beacons.
  4681. */
  4682. QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1,
  4683. /*
  4684. * Unsigned 32-bit value to set the wifi_iface stats averaging factor
  4685. * used to calculate statistics like average the TSF offset or average
  4686. * number of frame leaked.
  4687. * For instance, upon Beacon frame reception:
  4688. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  4689. * For instance, when evaluating leaky APs:
  4690. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  4691. */
  4692. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  4693. /*
  4694. * Unsigned 32-bit value to configure guard time, i.e., when
  4695. * implementing IEEE power management based on frame control PM bit, how
  4696. * long the driver waits before shutting down the radio and after
  4697. * receiving an ACK frame for a Data frame with PM bit set.
  4698. */
  4699. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  4700. /* Unsigned 32-bit value to change the FTM capability dynamically */
  4701. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  4702. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  4703. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  4704. /*
  4705. * Unsigned 32-bit value to configure the number of continuous
  4706. * Beacon Miss which shall be used by the firmware to penalize
  4707. * the RSSI.
  4708. */
  4709. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  4710. /*
  4711. * Unsigned 8-bit value to configure the channel avoidance indication
  4712. * behavior. Firmware to send only one indication and ignore duplicate
  4713. * indications when set to avoid multiple Apps wakeups.
  4714. */
  4715. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  4716. /*
  4717. * 8-bit unsigned value to configure the maximum TX MPDU for
  4718. * aggregation.
  4719. */
  4720. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  4721. /*
  4722. * 8-bit unsigned value to configure the maximum RX MPDU for
  4723. * aggregation.
  4724. */
  4725. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  4726. /*
  4727. * 8-bit unsigned value to configure the Non aggregate/11g sw
  4728. * retry threshold (0 disable, 31 max).
  4729. */
  4730. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  4731. /*
  4732. * 8-bit unsigned value to configure the aggregate sw
  4733. * retry threshold (0 disable, 31 max).
  4734. */
  4735. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  4736. /*
  4737. * 8-bit unsigned value to configure the MGMT frame
  4738. * retry threshold (0 disable, 31 max).
  4739. */
  4740. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  4741. /*
  4742. * 8-bit unsigned value to configure the CTRL frame
  4743. * retry threshold (0 disable, 31 max).
  4744. */
  4745. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  4746. /*
  4747. * 8-bit unsigned value to configure the propagation delay for
  4748. * 2G/5G band (0~63, units in us)
  4749. */
  4750. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  4751. /*
  4752. * Unsigned 32-bit value to configure the number of unicast TX fail
  4753. * packet count. The peer is disconnected once this threshold is
  4754. * reached.
  4755. */
  4756. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  4757. /*
  4758. * Attribute used to set scan default IEs to the driver.
  4759. *
  4760. * These IEs can be used by scan operations that will be initiated by
  4761. * the driver/firmware.
  4762. *
  4763. * For further scan requests coming to the driver, these IEs should be
  4764. * merged with the IEs received along with scan request coming to the
  4765. * driver. If a particular IE is present in the scan default IEs but not
  4766. * present in the scan request, then that IE should be added to the IEs
  4767. * sent in the Probe Request frames for that scan request.
  4768. */
  4769. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  4770. /* Unsigned 32-bit attribute for generic commands */
  4771. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  4772. /* Unsigned 32-bit value attribute for generic commands */
  4773. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  4774. /* Unsigned 32-bit data attribute for generic command response */
  4775. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  4776. /*
  4777. * Unsigned 32-bit length attribute for
  4778. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4779. */
  4780. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  4781. /*
  4782. * Unsigned 32-bit flags attribute for
  4783. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA
  4784. */
  4785. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  4786. /*
  4787. * Unsigned 32-bit, defining the access policy.
  4788. * See enum qca_access_policy. Used with
  4789. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST.
  4790. */
  4791. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  4792. /*
  4793. * Sets the list of full set of IEs for which a specific access policy
  4794. * has to be applied. Used along with
  4795. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  4796. * Zero length payload can be used to clear this access constraint.
  4797. */
  4798. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  4799. /*
  4800. * Unsigned 32-bit, specifies the interface index (netdev) for which the
  4801. * corresponding configurations are applied. If the interface index is
  4802. * not specified, the configurations are attributed to the respective
  4803. * wiphy.
  4804. */
  4805. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  4806. /*
  4807. * 8-bit unsigned value to trigger QPower:
  4808. * 1-Enable, 0-Disable
  4809. */
  4810. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  4811. /*
  4812. * 8-bit unsigned value to configure the driver and below layers to
  4813. * ignore the assoc disallowed set by APs while connecting
  4814. * 1-Ignore, 0-Don't ignore
  4815. */
  4816. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  4817. /*
  4818. * 32-bit unsigned value to trigger antenna diversity features:
  4819. * 1-Enable, 0-Disable
  4820. */
  4821. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  4822. /* 32-bit unsigned value to configure specific chain antenna */
  4823. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  4824. /*
  4825. * 32-bit unsigned value to trigger cycle selftest
  4826. * 1-Enable, 0-Disable
  4827. */
  4828. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  4829. /*
  4830. * 32-bit unsigned to configure the cycle time of selftest
  4831. * the unit is micro-second
  4832. */
  4833. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  4834. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  4835. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  4836. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  4837. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  4838. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  4839. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  4840. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  4841. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  4842. /* 6-byte MAC address to point out the specific peer */
  4843. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
  4844. /* 32-bit unsigned value to set window size for specific peer */
  4845. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  4846. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  4847. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  4848. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  4849. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  4850. /*
  4851. * 32-bit unsigned value to configure 5 or 10 MHz channel width for
  4852. * station device while in disconnect state. The attribute use the
  4853. * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz,
  4854. * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or
  4855. * 10 MHz channel width, the station will not connect to a BSS using 20
  4856. * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to
  4857. * clear this constraint.
  4858. */
  4859. QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39,
  4860. /*
  4861. * 32-bit unsigned value to configure the propagation absolute delay
  4862. * for 2G/5G band (units in us)
  4863. */
  4864. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40,
  4865. /* 32-bit unsigned value to set probe period */
  4866. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41,
  4867. /* 32-bit unsigned value to set stay period */
  4868. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42,
  4869. /* 32-bit unsigned value to set snr diff */
  4870. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43,
  4871. /* 32-bit unsigned value to set probe dwell time */
  4872. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44,
  4873. /* 32-bit unsigned value to set mgmt snr weight */
  4874. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45,
  4875. /* 32-bit unsigned value to set data snr weight */
  4876. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46,
  4877. /* 32-bit unsigned value to set ack snr weight */
  4878. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47,
  4879. /*
  4880. * 32-bit unsigned value to configure the listen interval.
  4881. * This is in units of beacon intervals. This configuration alters
  4882. * the negotiated listen interval with the AP during the connection.
  4883. * It is highly recommended to configure a value less than or equal to
  4884. * the one negotiated during the association. Configuring any greater
  4885. * value can have adverse effects (frame loss, AP disassociating STA,
  4886. * etc.).
  4887. */
  4888. QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48,
  4889. /*
  4890. * 8 bit unsigned value that is set on an AP/GO virtual interface to
  4891. * disable operations that would cause the AP/GO to leave its operating
  4892. * channel.
  4893. *
  4894. * This will restrict the scans to the AP/GO operating channel and the
  4895. * channels of the other band, if DBS is supported.A STA/CLI interface
  4896. * brought up after this setting is enabled, will be restricted to
  4897. * connecting to devices only on the AP/GO interface's operating channel
  4898. * or on the other band in DBS case. P2P supported channel list is
  4899. * modified, to only include AP interface's operating-channel and the
  4900. * channels of the other band if DBS is supported.
  4901. *
  4902. * These restrictions are only applicable as long as the AP/GO interface
  4903. * is alive. If the AP/GO interface is brought down then this
  4904. * setting/restriction is forgotten.
  4905. *
  4906. * If this variable is set on an AP/GO interface while a multi-channel
  4907. * concurrent session is active, it has no effect on the operation of
  4908. * the current interfaces, other than restricting the scan to the AP/GO
  4909. * operating channel and the other band channels if DBS is supported.
  4910. * However, if the STA is brought down and restarted then the new STA
  4911. * connection will either be formed on the AP/GO channel or on the
  4912. * other band in a DBS case. This is because of the scan being
  4913. * restricted on these channels as mentioned above.
  4914. *
  4915. * 1-Disable offchannel operations, 0-Enable offchannel operations.
  4916. */
  4917. QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49,
  4918. /*
  4919. * 8 bit unsigned value to enable/disable LRO (Large Receive Offload)
  4920. * on an interface.
  4921. * 1 - Enable , 0 - Disable.
  4922. */
  4923. QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50,
  4924. /*
  4925. * 8 bit unsigned value to globally enable/disable scan
  4926. * 1 - Enable, 0 - Disable.
  4927. */
  4928. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51,
  4929. /* 8-bit unsigned value to set the total beacon miss count */
  4930. QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52,
  4931. /*
  4932. * Unsigned 32-bit value to configure the number of continuous
  4933. * Beacon Miss which shall be used by the firmware to penalize
  4934. * the RSSI for BTC.
  4935. */
  4936. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53,
  4937. /*
  4938. * 8-bit unsigned value to configure the driver and below layers to
  4939. * enable/disable all fils features.
  4940. * 0-enable, 1-disable
  4941. */
  4942. QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54,
  4943. /* 16-bit unsigned value to configure the level of WLAN latency
  4944. * module. See enum qca_wlan_vendor_attr_config_latency_level.
  4945. */
  4946. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
  4947. /*
  4948. * 8-bit unsigned value indicating the driver to use the RSNE as-is from
  4949. * the connect interface. Exclusively used for the scenarios where the
  4950. * device is used as a test bed device with special functionality and
  4951. * not recommended for production. This helps driver to not validate the
  4952. * RSNE passed from user space and thus allow arbitrary IE data to be
  4953. * used for testing purposes.
  4954. * 1-enable, 0-disable.
  4955. * Applications set/reset this configuration. If not reset, this
  4956. * parameter remains in use until the driver is unloaded.
  4957. */
  4958. QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
  4959. /*
  4960. * 8-bit unsigned value to trigger green Tx power saving.
  4961. * 1-Enable, 0-Disable
  4962. */
  4963. QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
  4964. /*
  4965. * Attribute to configure disconnect IEs to the driver.
  4966. * This carries an array of unsigned 8-bit characters.
  4967. *
  4968. * If this is configured, driver shall fill the IEs in disassoc/deauth
  4969. * frame.
  4970. * These IEs are expected to be considered only for the next
  4971. * immediate disconnection (disassoc/deauth frame) originated by
  4972. * the DUT, irrespective of the entity (user space/driver/firmware)
  4973. * triggering the disconnection.
  4974. * The host drivers are not expected to use the IEs set through
  4975. * this interface for further disconnections after the first immediate
  4976. * disconnection initiated post the configuration.
  4977. * If the IEs are also updated through cfg80211 interface (after the
  4978. * enhancement to cfg80211_disconnect), host driver is expected to
  4979. * take the union of IEs from both of these interfaces and send in
  4980. * further disassoc/deauth frames.
  4981. */
  4982. QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58,
  4983. /* 8-bit unsigned value for ELNA bypass.
  4984. * 0 - Disable eLNA bypass.
  4985. * 1 - Enable eLNA bypass.
  4986. * 2 - Reset eLNA bypass configuration, the driver should
  4987. * revert to the default configuration of eLNA bypass.
  4988. */
  4989. QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59,
  4990. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4991. * to send the Beacon Report response with failure reason for the
  4992. * scenarios where STA cannot honor the Beacon report request from AP.
  4993. * 1-Enable, 0-Disable.
  4994. */
  4995. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60,
  4996. /* 8-bit unsigned value. This attribute enables/disables the host driver
  4997. * to send roam reason information in the reassociation request to the
  4998. * AP. 1-Enable, 0-Disable.
  4999. */
  5000. QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61,
  5001. /* 32-bit unsigned value to configure different PHY modes to the
  5002. * driver/firmware. The possible values are defined in
  5003. * enum qca_wlan_vendor_phy_mode. The configuration will be reset to
  5004. * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting
  5005. * the driver.
  5006. */
  5007. QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62,
  5008. /* 8-bit unsigned value to configure the maximum supported channel width
  5009. * for STA mode. If this value is configured when STA is in connected
  5010. * state, it should not exceed the negotiated channel width. If it is
  5011. * configured when STA is in disconnected state, the configured value
  5012. * will take effect for the next immediate connection.
  5013. * This configuration can be sent inside
  5014. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
  5015. * supported channel width per-MLO link.
  5016. *
  5017. * This uses values defined in enum nl80211_chan_width.
  5018. */
  5019. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63,
  5020. /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment.
  5021. * This attribute is only applicable for STA mode. When dynamic
  5022. * bandwidth adjustment is disabled, STA will use static channel width
  5023. * the value of which is negotiated during connection.
  5024. * 1-enable (default), 0-disable
  5025. */
  5026. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64,
  5027. /* 8-bit unsigned value to configure the maximum number of subframes of
  5028. * TX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5029. * it is decided by hardware.
  5030. */
  5031. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65,
  5032. /* 8-bit unsigned value to configure the maximum number of subframes of
  5033. * RX MSDU for aggregation. Possible values are 0-31. When set to 0,
  5034. * it is decided by hardware.
  5035. */
  5036. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66,
  5037. /* 8-bit unsigned value. This attribute is used to dynamically
  5038. * enable/disable the LDPC capability of the device. When configured in
  5039. * the disconnected state, the updated configuration will be considered
  5040. * for the immediately following connection attempt. If this
  5041. * configuration is modified while the device is in the connected state,
  5042. * the LDPC TX will be updated with this configuration immediately,
  5043. * while the LDPC RX configuration update will take place starting from
  5044. * the subsequent association attempt.
  5045. * 1-Enable, 0-Disable.
  5046. */
  5047. QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67,
  5048. /* 8-bit unsigned value. This attribute is used to dynamically
  5049. * enable/disable the TX STBC capability of the device. When configured
  5050. * in the disconnected state, the updated configuration will be
  5051. * considered for the immediately following connection attempt. If the
  5052. * connection is formed with TX STBC enabled and if this configuration
  5053. * is disabled during that association, the TX will be impacted
  5054. * immediately. Further connection attempts will disable TX STBC.
  5055. * However, enabling the TX STBC for a connected session with disabled
  5056. * capability is not allowed and will fail.
  5057. * 1-Enable, 0-Disable.
  5058. */
  5059. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68,
  5060. /* 8-bit unsigned value. This attribute is used to dynamically
  5061. * enable/disable the RX STBC capability of the device. When configured
  5062. * in the disconnected state, the updated configuration will be
  5063. * considered for the immediately following connection attempt. If the
  5064. * configuration is modified in the connected state, there will be no
  5065. * impact for the current association, but further connection attempts
  5066. * will use the updated configuration.
  5067. * 1-Enable, 0-Disable.
  5068. */
  5069. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69,
  5070. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5071. * the number of spatial streams. When configured in the disconnected
  5072. * state, the updated configuration will be considered for the
  5073. * immediately following connection attempt. If the NSS is updated after
  5074. * the connection, the updated NSS value is notified to the peer using
  5075. * the Operating Mode Notification/Spatial Multiplexing Power Save
  5076. * frame. The updated NSS value after the connection shall not be
  5077. * greater than the one negotiated during the connection. Any such
  5078. * higher value configuration shall be returned with a failure.
  5079. * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done
  5080. * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
  5081. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to
  5082. * configure the asymmetric NSS configuration (such as 1X2).
  5083. */
  5084. QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70,
  5085. /* 8-bit unsigned value to configure Optimized Power Management mode:
  5086. * Modes are defined by enum qca_wlan_vendor_opm_mode.
  5087. *
  5088. * This attribute shall be configured along with
  5089. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  5090. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes
  5091. * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED.
  5092. */
  5093. QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71,
  5094. /* 8-bit unsigned value. This attribute takes the QOS/access category
  5095. * value represented by the enum qca_wlan_ac_type and expects the driver
  5096. * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL
  5097. * is invalid for this attribute. This will override the DSCP value
  5098. * configured in the frame with the intention to only upgrade the QOS.
  5099. * That said, it is not intended to downgrade the QOS for the frames.
  5100. * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs
  5101. * to disable.
  5102. *
  5103. * If only UDP frames of BE or BK access category needs to be upgraded
  5104. * without changing the access category of VO or VI UDP frames, refer to
  5105. * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK.
  5106. *
  5107. * This attribute is not recommended to be used as it blindly forces all
  5108. * UDP packets to a higher access category which could impact the
  5109. * traffic pattern of all apps using UDP and can cause unknown behavior.
  5110. */
  5111. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72,
  5112. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5113. * the number of chains to be used for transmitting data. This
  5114. * configuration is allowed only when in connected state and will be
  5115. * effective until disconnected. The driver rejects this configuration
  5116. * if the number of spatial streams being used in the current connection
  5117. * cannot be supported by this configuration.
  5118. */
  5119. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73,
  5120. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5121. * the number of chains to be used for receiving data. This
  5122. * configuration is allowed only when in connected state and will be
  5123. * effective until disconnected. The driver rejects this configuration
  5124. * if the number of spatial streams being used in the current connection
  5125. * cannot be supported by this configuration.
  5126. */
  5127. QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74,
  5128. /* 8-bit unsigned value to configure ANI setting type.
  5129. * See &enum qca_wlan_ani_setting for possible values.
  5130. */
  5131. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75,
  5132. /* 32-bit signed value to configure ANI level. This is used when
  5133. * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED.
  5134. * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO
  5135. * is invalid, the driver will return a failure.
  5136. */
  5137. QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76,
  5138. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5139. * the number of spatial streams used for transmitting the data. When
  5140. * configured in the disconnected state, the configured value will
  5141. * be considered for the following connection attempt.
  5142. * If the NSS is updated after the connection, the updated NSS value
  5143. * is notified to the peer using the Operating Mode Notification/Spatial
  5144. * Multiplexing Power Save frame.
  5145. * The TX NSS value configured after the connection shall not be greater
  5146. * than the value negotiated during the connection. Any such higher
  5147. * value configuration shall be treated as invalid configuration by
  5148. * the driver. This attribute shall be configured along with
  5149. * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric
  5150. * configuration (such as 2X2 or 1X1) or the asymmetric
  5151. * configuration (such as 1X2).
  5152. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5153. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver
  5154. * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS.
  5155. */
  5156. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77,
  5157. /* 8-bit unsigned value. This attribute is used to dynamically configure
  5158. * the number of spatial streams used for receiving the data. When
  5159. * configured in the disconnected state, the configured value will
  5160. * be considered for the following connection attempt.
  5161. * If the NSS is updated after the connection, the updated NSS value
  5162. * is notified to the peer using the Operating Mode Notification/Spatial
  5163. * Multiplexing Power Save frame.
  5164. * The RX NSS value configured after the connection shall not be greater
  5165. * than the value negotiated during the connection. Any such higher
  5166. * value configuration shall be treated as invalid configuration by
  5167. * the driver. This attribute shall be configured along with
  5168. * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric
  5169. * configuration (such as 2X2 or 1X1) or the asymmetric
  5170. * configuration (such as 1X2).
  5171. * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along
  5172. * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver
  5173. * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS.
  5174. */
  5175. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78,
  5176. /*
  5177. * 8-bit unsigned value. This attribute, when set, indicates whether the
  5178. * specified interface is the primary STA interface when there are more
  5179. * than one STA interfaces concurrently active.
  5180. *
  5181. * This configuration helps the firmware/hardware to support certain
  5182. * features (e.g., roaming) on this primary interface, if the same
  5183. * cannot be supported on the concurrent STA interfaces simultaneously.
  5184. *
  5185. * This configuration is only applicable for a single STA interface on
  5186. * a device and gives the priority for it only over other concurrent STA
  5187. * interfaces.
  5188. *
  5189. * If the device is a multi wiphy/soc, this configuration applies to a
  5190. * single STA interface across the wiphys.
  5191. *
  5192. * 1-Enable (is the primary STA), 0-Disable (is not the primary STA)
  5193. */
  5194. QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79,
  5195. /*
  5196. * 8-bit unsigned value. This attribute can be used to configure the
  5197. * driver to enable/disable FT-over-DS feature. Possible values for
  5198. * this attribute are 1-Enable and 0-Disable.
  5199. */
  5200. QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80,
  5201. /*
  5202. * 8-bit unsigned value. This attribute can be used to configure the
  5203. * firmware to enable/disable ARP/NS offload feature. Possible values
  5204. * for this attribute are 0-Disable and 1-Enable.
  5205. *
  5206. * This attribute is only applicable for STA/P2P-Client interface,
  5207. * and is optional, default behavior is APR/NS offload Enable.
  5208. *
  5209. * This attribute can be set in disconncted and connected state, and
  5210. * will restore to default behavior if interface is closed.
  5211. */
  5212. QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
  5213. /*
  5214. * 8-bit unsigned value. This attribute can be used to configure the
  5215. * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values
  5216. * for this attribute are defined in the enum qca_dbam_config.
  5217. */
  5218. QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83,
  5219. /* 8-bit unsigned value. This attribute takes the QoS/access category
  5220. * value represented by the enum qca_wlan_ac_type and expects the driver
  5221. * to upgrade the UDP frames of BE or BK access category to this access
  5222. * category. This attribute will not modify UDP frames of VO or VI
  5223. * access category. The value of QCA_WLAN_AC_ALL is invalid for this
  5224. * attribute.
  5225. *
  5226. * This will override the DSCP value configured in the frame with the
  5227. * intention to only upgrade the access category. That said, it is not
  5228. * intended to downgrade the access category for the frames.
  5229. * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be
  5230. * disabled, as BK is of the lowest priority and an upgrade to it does
  5231. * not result in any changes for the frames.
  5232. *
  5233. * This attribute behavior is similar to
  5234. * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that
  5235. * only UDP frames of BE or BK access category are upgraded and not
  5236. * UDP frames of VI or VO access category.
  5237. *
  5238. * This attribute is not recommended to be used as it blindly forces all
  5239. * UDP packets of BE or BK access category to a higher access category
  5240. * which could impact the traffic pattern of all apps using UDP and can
  5241. * cause unknown behavior.
  5242. */
  5243. QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84,
  5244. /* 8-bit unsigned value to configure the driver to enable/disable the
  5245. * periodic sounding for Tx beamformer functionality. The default
  5246. * behavior uses algorithm to do sounding based on packet stats.
  5247. *
  5248. * 0 - Default behavior.
  5249. * 1 - Enable the periodic sounding for Tx beamformer.
  5250. * This attribute is used for testing purposes.
  5251. */
  5252. QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85,
  5253. /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end,
  5254. * Userspace sends this information to driver/firmware to configure
  5255. * wfc state. Driver/Firmware uses this information to
  5256. * optimize power savings, rate adaption, roaming, etc.
  5257. *
  5258. * 1 - wfc is on.
  5259. * 0 - wfc is off.
  5260. */
  5261. QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86,
  5262. /* 8-bit unsigned value to configure the driver to enable/disable the
  5263. * EHT EML capability in management frame EHT capabilities.
  5264. * 1 - Enable, 0 - Disable.
  5265. */
  5266. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87,
  5267. /* 8-bit unsigned value to configure the driver with EHT MLO max
  5268. * simultaneous links to be used for MLO connection.
  5269. * The range of the value is 0 to 14.
  5270. */
  5271. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88,
  5272. /* 8-bit unsigned value to configure the driver with EHT MLO maximum
  5273. * number of links to be used for MLO connection.
  5274. * The range of the value is 1 to 16.
  5275. */
  5276. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89,
  5277. /* 8-bit unsigned value to configure the driver with EHT MLO mode.
  5278. * Uses enum qca_wlan_eht_mlo_mode values.
  5279. */
  5280. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90,
  5281. /* Nested attribute with frequencies in u32 attributes to configure a
  5282. * list of allowed 20 MHz channel center frequencies in MHz for AP
  5283. * operation. Whenever performing a channel selection operation, the
  5284. * driver shall generate a new list based on this provided list by
  5285. * filtering out channels that cannot be used at that time due to
  5286. * regulatory or other constraints. The resulting list is used as the
  5287. * list of all allowed channels, i.e., operation on any channel that is
  5288. * not included is not allowed, whenever performing operations like ACS
  5289. * and DFS.
  5290. *
  5291. * Userspace shall configure this before starting the AP and the
  5292. * configuration is valid only from the next BSS start and until the
  5293. * BSS is stopped. The driver shall clear this configuration when the
  5294. * AP is stopped and fall back to the default behavior for subsequent
  5295. * AP operation.
  5296. *
  5297. * The default behavior when this configuration is not applicable is the
  5298. * driver can choose any of the channels supported by the hardware
  5299. * except the channels that cannot be used due to regulatory or other
  5300. * constraints.
  5301. *
  5302. * The driver shall reject this configuration if done after the AP is
  5303. * started. This attribute can be used to specify user's choice of
  5304. * frequencies and static puncture channel list, etc.
  5305. */
  5306. QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91,
  5307. /* Nested attribute to indicate EHT MLO links to be forced active.
  5308. * It contains link MAC address attributes. These nested attributes are
  5309. * of the type NL80211_ATTR_MAC and are used to force enabling of the
  5310. * MLO links corresponding to the indicated link MAC addresses.
  5311. * Subsequently, the links corresponding to the link MAC addresses that
  5312. * are not indicated are forced inactive.
  5313. */
  5314. QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92,
  5315. /* 8-bit unsigned value to configure EMLSR mode entry or exit.
  5316. * Uses enum qca_wlan_emlsr_mode values.
  5317. */
  5318. QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93,
  5319. /* 8-bit unsigned value. This attribute is used to dynamically
  5320. * enable/suspend trigger based UL MU transmission.
  5321. * This is supported in STA mode and the device sends Operating
  5322. * Mode Indication to inform the change as described in
  5323. * IEEE Std 802.11ax-2021, 26.9.
  5324. *
  5325. * This attribute can be configured when the STA is associated
  5326. * to an AP and the configuration is maintained until the current
  5327. * association terminates.
  5328. *
  5329. * By default all UL MU transmissions are enabled.
  5330. *
  5331. * Uses enum qca_ul_mu_config values.
  5332. */
  5333. QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95,
  5334. /* 8-bit unsigned value. Optionally specified along with
  5335. * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected
  5336. * state. This configuration is applicable only for the current
  5337. * connection. This configuration not allowed in disconnected state.
  5338. * This configuration can be sent inside
  5339. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum
  5340. * supported channel width update type per-MLO link.
  5341. *
  5342. * valid values:
  5343. * 0 - The maximum allowed bandwidth change is applicable for both Tx
  5344. * and Rx paths. The driver shall conduct OMI operation as defined
  5345. * in 26.9 (Operating mode indication) or OMN operation as
  5346. * defined in 11.40 (Notification of operating mode
  5347. * changes) in IEEE P802.11-REVme/D2.0 with AP to indicate the
  5348. * change in the maximum allowed operating bandwidth.
  5349. * 1 - Limit the change in maximum allowed bandwidth only to Tx path.
  5350. * In this case the driver doesn't need to conduct OMI/OMN
  5351. * operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is
  5352. * expected to be less than the current connection maximum
  5353. * negotiated bandwidth.
  5354. * For example: Negotiated maximum bandwidth is 160 MHz and the new
  5355. * maximum bandwidth configured is 80 MHz, now the driver limits
  5356. * the maximum bandwidth to 80 MHz only in the Tx path.
  5357. */
  5358. QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96,
  5359. /* 8-bit unsigned value to set EPCS (Emergency Preparedness
  5360. * Communications Service) feature capability
  5361. * 1 - Enable, 0 - Disable.
  5362. *
  5363. * This configuration is used for testing purposes.
  5364. */
  5365. QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97,
  5366. /* 8-bit unsigned value to enable/disable EPCS priority access
  5367. * 1 - Enable, 0 - Disable.
  5368. * The EPCS priority access shall be enabled only when EPCS feature
  5369. * capability is also enabled (see
  5370. * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY).
  5371. *
  5372. * This configuration is used for testing purposes.
  5373. */
  5374. QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98,
  5375. /* 8-bit unsigned value. Used only for representing MLO link ID of a
  5376. * link inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
  5377. */
  5378. QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99,
  5379. /* Array of nested links each identified by
  5380. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in
  5381. * enum qca_wlan_vendor_attr_config, explicit documentation shall be
  5382. * added for the attributes in enum qca_wlan_vendor_attr_config to
  5383. * support per-MLO link configuration through
  5384. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS.
  5385. *
  5386. * Userspace can configure a single link or multiple links with this
  5387. * attribute by nesting the corresponding configuration attributes and
  5388. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
  5389. *
  5390. * Userspace can fetch the configuration attribute values for a single
  5391. * link or multiple links with this attribute by nesting the
  5392. * corresponding configuration attributes and
  5393. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link.
  5394. *
  5395. * For STA interface, this attribute is applicable only in connected
  5396. * state when the current connection is MLO capable. The valid values of
  5397. * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the
  5398. * connected AP MLD links.
  5399. *
  5400. * For AP interface, this configuration applicable only after adding
  5401. * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the
  5402. * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link
  5403. * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to
  5404. * the AP interface.
  5405. */
  5406. QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100,
  5407. /* 16-bit unsigned value to configure power save inactivity timeout in
  5408. * milliseconds.
  5409. *
  5410. * STA enters into power save mode (PM=1) after TX/RX inactivity of time
  5411. * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO.
  5412. *
  5413. * This attribute shall be configured along with
  5414. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when
  5415. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
  5416. * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
  5417. */
  5418. QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101,
  5419. /* 16-bit unsigned value to configure speculative wake interval in
  5420. * milliseconds.
  5421. *
  5422. * STA speculatively wakes up to look for buffered data by AP at
  5423. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after
  5424. * entering into power save. If configured zero, STA wakes up at
  5425. * upcoming DTIM beacon.
  5426. *
  5427. * This attribute shall be configured along with
  5428. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  5429. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
  5430. * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode.
  5431. */
  5432. QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102,
  5433. /* keep last */
  5434. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  5435. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  5436. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  5437. };
  5438. /**
  5439. * enum qca_ul_mu_config - UL MU configuration
  5440. * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended
  5441. * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled
  5442. */
  5443. enum qca_ul_mu_config {
  5444. QCA_UL_MU_SUSPEND = 0,
  5445. QCA_UL_MU_ENABLE = 1,
  5446. };
  5447. /**
  5448. * enum qca_dbam_config - Specifies DBAM config mode
  5449. * @QCA_DBAM_DISABLE: Firmware disables DBAM
  5450. * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when
  5451. * internal criteria are met.
  5452. * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully.
  5453. */
  5454. enum qca_dbam_config {
  5455. QCA_DBAM_DISABLE = 0,
  5456. QCA_DBAM_ENABLE = 1,
  5457. QCA_DBAM_FORCE_ENABLE = 2,
  5458. };
  5459. /**
  5460. * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting
  5461. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute
  5462. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID
  5463. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level
  5464. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag
  5465. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value
  5466. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value
  5467. */
  5468. enum qca_wlan_vendor_attr_wifi_logger_start {
  5469. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  5470. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  5471. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  5472. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  5473. /* keep last */
  5474. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  5475. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX =
  5476. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  5477. };
  5478. /*
  5479. * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data
  5480. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute
  5481. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID
  5482. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value
  5483. * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value
  5484. */
  5485. enum qca_wlan_vendor_attr_wifi_logger_get_ring_data {
  5486. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0,
  5487. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1,
  5488. /* keep last */
  5489. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST,
  5490. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX =
  5491. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1,
  5492. };
  5493. #ifdef WLAN_FEATURE_OFFLOAD_PACKETS
  5494. /**
  5495. * enum wlan_offloaded_packets_control - control commands
  5496. * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets
  5497. * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets
  5498. *
  5499. */
  5500. enum wlan_offloaded_packets_control {
  5501. WLAN_START_OFFLOADED_PACKETS = 1,
  5502. WLAN_STOP_OFFLOADED_PACKETS = 2
  5503. };
  5504. /**
  5505. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  5506. *
  5507. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  5508. * the offloaded data.
  5509. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  5510. * data.
  5511. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  5512. * indication.
  5513. */
  5514. enum qca_wlan_vendor_attr_data_offload_ind {
  5515. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  5516. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  5517. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  5518. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  5519. /* keep last */
  5520. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  5521. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  5522. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  5523. };
  5524. /**
  5525. * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command
  5526. * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS.
  5527. */
  5528. enum qca_wlan_vendor_attr_offloaded_packets {
  5529. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0,
  5530. /* Takes valid value from the enum
  5531. * qca_wlan_offloaded_packets_sending_control
  5532. * Unsigned 32-bit value
  5533. */
  5534. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL,
  5535. /* Unsigned 32-bit value */
  5536. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID,
  5537. /* array of u8 len: Max packet size */
  5538. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA,
  5539. /* 6-byte MAC address used to represent source MAC address */
  5540. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR,
  5541. /* 6-byte MAC address used to represent destination MAC address */
  5542. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR,
  5543. /* Unsigned 32-bit value, in milli seconds */
  5544. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD,
  5545. /* This optional unsigned 16-bit attribute is used for specifying
  5546. * ethernet protocol type. If not specified ethertype defaults to IPv4.
  5547. */
  5548. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE,
  5549. /* keep last */
  5550. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST,
  5551. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX =
  5552. QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1,
  5553. };
  5554. #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */
  5555. /**
  5556. * enum qca_wlan_rssi_monitoring_control - rssi control commands
  5557. * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid
  5558. * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start
  5559. * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop
  5560. */
  5561. enum qca_wlan_rssi_monitoring_control {
  5562. QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0,
  5563. QCA_WLAN_RSSI_MONITORING_START,
  5564. QCA_WLAN_RSSI_MONITORING_STOP,
  5565. };
  5566. /**
  5567. * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring
  5568. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid
  5569. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control
  5570. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi
  5571. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi
  5572. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid
  5573. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi
  5574. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last
  5575. * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max
  5576. */
  5577. enum qca_wlan_vendor_attr_rssi_monitoring {
  5578. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0,
  5579. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL,
  5580. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID,
  5581. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI,
  5582. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI,
  5583. /* attributes to be used/received in callback */
  5584. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID,
  5585. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI,
  5586. /* keep last */
  5587. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST,
  5588. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX =
  5589. QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1,
  5590. };
  5591. /**
  5592. * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command
  5593. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5594. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID
  5595. * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd
  5596. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID:
  5597. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info
  5598. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz
  5599. * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC
  5600. * address
  5601. * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being
  5602. * created
  5603. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use
  5604. * NCS_SK_TYPE/PMK/SCID instead
  5605. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS
  5606. * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info
  5607. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id
  5608. * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids
  5609. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response
  5610. * code: accept/reject
  5611. * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address
  5612. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by
  5613. * driver
  5614. * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by
  5615. * driver
  5616. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration
  5617. * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type
  5618. * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO
  5619. * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the
  5620. * PMKID
  5621. * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase
  5622. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name
  5623. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule
  5624. * update:
  5625. * BIT_0: NSS Update
  5626. * BIT_1: Channel list update
  5627. * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss
  5628. * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL
  5629. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH:
  5630. * 0:20 MHz,
  5631. * 1:40 MHz,
  5632. * 2:80 MHz,
  5633. * 3:160 MHz
  5634. * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width
  5635. * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array
  5636. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating
  5637. * transport port used by NDP.
  5638. * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating
  5639. * protocol used by NDP and assigned by the Internet Assigned Numbers Authority
  5640. * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
  5641. * @QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if
  5642. * NDP remote peer supports NAN NDPE. 1:support 0:not support
  5643. * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2
  5644. * Service Id is the first 48 bits of the SHA-256 hash of the Service Name.
  5645. * A lower-case representation of the Service Name shall be used to
  5646. * calculate the Service ID.
  5647. * Array of u8: length is 6 bytes
  5648. * This attribute is used and optional for ndp indication.
  5649. * @QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES: Unsigned 8-bit value for Cipher
  5650. * Suite
  5651. * This attribute is used and optional in ndp request, ndp response, ndp
  5652. * indication, and ndp confirm.
  5653. * This attribute is used to indicate the Capabilities field of Cipher Suite
  5654. * Information attribute (CSIA) of NDP frames as defined in Wi-Fi Aware
  5655. * Specification v4.0, 9.5.21.2, Table 122.
  5656. * Firmware can accept or ignore any of the capability bits.
  5657. * @QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED: Indicate if the GTK protection is
  5658. * required for NDP. NLA_FLAG attribute.
  5659. * This attribute can be used in ndp request, ndp response, ndp indication, and
  5660. * ndp confirm.
  5661. * GTK protection required is indicated in the NDPE attribute of NAN action
  5662. * frame (NAF) during NDP negotiation as defined in Wi-Fi Aware Specification
  5663. * v4.0, 9.5.16.2.
  5664. * If the device and peer supports GTKSA and if GTK protection required bit is
  5665. * set in NDPE IE, devices will share GTK to each other in SKDA of Data Path
  5666. * Security Confirm and Data Path Security Install frames of NDP negotiation to
  5667. * send and receive protected group addressed data frames from each other.
  5668. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute
  5669. * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type
  5670. */
  5671. enum qca_wlan_vendor_attr_ndp_params {
  5672. QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0,
  5673. QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1,
  5674. QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2,
  5675. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3,
  5676. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4,
  5677. QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5,
  5678. QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6,
  5679. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7,
  5680. QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8,
  5681. QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9,
  5682. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10,
  5683. QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11,
  5684. QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12,
  5685. QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13,
  5686. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14,
  5687. QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15,
  5688. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16,
  5689. QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17,
  5690. QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18,
  5691. QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19,
  5692. QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20,
  5693. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21,
  5694. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22,
  5695. QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23,
  5696. QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24,
  5697. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25,
  5698. QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26,
  5699. QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27,
  5700. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28,
  5701. QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29,
  5702. QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
  5703. QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
  5704. QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32,
  5705. QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33,
  5706. /* keep last */
  5707. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,
  5708. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX =
  5709. QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1,
  5710. };
  5711. /**
  5712. * enum qca_wlan_ndp_sub_cmd - NDP sub commands types for
  5713. * QCA_NL80211_VENDOR_SUBCMD_NDP.
  5714. * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value
  5715. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN
  5716. * data path interface.
  5717. * This command was initially designed to both create and start a NAN
  5718. * data path interface. However, changes to Linux 5.12 no longer allow
  5719. * interface creation via vendor commands. When the driver advertises
  5720. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5721. * userspace must explicitly first create the interface using
  5722. * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command
  5723. * to start the interface.
  5724. * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN
  5725. * data path interface.
  5726. * This command was initially designed to both stop and delete a NAN
  5727. * data path interface. However, changes to Linux 5.12 no longer allow
  5728. * interface deletion via vendor commands. When the driver advertises
  5729. * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI
  5730. * userspace must explicitly delete the interface using
  5731. * NL80211_CMD_DEL_INTERFACE after calling this command.
  5732. * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above
  5733. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session
  5734. * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above
  5735. * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end
  5736. * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above
  5737. * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request
  5738. * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete
  5739. * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request
  5740. * being received
  5741. * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule
  5742. * update
  5743. */
  5744. enum qca_wlan_ndp_sub_cmd {
  5745. QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0,
  5746. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1,
  5747. QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2,
  5748. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3,
  5749. QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4,
  5750. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5,
  5751. QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6,
  5752. QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7,
  5753. QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8,
  5754. QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9,
  5755. QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10,
  5756. QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11,
  5757. QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12
  5758. };
  5759. /**
  5760. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  5761. * information. These attributes are sent as part of
  5762. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  5763. * attributes correspond to a single channel.
  5764. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16)
  5765. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5766. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16)
  5767. * with flags specified in qca_wlan_vendor_channel_prop_flags_ext.
  5768. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency
  5769. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum
  5770. * regulatory transmission power
  5771. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum
  5772. * transmission power
  5773. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum
  5774. * transmission power
  5775. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory
  5776. * class id
  5777. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum
  5778. * antenna gain in dbm
  5779. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0
  5780. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1
  5781. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0
  5782. * center frequency in MHz.
  5783. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht
  5784. * segment 0 in center freq in MHz. (this is the legacy alias)
  5785. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1
  5786. * center frequency in MHz.
  5787. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht
  5788. * segment 1 in center freq in MHz. (this is the legacy alias)
  5789. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits
  5790. * flag indicating the AP power modes supported by the channel, as given by
  5791. * enum qca_wlan_vendor_external_acs_chan_power_level.
  5792. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested
  5793. * attributes for each power mode. It takes attr as defined in enum
  5794. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5795. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1:
  5796. * This indicates the overlapping 320 MHz center frequency in MHz, if the
  5797. * given primary channel supports more than one 320 MHz channel bonding.
  5798. *
  5799. */
  5800. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  5801. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  5802. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  5803. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  5804. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  5805. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  5806. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  5807. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  5808. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  5809. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  5810. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  5811. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  5812. /*
  5813. * A bitmask (u32) with flags specified in
  5814. * enum qca_wlan_vendor_channel_prop_flags_2.
  5815. */
  5816. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11,
  5817. /*
  5818. * Segment 0 in MHz (u32).
  5819. *
  5820. * For 20/40/80 MHz bandwidth, this indicates the channel center
  5821. * frequency index for the 20/40/80 MHz operating channel.
  5822. * For 160 MHz bandwidth, this indicates the channel center
  5823. * frequency of the primary 80 MHz channel.
  5824. * For 320 MHz bandwidth, indicates the channel center frequency
  5825. * of the primary 160 MHz channel.
  5826. *
  5827. * To maintain backward compatibility,
  5828. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5829. * is also maintained.
  5830. */
  5831. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12,
  5832. /* Legacy alias for the Segment 0 attribute.
  5833. *
  5834. * VHT segment 0 in MHz (u32) and the attribute is mandatory.
  5835. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5836. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5837. * along with
  5838. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0.
  5839. *
  5840. * If both the driver and user-space application supports the 6 GHz
  5841. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0
  5842. * is deprecated and
  5843. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5844. * should be used.
  5845. *
  5846. * To maintain backward compatibility,
  5847. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0
  5848. * is still used if either of the driver or user space application
  5849. * doesn't support the 6 GHz band.
  5850. */
  5851. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 =
  5852. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0,
  5853. /*
  5854. * Segment 1 in MHz (u32).
  5855. *
  5856. * For 20/40/80 MHz bandwidth, this is set to 0.
  5857. * For 160 MHz bandwidth, indicates the channel center frequency of the
  5858. * 160 MHz channel.
  5859. * For 320 MHz bandwidth, indicates the channel center frequency of the
  5860. * 320 MHz channel.
  5861. *
  5862. * To maintain backward compatibility,
  5863. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5864. * is also maintained.
  5865. */
  5866. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13,
  5867. /* Legacy alias for the Segment 1 attribute.
  5868. *
  5869. * VHT segment 1 in MHz (u32) and the attribute is mandatory.
  5870. * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes
  5871. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5872. * along with
  5873. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1.
  5874. *
  5875. * If both the driver and user-space application supports the 6 GHz
  5876. * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1
  5877. * is deprecated and
  5878. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5879. * should be considered.
  5880. *
  5881. * To maintain backward compatibility,
  5882. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1
  5883. * is still used if either of the driver or user space application
  5884. * doesn't support the 6 GHz band.
  5885. */
  5886. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 =
  5887. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1,
  5888. /*
  5889. * 16-bit attribute of bits indicating the AP power modes supported by
  5890. * the channel (u16).
  5891. * Note: Currently, only 3 bits are used in the attribute and each bit
  5892. * corresponds to the power mode mentioned in enum
  5893. * qca_wlan_vendor_external_acs_chan_power_level and a given bit is
  5894. * set if the associated mode is supported.
  5895. */
  5896. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES
  5897. = 14,
  5898. /* Array of nested attributes for each power mode. It takes attr as
  5899. * defined in enum
  5900. * qca_wlan_vendor_external_acs_event_chan_power_info_attr.
  5901. */
  5902. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15,
  5903. /*
  5904. * This indicates the overlapping 320 MHz center frequency in MHz
  5905. * (u32), if the given primary channel supports more than one
  5906. * 320 MHz channel bonding.
  5907. *
  5908. * Example:
  5909. * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0
  5910. * center frequency (primary 160 MHz) is 6185 MHz and there can be two
  5911. * possible segment 2 frequencies for this (320 MHz center
  5912. * frequencies):
  5913. *
  5914. * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding
  5915. * from frequency 5945 MHz - 6265 MHz
  5916. * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding
  5917. * from frequency 6105 MHz - 6425 MHz
  5918. *
  5919. * In this case,
  5920. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will
  5921. * return 6185 MHz.
  5922. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will
  5923. * return 6105 MHz.
  5924. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5925. * will return 6265 MHz.
  5926. */
  5927. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1
  5928. = 16,
  5929. /* keep last */
  5930. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  5931. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  5932. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  5933. };
  5934. /**
  5935. * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid
  5936. * values that the vendor external ACS channel power attribute
  5937. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can
  5938. * take.
  5939. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode
  5940. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode
  5941. * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode
  5942. */
  5943. enum qca_wlan_vendor_external_acs_chan_power_level {
  5944. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0,
  5945. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1,
  5946. QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2,
  5947. };
  5948. /**
  5949. * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested
  5950. * attributes for power mode type and power values corresponding to that.
  5951. * These attributes are sent as part of
  5952. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR.
  5953. */
  5954. enum qca_wlan_vendor_external_acs_event_chan_power_info_attr {
  5955. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0,
  5956. /*
  5957. * Power mode (u8) takes the values defined in enum
  5958. * qca_wlan_vendor_external_acs_chan_power_mode
  5959. */
  5960. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE
  5961. = 1,
  5962. /*
  5963. * Indicates if power value is a PSD/EIRP value (flag). If flag is
  5964. * present, it indicates a PSD value.
  5965. */
  5966. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2,
  5967. /*
  5968. * Power value (u32) PSD/EIRP as indicated by
  5969. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG,
  5970. * for power mode corresponding to the
  5971. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE.
  5972. * Units for PSD - dBm/MHz
  5973. * Units for EIRP - dBm
  5974. */
  5975. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE
  5976. = 3,
  5977. /* keep last */
  5978. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST,
  5979. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX =
  5980. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1,
  5981. };
  5982. /**
  5983. * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command
  5984. * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host
  5985. * driver.
  5986. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to
  5987. * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why
  5988. * ACS need to be started
  5989. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does
  5990. * driver supports spectral scanning or not
  5991. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is
  5992. * offloaded to firmware.
  5993. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver
  5994. * provides additional channel capability as part of scan operation.
  5995. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate
  5996. * interface status is UP
  5997. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of
  5998. * interface. It takes one of nl80211_iftype values.
  5999. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound
  6000. * of chan width. ACS logic should try to get a channel with specified width
  6001. * if not found then look for lower values.
  6002. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands
  6003. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as
  6004. * a/b/g/n/ac.
  6005. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list
  6006. * among which ACS should choose best frequency.
  6007. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the
  6008. * driver which will have <channel(u8), weight(u8)> format as array of
  6009. * nested values.
  6010. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute
  6011. * for each channel. It takes attr as defined in
  6012. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as
  6013. * PCL mandatory, PCL preferred, etc.It uses values defined in enum
  6014. * qca_wlan_vendor_attr_external_acs_policy.
  6015. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF
  6016. * Operating Parameter (RROP) availability information (u16). It uses values
  6017. * defined in enum qca_wlan_vendor_attr_rropavail_info.
  6018. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to
  6019. * indicate if driver supports 6 GHz AFC trigger for External ACS.
  6020. */
  6021. enum qca_wlan_vendor_attr_external_acs_event {
  6022. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  6023. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  6024. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  6025. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  6026. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  6027. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  6028. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  6029. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  6030. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  6031. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  6032. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  6033. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  6034. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  6035. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13,
  6036. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14,
  6037. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15,
  6038. /* keep last */
  6039. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  6040. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  6041. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  6042. };
  6043. enum qca_iface_type {
  6044. QCA_IFACE_TYPE_STA,
  6045. QCA_IFACE_TYPE_AP,
  6046. QCA_IFACE_TYPE_P2P_CLIENT,
  6047. QCA_IFACE_TYPE_P2P_GO,
  6048. QCA_IFACE_TYPE_IBSS,
  6049. QCA_IFACE_TYPE_TDLS,
  6050. };
  6051. /**
  6052. * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command
  6053. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and
  6054. * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST.
  6055. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value
  6056. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number
  6057. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight
  6058. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency
  6059. * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask
  6060. */
  6061. enum qca_wlan_vendor_attr_pcl_config {
  6062. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  6063. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  6064. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  6065. QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3,
  6066. QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4,
  6067. };
  6068. enum qca_set_band {
  6069. QCA_SETBAND_AUTO = 0,
  6070. QCA_SETBAND_5G = BIT(0),
  6071. QCA_SETBAND_2G = BIT(1),
  6072. QCA_SETBAND_6G = BIT(2),
  6073. };
  6074. /**
  6075. * enum set_reset_packet_filter - set packet filter control commands
  6076. * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter
  6077. * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter
  6078. * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data
  6079. * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data
  6080. * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter
  6081. * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter
  6082. */
  6083. enum set_reset_packet_filter {
  6084. QCA_WLAN_SET_PACKET_FILTER = 1,
  6085. QCA_WLAN_GET_PACKET_FILTER = 2,
  6086. QCA_WLAN_WRITE_PACKET_FILTER = 3,
  6087. QCA_WLAN_READ_PACKET_FILTER = 4,
  6088. QCA_WLAN_ENABLE_PACKET_FILTER = 5,
  6089. QCA_WLAN_DISABLE_PACKET_FILTER = 6,
  6090. };
  6091. /**
  6092. * enum qca_wlan_vendor_attr_packet_filter - APF control commands
  6093. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid
  6094. * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID
  6095. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version
  6096. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length
  6097. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset
  6098. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions
  6099. * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program
  6100. * section in packet filter buffer
  6101. */
  6102. enum qca_wlan_vendor_attr_packet_filter {
  6103. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0,
  6104. QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER,
  6105. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION,
  6106. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID,
  6107. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE,
  6108. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET,
  6109. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM,
  6110. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH,
  6111. /* keep last */
  6112. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST,
  6113. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX =
  6114. QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1,
  6115. };
  6116. /**
  6117. * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor
  6118. * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS.
  6119. */
  6120. enum qca_wlan_vendor_attr_wake_stats {
  6121. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0,
  6122. /* Unsigned 32-bit value indicating the total count of wake event */
  6123. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE,
  6124. /* Array of individual wake count, each index representing wake reason
  6125. */
  6126. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR,
  6127. /* Unsigned 32-bit value representing wake count array */
  6128. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ,
  6129. /* Unsigned 32-bit total wake count value of driver/fw */
  6130. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE,
  6131. /* Array of wake stats of driver/fw */
  6132. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR,
  6133. /* Unsigned 32-bit total wake count value of driver/fw */
  6134. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ,
  6135. /* Unsigned 32-bit total wake count value of packets received */
  6136. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE,
  6137. /* Unsigned 32-bit wake count value unicast packets received */
  6138. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT,
  6139. /* Unsigned 32-bit wake count value multicast packets received */
  6140. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT,
  6141. /* Unsigned 32-bit wake count value broadcast packets received */
  6142. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT,
  6143. /* Unsigned 32-bit wake count value of ICMP packets */
  6144. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT,
  6145. /* Unsigned 32-bit wake count value of ICMP6 packets */
  6146. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT,
  6147. /* Unsigned 32-bit value ICMP6 router advertisement */
  6148. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA,
  6149. /* Unsigned 32-bit value ICMP6 neighbor advertisement */
  6150. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA,
  6151. /* Unsigned 32-bit value ICMP6 neighbor solicitation */
  6152. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS,
  6153. /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */
  6154. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT,
  6155. /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */
  6156. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT,
  6157. /* Unsigned 32-bit wake count value of receive side multicast */
  6158. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT,
  6159. /* Unsigned 32-bit wake count value of a given RSSI breach */
  6160. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT,
  6161. /* Unsigned 32-bit wake count value of low RSSI */
  6162. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT,
  6163. /* Unsigned 32-bit value GSCAN count */
  6164. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT,
  6165. /* Unsigned 32-bit value PNO complete count */
  6166. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT,
  6167. /* Unsigned 32-bit value PNO match count */
  6168. QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT,
  6169. /* keep last */
  6170. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST,
  6171. QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX =
  6172. QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1,
  6173. };
  6174. /**
  6175. * enum qca_wlan_vendor_thermal_level - Defines various thermal levels
  6176. * configured by userspace to the driver/firmware. The values will be
  6177. * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute.
  6178. * The driver/firmware takes necessary actions requested by userspace
  6179. * such as throttling wifi tx etc. in order to mitigate high temperature.
  6180. *
  6181. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions.
  6182. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly.
  6183. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately.
  6184. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely.
  6185. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached.
  6186. * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached.
  6187. */
  6188. enum qca_wlan_vendor_thermal_level {
  6189. QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0,
  6190. QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1,
  6191. QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2,
  6192. QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3,
  6193. QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4,
  6194. QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5,
  6195. };
  6196. /**
  6197. * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set
  6198. * cmd value. Used for NL attributes for data used by
  6199. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6200. */
  6201. enum qca_wlan_vendor_attr_thermal_cmd {
  6202. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0,
  6203. /* The value of command, driver will implement different operations
  6204. * according to this value. It uses values defined in
  6205. * enum qca_wlan_vendor_attr_thermal_cmd_type.
  6206. * u32 attribute.
  6207. */
  6208. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1,
  6209. /* Userspace uses this attribute to configure thermal level to the
  6210. * driver/firmware, or get thermal level from the driver/firmware.
  6211. * Used in request or response, u32 attribute,
  6212. * possible values are defined in enum qca_wlan_vendor_thermal_level.
  6213. */
  6214. QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2,
  6215. /* Userspace uses this attribute to configure the time in which the
  6216. * driver/firmware should complete applying settings it received from
  6217. * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL
  6218. * command type. Used in request, u32 attribute, value is in
  6219. * milliseconds. A value of zero indicates to apply the settings
  6220. * immediately. The driver/firmware can delay applying the configured
  6221. * thermal settings within the time specified in this attribute if
  6222. * there is any critical ongoing operation.
  6223. */
  6224. QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3,
  6225. /* Nested attribute, driver/firmware uses this attribute to report
  6226. * thermal stats of different thermal levels to userspace when requested
  6227. * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command
  6228. * type. This attribute contains nested array of records of thermal
  6229. * statistics of multiple levels. The attributes used inside this nested
  6230. * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats.
  6231. */
  6232. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4,
  6233. /* keep last */
  6234. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST,
  6235. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX =
  6236. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1
  6237. };
  6238. /**
  6239. * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for
  6240. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd
  6241. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the
  6242. * thermal command types sent to driver.
  6243. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to
  6244. * get thermal shutdown configuration parameters for display. Parameters
  6245. * responded from driver are defined in
  6246. * enum qca_wlan_vendor_attr_get_thermal_params_rsp.
  6247. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to
  6248. * get temperature. Host should respond with a temperature data. It is defined
  6249. * in enum qca_wlan_vendor_attr_thermal_get_temperature.
  6250. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal
  6251. * suspend action.
  6252. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal
  6253. * resume action.
  6254. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to
  6255. * the driver/firmware.
  6256. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current
  6257. * thermal level from the driver/firmware. The driver should respond with a
  6258. * thermal level defined in enum qca_wlan_vendor_thermal_level.
  6259. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the
  6260. * current thermal stats from the driver/firmware. The driver should respond
  6261. * with stats of all thermal levels encapsulated in attribute
  6262. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS.
  6263. * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear
  6264. * the current thermal stats all thermal levels maintained in the
  6265. * driver/firmware and start counting from zero again.
  6266. */
  6267. enum qca_wlan_vendor_attr_thermal_cmd_type {
  6268. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS,
  6269. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE,
  6270. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND,
  6271. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME,
  6272. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL,
  6273. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL,
  6274. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS,
  6275. QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS,
  6276. };
  6277. /**
  6278. * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes
  6279. * to get chip temperature by user.
  6280. * enum values are used for NL attributes for data used by
  6281. * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used
  6282. * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command.
  6283. */
  6284. enum qca_wlan_vendor_attr_thermal_get_temperature {
  6285. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0,
  6286. /* Temperature value (degree Celsius) from driver.
  6287. * u32 attribute.
  6288. */
  6289. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA,
  6290. /* keep last */
  6291. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST,
  6292. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX =
  6293. QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1,
  6294. };
  6295. /**
  6296. * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to
  6297. * report thermal events from driver to user space.
  6298. * enum values are used for NL attributes for data used by
  6299. * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command.
  6300. */
  6301. enum qca_wlan_vendor_attr_thermal_event {
  6302. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0,
  6303. /* Temperature value (degree Celsius) from driver.
  6304. * u32 attribute.
  6305. */
  6306. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE,
  6307. /* Indication of resume completion from power save mode.
  6308. * NLA_FLAG attribute.
  6309. */
  6310. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE,
  6311. /* Thermal level from the driver.
  6312. * u32 attribute. Possible values are defined in
  6313. * enum qca_wlan_vendor_thermal_level.
  6314. */
  6315. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3,
  6316. /* keep last */
  6317. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST,
  6318. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX =
  6319. QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1,
  6320. };
  6321. /**
  6322. * enum qca_vendor_element_id - QCA Vendor Specific element types
  6323. *
  6324. * These values are used to identify QCA Vendor Specific elements. The
  6325. * payload of the element starts with the three octet OUI (OUI_QCA) and
  6326. * is followed by a single octet type which is defined by this enum.
  6327. *
  6328. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  6329. * This element can be used to specify preference order for supported
  6330. * channels. The channels in this list are in preference order (the first
  6331. * one has the highest preference) and are described as a pair of
  6332. * (global) Operating Class and Channel Number (each one octet) fields.
  6333. *
  6334. * This extends the standard P2P functionality by providing option to have
  6335. * more than one preferred operating channel. When this element is present,
  6336. * it replaces the preference indicated in the Operating Channel attribute.
  6337. * For supporting other implementations, the Operating Channel attribute is
  6338. * expected to be used with the highest preference channel. Similarly, all
  6339. * the channels included in this Preferred channel list element are
  6340. * expected to be included in the Channel List attribute.
  6341. *
  6342. * This vendor element may be included in GO Negotiation Request, P2P
  6343. * Invitation Request, and Provision Discovery Request frames.
  6344. *
  6345. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  6346. * This element can be used for pre-standard publication testing of HE
  6347. * before P802.11ax draft assigns the element ID. The payload of this
  6348. * vendor specific element is defined by the latest P802.11ax draft.
  6349. * Please note that the draft is still work in progress and this element
  6350. * payload is subject to change.
  6351. *
  6352. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  6353. * This element can be used for pre-standard publication testing of HE
  6354. * before P802.11ax draft assigns the element ID. The payload of this
  6355. * vendor specific element is defined by the latest P802.11ax draft.
  6356. * Please note that the draft is still work in progress and this element
  6357. * payload is subject to change.
  6358. *
  6359. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  6360. * element).
  6361. * This element can be used for pre-standard publication testing of HE
  6362. * before P802.11ax draft assigns the element ID extension. The payload of
  6363. * this vendor specific element is defined by the latest P802.11ax draft
  6364. * (not including the Element ID Extension field). Please note that the
  6365. * draft is still work in progress and this element payload is subject to
  6366. * change.
  6367. *
  6368. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  6369. * This element can be used for pre-standard publication testing of HE
  6370. * before P802.11ax draft assigns the element ID extension. The payload of
  6371. * this vendor specific element is defined by the latest P802.11ax draft
  6372. * (not including the Element ID Extension field). Please note that the
  6373. * draft is still work in progress and this element payload is subject to
  6374. * change.
  6375. *
  6376. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  6377. * This element can be used for pre-standard publication testing of HE
  6378. * before P802.11ax draft assigns the element ID extension. The payload of
  6379. * this vendor specific element is defined by the latest P802.11ax draft
  6380. * (not including the Element ID Extension field). Please note that the
  6381. * draft is still work in progress and this element payload is subject to
  6382. * change.
  6383. */
  6384. enum qca_vendor_element_id {
  6385. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  6386. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  6387. QCA_VENDOR_ELEM_HE_OPER = 2,
  6388. QCA_VENDOR_ELEM_RAPS = 3,
  6389. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  6390. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  6391. };
  6392. /**
  6393. * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture
  6394. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32)
  6395. * Specify the TSF command. Possible values are defined in
  6396. * &enum qca_tsf_cmd.
  6397. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64)
  6398. * This attribute contains TSF timer value. This attribute is only available
  6399. * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6400. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64)
  6401. * This attribute contains SOC timer value at TSF capture. This attribute is
  6402. * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response.
  6403. * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32)
  6404. * This attribute is used to provide TSF sync interval and only applicable when
  6405. * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the
  6406. * driver will use the default value. Time unit is in milliseconds.
  6407. */
  6408. enum qca_vendor_attr_tsf_cmd {
  6409. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  6410. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  6411. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  6412. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  6413. QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL,
  6414. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  6415. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  6416. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  6417. };
  6418. /**
  6419. * enum qca_tsf_cmd: TSF driver commands
  6420. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  6421. * @QCA_TSF_GET: Get TSF capture value
  6422. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  6423. * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target
  6424. * will automatically send TSF report to the host. To query
  6425. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be
  6426. * initiated first.
  6427. * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target
  6428. * will not automatically send TSF report to the host. If
  6429. * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and
  6430. * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this
  6431. * operation needs to be initiated.
  6432. * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically
  6433. * fetches TSF and host time mapping from the firmware with interval configured
  6434. * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the
  6435. * interval value is not provided the driver will use the default value. The
  6436. * userspace can query the TSF and host time mapping via the %QCA_TSF_GET
  6437. * command.
  6438. * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature.
  6439. */
  6440. enum qca_tsf_cmd {
  6441. QCA_TSF_CAPTURE,
  6442. QCA_TSF_GET,
  6443. QCA_TSF_SYNC_GET,
  6444. QCA_TSF_AUTO_REPORT_ENABLE,
  6445. QCA_TSF_AUTO_REPORT_DISABLE,
  6446. QCA_TSF_SYNC_START,
  6447. QCA_TSF_SYNC_STOP,
  6448. };
  6449. /**
  6450. * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list
  6451. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value
  6452. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type
  6453. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list
  6454. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight
  6455. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last
  6456. * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max
  6457. */
  6458. enum qca_vendor_attr_get_preferred_freq_list {
  6459. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  6460. /* A 32-unsigned value; the interface type/mode for which the preferred
  6461. * frequency list is requested (see enum qca_iface_type for possible
  6462. * values); used in both south- and north-bound.
  6463. */
  6464. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  6465. /* An array of 32-unsigned values; values are frequency (MHz); used
  6466. * in north-bound only.
  6467. */
  6468. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  6469. /* An array of nested values as per enum
  6470. * qca_wlan_vendor_attr_pcl_config attribute.
  6471. * Each element contains frequency (MHz), weight, and flag
  6472. * bit mask indicating how the frequency should be used in P2P
  6473. * negotiation.
  6474. */
  6475. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL,
  6476. /* keep last */
  6477. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  6478. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  6479. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  6480. };
  6481. /**
  6482. * enum qca_vendor_attr_probable_oper_channel - channel hint
  6483. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value
  6484. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type
  6485. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value
  6486. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last
  6487. * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max
  6488. */
  6489. enum qca_vendor_attr_probable_oper_channel {
  6490. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  6491. /* 32-bit unsigned value; indicates the connection/iface type likely to
  6492. * come on this channel (see enum qca_iface_type).
  6493. */
  6494. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  6495. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  6496. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  6497. /* keep last */
  6498. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  6499. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  6500. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  6501. };
  6502. /**
  6503. * enum qca_wlan_vendor_attr_gw_param_config - gateway param config
  6504. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid
  6505. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr
  6506. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr
  6507. * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr
  6508. */
  6509. enum qca_wlan_vendor_attr_gw_param_config {
  6510. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0,
  6511. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR,
  6512. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR,
  6513. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR,
  6514. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST,
  6515. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX =
  6516. QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1,
  6517. };
  6518. /**
  6519. * enum drv_dbs_capability - DBS capability
  6520. * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled
  6521. * @DRV_DBS_CAPABILITY_1X1: 1x1
  6522. * @DRV_DBS_CAPABILITY_2X2: 2x2
  6523. */
  6524. enum drv_dbs_capability {
  6525. DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */
  6526. DRV_DBS_CAPABILITY_1X1,
  6527. DRV_DBS_CAPABILITY_2X2,
  6528. };
  6529. /**
  6530. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  6531. *
  6532. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  6533. */
  6534. enum qca_vendor_attr_txpower_decr_db {
  6535. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  6536. /*
  6537. * 8-bit unsigned value to indicate the reduction of TX power in dB for
  6538. * a virtual interface.
  6539. */
  6540. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  6541. /* keep last */
  6542. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  6543. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  6544. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  6545. };
  6546. /**
  6547. * enum qca_vendor_attr_ota_test - Enable OTA test
  6548. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value
  6549. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test
  6550. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last
  6551. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max
  6552. */
  6553. enum qca_vendor_attr_ota_test {
  6554. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  6555. /* 8-bit unsigned value to indicate if OTA test is enabled */
  6556. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  6557. /* keep last */
  6558. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  6559. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  6560. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  6561. };
  6562. /** enum qca_vendor_attr_txpower_scale - vendor sub commands index
  6563. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value
  6564. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  6565. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value
  6566. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value
  6567. */
  6568. enum qca_vendor_attr_txpower_scale {
  6569. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  6570. /* 8-bit unsigned value to indicate the scaling of tx power */
  6571. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  6572. /* keep last */
  6573. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  6574. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  6575. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  6576. };
  6577. /**
  6578. * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index
  6579. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value
  6580. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value
  6581. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value
  6582. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value
  6583. */
  6584. enum qca_vendor_attr_txpower_scale_decr_db {
  6585. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID,
  6586. /* 8-bit unsigned value to indicate the scaling of tx power */
  6587. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB,
  6588. /* keep last */
  6589. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST,
  6590. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX =
  6591. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1
  6592. };
  6593. /**
  6594. * enum dfs_mode - state of DFS mode
  6595. * @DFS_MODE_NONE: DFS mode attribute is none
  6596. * @DFS_MODE_ENABLE: DFS mode is enabled
  6597. * @DFS_MODE_DISABLE: DFS mode is disabled
  6598. * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning
  6599. */
  6600. enum dfs_mode {
  6601. DFS_MODE_NONE,
  6602. DFS_MODE_ENABLE,
  6603. DFS_MODE_DISABLE,
  6604. DFS_MODE_DEPRIORITIZE
  6605. };
  6606. /**
  6607. * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes
  6608. * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY.
  6609. *
  6610. * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8)
  6611. * DFS mode for ACS operation from enum qca_acs_dfs_mode.
  6612. *
  6613. * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8)
  6614. * channel number hint for ACS operation, if valid channel is specified then
  6615. * ACS operation gives priority to this channel.
  6616. * Note: If both the driver and user space application supports the 6 GHz band,
  6617. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT
  6618. * should be used.
  6619. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT
  6620. * is still used if either of the driver or user space application doesn't
  6621. * support the 6 GHz band.
  6622. *
  6623. * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32).
  6624. * Channel center frequency (MHz) hint for ACS operation, if a valid center
  6625. * frequency is specified, ACS operation gives priority to this channel.
  6626. */
  6627. enum qca_wlan_vendor_attr_acs_config {
  6628. QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0,
  6629. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1,
  6630. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2,
  6631. QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3,
  6632. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST,
  6633. QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX =
  6634. QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1,
  6635. };
  6636. /**
  6637. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  6638. */
  6639. enum qca_wlan_vendor_attr_get_hw_capability {
  6640. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  6641. /*
  6642. * Antenna isolation
  6643. * An attribute used in the response.
  6644. * The content of this attribute is encoded in a byte array. Each byte
  6645. * value is an antenna isolation value. The array length is the number
  6646. * of antennas.
  6647. */
  6648. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  6649. /*
  6650. * Request HW capability
  6651. * An attribute used in the request.
  6652. * The content of this attribute is a u32 array for one or more of
  6653. * hardware capabilities (attribute IDs) that are being requested. Each
  6654. * u32 value has a value from this
  6655. * enum qca_wlan_vendor_attr_get_hw_capability
  6656. * identifying which capabilities are requested.
  6657. */
  6658. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  6659. /* keep last */
  6660. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  6661. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  6662. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  6663. };
  6664. /**
  6665. * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config -
  6666. * config params for sta roam policy
  6667. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid
  6668. * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels
  6669. * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL:
  6670. * If sta should skip unsafe channels or not in scanning
  6671. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST:
  6672. * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute
  6673. */
  6674. enum qca_wlan_vendor_attr_sta_connect_roam_policy_config {
  6675. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0,
  6676. QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE,
  6677. QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL,
  6678. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST,
  6679. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX =
  6680. QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1,
  6681. };
  6682. /* Attributes for FTM commands and events */
  6683. /**
  6684. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  6685. *
  6686. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  6687. * enum qca_wlan_vendor_attr_loc_capa_flags.
  6688. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  6689. * of measurement sessions that can run concurrently.
  6690. * Default is one session (no session concurrency).
  6691. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  6692. * peers that are supported in running sessions. For example,
  6693. * if the value is 8 and maximum number of sessions is 2, you can
  6694. * have one session with 8 unique peers, or 2 sessions with 4 unique
  6695. * peers each, and so on.
  6696. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  6697. * of bursts per peer, as an exponent (2^value). Default is 0,
  6698. * meaning no multi-burst support.
  6699. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  6700. * of measurement exchanges allowed in a single burst.
  6701. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  6702. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  6703. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  6704. */
  6705. enum qca_wlan_vendor_attr_loc_capa {
  6706. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  6707. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  6708. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  6709. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  6710. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  6711. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  6712. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  6713. /* keep last */
  6714. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  6715. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  6716. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  6717. };
  6718. /**
  6719. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  6720. *
  6721. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  6722. * can be configured as an FTM responder (for example, an AP that
  6723. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  6724. * will be supported if set.
  6725. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  6726. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  6727. * will be supported if set.
  6728. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  6729. * supports immediate (ASAP) response.
  6730. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  6731. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  6732. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  6733. * requesting AOA measurements as part of an FTM session.
  6734. */
  6735. enum qca_wlan_vendor_attr_loc_capa_flags {
  6736. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  6737. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  6738. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  6739. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  6740. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  6741. };
  6742. /**
  6743. * enum qca_wlan_ani_setting - ANI setting type
  6744. * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level
  6745. * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter
  6746. */
  6747. enum qca_wlan_ani_setting {
  6748. QCA_WLAN_ANI_SETTING_AUTO = 0,
  6749. QCA_WLAN_ANI_SETTING_FIXED = 1,
  6750. };
  6751. /**
  6752. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  6753. *
  6754. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8)
  6755. * Channel number on which Access Point should restart.
  6756. * Note: If both the driver and user space application supports the 6 GHz band,
  6757. * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY
  6758. * should be used.
  6759. * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL
  6760. * is still used if either of the driver or user space application doesn't
  6761. * support the 6 GHz band.
  6762. *
  6763. * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required
  6764. * Nested attribute to hold list of center frequencies on which AP is
  6765. * expected to operate. This is irrespective of ACS configuration.
  6766. * This list is a priority based one and is looked for before the AP is
  6767. * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC)
  6768. * co-exist in the system.
  6769. *
  6770. * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32)
  6771. * Channel center frequency (MHz) on which the access point should restart.
  6772. */
  6773. enum qca_wlan_vendor_attr_sap_config {
  6774. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  6775. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1,
  6776. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  6777. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3,
  6778. /* Keep last */
  6779. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  6780. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  6781. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  6782. };
  6783. /**
  6784. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  6785. * a single peer in a measurement session.
  6786. *
  6787. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  6788. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  6789. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  6790. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  6791. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  6792. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  6793. * list of supported attributes.
  6794. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  6795. * secure measurement.
  6796. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  6797. * measurement every <value> bursts. If 0 or not specified,
  6798. * AOA measurements will be disabled for this peer.
  6799. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  6800. * the measurement frames are exchanged. Optional; if not
  6801. * specified, try to locate the peer in the kernel scan
  6802. * results cache and use frequency from there.
  6803. */
  6804. enum qca_wlan_vendor_attr_ftm_peer_info {
  6805. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  6806. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  6807. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  6808. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  6809. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  6810. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  6811. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  6812. /* keep last */
  6813. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  6814. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  6815. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  6816. };
  6817. /**
  6818. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  6819. * per-peer
  6820. *
  6821. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  6822. * immediate (ASAP) response from peer.
  6823. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  6824. * LCI report from peer. The LCI report includes the absolute
  6825. * location of the peer in "official" coordinates (similar to GPS).
  6826. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  6827. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  6828. * Location civic report from peer. The LCR includes the location
  6829. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  6830. * 11.24.6.7 for more information.
  6831. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  6832. * request a secure measurement.
  6833. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  6834. */
  6835. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  6836. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  6837. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  6838. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  6839. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  6840. };
  6841. /**
  6842. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  6843. *
  6844. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  6845. * to perform in a single burst.
  6846. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  6847. * perform, specified as an exponent (2^value).
  6848. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  6849. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  6850. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  6851. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  6852. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  6853. */
  6854. enum qca_wlan_vendor_attr_ftm_meas_param {
  6855. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  6856. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  6857. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  6858. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  6859. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  6860. /* keep last */
  6861. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  6862. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  6863. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  6864. };
  6865. /**
  6866. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  6867. *
  6868. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  6869. * peer.
  6870. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  6871. * request for this peer.
  6872. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  6873. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  6874. * to measurement results for this peer.
  6875. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  6876. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  6877. * request failed and peer requested not to send an additional request
  6878. * for this number of seconds.
  6879. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  6880. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6881. * 9.4.2.22.10.
  6882. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  6883. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  6884. * 9.4.2.22.13.
  6885. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  6886. * overridden some measurement request parameters. See
  6887. * enum qca_wlan_vendor_attr_ftm_meas_param.
  6888. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  6889. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  6890. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  6891. * results. Each entry is a nested attribute defined
  6892. * by enum qca_wlan_vendor_attr_ftm_meas.
  6893. */
  6894. enum qca_wlan_vendor_attr_ftm_peer_result {
  6895. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  6896. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  6897. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  6898. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  6899. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  6900. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  6901. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  6902. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  6903. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  6904. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  6905. /* keep last */
  6906. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  6907. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  6908. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  6909. };
  6910. /**
  6911. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  6912. *
  6913. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  6914. * will be provided. Peer may have overridden some measurement parameters,
  6915. * in which case overridden parameters will be report by
  6916. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  6917. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  6918. * of performing the measurement request. No more results will be sent
  6919. * for this peer in this session.
  6920. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  6921. * failed, and requested not to send an additional request for number
  6922. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  6923. * attribute.
  6924. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  6925. * failed. Request was not sent over the air.
  6926. */
  6927. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  6928. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  6929. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  6930. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  6931. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  6932. };
  6933. /**
  6934. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  6935. * for measurement result, per-peer
  6936. *
  6937. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  6938. * measurement completed for this peer. No more results will be reported
  6939. * for this peer in this session.
  6940. */
  6941. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  6942. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  6943. };
  6944. /**
  6945. * enum qca_vendor_attr_loc_session_status: Session completion status code
  6946. *
  6947. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  6948. * successfully.
  6949. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  6950. * by request.
  6951. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  6952. * was invalid and was not started.
  6953. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  6954. * and did not complete normally (for example out of resources).
  6955. */
  6956. enum qca_vendor_attr_loc_session_status {
  6957. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  6958. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  6959. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  6960. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  6961. };
  6962. /**
  6963. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  6964. *
  6965. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  6966. * recorded by responder, in picoseconds.
  6967. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6968. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  6969. * initiator, in picoseconds.
  6970. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6971. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  6972. * initiator, in picoseconds.
  6973. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6974. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  6975. * responder, in picoseconds.
  6976. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  6977. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  6978. * during this measurement exchange. Optional and will be provided if
  6979. * the hardware can measure it.
  6980. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  6981. * responder. Not always provided.
  6982. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6983. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  6984. * responder. Not always provided.
  6985. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6986. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  6987. * initiator. Not always provided.
  6988. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6989. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  6990. * initiator. Not always provided.
  6991. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  6992. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  6993. */
  6994. enum qca_wlan_vendor_attr_ftm_meas {
  6995. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  6996. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  6997. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  6998. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  6999. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  7000. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  7001. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  7002. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  7003. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  7004. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  7005. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  7006. /* keep last */
  7007. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  7008. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  7009. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  7010. };
  7011. /**
  7012. * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index
  7013. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value
  7014. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL:
  7015. * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  7016. * of the social channels.
  7017. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period
  7018. * A 32-bit unsigned value; the P2P listen offload period (ms).
  7019. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL:
  7020. * A 32-bit unsigned value; the P2P listen interval duration (ms).
  7021. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT:
  7022. * A 32-bit unsigned value; number of interval times the Firmware needs
  7023. * to run the offloaded P2P listen operation before it stops.
  7024. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types
  7025. * An array of unsigned 8-bit characters; vendor information elements.
  7026. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs
  7027. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW
  7028. * A 32-bit unsigned value; a control flag to indicate whether listen
  7029. * results need to be flushed to wpa_supplicant.
  7030. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason
  7031. * A 8-bit unsigned value; reason code for P2P listen offload stop
  7032. * event.
  7033. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value
  7034. * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value
  7035. */
  7036. enum qca_wlan_vendor_attr_p2p_listen_offload {
  7037. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  7038. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  7039. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  7040. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  7041. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  7042. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  7043. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  7044. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  7045. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  7046. /* keep last */
  7047. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  7048. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  7049. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  7050. };
  7051. /**
  7052. * enum qca_wlan_vendor_drv_info - WLAN driver info
  7053. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid
  7054. * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info
  7055. * between Firmware & Host.
  7056. */
  7057. enum qca_wlan_vendor_drv_info {
  7058. QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0,
  7059. QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE,
  7060. /* keep last */
  7061. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST,
  7062. QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX =
  7063. QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1,
  7064. };
  7065. /**
  7066. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  7067. *
  7068. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  7069. * CIR (channel impulse response) path for each antenna.
  7070. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  7071. * of the strongest CIR path for each antenna.
  7072. */
  7073. enum qca_wlan_vendor_attr_aoa_type {
  7074. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  7075. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  7076. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  7077. };
  7078. /**
  7079. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  7080. * validate encryption engine
  7081. *
  7082. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  7083. * This will be included if the request is for decryption; if not included,
  7084. * the request is treated as a request for encryption by default.
  7085. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  7086. * indicating the key cipher suite. Takes same values as
  7087. * NL80211_ATTR_KEY_CIPHER.
  7088. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  7089. * Key Id to be used for encryption
  7090. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  7091. * Key (TK) to be used for encryption/decryption
  7092. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  7093. * Packet number to be specified for encryption/decryption
  7094. * 6 bytes for TKIP/CCMP/GCMP.
  7095. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  7096. * representing the 802.11 packet (header + payload + FCS) that
  7097. * needs to be encrypted/decrypted.
  7098. * Encrypted/decrypted response from the driver will also be sent
  7099. * to userspace with the same attribute.
  7100. */
  7101. enum qca_wlan_vendor_attr_encryption_test {
  7102. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  7103. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  7104. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  7105. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  7106. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  7107. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  7108. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  7109. /* keep last */
  7110. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  7111. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  7112. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  7113. };
  7114. /**
  7115. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  7116. * sector for DMG RF sector operations.
  7117. *
  7118. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  7119. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  7120. */
  7121. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  7122. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  7123. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  7124. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  7125. };
  7126. /**
  7127. * enum qca_wlan_vendor_attr_fw_state - State of firmware
  7128. *
  7129. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state
  7130. * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active
  7131. */
  7132. enum qca_wlan_vendor_attr_fw_state {
  7133. QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR,
  7134. QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE,
  7135. QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX
  7136. };
  7137. /**
  7138. * BRP antenna limit mode
  7139. *
  7140. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force
  7141. * antenna limit, BRP will be performed as usual.
  7142. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal
  7143. * antennas limit. the hardware may use less antennas than the
  7144. * maximum limit.
  7145. * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will
  7146. * use exactly the specified number of antennas for BRP.
  7147. */
  7148. enum qca_wlan_vendor_attr_brp_ant_limit_mode {
  7149. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE,
  7150. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE,
  7151. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE,
  7152. QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX
  7153. };
  7154. /**
  7155. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  7156. * DMG RF sector configuration for a single RF module.
  7157. * The values are defined in a compact way which closely matches
  7158. * the way it is stored in HW registers.
  7159. * The configuration provides values for 32 antennas and 8 distribution
  7160. * amplifiers, and together describes the characteristics of the RF
  7161. * sector - such as a beam in some direction with some gain.
  7162. *
  7163. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  7164. * of RF module for this configuration.
  7165. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  7166. * amplifier gain index. Unsigned 32 bit number containing
  7167. * bits for all 32 antennas.
  7168. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  7169. * amplifier gain index. Unsigned 32 bit number containing
  7170. * bits for all 32 antennas.
  7171. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  7172. * amplifier gain index. Unsigned 32 bit number containing
  7173. * bits for all 32 antennas.
  7174. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  7175. * for first 16 antennas, 2 bits per antenna.
  7176. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  7177. * for last 16 antennas, 2 bits per antenna.
  7178. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  7179. * DTYPE values (3 bits) for each distribution amplifier, followed
  7180. * by X16 switch bits for each distribution amplifier. There are
  7181. * total of 8 distribution amplifiers.
  7182. */
  7183. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  7184. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  7185. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  7186. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  7187. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  7188. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  7189. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  7190. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  7191. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  7192. /* keep last */
  7193. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  7194. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  7195. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  7196. };
  7197. /**
  7198. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  7199. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver.
  7200. *
  7201. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  7202. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  7203. * represents the different TDLS trigger modes.
  7204. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  7205. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  7206. * of packets shall meet the criteria for implicit TDLS setup.
  7207. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx
  7208. * packets within a duration.
  7209. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate
  7210. * a TDLS setup.
  7211. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
  7212. * a TDLS Discovery to the Peer.
  7213. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  7214. * discovery attempts to know the TDLS capability of the peer. A peer is
  7215. * marked as TDLS not capable if there is no response for all the attempts.
  7216. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  7217. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  7218. * number of TX / RX frames meet the criteria for TDLS teardown.
  7219. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number
  7220. * (u32) of Tx/Rx packets within a duration
  7221. * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link
  7222. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  7223. * corresponding to the RSSI of the peer below which a TDLS
  7224. * setup is triggered.
  7225. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  7226. * corresponding to the RSSI of the peer above which
  7227. * a TDLS teardown is triggered.
  7228. */
  7229. enum qca_wlan_vendor_attr_tdls_configuration {
  7230. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  7231. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  7232. /* Attributes configuring the TDLS Implicit Trigger */
  7233. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  7234. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  7235. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  7236. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  7237. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  7238. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  7239. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  7240. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  7241. /* keep last */
  7242. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  7243. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  7244. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  7245. };
  7246. /**
  7247. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  7248. * the driver.
  7249. *
  7250. * The following are the different values for
  7251. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  7252. *
  7253. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to
  7254. * initiate/teardown the TDLS connection to a respective peer comes
  7255. * from the user space. wpa_supplicant provides the commands
  7256. * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this.
  7257. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  7258. * setup/teardown to the eligible peer once the configured criteria
  7259. * (such as TX/RX threshold, RSSI) is met. The attributes
  7260. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  7261. * the different configuration criteria for the TDLS trigger from the
  7262. * host driver.
  7263. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  7264. * the TDLS setup / teardown through the implicit mode, only to the
  7265. * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1,
  7266. * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands).
  7267. * External mode works on top of the implicit mode, thus the host Driver
  7268. * is expected to be configured in TDLS Implicit mode too to operate in
  7269. * External mode. Configuring External mode alone without Implicit
  7270. * mode is invalid.
  7271. *
  7272. * All the above implementations work as expected only when the host driver
  7273. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP -
  7274. * representing that the TDLS message exchange is not internal to the host
  7275. * driver, but depends on wpa_supplicant to do the message exchange.
  7276. */
  7277. enum qca_wlan_vendor_tdls_trigger_mode {
  7278. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  7279. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  7280. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  7281. };
  7282. /**
  7283. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  7284. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  7285. * that is hard-coded in the Board Data File (BDF).
  7286. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  7287. * that is hard-coded in the Board Data File (BDF).
  7288. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  7289. * that is hard-coded in the Board Data File (BDF).
  7290. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  7291. * that is hard-coded in the Board Data File (BDF).
  7292. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  7293. * that is hard-coded in the Board Data File (BDF).
  7294. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  7295. * source of SAR power limits, thereby disabling the SAR power
  7296. * limit feature.
  7297. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  7298. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7299. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power
  7300. * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  7301. *
  7302. * This enumerates the valid set of values that may be supplied for
  7303. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  7304. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in
  7305. * the response to an instance of the
  7306. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7307. */
  7308. enum qca_vendor_attr_sar_limits_selections {
  7309. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  7310. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  7311. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  7312. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  7313. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  7314. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  7315. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  7316. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7,
  7317. };
  7318. /**
  7319. * enum qca_vendor_attr_sar_limits_spec_modulations -
  7320. * SAR limits specification modulation
  7321. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  7322. * CCK modulation
  7323. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  7324. * OFDM modulation
  7325. *
  7326. * This enumerates the valid set of values that may be supplied for
  7327. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  7328. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  7329. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  7330. * command or in the response to an instance of the
  7331. * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command.
  7332. */
  7333. enum qca_vendor_attr_sar_limits_spec_modulations {
  7334. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  7335. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  7336. };
  7337. /**
  7338. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  7339. *
  7340. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to
  7341. * select which SAR power limit table should be used. Valid
  7342. * values are enumerated in enum
  7343. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  7344. * power limit selection is unchanged if this attribute is not
  7345. * present.
  7346. *
  7347. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  7348. * which specifies the number of SAR power limit specifications
  7349. * which will follow.
  7350. *
  7351. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  7352. * limit specifications. The number of specifications is
  7353. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  7354. * specification contains a set of
  7355. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  7356. * specification is uniquely identified by the attributes
  7357. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  7358. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  7359. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  7360. * contains as a payload the attribute
  7361. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  7362. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX.
  7363. * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or
  7364. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is
  7365. * needed based upon the value of
  7366. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE.
  7367. *
  7368. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  7369. * indicate for which band this specification applies. Valid
  7370. * values are enumerated in enum %nl80211_band (although not all
  7371. * bands may be supported by a given device). If the attribute is
  7372. * not supplied then the specification will be applied to all
  7373. * supported bands.
  7374. *
  7375. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  7376. * to indicate for which antenna chain this specification
  7377. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  7378. * attribute is not supplied then the specification will be
  7379. * applied to all chains.
  7380. *
  7381. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  7382. * value to indicate for which modulation scheme this
  7383. * specification applies. Valid values are enumerated in enum
  7384. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  7385. * is not supplied then the specification will be applied to all
  7386. * modulation schemes.
  7387. *
  7388. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  7389. * value to specify the actual power limit value in units of 0.5
  7390. * dBm (i.e., a value of 11 represents 5.5 dBm).
  7391. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7392. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER.
  7393. *
  7394. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32)
  7395. * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles.
  7396. * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is
  7397. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0.
  7398. *
  7399. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS
  7400. * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS.
  7401. */
  7402. enum qca_vendor_attr_sar_limits {
  7403. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  7404. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  7405. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  7406. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  7407. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  7408. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  7409. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  7410. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  7411. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8,
  7412. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  7413. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  7414. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  7415. };
  7416. /**
  7417. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  7418. * offload which is an extension for LL_STATS.
  7419. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  7420. * If MAC counters do not exceed the threshold, FW will report monitored
  7421. * link layer counters periodically as this setting. The first report is
  7422. * always triggered by this timer.
  7423. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  7424. * For each MAC layer counter, FW holds two copies. One is the current value.
  7425. * The other is the last report. Once a current counter's increment is larger
  7426. * than the threshold, FW will indicate that counter to host even if the
  7427. * monitoring timer does not expire.
  7428. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  7429. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  7430. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  7431. * failure code.
  7432. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  7433. * 1: TX packet discarded
  7434. * 2: No ACK
  7435. * 3: Postpone
  7436. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  7437. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  7438. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  7439. * Threshold for all monitored parameters. If per counter dedicated threshold
  7440. * is not enabled, this threshold will take effect.
  7441. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  7442. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  7443. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  7444. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  7445. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  7446. * Bit0: TX counter unit in MSDU
  7447. * Bit1: TX counter unit in MPDU
  7448. * Bit2: TX counter unit in PPDU
  7449. * Bit3: TX counter unit in byte
  7450. * Bit4: Dropped MSDUs
  7451. * Bit5: Dropped Bytes
  7452. * Bit6: MPDU retry counter
  7453. * Bit7: MPDU failure counter
  7454. * Bit8: PPDU failure counter
  7455. * Bit9: MPDU aggregation counter
  7456. * Bit10: MCS counter for ACKed MPDUs
  7457. * Bit11: MCS counter for Failed MPDUs
  7458. * Bit12: TX Delay counter
  7459. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  7460. * Bit0: MAC RX counter unit in MPDU
  7461. * Bit1: MAC RX counter unit in byte
  7462. * Bit2: PHY RX counter unit in PPDU
  7463. * Bit3: PHY RX counter unit in byte
  7464. * Bit4: Disorder counter
  7465. * Bit5: Retry counter
  7466. * Bit6: Duplication counter
  7467. * Bit7: Discard counter
  7468. * Bit8: MPDU aggregation size counter
  7469. * Bit9: MCS counter
  7470. * Bit10: Peer STA power state change (wake to sleep) counter
  7471. * Bit11: Peer STA power save counter, total time in PS mode
  7472. * Bit12: Probe request counter
  7473. * Bit13: Other management frames counter
  7474. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  7475. * Bit0: Idle time
  7476. * Bit1: TX time
  7477. * Bit2: time RX in current bss
  7478. * Bit3: Out of current bss time
  7479. * Bit4: Wireless medium busy time
  7480. * Bit5: RX in bad condition time
  7481. * Bit6: TX in bad condition time
  7482. * Bit7: time wlan card not available
  7483. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  7484. * Bit0: Per channel SNR counter
  7485. * Bit1: Per channel noise floor counter
  7486. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  7487. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  7488. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  7489. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  7490. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  7491. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  7492. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  7493. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  7494. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  7495. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  7496. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  7497. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  7498. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  7499. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  7500. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  7501. * aggregation stats buffer length
  7502. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  7503. * buffer for ACKed MPDUs.
  7504. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  7505. * buffer for failed MPDUs.
  7506. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  7507. * length of delay stats array.
  7508. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  7509. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  7510. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  7511. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  7512. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  7513. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  7514. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  7515. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  7516. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  7517. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  7518. * flagged as retransmissions
  7519. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  7520. * flagged as duplicated
  7521. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  7522. * packets discarded
  7523. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  7524. * stats buffer.
  7525. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  7526. * stats buffer.
  7527. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  7528. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  7529. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  7530. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  7531. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  7532. * requests received
  7533. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  7534. * frames received
  7535. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  7536. * there is no TX, nor RX, nor interference.
  7537. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  7538. * transmitting packets.
  7539. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  7540. * for receiving.
  7541. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  7542. * interference detected.
  7543. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  7544. * receiving packets with errors.
  7545. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  7546. * TX no-ACK.
  7547. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  7548. * the chip is unable to work in normal conditions.
  7549. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  7550. * receiving packets in current BSS.
  7551. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  7552. * receiving packets not in current BSS.
  7553. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  7554. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  7555. * This is a container for per antenna signal stats.
  7556. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  7557. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  7558. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  7559. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  7560. */
  7561. enum qca_wlan_vendor_attr_ll_stats_ext {
  7562. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  7563. /* Attributes for configurations */
  7564. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  7565. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  7566. /* Peer STA power state change */
  7567. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  7568. /* TX failure event */
  7569. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  7570. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  7571. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  7572. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  7573. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  7574. /* MAC counters */
  7575. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  7576. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  7577. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  7578. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  7579. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  7580. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  7581. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  7582. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  7583. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  7584. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  7585. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  7586. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  7587. /* Sub-attributes for PEER_AC_TX */
  7588. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  7589. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  7590. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  7591. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  7592. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  7593. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  7594. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  7595. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  7596. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  7597. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  7598. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  7599. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  7600. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  7601. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  7602. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  7603. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  7604. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  7605. /* Sub-attributes for PEER_AC_RX */
  7606. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  7607. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  7608. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  7609. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  7610. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  7611. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  7612. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  7613. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  7614. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  7615. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  7616. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  7617. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  7618. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  7619. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  7620. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  7621. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  7622. /* Sub-attributes for CCA_BSS */
  7623. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  7624. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  7625. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  7626. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  7627. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  7628. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  7629. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  7630. /* sub-attribute for BSS_RX_TIME */
  7631. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  7632. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  7633. /* Sub-attributes for PEER_SIGNAL */
  7634. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  7635. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  7636. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  7637. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  7638. /* Sub-attributes for IFACE_BSS */
  7639. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  7640. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  7641. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  7642. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  7643. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  7644. };
  7645. /**
  7646. * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  7647. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  7648. * in priority order as decided after ACS operation in userspace.
  7649. *
  7650. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8).
  7651. * One of reason code from enum qca_wlan_vendor_acs_select_reason.
  7652. *
  7653. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required
  7654. * Array of nested values for each channel with following attributes:
  7655. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7656. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7657. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7658. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7659. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7660. * Note: If both the driver and user-space application supports the 6 GHz band,
  7661. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use
  7662. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST.
  7663. * To maintain backward compatibility,
  7664. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST
  7665. * is still used if either of the driver or user space application doesn't
  7666. * support the 6 GHz band.
  7667. *
  7668. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8).
  7669. * Primary channel number
  7670. * Note: If both the driver and user-space application supports the 6 GHz band,
  7671. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use
  7672. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY.
  7673. * To maintain backward compatibility,
  7674. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY
  7675. * is still used if either of the driver or user space application doesn't
  7676. * support the 6 GHz band.
  7677. *
  7678. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8).
  7679. * Secondary channel number, required only for 160 and 80+80 MHz bandwidths.
  7680. * Note: If both the driver and user-space application supports the 6 GHz band,
  7681. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use
  7682. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY.
  7683. * To maintain backward compatibility,
  7684. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY
  7685. * is still used if either of the driver or user space application
  7686. * doesn't support the 6 GHz band.
  7687. *
  7688. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8).
  7689. * VHT seg0 channel number
  7690. * Note: If both the driver and user-space application supports the 6 GHz band,
  7691. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use
  7692. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0.
  7693. * To maintain backward compatibility,
  7694. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0
  7695. * is still used if either of the driver or user space application
  7696. * doesn't support the 6 GHz band.
  7697. *
  7698. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8).
  7699. * VHT seg1 channel number
  7700. * Note: If both the driver and user-space application supports the 6 GHz band,
  7701. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use
  7702. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1.
  7703. * To maintain backward compatibility,
  7704. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1
  7705. * is still used if either of the driver or user space application
  7706. * doesn't support the 6 GHz band.
  7707. *
  7708. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8).
  7709. * Takes one of enum nl80211_chan_width values.
  7710. *
  7711. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required
  7712. * Array of nested values for each channel with following attributes:
  7713. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32),
  7714. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32),
  7715. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32),
  7716. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32),
  7717. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7718. * Note: If user-space application has no support of the 6 GHz band, this
  7719. * attribute is optional.
  7720. *
  7721. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32)
  7722. * Primary channel frequency in MHz
  7723. * Note: If user-space application has no support of the 6 GHz band, this
  7724. * attribute is optional.
  7725. *
  7726. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32)
  7727. * Secondary channel frequency in MHz used for HT 40 MHz channels.
  7728. * Note: If user-space application has no support of the 6 GHz band, this
  7729. * attribute is optional.
  7730. *
  7731. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32)
  7732. * VHT seg0 channel frequency in MHz
  7733. * Note: If user-space application has no support of the 6GHz band, this
  7734. * attribute is optional.
  7735. *
  7736. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32)
  7737. * VHT seg1 channel frequency in MHz
  7738. * Note: If user-space application has no support of the 6 GHz band, this
  7739. * attribute is optional.
  7740. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16)
  7741. * Puncture Bitmap for selected primary channel. Optional if no support
  7742. * for EHT (IEEE 802.11be). Encoding for this attribute follows the
  7743. * convention used in the Disabled Subchannel Bitmap field of the EHT Operation
  7744. * element.
  7745. */
  7746. enum qca_wlan_vendor_attr_external_acs_channels {
  7747. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  7748. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  7749. */
  7750. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  7751. /* Array of nested values for each channel with following attributes:
  7752. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  7753. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  7754. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  7755. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  7756. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  7757. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  7758. */
  7759. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  7760. /* This (u8) will hold values of one of enum nl80211_bands */
  7761. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  7762. /* Primary channel (u8) */
  7763. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  7764. /* Secondary channel (u8) used for HT 40 MHz channels */
  7765. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  7766. /* VHT seg0 channel (u8) */
  7767. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  7768. /* VHT seg1 channel (u8) */
  7769. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  7770. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  7771. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  7772. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9,
  7773. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10,
  7774. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11,
  7775. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12,
  7776. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13,
  7777. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14,
  7778. /* keep last */
  7779. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  7780. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  7781. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  7782. };
  7783. /**
  7784. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  7785. * the ACS has to be triggered. These values are used by
  7786. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  7787. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  7788. */
  7789. enum qca_wlan_vendor_acs_select_reason {
  7790. /* Represents the reason that the ACS triggered during the AP start */
  7791. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  7792. /* Represents the reason that DFS found with the current channel */
  7793. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  7794. /* Represents the reason that LTE co-exist in the current band. */
  7795. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  7796. /* Represents the reason that generic, uncategorized interference has
  7797. * been found in the current channel.
  7798. */
  7799. QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE,
  7800. /* Represents the reason that excessive 802.11 interference has been
  7801. * found in the current channel.
  7802. */
  7803. QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE,
  7804. /* Represents the reason that generic Continuous Wave (CW) interference
  7805. * has been found in the current channel.
  7806. */
  7807. QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE,
  7808. /* Represents the reason that Microwave Oven (MWO) interference has been
  7809. * found in the current channel.
  7810. */
  7811. QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE,
  7812. /* Represents the reason that generic Frequency-Hopping Spread Spectrum
  7813. * (FHSS) interference has been found in the current channel. This may
  7814. * include 802.11 waveforms.
  7815. */
  7816. QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE,
  7817. /* Represents the reason that non-802.11 generic Frequency-Hopping
  7818. * Spread Spectrum (FHSS) interference has been found in the current
  7819. * channel.
  7820. */
  7821. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE,
  7822. /* Represents the reason that generic Wideband (WB) interference has
  7823. * been found in the current channel. This may include 802.11 waveforms.
  7824. */
  7825. QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE,
  7826. /* Represents the reason that non-802.11 generic Wideband (WB)
  7827. * interference has been found in the current channel.
  7828. */
  7829. QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE,
  7830. /* Represents the reason that Jammer interference has been found in the
  7831. * current channel.
  7832. */
  7833. QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE,
  7834. /* Represents the reason that ACS triggered by AFC */
  7835. QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER,
  7836. };
  7837. /**
  7838. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  7839. *
  7840. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32)
  7841. * value to specify the gpio command, please refer to enum qca_gpio_cmd_type
  7842. * to get the available value that this item can use.
  7843. *
  7844. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32)
  7845. * value to specify the gpio number.
  7846. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7847. * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7848. *
  7849. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32)
  7850. * value to specify the gpio output level, please refer to enum qca_gpio_value
  7851. * to get the available value that this item can use.
  7852. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7853. * %QCA_WLAN_VENDOR_GPIO_OUTPUT.
  7854. *
  7855. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32)
  7856. * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type
  7857. * to get the available value that this item can use.
  7858. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7859. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7860. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7861. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7862. * attribute is present.
  7863. *
  7864. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32)
  7865. * value to specify the gpio interrupt mode, please refer to enum
  7866. * qca_gpio_interrupt_mode to get the available value that this item can use.
  7867. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7868. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7869. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7870. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7871. * attribute is present.
  7872. *
  7873. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32)
  7874. * value to specify the gpio direction, please refer to enum qca_gpio_direction
  7875. * to get the available value that this item can use.
  7876. * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7877. * %QCA_WLAN_VENDOR_GPIO_CONFIG and
  7878. * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present.
  7879. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG
  7880. * attribute is present.
  7881. *
  7882. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32)
  7883. * Value to specify the mux config. Meaning of a given value is dependent
  7884. * on the target chipset and gpio pin. Must be of the range 0-15.
  7885. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7886. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0.
  7887. *
  7888. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32)
  7889. * Value to specify the drive, Refer to enum qca_gpio_drive.
  7890. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7891. * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0).
  7892. *
  7893. * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag)
  7894. * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is
  7895. * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all
  7896. * other parameters for the given GPIO will be obtained from internal
  7897. * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be
  7898. * specified to indicate the GPIO pin being configured.
  7899. */
  7900. enum qca_wlan_gpio_attr {
  7901. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  7902. /* Unsigned 32-bit attribute for GPIO command */
  7903. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1,
  7904. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  7905. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2,
  7906. /* Unsigned 32-bit attribute for GPIO value to configure */
  7907. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3,
  7908. /* Unsigned 32-bit attribute for GPIO pull type */
  7909. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4,
  7910. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  7911. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5,
  7912. /* Unsigned 32-bit attribute for GPIO direction to configure */
  7913. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6,
  7914. /* Unsigned 32-bit attribute for GPIO mux config */
  7915. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7,
  7916. /* Unsigned 32-bit attribute for GPIO drive */
  7917. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8,
  7918. /* Flag attribute for using internal gpio configuration */
  7919. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9,
  7920. /* keep last */
  7921. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  7922. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  7923. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1,
  7924. };
  7925. /**
  7926. * enum gpio_cmd_type - GPIO configuration command type
  7927. * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info
  7928. * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level
  7929. */
  7930. enum qca_gpio_cmd_type {
  7931. QCA_WLAN_VENDOR_GPIO_CONFIG = 0,
  7932. QCA_WLAN_VENDOR_GPIO_OUTPUT = 1,
  7933. };
  7934. /**
  7935. * enum qca_gpio_pull_type - GPIO pull type
  7936. * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none
  7937. * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up
  7938. * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down
  7939. */
  7940. enum qca_gpio_pull_type {
  7941. QCA_WLAN_GPIO_PULL_NONE = 0,
  7942. QCA_WLAN_GPIO_PULL_UP = 1,
  7943. QCA_WLAN_GPIO_PULL_DOWN = 2,
  7944. QCA_WLAN_GPIO_PULL_MAX,
  7945. };
  7946. /**
  7947. * enum qca_gpio_direction - GPIO direction
  7948. * @QCA_WLAN_GPIO_INPUT: set gpio as input mode
  7949. * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode
  7950. * @QCA_WLAN_GPIO_VALUE_MAX: invalid value
  7951. */
  7952. enum qca_gpio_direction {
  7953. QCA_WLAN_GPIO_INPUT = 0,
  7954. QCA_WLAN_GPIO_OUTPUT = 1,
  7955. QCA_WLAN_GPIO_DIR_MAX,
  7956. };
  7957. /**
  7958. * enum qca_gpio_value - GPIO Value
  7959. * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low
  7960. * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high
  7961. * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value
  7962. */
  7963. enum qca_gpio_value {
  7964. QCA_WLAN_GPIO_LEVEL_LOW = 0,
  7965. QCA_WLAN_GPIO_LEVEL_HIGH = 1,
  7966. QCA_WLAN_GPIO_LEVEL_MAX,
  7967. };
  7968. /**
  7969. * enum gpio_interrupt_mode - GPIO interrupt mode
  7970. * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger
  7971. * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger
  7972. * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger
  7973. * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger
  7974. * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger
  7975. * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger
  7976. * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value
  7977. */
  7978. enum qca_gpio_interrupt_mode {
  7979. QCA_WLAN_GPIO_INTMODE_DISABLE = 0,
  7980. QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1,
  7981. QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2,
  7982. QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3,
  7983. QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4,
  7984. QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5,
  7985. QCA_WLAN_GPIO_INTMODE_MAX,
  7986. };
  7987. /**
  7988. * enum gpio_drive - GPIO drive
  7989. * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA
  7990. * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA
  7991. * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA
  7992. * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA
  7993. * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA
  7994. * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA
  7995. * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA
  7996. * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA
  7997. * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive
  7998. */
  7999. enum qca_gpio_drive {
  8000. QCA_WLAN_GPIO_DRIVE_2MA = 0,
  8001. QCA_WLAN_GPIO_DRIVE_4MA = 1,
  8002. QCA_WLAN_GPIO_DRIVE_6MA = 2,
  8003. QCA_WLAN_GPIO_DRIVE_8MA = 3,
  8004. QCA_WLAN_GPIO_DRIVE_10MA = 4,
  8005. QCA_WLAN_GPIO_DRIVE_12MA = 5,
  8006. QCA_WLAN_GPIO_DRIVE_14MA = 6,
  8007. QCA_WLAN_GPIO_DRIVE_16MA = 7,
  8008. QCA_WLAN_GPIO_DRIVE_MAX,
  8009. };
  8010. /**
  8011. * qca_wlan_set_qdepth_thresh_attr - Parameters for setting
  8012. * MSDUQ depth threshold per peer per tid in the target
  8013. *
  8014. * Associated Vendor Command:
  8015. * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH
  8016. */
  8017. enum qca_wlan_set_qdepth_thresh_attr {
  8018. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0,
  8019. /* 6-byte MAC address */
  8020. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR,
  8021. /* Unsigned 32-bit attribute for holding the TID */
  8022. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID,
  8023. /* Unsigned 32-bit attribute for holding the update mask
  8024. * bit 0 - Update high priority msdu qdepth threshold
  8025. * bit 1 - Update low priority msdu qdepth threshold
  8026. * bit 2 - Update UDP msdu qdepth threshold
  8027. * bit 3 - Update Non UDP msdu qdepth threshold
  8028. * rest of bits are reserved
  8029. */
  8030. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK,
  8031. /* Unsigned 32-bit attribute for holding the threshold value */
  8032. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE,
  8033. /* keep last */
  8034. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST,
  8035. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX =
  8036. QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1,
  8037. };
  8038. /**
  8039. * qca_wlan_vendor_attr_external_acs_policy: Attribute values for
  8040. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd
  8041. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the
  8042. * external ACS policies to select the channels w.r.t. the PCL weights.
  8043. * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and
  8044. * their PCL weights.)
  8045. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to
  8046. * select a channel with non-zero PCL weight.
  8047. * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a
  8048. * channel with non-zero PCL weight.
  8049. *
  8050. */
  8051. enum qca_wlan_vendor_attr_external_acs_policy {
  8052. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED,
  8053. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY,
  8054. };
  8055. /**
  8056. * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters
  8057. */
  8058. enum qca_wlan_vendor_attr_spectral_scan {
  8059. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0,
  8060. /*
  8061. * Number of times the chip enters spectral scan mode before
  8062. * deactivating spectral scans. When set to 0, chip will enter spectral
  8063. * scan mode continuously. u32 attribute.
  8064. */
  8065. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1,
  8066. /*
  8067. * Spectral scan period. Period increment resolution is 256*Tclk,
  8068. * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute.
  8069. */
  8070. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2,
  8071. /* Spectral scan priority. u32 attribute. */
  8072. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3,
  8073. /* Number of FFT data points to compute. u32 attribute. */
  8074. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4,
  8075. /*
  8076. * Enable targeted gain change before starting the spectral scan FFT.
  8077. * u32 attribute.
  8078. */
  8079. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5,
  8080. /* Restart a queued spectral scan. u32 attribute. */
  8081. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6,
  8082. /*
  8083. * Noise floor reference number for the calculation of bin power.
  8084. * u32 attribute.
  8085. */
  8086. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7,
  8087. /*
  8088. * Disallow spectral scan triggers after TX/RX packets by setting
  8089. * this delay value to roughly SIFS time period or greater.
  8090. * u32 attribute.
  8091. */
  8092. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8,
  8093. /*
  8094. * Number of strong bins (inclusive) per sub-channel, below
  8095. * which a signal is declared a narrow band tone. u32 attribute.
  8096. */
  8097. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9,
  8098. /*
  8099. * Specify the threshold over which a bin is declared strong (for
  8100. * scan bandwidth analysis). u32 attribute.
  8101. */
  8102. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10,
  8103. /* Spectral scan report mode. u32 attribute. */
  8104. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11,
  8105. /*
  8106. * RSSI report mode, if the ADC RSSI is below
  8107. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR,
  8108. * then FFTs will not trigger, but timestamps and summaries get
  8109. * reported. u32 attribute.
  8110. */
  8111. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12,
  8112. /*
  8113. * ADC RSSI must be greater than or equal to this threshold (signed dB)
  8114. * to ensure spectral scan reporting with normal error code.
  8115. * u32 attribute.
  8116. */
  8117. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13,
  8118. /*
  8119. * Format of frequency bin magnitude for spectral scan triggered FFTs:
  8120. * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)).
  8121. * u32 attribute.
  8122. */
  8123. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14,
  8124. /*
  8125. * Format of FFT report to software for spectral scan triggered FFTs.
  8126. * 0: No FFT report (only spectral scan summary report)
  8127. * 1: 2-dword summary of metrics for each completed FFT + spectral scan
  8128. * report
  8129. * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled
  8130. * bins (in-band) per FFT + spectral scan summary report
  8131. * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled
  8132. * bins (all) per FFT + spectral scan summary report
  8133. * u32 attribute.
  8134. */
  8135. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15,
  8136. /*
  8137. * Number of LSBs to shift out in order to scale the FFT bins.
  8138. * u32 attribute.
  8139. */
  8140. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16,
  8141. /*
  8142. * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes
  8143. * in dBm power. u32 attribute.
  8144. */
  8145. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17,
  8146. /*
  8147. * Per chain enable mask to select input ADC for search FFT.
  8148. * u32 attribute.
  8149. */
  8150. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18,
  8151. /*
  8152. * An unsigned 64-bit integer provided by host driver to identify the
  8153. * spectral scan request. This attribute is included in the scan
  8154. * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START
  8155. * and used as an attribute in
  8156. * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the
  8157. * specific scan to be stopped.
  8158. */
  8159. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19,
  8160. /* Skip interval for FFT reports. u32 attribute */
  8161. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20,
  8162. /* Set to report only one set of FFT results.
  8163. * u32 attribute.
  8164. */
  8165. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21,
  8166. /* Debug level for spectral module in driver.
  8167. * 0 : Verbosity level 0
  8168. * 1 : Verbosity level 1
  8169. * 2 : Verbosity level 2
  8170. * 3 : Matched filterID display
  8171. * 4 : One time dump of FFT report
  8172. * u32 attribute.
  8173. */
  8174. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22,
  8175. /* Type of spectral scan request. u32 attribute.
  8176. * It uses values defined in enum
  8177. * qca_wlan_vendor_attr_spectral_scan_request_type.
  8178. */
  8179. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23,
  8180. /* This specifies the frequency span over which spectral
  8181. * scan would be carried out. Its value depends on the
  8182. * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and
  8183. * the relation is as follows.
  8184. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8185. * Not applicable. Spectral scan would happen in the
  8186. * operating span.
  8187. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8188. * Center frequency (in MHz) of the span of interest or
  8189. * for convenience, center frequency (in MHz) of any channel
  8190. * in the span of interest. For 80+80 MHz agile spectral scan
  8191. * request it represents center frequency (in MHz) of the primary
  8192. * 80 MHz span or for convenience, center frequency (in MHz) of any
  8193. * channel in the primary 80 MHz span. If agile spectral scan is
  8194. * initiated without setting a valid frequency it returns the
  8195. * error code
  8196. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED).
  8197. * u32 attribute.
  8198. */
  8199. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24,
  8200. /* Spectral scan mode. u32 attribute.
  8201. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8202. * If this attribute is not present, it is assumed to be
  8203. * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL).
  8204. */
  8205. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25,
  8206. /* Spectral scan error code. u32 attribute.
  8207. * It uses values defined in enum
  8208. * qca_wlan_vendor_spectral_scan_error_code.
  8209. * This attribute is included only in failure scenarios.
  8210. */
  8211. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26,
  8212. /* 8-bit unsigned value to enable/disable debug of the
  8213. * Spectral DMA ring.
  8214. * 1-enable, 0-disable
  8215. */
  8216. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27,
  8217. /* 8-bit unsigned value to enable/disable debug of the
  8218. * Spectral DMA buffers.
  8219. * 1-enable, 0-disable
  8220. */
  8221. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28,
  8222. /* This specifies the frequency span over which spectral scan would be
  8223. * carried out. Its value depends on the value of
  8224. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as
  8225. * follows.
  8226. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL
  8227. * Not applicable. Spectral scan would happen in the operating span.
  8228. * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE
  8229. * This attribute is applicable only for agile spectral scan
  8230. * requests in 80+80 MHz mode. It represents center frequency (in
  8231. * MHz) of the secondary 80 MHz span or for convenience, center
  8232. * frequency (in MHz) of any channel in the secondary 80 MHz span.
  8233. * u32 attribute.
  8234. */
  8235. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29,
  8236. /* This attribute specifies the bandwidth to be used for Spectral scan
  8237. * operation. This is an u8 attribute and uses the values in enum
  8238. * nl80211_chan_width. This is an optional attribute.
  8239. * If this attribute is not populated, the driver should configure the
  8240. * Spectral scan bandwidth to the maximum value supported by the target
  8241. * for the current operating bandwidth.
  8242. */
  8243. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30,
  8244. /* Spectral FFT recapture flag attribute, to enable/disable FFT
  8245. * recapture. Recapture can only be enabled for Scan period greater
  8246. * than 52us.
  8247. * If this attribute is enabled, re-triggers will be enabled in uCode
  8248. * when AGC gain changes.
  8249. */
  8250. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31,
  8251. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST,
  8252. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =
  8253. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1,
  8254. };
  8255. /**
  8256. * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command
  8257. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS.
  8258. */
  8259. enum qca_wlan_vendor_attr_spectral_diag_stats {
  8260. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0,
  8261. /* Number of spectral TLV signature mismatches.
  8262. * u64 attribute.
  8263. */
  8264. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1,
  8265. /* Number of spectral phyerror events with insufficient length when
  8266. * parsing for secondary 80 search FFT report. u64 attribute.
  8267. */
  8268. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2,
  8269. /* Number of spectral phyerror events without secondary 80
  8270. * search FFT report. u64 attribute.
  8271. */
  8272. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3,
  8273. /* Number of spectral phyerror events with vht operation segment 1 id
  8274. * mismatches in search fft report. u64 attribute.
  8275. */
  8276. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4,
  8277. /* Number of spectral phyerror events with vht operation segment 2 id
  8278. * mismatches in search fft report. u64 attribute.
  8279. */
  8280. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5,
  8281. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST,
  8282. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX =
  8283. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1,
  8284. };
  8285. /**
  8286. * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command
  8287. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO.
  8288. */
  8289. enum qca_wlan_vendor_attr_spectral_cap {
  8290. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0,
  8291. /* Flag attribute to indicate phydiag capability */
  8292. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1,
  8293. /* Flag attribute to indicate radar detection capability */
  8294. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2,
  8295. /* Flag attribute to indicate spectral capability */
  8296. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3,
  8297. /* Flag attribute to indicate advanced spectral capability */
  8298. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4,
  8299. /* Spectral hardware generation. u32 attribute.
  8300. * It uses values defined in enum
  8301. * qca_wlan_vendor_spectral_scan_cap_hw_gen.
  8302. */
  8303. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5,
  8304. /* Spectral bin scaling formula ID. u16 attribute.
  8305. * It uses values defined in enum
  8306. * qca_wlan_vendor_spectral_scan_cap_formula_id.
  8307. */
  8308. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6,
  8309. /* Spectral bin scaling param - low level offset.
  8310. * s16 attribute.
  8311. */
  8312. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7,
  8313. /* Spectral bin scaling param - high level offset.
  8314. * s16 attribute.
  8315. */
  8316. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8,
  8317. /* Spectral bin scaling param - RSSI threshold.
  8318. * s16 attribute.
  8319. */
  8320. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9,
  8321. /* Spectral bin scaling param - default AGC max gain.
  8322. * u8 attribute.
  8323. */
  8324. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10,
  8325. /* Flag attribute to indicate agile spectral scan capability
  8326. * for 20/40/80 MHz modes.
  8327. */
  8328. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11,
  8329. /* Flag attribute to indicate agile spectral scan capability
  8330. * for 160 MHz mode.
  8331. */
  8332. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12,
  8333. /* Flag attribute to indicate agile spectral scan capability
  8334. * for 80+80 MHz mode.
  8335. */
  8336. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13,
  8337. /* Number of spectral detectors used for scan in 20 MHz.
  8338. * u32 attribute.
  8339. */
  8340. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14,
  8341. /* Number of spectral detectors used for scan in 40 MHz.
  8342. * u32 attribute.
  8343. */
  8344. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15,
  8345. /* Number of spectral detectors used for scan in 80 MHz.
  8346. * u32 attribute.
  8347. */
  8348. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16,
  8349. /* Number of spectral detectors used for scan in 160 MHz.
  8350. * u32 attribute.
  8351. */
  8352. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17,
  8353. /* Number of spectral detectors used for scan in 80+80 MHz.
  8354. * u32 attribute.
  8355. */
  8356. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18,
  8357. /* Flag attribute to indicate agile spectral scan capability
  8358. * for 320 MHz mode.
  8359. */
  8360. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19,
  8361. /* Number of spectral detectors used for scan in 320 MHz.
  8362. * u32 attribute.
  8363. */
  8364. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20,
  8365. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST,
  8366. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX =
  8367. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1,
  8368. };
  8369. /**
  8370. * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command
  8371. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS.
  8372. */
  8373. enum qca_wlan_vendor_attr_spectral_scan_status {
  8374. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0,
  8375. /* Flag attribute to indicate whether spectral scan is enabled */
  8376. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1,
  8377. /* Flag attribute to indicate whether spectral scan is in progress*/
  8378. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2,
  8379. /* Spectral scan mode. u32 attribute.
  8380. * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode.
  8381. * If this attribute is not present, normal mode
  8382. * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be
  8383. * requested.
  8384. */
  8385. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3,
  8386. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST,
  8387. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX =
  8388. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1,
  8389. };
  8390. /**
  8391. * enum qca_wlan_vendor_attr_config_latency_level - Level for
  8392. * wlan latency module.
  8393. *
  8394. * There will be various of Wi-Fi functionality like scan/roaming/adaptive
  8395. * power saving which would causing data exchange out of service, this
  8396. * would be a big impact on latency. For latency sensitive applications over
  8397. * Wi-Fi are intolerant to such operations and thus would configure them
  8398. * to meet their respective needs. It is well understood by such applications
  8399. * that altering the default behavior would degrade the Wi-Fi functionality
  8400. * w.r.t the above pointed WLAN operations.
  8401. *
  8402. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL:
  8403. * Default WLAN operation level which throughput orientated.
  8404. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR:
  8405. * Use XR level to benefit XR (extended reality) application to achieve
  8406. * latency and power by via constraint scan/roaming/adaptive PS.
  8407. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW:
  8408. * Use low latency level to benefit application like concurrent
  8409. * downloading or video streaming via constraint scan/adaptive PS.
  8410. * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW:
  8411. * Use ultra low latency level to benefit for gaming/voice
  8412. * application via constraint scan/roaming/adaptive PS.
  8413. */
  8414. enum qca_wlan_vendor_attr_config_latency_level {
  8415. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0,
  8416. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1,
  8417. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2,
  8418. /* legacy name */
  8419. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE =
  8420. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR,
  8421. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3,
  8422. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4,
  8423. /* keep last */
  8424. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST,
  8425. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX =
  8426. QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1,
  8427. };
  8428. /**
  8429. * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for
  8430. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd
  8431. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the
  8432. * spectral scan request types.
  8433. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to
  8434. * set the spectral parameters and start scan.
  8435. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to
  8436. * only set the spectral parameters.
  8437. * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to
  8438. * only start the spectral scan.
  8439. */
  8440. enum qca_wlan_vendor_attr_spectral_scan_request_type {
  8441. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG,
  8442. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN,
  8443. QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG,
  8444. };
  8445. /**
  8446. * qca_wlan_vendor_spectral_scan_mode: Attribute values for
  8447. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd
  8448. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and
  8449. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd
  8450. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the
  8451. * spectral scan modes.
  8452. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan:
  8453. * spectral scan in the current operating span.
  8454. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan:
  8455. * spectral scan in the configured agile span.
  8456. */
  8457. enum qca_wlan_vendor_spectral_scan_mode {
  8458. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0,
  8459. QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1,
  8460. };
  8461. /**
  8462. * qca_wlan_vendor_spectral_scan_error_code: Attribute values for
  8463. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd
  8464. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START.
  8465. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value
  8466. * of a parameter is not supported.
  8467. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan
  8468. * mode is not supported.
  8469. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter
  8470. * has invalid value.
  8471. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter
  8472. * is not initialized.
  8473. */
  8474. enum qca_wlan_vendor_spectral_scan_error_code {
  8475. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0,
  8476. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1,
  8477. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2,
  8478. QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3,
  8479. };
  8480. /**
  8481. * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for
  8482. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd
  8483. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8484. * spectral hardware generation.
  8485. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1
  8486. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2
  8487. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3
  8488. */
  8489. enum qca_wlan_vendor_spectral_scan_cap_hw_gen {
  8490. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0,
  8491. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1,
  8492. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2,
  8493. };
  8494. /**
  8495. * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for
  8496. * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd
  8497. * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the
  8498. * Spectral bin scaling formula ID.
  8499. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling
  8500. * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain
  8501. * and RSSI threshold based formula.
  8502. */
  8503. enum qca_wlan_vendor_spectral_scan_cap_formula_id {
  8504. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0,
  8505. QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1,
  8506. };
  8507. /**
  8508. * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative
  8509. * RF Operating Parameter (RROP) information is available, and if so, at which
  8510. * point in the application-driver interaction sequence it can be retrieved by
  8511. * the application from the driver. This point may vary by architecture and
  8512. * other factors. This is a u16 value.
  8513. */
  8514. enum qca_wlan_vendor_attr_rropavail_info {
  8515. /* RROP information is unavailable. */
  8516. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE,
  8517. /* RROP information is available and the application can retrieve the
  8518. * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS
  8519. * event from the driver.
  8520. */
  8521. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START,
  8522. /* RROP information is available only after a vendor specific scan
  8523. * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has
  8524. * successfully completed. The application can retrieve the information
  8525. * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from
  8526. * the driver.
  8527. */
  8528. QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END,
  8529. };
  8530. /**
  8531. * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific
  8532. * Representative RF Operating Parameter (RROP) information. It is sent for the
  8533. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is
  8534. * intended for use by external Auto Channel Selection applications. It provides
  8535. * guidance values for some RF parameters that are used by the system during
  8536. * operation. These values could vary by channel, band, radio, and so on.
  8537. */
  8538. enum qca_wlan_vendor_attr_rrop_info {
  8539. QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0,
  8540. /* Representative Tx Power List (RTPL) which has an array of nested
  8541. * values as per attributes in enum qca_wlan_vendor_attr_rtplinst.
  8542. */
  8543. QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1,
  8544. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST,
  8545. QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX =
  8546. QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1
  8547. };
  8548. /**
  8549. * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list
  8550. * entry instances in the Representative Tx Power List (RTPL). It provides
  8551. * simplified power values intended for helping external Auto channel Selection
  8552. * applications compare potential Tx power performance between channels, other
  8553. * operating conditions remaining identical. These values are not necessarily
  8554. * the actual Tx power values that will be used by the system. They are also not
  8555. * necessarily the max or average values that will be used. Instead, they are
  8556. * relative, summarized keys for algorithmic use computed by the driver or
  8557. * underlying firmware considering a number of vendor specific factors.
  8558. */
  8559. enum qca_wlan_vendor_attr_rtplinst {
  8560. QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0,
  8561. /* Primary channel number (u8).
  8562. * Note: If both the driver and user space application support the
  8563. * 6 GHz band, this attribute is deprecated and
  8564. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To
  8565. * maintain backward compatibility,
  8566. * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the
  8567. * driver or user space application or both do not support the 6 GHz
  8568. * band.
  8569. */
  8570. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1,
  8571. /* Representative Tx power in dBm (s32) with emphasis on throughput. */
  8572. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2,
  8573. /* Representative Tx power in dBm (s32) with emphasis on range. */
  8574. QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3,
  8575. /* Primary channel center frequency (u32) in MHz */
  8576. QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4,
  8577. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST,
  8578. QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX =
  8579. QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1,
  8580. };
  8581. /**
  8582. * enum qca_wlan_vendor_attr_mac - Used by the vendor command
  8583. * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8584. *
  8585. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an
  8586. * array of nested values as per attributes in
  8587. * enum qca_wlan_vendor_attr_mac_mode_info.
  8588. */
  8589. enum qca_wlan_vendor_attr_mac {
  8590. QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0,
  8591. QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1,
  8592. /* keep last */
  8593. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST,
  8594. QCA_WLAN_VENDOR_ATTR_MAC_MAX =
  8595. QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1,
  8596. };
  8597. /**
  8598. * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected
  8599. * WiFi netdev interface on a respective MAC. Used by the attribute
  8600. * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO.
  8601. *
  8602. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32).
  8603. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of
  8604. * the connected Wi-Fi interface(u32).
  8605. */
  8606. enum qca_wlan_vendor_attr_mac_iface_info {
  8607. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0,
  8608. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1,
  8609. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2,
  8610. /* keep last */
  8611. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST,
  8612. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX =
  8613. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1,
  8614. };
  8615. /**
  8616. * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information.
  8617. * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the
  8618. * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO.
  8619. *
  8620. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the
  8621. * MAC (u32)
  8622. * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC
  8623. * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described
  8624. * in enum nl80211_band.
  8625. * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev
  8626. * interfaces associated with this MAC. Represented by enum
  8627. * qca_wlan_vendor_attr_mac_iface_info.
  8628. */
  8629. enum qca_wlan_vendor_attr_mac_info {
  8630. QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0,
  8631. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1,
  8632. QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2,
  8633. QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3,
  8634. /* keep last */
  8635. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST,
  8636. QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX =
  8637. QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1,
  8638. };
  8639. /**
  8640. * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes
  8641. * to get thermal status from driver/firmware.
  8642. * enum values are used for NL attributes encapsulated inside
  8643. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute.
  8644. *
  8645. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature
  8646. * of a thermal level in Celsius. u32 size.
  8647. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature
  8648. * of a thermal level in Celsius. u32 size.
  8649. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each
  8650. * thermal level in milliseconds. u32 size.
  8651. * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number
  8652. * of times the temperature crossed into the temperature range defined by the
  8653. * thermal level from both higher and lower directions. u32 size.
  8654. */
  8655. enum qca_wlan_vendor_attr_thermal_stats {
  8656. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0,
  8657. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE,
  8658. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE,
  8659. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME,
  8660. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER,
  8661. /* keep last */
  8662. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST,
  8663. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX =
  8664. QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1,
  8665. };
  8666. /**
  8667. * enum he_fragmentation_val - HE fragmentation support values
  8668. * Indicates level of dynamic fragmentation that is supported by
  8669. * a STA as a recipient.
  8670. * HE fragmentation values are defined as per 11ax spec and are used in
  8671. * HE capability IE to advertise the support. These values are validated
  8672. * in the driver to check the device capability and advertised in the HE
  8673. * capability element.
  8674. *
  8675. * @HE_FRAG_DISABLE: no support for dynamic fragmentation
  8676. * @HE_FRAG_LEVEL1: support for dynamic fragments that are
  8677. * contained within an MPDU or S-MPDU, no support for dynamic fragments
  8678. * within an A-MPDU that is not an S-MPDU.
  8679. * @HE_FRAG_LEVEL2: support for dynamic fragments that are
  8680. * contained within an MPDU or S-MPDU and support for up to one dynamic
  8681. * fragment for each MSDU, each A-MSDU if supported by the recipient, and
  8682. * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an
  8683. * MPDU or S-MPDU.
  8684. * @HE_FRAG_LEVEL3: support for dynamic fragments that are
  8685. * contained within an MPDU or S-MPDU and support for multiple dynamic
  8686. * fragments for each MSDU and for each A-MSDU if supported by the
  8687. * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic
  8688. * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU.
  8689. */
  8690. enum he_fragmentation_val {
  8691. HE_FRAG_DISABLE,
  8692. HE_FRAG_LEVEL1,
  8693. HE_FRAG_LEVEL2,
  8694. HE_FRAG_LEVEL3,
  8695. };
  8696. /**
  8697. * enum he_mcs_config - HE MCS support configuration
  8698. *
  8699. * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth.
  8700. * These values are used in driver to configure the HE MCS map to advertise
  8701. * Tx/Rx MCS map in HE capability and these values are applied for all the
  8702. * streams supported by the device. To configure MCS for different bandwidths,
  8703. * vendor command needs to be sent using this attribute with appropriate value.
  8704. * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS
  8705. * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS
  8706. * for HE_160_MCS0_11 send this command using HE MCS config attribute with
  8707. * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11;
  8708. *
  8709. * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7
  8710. * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9
  8711. * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11
  8712. * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7
  8713. * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9
  8714. * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11
  8715. * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7
  8716. * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9
  8717. * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11
  8718. */
  8719. enum he_mcs_config {
  8720. HE_80_MCS0_7 = 0,
  8721. HE_80_MCS0_9 = 1,
  8722. HE_80_MCS0_11 = 2,
  8723. HE_160_MCS0_7 = 4,
  8724. HE_160_MCS0_9 = 5,
  8725. HE_160_MCS0_11 = 6,
  8726. HE_80p80_MCS0_7 = 8,
  8727. HE_80p80_MCS0_9 = 9,
  8728. HE_80p80_MCS0_11 = 10,
  8729. };
  8730. /**
  8731. * enum qca_wlan_ba_session_config - BA session configuration
  8732. *
  8733. * Indicates the configuration values for BA session configuration attribute.
  8734. *
  8735. * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration.
  8736. * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID.
  8737. */
  8738. enum qca_wlan_ba_session_config {
  8739. QCA_WLAN_ADD_BA = 1,
  8740. QCA_WLAN_DELETE_BA = 2,
  8741. };
  8742. /**
  8743. * enum qca_wlan_ac_type - access category type
  8744. *
  8745. * Indicates the access category type value.
  8746. *
  8747. * @QCA_WLAN_AC_BE: BE access category
  8748. * @QCA_WLAN_AC_BK: BK access category
  8749. * @QCA_WLAN_AC_VI: VI access category
  8750. * @QCA_WLAN_AC_VO: VO access category
  8751. * @QCA_WLAN_AC_ALL: All ACs
  8752. */
  8753. enum qca_wlan_ac_type {
  8754. QCA_WLAN_AC_BE = 0,
  8755. QCA_WLAN_AC_BK = 1,
  8756. QCA_WLAN_AC_VI = 2,
  8757. QCA_WLAN_AC_VO = 3,
  8758. QCA_WLAN_AC_ALL = 4,
  8759. };
  8760. /**
  8761. * enum qca_wlan_he_ltf_cfg - HE LTF configuration
  8762. *
  8763. * Indicates the HE LTF configuration value.
  8764. *
  8765. * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to
  8766. * the mandatory HE-LTF based on the GI setting
  8767. * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF
  8768. * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF
  8769. * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF
  8770. */
  8771. enum qca_wlan_he_ltf_cfg {
  8772. QCA_WLAN_HE_LTF_AUTO = 0,
  8773. QCA_WLAN_HE_LTF_1X = 1,
  8774. QCA_WLAN_HE_LTF_2X = 2,
  8775. QCA_WLAN_HE_LTF_4X = 3,
  8776. };
  8777. /**
  8778. * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration
  8779. *
  8780. * Indicates the HE trigger frame MAC padding duration value.
  8781. *
  8782. * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to
  8783. * process the trigger frame.
  8784. * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for
  8785. * trigger frame.
  8786. * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for
  8787. * trigger frame.
  8788. */
  8789. enum qca_wlan_he_mac_padding_dur {
  8790. QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0,
  8791. QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1,
  8792. QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2,
  8793. };
  8794. /**
  8795. * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration
  8796. *
  8797. * Indicates the HE Operating mode control channel width setting value.
  8798. *
  8799. * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz
  8800. * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz
  8801. * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz
  8802. * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz
  8803. */
  8804. enum qca_wlan_he_om_ctrl_ch_bw {
  8805. QCA_WLAN_HE_OM_CTRL_BW_20M = 0,
  8806. QCA_WLAN_HE_OM_CTRL_BW_40M = 1,
  8807. QCA_WLAN_HE_OM_CTRL_BW_80M = 2,
  8808. QCA_WLAN_HE_OM_CTRL_BW_160M = 3,
  8809. };
  8810. /**
  8811. * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration
  8812. *
  8813. * Indicates the frame types to use for keep alive data.
  8814. *
  8815. * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive.
  8816. * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive.
  8817. * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive.
  8818. */
  8819. enum qca_wlan_keep_alive_data_type {
  8820. QCA_WLAN_KEEP_ALIVE_DEFAULT = 0,
  8821. QCA_WLAN_KEEP_ALIVE_DATA = 1,
  8822. QCA_WLAN_KEEP_ALIVE_MGMT = 2,
  8823. };
  8824. /**
  8825. * enum eht_mcs_config - EHT MCS support configuration
  8826. *
  8827. * Configures the EHT Tx/Rx MCS map in EHT Capability element.
  8828. * These values are used in the driver to configure the EHT MCS map to advertise
  8829. * Tx/Rx MCS map in EHT capability and these values are applied for all the
  8830. * streams supported by the device.
  8831. * @EHT_MCS0_7: EHT MCS 0 to 7 support
  8832. * @EHT_MCS0_9: EHT MCS 0 to 9 support
  8833. * @EHT_MCS0_11: EHT MCS 0 to 11 support
  8834. * @EHT_MCS0_13: EHT MCS 0 to 13 support
  8835. */
  8836. enum eht_mcs_config {
  8837. EHT_MCS0_7 = 0,
  8838. EHT_MCS0_9 = 1,
  8839. EHT_MCS0_11 = 2,
  8840. EHT_MCS0_13 = 3,
  8841. };
  8842. /**
  8843. * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration.
  8844. * @QCA_WLAN_EHT_MODE_INVALID: Invalid.
  8845. * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode
  8846. * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode.
  8847. * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive
  8848. * multi-link multi radio mode.
  8849. * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive
  8850. * multi-link multi radio mode.
  8851. */
  8852. enum qca_wlan_eht_mlo_mode {
  8853. QCA_WLAN_EHT_MODE_INVALID = 0,
  8854. QCA_WLAN_EHT_MLSR = 1,
  8855. QCA_WLAN_EHT_EMLSR = 2,
  8856. QCA_WLAN_EHT_NON_STR_MLMR = 3,
  8857. QCA_WLAN_EHT_STR_MLMR = 4,
  8858. };
  8859. /**
  8860. * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration
  8861. * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode
  8862. * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode
  8863. */
  8864. enum qca_wlan_emlsr_mode {
  8865. QCA_WLAN_EMLSR_MODE_ENTER = 0,
  8866. QCA_WLAN_EMLSR_MODE_EXIT = 1,
  8867. };
  8868. /**
  8869. * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and
  8870. * EHT operating mode control transmit request. These attributes are
  8871. * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and
  8872. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  8873. *
  8874. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value
  8875. * indicates the maximum number of spatial streams, NSS, that the STA
  8876. * supports in reception for PPDU bandwidths less than or equal to 80 MHz
  8877. * and is set to NSS - 1.
  8878. *
  8879. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value
  8880. * indicates the operating channel width supported by the STA for both
  8881. * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values.
  8882. *
  8883. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value
  8884. * indicates the all trigger based UL MU operations by the STA.
  8885. * 0 - UL MU operations are enabled by the STA.
  8886. * 1 - All triggered UL MU transmissions are suspended by the STA.
  8887. *
  8888. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value
  8889. * indicates the maximum number of space-time streams, NSTS, that
  8890. * the STA supports in transmission and is set to NSTS - 1.
  8891. *
  8892. * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value
  8893. * combined with the UL MU Disable subfield and the recipient's setting
  8894. * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC
  8895. * capabilities to determine which HE TB PPDUs are possible by the
  8896. * STA to transmit.
  8897. * 0 - UL MU data operations are enabled by the STA.
  8898. * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable
  8899. * bit is not set, else UL MU Tx is suspended.
  8900. *
  8901. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  8902. * Control subfield combined with the Rx NSS subfield in the OM Control subfield
  8903. * indicates NSS - 1, where NSS is the maximum number of spatial streams that
  8904. * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz.
  8905. *
  8906. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates
  8907. * 320 MHz operating channel width supported by the EHT STA for both reception
  8908. * and transmission.
  8909. *
  8910. * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM
  8911. * Control subfield combined with the Tx NSTS subfield in OM Control subfield
  8912. * indicates NSTS - 1, where NSTS is the maximum number of space-time streams
  8913. * that the STA supports in transmission for PPDU bandwidths less than or equal
  8914. * to 80 MHz.
  8915. */
  8916. enum qca_wlan_vendor_attr_omi_tx {
  8917. QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0,
  8918. QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1,
  8919. QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2,
  8920. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3,
  8921. QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4,
  8922. QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5,
  8923. QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6,
  8924. QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7,
  8925. QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8,
  8926. /* keep last */
  8927. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST,
  8928. QCA_WLAN_VENDOR_ATTR_OMI_MAX =
  8929. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1,
  8930. };
  8931. /* deprecated legacy names */
  8932. #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \
  8933. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX
  8934. #define qca_wlan_vendor_attr_he_omi_tx \
  8935. qca_wlan_vendor_attr_omi_tx
  8936. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \
  8937. QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST
  8938. #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \
  8939. QCA_WLAN_VENDOR_ATTR_OMI_MAX
  8940. /**
  8941. * enum qca_wlan_vendor_phy_mode - Different PHY modes
  8942. * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE.
  8943. *
  8944. * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect
  8945. * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect
  8946. * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect
  8947. * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM
  8948. * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK
  8949. * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM
  8950. * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz
  8951. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20
  8952. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1)
  8953. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1)
  8954. * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40
  8955. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20
  8956. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1)
  8957. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1)
  8958. * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40
  8959. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20
  8960. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1)
  8961. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1)
  8962. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40
  8963. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80
  8964. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80
  8965. * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160
  8966. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20
  8967. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40
  8968. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1)
  8969. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1)
  8970. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80
  8971. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80
  8972. * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160
  8973. */
  8974. enum qca_wlan_vendor_phy_mode {
  8975. QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0,
  8976. QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1,
  8977. QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2,
  8978. QCA_WLAN_VENDOR_PHY_MODE_11A = 3,
  8979. QCA_WLAN_VENDOR_PHY_MODE_11B = 4,
  8980. QCA_WLAN_VENDOR_PHY_MODE_11G = 5,
  8981. QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6,
  8982. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7,
  8983. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8,
  8984. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9,
  8985. QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10,
  8986. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11,
  8987. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12,
  8988. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13,
  8989. QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14,
  8990. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15,
  8991. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16,
  8992. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17,
  8993. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18,
  8994. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19,
  8995. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20,
  8996. QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21,
  8997. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22,
  8998. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23,
  8999. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24,
  9000. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25,
  9001. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26,
  9002. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27,
  9003. QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28,
  9004. };
  9005. /* Attributes for data used by
  9006. * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION
  9007. */
  9008. enum qca_wlan_vendor_attr_wifi_test_config {
  9009. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0,
  9010. /* 8-bit unsigned value to configure the driver to enable/disable
  9011. * WMM feature. This attribute is used to configure testbed device.
  9012. * 1-enable, 0-disable
  9013. */
  9014. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1,
  9015. /* 8-bit unsigned value to configure the driver to accept/reject
  9016. * the addba request from peer. This attribute is used to configure
  9017. * the testbed device.
  9018. * 1-accept addba, 0-reject addba
  9019. */
  9020. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2,
  9021. /* 8-bit unsigned value to configure the driver to send or not to
  9022. * send the addba request to peer.
  9023. * This attribute is used to configure the testbed device.
  9024. * 1-send addba, 0-do not send addba
  9025. */
  9026. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3,
  9027. /* 8-bit unsigned value to indicate the HE fragmentation support.
  9028. * Uses enum he_fragmentation_val values.
  9029. * This attribute is used to configure the testbed device to
  9030. * allow the advertised hardware capabilities to be downgraded
  9031. * for testing purposes.
  9032. */
  9033. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4,
  9034. /* 8-bit unsigned value to indicate the HE MCS support.
  9035. * Uses enum he_mcs_config values.
  9036. * This attribute is used to configure the testbed device to
  9037. * allow the advertised hardware capabilities to be downgraded
  9038. * for testing purposes.
  9039. */
  9040. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5,
  9041. /* 8-bit unsigned value to configure the driver to allow or not to
  9042. * allow the connection with WEP/TKIP in HT/VHT/HE modes.
  9043. * This attribute is used to configure the testbed device.
  9044. * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip
  9045. */
  9046. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6,
  9047. /* 8-bit unsigned value to configure the driver to add a
  9048. * new BA session or delete the existing BA session for
  9049. * given TID. ADDBA command uses the buffer size and tid
  9050. * configuration if user specifies the values else default
  9051. * value for buffer size is used for all tids if the tid
  9052. * also not specified. For DEL_BA command TID value is
  9053. * required to process the command.
  9054. * Uses enum qca_wlan_ba_session_config values.
  9055. * This attribute is used to configure the testbed device.
  9056. */
  9057. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7,
  9058. /* 16-bit unsigned value to configure the buffer size in addba
  9059. * request and response frames.
  9060. * This attribute is used to configure the testbed device.
  9061. * The range of the value is 0 to 256.
  9062. */
  9063. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8,
  9064. /* 8-bit unsigned value to configure the buffer size in addba
  9065. * request and response frames.
  9066. * This attribute is used to configure the testbed device.
  9067. */
  9068. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9,
  9069. /* 8-bit unsigned value to configure the no ack policy.
  9070. * To configure no ack policy, access category value
  9071. * is required to process the command.
  9072. * This attribute is used to configure the testbed device.
  9073. * 1 - enable no ack, 0 - disable no ack
  9074. */
  9075. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10,
  9076. /* 8-bit unsigned value to configure the AC for no ack policy
  9077. * This attribute is used to configure the testbed device.
  9078. * uses the enum qca_wlan_ac_type values
  9079. */
  9080. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11,
  9081. /* 8-bit unsigned value to configure the HE LTF
  9082. * This attribute is used to configure the testbed device.
  9083. * Uses the enum qca_wlan_he_ltf_cfg values.
  9084. */
  9085. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12,
  9086. /* 8-bit unsigned value to configure the tx beamformee.
  9087. * This attribute is used to configure the testbed device.
  9088. * 1 - enable, 0 - disable.
  9089. */
  9090. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13,
  9091. /* 8-bit unsigned value to configure the tx beamformee number of
  9092. * space-time streams.
  9093. * This attribute is used to configure the testbed device.
  9094. * The range of the value is 0 to 8
  9095. */
  9096. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14,
  9097. /* 8-bit unsigned value to configure the MU EDCA params for given AC
  9098. * This attribute is used to configure the testbed device.
  9099. * Uses the enum qca_wlan_ac_type values.
  9100. */
  9101. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15,
  9102. /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC
  9103. * To configure MU EDCA AIFSN value, MU EDCA access category value
  9104. * is required to process the command.
  9105. * This attribute is used to configure the testbed device.
  9106. */
  9107. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16,
  9108. /* 8-bit unsigned value to configure the MU EDCA ECW min value for
  9109. * given AC.
  9110. * To configure MU EDCA ECW min value, MU EDCA access category value
  9111. * is required to process the command.
  9112. * This attribute is used to configure the testbed device.
  9113. */
  9114. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17,
  9115. /* 8-bit unsigned value to configure the MU EDCA ECW max value for
  9116. * given AC.
  9117. * To configure MU EDCA ECW max value, MU EDCA access category value
  9118. * is required to process the command.
  9119. * This attribute is used to configure the testbed device.
  9120. */
  9121. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18,
  9122. /* 8-bit unsigned value to configure the MU EDCA timer for given AC
  9123. * To configure MU EDCA timer value, MU EDCA access category value
  9124. * is required to process the command.
  9125. * This attribute is used to configure the testbed device.
  9126. */
  9127. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19,
  9128. /* 8-bit unsigned value to configure the HE trigger frame MAC padding
  9129. * duration.
  9130. * This attribute is used to configure the testbed device.
  9131. * Uses the enum qca_wlan_he_mac_padding_dur values.
  9132. */
  9133. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20,
  9134. /* 8-bit unsigned value to override the MU EDCA params to defaults
  9135. * regardless of the AP beacon MU EDCA params. If it is enabled use
  9136. * the default values else use the MU EDCA params from AP beacon.
  9137. * This attribute is used to configure the testbed device.
  9138. * 1 - enable override, 0 - disable.
  9139. */
  9140. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21,
  9141. /* 8-bit unsigned value to configure the support for receiving
  9142. * an MPDU that contains an operating mode control subfield.
  9143. * This attribute is used to configure the testbed device.
  9144. * 1-enable, 0-disable.
  9145. */
  9146. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22,
  9147. /* Nested attribute values required to setup the TWT session.
  9148. * enum qca_wlan_vendor_attr_twt_setup provides the necessary
  9149. * information to set up the session. It contains broadcast flags,
  9150. * set_up flags, trigger value, flow type, flow ID, wake interval
  9151. * exponent, protection, target wake time, wake duration, wake interval
  9152. * mantissa. These nested attributes are used to setup a host triggered
  9153. * TWT session.
  9154. */
  9155. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23,
  9156. /* This nested attribute is used to terminate the current TWT session.
  9157. * It does not currently carry any attributes.
  9158. */
  9159. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24,
  9160. /* This nested attribute is used to suspend the current TWT session.
  9161. * It does not currently carry any attributes.
  9162. */
  9163. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25,
  9164. /* Nested attribute values to indicate the request for resume.
  9165. * This attribute is used to resume the TWT session.
  9166. * enum qca_wlan_vendor_attr_twt_resume provides the necessary
  9167. * parameters required to resume the TWT session.
  9168. */
  9169. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26,
  9170. /* 8-bit unsigned value to set the HE operating mode control
  9171. * (OM CTRL) Channel Width subfield.
  9172. * The Channel Width subfield indicates the operating channel width
  9173. * supported by the STA for both reception and transmission.
  9174. * Uses the enum qca_wlan_he_om_ctrl_ch_bw values.
  9175. * This setting is cleared with the
  9176. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9177. * flag attribute to reset defaults.
  9178. * This attribute is used to configure the testbed device.
  9179. */
  9180. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27,
  9181. /* 8-bit unsigned value to configure the number of spatial
  9182. * streams in HE operating mode control field.
  9183. * This setting is cleared with the
  9184. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9185. * flag attribute to reset defaults.
  9186. * This attribute is used to configure the testbed device.
  9187. */
  9188. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28,
  9189. /* Flag attribute to configure the UL MU disable bit in
  9190. * HE operating mode control field.
  9191. * This setting is cleared with the
  9192. * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG
  9193. * flag attribute to reset defaults.
  9194. * This attribute is used to configure the testbed device.
  9195. */
  9196. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29,
  9197. /* Flag attribute to clear the previously set HE operating mode
  9198. * control field configuration.
  9199. * This attribute is used to configure the testbed device to reset
  9200. * defaults to clear any previously set HE operating mode control
  9201. * field configuration.
  9202. */
  9203. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30,
  9204. /* 8-bit unsigned value to configure HE single user PPDU
  9205. * transmission. By default this setting is disabled and it
  9206. * is disabled in the reset defaults of the device configuration.
  9207. * This attribute is used to configure the testbed device.
  9208. * 1-enable, 0-disable
  9209. */
  9210. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31,
  9211. /* 8-bit unsigned value to configure action frame transmission
  9212. * in HE trigger based PPDU transmission.
  9213. * By default this setting is disabled and it is disabled in
  9214. * the reset defaults of the device configuration.
  9215. * This attribute is used to configure the testbed device.
  9216. * 1-enable, 0-disable
  9217. */
  9218. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32,
  9219. /* Nested attribute to indicate HE operating mode control field
  9220. * transmission. It contains operating mode control field Nss,
  9221. * channel bandwidth, Tx Nsts and UL MU disable attributes.
  9222. * These nested attributes are used to send HE operating mode control
  9223. * with configured values.
  9224. * Uses the enum qca_wlan_vendor_attr_omi_tx attributes.
  9225. * This attribute is used to configure the testbed device.
  9226. */
  9227. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33,
  9228. /* 8-bit unsigned value to configure +HTC_HE support to indicate the
  9229. * support for the reception of a frame that carries an HE variant
  9230. * HT Control field.
  9231. * This attribute is used to configure the testbed device.
  9232. * 1-enable, 0-disable
  9233. */
  9234. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34,
  9235. /* 8-bit unsigned value to configure VHT support in 2.4G band.
  9236. * This attribute is used to configure the testbed device.
  9237. * 1-enable, 0-disable
  9238. */
  9239. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35,
  9240. /* 8-bit unsigned value to configure HE testbed defaults.
  9241. * This attribute is used to configure the testbed device.
  9242. * 1-set the device HE capabilities to testbed defaults.
  9243. * 0-reset the device HE capabilities to supported config.
  9244. */
  9245. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36,
  9246. /* 8-bit unsigned value to configure twt request support.
  9247. * This attribute is used to configure the testbed device.
  9248. * 1-enable, 0-disable.
  9249. */
  9250. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37,
  9251. /* 8-bit unsigned value to configure protection for Management
  9252. * frames when PMF is enabled for the association.
  9253. * This attribute is used to configure the testbed device.
  9254. * 0-use the correct key, 1-use an incorrect key, 2-disable protection.
  9255. */
  9256. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38,
  9257. /* Flag attribute to inject Disassociation frame to the connected AP.
  9258. * This attribute is used to configure the testbed device.
  9259. */
  9260. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39,
  9261. /* 8-bit unsigned value to configure an override for the RSNXE Used
  9262. * subfield in the MIC control field of the FTE in FT Reassociation
  9263. * Request frame.
  9264. * 0 - Default behavior, 1 - override with 1, 2 - override with 0.
  9265. * This attribute is used to configure the testbed device.
  9266. * This attribute can be configured when STA is in disconnected or
  9267. * associated state and the configuration is valid until the next
  9268. * disconnection.
  9269. */
  9270. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40,
  9271. /* 8-bit unsigned value to configure the driver to ignore CSA (Channel
  9272. * Switch Announcement) when STA is in connected state.
  9273. * 0 - Default behavior, 1 - Ignore CSA.
  9274. * This attribute is used to configure the testbed device.
  9275. * This attribute can be configured when STA is in disconnected or
  9276. * associated state and the configuration is valid until the next
  9277. * disconnection.
  9278. */
  9279. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41,
  9280. /* Nested attribute values required to configure OCI (Operating Channel
  9281. * Information). Attributes defined in enum
  9282. * qca_wlan_vendor_attr_oci_override are nested within this attribute.
  9283. * This attribute is used to configure the testbed device.
  9284. * This attribute can be configured when STA is in disconnected or
  9285. * associated state and the configuration is valid until the next
  9286. * disconnection.
  9287. */
  9288. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42,
  9289. /* 8-bit unsigned value to configure the driver/firmware to ignore SA
  9290. * Query timeout. If this configuration is enabled STA shall not send
  9291. * Deauthentication frmae when SA Query times out (mainly, after a
  9292. * channel switch when OCV is enabled).
  9293. * 0 - Default behavior, 1 - Ignore SA Query timeout.
  9294. * This attribute is used to configure the testbed device.
  9295. * This attribute can be configured only when STA is in associated state
  9296. * and the configuration is valid until the disconnection.
  9297. */
  9298. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43,
  9299. /* 8-bit unsigned value to configure the driver/firmware to start or
  9300. * stop transmitting FILS discovery frames.
  9301. * 0 - Stop transmitting FILS discovery frames
  9302. * 1 - Start transmitting FILS discovery frames
  9303. * This attribute is used to configure the testbed device.
  9304. * This attribute can be configured only in AP mode and the
  9305. * configuration is valid until AP restart.
  9306. */
  9307. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44,
  9308. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9309. * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities
  9310. * information field.
  9311. * 0 - Disable full bandwidth UL MU-MIMO subfield
  9312. * 1 - Enable full bandwidth UL MU-MIMO subfield
  9313. * This attribute is used to configure the testbed device.
  9314. */
  9315. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45,
  9316. /* 16-bit unsigned value to configure the driver with a specific BSS
  9317. * max idle period to advertise in the BSS Max Idle Period element
  9318. * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames.
  9319. * This attribute is used to configure the testbed device.
  9320. */
  9321. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46,
  9322. /* 8-bit unsigned value to configure the driver to use only RU 242 tone
  9323. * for data transmission.
  9324. * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx.
  9325. * This attribute is used to configure the testbed device.
  9326. */
  9327. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47,
  9328. /* 8-bit unsigned value to configure the driver to disable data and
  9329. * management response frame transmission to test the BSS max idle
  9330. * feature.
  9331. * 0 - Default behavior, 1 - Disable data and management response Tx.
  9332. * This attribute is used to configure the testbed device.
  9333. */
  9334. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48,
  9335. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9336. * disable Punctured Preamble Rx subfield in the HE PHY capabilities
  9337. * information field.
  9338. * 0 - Disable Punctured Preamble Rx subfield
  9339. * 1 - Enable Punctured Preamble Rx subfield
  9340. * This attribute is used to configure the testbed device.
  9341. */
  9342. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49,
  9343. /* 8-bit unsigned value to configure the driver to ignore the SAE H2E
  9344. * requirement mismatch for 6 GHz connection.
  9345. * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch.
  9346. * This attribute is used to configure the testbed device.
  9347. */
  9348. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50,
  9349. /* 8-bit unsigned value to configure the driver to allow 6 GHz
  9350. * connection with all security modes.
  9351. * 0 - Default behavior, 1 - Allow 6 GHz connection with all security
  9352. * modes.
  9353. * This attribute is used for testing purposes.
  9354. */
  9355. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51,
  9356. /* 8-bit unsigned value to configure the driver to transmit data with
  9357. * ER SU PPDU type.
  9358. *
  9359. * 0 - Default behavior, 1 - Enable ER SU PPDU type TX.
  9360. * This attribute is used for testing purposes.
  9361. */
  9362. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52,
  9363. /* 8-bit unsigned value to configure the driver to use Data or
  9364. * Management frame type for keep alive data.
  9365. * Uses enum qca_wlan_keep_alive_data_type values.
  9366. *
  9367. * This attribute is used for testing purposes.
  9368. */
  9369. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53,
  9370. /* 8-bit unsigned value to configure the driver to use scan request
  9371. * BSSID value in Probe Request frame RA(A1) during the scan. The
  9372. * driver saves this configuration and applies this setting to all user
  9373. * space scan requests until the setting is cleared. If this
  9374. * configuration is set, the driver uses the BSSID value from the scan
  9375. * request to set the RA(A1) in the Probe Request frames during the
  9376. * scan.
  9377. *
  9378. * 0 - Default behavior uses the broadcast RA in Probe Request frames.
  9379. * 1 - Uses the scan request BSSID in RA in Probe Request frames.
  9380. * This attribute is used for testing purposes.
  9381. */
  9382. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54,
  9383. /* 8-bit unsigned value to configure the driver to enable/disable the
  9384. * BSS max idle period support.
  9385. *
  9386. * 0 - Disable the BSS max idle support.
  9387. * 1 - Enable the BSS max idle support.
  9388. * This attribute is used for testing purposes.
  9389. */
  9390. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55,
  9391. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9392. * disable Rx control frame to MultiBSS subfield in the HE MAC
  9393. * capabilities information field.
  9394. * 0 - Disable Rx control frame to MultiBSS subfield
  9395. * 1 - Enable Rx control frame to MultiBSS subfield
  9396. * This attribute is used to configure the testbed device.
  9397. */
  9398. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56,
  9399. /* 8-bit unsigned value to configure the driver/firmware to enable or
  9400. * disable Broadcast TWT support subfield in the HE MAC capabilities
  9401. * information field.
  9402. * 0 - Disable Broadcast TWT support subfield
  9403. * 1 - Enable Broadcast TWT support subfield
  9404. * This attribute is used to configure the testbed device.
  9405. */
  9406. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57,
  9407. /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR
  9408. * mode for 802.11be MLO capable devices. If the attribute is set to 1,
  9409. * and if the FW supports this capability too, then the STA host
  9410. * advertises this capability to AP over assoc request frame. This
  9411. * attribute will not have any effect on legacy devices with no 802.11be
  9412. * support.
  9413. * 0 - Default behavior
  9414. * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode
  9415. * This attribute is used to configure the testbed device.
  9416. */
  9417. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58,
  9418. /* 8-bit unsigned value to configure the driver to enable/disable the
  9419. * periodic sounding for Tx beamformer functionality. The default
  9420. * behavior uses algorithm to do sounding based on packet stats.
  9421. *
  9422. * 0 - Default behavior.
  9423. * 1 - Enable the periodic sounding for Tx beamformer.
  9424. * This attribute is used for testing purposes.
  9425. */
  9426. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59,
  9427. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9428. * to indicate the maximum number of spatial streams that the STA
  9429. * can receive in an EHT sounding NDP for <= 80 MHz bandwidth.
  9430. * The range of the value is 3 to 7.
  9431. * This attribute is used to configure the testbed device.
  9432. */
  9433. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60,
  9434. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9435. * to indicate the maximum number of spatial streams that the STA
  9436. * can receive in an EHT sounding NDP for 160 MHz bandwidth.
  9437. * The range of the value is 3 to 7.
  9438. * This attribute is used to configure the testbed device.
  9439. */
  9440. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61,
  9441. /* 8-bit unsigned value to configure beamformee SS EHT capability
  9442. * to indicate the maximum number of spatial streams that the STA
  9443. * can receive in an EHT sounding NDP for 320 MHz bandwidth.
  9444. * The range of the value is 3 to 7.
  9445. * This attribute is used to configure the testbed device.
  9446. */
  9447. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62,
  9448. /* 8-bit unsigned value to configure the driver to exclude station
  9449. * profile in Probe Request frame Multi-Link element.
  9450. * 0 - Default behavior, sends the Probe Request frame with station
  9451. * profile data included in the Multi-Link element.
  9452. * 1 - Exclude station profile in Probe Request frame Multi-Link
  9453. * element.
  9454. * This attribute is used to configure the testbed device.
  9455. */
  9456. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63,
  9457. /* 8-bit unsigned value to configure EHT testbed defaults.
  9458. * This attribute is used to configure the testbed device.
  9459. * 1 - Set the device EHT capabilities to testbed defaults.
  9460. * 0 - Reset the device EHT capabilities to supported config.
  9461. */
  9462. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64,
  9463. /* 8-bit unsigned value to indicate the EHT MCS support.
  9464. * Uses enum eht_mcs_config values.
  9465. * This attribute is used to configure the testbed device to
  9466. * allow the advertised hardware capabilities to be downgraded
  9467. * for testing purposes.
  9468. */
  9469. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65,
  9470. /* 8-bit unsigned value to configure EHT TB Sounding Feedback
  9471. * Rate Limit capability.
  9472. * This attribute is used to configure the testbed device.
  9473. * 0 - Indicates no maximum supported data rate limitation.
  9474. * 1 - Indicates the maximum supported data rate is the lower of
  9475. * the 1500 Mb/s and the maximum supported data rate.
  9476. */
  9477. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66,
  9478. /* 8-bit unsigned value to configure the support for receiving an MPDU
  9479. * that contains an EHT operating mode control subfield.
  9480. * This attribute is used to configure the testbed device.
  9481. * 1-enable, 0-disable.
  9482. */
  9483. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67,
  9484. /* 8-bit unsigned value to configure the driver with EMLSR padding delay
  9485. * subfield value.
  9486. *
  9487. * 0 - 0 us
  9488. * 1 - 32 us
  9489. * 2 - 64 us
  9490. * 3 - 128 us
  9491. * 4 - 256 us
  9492. * 5-255 - Reserved
  9493. *
  9494. * This attribute is used for testing purposes.
  9495. */
  9496. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68,
  9497. /*
  9498. * 8-bit unsigned value to indicate the firmware to force the active MLO
  9499. * links to power save mode for the configured number of beacon periods.
  9500. * This allows the firmware to suspend STA links for X beacon periods
  9501. * and remain asleep even if the AP advertises TIM as opposed to regular
  9502. * power save mode where STA links wake up if the AP indicates that it
  9503. * has buffered data to send.
  9504. * This attribute is used to configure the testbed device.
  9505. */
  9506. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69,
  9507. /*
  9508. * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode
  9509. * to enable simultaneous transmission of PPDUs on all active links.
  9510. * 0 - Default behavior
  9511. * 1 - Enter STR mode for simultaneous data transmission on all links
  9512. */
  9513. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70,
  9514. /* keep last */
  9515. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST,
  9516. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =
  9517. QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1,
  9518. };
  9519. /**
  9520. * enum qca_wlan_twt_operation - Operation of the config TWT request
  9521. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION.
  9522. * The response for the respective operations can be either synchronous or
  9523. * asynchronous (wherever specified). If synchronous, the response to this
  9524. * operation is obtained in the corresponding vendor command reply to the user
  9525. * space. For the asynchronous case the response is obtained as an event with
  9526. * the same operation type.
  9527. *
  9528. * Drivers shall support either of these modes but not both simultaneously.
  9529. * This support for asynchronous mode is advertised through the flag
  9530. * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised,
  9531. * the driver shall support synchronous mode.
  9532. *
  9533. * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured
  9534. * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9535. * qca_wlan_vendor_attr_twt_setup. Depending upon the
  9536. * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a
  9537. * synchronous or asynchronous operation.
  9538. *
  9539. * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are
  9540. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9541. * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation.
  9542. *
  9543. * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are
  9544. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9545. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9546. * This terminate can either get triggered by the user space or can as well be
  9547. * a notification from the firmware if it initiates a terminate.
  9548. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9549. * the request from user space can either be a synchronous or asynchronous
  9550. * operation.
  9551. *
  9552. * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are
  9553. * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9554. * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup.
  9555. * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability,
  9556. * this is either a synchronous or asynchronous operation.
  9557. *
  9558. * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are
  9559. * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum
  9560. * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup.
  9561. * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE
  9562. * request.
  9563. * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9564. * capability, this is either a synchronous or asynchronous operation.
  9565. *
  9566. * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a
  9567. * combination of suspend and resume in a single request. Required parameters
  9568. * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the
  9569. * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is
  9570. * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT
  9571. * capability, this is either a synchronous or asynchronous operation.
  9572. *
  9573. * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information.
  9574. * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT
  9575. * session is setup. It's a synchronous operation.
  9576. *
  9577. * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information.
  9578. * Valid only after the TWT session is setup. It's a synchronous operation.
  9579. *
  9580. * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its
  9581. * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous
  9582. * operation.
  9583. *
  9584. * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is
  9585. * ready for a new TWT session setup after it issued a twt teardown.
  9586. *
  9587. * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required
  9588. * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer
  9589. * the enum qca_wlan_vendor_attr_twt_set_param.
  9590. *
  9591. * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT
  9592. * related information for example TWT required bit in AP capabilities etc.
  9593. * The reason for the notification is sent using
  9594. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS.
  9595. */
  9596. enum qca_wlan_twt_operation {
  9597. QCA_WLAN_TWT_SET = 0,
  9598. QCA_WLAN_TWT_GET = 1,
  9599. QCA_WLAN_TWT_TERMINATE = 2,
  9600. QCA_WLAN_TWT_SUSPEND = 3,
  9601. QCA_WLAN_TWT_RESUME = 4,
  9602. QCA_WLAN_TWT_NUDGE = 5,
  9603. QCA_WLAN_TWT_GET_STATS = 6,
  9604. QCA_WLAN_TWT_CLEAR_STATS = 7,
  9605. QCA_WLAN_TWT_GET_CAPABILITIES = 8,
  9606. QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9,
  9607. QCA_WLAN_TWT_SET_PARAM = 10,
  9608. QCA_WLAN_TWT_NOTIFY = 11,
  9609. };
  9610. /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by
  9611. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT
  9612. *
  9613. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION:
  9614. * u8 attribute. Specify the TWT operation of this request. Possible values
  9615. * are defined in enum qca_wlan_twt_operation. The parameters for the
  9616. * respective operation is specified through
  9617. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS.
  9618. *
  9619. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the
  9620. * parameters configured for TWT. These parameters are represented by
  9621. * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume,
  9622. * enum qca_wlan_vendor_attr_twt_set_param or
  9623. * enum qca_wlan_vendor_attr_twt_stats based on the operation.
  9624. *
  9625. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when
  9626. * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY.
  9627. * The values used by this attribute are defined in
  9628. * enum qca_wlan_vendor_twt_status.
  9629. */
  9630. enum qca_wlan_vendor_attr_config_twt {
  9631. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0,
  9632. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1,
  9633. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2,
  9634. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3,
  9635. /* keep last */
  9636. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST,
  9637. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX =
  9638. QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1,
  9639. };
  9640. /**
  9641. * qca_wlan_twt_setup_state: Represents the TWT session states.
  9642. *
  9643. * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established.
  9644. * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active.
  9645. * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state.
  9646. */
  9647. enum qca_wlan_twt_setup_state {
  9648. QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0,
  9649. QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1,
  9650. QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2,
  9651. };
  9652. /**
  9653. * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for
  9654. * TWT (Target Wake Time) setup request. These attributes are sent as part of
  9655. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and
  9656. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9657. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9658. *
  9659. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute.
  9660. * Disable (flag attribute not present) - Individual TWT
  9661. * Enable (flag attribute present) - Broadcast TWT.
  9662. * Individual means the session is between the STA and the AP.
  9663. * This session is established using a separate negotiation between
  9664. * STA and AP.
  9665. * Broadcast means the session is across multiple STAs and an AP. The
  9666. * configuration parameters are announced in Beacon frames by the AP.
  9667. * This is used in
  9668. * 1. TWT SET Request and Response
  9669. * 2. TWT GET Response
  9670. *
  9671. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8).
  9672. * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to
  9673. * specify the TWT request type. This is used in TWT SET operation.
  9674. *
  9675. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute
  9676. * Enable (flag attribute present) - TWT with trigger support.
  9677. * Disable (flag attribute not present) - TWT without trigger support.
  9678. * Trigger means the AP will send the trigger frame to allow STA to send data.
  9679. * Without trigger, the STA will wait for the MU EDCA timer before
  9680. * transmitting the data.
  9681. * This is used in
  9682. * 1. TWT SET Request and Response
  9683. * 2. TWT GET Response
  9684. *
  9685. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8)
  9686. * 0 - Announced TWT - In this mode, STA may skip few service periods to
  9687. * save more power. If STA wants to wake up, it will send a PS-POLL/QoS
  9688. * NULL frame to AP.
  9689. * 1 - Unannounced TWT - The STA will wakeup during every SP.
  9690. * This is a required parameter for
  9691. * 1. TWT SET Request and Response
  9692. * 2. TWT GET Response
  9693. *
  9694. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8)
  9695. * Flow ID is the unique identifier for each TWT session.
  9696. * If not provided then dialog ID will be set to zero.
  9697. * This is an optional parameter for
  9698. * 1. TWT SET Request and Response
  9699. * 2. TWT GET Request and Response
  9700. * 3. TWT TERMINATE Request and Response
  9701. * 4. TWT SUSPEND Request and Response
  9702. * Flow Id values from 0 to 254 represent a single TWT session
  9703. * Flow ID value of 255 represents all twt sessions for the following
  9704. * 1. TWT TERMINATE Request and Response
  9705. * 2. TWT SUSPEND Request and Response
  9706. * 4. TWT CLEAR STATISTICS request
  9707. * 5. TWT GET STATISTICS request and response
  9708. * If an invalid dialog id is provided, status
  9709. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  9710. *
  9711. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8)
  9712. * This attribute (exp) is used along with the mantissa to derive the
  9713. * wake interval using the following formula:
  9714. * pow(2,exp) = wake_intvl_us/wake_intvl_mantis
  9715. * Wake interval is the interval between 2 successive SP.
  9716. * This is a required parameter for
  9717. * 1. TWT SET Request and Response
  9718. * 2. TWT GET Response
  9719. *
  9720. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute
  9721. * Enable (flag attribute present) - Protection required.
  9722. * Disable (flag attribute not present) - Protection not required.
  9723. * If protection is enabled, then the AP will use protection
  9724. * mechanism using RTS/CTS to self to reserve the airtime.
  9725. * This is used in
  9726. * 1. TWT SET Request and Response
  9727. * 2. TWT GET Response
  9728. *
  9729. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32)
  9730. * This attribute is used as the SP offset which is the offset from
  9731. * TSF after which the wake happens. The units are in microseconds. If
  9732. * this attribute is not provided, then the value will be set to zero.
  9733. * This is an optional parameter for
  9734. * 1. TWT SET Request and Response
  9735. * 2. TWT GET Response
  9736. *
  9737. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32)
  9738. * This is the duration of the service period. This is specified as
  9739. * multiples of 256 microseconds. Valid values are 0x1 to 0xFF.
  9740. * This is a required parameter for
  9741. * 1. TWT SET Request and Response
  9742. * 2. TWT GET Response
  9743. *
  9744. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32)
  9745. * This attribute is used to configure wake interval mantissa.
  9746. * The units are in TU.
  9747. * This is a required parameter for
  9748. * 1. TWT SET Request and Response
  9749. * 2. TWT GET Response
  9750. *
  9751. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8)
  9752. * This field is applicable for TWT response only.
  9753. * This contains status values in enum qca_wlan_vendor_twt_status
  9754. * and is passed to the userspace. This is used in TWT SET operation.
  9755. * This is a required parameter for
  9756. * 1. TWT SET Response
  9757. * 2. TWT TERMINATE Response
  9758. * 3. TWT SUSPEND Response
  9759. * 4. TWT RESUME Response
  9760. * 5. TWT NUDGE Response
  9761. *
  9762. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8)
  9763. * This field is applicable for TWT response only.
  9764. * This field contains response type from the TWT responder and is
  9765. * passed to the userspace. The values for this field are defined in
  9766. * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET
  9767. * response.
  9768. *
  9769. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64)
  9770. * In TWT setup command this field contains absolute TSF that will
  9771. * be used by TWT requester during setup.
  9772. * In TWT response this field contains absolute TSF value of the
  9773. * wake time received from the TWT responder and is passed to
  9774. * the userspace.
  9775. * This is an optional parameter for
  9776. * 1. TWT SET Request
  9777. * This is a required parameter for
  9778. * 1. TWT SET Response
  9779. * 2. TWT GET Response
  9780. *
  9781. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute.
  9782. * Enable (flag attribute present) - Indicates that the TWT responder
  9783. * supports reception of TWT information frame from the TWT requestor.
  9784. * Disable (flag attribute not present) - Indicates that the responder
  9785. * doesn't support reception of TWT information frame from requestor.
  9786. * This is used in
  9787. * 1. TWT SET Response
  9788. * 2. TWT GET Response
  9789. *
  9790. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address
  9791. * Represents the MAC address of the peer for which the TWT session
  9792. * is being configured. This is used in AP mode to represent the respective
  9793. * client
  9794. * In AP mode, this is a required parameter in response for
  9795. * 1. TWT SET
  9796. * 2. TWT GET
  9797. * 3. TWT TERMINATE
  9798. * 4. TWT SUSPEND
  9799. * In STA mode, this is an optional parameter in request and response for
  9800. * the above four TWT operations.
  9801. * In AP mode, this is a required parameter in request for
  9802. * 1. TWT GET
  9803. * 2. TWT TERMINATE
  9804. *
  9805. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32)
  9806. * Minimum tolerance limit of wake interval parameter in microseconds.
  9807. *
  9808. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32)
  9809. * Maximum tolerance limit of wake interval parameter in microseconds.
  9810. *
  9811. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32)
  9812. * Minimum tolerance limit of wake duration parameter in microseconds.
  9813. *
  9814. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32)
  9815. * Maximum tolerance limit of wake duration parameter in microseconds.
  9816. *
  9817. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32)
  9818. * TWT state for the given dialog id. The values for this are represented
  9819. * by enum qca_wlan_twt_setup_state.
  9820. * This is obtained through TWT GET operation.
  9821. *
  9822. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32)
  9823. * This attribute is used to configure wake interval mantissa.
  9824. * The unit is microseconds. This attribute, when specified, takes
  9825. * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA.
  9826. * This parameter is used for
  9827. * 1. TWT SET Request and Response
  9828. * 2. TWT GET Response
  9829. *
  9830. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8)
  9831. * This attribute is used to configure Broadcast TWT ID.
  9832. * The Broadcast TWT ID indicates a specific Broadcast TWT for which the
  9833. * transmitting STA is providing TWT parameters. The allowed values are 0 to 31.
  9834. * This parameter is used for
  9835. * 1. TWT SET Request
  9836. * 2. TWT TERMINATE Request
  9837. *
  9838. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8)
  9839. * This attribute is used to configure Broadcast TWT recommendation.
  9840. * The Broadcast TWT Recommendation subfield contains a value that indicates
  9841. * recommendations on the types of frames that are transmitted by TWT
  9842. * scheduled STAs and scheduling AP during the broadcast TWT SP.
  9843. * The allowed values are 0 - 3.
  9844. * This parameter is used for
  9845. * 1. TWT SET Request
  9846. *
  9847. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8)
  9848. * This attribute is used to configure Broadcast TWT Persistence.
  9849. * The Broadcast TWT Persistence subfield indicates the number of
  9850. * TBTTs during which the Broadcast TWT SPs corresponding to this
  9851. * broadcast TWT Parameter set are present. The number of beacon intervals
  9852. * during which the Broadcast TWT SPs are present is equal to the value in the
  9853. * Broadcast TWT Persistence subfield plus 1 except that the value 255
  9854. * indicates that the Broadcast TWT SPs are present until explicitly terminated.
  9855. * This parameter is used for
  9856. * 1. TWT SET Request
  9857. *
  9858. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8)
  9859. * This attribute contains the value of the Responder PM Mode subfield (0 or 1)
  9860. * from TWT response frame.
  9861. * This parameter is used for
  9862. * 1. TWT SET Response
  9863. * 2. TWT GET Response
  9864. *
  9865. * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32)
  9866. * This attribute is used to configure the announce timeout value (in us) in
  9867. * firmware. This timeout value is only applicable for announced TWT. If
  9868. * timeout value is non-zero then firmware waits upto timeout value to use
  9869. * data frame as announcement frame. If timeout value is 0 then firmware sends
  9870. * explicit QoS NULL frame as announcement frame on SP start. Default value in
  9871. * firmware is 0.
  9872. * This parameter is used for
  9873. * 1. TWT SET Request
  9874. */
  9875. enum qca_wlan_vendor_attr_twt_setup {
  9876. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0,
  9877. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1,
  9878. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2,
  9879. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3,
  9880. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4,
  9881. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5,
  9882. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6,
  9883. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7,
  9884. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8,
  9885. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9,
  9886. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10,
  9887. /* TWT Response only attributes */
  9888. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11,
  9889. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12,
  9890. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13,
  9891. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14,
  9892. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15,
  9893. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16,
  9894. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17,
  9895. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18,
  9896. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19,
  9897. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20,
  9898. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21,
  9899. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22,
  9900. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23,
  9901. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24,
  9902. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25,
  9903. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26,
  9904. /* keep last */
  9905. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST,
  9906. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX =
  9907. QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1,
  9908. };
  9909. /**
  9910. * enum qca_wlan_vendor_twt_status - Represents the status of the requested
  9911. * TWT operation
  9912. *
  9913. * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed
  9914. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled
  9915. * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used
  9916. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy
  9917. * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist
  9918. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state
  9919. * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters
  9920. * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready
  9921. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted
  9922. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the
  9923. * request/response frame
  9924. * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response
  9925. * frame
  9926. * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request
  9927. * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an
  9928. * unknown reason
  9929. * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in
  9930. * suspend state
  9931. * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to
  9932. * invalid IE in the received TWT frame
  9933. * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from
  9934. * the responder are not in the specified range
  9935. * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT
  9936. * session due to request from the responder. Used on the TWT_TERMINATE
  9937. * notification from the firmware.
  9938. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT
  9939. * session due to roaming. Used on the TWT_TERMINATE notification from the
  9940. * firmware.
  9941. * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the
  9942. * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel)
  9943. * Concurrency). Used on the TWT_TERMINATE notification from the firmware.
  9944. * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup
  9945. * request due to roaming in progress.
  9946. * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT
  9947. * setup request due to channel switch in progress.
  9948. * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup
  9949. * request due to scan in progress.
  9950. * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to
  9951. * terminate an existing TWT session on power save exit request from userspace.
  9952. * Used on the TWT_TERMINATE notification from the driver/firmware.
  9953. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT
  9954. * required bit in its capabilities.
  9955. * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared
  9956. * the TWT required bit(1->0) in its capabilities.
  9957. */
  9958. enum qca_wlan_vendor_twt_status {
  9959. QCA_WLAN_VENDOR_TWT_STATUS_OK = 0,
  9960. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1,
  9961. QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2,
  9962. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3,
  9963. QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4,
  9964. QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5,
  9965. QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6,
  9966. QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7,
  9967. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8,
  9968. QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9,
  9969. QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10,
  9970. QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11,
  9971. QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12,
  9972. QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13,
  9973. QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14,
  9974. QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15,
  9975. QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16,
  9976. QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17,
  9977. QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18,
  9978. QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19,
  9979. QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20,
  9980. QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21,
  9981. QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22,
  9982. QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23,
  9983. QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24,
  9984. };
  9985. /**
  9986. * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for
  9987. * TWT (Target Wake Time) resume request. These attributes are sent as part of
  9988. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and
  9989. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by
  9990. * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  9991. *
  9992. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8)
  9993. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32)
  9994. * These attributes are used as the SP offset which is the offset from TSF after
  9995. * which the wake happens. The units are in microseconds. Please note that
  9996. * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data.
  9997. * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation
  9998. * is to use _NEXT2_TWT. If neither of these attributes is provided, the value
  9999. * will be set to zero.
  10000. *
  10001. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32)
  10002. * This attribute represents the next TWT subfield size.
  10003. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  10004. * and 4 for 64 bits.
  10005. *
  10006. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8).
  10007. * Flow ID is the unique identifier for each TWT session. This attribute
  10008. * represents the respective TWT session to resume.
  10009. * Flow Id values from 0 to 254 represent a single TWT session
  10010. * Flow ID value of 255 represents all TWT sessions.
  10011. * If an invalid dialog id is provided, status
  10012. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  10013. *
  10014. * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address
  10015. * Represents the MAC address of the peer to which TWT Resume is
  10016. * being sent. This is used in AP mode to represent the respective
  10017. * client and is a required parameter. In STA mode, this is an optional
  10018. * parameter
  10019. *
  10020. */
  10021. enum qca_wlan_vendor_attr_twt_resume {
  10022. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0,
  10023. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1,
  10024. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2,
  10025. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3,
  10026. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4,
  10027. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5,
  10028. /* keep last */
  10029. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST,
  10030. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX =
  10031. QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1,
  10032. };
  10033. /**
  10034. * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for
  10035. * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend
  10036. * and resume in a single request. These attributes are sent as part of
  10037. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10038. *
  10039. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  10040. * Flow ID is the unique identifier for each TWT session. This attribute
  10041. * represents the respective TWT session to suspend and resume.
  10042. *
  10043. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8)
  10044. * Flow ID is the unique identifier for each TWT session. This attribute
  10045. * represents the respective TWT session to suspend and resume.
  10046. * Flow Id values from 0 to 254 represent a single TWT session
  10047. * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request
  10048. * and response.
  10049. * If an invalid dialog id is provided, status
  10050. * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned.
  10051. *
  10052. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32)
  10053. * This attribute is used as the SP offset which is the offset from
  10054. * TSF after which the wake happens. The units are in microseconds.
  10055. *
  10056. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32)
  10057. * This attribute represents the next TWT subfield size.
  10058. * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits,
  10059. * and 4 for 64 bits.
  10060. *
  10061. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address
  10062. * Represents the MAC address of the peer to which TWT Suspend and Resume is
  10063. * being sent. This is used in AP mode to represent the respective
  10064. * client and is a required parameter. In STA mode, this is an optional
  10065. * parameter.
  10066. *
  10067. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64)
  10068. * This field contains absolute TSF value of the time at which twt
  10069. * sesion will be resumed.
  10070. *
  10071. * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32)
  10072. * This field will be used when device supports Flexible TWT.
  10073. * This field contains an offset value by which to shift the starting time
  10074. * of the next service period. The value of offset can be negative or positive.
  10075. * If provided, this attribute will override
  10076. * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds.
  10077. */
  10078. enum qca_wlan_vendor_attr_twt_nudge {
  10079. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0,
  10080. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1,
  10081. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2,
  10082. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3,
  10083. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4,
  10084. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5,
  10085. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6,
  10086. /* keep last */
  10087. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST,
  10088. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX =
  10089. QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1,
  10090. };
  10091. /**
  10092. * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for
  10093. * TWT (Target Wake Time) get statistics and clear statistics request.
  10094. * These attributes are sent as part of
  10095. * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10096. *
  10097. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8)
  10098. * Flow ID is the unique identifier for each TWT session. This attribute
  10099. * represents the respective TWT session for get and clear TWT statistics.
  10100. * Flow Id values from 0 to 254 represent a single TWT session
  10101. * Flow ID value of 255 represents all TWT sessions in
  10102. * 1) TWT GET STATISTICS request and response
  10103. * 2) TWT CLEAR STATISTICS request
  10104. *
  10105. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address
  10106. * Represents the MAC address of the peer for which TWT Statistics
  10107. * is required.
  10108. * In AP mode this is used to represent the respective
  10109. * client and is a required parameter for
  10110. * 1) TWT GET STATISTICS request and response
  10111. * 2) TWT CLEAR STATISTICS request and response
  10112. * In STA mode, this is an optional parameter.
  10113. *
  10114. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32)
  10115. * This is the duration of the service period in microseconds.
  10116. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10117. *
  10118. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32)
  10119. * Average of actual wake duration observed so far. Unit is microseconds.
  10120. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10121. *
  10122. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32)
  10123. * Number of TWT service period elapsed so far.
  10124. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10125. *
  10126. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10127. * This is the minimum value of wake duration observed across
  10128. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10129. * microseconds.
  10130. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10131. *
  10132. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32)
  10133. * This is the maximum value of wake duration observed across
  10134. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is
  10135. * microseconds.
  10136. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10137. *
  10138. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32)
  10139. * Average number of MPDU's transmitted successfully across
  10140. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10141. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10142. *
  10143. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32)
  10144. * Average number of MPDU's received successfully across
  10145. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10146. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10147. *
  10148. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32)
  10149. * Average number of bytes transmitted successfully across
  10150. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10151. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10152. *
  10153. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32)
  10154. * Average number of bytes received successfully across
  10155. * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS.
  10156. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10157. *
  10158. * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32)
  10159. * Status of the TWT GET STATISTICS request.
  10160. * This contains status values in enum qca_wlan_vendor_twt_status
  10161. * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware.
  10162. */
  10163. enum qca_wlan_vendor_attr_twt_stats {
  10164. QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0,
  10165. QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1,
  10166. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2,
  10167. QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3,
  10168. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4,
  10169. QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5,
  10170. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6,
  10171. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7,
  10172. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8,
  10173. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9,
  10174. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10,
  10175. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11,
  10176. QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12,
  10177. /* keep last */
  10178. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST,
  10179. QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX =
  10180. QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1,
  10181. };
  10182. /**
  10183. * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities
  10184. * supported by the device and peer.
  10185. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES
  10186. *
  10187. * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by
  10188. * TWT non-scheduling STA. This capability is advertised in the HE
  10189. * capability/Extended capabilities information element in the
  10190. * Association request frame by the device.
  10191. *
  10192. * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised
  10193. * by the TWT scheduling AP. This capability is advertised in the extended
  10194. * capabilities/HE capabilities information element.
  10195. *
  10196. * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support
  10197. * for the broadcast TWT functionality. On responder side, this indicates
  10198. * support for the role of broadcast TWT scheduling functionality. This
  10199. * capability is advertised in the HE capabilities information element.
  10200. *
  10201. * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule.
  10202. * This capability is advertised in the HE capabilities information element.
  10203. *
  10204. * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate
  10205. * that it mandates the associated HE STAs to support TWT. This capability is
  10206. * advertised by AP in the HE Operation Parameters field of the HE operation
  10207. * information element.
  10208. */
  10209. enum qca_wlan_twt_capa {
  10210. QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0),
  10211. QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1),
  10212. QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2),
  10213. QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3),
  10214. QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4),
  10215. };
  10216. /**
  10217. * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT
  10218. * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT
  10219. * operation.
  10220. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address
  10221. * Represents the MAC address of the peer for which the TWT capabilities
  10222. * are being queried. This is used in AP mode to represent the respective
  10223. * client. In STA mode, this is an optional parameter.
  10224. *
  10225. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16).
  10226. * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10227. * enum qca_wlan_twt_capa.
  10228. * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16).
  10229. * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in
  10230. * enum qca_wlan_twt_capa.
  10231. */
  10232. enum qca_wlan_vendor_attr_twt_capability {
  10233. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0,
  10234. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1,
  10235. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2,
  10236. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3,
  10237. /* keep last */
  10238. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST,
  10239. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX =
  10240. QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1,
  10241. };
  10242. /**
  10243. * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for
  10244. * TWT (Target Wake Time) related parameters. It is used when
  10245. * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM.
  10246. * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT.
  10247. *
  10248. * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8)
  10249. * This attribute configures AC parameters to be used for all TWT
  10250. * sessions in AP mode.
  10251. * Uses the enum qca_wlan_ac_type values.
  10252. */
  10253. enum qca_wlan_vendor_attr_twt_set_param {
  10254. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0,
  10255. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1,
  10256. /* keep last */
  10257. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST,
  10258. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX =
  10259. QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1,
  10260. };
  10261. /**
  10262. * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by
  10263. * the TWT responder
  10264. *
  10265. * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT
  10266. * parameters that are different from TWT requesting STA suggested
  10267. * or demanded TWT parameters
  10268. * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT
  10269. * parameters that are different from TWT requesting STA TWT suggested
  10270. * or demanded parameters
  10271. * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT
  10272. * setup
  10273. * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT
  10274. * setup.
  10275. */
  10276. enum qca_wlan_vendor_twt_setup_resp_type {
  10277. QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1,
  10278. QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2,
  10279. QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3,
  10280. QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4,
  10281. };
  10282. /**
  10283. * enum qca_wlan_vendor_twt_setup_req_type - Required (u8)
  10284. * Represents the setup type being requested for TWT.
  10285. * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT
  10286. * parameters but relying on AP to fill the parameters during the negotiation.
  10287. * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested
  10288. * values which the AP may accept or AP may provide alternative parameters
  10289. * which the STA may accept.
  10290. * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any
  10291. * alternate parameters than the requested ones.
  10292. */
  10293. enum qca_wlan_vendor_twt_setup_req_type {
  10294. QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1,
  10295. QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2,
  10296. QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3,
  10297. };
  10298. /**
  10299. * enum qca_wlan_throughput_level - Current throughput level
  10300. *
  10301. * Indicates the current level of throughput calculated by driver. The driver
  10302. * may choose different thresholds to decide whether the throughput level is
  10303. * low or medium or high based on variety of parameters like physical link
  10304. * capacity of current connection, number of pakcets being dispatched per
  10305. * second etc. The throughput level events might not be consistent with the
  10306. * actual current throughput value being observed.
  10307. *
  10308. * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput
  10309. * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput
  10310. * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput
  10311. */
  10312. enum qca_wlan_throughput_level {
  10313. QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0,
  10314. QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1,
  10315. QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2,
  10316. };
  10317. /**
  10318. * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to
  10319. * report throughput changes from driver to user space. enum values are used
  10320. * for NL attributes sent with
  10321. * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command.
  10322. */
  10323. enum qca_wlan_vendor_attr_throughput_change {
  10324. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0,
  10325. /*
  10326. * Indicates the direction of throughput in which the change is being
  10327. * reported. u8 attribute. Value is 0 for TX and 1 for RX.
  10328. */
  10329. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1,
  10330. /*
  10331. * Indicates the newly observed throughput level.
  10332. * qca_wlan_throughput_level describes the possible range of values.
  10333. * u8 attribute.
  10334. */
  10335. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2,
  10336. /*
  10337. * Indicates the driver's guidance on the new value to be set to
  10338. * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver
  10339. * may optionally include this attribute.
  10340. */
  10341. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3,
  10342. /*
  10343. * Indicates the driver's guidance on the new value to be set to
  10344. * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible
  10345. * values are from -31 to 31. Driver may optionally include this
  10346. * attribute.
  10347. */
  10348. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4,
  10349. /*
  10350. * Indicates the driver's guidance on the new value to be set to
  10351. * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may
  10352. * optionally include this attribute.
  10353. */
  10354. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5,
  10355. /* keep last */
  10356. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST,
  10357. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX =
  10358. QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1,
  10359. };
  10360. /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute
  10361. * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command
  10362. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10363. */
  10364. enum qca_wlan_nan_ext_subcmd_type {
  10365. /* Subcmd of type NAN Enable Request */
  10366. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1,
  10367. /* Subcmd of type NAN Disable Request */
  10368. QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2,
  10369. };
  10370. /**
  10371. * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command
  10372. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
  10373. */
  10374. enum qca_wlan_vendor_attr_nan_params {
  10375. QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0,
  10376. /* Carries NAN command for firmware component. Every vendor command
  10377. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a
  10378. * payload containing the NAN command. NLA_BINARY attribute.
  10379. */
  10380. QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1,
  10381. /* Indicates the type of NAN command sent with
  10382. * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type
  10383. * describes the possible range of values. This attribute is mandatory
  10384. * if the command being issued is either
  10385. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or
  10386. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute.
  10387. */
  10388. QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2,
  10389. /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz
  10390. * band. This attribute is mandatory when command type is
  10391. * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute.
  10392. */
  10393. QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3,
  10394. /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz
  10395. * band. This attribute is optional and should be included when command
  10396. * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery
  10397. * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute.
  10398. */
  10399. QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4,
  10400. /* keep last */
  10401. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST,
  10402. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX =
  10403. QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1
  10404. };
  10405. /**
  10406. * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data
  10407. * transport modes and is used by attribute
  10408. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command
  10409. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10410. * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data.
  10411. * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR
  10412. * data. The data shall be encapsulated within
  10413. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command
  10414. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event.
  10415. */
  10416. enum qca_wlan_vendor_cfr_data_transport_modes {
  10417. QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0,
  10418. QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1,
  10419. };
  10420. /**
  10421. * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by
  10422. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor
  10423. * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG.
  10424. * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame.
  10425. * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame
  10426. * with phase
  10427. * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame
  10428. */
  10429. enum qca_wlan_vendor_cfr_method {
  10430. QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0,
  10431. QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1,
  10432. QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2,
  10433. };
  10434. /**
  10435. * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by
  10436. * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE.
  10437. * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames.
  10438. * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames.
  10439. * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames.
  10440. * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which
  10441. * is provided by one or more of below attributes:
  10442. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA
  10443. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA
  10444. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK
  10445. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK
  10446. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER
  10447. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER
  10448. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10449. * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets.
  10450. * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames.
  10451. */
  10452. enum qca_wlan_vendor_cfr_capture_type {
  10453. QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0,
  10454. QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1,
  10455. QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2,
  10456. QCA_WLAN_VENDOR_CFR_TA_RA = 3,
  10457. QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4,
  10458. QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5,
  10459. };
  10460. /**
  10461. * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command
  10462. * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer
  10463. * Channel Frequency Response capture parameters and enable periodic CFR
  10464. * capture.
  10465. *
  10466. * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address)
  10467. * MAC address of peer. This is for CFR version 1 only.
  10468. *
  10469. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag)
  10470. * Enable peer CFR Capture. This attribute is mandatory to
  10471. * enable peer CFR capture. If this attribute is not present,
  10472. * peer CFR capture is disabled.
  10473. *
  10474. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8)
  10475. * BW of measurement, attribute uses the values in enum nl80211_chan_width
  10476. * Supported values: 20, 40, 80, 80+80, 160.
  10477. * Note that all targets may not support all bandwidths.
  10478. * This attribute is mandatory for version 1 if attribute
  10479. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10480. *
  10481. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32)
  10482. * Periodicity of CFR measurement in msec.
  10483. * Periodicity should be a multiple of Base timer.
  10484. * Current Base timer value supported is 10 msecs (default).
  10485. * 0 for one shot capture.
  10486. * This attribute is mandatory for version 1 if attribute
  10487. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10488. *
  10489. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8)
  10490. * Method used to capture Channel Frequency Response.
  10491. * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method.
  10492. * This attribute is mandatory for version 1 if attribute
  10493. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used.
  10494. *
  10495. * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag)
  10496. * Enable periodic CFR capture.
  10497. * This attribute is mandatory for version 1 to enable Periodic CFR capture.
  10498. * If this attribute is not present, periodic CFR capture is disabled.
  10499. *
  10500. * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8)
  10501. * Value is 1 or 2 since there are two versions of CFR capture. Two versions
  10502. * can't be enabled at same time. This attribute is mandatory if target
  10503. * support both versions and use one of them.
  10504. *
  10505. * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32)
  10506. * This attribute is mandatory for version 2 if
  10507. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used.
  10508. * Bits 15:0 Bit fields indicating which group to be enabled.
  10509. * Bits 31:16 Reserved for future use.
  10510. *
  10511. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32)
  10512. * CFR capture duration in microsecond. This attribute is mandatory for
  10513. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used.
  10514. *
  10515. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32)
  10516. * CFR capture interval in microsecond. This attribute is mandatory for
  10517. * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used.
  10518. *
  10519. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32)
  10520. * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type.
  10521. * This attribute is mandatory for version 2.
  10522. *
  10523. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64)
  10524. * Bit fields indicating which user in the current UL MU
  10525. * transmissions are enabled for CFR capture. Bits 36 to 0 indicating
  10526. * user indexes for 37 users in a UL MU transmission. If bit 0 is set,
  10527. * then the CFR capture will happen for user index 0 in the current
  10528. * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU
  10529. * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use.
  10530. * This is for CFR version 2 only.
  10531. *
  10532. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32)
  10533. * Indicates the number of consecutive Rx packets to be skipped
  10534. * before CFR capture is enabled again.
  10535. * This is for CFR version 2 only.
  10536. *
  10537. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing
  10538. * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes.
  10539. *
  10540. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing
  10541. * the following GROUP attributes:
  10542. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER,
  10543. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA,
  10544. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA,
  10545. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK,
  10546. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK,
  10547. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS,
  10548. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW,
  10549. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER,
  10550. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER,
  10551. * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER
  10552. *
  10553. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32)
  10554. * Target support multiple groups for some configurations. Group number could be
  10555. * any value between 0 and 15. This is for CFR version 2 only.
  10556. *
  10557. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address)
  10558. * Transmitter address which is used to filter packets, this MAC address takes
  10559. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK.
  10560. * This is for CFR version 2 only.
  10561. *
  10562. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address)
  10563. * Receiver address which is used to filter packets, this MAC address takes
  10564. * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK.
  10565. * This is for CFR version 2 only.
  10566. *
  10567. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address)
  10568. * Mask of transmitter address which is used to filter packets.
  10569. * This is for CFR version 2 only.
  10570. *
  10571. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address)
  10572. * Mask of receiver address which is used to filter packets.
  10573. * This is for CFR version 2 only.
  10574. *
  10575. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32)
  10576. * Indicates packets with a specific NSS will be filtered for CFR capture.
  10577. * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will
  10578. * be done for packets matching the NSS specified within this bitmask.
  10579. * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS:
  10580. * bit 0 : NSS 1
  10581. * bit 1 : NSS 2
  10582. * ...
  10583. * bit 7 : NSS 8
  10584. *
  10585. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32)
  10586. * Indicates packets with a specific BW will be filtered for CFR capture.
  10587. * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture
  10588. * will be done for packets matching the bandwidths specified within this
  10589. * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth
  10590. * numerated in enum nl80211_band (although not all bands may be supported
  10591. * by a given device).
  10592. *
  10593. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32)
  10594. * Management packets matching the subtype filter categories will be
  10595. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10596. * represents the corresponding mgmt subtype value as per
  10597. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10598. * For example, beacon frame control type is 8, its value is 1<<8 = 0x100.
  10599. * This is for CFR version 2 only
  10600. *
  10601. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32)
  10602. * Control packets matching the subtype filter categories will be
  10603. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10604. * represents the corresponding control subtype value as per
  10605. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10606. * This is for CFR version 2 only.
  10607. *
  10608. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32)
  10609. * Data packets matching the subtype filter categories will be
  10610. * filtered in by MAC for CFR capture. This is a bitmask, in which each bit
  10611. * represents the corresponding data subtype value as per
  10612. * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields.
  10613. * This is for CFR version 2 only.
  10614. *
  10615. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8)
  10616. * Userspace can use this attribute to specify the driver about which transport
  10617. * mode shall be used by the driver to send CFR data to userspace. Uses values
  10618. * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is
  10619. * not present, driver shall choose the default transport mechanism which is
  10620. * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS.
  10621. *
  10622. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32)
  10623. * Userspace can use this attribute to specify the nl port id of the application
  10624. * which receives the CFR data and processes it further so that the drivers can
  10625. * unicast the NL events to a specific application. Optionally included when
  10626. * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to
  10627. * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers
  10628. * shall multicast the netlink events when this attribute is not included.
  10629. *
  10630. * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY).
  10631. * This attribute will be used by the driver to encapsulate and send CFR data
  10632. * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an
  10633. * asynchronous event when the driver is configured to send CFR data using NL
  10634. * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS
  10635. *
  10636. */
  10637. enum qca_wlan_vendor_peer_cfr_capture_attr {
  10638. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0,
  10639. QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1,
  10640. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2,
  10641. QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3,
  10642. QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4,
  10643. QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5,
  10644. QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6,
  10645. QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7,
  10646. QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8,
  10647. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9,
  10648. QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10,
  10649. QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11,
  10650. QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12,
  10651. QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13,
  10652. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14,
  10653. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15,
  10654. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16,
  10655. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17,
  10656. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18,
  10657. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19,
  10658. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20,
  10659. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21,
  10660. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22,
  10661. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23,
  10662. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24,
  10663. QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25,
  10664. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26,
  10665. QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27,
  10666. QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28,
  10667. /* Keep last */
  10668. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST,
  10669. QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX =
  10670. QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1,
  10671. };
  10672. /**
  10673. * enum qca_coex_config_profiles - This enum defines different types of
  10674. * traffic streams that can be prioritized one over the other during coex
  10675. * scenarios.
  10676. * The types defined in this enum are categorized in the below manner.
  10677. * 0 - 31 values corresponds to WLAN
  10678. * 32 - 63 values corresponds to BT
  10679. * 64 - 95 values corresponds to Zigbee
  10680. * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA
  10681. * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA
  10682. * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA
  10683. * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA
  10684. * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA
  10685. * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP
  10686. * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP
  10687. * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP
  10688. * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP
  10689. * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP
  10690. * @QCA_BT_A2DP: Prioritize BT A2DP
  10691. * @QCA_BT_BLE: Prioritize BT BLE
  10692. * @QCA_BT_SCO: Prioritize BT SCO
  10693. * @QCA_ZB_LOW: Prioritize Zigbee Low
  10694. * @QCA_ZB_HIGH: Prioritize Zigbee High
  10695. */
  10696. enum qca_coex_config_profiles {
  10697. /* 0 - 31 corresponds to WLAN */
  10698. QCA_WIFI_STA_DISCOVERY = 0,
  10699. QCA_WIFI_STA_CONNECTION = 1,
  10700. QCA_WIFI_STA_CLASS_3_MGMT = 2,
  10701. QCA_WIFI_STA_DATA = 3,
  10702. QCA_WIFI_STA_ALL = 4,
  10703. QCA_WIFI_SAP_DISCOVERY = 5,
  10704. QCA_WIFI_SAP_CONNECTION = 6,
  10705. QCA_WIFI_SAP_CLASS_3_MGMT = 7,
  10706. QCA_WIFI_SAP_DATA = 8,
  10707. QCA_WIFI_SAP_ALL = 9,
  10708. QCA_WIFI_CASE_MAX = 31,
  10709. /* 32 - 63 corresponds to BT */
  10710. QCA_BT_A2DP = 32,
  10711. QCA_BT_BLE = 33,
  10712. QCA_BT_SCO = 34,
  10713. QCA_BT_CASE_MAX = 63,
  10714. /* 64 - 95 corresponds to Zigbee */
  10715. QCA_ZB_LOW = 64,
  10716. QCA_ZB_HIGH = 65,
  10717. QCA_ZB_CASE_MAX = 95,
  10718. /* 0xff is default value if the u8 profile value is not set. */
  10719. QCA_PROFILE_DEFAULT_VALUE = 255
  10720. };
  10721. /**
  10722. * enum qca_vendor_attr_coex_config_types - Coex configurations types.
  10723. * This enum defines the valid set of values of coex configuration types. These
  10724. * values may used by attribute
  10725. * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE.
  10726. *
  10727. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the
  10728. * weights to default values.
  10729. * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config
  10730. * weights with configurability value.
  10731. */
  10732. enum qca_vendor_attr_coex_config_types {
  10733. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0,
  10734. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1,
  10735. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2,
  10736. QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX
  10737. };
  10738. /**
  10739. * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config
  10740. * attributes
  10741. * Attributes for data used by
  10742. * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG
  10743. *
  10744. * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute.
  10745. * Indicate config type.
  10746. * the config types are 32-bit values from qca_vendor_attr_coex_config_types
  10747. *
  10748. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute.
  10749. * Indicate the Priority 1 profiles.
  10750. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10751. * In same priority level, maximum to 4 profiles can be set here.
  10752. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute.
  10753. * Indicate the Priority 2 profiles.
  10754. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10755. * In same priority level, maximum to 4 profiles can be set here.
  10756. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute.
  10757. * Indicate the Priority 3 profiles.
  10758. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10759. * In same priority level, maximum to 4 profiles can be set here.
  10760. * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute.
  10761. * Indicate the Priority 4 profiles.
  10762. * the profiles are 8-bit values from enum qca_coex_config_profiles
  10763. * In same priority level, maximum to 4 profiles can be set here.
  10764. * NOTE:
  10765. * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority
  10766. * arrangement:
  10767. * 1: In the same u32 attribute(priority x), the profiles enum values own
  10768. * same priority level.
  10769. * 2: 0xff is default value if the u8 profile value is not set.
  10770. * 3: max to 4 rules/profiles in same priority level.
  10771. * 4: max to 4 priority level (priority 1 - priority 4)
  10772. * 5: one priority level only supports one scenario from WLAN/BT/ZB,
  10773. * hybrid rules not support.
  10774. * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will
  10775. * remain blank to reset all parameters.
  10776. * For example:
  10777. *
  10778. * If the attributes as follow:
  10779. * priority 1:
  10780. * ------------------------------------
  10781. * | 0xff | 0 | 1 | 2 |
  10782. * ------------------------------------
  10783. * priority 2:
  10784. * -------------------------------------
  10785. * | 0xff | 0xff | 0xff | 32 |
  10786. * -------------------------------------
  10787. * priority 3:
  10788. * -------------------------------------
  10789. * | 0xff | 0xff | 0xff | 65 |
  10790. * -------------------------------------
  10791. * then it means:
  10792. * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10793. * owns same priority level.
  10794. * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION
  10795. * has priority over BT_A2DP and ZB_HIGH.
  10796. * 3: BT_A2DP has priority over ZB_HIGH.
  10797. */
  10798. enum qca_vendor_attr_coex_config_three_way {
  10799. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0,
  10800. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1,
  10801. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2,
  10802. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3,
  10803. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4,
  10804. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5,
  10805. /* Keep last */
  10806. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST,
  10807. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX =
  10808. QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1,
  10809. };
  10810. /**
  10811. * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type
  10812. * This enum defines the valid set of values of peer stats cache types. These
  10813. * values are used by attribute
  10814. * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID.
  10815. *
  10816. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics.
  10817. * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics.
  10818. * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn
  10819. * statistics
  10820. */
  10821. enum qca_vendor_attr_peer_stats_cache_type {
  10822. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0,
  10823. QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS,
  10824. QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS,
  10825. QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS,
  10826. };
  10827. /**
  10828. * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines
  10829. * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH
  10830. * Attributes are required to flush peer rate statistics from driver to
  10831. * user application.
  10832. *
  10833. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute
  10834. * Indicate peer stats cache type.
  10835. * The statistics types are 32-bit values from
  10836. * qca_vendor_attr_peer_stats_cache_type
  10837. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array
  10838. * of size 6, representing peer mac address.
  10839. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute
  10840. * containing buffer of statistics to send event to application layer entity.
  10841. * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute
  10842. * representing cookie for peer unique session.
  10843. */
  10844. enum qca_wlan_vendor_attr_peer_stats_cache_params {
  10845. QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0,
  10846. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1,
  10847. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2,
  10848. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3,
  10849. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4,
  10850. /* Keep last */
  10851. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST,
  10852. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX =
  10853. QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1
  10854. };
  10855. /**
  10856. * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee.
  10857. * this enum defines all the possible state of zigbee, which can be
  10858. * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE.
  10859. *
  10860. * @ZIGBEE_IDLE: zigbee in idle state
  10861. * @ZIGBEE_FORM_NETWORK: zibee forming network
  10862. * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network
  10863. * @ZIGBEE_JOIN: zigbee joining network
  10864. * @ZIGBEE_NETWORK_UP: zigbee network is up
  10865. * @ZIGBEE_HMI: zigbee in HMI mode
  10866. */
  10867. enum qca_mpta_helper_attr_zigbee_state {
  10868. ZIGBEE_IDLE = 0,
  10869. ZIGBEE_FORM_NETWORK = 1,
  10870. ZIGBEE_WAIT_JOIN = 2,
  10871. ZIGBEE_JOIN = 3,
  10872. ZIGBEE_NETWORK_UP = 4,
  10873. ZIGBEE_HMI = 5,
  10874. };
  10875. /**
  10876. * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by
  10877. * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG.
  10878. */
  10879. enum qca_mpta_helper_vendor_attr {
  10880. QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0,
  10881. /* Optional attribute used to update zigbee state.
  10882. * enum qca_mpta_helper_attr_zigbee_state.
  10883. * NLA_U32 attribute.
  10884. */
  10885. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1,
  10886. /* Optional attribute used to configure wlan duration for Shape-OCS
  10887. * during interrupt.
  10888. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION.
  10889. * Value range 0 ~ 300 (ms).
  10890. * NLA_U32 attribute.
  10891. */
  10892. QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2,
  10893. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10894. * during interrupt.
  10895. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION.
  10896. * Value range 0 ~ 300 (ms).
  10897. * NLA_U32 attribute.
  10898. */
  10899. QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3,
  10900. /* Optional attribute used to configure wlan duration for Shape-OCS
  10901. * monitor period.
  10902. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION.
  10903. * Value range 0 ~ 300 (ms)
  10904. * NLA_U32 attribute
  10905. */
  10906. QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4,
  10907. /* Optional attribute used to configure non wlan duration for Shape-OCS
  10908. * monitor period.
  10909. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION.
  10910. * Value range 0 ~ 300 (ms)
  10911. * NLA_U32 attribute
  10912. */
  10913. QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5,
  10914. /* Optional attribute used to configure ocs interrupt duration.
  10915. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION.
  10916. * Value range 1000 ~ 20000 (ms)
  10917. * NLA_U32 attribute
  10918. */
  10919. QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6,
  10920. /* Optional attribute used to configure ocs monitor duration.
  10921. * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION.
  10922. * Value range 1000 ~ 20000 (ms)
  10923. * NLA_U32 attribute
  10924. */
  10925. QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7,
  10926. /* Optional attribute used to notify wlan FW current zigbee channel.
  10927. * Value range 11 ~ 26
  10928. * NLA_U32 attribute
  10929. */
  10930. QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8,
  10931. /* Optional attribute used to configure wlan mute duration.
  10932. * Value range 0 ~ 400 (ms)
  10933. * NLA_U32 attribute
  10934. */
  10935. QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9,
  10936. /* keep last */
  10937. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST,
  10938. QCA_MPTA_HELPER_VENDOR_ATTR_MAX =
  10939. QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1
  10940. };
  10941. /**
  10942. * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of
  10943. * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be
  10944. * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE.
  10945. *
  10946. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver
  10947. * to request the driver to start reporting Beacon frames.
  10948. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver
  10949. * to request the driver to stop reporting Beacon frames.
  10950. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to
  10951. * userspace to report received Beacon frames.
  10952. * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace
  10953. * to indicate that the driver is going to pause reporting Beacon frames.
  10954. */
  10955. enum qca_wlan_vendor_beacon_reporting_op_types {
  10956. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0,
  10957. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1,
  10958. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2,
  10959. QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3,
  10960. };
  10961. /**
  10962. * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different
  10963. * types of reasons for which the driver is pausing reporting Beacon frames.
  10964. * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON.
  10965. *
  10966. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified
  10967. * reasons.
  10968. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the
  10969. * driver/firmware is starting a scan.
  10970. * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the
  10971. * driver/firmware disconnects from the ESS and indicates the disconnection to
  10972. * userspace (non-seamless roaming case). This reason code will be used by the
  10973. * driver/firmware to indicate stopping of beacon report events. Userspace
  10974. * will need to start beacon reporting again (if desired) by sending vendor
  10975. * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with
  10976. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to
  10977. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is
  10978. * completed.
  10979. */
  10980. enum qca_wlan_vendor_beacon_reporting_pause_reasons {
  10981. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0,
  10982. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1,
  10983. QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2,
  10984. };
  10985. /*
  10986. * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used
  10987. * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING.
  10988. */
  10989. enum qca_wlan_vendor_attr_beacon_reporting_params {
  10990. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0,
  10991. /* Specifies the type of operation that the vendor command/event is
  10992. * intended for. Possible values for this attribute are defined in
  10993. * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute.
  10994. */
  10995. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1,
  10996. /* Optionally set by userspace to request the driver to report Beacon
  10997. * frames using asynchronous vendor events when the
  10998. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  10999. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  11000. * If this flag is not set, the driver will only update Beacon frames
  11001. * in cfg80211 scan cache but not send any vendor events.
  11002. */
  11003. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2,
  11004. /* Optionally used by userspace to request the driver/firmware to
  11005. * report Beacon frames periodically when the
  11006. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11007. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.
  11008. * u32 attribute, indicates the period of Beacon frames to be reported
  11009. * and in the units of beacon interval.
  11010. * If this attribute is missing in the command, then the default value
  11011. * of 1 will be assumed by driver, i.e., to report every Beacon frame.
  11012. * Zero is an invalid value.
  11013. * If a valid value is received for this attribute, the driver will
  11014. * update the cfg80211 scan cache periodically as per the value
  11015. * received in this attribute in addition to updating the cfg80211 scan
  11016. * cache when there is significant change in Beacon frame IEs.
  11017. */
  11018. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3,
  11019. /* Used by the driver to encapsulate the SSID when the
  11020. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11021. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11022. * u8 array with a maximum size of 32.
  11023. *
  11024. * When generating beacon report from non-MBSSID Beacon frame, the SSID
  11025. * will be taken from the SSID element of the received Beacon frame.
  11026. *
  11027. * When generating beacon report from Multiple BSSID Beacon frame and
  11028. * if the BSSID of the current connected BSS matches the BSSID of the
  11029. * transmitting BSS, the SSID will be taken from the SSID element of
  11030. * the received Beacon frame.
  11031. *
  11032. * When generating beacon report from Multiple BSSID Beacon frame and
  11033. * if the BSSID of the current connected BSS matches the BSSID of one
  11034. * of the* nontransmitting BSSs, the SSID will be taken from the SSID
  11035. * field included in the nontransmitted BSS profile whose derived BSSI
  11036. * is same as the BSSID of the current connected BSS. When there is no
  11037. * nontransmitted BSS profile whose derived BSSID is same as the BSSID
  11038. * of current connected* BSS, this attribute will not be present.
  11039. */
  11040. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4,
  11041. /* Used by the driver to encapsulate the BSSID of the AP to which STA
  11042. * is currently connected to when the
  11043. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11044. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a
  11045. * fixed size of 6 bytes.
  11046. *
  11047. * When generating beacon report from a Multiple BSSID beacon and the
  11048. * current connected BSSID matches one of the nontransmitted BSSIDs in
  11049. * a Multiple BSSID set, this BSSID will be that particular
  11050. * nontransmitted BSSID and not the transmitted BSSID (i.e., the
  11051. * transmitting address of the Beacon frame).
  11052. */
  11053. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5,
  11054. /* Used by the driver to encapsulate the frequency in MHz on which
  11055. * the Beacon frame was received when the
  11056. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is
  11057. * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11058. * u32 attribute.
  11059. */
  11060. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6,
  11061. /* Used by the driver to encapsulate the Beacon interval
  11062. * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11063. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11064. * u16 attribute. The value will be copied from the Beacon frame and
  11065. * the units are TUs.
  11066. */
  11067. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7,
  11068. /* Used by the driver to encapsulate the Timestamp field from the
  11069. * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE
  11070. * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO.
  11071. * u64 attribute.
  11072. */
  11073. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8,
  11074. /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this
  11075. * Beacon frame is received in the driver when the
  11076. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11077. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in
  11078. * the units of nanoseconds. This value is expected to have accuracy of
  11079. * about 10 ms.
  11080. */
  11081. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9,
  11082. /* Used by the driver to encapsulate the IEs of the Beacon frame from
  11083. * which this event is generated when the
  11084. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11085. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array.
  11086. */
  11087. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10,
  11088. /* Used by the driver to specify the reason for the driver/firmware to
  11089. * pause sending beacons to userspace when the
  11090. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11091. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are
  11092. * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32
  11093. * attribute.
  11094. */
  11095. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11,
  11096. /* Used by the driver to specify whether the driver will automatically
  11097. * resume reporting beacon events to userspace later (for example after
  11098. * the ongoing off-channel activity is completed etc.) when the
  11099. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11100. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute.
  11101. */
  11102. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12,
  11103. /* Optionally set by userspace to request the driver not to resume
  11104. * beacon reporting after a pause is completed, when the
  11105. * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
  11106. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute.
  11107. * If this flag is set, the driver will not resume beacon reporting
  11108. * after any pause in beacon reporting is completed. Userspace has to
  11109. * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
  11110. * to initiate beacon reporting again. If this flag is set in the recent
  11111. * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
  11112. * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
  11113. * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
  11114. * set by the driver. Setting this flag until and unless there is a
  11115. * specific need is not recommended as there is a chance of some beacons
  11116. * received after pause command and next start command being not
  11117. * reported.
  11118. */
  11119. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13,
  11120. /* Keep last */
  11121. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST,
  11122. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX =
  11123. QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1
  11124. };
  11125. /**
  11126. * enum qca_vendor_oem_device_type - Represents the target device in firmware.
  11127. * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO.
  11128. *
  11129. * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for
  11130. * a virtual device.
  11131. *
  11132. * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for
  11133. * a physical device.
  11134. */
  11135. enum qca_vendor_oem_device_type {
  11136. QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0,
  11137. QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1,
  11138. };
  11139. /*
  11140. * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command
  11141. * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA.
  11142. *
  11143. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is
  11144. * used to set/query the data to/from the firmware. On query, the same
  11145. * attribute is used to carry the respective data in the reply sent by the
  11146. * driver to userspace. The request to set/query the data and the format of the
  11147. * respective data from the firmware are embedded in the attribute. The
  11148. * maximum size of the attribute payload is 1024 bytes.
  11149. *
  11150. * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed
  11151. * based on this field. This optional attribute is included to specify whether
  11152. * the device type is a virtual device or a physical device for the command.
  11153. * This attribute can be omitted for a virtual device (default) command.
  11154. * This u8 attribute is used to carry information for the device type using
  11155. * values defined by enum qca_vendor_oem_device_type.
  11156. *
  11157. * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED
  11158. * attribute when the data is queried from the firmware.
  11159. *
  11160. * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute
  11161. * is set when the userspace queries data from the firmware. This attribute
  11162. * should not be set when userspace sets the OEM data to the firmware.
  11163. */
  11164. enum qca_wlan_vendor_attr_oem_data_params {
  11165. QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0,
  11166. QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1,
  11167. QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2,
  11168. QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3,
  11169. /* keep last */
  11170. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST,
  11171. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX =
  11172. QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1
  11173. };
  11174. /**
  11175. * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be
  11176. * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.
  11177. *
  11178. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required
  11179. * Nested attribute containing multiple ranges with following attributes:
  11180. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START,
  11181. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and
  11182. * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM.
  11183. *
  11184. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32)
  11185. * Starting center frequency in MHz.
  11186. *
  11187. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32)
  11188. * Ending center frequency in MHz.
  11189. *
  11190. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM:
  11191. * s32 attribute, optional. It is a per frequency range attribute.
  11192. * The maximum TX power limit from user space is to be applied on an
  11193. * unrestricted interface for corresponding frequency range. It is also
  11194. * possible that the actual TX power may be even lower than this cap due to
  11195. * other considerations such as regulatory compliance, SAR, etc. In absence of
  11196. * this attribute the driver shall follow current behavior which means
  11197. * interface (SAP/P2P) function can keep operating on an unsafe channel with TX
  11198. * power derived by the driver based on regulatory/SAR during interface up.
  11199. *
  11200. * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK:
  11201. * u32 attribute, optional. Indicates all the interface types which are
  11202. * restricted for all frequency ranges provided in
  11203. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and
  11204. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END.
  11205. * This attribute encapsulates bitmasks of interface types defined in
  11206. * enum nl80211_iftype. If an interface is marked as restricted the driver must
  11207. * move to a safe channel and if no safe channel is available the driver shall
  11208. * terminate that interface functionality. In absence of this attribute,
  11209. * interface (SAP/P2P) can still continue operating on an unsafe channel with
  11210. * TX power limit derived from either
  11211. * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on
  11212. * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM
  11213. * is not provided.
  11214. */
  11215. enum qca_wlan_vendor_attr_avoid_frequency_ext {
  11216. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0,
  11217. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1,
  11218. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2,
  11219. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3,
  11220. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4,
  11221. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5,
  11222. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST,
  11223. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX =
  11224. QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1
  11225. };
  11226. /*
  11227. * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command
  11228. * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE.
  11229. */
  11230. enum qca_wlan_vendor_attr_add_sta_node_params {
  11231. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0,
  11232. /* 6 byte MAC address of STA */
  11233. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1,
  11234. /* Authentication algorithm used by the station of size u16;
  11235. * defined in enum nl80211_auth_type.
  11236. */
  11237. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2,
  11238. /* keep last */
  11239. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST,
  11240. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX =
  11241. QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1
  11242. };
  11243. /**
  11244. * enum qca_btc_chain_mode - Specifies BT coex chain mode.
  11245. * This enum defines the valid set of values of BT coex chain mode.
  11246. * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of
  11247. * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11248. *
  11249. * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared.
  11250. * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are
  11251. * separated, hybrid mode.
  11252. * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are
  11253. * separated, fixed FDD mode.
  11254. */
  11255. enum qca_btc_chain_mode {
  11256. QCA_BTC_CHAIN_SHARED = 0,
  11257. QCA_BTC_CHAIN_SEPARATED_HYBRID = 1,
  11258. QCA_BTC_CHAIN_SEPARATED_FDD = 2,
  11259. };
  11260. /* deprecated legacy name */
  11261. #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID
  11262. /**
  11263. * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex
  11264. * chain mode.
  11265. * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE.
  11266. *
  11267. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute.
  11268. * Indicates the BT coex chain mode, are 32-bit values from
  11269. * enum qca_btc_chain_mode. This attribute is mandatory.
  11270. *
  11271. * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute.
  11272. * If set, vdev should be restarted when BT coex chain mode is updated.
  11273. * This attribute is optional.
  11274. */
  11275. enum qca_vendor_attr_btc_chain_mode {
  11276. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0,
  11277. QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1,
  11278. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2,
  11279. /* Keep last */
  11280. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST,
  11281. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX =
  11282. QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1,
  11283. };
  11284. /**
  11285. * enum qca_vendor_wlan_sta_flags - Station feature flags
  11286. * Bits will be set to 1 if the corresponding features are enabled.
  11287. * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station
  11288. * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled
  11289. for the station
  11290. * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled
  11291. for the station
  11292. */
  11293. enum qca_vendor_wlan_sta_flags {
  11294. QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0),
  11295. QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1),
  11296. QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2),
  11297. };
  11298. /**
  11299. * enum qca_vendor_wlan_sta_guard_interval - Station guard interval
  11300. * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval
  11301. * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval
  11302. * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE
  11303. * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE
  11304. */
  11305. enum qca_vendor_wlan_sta_guard_interval {
  11306. QCA_VENDOR_WLAN_STA_GI_800_NS = 0,
  11307. QCA_VENDOR_WLAN_STA_GI_400_NS = 1,
  11308. QCA_VENDOR_WLAN_STA_GI_1600_NS = 2,
  11309. QCA_VENDOR_WLAN_STA_GI_3200_NS = 3,
  11310. };
  11311. /**
  11312. * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes
  11313. * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command.
  11314. *
  11315. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC:
  11316. * Required attribute in request for AP mode only, 6-byte MAC address,
  11317. * corresponding to the station's MAC address for which information is
  11318. * requested. For STA mode this is not required as the info always correspond
  11319. * to the self STA and the current/last association.
  11320. *
  11321. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS:
  11322. * Optionally used in response, u32 attribute, contains a bitmap of different
  11323. * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only.
  11324. *
  11325. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL:
  11326. * Optionally used in response, u32 attribute, possible values are defined in
  11327. * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only.
  11328. * Guard interval used by the station.
  11329. *
  11330. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT:
  11331. * Optionally used in response, u32 attribute, used in AP mode only.
  11332. * Value indicates the number of data frames received from station with retry
  11333. * bit set to 1 in FC.
  11334. *
  11335. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT:
  11336. * Optionally used in response, u32 attribute, used in AP mode only.
  11337. * Counter for number of data frames with broadcast or multicast address in
  11338. * the destination address received from the station.
  11339. *
  11340. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED:
  11341. * Optionally used in response, u32 attribute, used in both STA and AP modes.
  11342. * Value indicates the number of data frames successfully transmitted only
  11343. * after retrying the packets and for which the TX status has been updated
  11344. * back to host from target.
  11345. *
  11346. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED:
  11347. * Optionally used in response, u32 attribute, used in both STA and AP mode.
  11348. * Value indicates the number of data frames not transmitted successfully even
  11349. * after retrying the packets for the number of times equal to the total number
  11350. * of retries allowed for that packet and for which the TX status has been
  11351. * updated back to host from target.
  11352. *
  11353. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL:
  11354. * Optionally used in response, u32 attribute, used in AP mode only.
  11355. * Counter in the target for the number of data frames successfully transmitted
  11356. * to the station.
  11357. *
  11358. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY:
  11359. * Optionally used in response, u32 attribute, used in AP mode only.
  11360. * Value indicates the number of data frames successfully transmitted only
  11361. * after retrying the packets.
  11362. *
  11363. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED:
  11364. * Optionally used in response, u32 attribute, used in both STA & AP mode.
  11365. * Value indicates the number of data frames not transmitted successfully even
  11366. * after retrying the packets for the number of times equal to the total number
  11367. * of retries allowed for that packet.
  11368. *
  11369. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in
  11370. * the STA mode only. Represent the number of probe requests sent by the STA
  11371. * while attempting to roam on missing certain number of beacons from the
  11372. * connected AP. If queried in the disconnected state, this represents the
  11373. * count for the last connected state.
  11374. *
  11375. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in
  11376. * the STA mode. Represent the number of probe responses received by the station
  11377. * while attempting to roam on missing certain number of beacons from the
  11378. * connected AP. When queried in the disconnected state, this represents the
  11379. * count when in last connected state.
  11380. *
  11381. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the
  11382. * STA mode only. Represents the total number of frames sent out by STA
  11383. * including Data, ACK, RTS, CTS, Control Management. This data is maintained
  11384. * only for the connect session. Represents the count of last connected session,
  11385. * when queried in the disconnected state.
  11386. *
  11387. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode.
  11388. * Total number of RTS sent out by the STA. This data is maintained per connect
  11389. * session. Represents the count of last connected session, when queried in the
  11390. * disconnected state.
  11391. *
  11392. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the
  11393. * STA mode.Represent the number of RTS transmission failure that reach retry
  11394. * limit. This data is maintained per connect session. Represents the count of
  11395. * last connected session, when queried in the disconnected state.
  11396. *
  11397. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in
  11398. * the STA mode. Represent the total number of non aggregated frames transmitted
  11399. * by the STA. This data is maintained per connect session. Represents the count
  11400. * of last connected session, when queried in the disconnected state.
  11401. *
  11402. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the
  11403. * STA mode. Represent the total number of aggregated frames transmitted by the
  11404. * STA. This data is maintained per connect session. Represents the count of
  11405. * last connected session, when queried in the disconnected state.
  11406. *
  11407. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in
  11408. * the STA mode. Represents the number of received frames with a good PLCP. This
  11409. * data is maintained per connect session. Represents the count of last
  11410. * connected session, when queried in the disconnected state.
  11411. *
  11412. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32,
  11413. * used in the STA mode. Represents the number of occasions that no valid
  11414. * delimiter is detected by A-MPDU parser. This data is maintained per connect
  11415. * session. Represents the count of last connected session, when queried in the
  11416. * disconnected state.
  11417. *
  11418. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the
  11419. * STA mode. Represents the number of frames for which CRC check failed in the
  11420. * MAC. This data is maintained per connect session. Represents the count of
  11421. * last connected session, when queried in the disconnected state.
  11422. *
  11423. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the
  11424. * STA mode. Represents the number of unicast ACKs received with good FCS. This
  11425. * data is maintained per connect session. Represents the count of last
  11426. * connected session, when queried in the disconnected state.
  11427. *
  11428. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA
  11429. * mode. Represents the number of received Block Acks. This data is maintained
  11430. * per connect session. Represents the count of last connected session, when
  11431. * queried in the disconnected state.
  11432. *
  11433. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA
  11434. * mode. Represents the number of beacons received from the connected BSS. This
  11435. * data is maintained per connect session. Represents the count of last
  11436. * connected session, when queried in the disconnected state.
  11437. *
  11438. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the
  11439. * STA mode. Represents the number of beacons received by the other BSS when in
  11440. * connected state (through the probes done by the STA). This data is maintained
  11441. * per connect session. Represents the count of last connected session, when
  11442. * queried in the disconnected state.
  11443. *
  11444. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in
  11445. * the STA mode. Represents the number of received DATA frames with good FCS and
  11446. * matching Receiver Address when in connected state. This data is maintained
  11447. * per connect session. Represents the count of last connected session, when
  11448. * queried in the disconnected state.
  11449. *
  11450. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the
  11451. * STA mode. Represents the number of RX Data multicast frames dropped by the HW
  11452. * when in the connected state. This data is maintained per connect session.
  11453. * Represents the count of last connected session, when queried in the
  11454. * disconnected state.
  11455. *
  11456. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the
  11457. * STA mode. This represents the target power in dBm for the transmissions done
  11458. * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per
  11459. * connect session. Represents the count of last connected session, when
  11460. * queried in the disconnected state.
  11461. *
  11462. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the
  11463. * STA mode. This represents the Target power in dBm for transmissions done to
  11464. * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11465. * session. Represents the count of last connected session, when queried in the
  11466. * disconnected state.
  11467. *
  11468. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the
  11469. * STA mode. This represents the Target power in dBm for transmissions done to
  11470. * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session.
  11471. * Represents the count of last connected session, when queried in the
  11472. * disconnected state.
  11473. *
  11474. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the
  11475. * STA mode. This represents the Target power in dBm for transmissions done to
  11476. * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect
  11477. * session. Represents the count of last connected session, when queried in
  11478. * the disconnected state.
  11479. *
  11480. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the
  11481. * STA mode. This represents the Target power in dBm for for transmissions done
  11482. * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session.
  11483. * Represents the count of last connected session, when queried in the
  11484. * disconnected state.
  11485. *
  11486. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used
  11487. * in the STA mode. This represents the Nested attribute representing the
  11488. * overflow counts of each receive buffer allocated to the hardware during the
  11489. * STA's connection. The number of hw buffers might vary for each WLAN
  11490. * solution and hence this attribute represents the nested array of all such
  11491. * HW buffer count. This data is maintained per connect session. Represents
  11492. * the count of last connected session, when queried in the disconnected state.
  11493. *
  11494. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm)
  11495. * allowed as per the regulatory requirements for the current or last connected
  11496. * session. Used in the STA mode.
  11497. *
  11498. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power
  11499. * (dBm) used by the station in its latest unicast frame while communicating
  11500. * to the AP in the connected state. When queried in the disconnected state,
  11501. * this represents the TX power used by the STA with last AP communication
  11502. * when in connected state.
  11503. *
  11504. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity
  11505. * level used to adjust the RX sensitivity. Represents the current ANI level
  11506. * when queried in the connected state. When queried in the disconnected
  11507. * state, this corresponds to the latest ANI level at the instance of
  11508. * disconnection.
  11509. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode
  11510. * only. This represents the number of group addressed robust management frames
  11511. * received from this station with an invalid MIC or a missing MME when PMF is
  11512. * enabled.
  11513. *
  11514. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode
  11515. * only. This represents the number of group addressed robust management frames
  11516. * received from this station with the packet number less than or equal to the
  11517. * last received packet number when PMF is enabled.
  11518. *
  11519. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA
  11520. * mode only. This represents the number of Beacon frames received from this
  11521. * station with an invalid MIC or a missing MME when beacon protection is
  11522. * enabled.
  11523. *
  11524. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode
  11525. * only. This represents number of Beacon frames received from this station with
  11526. * the packet number less than or equal to the last received packet number when
  11527. * beacon protection is enabled.
  11528. *
  11529. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in
  11530. * STA mode only. Driver uses this attribute to populate the connection failure
  11531. * reason codes and the values are defined in
  11532. * enum qca_sta_connect_fail_reason_codes. Userspace applications can send
  11533. * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving
  11534. * connection failure from driver. The driver shall not include this attribute
  11535. * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no
  11536. * connection failure observed in the last attempted connection.
  11537. *
  11538. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps)
  11539. * used by the station in its last TX frame while communicating to the AP in the
  11540. * connected state. When queried in the disconnected state, this represents the
  11541. * rate used by the STA in the last TX frame to the AP when it was connected.
  11542. * This attribute is used for STA mode only.
  11543. *
  11544. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only.
  11545. * This represents the rate index used by the STA for the last TX frame to the
  11546. * AP. When queried in the disconnected state, this gives the last RIX used by
  11547. * the STA in the last TX frame to the AP when it was connected.
  11548. *
  11549. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA
  11550. * mode only. This represents the number of times the STA TSF goes out of sync
  11551. * from the AP after the connection. If queried in the disconnected state, this
  11552. * gives the count of TSF out of sync for the last connection.
  11553. *
  11554. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA
  11555. * mode only. This represents the roam trigger reason for the last roaming
  11556. * attempted by the firmware. This can be queried either in connected state or
  11557. * disconnected state. Each bit of this attribute represents the different
  11558. * roam trigger reason code which are defined in enum qca_vendor_roam_triggers.
  11559. *
  11560. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode
  11561. * only. This represents the roam fail reason for the last failed roaming
  11562. * attempt by the firmware. Different roam failure reason codes are specified
  11563. * in enum qca_vendor_roam_fail_reasons. This can be queried either in
  11564. * connected state or disconnected state.
  11565. *
  11566. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in
  11567. * STA mode only. This represents the roam invoke fail reason for the last
  11568. * failed roam invoke. Different roam invoke failure reason codes
  11569. * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be
  11570. * queried either in connected state or disconnected state.
  11571. *
  11572. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only.
  11573. * This represents the average congestion duration of uplink frames in MAC
  11574. * queue in unit of ms. This can be queried either in connected state or
  11575. * disconnected state.
  11576. *
  11577. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested
  11578. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11579. * rate value of TX packets. Every index of this nested attribute corresponds
  11580. * to MCS index, for example Index 0 represents MCS0 TX rate. This can be
  11581. * queried in connected state.
  11582. *
  11583. * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested
  11584. * attribute, used in AP mode. This represents the MPDU packet count per MCS
  11585. * rate value of RX packets. Every index of this nested attribute corresponds
  11586. * to MCS index, for example Index 0 represents MCS0 RX rate. This can be
  11587. * queried in connected state.
  11588. */
  11589. enum qca_wlan_vendor_attr_get_sta_info {
  11590. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0,
  11591. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1,
  11592. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2,
  11593. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3,
  11594. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4,
  11595. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5,
  11596. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6,
  11597. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7,
  11598. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8,
  11599. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9,
  11600. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10,
  11601. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11,
  11602. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12,
  11603. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13,
  11604. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14,
  11605. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15,
  11606. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16,
  11607. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17,
  11608. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18,
  11609. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19,
  11610. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20,
  11611. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21,
  11612. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22,
  11613. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23,
  11614. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24,
  11615. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25,
  11616. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26,
  11617. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27,
  11618. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28,
  11619. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29,
  11620. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30,
  11621. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31,
  11622. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32,
  11623. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33,
  11624. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34,
  11625. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35,
  11626. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39,
  11627. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40,
  11628. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41,
  11629. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42,
  11630. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43,
  11631. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44,
  11632. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45,
  11633. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46,
  11634. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47,
  11635. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48,
  11636. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49,
  11637. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50,
  11638. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51,
  11639. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52,
  11640. /* keep last */
  11641. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,
  11642. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX =
  11643. QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1,
  11644. };
  11645. /**
  11646. * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes.
  11647. * Used when the driver triggers the STA to disconnect from the AP.
  11648. *
  11649. * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the
  11650. * disconnection with the AP due to unspecified reasons.
  11651. *
  11652. * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the
  11653. * disconnection with the AP due to a roaming failure. This roaming is triggered
  11654. * internally (host driver/firmware).
  11655. *
  11656. * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from
  11657. * the AP when the user/external triggered roaming fails.
  11658. *
  11659. * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used
  11660. * by the host driver whenever gateway reachability failure is detected and the
  11661. * driver disconnects with AP.
  11662. *
  11663. * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from
  11664. * the AP on a channel switch announcement from it with an unsupported channel.
  11665. *
  11666. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start
  11667. * with indoor channels disabled and if the STA is connected on one of these
  11668. * disabled channels, the host driver disconnected the STA with this reason
  11669. * code.
  11670. *
  11671. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an
  11672. * explicit request from the user to disable the current operating channel.
  11673. *
  11674. * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to
  11675. * the internal host driver/firmware recovery.
  11676. *
  11677. * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on
  11678. * a timeout for the key installations from the user space.
  11679. *
  11680. * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the
  11681. * STA on a band change request from the user space to a different band from the
  11682. * current operation channel/band.
  11683. *
  11684. * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an
  11685. * interface down trigger from the user space.
  11686. *
  11687. * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the
  11688. * STA on getting continuous transmission failures for multiple Data frames.
  11689. *
  11690. * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive
  11691. * notification to the AP by transmitting NULL/G-ARP frames. This disconnection
  11692. * represents inactivity from AP on such transmissions.
  11693. * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on
  11694. * disconnection when SA Query times out (AP does not respond to SA Query).
  11695. *
  11696. * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the
  11697. * STA on missing the beacons continuously from the AP.
  11698. *
  11699. * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not
  11700. * able to move to the channel mentioned by the AP in CSA.
  11701. *
  11702. * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection.
  11703. */
  11704. enum qca_disconnect_reason_codes {
  11705. QCA_DISCONNECT_REASON_UNSPECIFIED = 0,
  11706. QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1,
  11707. QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2,
  11708. QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3,
  11709. QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4,
  11710. QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5,
  11711. QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6,
  11712. QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7,
  11713. QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8,
  11714. QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9,
  11715. QCA_DISCONNECT_REASON_IFACE_DOWN = 10,
  11716. QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11,
  11717. QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12,
  11718. QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13,
  11719. QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14,
  11720. QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15,
  11721. QCA_DISCONNECT_REASON_USER_TRIGGERED = 16,
  11722. };
  11723. /**
  11724. * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes
  11725. * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command.
  11726. *
  11727. * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute.
  11728. * This attribute represents the driver specific reason codes (local
  11729. * driver/firmware initiated reasons for disconnection) defined
  11730. * in enum qca_disconnect_reason_codes.
  11731. */
  11732. enum qca_wlan_vendor_attr_driver_disconnect_reason {
  11733. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0,
  11734. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1,
  11735. /* keep last */
  11736. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST,
  11737. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX =
  11738. QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1,
  11739. };
  11740. /**
  11741. * enum qca_wlan_tspec_operation - Operation of the config TSPEC request
  11742. *
  11743. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION.
  11744. */
  11745. enum qca_wlan_tspec_operation {
  11746. QCA_WLAN_TSPEC_ADD = 0,
  11747. QCA_WLAN_TSPEC_DEL = 1,
  11748. QCA_WLAN_TSPEC_GET = 2,
  11749. };
  11750. /**
  11751. * enum qca_wlan_tspec_direction - Direction in TSPEC
  11752. * As what is defined in IEEE Std 802.11-2016, Table 9-139.
  11753. *
  11754. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION.
  11755. */
  11756. enum qca_wlan_tspec_direction {
  11757. QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0,
  11758. QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1,
  11759. QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2,
  11760. QCA_WLAN_TSPEC_DIRECTION_BOTH = 3,
  11761. };
  11762. /**
  11763. * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC
  11764. * As what is defined in IEEE Std 802.11-2016, Table 9-141.
  11765. *
  11766. * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY.
  11767. */
  11768. enum qca_wlan_tspec_ack_policy {
  11769. QCA_WLAN_TSPEC_NORMAL_ACK = 0,
  11770. QCA_WLAN_TSPEC_NO_ACK = 1,
  11771. /* Reserved */
  11772. QCA_WLAN_TSPEC_BLOCK_ACK = 3,
  11773. };
  11774. /**
  11775. * enum qca_wlan_vendor_attr_config_tspec - Defines attributes
  11776. * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command.
  11777. *
  11778. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION:
  11779. * u8 attribute. Specify the TSPEC operation of this request. Possible values
  11780. * are defined in enum qca_wlan_tspec_operation.
  11781. * Mandatory attribute for all kinds of config TSPEC requests.
  11782. *
  11783. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID:
  11784. * u8 attribute. TS ID. Possible values are 0-7.
  11785. * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL,
  11786. * QCA_WLAN_TSPEC_GET. A mandatory attribute.
  11787. *
  11788. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION:
  11789. * u8 attribute. Direction of data carried by the TS. Possible values are
  11790. * defined in enum qca_wlan_tspec_direction.
  11791. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11792. *
  11793. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD:
  11794. * Flag attribute. Indicate whether APSD is enabled for the traffic associated
  11795. * with the TS. set - enabled, not set - disabled.
  11796. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11797. *
  11798. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY:
  11799. * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs
  11800. * belonging to this TS. Possible values are 0-7.
  11801. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11802. *
  11803. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY:
  11804. * u8 attribute. Indicate whether MAC acknowledgements are required for
  11805. * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements.
  11806. * Possible values are defined in enum qca_wlan_tspec_ack_policy.
  11807. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11808. *
  11809. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE:
  11810. * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs
  11811. * belonging to this TS.
  11812. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11813. *
  11814. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE:
  11815. * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs
  11816. * belonging to this TS.
  11817. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11818. *
  11819. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL:
  11820. * u32 attribute. Specify the minimum interval in microseconds between the
  11821. * start of two successive SPs.
  11822. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11823. *
  11824. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL:
  11825. * u32 attribute. Specify the maximum interval in microseconds between the
  11826. * start of two successive SPs.
  11827. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11828. *
  11829. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL:
  11830. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11831. * without arrival or transfer of an MPDU belonging to the TS before this TS
  11832. * is deleted by the MAC entity at the HC.
  11833. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11834. *
  11835. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL:
  11836. * u32 attribute. Specify the minimum interval in microseconds that can elapse
  11837. * without arrival or transfer of an MSDU belonging to the TS before the
  11838. * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of
  11839. * 0xFFFFFFFF disables the suspension interval. The value of the suspension
  11840. * interval is always less than or equal to the inactivity interval.
  11841. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11842. *
  11843. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE:
  11844. * u32 attribute. Indicate the lowest data rate in bps specified at the MAC
  11845. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11846. * bounds of this TSPEC.
  11847. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11848. *
  11849. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE:
  11850. * u32 attribute. Indicate the average data rate in bps specified at the MAC
  11851. * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the
  11852. * bounds of this TSPEC.
  11853. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11854. *
  11855. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE:
  11856. * u32 attribute. Indicate the maximum allowable data rate in bps specified at
  11857. * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within
  11858. * the bounds of this TSPEC.
  11859. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11860. *
  11861. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE:
  11862. * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs
  11863. * belonging to this TS that arrive at the MAC SAP at the peak data rate. A
  11864. * value of 0 indicates that there are no bursts.
  11865. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11866. *
  11867. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE:
  11868. * u32 attribute. Indicate the minimum PHY rate in bps for transport of
  11869. * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC.
  11870. * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute.
  11871. *
  11872. * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE:
  11873. * u16 attribute. Specify the excess allocation of time (and bandwidth) over
  11874. * and above the stated application rates required to transport an MSDU/A-MSDU
  11875. * belonging to the TS in this TSPEC.
  11876. * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute.
  11877. */
  11878. enum qca_wlan_vendor_attr_config_tspec {
  11879. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0,
  11880. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1,
  11881. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2,
  11882. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3,
  11883. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4,
  11884. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5,
  11885. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6,
  11886. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7,
  11887. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8,
  11888. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9,
  11889. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10,
  11890. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11,
  11891. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12,
  11892. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13,
  11893. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14,
  11894. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15,
  11895. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16,
  11896. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17,
  11897. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18,
  11898. /* keep last */
  11899. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST,
  11900. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX =
  11901. QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
  11902. };
  11903. /**
  11904. * enum qca_wlan_medium_assess_type - Type of medium assess request
  11905. *
  11906. * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
  11907. */
  11908. enum qca_wlan_medium_assess_type {
  11909. QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
  11910. QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
  11911. };
  11912. /**
  11913. * enum qca_wlan_vendor_attr_medium_assess - Attributes used by
  11914. * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
  11915. *
  11916. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
  11917. * u8 attribute. Mandatory in all kinds of medium assess requests/responses.
  11918. * Specify the type of medium assess request and indicate its type in response.
  11919. * Possible values are defined in enum qca_wlan_medium_assess_type.
  11920. *
  11921. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
  11922. * u32 attribute. Mandatory in CCA request.
  11923. * Specify the assessment period in terms of seconds. Assessment result will be
  11924. * sent as the response to the CCA request after the assessment period.
  11925. *
  11926. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
  11927. * u32 attribute. Mandatory in response to CCA request.
  11928. * Total timer tick count of the assessment cycle.
  11929. *
  11930. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
  11931. * u32 attribute. Mandatory in response to CCA request.
  11932. * Timer tick count of idle time in the assessment cycle.
  11933. *
  11934. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
  11935. * u32 attribute. Mandatory in response to CCA request.
  11936. * Timer tick count of Intra BSS traffic RX time in the assessment cycle.
  11937. *
  11938. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
  11939. * u32 attribute. Mandatory in response to CCA request.
  11940. * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
  11941. *
  11942. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
  11943. * s32 attribute. Mandatory in response to CCA request.
  11944. * Maximum RSSI of Intra BSS traffic in the assessment cycle.
  11945. *
  11946. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
  11947. * s32 attribute. Mandatory in response to CCA request.
  11948. * Minimum RSSI of Intra BSS traffic in the assessment cycle.
  11949. *
  11950. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
  11951. * u8 attribute. Mandatory in congestion report request.
  11952. * 1-enable 0-disable.
  11953. *
  11954. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
  11955. * u8 attribute. Mandatory in congestion report enable request and will be
  11956. * ignored if present in congestion report disable request. Possible values are
  11957. * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
  11958. * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
  11959. * congestion percentage reaches the configured threshold.
  11960. *
  11961. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
  11962. * u8 attribute. Optional in congestion report enable request and will be
  11963. * ignored if present in congestion report disable request.
  11964. * Specify the interval of congestion report event in terms of seconds. Possible
  11965. * values are 1-255. Default value 1 will be used if this attribute is omitted
  11966. * or using invalid values.
  11967. *
  11968. * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
  11969. * u8 attribute. Mandatory in congestion report event.
  11970. * Indicate the actual congestion percentage. Possible values are 0-100.
  11971. */
  11972. enum qca_wlan_vendor_attr_medium_assess {
  11973. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
  11974. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
  11975. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
  11976. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
  11977. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
  11978. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
  11979. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
  11980. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
  11981. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
  11982. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
  11983. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
  11984. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
  11985. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
  11986. /* keep last */
  11987. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
  11988. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
  11989. QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
  11990. };
  11991. /**
  11992. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
  11993. * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
  11994. *
  11995. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL:
  11996. * u8 attribute. Notify the TX VDEV status. Possible values 0, 1
  11997. * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV,
  11998. * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events.
  11999. *
  12000. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT:
  12001. * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event.
  12002. *
  12003. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID:
  12004. * u8 attribute, required. indicates group id of Tx VDEV
  12005. *
  12006. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO:
  12007. * Nested attribute. This attribute shall be used by the driver to send
  12008. * group information. The attributes defined in enum
  12009. * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info
  12010. * are nested in this attribute.
  12011. */
  12012. enum qca_wlan_vendor_attr_mbssid_tx_vdev_status {
  12013. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0,
  12014. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1,
  12015. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2,
  12016. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3,
  12017. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4,
  12018. /* keep last */
  12019. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST,
  12020. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX =
  12021. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1,
  12022. };
  12023. /**
  12024. * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used
  12025. * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute.
  12026. *
  12027. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX:
  12028. * u32 attribute, required. contains interface index.
  12029. *
  12030. * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS:
  12031. * u8 attribute, required. 0 - means vdev is in down state.
  12032. * 1- means vdev is in up state.
  12033. */
  12034. enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info {
  12035. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0,
  12036. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1,
  12037. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2,
  12038. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST,
  12039. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX =
  12040. QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1,
  12041. };
  12042. /**
  12043. * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type
  12044. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame
  12045. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame
  12046. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request
  12047. * frame
  12048. * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation
  12049. * Request frame.
  12050. */
  12051. enum qca_wlan_vendor_oci_override_frame_type {
  12052. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1,
  12053. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2,
  12054. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3,
  12055. QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4,
  12056. };
  12057. /**
  12058. * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies
  12059. *
  12060. * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary
  12061. * STA interface has to be given while selecting the connection policies
  12062. * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface.
  12063. * An interface is set as primary through the attribute
  12064. * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not
  12065. * applicable if the primary interface has not been set earlier.
  12066. *
  12067. * The intention is not to downgrade the primary STA performance, such as:
  12068. * - Do not reduce the number of TX/RX chains of primary connection.
  12069. * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of
  12070. * chains.
  12071. * - If using MCC, should set the MCC duty cycle of the primary connection to
  12072. * be higher than the secondary connection.
  12073. *
  12074. * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the
  12075. * subsequent STA connection shall be chosen to balance with the existing
  12076. * concurrent STA's performance.
  12077. * Such as
  12078. * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware
  12079. * capability.
  12080. * - If using MCC, set the MCC duty cycle of the primary connection to be equal
  12081. * to the secondary.
  12082. * - Prefer BSSID candidates which will help provide the best "overall"
  12083. * performance for all the STA connections.
  12084. */
  12085. enum qca_wlan_concurrent_sta_policy_config {
  12086. QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0,
  12087. QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1,
  12088. };
  12089. /**
  12090. * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies
  12091. *
  12092. * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP
  12093. * interface.
  12094. *
  12095. * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies
  12096. * to meet gaming audio latency requirements.
  12097. *
  12098. * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface
  12099. * concurrencies to meet lossless audio streaming requirements.
  12100. *
  12101. * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet
  12102. * XR (eXtended Reality) requirements.
  12103. */
  12104. enum qca_wlan_concurrent_ap_policy_config {
  12105. QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
  12106. QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
  12107. QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,
  12108. QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3,
  12109. };
  12110. /**
  12111. * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes
  12112. * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command.
  12113. *
  12114. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG:
  12115. * u8 attribute. Configures the concurrent STA policy configuration.
  12116. * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config.
  12117. * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG:
  12118. * u8 attribute. Configures the concurrent AP policy configuration.
  12119. * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config.
  12120. */
  12121. enum qca_wlan_vendor_attr_concurrent_policy {
  12122. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0,
  12123. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1,
  12124. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2,
  12125. /* keep last */
  12126. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST,
  12127. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX =
  12128. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1,
  12129. };
  12130. /* Compatibility defines for previously used enum
  12131. * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used
  12132. * in any new implementation.
  12133. */
  12134. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \
  12135. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG
  12136. #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \
  12137. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX
  12138. #define qca_wlan_vendor_attr_concurrent_sta_policy \
  12139. qca_wlan_vendor_attr_concurrent_policy
  12140. /**
  12141. * enum qca_sta_connect_fail_reason_codes - Defines values carried
  12142. * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor
  12143. * attribute.
  12144. * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received
  12145. * for unicast probe request.
  12146. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request.
  12147. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for
  12148. * ath request.
  12149. * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not
  12150. * received from AP.
  12151. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc
  12152. * request.
  12153. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for
  12154. * assoc request.
  12155. * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not
  12156. * received from AP.
  12157. */
  12158. enum qca_sta_connect_fail_reason_codes {
  12159. QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1,
  12160. QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2,
  12161. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3,
  12162. QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4,
  12163. QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5,
  12164. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6,
  12165. QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7,
  12166. };
  12167. /**
  12168. * enum qca_wlan_vendor_attr_oci_override: Represents attributes for
  12169. * OCI override request. These attributes are used inside nested attribute
  12170. * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command
  12171. * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION.
  12172. *
  12173. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8.
  12174. * Values from enum qca_wlan_vendor_oci_override_frame_type used in this
  12175. * attribute to specify the frame type in which the OCI is to be overridden.
  12176. *
  12177. * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32)
  12178. * OCI frequency (in MHz) to override in the specified frame type.
  12179. */
  12180. enum qca_wlan_vendor_attr_oci_override {
  12181. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0,
  12182. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1,
  12183. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2,
  12184. /* keep last */
  12185. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST,
  12186. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX =
  12187. QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1,
  12188. };
  12189. /**
  12190. * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different
  12191. * filters defined in this enum are used in attribute
  12192. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK.
  12193. *
  12194. * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver
  12195. * shall filter the channels which are not usable because of coexistence with
  12196. * cellular radio.
  12197. * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver
  12198. * shall filter the channels which are not usable because of existing active
  12199. * interfaces in the driver and will result in Multi Channel Concurrency, etc.
  12200. *
  12201. */
  12202. enum qca_wlan_vendor_usable_channels_filter {
  12203. QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0,
  12204. QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1,
  12205. };
  12206. /**
  12207. * enum qca_wlan_vendor_attr_chan_info - Attributes used inside
  12208. * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute.
  12209. *
  12210. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ:
  12211. * u32 attribute, required. Indicates the center frequency of the primary
  12212. * channel in MHz.
  12213. *
  12214. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ:
  12215. * u32 attribute. Indicates the center frequency of the primary segment of the
  12216. * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz,
  12217. * 160 MHz, and 320 MHz channels.
  12218. *
  12219. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ:
  12220. * u32 attribute. Indicates the center frequency of the secondary segment of
  12221. * 80+80 channel in MHz. This attribute is required only when
  12222. * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80.
  12223. *
  12224. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH:
  12225. * u32 attribute, required. Indicates the bandwidth of the channel, possible
  12226. * values are defined in enum nl80211_chan_width.
  12227. *
  12228. * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK:
  12229. * u32 attribute, required. Indicates all the interface types for which this
  12230. * channel is usable. This attribute encapsulates bitmasks of interface types
  12231. * defined in enum nl80211_iftype.
  12232. *
  12233. */
  12234. enum qca_wlan_vendor_attr_chan_info {
  12235. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0,
  12236. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1,
  12237. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2,
  12238. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3,
  12239. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4,
  12240. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5,
  12241. /* keep last */
  12242. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST,
  12243. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX =
  12244. QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1,
  12245. };
  12246. /**
  12247. * enum qca_wlan_vendor_attr_usable_channels - Attributes used by
  12248. * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command.
  12249. *
  12250. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK:
  12251. * u32 attribute. Indicates the bands from which the channels should be reported
  12252. * in response. This attribute encapsulates bit masks of bands defined in enum
  12253. * nl80211_band. Optional attribute, if not present in the request the driver
  12254. * shall return channels from all supported bands.
  12255. *
  12256. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK:
  12257. * u32 attribute. Indicates all the interface types for which the usable
  12258. * channels information is requested. This attribute encapsulates bitmasks of
  12259. * interface types defined in enum nl80211_iftype. Optional attribute, if not
  12260. * present in the request the driver shall send information of all supported
  12261. * interface modes.
  12262. *
  12263. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK:
  12264. * u32 attribute. This attribute carries information of all filters that shall
  12265. * be applied while populating usable channels information by the driver. This
  12266. * attribute carries bit masks of different filters defined in enum
  12267. * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present
  12268. * in the request the driver shall send information of channels without applying
  12269. * any of the filters that can be configured through this attribute.
  12270. *
  12271. * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO:
  12272. * Nested attribute. This attribute shall be used by the driver to send
  12273. * usability information of each channel. The attributes defined in enum
  12274. * qca_wlan_vendor_attr_chan_info are used inside this attribute.
  12275. */
  12276. enum qca_wlan_vendor_attr_usable_channels {
  12277. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0,
  12278. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1,
  12279. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2,
  12280. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3,
  12281. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4,
  12282. /* keep last */
  12283. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST,
  12284. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX =
  12285. QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1,
  12286. };
  12287. /**
  12288. * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command
  12289. * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history.
  12290. *
  12291. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry
  12292. * the list of radar history entries.
  12293. * Each entry contains freq, timestamp, and radar signal detect flag.
  12294. * The driver shall add an entry when CAC has finished, or radar signal
  12295. * has been detected post AP beaconing. The driver shall maintain at least
  12296. * 8 entries in order to save CAC result for a 160 MHz channel.
  12297. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute.
  12298. * Channel frequency in MHz.
  12299. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds.
  12300. * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC
  12301. * or radar detection.
  12302. * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute.
  12303. * This flag indicates radar signal has been detected.
  12304. */
  12305. enum qca_wlan_vendor_attr_radar_history {
  12306. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0,
  12307. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1,
  12308. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2,
  12309. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3,
  12310. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4,
  12311. /* keep last */
  12312. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST,
  12313. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX =
  12314. QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1,
  12315. };
  12316. /**
  12317. * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type
  12318. *
  12319. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the
  12320. * target exited MCC state and cleared the quota information. In the
  12321. * command it clears MCC quota setting and restores adaptive scheduling.
  12322. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and
  12323. * will not be changed.
  12324. * This quota type is present in command/event.
  12325. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic
  12326. * and the target may change the quota based on the data activity.
  12327. * This quota type is only present in event.
  12328. * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized
  12329. * by the target for low latency.
  12330. * This quota type is only present in command.
  12331. */
  12332. enum qca_wlan_vendor_mcc_quota_type {
  12333. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0,
  12334. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1,
  12335. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2,
  12336. QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3,
  12337. };
  12338. /**
  12339. * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event
  12340. * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel
  12341. * quota information or as a command to set the required MCC quota for an
  12342. * interface.
  12343. *
  12344. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute.
  12345. * The type is defined in enum qca_wlan_vendor_mcc_quota_type.
  12346. * In a command this specifies the MCC quota type to be set for the interface.
  12347. * In an event this provides the current quota type in force.
  12348. * This is required in a command and an event.
  12349. *
  12350. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry
  12351. * the list of channel quota entries.
  12352. * In an event each entry contains the frequency and respective time quota for
  12353. * all the MCC interfaces.
  12354. * In a command it specifies the interface index and respective time quota.
  12355. * In a command only one entry (ifindex, quota pair) may be specified.
  12356. *
  12357. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute.
  12358. * Channel frequency in MHz. This is present only in an event.
  12359. *
  12360. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute.
  12361. * Channel time quota expressed as percentage.
  12362. * This is present in an event and a command.
  12363. * In an command, the user shall specify the quota to be allocated for the
  12364. * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX.
  12365. * In an event this provides the existing quota for the channel.
  12366. *
  12367. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute.
  12368. * Specifies the interface index (netdev) for which the corresponding
  12369. * configurations are applied. This is required in a command only. Only one
  12370. * interface index may be specified. If not specified, the configuration is
  12371. * rejected.
  12372. *
  12373. * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE
  12374. * 8-bit unsigned value to enable/disable Multi-Channel Concurrency
  12375. * low latency mode. The firmware will do optimization for low
  12376. * latency in Multi-Channel concurrency state if enabled. And all existing
  12377. * user quota setting will be overwritten by the target.
  12378. * 0 - disable(default), 1 - enable.
  12379. * It is only present in a command with quota type of
  12380. * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY.
  12381. */
  12382. enum qca_wlan_vendor_attr_mcc_quota {
  12383. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0,
  12384. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1,
  12385. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2,
  12386. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3,
  12387. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4,
  12388. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5,
  12389. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6,
  12390. /* keep last */
  12391. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST,
  12392. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX =
  12393. QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1,
  12394. };
  12395. /**
  12396. * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values
  12397. * are used by the attribute
  12398. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON.
  12399. *
  12400. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target
  12401. * invoke roam.
  12402. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable
  12403. * detection failed when the roam trigger.
  12404. * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space.
  12405. */
  12406. enum qca_wlan_roam_stats_invoke_reason {
  12407. QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0,
  12408. QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1,
  12409. QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2,
  12410. };
  12411. /**
  12412. * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These
  12413. * values are used by the attribute
  12414. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON.
  12415. *
  12416. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when
  12417. * roam by kickout.
  12418. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam
  12419. * trigger by kickout.
  12420. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when
  12421. * roam trigger by kickout.
  12422. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when
  12423. * roam trigger by kickout.
  12424. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has
  12425. * disappeared, and all TX is failing when roam trigger by kickout.
  12426. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process
  12427. * timeout when roam trigger by kickout.
  12428. * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected
  12429. * peer has roamed to a repeater.
  12430. */
  12431. enum qca_wlan_roam_stats_tx_failures_reason {
  12432. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0,
  12433. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1,
  12434. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2,
  12435. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3,
  12436. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4,
  12437. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5,
  12438. QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6,
  12439. };
  12440. /**
  12441. * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values
  12442. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON.
  12443. *
  12444. * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the
  12445. * detailed reason for roam scan being aborted.
  12446. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not
  12447. * started due to high data RSSI during LOW-RSSI roaming.
  12448. * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not
  12449. * started due to good link speed during LOW-RSSI roaming.
  12450. * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started
  12451. * due to high data RSSI during background roaming.
  12452. * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not
  12453. * started due to high beacon RSSI during background roaming
  12454. */
  12455. enum qca_wlan_roam_stats_abort_reason {
  12456. QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0,
  12457. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1,
  12458. QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2,
  12459. QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3,
  12460. QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4,
  12461. };
  12462. /**
  12463. * enum qca_wlan_roam_stats_scan_type - Roam scan type define.
  12464. * These values are used by the attribute
  12465. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE.
  12466. *
  12467. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan
  12468. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan
  12469. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered.
  12470. * This is generally used in BTM events to indicate BTM frame exchange logs.
  12471. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan
  12472. * from 2.4 GHz to 5 GHz or 6 GHz
  12473. * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from
  12474. * 5 GHz to 6 GHz
  12475. */
  12476. enum qca_wlan_roam_stats_scan_type {
  12477. QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0,
  12478. QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1,
  12479. QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2,
  12480. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3,
  12481. QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4,
  12482. };
  12483. /**
  12484. * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type.
  12485. * These values are used by the attribute
  12486. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE.
  12487. *
  12488. * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the
  12489. * detailed roam scan type.
  12490. * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam.
  12491. * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam.
  12492. */
  12493. enum qca_wlan_roam_stats_scan_dwell_type {
  12494. QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0,
  12495. QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1,
  12496. QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2,
  12497. };
  12498. /**
  12499. * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside
  12500. * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute.
  12501. */
  12502. enum qca_wlan_vendor_attr_roam_stats_scan_chan_info {
  12503. /* 32-bit unsigned value to indicate center frequency of the primary
  12504. * channel in MHz for each roam scan channel.
  12505. */
  12506. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1,
  12507. /* 8-bit unsigned value to indicate channel scan type for each
  12508. * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type.
  12509. */
  12510. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2,
  12511. /* 32-bit unsigned value to indicate maximum scan time in milliseconds
  12512. * for each roam scan channel.
  12513. */
  12514. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3,
  12515. /* keep last */
  12516. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST,
  12517. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX =
  12518. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1,
  12519. };
  12520. /**
  12521. * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values
  12522. * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE.
  12523. *
  12524. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame
  12525. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame
  12526. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame
  12527. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame
  12528. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame
  12529. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame
  12530. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame
  12531. * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame
  12532. */
  12533. enum qca_wlan_roam_stats_frame_subtype {
  12534. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1,
  12535. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2,
  12536. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3,
  12537. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4,
  12538. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5,
  12539. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6,
  12540. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7,
  12541. QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8,
  12542. };
  12543. /**
  12544. * enum roam_frame_status - Specifies the valid values the vendor roam frame
  12545. * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take.
  12546. *
  12547. * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was
  12548. * sent or received successfully.
  12549. * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or
  12550. * receiving failed.
  12551. */
  12552. enum qca_wlan_roam_stats_frame_status {
  12553. QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0,
  12554. QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1,
  12555. };
  12556. /**
  12557. * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the
  12558. * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute.
  12559. */
  12560. enum qca_wlan_vendor_attr_roam_stats_frame_info {
  12561. /* 8-bit unsigned value to indicate the frame subtype during
  12562. * roaming, one of the values in qca_wlan_roam_stats_frame_subtype.
  12563. */
  12564. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1,
  12565. /* 8-bit unsigned value to indicate the frame is successful or failed
  12566. * during roaming, one of the values in
  12567. * qca_wlan_roam_stats_frame_status.
  12568. */
  12569. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2,
  12570. /* 64-bit unsigned value to indicate the timestamp for frame of
  12571. * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4
  12572. * when sent or received during roaming, timestamp in milliseconds
  12573. * from system boot.
  12574. */
  12575. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3,
  12576. /* keep last */
  12577. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST,
  12578. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX =
  12579. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1,
  12580. };
  12581. /**
  12582. * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute
  12583. * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO.
  12584. */
  12585. enum qca_wlan_vendor_attr_roam_stats_info {
  12586. /* 64-bit unsigned value to indicate the timestamp when roam was
  12587. * triggered by the firmware, timestamp in milliseconds from system
  12588. * boot.
  12589. */
  12590. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1,
  12591. /* 32-bit unsigned value to indicate the roam trigger reason for the
  12592. * last roaming attempted by the firmware. This can be queried either
  12593. * in a connected state or disconnected state. The values of this
  12594. * attribute represent the roam trigger reason codes, which
  12595. * are defined in enum qca_roam_reason.
  12596. */
  12597. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2,
  12598. /* 8-bit unsigned value to indicate percentage of packets for which
  12599. * the RX rate is lower than the RX rate threshold in total RX packets,
  12600. * used for roaming trigger by per.
  12601. */
  12602. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3,
  12603. /* 8-bit unsigned value to indicate percentage of packets for which
  12604. * the TX rate is lower than TX rate threshold in total TX packets,
  12605. * used for roaming trigger by per.
  12606. */
  12607. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4,
  12608. /* 32-bit unsigned value to indicate final beacon miss count for
  12609. * trigger reason of beacon miss.
  12610. */
  12611. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5,
  12612. /* 32-bit unsigned value to indicate consecutive beacon miss count
  12613. * for trigger reason of beacon miss.
  12614. */
  12615. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6,
  12616. /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger
  12617. * reason of beacon miss, 0 - success, 1 - fail.
  12618. * If QOS-NULL TX status is successful, beacon miss final count and
  12619. * consecutive beacon miss count will be reset to zero, and roam will
  12620. * not be triggered. If QOS-NULL TX status is failed, beacon miss final
  12621. * count and consecutive beacon miss count continue to calculate until
  12622. * roaming trigger by beacon miss.
  12623. */
  12624. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7,
  12625. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12626. * for trigger reason of poor RSSI.
  12627. */
  12628. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8,
  12629. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12630. * for trigger reason of poor RSSI.
  12631. */
  12632. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9,
  12633. /* 8-bit unsigned value to indicate RX link speed status
  12634. * for trigger reason of poor RSSI, 0 - good link speed,
  12635. * 1 - bad link speed.
  12636. */
  12637. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10,
  12638. /* 8-bit signed value to indicate connected AP RSSI in dBm
  12639. * for trigger reason of better RSSI.
  12640. */
  12641. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11,
  12642. /* 8-bit signed value to indicate RSSI threshold value in dBm
  12643. * for trigger reason of better RSSI.
  12644. */
  12645. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12,
  12646. /* 32-bit unsigned value to indicate RX throughput in bytes per second
  12647. * for trigger reason of congestion.
  12648. */
  12649. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13,
  12650. /* 32-bit unsigned value to indicate TX throughput in bytes per second
  12651. * for trigger reason of congestion.
  12652. */
  12653. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14,
  12654. /* 8-bit unsigned value to indicate roamable AP count
  12655. * for trigger reason of congestion.
  12656. */
  12657. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15,
  12658. /* 8-bit unsigned value to indicate invoke reason, one of the values
  12659. * defined in qca_wlan_roam_stats_invoke_reason.
  12660. */
  12661. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16,
  12662. /* 8-bit unsigned value to indicate request mode for trigger reason
  12663. * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9.
  12664. */
  12665. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17,
  12666. /* 32-bit unsigned value to indicate disassociate time in milliseconds
  12667. * for trigger reason of BTM.
  12668. */
  12669. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18,
  12670. /* 32-bit unsigned value to indicate preferred candidate list valid
  12671. * interval in milliseconds for trigger reason of BTM.
  12672. */
  12673. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19,
  12674. /* 8-bit unsigned value to indicate the number of preferred
  12675. * candidates for trigger reason of BTM.
  12676. */
  12677. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20,
  12678. /* 8-bit unsigned value to indicate response status for trigger
  12679. * reason of BTM, values are defined in IEEE Std 802.11-2020,
  12680. * Table 9-428 (BTM status code definitions).
  12681. */
  12682. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21,
  12683. /* 32-bit unsigned value to indicate BSS termination timeout value
  12684. * in milliseconds for trigger reason of BTM.
  12685. */
  12686. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22,
  12687. /* 32-bit unsigned value to indicate MBO associate retry timeout
  12688. * value in milliseconds for trigger reason of BTM.
  12689. */
  12690. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23,
  12691. /* 8-bit unsigned value to indicate dialog token number
  12692. * for trigger reason of BTM.
  12693. */
  12694. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24,
  12695. /* 8-bit unsigned value to indicate percentage of connected AP
  12696. * channel congestion utilization for trigger reason of BSS load.
  12697. */
  12698. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25,
  12699. /* 8-bit unsigned value to indicate disconnection type
  12700. * for trigger reason of disconnection. 1 - Deauthentication,
  12701. * 2 - Disassociation.
  12702. */
  12703. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26,
  12704. /* 16-bit unsigned value to indicate deauthentication or disassociation
  12705. * reason for trigger reason of disconnection, values are defined
  12706. * in IEEE Std 802.11-2020, Table 9-49 (Reason codes).
  12707. */
  12708. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27,
  12709. /* 32-bit unsigned value to indicate milliseconds of roam scan
  12710. * periodicity when needing to roam to find a better AP for trigger
  12711. * reason of periodic timer.
  12712. */
  12713. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28,
  12714. /* 8-bit signed value to indicate connected AP RSSI in dBm for
  12715. * trigger reason of background scan.
  12716. */
  12717. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29,
  12718. /* 8-bit signed value to indicate data RSSI in dBm for trigger reason
  12719. * of background scan.
  12720. */
  12721. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30,
  12722. /* 8-bit signed value to indicate data RSSI threshold in dBm
  12723. * for trigger reason of background scan.
  12724. */
  12725. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31,
  12726. /* 32-bit unsigned value to indicate consecutive TX failure threshold
  12727. * for trigger reason of TX failures.
  12728. */
  12729. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32,
  12730. /* 8-bit unsigned value to indicate TX failure reason for trigger
  12731. * reason of TX failures, one of the values defined in
  12732. * qca_wlan_roam_stats_tx_failures_reason.
  12733. */
  12734. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33,
  12735. /* 8-bit unsigned value to indicate detail abort reason. One of the
  12736. * values in enum qca_wlan_roam_stats_abort_reason.
  12737. */
  12738. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34,
  12739. /* 8-bit signed value to indicate data RSSI in dBm when aborting the
  12740. * roam scan.
  12741. */
  12742. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35,
  12743. /* 8-bit signed value to indicate data RSSI threshold in dBm when
  12744. * aborting the roam scan.
  12745. */
  12746. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36,
  12747. /* 8-bit unsigned value to indicate data RSSI threshold in RX link
  12748. * speed status when aborting the roam scan.
  12749. * 0 - good link speed, 1 - bad link speed
  12750. */
  12751. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37,
  12752. /* 8-bit unsigned value to indicate roaming scan type.
  12753. * One of the values in enum qca_wlan_roam_stats_scan_type.
  12754. */
  12755. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38,
  12756. /* 8-bit unsigned value to indicate roaming result, used in STA mode
  12757. * only.
  12758. * 0-Roaming is successful, 1-Roaming is failed
  12759. */
  12760. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39,
  12761. /* 8-bit unsigned value to indicate the roam fail reason for the
  12762. * last failed roaming attempt by the firmware. Different roam failure
  12763. * reason codes are specified in enum qca_vendor_roam_fail_reasons.
  12764. * This can be queried either in connected state or disconnected state.
  12765. */
  12766. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40,
  12767. /* Nested attribute. Indicate roam scan info for each channel, the
  12768. * attributes defined in enum
  12769. * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside
  12770. * this attribute.
  12771. */
  12772. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41,
  12773. /* 32-bit unsigned value to indicate total scan time during roam scan
  12774. * all channels, time in milliseconds.
  12775. */
  12776. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42,
  12777. /* Nested attribute. This attribute shall be used by the driver to
  12778. * send roam information of each subtype. The attributes defined in
  12779. * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside
  12780. * this attribute.
  12781. */
  12782. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43,
  12783. /* keep last */
  12784. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST,
  12785. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX =
  12786. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1,
  12787. };
  12788. /**
  12789. * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to
  12790. * report cached roam info from the driver to user space, enum values are used
  12791. * for netlink attributes sent with the
  12792. * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command.
  12793. */
  12794. enum qca_wlan_vendor_attr_roam_cached_stats {
  12795. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0,
  12796. /* Nested attribute, this attribute contains nested array roam info
  12797. * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info.
  12798. */
  12799. QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1,
  12800. /* keep last */
  12801. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST,
  12802. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX =
  12803. QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1,
  12804. };
  12805. /**
  12806. * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for
  12807. * radio configurations present in each radio combination.
  12808. *
  12809. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates
  12810. * the band info in the radio configuration. Uses the enum qca_set_band values.
  12811. *
  12812. * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates
  12813. * the number of antennas info in the radio configuration.
  12814. */
  12815. enum qca_wlan_vendor_attr_supported_radio_cfg {
  12816. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0,
  12817. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1,
  12818. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2,
  12819. /* keep last */
  12820. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST,
  12821. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX =
  12822. QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1,
  12823. };
  12824. /**
  12825. * enum qca_wlan_vendor_attr_radio_combination - Attributes for
  12826. * radio combinations supported by the device.
  12827. *
  12828. * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute
  12829. * provides the radio configurations present in the radio combination.
  12830. * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes.
  12831. * This attribute provides the values for radio combination matrix.
  12832. * For standalone config, the number of config values is one and the config
  12833. * carries the band and antenna information for standalone configuration. For
  12834. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode
  12835. * configuration the number of config values is two and the config carries the
  12836. * band and antenna information for each simultaneous radio.
  12837. */
  12838. enum qca_wlan_vendor_attr_radio_combination {
  12839. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0,
  12840. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1,
  12841. /* keep last */
  12842. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST,
  12843. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX =
  12844. QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1,
  12845. };
  12846. /**
  12847. * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by
  12848. * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX
  12849. *
  12850. * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute
  12851. * provides the radio combinations supported by the device.
  12852. * Uses the enum qca_wlan_vendor_attr_radio_combination attributes.
  12853. * For example, in the radio combination matrix for a device which has two
  12854. * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is
  12855. * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio
  12856. * combinations is 5 and the radio combinations are
  12857. * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz
  12858. * {{5 GHz 2X2}}, //Standalone 5 GHz
  12859. * {{6 GHz 2X2}}, //Standalone 6 GHz
  12860. * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS
  12861. * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS
  12862. * The band and antenna info together as nested data provides one radio config.
  12863. * Standalone configuration has one config with band and antenna nested data.
  12864. * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration
  12865. * have two nested band and antenna info data.
  12866. */
  12867. enum qca_wlan_vendor_attr_radio_combination_matrix {
  12868. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0,
  12869. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1,
  12870. /* keep last */
  12871. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST,
  12872. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX =
  12873. QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1,
  12874. };
  12875. /**
  12876. * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by
  12877. * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command.
  12878. *
  12879. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag)
  12880. * Enable mDNS offload. This attribute is mandatory to enable
  12881. * mDNS offload feature. If this attribute is not present, mDNS offload
  12882. * is disabled.
  12883. *
  12884. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing
  12885. * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This
  12886. * attribute is mandatory when enabling the feature, and not required when
  12887. * disabling the feature.
  12888. *
  12889. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing
  12890. * the following attributes:
  12891. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN
  12892. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT
  12893. * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD
  12894. *
  12895. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute.
  12896. * It consists of a hostname and ".local" as the domain name. The character
  12897. * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes.
  12898. * It is used to compare the domain the in the "QU" query. Only 1 FQDN is
  12899. * supported per vdev.
  12900. * For example: myphone.local
  12901. *
  12902. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required
  12903. * u16 attribute. It specifies the total number of resource records present
  12904. * in the answer section of the answer payload. This attribute is needed by the
  12905. * firmware to populate the mDNS response frame for mNDS queries without having
  12906. * to parse the answer payload.
  12907. *
  12908. * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob
  12909. * attribute sent by the mdnsResponder from userspace. It contains resource
  12910. * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This
  12911. * payload is passed down to firmware and is transmitted in response to
  12912. * mDNS queries.
  12913. * The maximum size of the answer payload supported is 512 bytes.
  12914. */
  12915. enum qca_wlan_vendor_attr_mdns_offload {
  12916. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0,
  12917. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1,
  12918. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2,
  12919. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3,
  12920. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4,
  12921. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5,
  12922. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6,
  12923. /* keep last */
  12924. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST,
  12925. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX =
  12926. QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1,
  12927. };
  12928. /**
  12929. * enum qca_vendor_attr_diag_event_type - Attributes used by
  12930. * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute.
  12931. *
  12932. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from
  12933. * driver/firmware during Connection request from Userspace. Uses the
  12934. * following attributes of enum qca_wlan_vendor_attr_diag:
  12935. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12936. * QCA_WLAN_VENDOR_ATTR_DIAG_SSID,
  12937. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12938. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT,
  12939. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12940. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT,
  12941. * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE,
  12942. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE,
  12943. * QCA_WLAN_VENDOR_ATTR_DIAG_AKM,
  12944. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12945. * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE,
  12946. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE,
  12947. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12948. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12949. *
  12950. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from
  12951. * driver/firmware when a connection is failed. Uses the
  12952. * following attributes of enum qca_wlan_vendor_attr_diag:
  12953. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12954. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12955. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  12956. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12957. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  12958. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12959. *
  12960. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from
  12961. * driver/firmware during Authentication request from a device. Uses the
  12962. * following attributes of enum qca_wlan_vendor_attr_diag:
  12963. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12964. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12965. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  12966. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12967. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  12968. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12969. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12970. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12971. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12972. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12973. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12974. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12975. *
  12976. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from
  12977. * driver/firmware when device receives an authentication response. Uses the
  12978. * following attributes of enum qca_wlan_vendor_attr_diag:
  12979. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  12980. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  12981. * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO,
  12982. * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE,
  12983. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  12984. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  12985. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12986. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  12987. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  12988. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  12989. *
  12990. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from
  12991. * driver/firmware when device sends an association request. 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_SEQUENCE_NUMBER,
  12997. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  12998. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  12999. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13000. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13001. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13002. *
  13003. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from
  13004. * driver/firmware when device receives an association response. Uses the
  13005. * following attributes of enum qca_wlan_vendor_attr_diag:
  13006. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13007. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13008. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13009. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13010. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13011. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13012. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13013. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13014. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID.
  13015. *
  13016. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from
  13017. * driver/userspace when device receives a deauthentication response. Uses the
  13018. * following attributes of enum qca_wlan_vendor_attr_diag:
  13019. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13020. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13021. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13022. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13023. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13024. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13025. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13026. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13027. *
  13028. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from
  13029. * driver/userspace when device sends a deauthentication request. Uses the
  13030. * following attributes of enum qca_wlan_vendor_attr_diag:
  13031. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13032. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13033. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13034. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13035. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13036. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13037. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13038. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13039. *
  13040. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from
  13041. * driver/firmware when device receives a disassociation response. Uses the
  13042. * following attributes of enum qca_wlan_vendor_attr_diag:
  13043. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13044. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13045. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13046. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13047. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13048. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13049. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13050. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13051. *
  13052. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from
  13053. * driver/firmware when device sends a disassociation request. Uses the
  13054. * following attributes of enum qca_wlan_vendor_attr_diag:
  13055. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13056. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13057. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13058. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13059. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13060. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13061. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13062. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13063. *
  13064. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from
  13065. * driver/firmware when device did not receive beacon packets during connection.
  13066. * Uses the following attributes of enum qca_wlan_vendor_attr_diag:
  13067. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13068. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13069. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13070. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13071. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13072. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13073. *
  13074. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from
  13075. * driver/firmware when Roaming scan is triggered. Uses the following
  13076. * attributes of enum qca_wlan_vendor_attr_diag:
  13077. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13078. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON,
  13079. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON,
  13080. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13081. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13082. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE,
  13083. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD,
  13084. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13085. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13086. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13087. *
  13088. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from
  13089. * driver/firmware Roam scanning is processed. 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_ROAM_AP_RANK,
  13093. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST,
  13094. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT,
  13095. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13096. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13097. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13098. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13099. * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE.
  13100. *
  13101. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from
  13102. * driver/firmware to provide Roam information of the current AP. Uses the
  13103. * following attributes of enum qca_wlan_vendor_attr_diag:
  13104. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13105. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13106. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13107. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13108. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13109. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  13110. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13111. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13112. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13113. *
  13114. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from
  13115. * driver/firmware to provide Roam information of the candid AP. Uses the
  13116. * following attributes of enum qca_wlan_vendor_attr_diag:
  13117. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13118. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13119. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13120. * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ,
  13121. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU,
  13122. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE,
  13123. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP,
  13124. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13125. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13126. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13127. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13128. *
  13129. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from
  13130. * driver/firmware to provide Roam result after selecting a candidate. Uses the
  13131. * following attributes of enum qca_wlan_vendor_attr_diag:
  13132. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13133. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL,
  13134. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13135. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13136. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13137. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13138. *
  13139. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from
  13140. * driver/firmware to indicate Roam Cancellation due to higher priority events.
  13141. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13142. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13143. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13144. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13145. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13146. *
  13147. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver
  13148. * /firmware when STA sends a BTM request frame. Uses the following attributes
  13149. * of enum qca_wlan_vendor_attr_diag:
  13150. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13151. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13152. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE,
  13153. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER,
  13154. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL,
  13155. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT,
  13156. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13157. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13158. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13159. *
  13160. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from
  13161. * driver/firmware when STA queries about BTM transition. Uses the following
  13162. * attributes of enum qca_wlan_vendor_attr_diag:
  13163. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13164. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13165. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON,
  13166. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13167. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13168. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13169. *
  13170. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver
  13171. * /firmware when STA receives BTM response frame. Uses the following
  13172. * attributes of enum qca_wlan_vendor_attr_diag:
  13173. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13174. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN,
  13175. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE,
  13176. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY,
  13177. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID,
  13178. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13179. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13180. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13181. *
  13182. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from
  13183. * driver/firmware to provide BTM request candidate information. Uses the
  13184. * following attributes of enum qca_wlan_vendor_attr_diag:
  13185. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13186. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13187. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE,
  13188. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK,
  13189. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13190. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13191. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13192. *
  13193. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver
  13194. * /firmware when ROAM WTC trigger happens. Uses the following attributes of
  13195. * enum qca_wlan_vendor_attr_diag:
  13196. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13197. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE,
  13198. * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE,
  13199. * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION,
  13200. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13201. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13202. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13203. *
  13204. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from
  13205. * driver/firmware to indicate DHCP discovery to AP. Uses the following
  13206. * attributes of enum qca_wlan_vendor_attr_diag:
  13207. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13208. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13209. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13210. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13211. *
  13212. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from
  13213. * driver/firmware to indicate DHCP offering to AP. Uses the following
  13214. * attributes of enum qca_wlan_vendor_attr_diag:
  13215. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13216. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13217. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13218. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13219. *
  13220. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from
  13221. * driver/firmware to indicate driver sent DHCP packets. Uses the following
  13222. * attributes of enum qca_wlan_vendor_attr_diag:
  13223. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13224. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13225. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13226. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13227. *
  13228. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver
  13229. * /firmware to indicate acknowledgement of DHCP packets. Uses the following
  13230. * attributes of enum qca_wlan_vendor_attr_diag:
  13231. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13232. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13233. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13234. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13235. *
  13236. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver
  13237. * /firmware to indicate negative acknowledgement of DHCP packets. Uses the
  13238. * following attributes of enum qca_wlan_vendor_attr_diag:
  13239. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13240. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13241. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13242. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13243. *
  13244. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver
  13245. * /firmware to indicate EAPOL M1 message. Uses the following attributes of
  13246. * enum qca_wlan_vendor_attr_diag:
  13247. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13248. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13249. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13250. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13251. *
  13252. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver
  13253. * /firmware to indicate EAPOL M2 message. Uses the following attributes of
  13254. * enum qca_wlan_vendor_attr_diag:
  13255. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13256. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13257. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13258. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13259. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13260. *
  13261. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver
  13262. * /firmware to indicate EAPOL M3 message. Uses the following attributes of
  13263. * enum qca_wlan_vendor_attr_diag:
  13264. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13265. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13266. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13267. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13268. *
  13269. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver
  13270. * /firmware to indicate EAPOL M4 message. Uses the following attributes of
  13271. * enum qca_wlan_vendor_attr_diag:
  13272. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13273. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13274. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13275. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13276. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13277. *
  13278. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver
  13279. * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of
  13280. * enum qca_wlan_vendor_attr_diag:
  13281. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13282. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13283. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13284. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13285. *
  13286. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver
  13287. * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of
  13288. * enum qca_wlan_vendor_attr_diag:
  13289. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13290. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13291. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13292. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP,
  13293. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13294. *
  13295. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver
  13296. * /firmware to indicate device sent EAP request. Uses the following attributes
  13297. * of enum qca_wlan_vendor_attr_diag:
  13298. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13299. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13300. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13301. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13302. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13303. *
  13304. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver
  13305. * /firmware to indicate device received EAP response. Uses the following
  13306. * attributes of enum qca_wlan_vendor_attr_diag:
  13307. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13308. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE,
  13309. * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN,
  13310. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13311. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13312. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13313. *
  13314. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver
  13315. * /firmware to indicate EAP frame transmission is success. Uses the following
  13316. * attributes of enum qca_wlan_vendor_attr_diag:
  13317. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13318. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13319. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13320. *
  13321. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver
  13322. * /firmware to indicate EAP frame transmission is failed. Uses the following
  13323. * attributes of enum qca_wlan_vendor_attr_diag:
  13324. * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP,
  13325. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13326. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.
  13327. *
  13328. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver
  13329. * /firmware to indicate Reassocation request. Uses the following attributes
  13330. * of enum qca_wlan_vendor_attr_diag:
  13331. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13332. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13333. * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI,
  13334. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13335. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS,
  13336. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13337. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13338. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13339. *
  13340. * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver
  13341. * /firmware to indicate Reassocation response. Uses the following attributes
  13342. * of enum qca_wlan_vendor_attr_diag:
  13343. * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP,
  13344. * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID,
  13345. * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER,
  13346. * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
  13347. * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID,
  13348. * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX,
  13349. * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME,
  13350. * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP.
  13351. */
  13352. enum qca_vendor_attr_diag_event_type {
  13353. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0,
  13354. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1,
  13355. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2,
  13356. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3,
  13357. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4,
  13358. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5,
  13359. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6,
  13360. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7,
  13361. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8,
  13362. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9,
  13363. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10,
  13364. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11,
  13365. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12,
  13366. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13,
  13367. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14,
  13368. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15,
  13369. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16,
  13370. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17,
  13371. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18,
  13372. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19,
  13373. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20,
  13374. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21,
  13375. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22,
  13376. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23,
  13377. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24,
  13378. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25,
  13379. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26,
  13380. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27,
  13381. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28,
  13382. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29,
  13383. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30,
  13384. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31,
  13385. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32,
  13386. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33,
  13387. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34,
  13388. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35,
  13389. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36,
  13390. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37,
  13391. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38,
  13392. /* keep last */
  13393. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST,
  13394. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX =
  13395. QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1,
  13396. };
  13397. /**
  13398. * enum qca_wlan_vendor_tx_status - Used by attribute
  13399. * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status.
  13400. * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air.
  13401. * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement
  13402. * is not received.
  13403. * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and
  13404. * acknowledged.
  13405. */
  13406. enum qca_wlan_vendor_tx_status {
  13407. QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1,
  13408. QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2,
  13409. QCA_WLAN_VENDOR_TX_STATUS_ACK = 3,
  13410. };
  13411. /**
  13412. * enum qca_roam_sub_reason - Used by attribute
  13413. * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON
  13414. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic
  13415. * timer expiry
  13416. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due
  13417. * to no candidate found during LOW RSSI trigger.
  13418. * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc
  13419. * Imminent timeout
  13420. * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan
  13421. * failure
  13422. * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to
  13423. * emergency like deauth/disassoc.
  13424. * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to
  13425. * BSS transition management request.
  13426. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI:
  13427. * Roam scan triggered due to Low RSSI periodic timer
  13428. * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU:
  13429. * Roam trigger due to periodic timer after no candidate found during CU
  13430. * inactivity timer scan.
  13431. * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate
  13432. * found in high CU roam trigger.
  13433. */
  13434. enum qca_roam_sub_reason {
  13435. QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1,
  13436. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2,
  13437. QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3,
  13438. QCA_ROAM_SUB_REASON_FULL_SCAN = 4,
  13439. QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5,
  13440. QCA_ROAM_SUB_REASON_CU_PERIODIC = 6,
  13441. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7,
  13442. QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8,
  13443. QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9,
  13444. };
  13445. /*
  13446. * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver
  13447. * to send diag data to the userspace. The attributes defined in this enum are
  13448. * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13449. *
  13450. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used
  13451. * by driver/firmware to send diag data. Each instance of this nested attribute
  13452. * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other
  13453. * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the
  13454. * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this
  13455. * nested attribute can be sent with one vendor command
  13456. * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA.
  13457. *
  13458. * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This
  13459. * attribute indicates the type of the diag event from driver/firmware. Uses
  13460. * values from enum qca_vendor_attr_diag_event_type.
  13461. *
  13462. * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This
  13463. * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64()
  13464. * API to send time of the day in microseconds to userspace.
  13465. *
  13466. * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute.
  13467. * This attribute indicates firmware timestamp in microseconds.
  13468. *
  13469. * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute
  13470. * indicates wlan interface index.
  13471. *
  13472. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute
  13473. * indicates 6-byte MAC address representing the BSSID of the AP.
  13474. *
  13475. * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute
  13476. * indicates the 6-byte MAC address representing the BSSID hint sent in
  13477. * the connect request.
  13478. *
  13479. * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute
  13480. * indicates the SSID in u8 array with a maximum length of 32.
  13481. *
  13482. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute
  13483. * indicates the frequency of AP in MHz.
  13484. *
  13485. * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute
  13486. * indicates frequency hint given in the connect request in MHz.
  13487. *
  13488. * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute.
  13489. * This attribute indicates RSSI of the 802.11 frame in dBm.
  13490. *
  13491. * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute.
  13492. * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020
  13493. * Table 12-10—Integrity and key wrap algorithms.
  13494. *
  13495. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute.
  13496. * This attribute indicates Group cipher suite defined in IEEE 802.11 2020
  13497. * Table 12-10—Integrity and key wrap algorithms.
  13498. *
  13499. * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This
  13500. * attribute indicates Group management cipher suite defined in IEEE Std
  13501. * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms.
  13502. *
  13503. * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute
  13504. * indicates Auth key management suite defined in IEEE Std 802.11‐2020
  13505. * Table 9-151—AKM suite selectors.
  13506. *
  13507. * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute
  13508. * indicates authentication algorithm number defined in IEEE Std 802.11‐2020
  13509. * Section 9.4.1.1 Authentication Algorithm Number field.
  13510. *
  13511. * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute
  13512. * indicates bluetooth COEX is active or not.
  13513. *
  13514. * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This
  13515. * attribute indicates SAE authentication frame type. The possible values are
  13516. * 1 - SAE commit frame
  13517. * 2 - SAE confirm frame
  13518. *
  13519. * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This
  13520. * attribute indicates the reason codes defined in IEEE Std 802.11‐2020
  13521. * Table 9-49—Reason codes.
  13522. *
  13523. * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This
  13524. * attribute indicates sequence number of the frame defined in IEEE Std
  13525. * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number
  13526. * field.
  13527. *
  13528. * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This
  13529. * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table
  13530. * 9-50—Status codes.
  13531. *
  13532. * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute.
  13533. * Uses enum qca_wlan_vendor_tx_status.
  13534. *
  13535. * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute
  13536. * indicates if frame transmission is retried.
  13537. *
  13538. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute.
  13539. * Uses enum qca_roam_reason.
  13540. *
  13541. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute.
  13542. * Uses enum qca_roam_sub_reason.
  13543. *
  13544. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute
  13545. * indicates channel utilization in percentage.
  13546. *
  13547. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This
  13548. * attribute indicates scan type used. Uses enum qca_roam_scan_scheme.
  13549. *
  13550. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute.
  13551. * This attribute indicates current RSSI threshold in dBm.
  13552. *
  13553. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute.
  13554. * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE
  13555. * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ.
  13556. *
  13557. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute.
  13558. * This attribute indicates number of scanned candidate APs.
  13559. *
  13560. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This
  13561. * attribute indicates roam AP rank computed based on connection preference.
  13562. *
  13563. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute.
  13564. * This attribute indicates expected throughput in kbps.
  13565. *
  13566. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute.
  13567. * This attribute indicates the preference value of candidate AP / connected AP
  13568. * calculated in the firmware.
  13569. *
  13570. * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute
  13571. * indicates connection/roaming is successful or not.
  13572. *
  13573. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute.
  13574. * This attribute indicates BTM WTC sub reason code in the WTC vendor specific
  13575. * IE present in the BTM frame.
  13576. *
  13577. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute.
  13578. * This attribute indicates BTM WTC duration in milliseconds.
  13579. *
  13580. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute
  13581. * indicates dialog token value of BTM query/request/response frames.
  13582. *
  13583. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This
  13584. * attribute indicates the Transition Reason field indicates the reason why
  13585. * a transition attempt occurred and contains one of the values defined in IEEE
  13586. * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons.
  13587. *
  13588. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute
  13589. * indicates BTM mode defined in IEEE Std 802.11‐2020
  13590. * Figure 9-924—Request Mode field format.
  13591. *
  13592. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute.
  13593. * This attribute indicates the Disassociation Timer field which is the number
  13594. * of beacon transmission times (TBTTs) until the serving AP will send a
  13595. * Disassociation frame to this STA.
  13596. *
  13597. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute.
  13598. * This attribute indicates BTM validity interval field in TBTTs defined in
  13599. * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame
  13600. * Action field format.
  13601. *
  13602. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute.
  13603. * This attribute indicates BTM candidate list entries.
  13604. *
  13605. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute.
  13606. * This attribute indicates network preference for BTM transition defined in
  13607. * IEEE Std 802.11‐2020 Table 9-174—Preference field values.
  13608. *
  13609. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute.
  13610. * This attribute indicates BTM transition status code defined in IEEE Std
  13611. * 802.11‐2020 Table 9-428—BTM status code definitions.
  13612. *
  13613. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute.
  13614. * This attribute indicates BSS termination delay defined in IEEE Std
  13615. * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format.
  13616. *
  13617. * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute.
  13618. * This attribute indicates 6-byte MAC address representing the BSSID of the
  13619. * BSS that the non-AP STA transitions to.
  13620. *
  13621. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute
  13622. * indicates EAP frame type. The methods are enumerated by IANA at
  13623. * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml.
  13624. *
  13625. * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute
  13626. * indicates EAP frame length.
  13627. *
  13628. * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This
  13629. * attribute indicates the kernel timestamp. Driver uses ktime_get() API
  13630. * (Time from boot but not the time spent in suspend) to send in microseconds
  13631. * to userspace.
  13632. *
  13633. * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute
  13634. * indicates the association id received in the (re)association response frame
  13635. * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format.
  13636. */
  13637. enum qca_wlan_vendor_attr_diag {
  13638. QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0,
  13639. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1,
  13640. QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2,
  13641. QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3,
  13642. QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4,
  13643. QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5,
  13644. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6,
  13645. QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7,
  13646. QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8,
  13647. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9,
  13648. QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10,
  13649. QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11,
  13650. QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12,
  13651. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13,
  13652. QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14,
  13653. QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15,
  13654. QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16,
  13655. QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17,
  13656. QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18,
  13657. QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19,
  13658. QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20,
  13659. QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21,
  13660. QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22,
  13661. QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23,
  13662. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24,
  13663. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25,
  13664. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26,
  13665. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27,
  13666. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28,
  13667. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29,
  13668. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30,
  13669. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31,
  13670. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32,
  13671. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33,
  13672. QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34,
  13673. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35,
  13674. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36,
  13675. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37,
  13676. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38,
  13677. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39,
  13678. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40,
  13679. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41,
  13680. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42,
  13681. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43,
  13682. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44,
  13683. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45,
  13684. QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46,
  13685. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47,
  13686. QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48,
  13687. QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49,
  13688. QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50,
  13689. /* keep last */
  13690. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST,
  13691. QCA_WLAN_VENDOR_ATTR_DIAG_MAX =
  13692. QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1,
  13693. };
  13694. /**
  13695. * qca_wlan_vendor_monitor_data_frame_type - Represent the various
  13696. * data types to be sent over the monitor interface.
  13697. */
  13698. enum qca_wlan_vendor_monitor_data_frame_type {
  13699. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0),
  13700. /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is
  13701. not set */
  13702. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1),
  13703. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2),
  13704. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3),
  13705. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4),
  13706. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5),
  13707. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6),
  13708. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7),
  13709. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8),
  13710. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9),
  13711. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10),
  13712. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11),
  13713. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12),
  13714. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13),
  13715. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14),
  13716. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15),
  13717. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16),
  13718. QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17),
  13719. };
  13720. /**
  13721. * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various
  13722. * mgmt types to be sent over the monitor interface.
  13723. * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames.
  13724. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames
  13725. * except the Beacons. Valid only in the Connect state.
  13726. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected
  13727. * BSSID Beacons. Valid only in the Connect state.
  13728. * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents
  13729. * the Beacons obtained during the scan (off channel and connected channel)
  13730. * when in connected state.
  13731. */
  13732. enum qca_wlan_vendor_monitor_mgmt_frame_type {
  13733. QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0),
  13734. /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */
  13735. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1),
  13736. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2),
  13737. QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3),
  13738. };
  13739. /**
  13740. * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various
  13741. * ctrl types to be sent over the monitor interface.
  13742. * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames.
  13743. * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame.
  13744. */
  13745. enum qca_wlan_vendor_monitor_ctrl_frame_type {
  13746. QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0),
  13747. /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */
  13748. QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1),
  13749. };
  13750. /**
  13751. * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the
  13752. * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the
  13753. * monitor mode.
  13754. *
  13755. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute,
  13756. * Represents the tx data packet type to be monitored (u32). These data packets
  13757. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13758. *
  13759. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute,
  13760. * Represents the tx data packet type to be monitored (u32). These data packets
  13761. * are represented by enum qca_wlan_vendor_monitor_data_frame_type.
  13762. *
  13763. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute,
  13764. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13765. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13766. *
  13767. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute,
  13768. * Represents the tx data packet type to be monitored (u32). These mgmt packets
  13769. * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type.
  13770. *
  13771. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute,
  13772. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13773. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13774. *
  13775. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute,
  13776. * Represents the tx data packet type to be monitored (u32). These ctrl packets
  13777. * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type.
  13778. *
  13779. * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL:
  13780. * u32 attribute, An interval only for the connected beacon interval, which
  13781. * expects that the connected BSSID's beacons shall be sent on the monitor
  13782. * interface only on this specific interval.
  13783. */
  13784. enum qca_wlan_vendor_attr_set_monitor_mode {
  13785. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0,
  13786. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1,
  13787. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2,
  13788. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3,
  13789. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4,
  13790. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5,
  13791. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6,
  13792. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7,
  13793. /* keep last */
  13794. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST,
  13795. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX =
  13796. QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1,
  13797. };
  13798. /**
  13799. * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags.
  13800. * Bits will be set to 1 if the corresponding state is enabled.
  13801. *
  13802. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start.
  13803. * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end.
  13804. */
  13805. enum qca_wlan_vendor_roam_scan_state {
  13806. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0),
  13807. QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1),
  13808. };
  13809. /**
  13810. * enum qca_wlan_vendor_roam_event_type - Roam event type flags.
  13811. * Bits will be set to 1 if the corresponding event is notified.
  13812. *
  13813. * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event
  13814. * carries the trigger reason. When set, it is expected that the roam event
  13815. * carries the respective reason via the attribute
  13816. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries
  13817. * the BSSID, RSSI, frequency info of the AP to which the roam is attempted.
  13818. *
  13819. * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event
  13820. * carries the roam fail reason. When set, it is expected that the roam event
  13821. * carries the respective reason via the attribute
  13822. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the
  13823. * BSSID, RSSI, frequency info of the AP to which the roam was attempted.
  13824. *
  13825. * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam
  13826. * event carries the roam invoke fail reason. When set, it is expected that
  13827. * the roam event carries the respective reason via the attribute
  13828. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON.
  13829. *
  13830. * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event
  13831. * carries the roam scan state. When set, it is expected that the roam event
  13832. * carries the respective scan state via the attribute
  13833. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding
  13834. * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST.
  13835. */
  13836. enum qca_wlan_vendor_roam_event_type {
  13837. QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0),
  13838. QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1),
  13839. QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2),
  13840. QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3),
  13841. };
  13842. /**
  13843. * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info.
  13844. * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO.
  13845. *
  13846. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address
  13847. * representing the BSSID of the AP to which the Roam is attempted.
  13848. *
  13849. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value
  13850. * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is
  13851. * attempted.
  13852. *
  13853. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz
  13854. * on which the roam is attempted.
  13855. *
  13856. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in
  13857. * STA mode only. This represents the roam fail reason for the last failed
  13858. * roaming attempt by the firmware for the specific BSSID. Different roam
  13859. * failure reason codes are specified in enum qca_vendor_roam_fail_reasons.
  13860. */
  13861. enum qca_wlan_vendor_attr_roam_events_candidate_info {
  13862. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0,
  13863. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1,
  13864. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2,
  13865. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3,
  13866. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4,
  13867. /* keep last */
  13868. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST,
  13869. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX =
  13870. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1,
  13871. };
  13872. /**
  13873. * enum qca_wlan_vendor_attr_roam_events - Used by the
  13874. * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the
  13875. * roam events to the driver or notify these events from the driver.
  13876. *
  13877. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the
  13878. * driver/firmware to enable/disable the notification of roam events. It's a
  13879. * mandatory attribute and used only in the request from the userspace to the
  13880. * host driver. 1-Enable, 0-Disable.
  13881. * If the roaming is totally offloaded to the firmware, this request when
  13882. * enabled shall mandate the firmware to notify all the relevant roam events
  13883. * represented by the below attributes. If the host is in the suspend mode,
  13884. * the behavior of the firmware to notify these events is guided by
  13885. * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get
  13886. * these events in the suspend state, the firmware is expected to wake up the
  13887. * host before the respective events are notified. Please note that such a
  13888. * request to get the events in the suspend state will have a definite power
  13889. * implication.
  13890. *
  13891. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents
  13892. * that the roam events need to be notified in the suspend state too. By
  13893. * default, these roam events are notified in the resume state. With this flag,
  13894. * the roam events are notified in both resume and suspend states.
  13895. * This attribute is used in the request from the userspace to the host driver.
  13896. *
  13897. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only.
  13898. * Represents the different roam event types, signified by the enum
  13899. * qca_wlan_vendor_roam_event_type.
  13900. * Each bit of this attribute represents the different roam even types reported
  13901. * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13902. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13903. *
  13904. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA
  13905. * mode only. This represents the roam trigger reason for the last roaming
  13906. * attempted by the firmware. Each bit of this attribute represents the
  13907. * different roam trigger reason code which are defined in enum
  13908. * qca_vendor_roam_triggers.
  13909. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13910. *
  13911. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in
  13912. * STA mode only. This represents the roam invoke fail reason for the last
  13913. * failed roam invoke. Different roam invoke failure reason codes
  13914. * are specified in enum qca_vendor_roam_invoke_fail_reasons.
  13915. *
  13916. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info
  13917. * for which the roam is attempted. Each entry is a nested attribute defined
  13918. * by enum qca_wlan_vendor_attr_roam_events_candidate_info.
  13919. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13920. *
  13921. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents
  13922. * the scan state on which the roam events need to be notified. The values for
  13923. * this attribute are referred from enum qca_wlan_vendor_roam_scan_state.
  13924. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13925. *
  13926. * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of
  13927. * u32 values. List of frequencies in MHz considered for a roam scan.
  13928. * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS.
  13929. */
  13930. enum qca_wlan_vendor_attr_roam_events {
  13931. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0,
  13932. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1,
  13933. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2,
  13934. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3,
  13935. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4,
  13936. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5,
  13937. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6,
  13938. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7,
  13939. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8,
  13940. /* keep last */
  13941. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST,
  13942. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX =
  13943. QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1,
  13944. };
  13945. /*
  13946. * enum qca_wlan_ratemask_params_type - Rate mask config type.
  13947. *
  13948. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config
  13949. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config
  13950. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config
  13951. * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config
  13952. */
  13953. enum qca_wlan_ratemask_params_type {
  13954. QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0,
  13955. QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1,
  13956. QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2,
  13957. QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3,
  13958. };
  13959. /* enum qca_wlan_vendor_attr_ratemask_params - Used by the
  13960. * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG.
  13961. * This is used to set the rate mask value to be used in rate selection.
  13962. *
  13963. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST:
  13964. * Array of nested containing attributes
  13965. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and
  13966. * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP.
  13967. *
  13968. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents
  13969. * the different phy types to which the rate mask config is to be applied.
  13970. * The values for this attribute are referred from enum
  13971. * qca_wlan_vendor_ratemask_params_type.
  13972. *
  13973. * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap.
  13974. * A bit value of 1 represents rate is enabled and a value of 0
  13975. * represents rate is disabled.
  13976. * For HE targets, 12 bits correpond to one NSS setting.
  13977. * b0-13 => NSS1, MCS 0-13
  13978. * b14-27 => NSS2, MCS 0-13 and so on for other NSS.
  13979. * For VHT targets, 10 bits correspond to one NSS setting.
  13980. * b0-9 => NSS1, MCS 0-9
  13981. * b10-19 => NSS2, MCS 0-9 and so on for other NSS.
  13982. * For HT targets, 8 bits correspond to one NSS setting.
  13983. * b0-7 => NSS1, MCS 0-7
  13984. * b8-15 => NSS2, MCS 0-7 and so on for other NSS.
  13985. * For OFDM/CCK targets, 8 bits correspond to one NSS setting.
  13986. */
  13987. enum qca_wlan_vendor_attr_ratemask_params {
  13988. QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0,
  13989. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1,
  13990. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2,
  13991. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3,
  13992. /* keep last */
  13993. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST,
  13994. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX =
  13995. QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
  13996. };
  13997. /**
  13998. * enum qca_wlan_vendor_flush_pending_policy: Represents values for
  13999. * the policy to flush pending frames, configured via
  14000. * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the
  14001. * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY.
  14002. *
  14003. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all
  14004. * the flush policy configured before. This command basically disables the
  14005. * flush config set by the user.
  14006. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures
  14007. * the flush policy to be immediate. All pending packets for the peer/TID are
  14008. * flushed when this command/policy is received.
  14009. * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures
  14010. * the flush policy to the end of TWT SP. All pending packets for the peer/TID
  14011. * are flushed when the end of TWT SP is reached.
  14012. */
  14013. enum qca_wlan_vendor_flush_pending_policy {
  14014. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0,
  14015. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1,
  14016. QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2,
  14017. };
  14018. /**
  14019. * enum qca_wlan_vendor_attr_flush_pending - Attributes for
  14020. * flushing pending traffic in firmware.
  14021. *
  14022. * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address.
  14023. * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending
  14024. * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK,
  14025. * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to
  14026. * flush packets with access category. This is optional. See below.
  14027. * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets.
  14028. * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding
  14029. * bit to 1 to act upon the TID. This is optional. Either this attribute or
  14030. * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided,
  14031. * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided
  14032. * it is an error.
  14033. * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending
  14034. * packets corresponding to the peer/TID provided. It is a u32 value,
  14035. * represented by %enum qca_wlan_vendor_flush_pending_policy. This
  14036. * value is honored only when TID mask is provided. This is not honored when AC
  14037. * mask is provided.
  14038. */
  14039. enum qca_wlan_vendor_attr_flush_pending {
  14040. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0,
  14041. QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1,
  14042. QCA_WLAN_VENDOR_ATTR_AC = 2,
  14043. QCA_WLAN_VENDOR_ATTR_TID_MASK = 3,
  14044. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4,
  14045. /* keep last */
  14046. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST,
  14047. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX =
  14048. QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1,
  14049. };
  14050. /**
  14051. * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys
  14052. * for) or drop existing PASN security association for the listed the
  14053. * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver
  14054. * to userspace.
  14055. *
  14056. * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer
  14057. * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR.
  14058. * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from
  14059. * the driver to userspace to inform that the existing PASN keys of the
  14060. * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are
  14061. * not valid anymore.
  14062. */
  14063. enum qca_wlan_vendor_pasn_action {
  14064. QCA_WLAN_VENDOR_PASN_ACTION_AUTH,
  14065. QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT,
  14066. };
  14067. /**
  14068. * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in
  14069. * QCA_WLAN_VENDOR_ATTR_PASN_PEERS.
  14070. *
  14071. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the
  14072. * event from the driver to userspace and represents the local MAC address
  14073. * to be used for PASN handshake. When this attribute is present, userspace
  14074. * shall use the source address specified in this attribute by the driver
  14075. * for PASN handshake with peer device.
  14076. * This attribute is required in a command response from userspace to the
  14077. * driver and represents the MAC address that was used in PASN handshake
  14078. * with the peer device.
  14079. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the
  14080. * peer device to which PASN handshake is requested in an event from the
  14081. * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  14082. * QCA_WLAN_VENDOR_PASN_ACTION_AUTH.
  14083. * Indicates the MAC address of the peer device for which the keys are to
  14084. * be invalidated in an event from the driver to userspace when
  14085. * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to
  14086. * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT.
  14087. * Indicates the MAC address of the peer device for which the status is
  14088. * being sent in a status report from userspace to the driver.
  14089. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used
  14090. * in the event from the driver to userspace. When set, userspace is
  14091. * required to derive LTF key seed from KDK and set it to the driver.
  14092. * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This
  14093. * attribute is used in the command response from userspace to the driver.
  14094. * If present, it indicates the successful PASN handshake with the peer. If
  14095. * this flag is not present, it indicates that the PASN handshake with the
  14096. * peer device failed.
  14097. */
  14098. enum qca_wlan_vendor_attr_pasn_peer {
  14099. QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0,
  14100. QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1,
  14101. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2,
  14102. QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3,
  14103. QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4,
  14104. /* keep last */
  14105. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST,
  14106. QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX =
  14107. QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1,
  14108. };
  14109. /**
  14110. * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the
  14111. * QCA_NL80211_VENDOR_SUBCMD_PASN command.
  14112. *
  14113. * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are
  14114. * defined in enum qca_wlan_vendor_pasn_action and used only in an event
  14115. * from the driver to userspace.
  14116. * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer
  14117. * details for each peer and used in both an event and a command response.
  14118. * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are
  14119. * defined in enum qca_wlan_vendor_attr_pasn_peer.
  14120. */
  14121. enum qca_wlan_vendor_attr_pasn {
  14122. QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0,
  14123. QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1,
  14124. QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2,
  14125. /* keep last */
  14126. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST,
  14127. QCA_WLAN_VENDOR_ATTR_PASN_MAX =
  14128. QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1,
  14129. };
  14130. /**
  14131. * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete
  14132. * the ranging security context derived from PASN for each peer. Used in
  14133. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION.
  14134. *
  14135. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging
  14136. * context for the peer.
  14137. * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging
  14138. * context for the peer.
  14139. */
  14140. enum qca_wlan_vendor_secure_ranging_ctx_action {
  14141. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD,
  14142. QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE,
  14143. };
  14144. /**
  14145. * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type
  14146. * used for deriving PASN keys to the driver. Used in
  14147. * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE
  14148. * @QCA_WLAN_VENDOR_SHA_256: SHA-256
  14149. * @QCA_WLAN_VENDOR_SHA_384: SHA-384
  14150. */
  14151. enum qca_wlan_vendor_sha_type {
  14152. QCA_WLAN_VENDOR_SHA_256,
  14153. QCA_WLAN_VENDOR_SHA_384,
  14154. };
  14155. /**
  14156. * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used
  14157. * to set security context for the PASN peer from userspace to the driver.
  14158. * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT.
  14159. *
  14160. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible
  14161. * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action
  14162. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that
  14163. * was used during the PASN handshake.
  14164. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of
  14165. * the peer device for which secure ranging context is being configured.
  14166. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the
  14167. * hash algorithm to be used, possible values are defined in enum
  14168. * qca_wlan_vendor_sha_type.
  14169. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds
  14170. * the temporal key generated from the PASN handshake. The length of this
  14171. * attribute is dependent on the value of
  14172. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER.
  14173. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the
  14174. * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites)
  14175. * (e.g., 0x000FAC04).
  14176. * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length
  14177. * attribute, holds the LTF keyseed derived from KDK of PASN handshake.
  14178. * The length of this attribute is dependent on the value of
  14179. * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE.
  14180. *
  14181. */
  14182. enum qca_wlan_vendor_attr_secure_ranging_ctx {
  14183. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0,
  14184. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1,
  14185. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2,
  14186. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3,
  14187. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4,
  14188. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5,
  14189. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6,
  14190. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7,
  14191. /* keep last */
  14192. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST,
  14193. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX =
  14194. QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1,
  14195. };
  14196. /**
  14197. * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used
  14198. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER
  14199. * nested attribute. The packets that match a filter will be replied with
  14200. * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY.
  14201. *
  14202. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4:
  14203. * u32 attribute. Destination IPv4 address in network byte order, the
  14204. * IPv4 packets with different address will be filtered out.
  14205. * This attribute is optional.
  14206. *
  14207. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC:
  14208. * Flag attribute. If it's present, indicates that
  14209. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast
  14210. * address; while if not, indicates that the address is a unicast/multicast
  14211. * address.
  14212. * This attribute is optional.
  14213. *
  14214. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6:
  14215. * NLA_BINARY attribute, length is 16 bytes.
  14216. * Destination IPv6 address in network byte order, the IPv6 packets
  14217. * with different destination address will be filtered out.
  14218. * This attribute is optional.
  14219. *
  14220. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and
  14221. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured.
  14222. * Packets on both IPv4 and IPv6 will be processed if both are configured.
  14223. *
  14224. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT:
  14225. * u16 attribute. Destination UDP port, the packets with different destination
  14226. * UDP port will be filtered out.
  14227. * This attribute is mandatory.
  14228. *
  14229. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET:
  14230. * u32 attribute. Represents the offset (in UDP payload) of the data
  14231. * to be matched.
  14232. * This attribute is mandatory.
  14233. *
  14234. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA:
  14235. * NLA_BINARY attribute, the maximum allowed size is 16 bytes.
  14236. * Binary data that is compared bit-by-bit against the data (specified
  14237. * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP
  14238. * payload, the packets don't match will be filtered out.
  14239. * This attribute is mandatory.
  14240. */
  14241. enum qca_wlan_vendor_attr_coap_offload_filter {
  14242. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0,
  14243. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1,
  14244. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2,
  14245. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3,
  14246. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4,
  14247. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5,
  14248. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6,
  14249. /* keep last */
  14250. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST,
  14251. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX =
  14252. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1,
  14253. };
  14254. /**
  14255. * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used
  14256. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute.
  14257. *
  14258. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4:
  14259. * u32 attribute. Source address (in network byte order) for replying
  14260. * the matching broadcast/multicast IPv4 packets.
  14261. * This attribute is optional.
  14262. *
  14263. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6:
  14264. * NLA_BINARY attribute, length is 16 bytes.
  14265. * Source address (in network byte order) for replying the matching
  14266. * multicast IPv6 packets.
  14267. * This attribute is optional.
  14268. *
  14269. * For broadcast/multicast offload reply, one of
  14270. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and
  14271. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be
  14272. * configured according to version of the IP address(es) configured in
  14273. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER;
  14274. * while for unicast case, firmware will take the destination IP address
  14275. * in the received matching packet as the source address for replying.
  14276. *
  14277. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER:
  14278. * Nested attribute. Filter for the received UDP packets, only the matching
  14279. * packets will be replied and cached.
  14280. * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported
  14281. * attributes.
  14282. * This attribute is mandatory.
  14283. *
  14284. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG:
  14285. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14286. * CoAP message (UDP payload) to be sent upon receiving matching packets.
  14287. * Firmware is responsible for adding any necessary protocol headers.
  14288. * This attribute is mandatory.
  14289. *
  14290. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME:
  14291. * u32 attribute. Expiration time in milliseconds of the cached CoAP messages.
  14292. * A cached message will be dropped by firmware if it's expired.
  14293. * This attribute is optional. A default value of 40000 will be used in the
  14294. * absence of it.
  14295. */
  14296. enum qca_wlan_vendor_attr_coap_offload_reply {
  14297. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0,
  14298. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1,
  14299. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2,
  14300. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3,
  14301. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4,
  14302. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5,
  14303. /* keep last */
  14304. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST,
  14305. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX =
  14306. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1,
  14307. };
  14308. /**
  14309. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for
  14310. * CoAP message (UDP) transmitting on IPv4.
  14311. *
  14312. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR:
  14313. * u32 attribute. Source address (in network byte order) for transmitting
  14314. * packets on IPv4.
  14315. * This attribute is mandatory.
  14316. *
  14317. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT:
  14318. * u16 attribute. Source UDP port.
  14319. * This attribute is optional, a random port is taken if it's not present.
  14320. *
  14321. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR:
  14322. * u32 attribute. Destination IPv4 address (in network byte order).
  14323. * This attribute is mandatory.
  14324. *
  14325. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC:
  14326. * Flag attribute. If it's present, indicates that
  14327. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast
  14328. * address; while if not, indicates that the address is unicast/multicast
  14329. * address.
  14330. * This attribute is optional.
  14331. *
  14332. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT:
  14333. * u16 attribute. Destination UDP port.
  14334. * This attribute is mandatory.
  14335. */
  14336. enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 {
  14337. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0,
  14338. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1,
  14339. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2,
  14340. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3,
  14341. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4,
  14342. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5,
  14343. /* keep last */
  14344. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST,
  14345. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX =
  14346. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1,
  14347. };
  14348. /**
  14349. * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for
  14350. * CoAP message (UDP) transmitting on IPv6.
  14351. *
  14352. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR:
  14353. * NLA_BINARY attribute, length is 16 bytes.
  14354. * Source address (in network byte order) for transmitting packets on IPv6.
  14355. * This attribute is mandatory.
  14356. *
  14357. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT:
  14358. * u16 attribute. Source UDP port.
  14359. * This attribute is optional, a random port is taken if it's not present.
  14360. *
  14361. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR:
  14362. * NLA_BINARY attribute, length is 16 bytes.
  14363. * Destination IPv6 address (in network byte order).
  14364. * This attribute is mandatory.
  14365. *
  14366. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT:
  14367. * u16 attribute. Destination UDP port.
  14368. * This attribute is mandatory.
  14369. */
  14370. enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 {
  14371. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0,
  14372. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1,
  14373. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2,
  14374. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3,
  14375. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4,
  14376. /* keep last */
  14377. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST,
  14378. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX =
  14379. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1,
  14380. };
  14381. /**
  14382. * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used
  14383. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute.
  14384. *
  14385. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4:
  14386. * Nested attribute. The IPv4 source/destination address/port for offload
  14387. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list
  14388. * of supported attributes.
  14389. * This attribute is optional.
  14390. *
  14391. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6:
  14392. * Nested attribute. The IPv6 source/destination address/port for offload
  14393. * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list
  14394. * of supported attributes.
  14395. * This attribute is optional.
  14396. *
  14397. * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and
  14398. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured.
  14399. * Firmware will transmit the packets on both IPv4 and IPv6 if both are
  14400. * configured.
  14401. *
  14402. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD:
  14403. * u32 attribute. Period in milliseconds for the periodic transmitting.
  14404. * This attribute is mandatory.
  14405. *
  14406. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG:
  14407. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14408. * CoAP message (UDP payload) to be periodically transmitted. Firmware
  14409. * is responsible for adding any necessary protocol headers.
  14410. * This attribute is mandatory.
  14411. */
  14412. enum qca_wlan_vendor_attr_coap_offload_periodic_tx {
  14413. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0,
  14414. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1,
  14415. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2,
  14416. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3,
  14417. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4,
  14418. /* keep last */
  14419. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST,
  14420. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX =
  14421. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1,
  14422. };
  14423. /**
  14424. * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used
  14425. * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute.
  14426. *
  14427. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS:
  14428. * u64 attribute. Received time (since system booted in microseconds) of
  14429. * the cached CoAP message.
  14430. * This attribute is mandatory.
  14431. *
  14432. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4:
  14433. * u32 attribute. Source IPv4 address (in network byte order) of the cached
  14434. * CoAP message.
  14435. * This attribute is optional.
  14436. *
  14437. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6:
  14438. * NLA_BINARY attribute, length is 16 bytes.
  14439. * Source IPv6 address (in network byte order) of the cached CoAP message.
  14440. * This attribute is optional.
  14441. *
  14442. * At most and at least one of
  14443. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and
  14444. * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for
  14445. * an entry.
  14446. *
  14447. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG:
  14448. * NLA_BINARY attribute, the maximum allowed size is 1152 bytes.
  14449. * The cached CoAP message (UDP payload). If the actual message size is
  14450. * greater than the maximum size, it will be truncated and leaving only
  14451. * the first 1152 bytes.
  14452. * This attribute is mandatory.
  14453. */
  14454. enum qca_wlan_vendor_attr_coap_offload_cache_info {
  14455. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0,
  14456. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1,
  14457. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2,
  14458. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3,
  14459. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4,
  14460. /* keep last */
  14461. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST,
  14462. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX =
  14463. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1,
  14464. };
  14465. /**
  14466. * enum qca_wlan_vendor_coap_offload_action - Actions for
  14467. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14468. *
  14469. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE:
  14470. * Enable CoAP offload reply.
  14471. * If it's enabled, firmware will start offload processing on each suspend
  14472. * and stop on each resume.
  14473. *
  14474. * Offload reply on match works as follows:
  14475. * Reply the packets that match the filter with the given CoAP
  14476. * message (with necessary protocol headers), increase the CoAP message
  14477. * ID in the given CoAP message by one for the next use after each successful
  14478. * transmission, and try to store the information of the received packet,
  14479. * including the received time, source IP address, and CoAP message (UDP
  14480. * payload).
  14481. *
  14482. * Firmware has a limit to the maximum stored entries, it takes the source IP
  14483. * address as the key of an entry, and keeps at most one entry for each key.
  14484. * A packet won't be stored if no entry for the same key is present and the
  14485. * total number of the existing unexpired entries reaches the maximum value.
  14486. *
  14487. * If any configured item is changed, user space should disable offload reply
  14488. * first and then issue a new enable request.
  14489. *
  14490. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE:
  14491. * Disable CoAP offload reply and return information of any cached CoAP
  14492. * messages.
  14493. *
  14494. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE:
  14495. * Enable CoAP offload periodic transmitting.
  14496. * If it's enabled, firmware will start offload periodic transmitting on
  14497. * each suspend and stop on each resume.
  14498. *
  14499. * Offload periodic transmitting works as follows:
  14500. * Send the given CoAP message (with necessary protocol headers) with the given
  14501. * source/destination IP address/UDP port periodically based on the given
  14502. * period and increase the CoAP message ID in the given CoAP message by one
  14503. * for the next use after each successful transmission.
  14504. *
  14505. * If any configured item is changed, user space should disable offload
  14506. * periodic transmitting first and then issue a new enable request.
  14507. *
  14508. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE:
  14509. * Disable CoAP offload periodic transmitting.
  14510. *
  14511. * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET:
  14512. * Get information of the CoAP messages cached during offload reply
  14513. * processing. The cache is cleared after retrieval.
  14514. */
  14515. enum qca_wlan_vendor_coap_offload_action {
  14516. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0,
  14517. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1,
  14518. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2,
  14519. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3,
  14520. QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4,
  14521. };
  14522. /**
  14523. * enum qca_wlan_vendor_attr_coap_offload - Used by the
  14524. * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD.
  14525. * This is used to set parameters for CoAP offload processing, or get
  14526. * cached CoAP messages from firmware.
  14527. *
  14528. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION:
  14529. * u32 attribute. Action to take in this vendor command.
  14530. * See enum qca_wlan_vendor_coap_offload_action for supported actions.
  14531. * This attribute is mandatory.
  14532. *
  14533. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID:
  14534. * u32 attribute. Represents the Request ID for the CoAP offload
  14535. * configuration, which can help to identify the user entity starting
  14536. * the CoAP offload processing and accordingly stop the respective
  14537. * ones/get the cached CoAP messages with the matching ID.
  14538. * This attribute is mandatory.
  14539. *
  14540. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY:
  14541. * Nested attribute. Parameters for offload reply.
  14542. * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of
  14543. * supported attributes.
  14544. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14545. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored
  14546. * otherwise.
  14547. *
  14548. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX:
  14549. * Nested attribute. Parameters for offload periodic transmitting.
  14550. * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of
  14551. * supported attributes.
  14552. * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is
  14553. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored
  14554. * otherwise.
  14555. *
  14556. * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES:
  14557. * Array of nested attributes. Information of the cached CoAP messages,
  14558. * where each entry is taken from
  14559. * enum qca_wlan_vendor_attr_coap_offload_cache_info.
  14560. * This attribute is used for reporting the cached CoAP messages
  14561. * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION
  14562. * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or
  14563. * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no
  14564. * cached item if this attribute is not present.
  14565. */
  14566. enum qca_wlan_vendor_attr_coap_offload {
  14567. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0,
  14568. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1,
  14569. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2,
  14570. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3,
  14571. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4,
  14572. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5,
  14573. /* keep last */
  14574. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST,
  14575. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX =
  14576. QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1,
  14577. };
  14578. /**
  14579. * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command
  14580. * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification
  14581. * Service (SCS) rule.
  14582. *
  14583. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute.
  14584. * Represents the unique id of SCS rule to be configured.
  14585. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute.
  14586. * Represents the request type: add, remove, or change.
  14587. * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request
  14588. * Type definitions).
  14589. *
  14590. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute
  14591. * in case of add/change request type.
  14592. * Represents the output traffic identifier (TID) to be assigned to the flow
  14593. * matching the rule.
  14594. *
  14595. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8
  14596. * attribute in case of add/change request type.
  14597. * Represents type of classifier parameters present in SCS rule.
  14598. * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type).
  14599. * Only classifier types 4 and 10 are supported for SCS.
  14600. *
  14601. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute
  14602. * in case of add/change request type when classifier type is TCLAS4.
  14603. * Represents the IP version (4: IPv4, 6: IPv6) of the rule.
  14604. *
  14605. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional
  14606. * attribute in case of add/change request type when classifier type is TCLAS4
  14607. * and version attribute is IPv4.
  14608. * Represents the source IPv4 address in the rule which is to be compared
  14609. * against the source IP address in the IPv4 header.
  14610. *
  14611. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional
  14612. * attribute in case of add/change request type when classifier type is TCLAS4
  14613. * and version attribute is IPv4.
  14614. * Represents the destination IPv4 address in the rule which is to be compared
  14615. * against the destination IP address in the IPv4 header.
  14616. *
  14617. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional
  14618. * attribute in case of add/change request type when classifier type is TCLAS4
  14619. * and version attribute is IPv6.
  14620. * Represents the source IPv6 address in the rule which is to be compared
  14621. * against the source IP address in the IPv6 header.
  14622. *
  14623. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional
  14624. * attribute in case of add/change request type when classifier type is TCLAS4
  14625. * and version attribute is IPv6.
  14626. * Represents the destination IPv6 address in the rule which is to be compared
  14627. * against the destination IP address in the IPv6 header.
  14628. *
  14629. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute
  14630. * in case of add/change request type when classifier type is TCLAS4.
  14631. * Represents the source port number in the rule which is to be compared against
  14632. * the source port number in the protocol header.
  14633. *
  14634. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute
  14635. * in case of add/change request type when classifier type is TCLAS4.
  14636. * Represents the destination port number in the rule which is to be compared
  14637. * against the destination port number in the protocol header.
  14638. *
  14639. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute
  14640. * in case of add/change request type when classifier type is TCLAS4.
  14641. * Represents the DSCP value in the rule which is to be compared against the
  14642. * DSCP field present in the IP header.
  14643. *
  14644. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8
  14645. * attribute in case of add/change request type when classifier type is TCLAS4.
  14646. * Represents the protocol/next header in the rule which is to be compared
  14647. * against the protocol/next header field present in the IPv4/IPv6 header.
  14648. *
  14649. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional
  14650. * attribute of size 3 bytes present in case of add/change request type
  14651. * when classifier type is TCLAS4 and version is IPv6.
  14652. * Represents the flow label value in the rule which is to be compared against
  14653. * the flow label field present in the IPv6 header.
  14654. *
  14655. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8
  14656. * attribute in case of add/change request type when classifier type is TCLAS10.
  14657. * Represents the protocol instance number in the rule.
  14658. *
  14659. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8
  14660. * attribute in case of add/change request type when classifier type is TCLAS10.
  14661. * Represents the protocol/next header in the rule which is to be compared
  14662. * against the protocol/next header field present in the IPv4/IPv6 header.
  14663. *
  14664. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional
  14665. * attribute of variable length present when request type is add/change and
  14666. * classifier type is TCLAS10.
  14667. * Represents the mask to be used for masking the header contents of the header
  14668. * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER
  14669. * attribute.
  14670. *
  14671. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional
  14672. * attribute of variable length present when request type is add/change and
  14673. * classifier type is TCLAS10.
  14674. * Represents the value to be compared against after masking the header contents
  14675. * of the header specified by the
  14676. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the
  14677. * filter mask specified by the
  14678. * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute.
  14679. *
  14680. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16
  14681. * attribute.
  14682. * Represents the service class id of the configured SCS rule.
  14683. *
  14684. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes
  14685. * MAC address.
  14686. * Represents the destination MAC address in the rule.
  14687. *
  14688. * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute
  14689. * Represents the netdevice interface index in the rule.
  14690. */
  14691. enum qca_wlan_vendor_attr_scs_rule_config {
  14692. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0,
  14693. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1,
  14694. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2,
  14695. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3,
  14696. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4,
  14697. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5,
  14698. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6,
  14699. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7,
  14700. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8,
  14701. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9,
  14702. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10,
  14703. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11,
  14704. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12,
  14705. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13,
  14706. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14,
  14707. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15,
  14708. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16,
  14709. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17,
  14710. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18,
  14711. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19,
  14712. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20,
  14713. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21,
  14714. /* Keep last */
  14715. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST,
  14716. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX =
  14717. QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1,
  14718. };
  14719. /**
  14720. * enum qca_wlan_vendor_sar_version - This describes the current SAR version
  14721. * used in the firmware.
  14722. *
  14723. * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR.
  14724. * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits.
  14725. *
  14726. * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2,
  14727. * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for
  14728. * each CTL group. So user can select up to 6 SAR indexes from the current CTL
  14729. * groups.
  14730. *
  14731. * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3,
  14732. * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each
  14733. * CTL group but user can choose up to 3 SAR set index only, as the top half
  14734. * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of
  14735. * the SAR index (3 to 5) is used for DBS mode.
  14736. */
  14737. enum qca_wlan_vendor_sar_version {
  14738. QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0,
  14739. QCA_WLAN_VENDOR_SAR_VERSION_1 = 1,
  14740. QCA_WLAN_VENDOR_SAR_VERSION_2 = 2,
  14741. QCA_WLAN_VENDOR_SAR_VERSION_3 = 3,
  14742. };
  14743. /**
  14744. * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether
  14745. * CTL grouping is enabled or disabled in the firmware.
  14746. *
  14747. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping
  14748. * is enabled in firmware.
  14749. *
  14750. * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping
  14751. * is disabled in firmware.
  14752. *
  14753. */
  14754. enum qca_wlan_vendor_sar_ctl_group_state {
  14755. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0,
  14756. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1,
  14757. QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2,
  14758. };
  14759. /**
  14760. * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command
  14761. * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities
  14762. * supported by the firmware.
  14763. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION:
  14764. * u32 attribute. This field describes current SAR version supported by the
  14765. * firmware.
  14766. * See enum qca_wlan_vendor_sar_version for more information.
  14767. * This attribute is mandatory.
  14768. * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE:
  14769. * u32 attribute. This field describes whether CTL groups are enabled
  14770. * or disabled in the firmware.
  14771. * See enum qca_wlan_vendor_sar_ctl_group_state for more information.
  14772. * This attribute is optional.
  14773. */
  14774. enum qca_wlan_vendor_attr_sar_capability {
  14775. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0,
  14776. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1,
  14777. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2,
  14778. /* Keep last */
  14779. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST,
  14780. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX =
  14781. QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1,
  14782. };
  14783. /**
  14784. * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics.
  14785. * These statistics are sent from the driver in a response when userspace
  14786. * queries to get the statistics using the operation
  14787. * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset
  14788. * by the driver when the SR feature is enabled, when the driver receives
  14789. * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected.
  14790. *
  14791. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14792. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14793. * This represents the number of non-SRG TX opportunities.
  14794. *
  14795. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14796. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14797. * This represents the number of non-SRG PPDUs tried to transmit.
  14798. *
  14799. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14800. * Mandatory only when non-SRG is supported by the AP and optional otherwise.
  14801. * This represents the number of non-SRG PPDUs successfully transmitted.
  14802. *
  14803. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute.
  14804. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14805. * This represents the number of SRG TX opportunities.
  14806. *
  14807. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute.
  14808. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14809. * This represents the number of SRG PPDUs tried to transmit.
  14810. *
  14811. * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute.
  14812. * Mandatory only when SRG is supported by the AP and optional otherwise.
  14813. * This represents the number of SRG PPDUs successfully transmitted.
  14814. */
  14815. enum qca_wlan_vendor_attr_sr_stats {
  14816. QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0,
  14817. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1,
  14818. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2,
  14819. QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3,
  14820. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4,
  14821. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5,
  14822. QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6,
  14823. /* Keep last */
  14824. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST,
  14825. QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX =
  14826. QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1,
  14827. };
  14828. /**
  14829. * enum qca_wlan_sr_reason_code - Defines the different reason codes used in
  14830. * Spatial Reuse feature.
  14831. *
  14832. * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to
  14833. * roaming to an AP that doesn't support/supports SR feature, respectively.
  14834. *
  14835. * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due
  14836. * to change in concurrent interfaces that are supported by the driver.
  14837. */
  14838. enum qca_wlan_sr_reason_code {
  14839. QCA_WLAN_SR_REASON_CODE_ROAMING = 0,
  14840. QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1,
  14841. };
  14842. /**
  14843. * enum qca_wlan_sr_operation - Defines the different types of SR operations.
  14844. * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION.
  14845. *
  14846. * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the
  14847. * driver to enable the Spatial Reuse feature. Attributes
  14848. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14849. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this
  14850. * operation.
  14851. *
  14852. * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the
  14853. * driver to disable the Spatial Reuse feature.
  14854. *
  14855. * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an
  14856. * asynchronous event sent to userspace when the SR feature is disabled.
  14857. * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE
  14858. * and sent along with the asynchronous event.
  14859. *
  14860. * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an
  14861. * asynchronous event when the SR feature is enabled again after the SR feature
  14862. * was suspended by the driver earlier. The enable reason is
  14863. * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are
  14864. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and
  14865. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD.
  14866. *
  14867. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is
  14868. * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14869. * reuse transmissions. Userspace sends this operation to the driver.
  14870. * The driver/firmware upon receiving this operation shall prohibit PSR-based
  14871. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14872. *
  14873. * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is
  14874. * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial
  14875. * reuse transmissions. Userspace sends this operation to the driver.
  14876. * The driver/firmware upon receiving this operation shall allow PSR-based
  14877. * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions.
  14878. *
  14879. * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the
  14880. * driver to get the SR statistics and the driver sends a synchronous response
  14881. * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the
  14882. * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS.
  14883. *
  14884. * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the
  14885. * driver to clear the SR statistics and upon receiving this operation
  14886. * the driver/firmware shall clear the SR statistics.
  14887. *
  14888. * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the
  14889. * driver to get the SR parameters and the driver sends the synchronous response
  14890. * with the following required attributes:
  14891. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  14892. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  14893. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  14894. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  14895. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  14896. *
  14897. * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an
  14898. * asynchronous event to userspace to update any changes in SR parameters.
  14899. * The following attributes are used with this operation:
  14900. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET,
  14901. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET,
  14902. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET,
  14903. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE,
  14904. * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW.
  14905. */
  14906. enum qca_wlan_sr_operation {
  14907. QCA_WLAN_SR_OPERATION_SR_ENABLE = 0,
  14908. QCA_WLAN_SR_OPERATION_SR_DISABLE = 1,
  14909. QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2,
  14910. QCA_WLAN_SR_OPERATION_SR_RESUME = 3,
  14911. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4,
  14912. QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5,
  14913. QCA_WLAN_SR_OPERATION_GET_STATS = 6,
  14914. QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7,
  14915. QCA_WLAN_SR_OPERATION_GET_PARAMS = 8,
  14916. QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9,
  14917. };
  14918. /**
  14919. * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration
  14920. * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS.
  14921. *
  14922. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute.
  14923. * This attribute is optionally set in response to
  14924. * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to
  14925. * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std
  14926. * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more
  14927. * about HESIGA_Spatial_reuse_value15_allowed.
  14928. *
  14929. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute.
  14930. * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS
  14931. * operation. This indicates whether non-SRG OBSS PD SR transmissions are
  14932. * allowed or not at non-AP STAs that are associated with the AP. If present
  14933. * non-SRG OBSS PD SR transmissions are not allowed else are allowed.
  14934. *
  14935. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8
  14936. * attribute. This attribute is used in response to
  14937. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  14938. * Min Offset field which contains an unsigned integer that is added to -82 dBm
  14939. * to generate the value of the SRG OBSS PD Min parameter.
  14940. *
  14941. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  14942. * attribute. This attribute is used in response to
  14943. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD
  14944. * Max Offset field which contains an unsigned integer that is added to -82 dBm
  14945. * to generate the value of the SRG OBSS PD Max parameter.
  14946. *
  14947. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8
  14948. * attribute. This attribute is used in response to
  14949. * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS
  14950. * PD Max Offset field which contains an unsigned integer that is added to -82
  14951. * dBm to generate the value of the Non-SRG OBSS PD Max parameter.
  14952. *
  14953. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  14954. * Userspace optionally sends this attribute with
  14955. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  14956. * preferred SRG PD threshold. The driver shall send this attribute to
  14957. * userspace in SR resume event to indicate the PD threshold being used for SR.
  14958. * When there is change in SRG PD threshold (for example, due to roaming, etc.)
  14959. * the driver shall indicate the userspace the newly configured SRG PD threshold
  14960. * using an asynchronous event.
  14961. *
  14962. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm).
  14963. * Userspace optionally sends this attribute with
  14964. * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the
  14965. * preferred non-SRG PD threshold. The driver shall send this attribute to
  14966. * userspace in SR resume event to indicate the PD threshold being used for SR.
  14967. * When there is change in non-SRG PD threshold (for example, due to roaming,
  14968. * etc.) the driver shall indicate the userspace the newly configured non-SRG PD
  14969. * threshold using an asynchronous event.
  14970. *
  14971. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible
  14972. * values are defined in enum qca_wlan_sr_reason_code. This
  14973. * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and
  14974. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations.
  14975. */
  14976. enum qca_wlan_vendor_attr_sr_params {
  14977. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0,
  14978. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1,
  14979. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2,
  14980. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3,
  14981. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4,
  14982. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5,
  14983. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6,
  14984. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7,
  14985. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8,
  14986. /* keep last */
  14987. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST,
  14988. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX =
  14989. QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1,
  14990. };
  14991. /**
  14992. * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor
  14993. * command QCA_NL80211_VENDOR_SUBCMD_SR.
  14994. *
  14995. * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests
  14996. * from userspace to the driver. Possible values are defined in enum
  14997. * qca_wlan_sr_operation.
  14998. *
  14999. * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR
  15000. * configuration parameters. The possible attributes inside this attribute are
  15001. * defined in enum qca_wlan_vendor_attr_sr_params.
  15002. * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  15003. * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and
  15004. * also in response from the driver to userspace when the response is sent for
  15005. * %QCA_WLAN_SR_OPERATION_GET_PARAMS.
  15006. * The driver uses this attribute in asynchronous events in which the operation
  15007. * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME,
  15008. * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS.
  15009. *
  15010. * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR
  15011. * statistics. These attributes used inside this are defined in enum
  15012. * qca_wlan_vendor_attr_sr_stats.
  15013. * This attribute is used in response from the driver to a command in which
  15014. * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to
  15015. * %QCA_WLAN_SR_OPERATION_GET_STATS.
  15016. */
  15017. enum qca_wlan_vendor_attr_sr {
  15018. QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0,
  15019. QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1,
  15020. QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2,
  15021. QCA_WLAN_VENDOR_ATTR_SR_STATS = 3,
  15022. /* Keep last */
  15023. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST,
  15024. QCA_WLAN_VENDOR_ATTR_SR_MAX =
  15025. QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1,
  15026. };
  15027. /**
  15028. * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes
  15029. * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand.
  15030. *
  15031. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address
  15032. * used by the peer on the link that corresponds to the link used for sending
  15033. * the event notification.
  15034. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte
  15035. * MLD MAC address of the peer.
  15036. * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute,
  15037. * used to pass ifindex of the primary netdev.
  15038. */
  15039. enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event {
  15040. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0,
  15041. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1,
  15042. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2,
  15043. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3,
  15044. /* keep last */
  15045. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST,
  15046. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX =
  15047. QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1,
  15048. };
  15049. /**
  15050. * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with
  15051. * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and
  15052. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range
  15053. * and PSD information.
  15054. *
  15055. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is
  15056. * u32. This attribute is used to indicate the start of the queried frequency
  15057. * range in MHz.
  15058. *
  15059. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32.
  15060. * This attribute is used to indicate the end of the queried frequency range
  15061. * in MHz.
  15062. *
  15063. * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32.
  15064. * This attribute will contain the PSD information for a single range as
  15065. * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and
  15066. * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes.
  15067. *
  15068. * The PSD power info (dBm/MHz) from user space should be multiplied
  15069. * by a factor of 100 when sending to the driver to preserve granularity
  15070. * up to 2 decimal places.
  15071. * Example:
  15072. * PSD power value: 10.21 dBm/MHz
  15073. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021.
  15074. *
  15075. * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only
  15076. * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with
  15077. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when
  15078. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15079. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  15080. *
  15081. * The following set of attributes will be used to exchange frequency and
  15082. * corresponding PSD information for AFC between the user space and the driver.
  15083. */
  15084. enum qca_wlan_vendor_attr_afc_freq_psd_info {
  15085. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0,
  15086. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1,
  15087. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2,
  15088. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3,
  15089. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST,
  15090. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX =
  15091. QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1,
  15092. };
  15093. /**
  15094. * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with
  15095. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the
  15096. * channel list and corresponding EIRP information.
  15097. *
  15098. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8.
  15099. * This attribute is used to indicate queried channel from
  15100. * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO.
  15101. *
  15102. * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32.
  15103. * This attribute is used to configure the EIRP power info corresponding
  15104. * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM.
  15105. * The EIRP power info(dBm) from user space should be multiplied
  15106. * by a factor of 100 when sending to Driver to preserve granularity up to
  15107. * 2 decimal places.
  15108. * Example:
  15109. * EIRP power value: 34.23 dBm
  15110. * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423.
  15111. *
  15112. * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with
  15113. * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15114. * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when
  15115. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15116. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE:
  15117. *
  15118. * The following set of attributes will be used to exchange Channel and
  15119. * corresponding EIRP information for AFC between the user space and Driver.
  15120. */
  15121. enum qca_wlan_vendor_attr_afc_chan_eirp_info {
  15122. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0,
  15123. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1,
  15124. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2,
  15125. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST,
  15126. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX =
  15127. QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1,
  15128. };
  15129. /**
  15130. * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested
  15131. * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15132. * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class,
  15133. * channel, and EIRP related information.
  15134. *
  15135. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8.
  15136. * This attribute is used to indicate the operating class, as listed under
  15137. * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list.
  15138. *
  15139. * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes
  15140. * for updating the channel number and EIRP power information.
  15141. * It uses the attributes defined in
  15142. * enum qca_wlan_vendor_attr_afc_chan_eirp_info.
  15143. *
  15144. * Operating class information packing format for
  15145. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15146. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15147. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY.
  15148. *
  15149. * m - Total number of operating classes.
  15150. * n, j - Number of queried channels for the corresponding operating class.
  15151. *
  15152. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15153. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15154. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15155. * .....
  15156. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15157. * ....
  15158. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15159. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15160. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15161. * ....
  15162. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15163. *
  15164. * Operating class information packing format for
  15165. * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and
  15166. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when
  15167. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15168. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE.
  15169. *
  15170. * m - Total number of operating classes.
  15171. * n, j - Number of channels for the corresponding operating class.
  15172. *
  15173. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0]
  15174. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0]
  15175. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15176. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15177. * .....
  15178. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1]
  15179. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1]
  15180. * ....
  15181. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m]
  15182. * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m]
  15183. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0]
  15184. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0]
  15185. * ....
  15186. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1]
  15187. * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1]
  15188. *
  15189. * The following set of attributes will be used to exchange operating class
  15190. * information for AFC between the user space and the driver.
  15191. */
  15192. enum qca_wlan_vendor_attr_afc_opclass_info {
  15193. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0,
  15194. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1,
  15195. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2,
  15196. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST,
  15197. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX =
  15198. QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1,
  15199. };
  15200. /**
  15201. * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type.
  15202. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute.
  15203. *
  15204. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the
  15205. * driver to userspace in order to query the new AFC power values.
  15206. *
  15207. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update
  15208. * complete event will be sent from the driver to userspace to indicate
  15209. * processing of the AFC response.
  15210. *
  15211. * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event
  15212. * will be sent from the driver to userspace to indicate last received
  15213. * AFC response data has been cleared on the AP due to invalid data
  15214. * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE.
  15215. *
  15216. * The following enum defines the different event types that will be
  15217. * used by the driver to help trigger corresponding AFC functionality in user
  15218. * space.
  15219. */
  15220. enum qca_wlan_vendor_afc_event_type {
  15221. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0,
  15222. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1,
  15223. QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2,
  15224. };
  15225. /**
  15226. * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP
  15227. * deployment type.
  15228. * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute.
  15229. *
  15230. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment.
  15231. *
  15232. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment.
  15233. *
  15234. * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment.
  15235. *
  15236. * The following enum defines different deployment modes that the AP might
  15237. * come up in. This information will be essential to retrieve deployment-type
  15238. * specific SP power values for AFC operation.
  15239. */
  15240. enum qca_wlan_vendor_afc_ap_deployment_type {
  15241. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0,
  15242. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1,
  15243. QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2,
  15244. };
  15245. /**
  15246. * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to
  15247. * indicate AFC response status.
  15248. * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute.
  15249. *
  15250. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success
  15251. *
  15252. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication
  15253. * command was not received within the expected time of the AFC expiry event
  15254. * being triggered.
  15255. *
  15256. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data
  15257. * parsing error by the driver.
  15258. *
  15259. * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local
  15260. * error.
  15261. *
  15262. * The following enum defines the status codes that the driver will use to
  15263. * indicate whether the AFC data is valid or not.
  15264. */
  15265. enum qca_wlan_vendor_afc_evt_status_code {
  15266. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0,
  15267. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1,
  15268. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2,
  15269. QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3,
  15270. };
  15271. /**
  15272. * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with
  15273. * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will
  15274. * support sending only a single request to the user space at a time.
  15275. *
  15276. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute.
  15277. * Used with event to notify the type of AFC event received.
  15278. * Valid values are defined in enum qca_wlan_vendor_afc_event_type.
  15279. *
  15280. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when
  15281. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15282. * otherwise unused.
  15283. *
  15284. * This attribute is used to indicate the AP deployment type in the AFC request.
  15285. * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type.
  15286. *
  15287. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute.
  15288. * Unique request identifier generated by the AFC client for every
  15289. * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID.
  15290. * The user space application is responsible for ensuring no duplicate values
  15291. * are in-flight with the server, e.g., by delaying a request, should the same
  15292. * value be received from different radios in parallel.
  15293. *
  15294. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional.
  15295. * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15296. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused.
  15297. *
  15298. * This attribute indicates the AFC spec version information. This will
  15299. * indicate the AFC version AFC client must use to query the AFC data.
  15300. * Bits 15:0 - Minor version
  15301. * Bits 31:16 - Major version
  15302. *
  15303. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when
  15304. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY,
  15305. * otherwise unused.
  15306. * This attribute indicates the minimum desired power (in dBm) for
  15307. * the queried spectrum.
  15308. *
  15309. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when
  15310. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15311. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15312. *
  15313. * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code.
  15314. * This attribute is used to indicate if there were any errors parsing the
  15315. * AFC response.
  15316. *
  15317. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required
  15318. * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15319. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15320. *
  15321. * This attribute indicates the AFC response code. The AFC response codes are
  15322. * in the following categories:
  15323. * -1: General Failure.
  15324. * 0: Success.
  15325. * 100 - 199: General errors related to protocol.
  15326. * 300 - 399: Error events specific to message exchange
  15327. * for the Available Spectrum Inquiry.
  15328. *
  15329. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when
  15330. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15331. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15332. *
  15333. * This attribute indicates the date until which the current response is
  15334. * valid for in UTC format.
  15335. * Date format: bits 7:0 - DD (Day 1-31)
  15336. * bits 15:8 - MM (Month 1-12)
  15337. * bits 31:16 - YYYY (Year)
  15338. *
  15339. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when
  15340. * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15341. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15342. *
  15343. * This attribute indicates the time until which the current response is
  15344. * valid for in UTC format.
  15345. * Time format: bits 7:0 - SS (Seconds 0-59)
  15346. * bits 15:8 - MM (Minutes 0-59)
  15347. * bits 23:16 - HH (Hours 0-23)
  15348. * bits 31:24 - Reserved
  15349. *
  15350. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes
  15351. * for updating the list of frequency ranges to be queried.
  15352. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15353. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15354. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15355. * It uses the attributes defined in
  15356. * enum qca_wlan_vendor_attr_afc_freq_psd_info.
  15357. *
  15358. * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes
  15359. * for updating the list of operating classes and corresponding channels to be
  15360. * queried.
  15361. * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is
  15362. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or
  15363. * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused.
  15364. * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info.
  15365. */
  15366. enum qca_wlan_vendor_attr_afc_event {
  15367. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0,
  15368. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1,
  15369. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2,
  15370. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3,
  15371. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4,
  15372. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5,
  15373. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6,
  15374. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7,
  15375. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8,
  15376. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9,
  15377. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10,
  15378. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11,
  15379. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST,
  15380. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX =
  15381. QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1,
  15382. };
  15383. /**
  15384. * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used
  15385. * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes
  15386. * will support sending only a single AFC response to the driver at a time.
  15387. *
  15388. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute.
  15389. * This attribute will be used to send a single Spectrum Inquiry response object
  15390. * from the 'availableSpectrumInquiryResponses' array object from the response
  15391. * JSON.
  15392. *
  15393. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute.
  15394. *
  15395. * This attribute indicates the period (in seconds) for which the response
  15396. * data received is valid for.
  15397. *
  15398. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute.
  15399. *
  15400. * This attribute indicates the request ID for which the corresponding
  15401. * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID.
  15402. *
  15403. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute.
  15404. *
  15405. * This attribute indicates the date until which the current response is
  15406. * valid for in UTC format.
  15407. * Date format: bits 7:0 - DD (Day 1-31)
  15408. * bits 15:8 - MM (Month 1-12)
  15409. * bits 31:16 - YYYY (Year)
  15410. *
  15411. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute.
  15412. *
  15413. * This attribute indicates the time until which the current response is
  15414. * valid for in UTC format.
  15415. * Time format: bits 7:0 - SS (Seconds 0-59)
  15416. * bits 15:8 - MM (Minutes 0-59)
  15417. * bits 23:16 - HH (Hours 0-23)
  15418. * bits 31:24 - Reserved
  15419. *
  15420. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute.
  15421. *
  15422. * This attribute indicates the AFC response code. The AFC response codes are
  15423. * in the following categories:
  15424. * -1: General Failure.
  15425. * 0: Success.
  15426. * 100 - 199: General errors related to protocol.
  15427. * 300 - 399: Error events specific to message exchange
  15428. * for the Available Spectrum Inquiry.
  15429. *
  15430. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes
  15431. * for PSD info of all the queried frequency ranges. It uses the attributes
  15432. * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute.
  15433. *
  15434. * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested
  15435. * attributes for EIRP info of all queried operating class/channels. It uses
  15436. * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and
  15437. * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute.
  15438. *
  15439. */
  15440. enum qca_wlan_vendor_attr_afc_response {
  15441. QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0,
  15442. QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1,
  15443. QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2,
  15444. QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3,
  15445. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4,
  15446. QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5,
  15447. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6,
  15448. QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7,
  15449. QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8,
  15450. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST,
  15451. QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX =
  15452. QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1,
  15453. };
  15454. /**
  15455. * enum qca_wlan_dozed_ap_state - Doze states for AP interface
  15456. *
  15457. * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface.
  15458. *
  15459. * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts
  15460. * beaconing at higher beacon interval with Rx disabled.
  15461. */
  15462. enum qca_wlan_dozed_ap_state {
  15463. QCA_WLAN_DOZED_AP_DISABLE = 0,
  15464. QCA_WLAN_DOZED_AP_ENABLE = 1,
  15465. };
  15466. /**
  15467. * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command
  15468. * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode
  15469. * configuration.
  15470. *
  15471. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute.
  15472. * Configures the doze state for an AP interface. Possible values are defined
  15473. * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event
  15474. * gets triggered asynchronously to provide updated AP interface configuration.
  15475. *
  15476. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by
  15477. * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP
  15478. * command, which is used later to maintain synchronization between commands
  15479. * and asynchronous events.
  15480. *
  15481. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute.
  15482. * Used in event to indicate the next TBTT TSF timer value after applying the
  15483. * doze mode configuration. Next TBTT TSF is the time at which the AP sends
  15484. * the first beacon after entering or exiting dozed mode.
  15485. *
  15486. * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute.
  15487. * Used with event to inform the periodicity of beacon transmission that would
  15488. * be skipped at all TBTTs in between.
  15489. */
  15490. enum qca_wlan_vendor_attr_dozed_ap {
  15491. QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0,
  15492. QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1,
  15493. QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2,
  15494. QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3,
  15495. QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4,
  15496. /* Keep last */
  15497. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST,
  15498. QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX =
  15499. QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1,
  15500. };
  15501. /**
  15502. * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes
  15503. * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE.
  15504. * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no
  15505. * capture running status.
  15506. * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate
  15507. * capture running status.
  15508. **/
  15509. enum qca_wlan_vendor_monitor_mode_status {
  15510. QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0,
  15511. QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1,
  15512. };
  15513. /**
  15514. * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the
  15515. * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report
  15516. * information regarding the local packet capture over the monitor mode.
  15517. *
  15518. * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute
  15519. * represents the status of the start capture commands. The values used with
  15520. * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This
  15521. * is returned by the driver in the response to the command.
  15522. */
  15523. enum qca_wlan_vendor_attr_get_monitor_mode {
  15524. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0,
  15525. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1,
  15526. /* Keep last */
  15527. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST,
  15528. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX =
  15529. QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1,
  15530. };
  15531. /**
  15532. * enum qca_wlan_vendor_link_state_op_types - Defines different types of
  15533. * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used.
  15534. * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute.
  15535. *
  15536. * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information.
  15537. * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information.
  15538. */
  15539. enum qca_wlan_vendor_link_state_op_types {
  15540. QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0,
  15541. QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1,
  15542. };
  15543. /**
  15544. * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO
  15545. * links state control modes. This enum is used by
  15546. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute.
  15547. *
  15548. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled
  15549. * by the driver.
  15550. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by
  15551. * user space.
  15552. * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the
  15553. * desired number of MLO links to operate in active state at any given time.
  15554. * The driver will choose which MLO links should operate in the active state.
  15555. * See enum qca_wlan_vendor_link_state for active state definition.
  15556. */
  15557. enum qca_wlan_vendor_link_state_control_modes {
  15558. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0,
  15559. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1,
  15560. QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2,
  15561. };
  15562. /**
  15563. * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO
  15564. * links state operation modes. This enum is used by
  15565. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute.
  15566. *
  15567. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation
  15568. * mode, the driver selects the operating mode of the links, without any
  15569. * guidance from the user space.
  15570. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency
  15571. * operation mode the driver should select MLO links that will achieve low
  15572. * latency.
  15573. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high
  15574. * throughput operation mode the driver should select MLO links that will
  15575. * achieve higher throughput.
  15576. * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power
  15577. * operation mode the driver should select MLO links that will achieve low
  15578. * power.
  15579. */
  15580. enum qca_wlan_vendor_link_state_operation_modes {
  15581. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0,
  15582. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1,
  15583. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2,
  15584. QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3,
  15585. };
  15586. /**
  15587. * enum qca_wlan_vendor_link_state - Represents the possible link states of an
  15588. * MLO link.
  15589. *
  15590. * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not
  15591. * be used for data transmission but it can have TIDs mapped to it. It will be
  15592. * in doze state always and does not monitor the beacons.
  15593. * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be
  15594. * used for data TX/RX and monitors the beacons to check TIM bit indication.
  15595. * It may enter doze state and comes out based on the transmit data traffic and
  15596. * TIM bit indication in the beacon.
  15597. */
  15598. enum qca_wlan_vendor_link_state {
  15599. QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0,
  15600. QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1,
  15601. };
  15602. /**
  15603. * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used
  15604. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG.
  15605. *
  15606. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the
  15607. * MLO link.
  15608. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See
  15609. * enum qca_wlan_vendor_link_state for possible MLO link states.
  15610. */
  15611. enum qca_wlan_vendor_attr_link_state_config {
  15612. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0,
  15613. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1,
  15614. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2,
  15615. /* Keep last */
  15616. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST,
  15617. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX =
  15618. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1,
  15619. };
  15620. /**
  15621. * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by
  15622. * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command.
  15623. *
  15624. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type
  15625. * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for.
  15626. * Required only in a command. Possible values for this attribute are defined in
  15627. * enum qca_wlan_vendor_link_state_op_types.
  15628. *
  15629. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO
  15630. * links control mode type. Optional attribute in a command when
  15631. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15632. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15633. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15634. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15635. * See enum qca_wlan_vendor_link_state_control_modes for possible control modes.
  15636. *
  15637. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes.
  15638. * Indicates the state of the each MLO link affiliated with the interface.
  15639. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15640. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15641. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15642. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a
  15643. * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15644. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15645. * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes.
  15646. *
  15647. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute.
  15648. * Represents the number of active state links. See enum
  15649. * qca_wlan_vendor_link_state for active state definition.
  15650. * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE
  15651. * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and
  15652. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to
  15653. * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED.
  15654. *
  15655. * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO
  15656. * links operation mode type. Optional attribute in a command when
  15657. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15658. * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when
  15659. * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to
  15660. * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET.
  15661. * See enum qca_wlan_vendor_link_state_operation_modes for possible operation
  15662. * modes.
  15663. */
  15664. enum qca_wlan_vendor_attr_mlo_link_state {
  15665. QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0,
  15666. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1,
  15667. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2,
  15668. QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3,
  15669. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4,
  15670. QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5,
  15671. /* keep last */
  15672. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST,
  15673. QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX =
  15674. QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1,
  15675. };
  15676. /**
  15677. * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used
  15678. * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15679. *
  15680. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute
  15681. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15682. * Indicates the link mapping bitmap of a TID for uplink traffic. It is a
  15683. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  15684. * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink
  15685. * traffic for that link.
  15686. *
  15687. * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute
  15688. * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS.
  15689. * Indicates the link mapping bitmap of a TID for downlink traffic. It is a
  15690. * bitmask of the link IDs in which a bit set means that the TID is mapped with
  15691. * that link ID in downlink traffic. Otherwise, the TID is not mapped to
  15692. * downlink traffic for that link.
  15693. */
  15694. enum qca_wlan_vendor_attr_tid_link_map_status {
  15695. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0,
  15696. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1,
  15697. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2,
  15698. /* keep last */
  15699. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST,
  15700. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX =
  15701. QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1,
  15702. };
  15703. /*
  15704. * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with
  15705. * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event.
  15706. *
  15707. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte
  15708. * AP MLD address with which this TID-to-link negotiation mapping is
  15709. * established/updated.
  15710. *
  15711. * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of
  15712. * nested attributes containing TID-to-links mapping information. This will have
  15713. * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink
  15714. * map information. If this attribute is not present the default TID-to-link
  15715. * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and
  15716. * downlink traffic.
  15717. * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes.
  15718. */
  15719. enum qca_wlan_vendor_attr_tid_to_link_map {
  15720. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0,
  15721. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1,
  15722. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2,
  15723. /* keep last */
  15724. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST,
  15725. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX =
  15726. QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1,
  15727. };
  15728. /**
  15729. * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used
  15730. * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event.
  15731. *
  15732. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute.
  15733. * 6-byte AP MLD address of the AP which indicated the link reconfiguration.
  15734. *
  15735. * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute.
  15736. * A bitmap of the removed setup links link IDs.
  15737. */
  15738. enum qca_wlan_vendor_attr_link_reconfig {
  15739. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0,
  15740. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1,
  15741. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2,
  15742. /* keep last */
  15743. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST,
  15744. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX =
  15745. QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1,
  15746. };
  15747. /**
  15748. * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by
  15749. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command.
  15750. *
  15751. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute.
  15752. * Indicates the MLO link id on which the TDLS discovery response
  15753. * frame is to be transmitted.
  15754. */
  15755. enum qca_wlan_vendor_attr_tdls_disc_rsp_ext {
  15756. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0,
  15757. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1,
  15758. /* Keep last */
  15759. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST,
  15760. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX =
  15761. QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1,
  15762. };
  15763. /**
  15764. * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states.
  15765. *
  15766. * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status
  15767. * for all stations.
  15768. *
  15769. * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to
  15770. * establish the session.
  15771. *
  15772. * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is
  15773. * established.
  15774. *
  15775. * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS
  15776. * session is established using MCC.
  15777. *
  15778. * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was
  15779. * established, but is temporarily dropped currently.
  15780. *
  15781. * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish.
  15782. */
  15783. enum qca_wlan_vendor_tdls_state {
  15784. QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1,
  15785. QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2,
  15786. QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3,
  15787. QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4,
  15788. QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5,
  15789. QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6,
  15790. };
  15791. /**
  15792. * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons.
  15793. *
  15794. * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established.
  15795. *
  15796. * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason.
  15797. *
  15798. * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported.
  15799. *
  15800. * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported.
  15801. *
  15802. * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better
  15803. * than through direct link.
  15804. *
  15805. * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS
  15806. * session anymore.
  15807. */
  15808. enum qca_wlan_vendor_tdls_reason {
  15809. QCA_WLAN_TDLS_REASON_SUCCESS = 0,
  15810. QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1,
  15811. QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2,
  15812. QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3,
  15813. QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4,
  15814. QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5,
  15815. };
  15816. /**
  15817. * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by
  15818. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command.
  15819. *
  15820. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer
  15821. * station to enable the TDLS session. Optional attribute. The driver sends the
  15822. * TDLS session result as an asynchronous response using the command
  15823. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in
  15824. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command.
  15825. *
  15826. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the
  15827. * channel on which the TDLS session to be established. Required only when
  15828. * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  15829. *
  15830. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute.
  15831. * Indicates the global operating class of the TDLS session to be established.
  15832. * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  15833. *
  15834. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates
  15835. * the maximum latency of the WLAN packets to be transmitted/received in
  15836. * milliseconds on TDLS session. Required only when
  15837. * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present.
  15838. *
  15839. * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute.
  15840. * Indicates the minimum bandwidth to be used to establish the TDLS session
  15841. * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is
  15842. * present.
  15843. */
  15844. enum qca_wlan_vendor_attr_tdls_enable {
  15845. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0,
  15846. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1,
  15847. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2,
  15848. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3,
  15849. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4,
  15850. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5,
  15851. /* keep last */
  15852. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST,
  15853. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX =
  15854. QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1,
  15855. };
  15856. /**
  15857. * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by
  15858. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command.
  15859. *
  15860. * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer
  15861. * station to disable the TDLS session. Optional attribute.
  15862. */
  15863. enum qca_wlan_vendor_attr_tdls_disable {
  15864. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0,
  15865. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1,
  15866. /* keep last */
  15867. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST,
  15868. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX =
  15869. QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1,
  15870. };
  15871. /**
  15872. * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by
  15873. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command.
  15874. *
  15875. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the
  15876. * peer station. Optional attribute. Used in
  15877. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response.
  15878. *
  15879. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the
  15880. * TDLS session state with the peer specified in
  15881. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from
  15882. * enum qca_wlan_vendor_tdls_state. Used in
  15883. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  15884. *
  15885. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the
  15886. * reason for the TDLS session state indicated in
  15887. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum
  15888. * qca_wlan_vendor_tdls_reason. Used in
  15889. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  15890. *
  15891. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the
  15892. * channel of the TDLS session established with
  15893. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
  15894. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  15895. *
  15896. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute.
  15897. * Indicates the global operating class of the TDLS session established with
  15898. * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in
  15899. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response.
  15900. *
  15901. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates
  15902. * the current number of active TDLS sessions. This is indicated in the response
  15903. * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
  15904. * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
  15905. *
  15906. * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates
  15907. * whether the driver can initiate new TDLS session. This is indicated in the
  15908. * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with
  15909. * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute.
  15910. */
  15911. enum qca_wlan_vendor_attr_tdls_get_status {
  15912. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0,
  15913. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1,
  15914. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2,
  15915. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3,
  15916. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4,
  15917. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5,
  15918. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6,
  15919. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7,
  15920. /* keep last */
  15921. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST,
  15922. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX =
  15923. QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1,
  15924. };
  15925. /**
  15926. * enum qca_wlan_vendor_attr_tdls_state - Attributes used by
  15927. * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command.
  15928. *
  15929. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the
  15930. * peer station. Required attribute.
  15931. *
  15932. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates
  15933. * the current TDLS state. Required attribute. Uses the values from
  15934. * enum qca_wlan_vendor_tdls_state.
  15935. *
  15936. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the
  15937. * reason of the current TDLS session state. Required attribute. Uses the values
  15938. * from enum qca_wlan_vendor_tdls_reason.
  15939. *
  15940. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the
  15941. * TDLS session channel. Required attribute.
  15942. *
  15943. * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute.
  15944. * Indicates the TDLS session global operating class. Required attribute.
  15945. */
  15946. enum qca_wlan_vendor_attr_tdls_state {
  15947. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0,
  15948. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1,
  15949. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2,
  15950. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3,
  15951. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4,
  15952. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5,
  15953. /* keep last */
  15954. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST,
  15955. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX =
  15956. QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1,
  15957. };
  15958. /*
  15959. * enum qca_wlan_vendor_opm_mode - Modes supported by
  15960. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute.
  15961. *
  15962. * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled
  15963. * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled
  15964. * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user
  15965. * to configure power save inactivity timeout and speculative wake up
  15966. * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
  15967. * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes.
  15968. */
  15969. enum qca_wlan_vendor_opm_mode {
  15970. QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0,
  15971. QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1,
  15972. QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2,
  15973. };
  15974. #endif